From bd40904ebdd4b662d64574b53cffd75ae18ab4e3 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 18 Feb 2026 14:06:07 +0000 Subject: [PATCH 1/3] docs: Replace "GCP" with "Google Cloud" in API comments docs: Remove single quotes from DatabaseCenter summary. PiperOrigin-RevId: 871778449 Source-Link: https://github.com/googleapis/googleapis/commit/4ed62e490650b7b6b64c4cb95917395cfc69de7a Source-Link: https://github.com/googleapis/googleapis-gen/commit/1a8951618fdeb9dd1ff2d82099f4d9d86b1dc708 Copy-Tag: eyJwIjoiRGF0YWJhc2VDZW50ZXIvLk93bEJvdC55YW1sIiwiaCI6IjFhODk1MTYxOGZkZWI5ZGQxZmYyZDgyMDk5ZjRkOWQ4NmIxZGM3MDgifQ== --- .../Databasecenter/V1Beta/MachineConfig.php | Bin 0 -> 1136 bytes .../Databasecenter/V1Beta/Maintenance.php | Bin 0 -> 1947 bytes .../Databasecenter/V1Beta/MetricData.php | Bin 0 -> 2194 bytes .../V1Beta/OperationErrorType.php | Bin 0 -> 1147 bytes .../Cloud/Databasecenter/V1Beta/Product.php | Bin 0 -> 1901 bytes .../Cloud/Databasecenter/V1Beta/Service.php | Bin 0 -> 9061 bytes .../Cloud/Databasecenter/V1Beta/Signals.php | Bin 0 -> 10514 bytes .../V1Beta/SuspensionReason.php | Bin 0 -> 1185 bytes .../V1beta/AdditionalDetail.php | 508 +++++++++++ .../V1beta/AggregateFleetRequest.php | 505 +++++++++++ .../V1beta/AggregateFleetResponse.php | 216 +++++ .../V1beta/AggregateFleetRow.php | 183 ++++ .../V1beta/AggregateIssueStatsRequest.php | 260 ++++++ .../V1beta/AggregateIssueStatsResponse.php | 178 ++++ .../V1beta/AutomatedBackupPolicyInfo.php | 111 +++ .../DatabaseCenter/V1beta/BackupDRConfig.php | 78 ++ .../DatabaseCenter/V1beta/BackupRunInfo.php | 271 ++++++ .../V1beta/BackupRunInfo/State.php | 64 ++ .../V1beta/DatabaseResource.php | 786 ++++++++++++++++++ .../V1beta/DatabaseResourceGroup.php | 119 +++ .../V1beta/DatabaseResourceIssue.php | 121 +++ .../V1beta/DeletionProtectionInfo.php | 111 +++ .../DatabaseCenter/V1beta/DeltaDetails.php | 105 +++ .../Cloud/DatabaseCenter/V1beta/Dimension.php | 690 +++++++++++++++ .../Cloud/DatabaseCenter/V1beta/Edition.php | 69 ++ .../Cloud/DatabaseCenter/V1beta/Engine.php | 132 +++ .../V1beta/InefficientQueryInfo.php | 211 +++++ .../DatabaseCenter/V1beta/IssueCount.php | 113 +++ .../DatabaseCenter/V1beta/IssueGroupStats.php | 270 ++++++ .../DatabaseCenter/V1beta/IssueSeverity.php | 82 ++ .../DatabaseCenter/V1beta/IssueStats.php | 193 +++++ .../Cloud/DatabaseCenter/V1beta/Label.php | 139 ++++ .../DatabaseCenter/V1beta/MachineConfig.php | 156 ++++ .../DatabaseCenter/V1beta/MaintenanceInfo.php | 149 ++++ .../V1beta/MaintenanceRecommendationInfo.php | 71 ++ .../DatabaseCenter/V1beta/ManagementType.php | 61 ++ .../DatabaseCenter/V1beta/MetricData.php | 121 +++ .../Cloud/DatabaseCenter/V1beta/Metrics.php | 449 ++++++++++ .../V1beta/OperationErrorType.php | 92 ++ .../V1beta/OutdatedMinorVersionInfo.php | 75 ++ .../Cloud/DatabaseCenter/V1beta/Phase.php | 79 ++ .../Cloud/DatabaseCenter/V1beta/Product.php | 189 +++++ .../DatabaseCenter/V1beta/ProductType.php | 121 +++ .../QueryDatabaseResourceGroupsRequest.php | 568 +++++++++++++ .../QueryDatabaseResourceGroupsResponse.php | 144 ++++ .../V1beta/QueryIssuesRequest.php | 359 ++++++++ .../V1beta/QueryIssuesResponse.php | 143 ++++ .../V1beta/QueryProductsRequest.php | 203 +++++ .../V1beta/QueryProductsResponse.php | 143 ++++ .../V1beta/RecommendationInfo.php | 179 ++++ .../V1beta/RegulatoryStandard.php | 105 +++ .../V1beta/ResourceCategory.php | 68 ++ .../DatabaseCenter/V1beta/ResourceDetails.php | 184 ++++ .../ResourceMaintenanceDenySchedule.php | 171 ++++ .../V1beta/ResourceMaintenanceSchedule.php | 174 ++++ .../V1beta/ResourceSuspensionInfo.php | 101 +++ .../V1beta/RetentionSettingsInfo.php | 212 +++++ .../Cloud/DatabaseCenter/V1beta/SCCInfo.php | 169 ++++ .../Cloud/DatabaseCenter/V1beta/Signal.php | 233 ++++++ .../DatabaseCenter/V1beta/SignalFilter.php | 113 +++ .../DatabaseCenter/V1beta/SignalGroup.php | 147 ++++ .../V1beta/SignalProductsFilters.php | 105 +++ .../DatabaseCenter/V1beta/SignalSource.php | 76 ++ .../DatabaseCenter/V1beta/SignalStatus.php | 76 ++ .../DatabaseCenter/V1beta/SignalType.php | 775 +++++++++++++++++ .../DatabaseCenter/V1beta/SignalTypeGroup.php | 107 +++ .../DatabaseCenter/V1beta/SubResource.php | 262 ++++++ .../DatabaseCenter/V1beta/SubResourceType.php | 82 ++ .../V1beta/SuspensionReason.php | 89 ++ .../Cloud/DatabaseCenter/V1beta/Tag.php | 206 +++++ .../DatabaseCenter/V1beta/TypedValue.php | 108 +++ .../DatabaseCenterClient/aggregate_fleet.php | 85 ++ .../aggregate_issue_stats.php | 78 ++ .../query_database_resource_groups.php | 83 ++ .../DatabaseCenterClient/query_issues.php | 85 ++ .../DatabaseCenterClient/query_products.php | 91 ++ .../V1beta/Client/DatabaseCenterClient.php | 338 ++++++++ .../v1beta/src/V1beta/gapic_metadata.json | 43 + .../database_center_client_config.json | 59 ++ .../database_center_descriptor_config.php | 80 ++ .../database_center_rest_client_config.php | 52 ++ .../Client/DatabaseCenterClientTest.php | 473 +++++++++++ 82 files changed, 13847 insertions(+) create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/MachineConfig.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/Maintenance.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/MetricData.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/OperationErrorType.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/Product.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/Service.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/Signals.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/SuspensionReason.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AdditionalDetail.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateFleetRequest.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateFleetResponse.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateFleetRow.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateIssueStatsRequest.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateIssueStatsResponse.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AutomatedBackupPolicyInfo.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/BackupDRConfig.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/BackupRunInfo.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/BackupRunInfo/State.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DatabaseResource.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DatabaseResourceGroup.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DatabaseResourceIssue.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DeletionProtectionInfo.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DeltaDetails.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Dimension.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Edition.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Engine.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/InefficientQueryInfo.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueCount.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueGroupStats.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueSeverity.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueStats.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Label.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MachineConfig.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MaintenanceInfo.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MaintenanceRecommendationInfo.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ManagementType.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MetricData.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Metrics.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/OperationErrorType.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/OutdatedMinorVersionInfo.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Phase.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Product.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ProductType.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryDatabaseResourceGroupsRequest.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryDatabaseResourceGroupsResponse.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryIssuesRequest.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryIssuesResponse.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryProductsRequest.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryProductsResponse.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/RecommendationInfo.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/RegulatoryStandard.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceCategory.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceDetails.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceMaintenanceDenySchedule.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceMaintenanceSchedule.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceSuspensionInfo.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/RetentionSettingsInfo.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SCCInfo.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Signal.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalFilter.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalGroup.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalProductsFilters.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalSource.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalStatus.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalType.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalTypeGroup.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SubResource.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SubResourceType.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SuspensionReason.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Tag.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/TypedValue.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/aggregate_fleet.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/aggregate_issue_stats.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/query_database_resource_groups.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/query_issues.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/query_products.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/Client/DatabaseCenterClient.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/gapic_metadata.json create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/resources/database_center_client_config.json create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/resources/database_center_descriptor_config.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/resources/database_center_rest_client_config.php create mode 100644 owl-bot-staging/DatabaseCenter/v1beta/tests/Unit/V1beta/Client/DatabaseCenterClientTest.php diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/MachineConfig.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/MachineConfig.php new file mode 100644 index 0000000000000000000000000000000000000000..9046884a7785d2a1861c9d555adaec73b3dfceb1 GIT binary patch literal 1136 zcmbVLO^ee&7&fhXm~{nvT0vo~tJ?)lSv&|+t2C`!_psX@77r3AlgXQQAjyQuq)?^c zN&GGT6n}+hZ~g-(GyTf0BG^mHywCf*U(fUEO*YHWV?2ZuBvlaNV1d;Pa3+NkOvE@S zq6j2rBFT6R(#3c%!WW}U{C045`ADbcqL2&-o(eIIq0M4ZgzbrHj}7jmtgh9rO*pZ|yL^)l|Ca)?6@W^~SlBxF0)mc$J8{54;V&gS~L0v!I^6Ec&&bu359jEaCp*hQnRrIEgIyUO)sCO6Lne1eH`)F^n zg?pcC=&2UI`|qB;Mx|k+im~(I!j8Gl7fE|6u6l!Jd}WX7HnN~|_2FBsIW)F#jV;`@ zE&9e~uC>MYHOOC?XX73V^R<0SH~y?Wv1Ei8HbSa&gjif~+xYaw(MAQ&tS)zC{8tGZ Lq!ro{EfM++!QgkO literal 0 HcmV?d00001 diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/Maintenance.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/Maintenance.php new file mode 100644 index 0000000000000000000000000000000000000000..fb388174f7cbca7a88316b7bf9bc5e338f5788ac GIT binary patch literal 1947 zcmbVN-A)rh6t*oG7^0M_gusPkMJYtL0rh4PN&mpcKpR1cW|KPIJxe!kcQ(6IOf_8k zB3}9ezJpKUwGTm@pWU*BLWJJ5o&C-^-}&a-b6#%x9Unc!+u%V!7+AR7$E*X`4=AH1 zb#c3A+Yn%rc74Z%K*PA&z`KooT&vdiAMntS_5u@hd`Rh`3q{kVJ*#LDM%p9<6Fde% z@o2RTj1;@X;eS2inV`u62zjInp-)V}+s*P02Z=~yTjnw*KZ#ZlMK zk=(#6=s~hN#sRQi;H^vEBEj+CmoY-SlJ6K>4!BksI^@Wqfv%r+b(&;U=ziY^p*mbS zq)+WH0H3cIx9@a;+7{`Lj+44SeI=|TR4!T8K-4X6$-+PeA<7aunLy942|*C^O>{36n=Yo?jR~k91HbAAZQp*)36Wt1u5hP8uvT= zC7sJi>~fs-5&^WP2$13VA1QQy1oJ9*{Q>)xn7z;{Vm}ktk?e)fV&W6vSuKea?5EZ) zLN22*sfOTvxf=QJX*8XXweHz8*G6{}lc*I&Qb+VQV|tg#Frx3cXVr|0<}EHnYgD0- zUrvS-uUxZIQejmMqdUn$M-YU3jLCbQ6o|~qCp0dvE_V;jG+&qYYOQy>d(B#Z2-*~E>=DcVeZ z+*NYN?;!0K59!%8LVPFMB-|v4{o=RR&mR0t=eOk&(JEqzXxwHppduHNrk2R>7-U4N zX0U4%%;3vLEUv%lM=F`F%WS$noKDvju6cr CVt(`h literal 0 HcmV?d00001 diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/MetricData.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/MetricData.php new file mode 100644 index 0000000000000000000000000000000000000000..b07ec253d3e98e1b2f59462db8369cc90ae16ff8 GIT binary patch literal 2194 zcmbW2|8Cnh5XU3uhto@o4PKi$=?1V~w>rQoBU?5g%F}tF$OOK1_1&kon4`_ zD3DZuY{(z`Z;!BN*rV)Cws#m%QnDmFPFqa=M+SNP-0|*s-|xOpUM27u8DNZ@N(_j1 zN#rXe31^b|EFxYy9wR3{n@(X>W>>hrX*f&CCHnOs6Ok>LVEp?H9^OZ#sjF<(z1i(_dgY=lixY zI|A?{Dg;qy6jR&4Z$Q*9NxdlaiI7yP&%;o-VI0bkM&YmOddFl;BZ2Dpvh6sHeHpTt z=mTf5kKH|zGqvr*gsF5KlOnjG&XCHE^ITssrjgS};qx$&j1QHmWld0)dDSc3y_s8$ z3&*6J$7oqgK^_yyQ=Ios2uGRn_$Z581Fp({&JC$6qZ@@P!IDlB%c`zbQLLOR|Vdm}8`KJlZyquyngpZQLL)TAI zHq&Q*)MLKU4(&`kvf zu6HR>v{!3^8yfr*v=gMSE9zVZ)@or_HFg9aXV@uD8NXb}>v}Ef+B`K*ryg?GXK{?# zGZO8MTGVw-9jMX30#vv(mhEOO(1r&62=~;e@ll8{p17%c*)!&5EoM_Q&ta!1e38ql z?zd`jHx<|3hP&RtO&xbGH$EO(%NA9mcg^^v^`?R>MiLDgf`-f~UtJFw+e zm9g8f?cSJQ`xDqLgDZTLS?c_508}rubqwnlG)nRRJn+$Fg2A~y)jEI=nJ186WK+VG zYUZ``hrL^j3Ke8FuFY~FcKQHwjBU6bFr^*nR*@K|E3JF5rKaPz2eW03T|Hf~o3n`R z{|xv-sbk^i9Rtq(pt^B3pNGaTFLV21p0R0f!mg_)O~RRgF3!!wJG#E`SEDn?wA0MA z)6}}C2kl9w!)C6Xe-}p1Okqoj&CML8v0AVHZG4`?EGwf~)*{ZbayxG$OYYZ?O0oDd T*RMIbd#luCmbo5X!4<$8!Qtb% literal 0 HcmV?d00001 diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/OperationErrorType.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/OperationErrorType.php new file mode 100644 index 0000000000000000000000000000000000000000..01c0439325f99f3fc19556f014fb064fd6e21fd0 GIT binary patch literal 1147 zcmbu8--^>f6vk~`_hLY;5%l)BR<|pfvUrzTC2eO*X*Y>!c3~wDl62Y)q?s_82&?qc zml3ah2p`3#a3)DhyG6V(SK;u@@BIDVeMqlU^c;pHA07G zl}RF+c!V*^JbsfBwaA1};x9>-`XPa#)jJnziExJn)a^^CJJ^A`m!~};>mU@yewKl` zhGWTg1R8xsAigvY;wXfSi_{@Bqs)tvh(~@LeG&b3VeZEn5tx1LJWoPdF31OF5|Y*l zluW5@rc}(Q3+o~+IWjRWcO-jG{Ma3kEM!s2DYJxB(-wqp1}!74lPaymMRRDCHEP;k zkzL>{C)?Qp7~wffIz`g*}PjMBi%h=R0`(yLMsbY7PCrIh*MjuZmTR9pB%476!`f)PF_9eC} z@jVF`84k7$eNx2^d*ABlr8s}}-#zx8?l)Lmg;o1xl(Shw=(4?_w{7C5QRS4~5vD=s zcHn#cXjphdExe(wz0ofWrs%%cO?J- literal 0 HcmV?d00001 diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/Product.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/Product.php new file mode 100644 index 0000000000000000000000000000000000000000..772a6b0ba99ddcd74a91f37b684c24c0b46d54bf GIT binary patch literal 1901 zcmb7F-E!MR6vj?)noUwv(RNJez&51R%}}{5Tq%T({;X=omQ+a&xT6`3EUz8SD3V56 zXQnWD3f_XJ;DRfjf@>ZDZdhq$$8u6AzLDqbcfNDZcXrSD_GNmOf-j(oVwCw9P2l(~ z#AgVmS%Q-wiQsrXouUi|$$1(^DB~cM4X7IqRAkM0NL=$|o&|`9vm}{Cs2fDdeA1ox z*dO~j3Q&wu*1dQ>M%eEX(#br)TuBZH-vD0}R;4q0{ z;b6o8>O6szv%nsv3DMyME;1ugaYAHqwW7Azk6an$K^CSs$xH&}`5D4XK?_UgNfoxB z3#YI{bL9DJNuEHQ&CzOf2s4D|S$tgPT@YL@|G78lCZwU;3sE!?(V2e{CK=CPRdq#D z7WMSIuqr{AOqLnzwyHL=BG|-l zQ`Bz2M(6g6F8AN=T;=KzH*w<+p~1ccEfmkf7`2-v%hCI=D5VD_xC^!}P?nS1(B2>n z+tj)b_RhmN$-Kqc=JM?5=MB)J4D5ZtD!QuaiZ|44Q<1curpU|(ECY5c`(R|h?lTSc zWAIUBF%8>MEyZS<>^*R&G7^wyE7qxEF&pe1uveLN!O>0?W|M{B!Gcg37}m&k3`_BP zhUHo0UE0howgV3T4dF@sq3sa*ZT1m(SRs2F$)jZYUUOb~G@3UsWQ74MgljNaa0KdA zB6rwNz`cr4`9Ua7J;M^DzQXLT_1^+c9hla_uCKCO`!N(>#vqk54} zeg^hy04lp@=$q=h$R^?ImSBW9<#xpmi4#t+568sJMZ``_agiMy5D_ujk@KWZPh;kvp*ZR#36ZL0NC)jy_c+jV@W;aFaT_$Fwj8Hr(XEE%bedaD!#C=NM;p}ksk`<3Zk_tZmPg&^W`m|U za{${opZXt}lNl27f$F;* z+P}N1y43Hu_I)llWAL*3Uu}flvTd`LwQYx4!Lhwerl(Vn#j6POmWd7!Mhi=q=ko=Uxy)>bqux#plKF!>DR@8e`c0ECW`| z7RKcm&aa-fDND9j7>B38orlbXEa0=vW;edKu_|nKBa+4EP58|NcxT*lKr}&-;sqqd zN(}}wj#xnIbs3Rz!TS;9IT2x}H+bAh!gnJPc7tmi zDjq>P(^OJLF&frR7AIp+cp?}i#j4cDM~|~IEvvCstHI^R9qOLSK=jJ=;|}$FvJBI0 z!$ngkCsk#0E;sq->;zebxwg@wx`(wjso?k&8&}9003Y|AXVgwk1O$rqJq1<<*n4fP zPn0}>S*eqUoF+G8=`W;&jAw;HN{Wd)F52{)zCO4uNkXh+yA*wD)Gdm_PYU6uwO>tu z#$~~P=RsDcqKWOePNzLWai*YD9IbI=T9^iX%8@D%VPu_IRc~=Ne8*V&UKC|SzOp3b zA_!aVLtJtdJ9^1W+&u3@=ZMLPq6&5^FzdKY>gx5=6-I68^v82&1?_iuH*Q6AY~AK@193KQiKKRE$RLV?yOW4 zX1ku(!EV>FeeL%%kQfw~?8729L@a6-BkDSkqmE^Dx#mzFo)&OH?aM>7;hN& zC! zLRmFhWCa!i)A1Bd&T>f(V9D#$dv;*io1DX`c*L~r)XOr&S?-cuh=+Sfavqt*(s!fC z83H|IdoY}UtGpG3lc*-Vk}&6;@IK=u7q~2uiYtO~1UDWzgr%`|Es9Qv4bEE`|b))gD({8%5`zDvTwCO1N<~V7gEbyYJcBnUPBKmjiB;oQ# z(z_@~NEs3*m;w?o;yL2TNiK7NB9-&~9_=oYa*4FRD6pPwwOralWAKcxAV&Yc={9Lt zV0g>I#AlF%^5l=DmjVZ{+(=<%qFkFtuYFfhatVm*AtLR!3S1efq-+Y9aV9Hvq9f?+ z92At@NS5Vxb%^$D>ZKmU$RISVwtxo+8)bN_bj!BDshGnyEpcz?v*?_S4!w z6<8eH@iNReO|NYkr=o0fY{2B`CW@&4AvqAF1k-_lV(+(M?$le&5K3!-ouTl{bB-ut1E1aJY`4Yb&)9=PeXp7_amGEGCA^0YiXemxIp~SRGVU zR)RcSa-A1J^1m09nKMp*sR2&T3zpyA=#pt8^1VOQ-hj*9Mg6lP14o=61ne0&KTP$? z!oL()8kXfNFxNCssO_$xOZ-#hyh@fm~jP#efUe1MU`n z?!hTC2ug8mZ4e{!GY?LbMxjIoAkT*qk>lf0uu9<0bHOTPiARJJ!^R^yMxZau4_w4Z z2x`AeDn0P92cKe`%{cH0#aV(G1nN4ghztVH;Sh!l8xnPqVNo`C8GsGS>d25K8%0;J zQPVzVb(}Vn3?;^4R-XlIcOJb29K?mo{I#}7wbaR_D^ z1RnhMj|W{W9jSl{kKhS(HfWn1#>CQ*YSW-rm=u#$Jc5sbkJu$dFZWq9o7KLLP`oUG zq=bHC^gV_E!`=izw!8;}S#=^o18gpG2sa`>d2FY5VhwYYOweyTq?sFaHN-R<3CA@LfS zhuPhON;P|sFD4Z9Nu^pWCnnfbAzRJnvXx?D^7aYL1c&G~SZ3b{cMlH+n5_Z{ zCW;5hq*UHTT7_JJwc&BSggfCjmmv{MGC2y_asjvdBZfs~;1&kesXWQ)U6ra&OT_^R zHsJN)B`C&zw)_+YxdvB;rz^$$A=~yT3Zuc*;RWSlwt%~q_IC5x#3Z=^+VGm<*HGVs z?4BNMHpR3aUUyi1gvPye+lP3#H#6Dxvj^Fo;y&6=AEDcb1v~kYE{F=KoeFOZa;Oyd zw!14P(*K!(c#y|=#1qsdKT%+Tm%yMQkS|98V<8fG$XSn69S0~y#nm>x^Vwg2FtJ8f zFP~vxW$>Mn^7R98h7Z2sIVW2!XYfG??k(ShgynA6?+*_A zY(m@NPeM}si#NN2W7A)f||YVzSo_vMIKR>P+w>7qbem~&?`HSQ_7}y=jJ}5)?5fRdjCjPsSBl3LFX1J?e*wBgeh~lw literal 0 HcmV?d00001 diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/Signals.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/Signals.php new file mode 100644 index 0000000000000000000000000000000000000000..25718f2c671eb9836ec544958c55c8944febe26b GIT binary patch literal 10514 zcmb_iO>^7E84j)3mR9~iV8@Z|#AawGmYqZ&v=cjYTo(i&3K0p=04Q0mnk_{_GN%;D z5M)|6lVcA(bf%Y1Po3$hhh96=-ueUjC)#s=LND#Jy8s9-X_a=9OKf8I+4tjlpZ8rD zUp($T?~xnXQqT$d^+C|g?!U+mo(I`pzdPtQy6x=#@ZccmXB*w4UaKASSF%~d$=Z&e zH4V#uA6vuju-^y@*~4!4upO*6+TCGuwOJq3_v>NM2s(qHzxvJkelV!7hONU+y&bM_ za6&ruqaf_n8$q^IEmp9A?b<7GoIRc4>=|P?d)w}M4Z^Z#G2h_Oo)LtNeyca=_N!Q0C>#cZB%th<<=fG*46b#MT^2SL3KK>? z$`1O&Abol^+YbiAe&->#n*n^6{Aq7W+_YY6Z=)5oo5kRH{hL;|Unq>c8i7pPdQ8ao zD)kn;?bH#R?+4K7F~T9}X20L<`!9Om6E3pT95x2ukCEOm>;;_=R=Pnw>~>~HO-N!4 zg`2Oj)o-Cb2KA%fYwX?W*L#R?IDIRp^d~=HDP;uKn$3i-8>sT-gkg+tx5#fTvi7Rw zt>(mz6)p%X+>_ z_S*FqlxgfzCYxDaD9-&;JE2=ej_*boqed6uKO>h~o#5c0)o6ic^y^{Jj{>yF z(I3oWy){C3!T=)d2D#cD4v>}t8bBoMz;eU#4TlssmVg_FDJ;`QJb(k{CooOnWZ| zLCC{4r(Q!(KEnGF);C#0ZUtd9t+E)*<$jkTr=$5vJx5N777*D0s~Sk!VYmN+=Y2u- z$;EzfIBeH(+zVz0#;krb9&~3)k(=yC6!~^G<_13(w@Nzfw<59ril~!qla1U-TZXRl zTZ(##oJ;*kTS7T_)Y8908+jvQ9c2NdHt=I#5?kPN>{bMRo}7+G4H1MKr2b_yg!(?Y zJUUUDR0Lk`*BSEOv7>?7Cf5=rNzWr;<9W~=wvpQmzgRq;r3z!UN*(D%IJ`D;|2jcV ziK~u0NU-3(`XG@SYyPi$m|7)jJ-N|PF=fP5n@Ke%?n4$iC+=$@W}H5HeWWcjT~_$L z%!@X%aY;ZmaC097LPv$H9HY8-exKZb!8lw})%VC{&nnqknKCV@d6Jl9$-Co^@fMY8 z)oR(&wPM+XzFZ{A_zGuBIibEoE{y+bd0x#_<|fZ$fTqpB4CT!`e;e5+X3La)PR-S2 zvAaR8$LEO0uIY(CR7_tpG+%>>6N@}kuep}LOE)aru~N zjUQBT@W7@{(KFp`t!R~j2M7L|A!o-kb&Xu%&Qs6aHuHm%Yoth`Fzksjzc5xFWWZ!!<1hnDM_Wpi7zedXkxe`E;}b;w@IFsR63 zf43@!{Ufq>EB!QyI%_o!+@w|4@lD<5Eoc;f4pnlUT9sC6W#4kmlI4JW@aYcuFpX$C zRIB+;1^vySMNQwrmZ}5VA;_s@a6oUK&g{#2T zm#uNihH_e6B_E|1Y+FtlMtM}XJX+GLbi=9HAR11jdAg>|zsiPndRJL^wGDZNyxN9! zW%1QEtSM*YY>YXrJGSpSWshz@fWKw+Cdp0>kZmE{57yS`r+1aJ>fSAK<9{uq?x%{W z7RYBWU#RaEO?Onku2wO39CwRuufvv2Ipc}lmgms?{k64q<(#@qZcfEd*3j+zT0XCA zyxiuhZc)QS1nwf|>&kic1M>b<%w*v`m{(HQ$tP2n>1C&8&?K;6y=y(C+xHX;1JsqN zTQ;q#rYT>h#EsWN;<4xGdFIIaePv7ijO5cGWvAp(CcIA7w<^{%l-P#jQe?FT9Y#4h zK2%XrWEwoFneHw%YA&a{fB;qrRsPmQ2u!!=cqTPn7tm}KgH%;nIs|6f(YNT1X8B{F z7i8}u7+P^aEspFd7jczXmb_zUQO7Rt(pdlE)o;soRxI19p#6>8c}ZrHFq8F2k2?dG z-%;<8we-Q}Q{D7DYuk+7rOpP`%NF#AZo*<4WL1`A5=`Ay)j)EW_he7Gtmete|2(K# z)@(c3b49LsmhL!wJTitMdcKJs=X=W4m&H2ex$^Er`qHqzS*bd%28wLp!r>|Jsh^PB zX}dvi8%=>pWkq|+8Hk@YtWwQIJg-gETaCqlan!M)x1*KU3uc`VOsv!j?`o z+<-h!$xdS0rmefXRn}KV_IS$s>S)&Cm4puDq7Z0R^E^n5q2y#v?3mh?wC09-m#n5; zjt*lkZ<)Ko<(h}a2G1&*t+Cp( zV>V$k9q3<0a`$c>w;aWXwQN`dLo~xvmT{ZEllEd1D607^&Es`?TfI#_NUt|6Z?t8s zr0=L}VY&iCi0= zX?qxxP`JLUVa8EqcZwtX*!M*Cew9ygCtZFj4uBHZIP9Mv_c)TW$7i>1dXtZs4 zU<8oYWr<~j9JOl|bUCITPSvz2oM7dYm!(Tu8!fvld&if-G27Eb?O6t``50KAab79+ zWaeX@8MpFNc^Y(T=p7prY2H#klgSdXS2tZB?<7E8#NX6h7Jkd!Rqo3!Ct1>J_&kFt zH*m#;;DM~|7&Orub=*Nv8;;9cmu>oN1n`v4WoeC?VKg|Rc%sco`jmp~*^`>X$^c!_ zS02g*4@rpCARb1)kiAdyzG}MYt0;5EsY(^$S02fl=vS&yg6WjyKbTm~^2mhTo3{M1 z99y3IFC7beb}U2;dBc^*dKEiex@fq-uo}d$4&+3n#P9=6bfJc{Skt#mU(w|;P}&`(aOz$|wv!8W zlDSRI+k~|x(8u4bD3ys8fi!c^k{!{-!&aBb#k5D8P-GkTK*f=j2M`9XR=m|kS0MyN zsmemh7=`SxtWb<%COE1yjo4M5$mC1zSY8dU`;bIKapg6LE|W3{8N0h`HniN6(~Ki4 z8ji%JoAFZkmhP^;tag@dZlI9)9K)vpr8W^W*VGI+0aSiGD@fK$lx_80vXqWl1(J;k zK~&g|d=wiCBK;5xm8W>Ucqt7~)?CoUb#^>uSDslo-5Gn~7vkk%u27!ILE?+Jy~&y% z9n-cQw-g77bzl#o>G4;sdwa6putv&L{?a`^mWhIj1hY{-m_soqBlWC$l&|Dlm8Wl- z6^%EgWN25Y++JLhznS4Sl(mvlmlq_*iLq2^$id-a?6C1V5#grHpwXKVm@QMug0uv3 zM`5+j7)zlstp1gQ;=eQGL;UmR46hK2(H9#b`v>K2HS^3C|Bw`a{?R>JJ?zR~@6~&) z=mWm^#kTmYuebkD{^3t2awY!#-U|PiY{iJa-_!Ai8y^pf@Av*5FWQT~@=HGR6U+AS zoge#N@LwlB5MYG@M=KP@;R*$@ZvPbj$IQF8lFybt7N60jzPiJUV0;xg<%>JMQhXQp J9r=!s{{mFRw4ne1 literal 0 HcmV?d00001 diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/SuspensionReason.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/SuspensionReason.php new file mode 100644 index 0000000000000000000000000000000000000000..3a83e693226f4f35a06550d3283b13edd528b7d4 GIT binary patch literal 1185 zcmbVL%Wl&^6s4hbF&iS6#{wayrO*_Cqr%RipxB;<5y7!yr>Mx1HFhScCD&tl#z=s= z;&1pAetM|5Xh8&>!srteXB6fI6D(#a zjLO-J7BFV#d6LpXhtM8DXXHa?J%*vP2{#O+L#{J%TfmawT@%a1~%n!k>r9Eu7n!KoQlTds?s@Fw5{Zl8SKlZ!6OK{elaGlbD;7S+$ZlWL?f~sQcF}0! zhi|ZrLUe*0zrCT|1>4KII~fm_FIw6y&^GaKh@C-bW3O)xrOb708{F)h6Az6;8~Moc zWpPt`0PZ2j8lSp;)&4Cy4YAX=EaZ7u(%Lt)=RhALcZjXNB!t#*;`vhHZ=5ajYYRM< zG133+iFte75OqNA#s{Z%aw);iyK}Z4CXy$MJgpj@N4@pJx7O}Jg-BN+(w8B!R4ny6 zMBkU7U=g(@Yc(v8VXNZ%tM#ZBGYq9>7^`xIQRAX5mFgG!&8google.cloud.databasecenter.v1beta.AdditionalDetail + */ +class AdditionalDetail extends \Google\Protobuf\Internal\Message +{ + /** + * Where the signal is coming from. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalSource signal_source = 1; + */ + protected $signal_source = 0; + /** + * Type of the signal. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 5; + */ + protected $signal_type = 0; + /** + * Event time when signal was recorded by source service. + * + * Generated from protobuf field .google.protobuf.Timestamp signal_event_time = 7; + */ + protected $signal_event_time = null; + protected $detail; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\DatabaseCenter\V1beta\RetentionSettingsInfo $short_backup_retention_info + * Short backup retention information applies to signals with type + * SIGNAL_TYPE_SHORT_BACKUP_RETENTION. + * @type \Google\Cloud\DatabaseCenter\V1beta\BackupRunInfo $backup_run_info + * Backup run information applies to signals with types + * SIGNAL_TYPE_LAST_BACKUP_FAILED and SIGNAL_TYPE_LAST_BACKUP_OLD. + * @type \Google\Cloud\DatabaseCenter\V1beta\SCCInfo $scc_info + * SCC information applies to SCC signals. + * @type \Google\Cloud\DatabaseCenter\V1beta\RecommendationInfo $recommendation_info + * Recommendation information applies to recommendations. + * @type \Google\Cloud\DatabaseCenter\V1beta\AutomatedBackupPolicyInfo $automated_backup_policy_info + * Automated backup policy information applies to signals with type + * SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY. + * @type \Google\Cloud\DatabaseCenter\V1beta\DeletionProtectionInfo $deletion_protection_info + * Deletion protection information applies to signals with type + * [SIGNAL_TYPE_NO_DELETION_PROTECTION][google.cloud.databasecenter.v1beta.SignalType.SIGNAL_TYPE_NO_DELETION_PROTECTION] + * @type \Google\Cloud\DatabaseCenter\V1beta\ResourceSuspensionInfo $resource_suspension_info + * Resource suspension information applies to signals with type + * [SIGNAL_TYPE_RESOURCE_SUSPENDED][google.cloud.databasecenter.v1beta.SignalType.SIGNAL_TYPE_RESOURCE_SUSPENDED]. + * @type \Google\Cloud\DatabaseCenter\V1beta\InefficientQueryInfo $inefficient_query_info + * Inefficient query information applies to signals with type + * [SIGNAL_TYPE_INEFFICIENT_QUERY][google.cloud.databasecenter.v1beta.SignalType.SIGNAL_TYPE_INEFFICIENT_QUERY]. + * @type \Google\Cloud\DatabaseCenter\V1beta\OutdatedMinorVersionInfo $outdated_minor_version_info + * Outdated minor version information applies to signals with type + * SIGNAL_TYPE_OUTDATED_MINOR_VERSION. + * @type \Google\Cloud\DatabaseCenter\V1beta\MaintenanceRecommendationInfo $maintenance_recommendation_info + * Maintenance recommendation information applies to signals + * with type SIGNAL_TYPE_RECOMMENDED_MAINTENANCE_POLICIES. + * @type int $signal_source + * Where the signal is coming from. + * @type int $signal_type + * Type of the signal. + * @type \Google\Protobuf\Timestamp $signal_event_time + * Event time when signal was recorded by source service. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); + parent::__construct($data); + } + + /** + * Short backup retention information applies to signals with type + * SIGNAL_TYPE_SHORT_BACKUP_RETENTION. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.RetentionSettingsInfo short_backup_retention_info = 2; + * @return \Google\Cloud\DatabaseCenter\V1beta\RetentionSettingsInfo|null + */ + public function getShortBackupRetentionInfo() + { + return $this->readOneof(2); + } + + public function hasShortBackupRetentionInfo() + { + return $this->hasOneof(2); + } + + /** + * Short backup retention information applies to signals with type + * SIGNAL_TYPE_SHORT_BACKUP_RETENTION. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.RetentionSettingsInfo short_backup_retention_info = 2; + * @param \Google\Cloud\DatabaseCenter\V1beta\RetentionSettingsInfo $var + * @return $this + */ + public function setShortBackupRetentionInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\RetentionSettingsInfo::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Backup run information applies to signals with types + * SIGNAL_TYPE_LAST_BACKUP_FAILED and SIGNAL_TYPE_LAST_BACKUP_OLD. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.BackupRunInfo backup_run_info = 3; + * @return \Google\Cloud\DatabaseCenter\V1beta\BackupRunInfo|null + */ + public function getBackupRunInfo() + { + return $this->readOneof(3); + } + + public function hasBackupRunInfo() + { + return $this->hasOneof(3); + } + + /** + * Backup run information applies to signals with types + * SIGNAL_TYPE_LAST_BACKUP_FAILED and SIGNAL_TYPE_LAST_BACKUP_OLD. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.BackupRunInfo backup_run_info = 3; + * @param \Google\Cloud\DatabaseCenter\V1beta\BackupRunInfo $var + * @return $this + */ + public function setBackupRunInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\BackupRunInfo::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * SCC information applies to SCC signals. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SCCInfo scc_info = 4; + * @return \Google\Cloud\DatabaseCenter\V1beta\SCCInfo|null + */ + public function getSccInfo() + { + return $this->readOneof(4); + } + + public function hasSccInfo() + { + return $this->hasOneof(4); + } + + /** + * SCC information applies to SCC signals. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SCCInfo scc_info = 4; + * @param \Google\Cloud\DatabaseCenter\V1beta\SCCInfo $var + * @return $this + */ + public function setSccInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\SCCInfo::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Recommendation information applies to recommendations. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.RecommendationInfo recommendation_info = 6; + * @return \Google\Cloud\DatabaseCenter\V1beta\RecommendationInfo|null + */ + public function getRecommendationInfo() + { + return $this->readOneof(6); + } + + public function hasRecommendationInfo() + { + return $this->hasOneof(6); + } + + /** + * Recommendation information applies to recommendations. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.RecommendationInfo recommendation_info = 6; + * @param \Google\Cloud\DatabaseCenter\V1beta\RecommendationInfo $var + * @return $this + */ + public function setRecommendationInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\RecommendationInfo::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Automated backup policy information applies to signals with type + * SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.AutomatedBackupPolicyInfo automated_backup_policy_info = 8; + * @return \Google\Cloud\DatabaseCenter\V1beta\AutomatedBackupPolicyInfo|null + */ + public function getAutomatedBackupPolicyInfo() + { + return $this->readOneof(8); + } + + public function hasAutomatedBackupPolicyInfo() + { + return $this->hasOneof(8); + } + + /** + * Automated backup policy information applies to signals with type + * SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.AutomatedBackupPolicyInfo automated_backup_policy_info = 8; + * @param \Google\Cloud\DatabaseCenter\V1beta\AutomatedBackupPolicyInfo $var + * @return $this + */ + public function setAutomatedBackupPolicyInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\AutomatedBackupPolicyInfo::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * Deletion protection information applies to signals with type + * [SIGNAL_TYPE_NO_DELETION_PROTECTION][google.cloud.databasecenter.v1beta.SignalType.SIGNAL_TYPE_NO_DELETION_PROTECTION] + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.DeletionProtectionInfo deletion_protection_info = 9; + * @return \Google\Cloud\DatabaseCenter\V1beta\DeletionProtectionInfo|null + */ + public function getDeletionProtectionInfo() + { + return $this->readOneof(9); + } + + public function hasDeletionProtectionInfo() + { + return $this->hasOneof(9); + } + + /** + * Deletion protection information applies to signals with type + * [SIGNAL_TYPE_NO_DELETION_PROTECTION][google.cloud.databasecenter.v1beta.SignalType.SIGNAL_TYPE_NO_DELETION_PROTECTION] + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.DeletionProtectionInfo deletion_protection_info = 9; + * @param \Google\Cloud\DatabaseCenter\V1beta\DeletionProtectionInfo $var + * @return $this + */ + public function setDeletionProtectionInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\DeletionProtectionInfo::class); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * Resource suspension information applies to signals with type + * [SIGNAL_TYPE_RESOURCE_SUSPENDED][google.cloud.databasecenter.v1beta.SignalType.SIGNAL_TYPE_RESOURCE_SUSPENDED]. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.ResourceSuspensionInfo resource_suspension_info = 10; + * @return \Google\Cloud\DatabaseCenter\V1beta\ResourceSuspensionInfo|null + */ + public function getResourceSuspensionInfo() + { + return $this->readOneof(10); + } + + public function hasResourceSuspensionInfo() + { + return $this->hasOneof(10); + } + + /** + * Resource suspension information applies to signals with type + * [SIGNAL_TYPE_RESOURCE_SUSPENDED][google.cloud.databasecenter.v1beta.SignalType.SIGNAL_TYPE_RESOURCE_SUSPENDED]. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.ResourceSuspensionInfo resource_suspension_info = 10; + * @param \Google\Cloud\DatabaseCenter\V1beta\ResourceSuspensionInfo $var + * @return $this + */ + public function setResourceSuspensionInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\ResourceSuspensionInfo::class); + $this->writeOneof(10, $var); + + return $this; + } + + /** + * Inefficient query information applies to signals with type + * [SIGNAL_TYPE_INEFFICIENT_QUERY][google.cloud.databasecenter.v1beta.SignalType.SIGNAL_TYPE_INEFFICIENT_QUERY]. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.InefficientQueryInfo inefficient_query_info = 11; + * @return \Google\Cloud\DatabaseCenter\V1beta\InefficientQueryInfo|null + */ + public function getInefficientQueryInfo() + { + return $this->readOneof(11); + } + + public function hasInefficientQueryInfo() + { + return $this->hasOneof(11); + } + + /** + * Inefficient query information applies to signals with type + * [SIGNAL_TYPE_INEFFICIENT_QUERY][google.cloud.databasecenter.v1beta.SignalType.SIGNAL_TYPE_INEFFICIENT_QUERY]. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.InefficientQueryInfo inefficient_query_info = 11; + * @param \Google\Cloud\DatabaseCenter\V1beta\InefficientQueryInfo $var + * @return $this + */ + public function setInefficientQueryInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\InefficientQueryInfo::class); + $this->writeOneof(11, $var); + + return $this; + } + + /** + * Outdated minor version information applies to signals with type + * SIGNAL_TYPE_OUTDATED_MINOR_VERSION. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.OutdatedMinorVersionInfo outdated_minor_version_info = 12; + * @return \Google\Cloud\DatabaseCenter\V1beta\OutdatedMinorVersionInfo|null + */ + public function getOutdatedMinorVersionInfo() + { + return $this->readOneof(12); + } + + public function hasOutdatedMinorVersionInfo() + { + return $this->hasOneof(12); + } + + /** + * Outdated minor version information applies to signals with type + * SIGNAL_TYPE_OUTDATED_MINOR_VERSION. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.OutdatedMinorVersionInfo outdated_minor_version_info = 12; + * @param \Google\Cloud\DatabaseCenter\V1beta\OutdatedMinorVersionInfo $var + * @return $this + */ + public function setOutdatedMinorVersionInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\OutdatedMinorVersionInfo::class); + $this->writeOneof(12, $var); + + return $this; + } + + /** + * Maintenance recommendation information applies to signals + * with type SIGNAL_TYPE_RECOMMENDED_MAINTENANCE_POLICIES. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.MaintenanceRecommendationInfo maintenance_recommendation_info = 13; + * @return \Google\Cloud\DatabaseCenter\V1beta\MaintenanceRecommendationInfo|null + */ + public function getMaintenanceRecommendationInfo() + { + return $this->readOneof(13); + } + + public function hasMaintenanceRecommendationInfo() + { + return $this->hasOneof(13); + } + + /** + * Maintenance recommendation information applies to signals + * with type SIGNAL_TYPE_RECOMMENDED_MAINTENANCE_POLICIES. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.MaintenanceRecommendationInfo maintenance_recommendation_info = 13; + * @param \Google\Cloud\DatabaseCenter\V1beta\MaintenanceRecommendationInfo $var + * @return $this + */ + public function setMaintenanceRecommendationInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\MaintenanceRecommendationInfo::class); + $this->writeOneof(13, $var); + + return $this; + } + + /** + * Where the signal is coming from. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalSource signal_source = 1; + * @return int + */ + public function getSignalSource() + { + return $this->signal_source; + } + + /** + * Where the signal is coming from. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalSource signal_source = 1; + * @param int $var + * @return $this + */ + public function setSignalSource($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\SignalSource::class); + $this->signal_source = $var; + + return $this; + } + + /** + * Type of the signal. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 5; + * @return int + */ + public function getSignalType() + { + return $this->signal_type; + } + + /** + * Type of the signal. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 5; + * @param int $var + * @return $this + */ + public function setSignalType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\SignalType::class); + $this->signal_type = $var; + + return $this; + } + + /** + * Event time when signal was recorded by source service. + * + * Generated from protobuf field .google.protobuf.Timestamp signal_event_time = 7; + * @return \Google\Protobuf\Timestamp|null + */ + public function getSignalEventTime() + { + return $this->signal_event_time; + } + + public function hasSignalEventTime() + { + return isset($this->signal_event_time); + } + + public function clearSignalEventTime() + { + unset($this->signal_event_time); + } + + /** + * Event time when signal was recorded by source service. + * + * Generated from protobuf field .google.protobuf.Timestamp signal_event_time = 7; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setSignalEventTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->signal_event_time = $var; + + return $this; + } + + /** + * @return string + */ + public function getDetail() + { + return $this->whichOneof("detail"); + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateFleetRequest.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateFleetRequest.php new file mode 100644 index 00000000000..934252bd5c2 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateFleetRequest.php @@ -0,0 +1,505 @@ +google.cloud.databasecenter.v1beta.AggregateFleetRequest + */ +class AggregateFleetRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Parent can be a project, a folder, or an organization. The search + * is limited to the resources within the `scope`. + * The allowed values are: + * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") + * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") + * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") + * * organizations/{ORGANIZATION_NUMBER} (e.g., + * "organizations/123456") + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parent = ''; + /** + * Optional. The expression to filter resources. + * Supported fields are: `full_resource_name`, `resource_type`, `container`, + * `product.type`, `product.engine`, `product.version`, `location`, + * `labels`, `issues`, fields of availability_info, data_protection_info, + * 'resource_name', etc. + * The expression is a list of zero or more restrictions combined via logical + * operators `AND` and `OR`. When `AND` and `OR` are both used in the + * expression, parentheses must be appropriately used to group the + * combinations. + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` + * + * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. A field that statistics are grouped by. + * Valid values are any combination of the following: + * * container + * * product.type + * * product.engine + * * product.version + * * location + * * sub_resource_type + * * management_type + * * tag.key + * * tag.value + * * tag.source + * * tag.inherited + * * label.key + * * label.value + * * label.source + * * has_maintenance_schedule + * * has_deny_maintenance_schedules + * Comma separated list. + * + * Generated from protobuf field string group_by = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $group_by = ''; + /** + * Optional. Valid values to order by are: + * * resource_groups_count + * * resources_count + * * and all fields supported by `group_by` + * The default order is ascending. Add "DESC" after the field name to indicate + * descending order. Add "ASC" after the field name to indicate ascending + * order. It supports ordering using multiple fields. + * For example: + * `order_by = "resource_groups_count"` sorts response in ascending order + * `order_by = "resource_groups_count DESC"` sorts response in descending + * order + * `order_by = "product.type, product.version DESC, location"` orders by type + * in ascending order, version in descending order and location in ascending + * order + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. If unspecified, at most 50 items will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `AggregateFleet` call. + * Provide this to retrieve the subsequent page. + * All other parameters should match the parameters in the call that provided + * the page token except for page_size which can be different. + * + * Generated from protobuf field string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. The baseline date w.r.t. which the delta counts are calculated. + * If not set, delta counts are not included in the response and the response + * indicates the current state of the fleet. + * + * Generated from protobuf field optional .google.type.Date baseline_date = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $baseline_date = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Parent can be a project, a folder, or an organization. The search + * is limited to the resources within the `scope`. + * The allowed values are: + * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") + * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") + * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") + * * organizations/{ORGANIZATION_NUMBER} (e.g., + * "organizations/123456") + * @type string $filter + * Optional. The expression to filter resources. + * Supported fields are: `full_resource_name`, `resource_type`, `container`, + * `product.type`, `product.engine`, `product.version`, `location`, + * `labels`, `issues`, fields of availability_info, data_protection_info, + * 'resource_name', etc. + * The expression is a list of zero or more restrictions combined via logical + * operators `AND` and `OR`. When `AND` and `OR` are both used in the + * expression, parentheses must be appropriately used to group the + * combinations. + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` + * @type string $group_by + * Optional. A field that statistics are grouped by. + * Valid values are any combination of the following: + * * container + * * product.type + * * product.engine + * * product.version + * * location + * * sub_resource_type + * * management_type + * * tag.key + * * tag.value + * * tag.source + * * tag.inherited + * * label.key + * * label.value + * * label.source + * * has_maintenance_schedule + * * has_deny_maintenance_schedules + * Comma separated list. + * @type string $order_by + * Optional. Valid values to order by are: + * * resource_groups_count + * * resources_count + * * and all fields supported by `group_by` + * The default order is ascending. Add "DESC" after the field name to indicate + * descending order. Add "ASC" after the field name to indicate ascending + * order. It supports ordering using multiple fields. + * For example: + * `order_by = "resource_groups_count"` sorts response in ascending order + * `order_by = "resource_groups_count DESC"` sorts response in descending + * order + * `order_by = "product.type, product.version DESC, location"` orders by type + * in ascending order, version in descending order and location in ascending + * order + * @type int $page_size + * Optional. If unspecified, at most 50 items will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `AggregateFleet` call. + * Provide this to retrieve the subsequent page. + * All other parameters should match the parameters in the call that provided + * the page token except for page_size which can be different. + * @type \Google\Type\Date $baseline_date + * Optional. The baseline date w.r.t. which the delta counts are calculated. + * If not set, delta counts are not included in the response and the response + * indicates the current state of the fleet. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. Parent can be a project, a folder, or an organization. The search + * is limited to the resources within the `scope`. + * The allowed values are: + * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") + * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") + * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") + * * organizations/{ORGANIZATION_NUMBER} (e.g., + * "organizations/123456") + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Parent can be a project, a folder, or an organization. The search + * is limited to the resources within the `scope`. + * The allowed values are: + * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") + * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") + * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") + * * organizations/{ORGANIZATION_NUMBER} (e.g., + * "organizations/123456") + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The expression to filter resources. + * Supported fields are: `full_resource_name`, `resource_type`, `container`, + * `product.type`, `product.engine`, `product.version`, `location`, + * `labels`, `issues`, fields of availability_info, data_protection_info, + * 'resource_name', etc. + * The expression is a list of zero or more restrictions combined via logical + * operators `AND` and `OR`. When `AND` and `OR` are both used in the + * expression, parentheses must be appropriately used to group the + * combinations. + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` + * + * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. The expression to filter resources. + * Supported fields are: `full_resource_name`, `resource_type`, `container`, + * `product.type`, `product.engine`, `product.version`, `location`, + * `labels`, `issues`, fields of availability_info, data_protection_info, + * 'resource_name', etc. + * The expression is a list of zero or more restrictions combined via logical + * operators `AND` and `OR`. When `AND` and `OR` are both used in the + * expression, parentheses must be appropriately used to group the + * combinations. + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` + * + * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. A field that statistics are grouped by. + * Valid values are any combination of the following: + * * container + * * product.type + * * product.engine + * * product.version + * * location + * * sub_resource_type + * * management_type + * * tag.key + * * tag.value + * * tag.source + * * tag.inherited + * * label.key + * * label.value + * * label.source + * * has_maintenance_schedule + * * has_deny_maintenance_schedules + * Comma separated list. + * + * Generated from protobuf field string group_by = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getGroupBy() + { + return $this->group_by; + } + + /** + * Optional. A field that statistics are grouped by. + * Valid values are any combination of the following: + * * container + * * product.type + * * product.engine + * * product.version + * * location + * * sub_resource_type + * * management_type + * * tag.key + * * tag.value + * * tag.source + * * tag.inherited + * * label.key + * * label.value + * * label.source + * * has_maintenance_schedule + * * has_deny_maintenance_schedules + * Comma separated list. + * + * Generated from protobuf field string group_by = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setGroupBy($var) + { + GPBUtil::checkString($var, True); + $this->group_by = $var; + + return $this; + } + + /** + * Optional. Valid values to order by are: + * * resource_groups_count + * * resources_count + * * and all fields supported by `group_by` + * The default order is ascending. Add "DESC" after the field name to indicate + * descending order. Add "ASC" after the field name to indicate ascending + * order. It supports ordering using multiple fields. + * For example: + * `order_by = "resource_groups_count"` sorts response in ascending order + * `order_by = "resource_groups_count DESC"` sorts response in descending + * order + * `order_by = "product.type, product.version DESC, location"` orders by type + * in ascending order, version in descending order and location in ascending + * order + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Valid values to order by are: + * * resource_groups_count + * * resources_count + * * and all fields supported by `group_by` + * The default order is ascending. Add "DESC" after the field name to indicate + * descending order. Add "ASC" after the field name to indicate ascending + * order. It supports ordering using multiple fields. + * For example: + * `order_by = "resource_groups_count"` sorts response in ascending order + * `order_by = "resource_groups_count DESC"` sorts response in descending + * order + * `order_by = "product.type, product.version DESC, location"` orders by type + * in ascending order, version in descending order and location in ascending + * order + * + * 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. If unspecified, at most 50 items will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. If unspecified, at most 50 items will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `AggregateFleet` call. + * Provide this to retrieve the subsequent page. + * All other parameters should match the parameters in the call that provided + * the page token except for page_size which can be different. + * + * Generated from protobuf field string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `AggregateFleet` call. + * Provide this to retrieve the subsequent page. + * All other parameters should match the parameters in the call that provided + * the page token except for page_size which can be different. + * + * Generated from protobuf field string page_token = 6 [(.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. The baseline date w.r.t. which the delta counts are calculated. + * If not set, delta counts are not included in the response and the response + * indicates the current state of the fleet. + * + * Generated from protobuf field optional .google.type.Date baseline_date = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Type\Date|null + */ + public function getBaselineDate() + { + return $this->baseline_date; + } + + public function hasBaselineDate() + { + return isset($this->baseline_date); + } + + public function clearBaselineDate() + { + unset($this->baseline_date); + } + + /** + * Optional. The baseline date w.r.t. which the delta counts are calculated. + * If not set, delta counts are not included in the response and the response + * indicates the current state of the fleet. + * + * Generated from protobuf field optional .google.type.Date baseline_date = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Type\Date $var + * @return $this + */ + public function setBaselineDate($var) + { + GPBUtil::checkMessage($var, \Google\Type\Date::class); + $this->baseline_date = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateFleetResponse.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateFleetResponse.php new file mode 100644 index 00000000000..f9a2cbf20b3 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateFleetResponse.php @@ -0,0 +1,216 @@ +google.cloud.databasecenter.v1beta.AggregateFleetResponse + */ +class AggregateFleetResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Represents a row grouped by the fields in the input. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.AggregateFleetRow rows = 1; + */ + private $rows; + /** + * Count of all resource groups in the fleet. This includes counts from all + * pages. + * + * Generated from protobuf field int32 resource_groups_total_count = 2; + */ + protected $resource_groups_total_count = 0; + /** + * Count of all resources in the fleet. This includes counts from all pages. + * + * Generated from protobuf field int32 resource_total_count = 3; + */ + protected $resource_total_count = 0; + /** + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 4; + */ + protected $next_page_token = ''; + /** + * Unordered list. List of unreachable regions from where data could not be + * retrieved. + * + * Generated from protobuf field repeated string unreachable = 5 [(.google.api.field_behavior) = UNORDERED_LIST]; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\DatabaseCenter\V1beta\AggregateFleetRow>|\Google\Protobuf\Internal\RepeatedField $rows + * Represents a row grouped by the fields in the input. + * @type int $resource_groups_total_count + * Count of all resource groups in the fleet. This includes counts from all + * pages. + * @type int $resource_total_count + * Count of all resources in the fleet. This includes counts from all pages. + * @type string $next_page_token + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable + * Unordered list. List of unreachable regions from where data could not be + * retrieved. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); + parent::__construct($data); + } + + /** + * Represents a row grouped by the fields in the input. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.AggregateFleetRow rows = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRows() + { + return $this->rows; + } + + /** + * Represents a row grouped by the fields in the input. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.AggregateFleetRow rows = 1; + * @param array<\Google\Cloud\DatabaseCenter\V1beta\AggregateFleetRow>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRows($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\AggregateFleetRow::class); + $this->rows = $arr; + + return $this; + } + + /** + * Count of all resource groups in the fleet. This includes counts from all + * pages. + * + * Generated from protobuf field int32 resource_groups_total_count = 2; + * @return int + */ + public function getResourceGroupsTotalCount() + { + return $this->resource_groups_total_count; + } + + /** + * Count of all resource groups in the fleet. This includes counts from all + * pages. + * + * Generated from protobuf field int32 resource_groups_total_count = 2; + * @param int $var + * @return $this + */ + public function setResourceGroupsTotalCount($var) + { + GPBUtil::checkInt32($var); + $this->resource_groups_total_count = $var; + + return $this; + } + + /** + * Count of all resources in the fleet. This includes counts from all pages. + * + * Generated from protobuf field int32 resource_total_count = 3; + * @return int + */ + public function getResourceTotalCount() + { + return $this->resource_total_count; + } + + /** + * Count of all resources in the fleet. This includes counts from all pages. + * + * Generated from protobuf field int32 resource_total_count = 3; + * @param int $var + * @return $this + */ + public function setResourceTotalCount($var) + { + GPBUtil::checkInt32($var); + $this->resource_total_count = $var; + + return $this; + } + + /** + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 4; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 4; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Unordered list. List of unreachable regions from where data could not be + * retrieved. + * + * Generated from protobuf field repeated string unreachable = 5 [(.google.api.field_behavior) = UNORDERED_LIST]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Unordered list. List of unreachable regions from where data could not be + * retrieved. + * + * Generated from protobuf field repeated string unreachable = 5 [(.google.api.field_behavior) = UNORDERED_LIST]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateFleetRow.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateFleetRow.php new file mode 100644 index 00000000000..665d25b44b1 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateFleetRow.php @@ -0,0 +1,183 @@ +google.cloud.databasecenter.v1beta.AggregateFleetRow + */ +class AggregateFleetRow extends \Google\Protobuf\Internal\Message +{ + /** + * Group by dimension. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Dimension dimension = 1; + */ + private $dimension; + /** + * Number of resource groups that have a particular dimension. + * + * Generated from protobuf field int32 resource_groups_count = 2; + */ + protected $resource_groups_count = 0; + /** + * Number of resources that have a particular dimension. + * + * Generated from protobuf field int32 resources_count = 3; + */ + protected $resources_count = 0; + /** + * Optional. Delta counts and details of resources which were added to/deleted + * from fleet. + * + * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $delta_details = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\DatabaseCenter\V1beta\Dimension>|\Google\Protobuf\Internal\RepeatedField $dimension + * Group by dimension. + * @type int $resource_groups_count + * Number of resource groups that have a particular dimension. + * @type int $resources_count + * Number of resources that have a particular dimension. + * @type \Google\Cloud\DatabaseCenter\V1beta\DeltaDetails $delta_details + * Optional. Delta counts and details of resources which were added to/deleted + * from fleet. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); + parent::__construct($data); + } + + /** + * Group by dimension. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Dimension dimension = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDimension() + { + return $this->dimension; + } + + /** + * Group by dimension. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Dimension dimension = 1; + * @param array<\Google\Cloud\DatabaseCenter\V1beta\Dimension>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDimension($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\Dimension::class); + $this->dimension = $arr; + + return $this; + } + + /** + * Number of resource groups that have a particular dimension. + * + * Generated from protobuf field int32 resource_groups_count = 2; + * @return int + */ + public function getResourceGroupsCount() + { + return $this->resource_groups_count; + } + + /** + * Number of resource groups that have a particular dimension. + * + * Generated from protobuf field int32 resource_groups_count = 2; + * @param int $var + * @return $this + */ + public function setResourceGroupsCount($var) + { + GPBUtil::checkInt32($var); + $this->resource_groups_count = $var; + + return $this; + } + + /** + * Number of resources that have a particular dimension. + * + * Generated from protobuf field int32 resources_count = 3; + * @return int + */ + public function getResourcesCount() + { + return $this->resources_count; + } + + /** + * Number of resources that have a particular dimension. + * + * Generated from protobuf field int32 resources_count = 3; + * @param int $var + * @return $this + */ + public function setResourcesCount($var) + { + GPBUtil::checkInt32($var); + $this->resources_count = $var; + + return $this; + } + + /** + * Optional. Delta counts and details of resources which were added to/deleted + * from fleet. + * + * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\DatabaseCenter\V1beta\DeltaDetails|null + */ + public function getDeltaDetails() + { + return $this->delta_details; + } + + public function hasDeltaDetails() + { + return isset($this->delta_details); + } + + public function clearDeltaDetails() + { + unset($this->delta_details); + } + + /** + * Optional. Delta counts and details of resources which were added to/deleted + * from fleet. + * + * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\DatabaseCenter\V1beta\DeltaDetails $var + * @return $this + */ + public function setDeltaDetails($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\DeltaDetails::class); + $this->delta_details = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateIssueStatsRequest.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateIssueStatsRequest.php new file mode 100644 index 00000000000..19e51b7e5c7 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateIssueStatsRequest.php @@ -0,0 +1,260 @@ +google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest + */ +class AggregateIssueStatsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Parent can be a project, a folder, or an organization. The search + * is limited to the resources within the `scope`. + * The allowed values are: + * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") + * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") + * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") + * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parent = ''; + /** + * Optional. The expression to filter resources. + * Supported fields are: `full_resource_name`, `resource_type`, `container`, + * `product.type`, `product.engine`, `product.version`, `location`, + * `labels`, `issues`, fields of availability_info, + * data_protection_info,'resource_name', etc. + * The expression is a list of zero or more restrictions combined via logical + * operators `AND` and `OR`. When `AND` and `OR` are both used in the + * expression, parentheses must be appropriately used to group the + * combinations. + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` + * + * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Lists of signal types that are issues. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $signal_type_groups; + /** + * Optional. The baseline date w.r.t. which the delta counts are calculated. + * If not set, delta counts are not included in the response and the response + * indicates the current state of the fleet. + * + * Generated from protobuf field optional .google.type.Date baseline_date = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $baseline_date = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Parent can be a project, a folder, or an organization. The search + * is limited to the resources within the `scope`. + * The allowed values are: + * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") + * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") + * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") + * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + * @type string $filter + * Optional. The expression to filter resources. + * Supported fields are: `full_resource_name`, `resource_type`, `container`, + * `product.type`, `product.engine`, `product.version`, `location`, + * `labels`, `issues`, fields of availability_info, + * data_protection_info,'resource_name', etc. + * The expression is a list of zero or more restrictions combined via logical + * operators `AND` and `OR`. When `AND` and `OR` are both used in the + * expression, parentheses must be appropriately used to group the + * combinations. + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` + * @type array<\Google\Cloud\DatabaseCenter\V1beta\SignalTypeGroup>|\Google\Protobuf\Internal\RepeatedField $signal_type_groups + * Optional. Lists of signal types that are issues. + * @type \Google\Type\Date $baseline_date + * Optional. The baseline date w.r.t. which the delta counts are calculated. + * If not set, delta counts are not included in the response and the response + * indicates the current state of the fleet. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. Parent can be a project, a folder, or an organization. The search + * is limited to the resources within the `scope`. + * The allowed values are: + * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") + * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") + * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") + * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Parent can be a project, a folder, or an organization. The search + * is limited to the resources within the `scope`. + * The allowed values are: + * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") + * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") + * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") + * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The expression to filter resources. + * Supported fields are: `full_resource_name`, `resource_type`, `container`, + * `product.type`, `product.engine`, `product.version`, `location`, + * `labels`, `issues`, fields of availability_info, + * data_protection_info,'resource_name', etc. + * The expression is a list of zero or more restrictions combined via logical + * operators `AND` and `OR`. When `AND` and `OR` are both used in the + * expression, parentheses must be appropriately used to group the + * combinations. + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` + * + * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. The expression to filter resources. + * Supported fields are: `full_resource_name`, `resource_type`, `container`, + * `product.type`, `product.engine`, `product.version`, `location`, + * `labels`, `issues`, fields of availability_info, + * data_protection_info,'resource_name', etc. + * The expression is a list of zero or more restrictions combined via logical + * operators `AND` and `OR`. When `AND` and `OR` are both used in the + * expression, parentheses must be appropriately used to group the + * combinations. + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` + * + * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Lists of signal types that are issues. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSignalTypeGroups() + { + return $this->signal_type_groups; + } + + /** + * Optional. Lists of signal types that are issues. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Cloud\DatabaseCenter\V1beta\SignalTypeGroup>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSignalTypeGroups($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\SignalTypeGroup::class); + $this->signal_type_groups = $arr; + + return $this; + } + + /** + * Optional. The baseline date w.r.t. which the delta counts are calculated. + * If not set, delta counts are not included in the response and the response + * indicates the current state of the fleet. + * + * Generated from protobuf field optional .google.type.Date baseline_date = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Type\Date|null + */ + public function getBaselineDate() + { + return $this->baseline_date; + } + + public function hasBaselineDate() + { + return isset($this->baseline_date); + } + + public function clearBaselineDate() + { + unset($this->baseline_date); + } + + /** + * Optional. The baseline date w.r.t. which the delta counts are calculated. + * If not set, delta counts are not included in the response and the response + * indicates the current state of the fleet. + * + * Generated from protobuf field optional .google.type.Date baseline_date = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Type\Date $var + * @return $this + */ + public function setBaselineDate($var) + { + GPBUtil::checkMessage($var, \Google\Type\Date::class); + $this->baseline_date = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateIssueStatsResponse.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateIssueStatsResponse.php new file mode 100644 index 00000000000..250019fc9b2 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateIssueStatsResponse.php @@ -0,0 +1,178 @@ +google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse + */ +class AggregateIssueStatsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of issue group stats where each group contains stats for resources + * having a particular combination of relevant issues. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.IssueGroupStats issue_group_stats = 1; + */ + private $issue_group_stats; + /** + * Total count of the resources filtered in based on the user given filter. + * + * Generated from protobuf field int32 total_resources_count = 2; + */ + protected $total_resources_count = 0; + /** + * Total count of the resource filtered in based on the user given filter. + * + * Generated from protobuf field int32 total_resource_groups_count = 3; + */ + protected $total_resource_groups_count = 0; + /** + * Unordered list. List of unreachable regions from where data could not be + * retrieved. + * + * Generated from protobuf field repeated string unreachable = 4 [(.google.api.field_behavior) = UNORDERED_LIST]; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\DatabaseCenter\V1beta\IssueGroupStats>|\Google\Protobuf\Internal\RepeatedField $issue_group_stats + * List of issue group stats where each group contains stats for resources + * having a particular combination of relevant issues. + * @type int $total_resources_count + * Total count of the resources filtered in based on the user given filter. + * @type int $total_resource_groups_count + * Total count of the resource filtered in based on the user given filter. + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable + * Unordered list. List of unreachable regions from where data could not be + * retrieved. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); + parent::__construct($data); + } + + /** + * List of issue group stats where each group contains stats for resources + * having a particular combination of relevant issues. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.IssueGroupStats issue_group_stats = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getIssueGroupStats() + { + return $this->issue_group_stats; + } + + /** + * List of issue group stats where each group contains stats for resources + * having a particular combination of relevant issues. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.IssueGroupStats issue_group_stats = 1; + * @param array<\Google\Cloud\DatabaseCenter\V1beta\IssueGroupStats>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setIssueGroupStats($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\IssueGroupStats::class); + $this->issue_group_stats = $arr; + + return $this; + } + + /** + * Total count of the resources filtered in based on the user given filter. + * + * Generated from protobuf field int32 total_resources_count = 2; + * @return int + */ + public function getTotalResourcesCount() + { + return $this->total_resources_count; + } + + /** + * Total count of the resources filtered in based on the user given filter. + * + * Generated from protobuf field int32 total_resources_count = 2; + * @param int $var + * @return $this + */ + public function setTotalResourcesCount($var) + { + GPBUtil::checkInt32($var); + $this->total_resources_count = $var; + + return $this; + } + + /** + * Total count of the resource filtered in based on the user given filter. + * + * Generated from protobuf field int32 total_resource_groups_count = 3; + * @return int + */ + public function getTotalResourceGroupsCount() + { + return $this->total_resource_groups_count; + } + + /** + * Total count of the resource filtered in based on the user given filter. + * + * Generated from protobuf field int32 total_resource_groups_count = 3; + * @param int $var + * @return $this + */ + public function setTotalResourceGroupsCount($var) + { + GPBUtil::checkInt32($var); + $this->total_resource_groups_count = $var; + + return $this; + } + + /** + * Unordered list. List of unreachable regions from where data could not be + * retrieved. + * + * Generated from protobuf field repeated string unreachable = 4 [(.google.api.field_behavior) = UNORDERED_LIST]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Unordered list. List of unreachable regions from where data could not be + * retrieved. + * + * Generated from protobuf field repeated string unreachable = 4 [(.google.api.field_behavior) = UNORDERED_LIST]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AutomatedBackupPolicyInfo.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AutomatedBackupPolicyInfo.php new file mode 100644 index 00000000000..6cfa4694389 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AutomatedBackupPolicyInfo.php @@ -0,0 +1,111 @@ +google.cloud.databasecenter.v1beta.AutomatedBackupPolicyInfo + */ +class AutomatedBackupPolicyInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Sub resource details associated with the signal. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResource sub_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $sub_resource = null; + /** + * Is automated policy enabled. + * + * Generated from protobuf field bool is_enabled = 2; + */ + protected $is_enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\DatabaseCenter\V1beta\SubResource $sub_resource + * Optional. Sub resource details associated with the signal. + * @type bool $is_enabled + * Is automated policy enabled. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Sub resource details associated with the signal. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResource sub_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\DatabaseCenter\V1beta\SubResource|null + */ + public function getSubResource() + { + return $this->sub_resource; + } + + public function hasSubResource() + { + return isset($this->sub_resource); + } + + public function clearSubResource() + { + unset($this->sub_resource); + } + + /** + * Optional. Sub resource details associated with the signal. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResource sub_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\DatabaseCenter\V1beta\SubResource $var + * @return $this + */ + public function setSubResource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\SubResource::class); + $this->sub_resource = $var; + + return $this; + } + + /** + * Is automated policy enabled. + * + * Generated from protobuf field bool is_enabled = 2; + * @return bool + */ + public function getIsEnabled() + { + return $this->is_enabled; + } + + /** + * Is automated policy enabled. + * + * Generated from protobuf field bool is_enabled = 2; + * @param bool $var + * @return $this + */ + public function setIsEnabled($var) + { + GPBUtil::checkBool($var); + $this->is_enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/BackupDRConfig.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/BackupDRConfig.php new file mode 100644 index 00000000000..8f997752ee0 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/BackupDRConfig.php @@ -0,0 +1,78 @@ +google.cloud.databasecenter.v1beta.BackupDRConfig + */ +class BackupDRConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Indicates if the resource is managed by BackupDR. + * + * Generated from protobuf field optional bool backupdr_managed = 1; + */ + protected $backupdr_managed = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $backupdr_managed + * Indicates if the resource is managed by BackupDR. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); + parent::__construct($data); + } + + /** + * Indicates if the resource is managed by BackupDR. + * + * Generated from protobuf field optional bool backupdr_managed = 1; + * @return bool + */ + public function getBackupdrManaged() + { + return isset($this->backupdr_managed) ? $this->backupdr_managed : false; + } + + public function hasBackupdrManaged() + { + return isset($this->backupdr_managed); + } + + public function clearBackupdrManaged() + { + unset($this->backupdr_managed); + } + + /** + * Indicates if the resource is managed by BackupDR. + * + * Generated from protobuf field optional bool backupdr_managed = 1; + * @param bool $var + * @return $this + */ + public function setBackupdrManaged($var) + { + GPBUtil::checkBool($var); + $this->backupdr_managed = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/BackupRunInfo.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/BackupRunInfo.php new file mode 100644 index 00000000000..ced3b74eb8a --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/BackupRunInfo.php @@ -0,0 +1,271 @@ +google.cloud.databasecenter.v1beta.BackupRunInfo + */ +class BackupRunInfo extends \Google\Protobuf\Internal\Message +{ + /** + * The time the backup operation started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; + */ + protected $start_time = null; + /** + * The time the backup operation completed. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 6; + */ + protected $end_time = null; + /** + * Output only. The state of this run. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.BackupRunInfo.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Additional information about the error encountered. + * + * Generated from protobuf field string error_message = 3; + */ + protected $error_message = ''; + /** + * Optional. OperationErrorType to expose specific error when backup operation + * of database resource failed, that is state is FAILED. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.OperationErrorType operation_error_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $operation_error_type = 0; + /** + * Optional. Sub resource details associated with the backup run. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResource sub_resource = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $sub_resource = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $start_time + * The time the backup operation started. + * @type \Google\Protobuf\Timestamp $end_time + * The time the backup operation completed. + * @type int $state + * Output only. The state of this run. + * @type string $error_message + * Additional information about the error encountered. + * @type int $operation_error_type + * Optional. OperationErrorType to expose specific error when backup operation + * of database resource failed, that is state is FAILED. + * @type \Google\Cloud\DatabaseCenter\V1beta\SubResource $sub_resource + * Optional. Sub resource details associated with the backup run. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); + parent::__construct($data); + } + + /** + * The time the backup operation started. + * + * 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); + } + + /** + * The time the backup operation started. + * + * 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; + } + + /** + * The time the backup operation completed. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 6; + * @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); + } + + /** + * The time the backup operation completed. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 6; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + + /** + * Output only. The state of this run. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.BackupRunInfo.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. The state of this run. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.BackupRunInfo.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\BackupRunInfo\State::class); + $this->state = $var; + + return $this; + } + + /** + * Additional information about the error encountered. + * + * Generated from protobuf field string error_message = 3; + * @return string + */ + public function getErrorMessage() + { + return $this->error_message; + } + + /** + * Additional information about the error encountered. + * + * Generated from protobuf field string error_message = 3; + * @param string $var + * @return $this + */ + public function setErrorMessage($var) + { + GPBUtil::checkString($var, True); + $this->error_message = $var; + + return $this; + } + + /** + * Optional. OperationErrorType to expose specific error when backup operation + * of database resource failed, that is state is FAILED. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.OperationErrorType operation_error_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getOperationErrorType() + { + return $this->operation_error_type; + } + + /** + * Optional. OperationErrorType to expose specific error when backup operation + * of database resource failed, that is state is FAILED. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.OperationErrorType operation_error_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setOperationErrorType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\OperationErrorType::class); + $this->operation_error_type = $var; + + return $this; + } + + /** + * Optional. Sub resource details associated with the backup run. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResource sub_resource = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\DatabaseCenter\V1beta\SubResource|null + */ + public function getSubResource() + { + return $this->sub_resource; + } + + public function hasSubResource() + { + return isset($this->sub_resource); + } + + public function clearSubResource() + { + unset($this->sub_resource); + } + + /** + * Optional. Sub resource details associated with the backup run. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResource sub_resource = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\DatabaseCenter\V1beta\SubResource $var + * @return $this + */ + public function setSubResource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\SubResource::class); + $this->sub_resource = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/BackupRunInfo/State.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/BackupRunInfo/State.php new file mode 100644 index 00000000000..5064ee1ef73 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/BackupRunInfo/State.php @@ -0,0 +1,64 @@ +google.cloud.databasecenter.v1beta.BackupRunInfo.State + */ +class State +{ + /** + * Unspecified. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The backup succeeded. + * + * Generated from protobuf enum SUCCEEDED = 1; + */ + const SUCCEEDED = 1; + /** + * The backup was unsuccessful. + * + * Generated from protobuf enum FAILED = 2; + */ + const FAILED = 2; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::SUCCEEDED => 'SUCCEEDED', + self::FAILED => 'FAILED', + ]; + + 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); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(State::class, \Google\Cloud\DatabaseCenter\V1beta\BackupRunInfo_State::class); + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DatabaseResource.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DatabaseResource.php new file mode 100644 index 00000000000..55a3424d03d --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DatabaseResource.php @@ -0,0 +1,786 @@ +google.cloud.databasecenter.v1beta.DatabaseResource + */ +class DatabaseResource extends \Google\Protobuf\Internal\Message +{ + /** + * List of children associated with a database group. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.DatabaseResource child_resources = 1; + */ + private $child_resources; + /** + * The full resource name, based on CAIS resource name format + * https://cloud.google.com/asset-inventory/docs/resource-name-format + * Example: + * `//cloudsql.googleapis.com/projects/project-number/instances/mysql-1` + * `//cloudsql.googleapis.com/projects/project-number/instances/postgres-1` + * `//spanner.googleapis.com/projects/project-number/instances/spanner-instance-1` + * `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1` + * `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1/instances/i1` + * + * Generated from protobuf field string full_resource_name = 3; + */ + protected $full_resource_name = ''; + /** + * Specifies where the resource is created. For Google Cloud resources, it is + * the full name of the project. + * + * Generated from protobuf field string container = 4; + */ + protected $container = ''; + /** + * The product this resource represents. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.Product product = 5; + */ + protected $product = null; + /** + * The location of the resources. It supports returning only regional + * locations in Google Cloud. These are of the form: "us-central1", + * "us-east1", etc. See https://cloud.google.com/about/locations for a list of + * such regions. + * + * Generated from protobuf field string location = 6; + */ + protected $location = ''; + /** + * Labels applied on the resource. The requirements for labels assigned to + * Google Cloud resources may be found at + * https://cloud.google.com/resource-manager/docs/labels-overview#requirements + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Label labels = 7; + */ + private $labels; + /** + * Tags applied on the resource. The requirements for tags assigned to + * Google Cloud resources may be found at + * https://cloud.google.com/resource-manager/docs/tags/tags-overview + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Tag tags = 16; + */ + private $tags; + /** + * The type of resource defined according to the pattern: + * {Service Name}/{Type}. Ex: + * sqladmin.googleapis.com/Instance + * alloydb.googleapis.com/Cluster + * alloydb.googleapis.com/Instance + * spanner.googleapis.com/Instance + * + * Generated from protobuf field string resource_type = 8; + */ + protected $resource_type = ''; + /** + * Subtype of the resource specified at creation time. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResourceType sub_resource_type = 9; + */ + protected $sub_resource_type = 0; + /** + * Machine configuration like CPU, memory, etc for the resource. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.MachineConfig machine_config = 12; + */ + protected $machine_config = null; + /** + * The list of signal groups and count of issues related to the resource. + * Only those signals which have been requested would be included. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalGroup signal_groups = 10; + */ + private $signal_groups; + /** + * Observable metrics for the resource e.g. CPU utilization, memory + * utilization, etc. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.Metrics metrics = 13; + */ + protected $metrics = null; + /** + * The category of the resource. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.ResourceCategory resource_category = 14; + */ + protected $resource_category = 0; + /** + * The name of the resource(The last part of the full resource name). + * Example: + * For full resource name - + * `//cloudsql.googleapis.com/projects/project-number/instances/mysql-1`, + * resource name - `mysql-1` + * For full resource name - + * `//cloudsql.googleapis.com/projects/project-number/instances/postgres-1` , + * resource name - `postgres-1` + * Note: In some cases, there might be more than one resource with the same + * resource name. + * + * Generated from protobuf field string resource_name = 15; + */ + protected $resource_name = ''; + /** + * Optional. Backup and disaster recovery details for the resource. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.BackupDRConfig backupdr_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $backupdr_config = null; + /** + * The edition of the resource. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.Edition edition = 18; + */ + protected $edition = 0; + /** + * Optional. The maintenance information of the resource. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.MaintenanceInfo maintenance_info = 19 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $maintenance_info = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\DatabaseCenter\V1beta\DatabaseResource>|\Google\Protobuf\Internal\RepeatedField $child_resources + * List of children associated with a database group. + * @type string $full_resource_name + * The full resource name, based on CAIS resource name format + * https://cloud.google.com/asset-inventory/docs/resource-name-format + * Example: + * `//cloudsql.googleapis.com/projects/project-number/instances/mysql-1` + * `//cloudsql.googleapis.com/projects/project-number/instances/postgres-1` + * `//spanner.googleapis.com/projects/project-number/instances/spanner-instance-1` + * `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1` + * `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1/instances/i1` + * @type string $container + * Specifies where the resource is created. For Google Cloud resources, it is + * the full name of the project. + * @type \Google\Cloud\DatabaseCenter\V1beta\Product $product + * The product this resource represents. + * @type string $location + * The location of the resources. It supports returning only regional + * locations in Google Cloud. These are of the form: "us-central1", + * "us-east1", etc. See https://cloud.google.com/about/locations for a list of + * such regions. + * @type array<\Google\Cloud\DatabaseCenter\V1beta\Label>|\Google\Protobuf\Internal\RepeatedField $labels + * Labels applied on the resource. The requirements for labels assigned to + * Google Cloud resources may be found at + * https://cloud.google.com/resource-manager/docs/labels-overview#requirements + * @type array<\Google\Cloud\DatabaseCenter\V1beta\Tag>|\Google\Protobuf\Internal\RepeatedField $tags + * Tags applied on the resource. The requirements for tags assigned to + * Google Cloud resources may be found at + * https://cloud.google.com/resource-manager/docs/tags/tags-overview + * @type string $resource_type + * The type of resource defined according to the pattern: + * {Service Name}/{Type}. Ex: + * sqladmin.googleapis.com/Instance + * alloydb.googleapis.com/Cluster + * alloydb.googleapis.com/Instance + * spanner.googleapis.com/Instance + * @type int $sub_resource_type + * Subtype of the resource specified at creation time. + * @type \Google\Cloud\DatabaseCenter\V1beta\MachineConfig $machine_config + * Machine configuration like CPU, memory, etc for the resource. + * @type array<\Google\Cloud\DatabaseCenter\V1beta\SignalGroup>|\Google\Protobuf\Internal\RepeatedField $signal_groups + * The list of signal groups and count of issues related to the resource. + * Only those signals which have been requested would be included. + * @type \Google\Cloud\DatabaseCenter\V1beta\Metrics $metrics + * Observable metrics for the resource e.g. CPU utilization, memory + * utilization, etc. + * @type int $resource_category + * The category of the resource. + * @type string $resource_name + * The name of the resource(The last part of the full resource name). + * Example: + * For full resource name - + * `//cloudsql.googleapis.com/projects/project-number/instances/mysql-1`, + * resource name - `mysql-1` + * For full resource name - + * `//cloudsql.googleapis.com/projects/project-number/instances/postgres-1` , + * resource name - `postgres-1` + * Note: In some cases, there might be more than one resource with the same + * resource name. + * @type \Google\Cloud\DatabaseCenter\V1beta\BackupDRConfig $backupdr_config + * Optional. Backup and disaster recovery details for the resource. + * @type int $edition + * The edition of the resource. + * @type \Google\Cloud\DatabaseCenter\V1beta\MaintenanceInfo $maintenance_info + * Optional. The maintenance information of the resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); + parent::__construct($data); + } + + /** + * List of children associated with a database group. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.DatabaseResource child_resources = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getChildResources() + { + return $this->child_resources; + } + + /** + * List of children associated with a database group. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.DatabaseResource child_resources = 1; + * @param array<\Google\Cloud\DatabaseCenter\V1beta\DatabaseResource>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setChildResources($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\DatabaseResource::class); + $this->child_resources = $arr; + + return $this; + } + + /** + * The full resource name, based on CAIS resource name format + * https://cloud.google.com/asset-inventory/docs/resource-name-format + * Example: + * `//cloudsql.googleapis.com/projects/project-number/instances/mysql-1` + * `//cloudsql.googleapis.com/projects/project-number/instances/postgres-1` + * `//spanner.googleapis.com/projects/project-number/instances/spanner-instance-1` + * `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1` + * `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1/instances/i1` + * + * Generated from protobuf field string full_resource_name = 3; + * @return string + */ + public function getFullResourceName() + { + return $this->full_resource_name; + } + + /** + * The full resource name, based on CAIS resource name format + * https://cloud.google.com/asset-inventory/docs/resource-name-format + * Example: + * `//cloudsql.googleapis.com/projects/project-number/instances/mysql-1` + * `//cloudsql.googleapis.com/projects/project-number/instances/postgres-1` + * `//spanner.googleapis.com/projects/project-number/instances/spanner-instance-1` + * `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1` + * `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1/instances/i1` + * + * Generated from protobuf field string full_resource_name = 3; + * @param string $var + * @return $this + */ + public function setFullResourceName($var) + { + GPBUtil::checkString($var, True); + $this->full_resource_name = $var; + + return $this; + } + + /** + * Specifies where the resource is created. For Google Cloud resources, it is + * the full name of the project. + * + * Generated from protobuf field string container = 4; + * @return string + */ + public function getContainer() + { + return $this->container; + } + + /** + * Specifies where the resource is created. For Google Cloud resources, it is + * the full name of the project. + * + * Generated from protobuf field string container = 4; + * @param string $var + * @return $this + */ + public function setContainer($var) + { + GPBUtil::checkString($var, True); + $this->container = $var; + + return $this; + } + + /** + * The product this resource represents. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.Product product = 5; + * @return \Google\Cloud\DatabaseCenter\V1beta\Product|null + */ + public function getProduct() + { + return $this->product; + } + + public function hasProduct() + { + return isset($this->product); + } + + public function clearProduct() + { + unset($this->product); + } + + /** + * The product this resource represents. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.Product product = 5; + * @param \Google\Cloud\DatabaseCenter\V1beta\Product $var + * @return $this + */ + public function setProduct($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\Product::class); + $this->product = $var; + + return $this; + } + + /** + * The location of the resources. It supports returning only regional + * locations in Google Cloud. These are of the form: "us-central1", + * "us-east1", etc. See https://cloud.google.com/about/locations for a list of + * such regions. + * + * Generated from protobuf field string location = 6; + * @return string + */ + public function getLocation() + { + return $this->location; + } + + /** + * The location of the resources. It supports returning only regional + * locations in Google Cloud. These are of the form: "us-central1", + * "us-east1", etc. See https://cloud.google.com/about/locations for a list of + * such regions. + * + * Generated from protobuf field string location = 6; + * @param string $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkString($var, True); + $this->location = $var; + + return $this; + } + + /** + * Labels applied on the resource. The requirements for labels assigned to + * Google Cloud resources may be found at + * https://cloud.google.com/resource-manager/docs/labels-overview#requirements + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Label labels = 7; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Labels applied on the resource. The requirements for labels assigned to + * Google Cloud resources may be found at + * https://cloud.google.com/resource-manager/docs/labels-overview#requirements + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Label labels = 7; + * @param array<\Google\Cloud\DatabaseCenter\V1beta\Label>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\Label::class); + $this->labels = $arr; + + return $this; + } + + /** + * Tags applied on the resource. The requirements for tags assigned to + * Google Cloud resources may be found at + * https://cloud.google.com/resource-manager/docs/tags/tags-overview + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Tag tags = 16; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTags() + { + return $this->tags; + } + + /** + * Tags applied on the resource. The requirements for tags assigned to + * Google Cloud resources may be found at + * https://cloud.google.com/resource-manager/docs/tags/tags-overview + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Tag tags = 16; + * @param array<\Google\Cloud\DatabaseCenter\V1beta\Tag>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\Tag::class); + $this->tags = $arr; + + return $this; + } + + /** + * The type of resource defined according to the pattern: + * {Service Name}/{Type}. Ex: + * sqladmin.googleapis.com/Instance + * alloydb.googleapis.com/Cluster + * alloydb.googleapis.com/Instance + * spanner.googleapis.com/Instance + * + * Generated from protobuf field string resource_type = 8; + * @return string + */ + public function getResourceType() + { + return $this->resource_type; + } + + /** + * The type of resource defined according to the pattern: + * {Service Name}/{Type}. Ex: + * sqladmin.googleapis.com/Instance + * alloydb.googleapis.com/Cluster + * alloydb.googleapis.com/Instance + * spanner.googleapis.com/Instance + * + * Generated from protobuf field string resource_type = 8; + * @param string $var + * @return $this + */ + public function setResourceType($var) + { + GPBUtil::checkString($var, True); + $this->resource_type = $var; + + return $this; + } + + /** + * Subtype of the resource specified at creation time. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResourceType sub_resource_type = 9; + * @return int + */ + public function getSubResourceType() + { + return $this->sub_resource_type; + } + + /** + * Subtype of the resource specified at creation time. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResourceType sub_resource_type = 9; + * @param int $var + * @return $this + */ + public function setSubResourceType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\SubResourceType::class); + $this->sub_resource_type = $var; + + return $this; + } + + /** + * Machine configuration like CPU, memory, etc for the resource. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.MachineConfig machine_config = 12; + * @return \Google\Cloud\DatabaseCenter\V1beta\MachineConfig|null + */ + public function getMachineConfig() + { + return $this->machine_config; + } + + public function hasMachineConfig() + { + return isset($this->machine_config); + } + + public function clearMachineConfig() + { + unset($this->machine_config); + } + + /** + * Machine configuration like CPU, memory, etc for the resource. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.MachineConfig machine_config = 12; + * @param \Google\Cloud\DatabaseCenter\V1beta\MachineConfig $var + * @return $this + */ + public function setMachineConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\MachineConfig::class); + $this->machine_config = $var; + + return $this; + } + + /** + * The list of signal groups and count of issues related to the resource. + * Only those signals which have been requested would be included. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalGroup signal_groups = 10; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSignalGroups() + { + return $this->signal_groups; + } + + /** + * The list of signal groups and count of issues related to the resource. + * Only those signals which have been requested would be included. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalGroup signal_groups = 10; + * @param array<\Google\Cloud\DatabaseCenter\V1beta\SignalGroup>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSignalGroups($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\SignalGroup::class); + $this->signal_groups = $arr; + + return $this; + } + + /** + * Observable metrics for the resource e.g. CPU utilization, memory + * utilization, etc. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.Metrics metrics = 13; + * @return \Google\Cloud\DatabaseCenter\V1beta\Metrics|null + */ + public function getMetrics() + { + return $this->metrics; + } + + public function hasMetrics() + { + return isset($this->metrics); + } + + public function clearMetrics() + { + unset($this->metrics); + } + + /** + * Observable metrics for the resource e.g. CPU utilization, memory + * utilization, etc. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.Metrics metrics = 13; + * @param \Google\Cloud\DatabaseCenter\V1beta\Metrics $var + * @return $this + */ + public function setMetrics($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\Metrics::class); + $this->metrics = $var; + + return $this; + } + + /** + * The category of the resource. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.ResourceCategory resource_category = 14; + * @return int + */ + public function getResourceCategory() + { + return $this->resource_category; + } + + /** + * The category of the resource. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.ResourceCategory resource_category = 14; + * @param int $var + * @return $this + */ + public function setResourceCategory($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\ResourceCategory::class); + $this->resource_category = $var; + + return $this; + } + + /** + * The name of the resource(The last part of the full resource name). + * Example: + * For full resource name - + * `//cloudsql.googleapis.com/projects/project-number/instances/mysql-1`, + * resource name - `mysql-1` + * For full resource name - + * `//cloudsql.googleapis.com/projects/project-number/instances/postgres-1` , + * resource name - `postgres-1` + * Note: In some cases, there might be more than one resource with the same + * resource name. + * + * Generated from protobuf field string resource_name = 15; + * @return string + */ + public function getResourceName() + { + return $this->resource_name; + } + + /** + * The name of the resource(The last part of the full resource name). + * Example: + * For full resource name - + * `//cloudsql.googleapis.com/projects/project-number/instances/mysql-1`, + * resource name - `mysql-1` + * For full resource name - + * `//cloudsql.googleapis.com/projects/project-number/instances/postgres-1` , + * resource name - `postgres-1` + * Note: In some cases, there might be more than one resource with the same + * resource name. + * + * Generated from protobuf field string resource_name = 15; + * @param string $var + * @return $this + */ + public function setResourceName($var) + { + GPBUtil::checkString($var, True); + $this->resource_name = $var; + + return $this; + } + + /** + * Optional. Backup and disaster recovery details for the resource. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.BackupDRConfig backupdr_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\DatabaseCenter\V1beta\BackupDRConfig|null + */ + public function getBackupdrConfig() + { + return $this->backupdr_config; + } + + public function hasBackupdrConfig() + { + return isset($this->backupdr_config); + } + + public function clearBackupdrConfig() + { + unset($this->backupdr_config); + } + + /** + * Optional. Backup and disaster recovery details for the resource. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.BackupDRConfig backupdr_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\DatabaseCenter\V1beta\BackupDRConfig $var + * @return $this + */ + public function setBackupdrConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\BackupDRConfig::class); + $this->backupdr_config = $var; + + return $this; + } + + /** + * The edition of the resource. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.Edition edition = 18; + * @return int + */ + public function getEdition() + { + return $this->edition; + } + + /** + * The edition of the resource. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.Edition edition = 18; + * @param int $var + * @return $this + */ + public function setEdition($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\Edition::class); + $this->edition = $var; + + return $this; + } + + /** + * Optional. The maintenance information of the resource. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.MaintenanceInfo maintenance_info = 19 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\DatabaseCenter\V1beta\MaintenanceInfo|null + */ + public function getMaintenanceInfo() + { + return $this->maintenance_info; + } + + public function hasMaintenanceInfo() + { + return isset($this->maintenance_info); + } + + public function clearMaintenanceInfo() + { + unset($this->maintenance_info); + } + + /** + * Optional. The maintenance information of the resource. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.MaintenanceInfo maintenance_info = 19 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\DatabaseCenter\V1beta\MaintenanceInfo $var + * @return $this + */ + public function setMaintenanceInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\MaintenanceInfo::class); + $this->maintenance_info = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DatabaseResourceGroup.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DatabaseResourceGroup.php new file mode 100644 index 00000000000..3f533cc1ec6 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DatabaseResourceGroup.php @@ -0,0 +1,119 @@ +google.cloud.databasecenter.v1beta.DatabaseResourceGroup + */ +class DatabaseResourceGroup extends \Google\Protobuf\Internal\Message +{ + /** + * A database resource that serves as a root of the group of database + * resources. It is repeated just in case we have the concept of multiple + * roots in the future, however, it will only be populated with a single value + * for now. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.DatabaseResource root_resources = 1; + */ + private $root_resources; + /** + * The filtered signal groups and the count of issues associated with the + * resources that have been filtered in. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.IssueCount signal_groups = 2; + */ + private $signal_groups; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\DatabaseCenter\V1beta\DatabaseResource>|\Google\Protobuf\Internal\RepeatedField $root_resources + * A database resource that serves as a root of the group of database + * resources. It is repeated just in case we have the concept of multiple + * roots in the future, however, it will only be populated with a single value + * for now. + * @type array<\Google\Cloud\DatabaseCenter\V1beta\IssueCount>|\Google\Protobuf\Internal\RepeatedField $signal_groups + * The filtered signal groups and the count of issues associated with the + * resources that have been filtered in. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); + parent::__construct($data); + } + + /** + * A database resource that serves as a root of the group of database + * resources. It is repeated just in case we have the concept of multiple + * roots in the future, however, it will only be populated with a single value + * for now. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.DatabaseResource root_resources = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRootResources() + { + return $this->root_resources; + } + + /** + * A database resource that serves as a root of the group of database + * resources. It is repeated just in case we have the concept of multiple + * roots in the future, however, it will only be populated with a single value + * for now. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.DatabaseResource root_resources = 1; + * @param array<\Google\Cloud\DatabaseCenter\V1beta\DatabaseResource>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRootResources($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\DatabaseResource::class); + $this->root_resources = $arr; + + return $this; + } + + /** + * The filtered signal groups and the count of issues associated with the + * resources that have been filtered in. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.IssueCount signal_groups = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSignalGroups() + { + return $this->signal_groups; + } + + /** + * The filtered signal groups and the count of issues associated with the + * resources that have been filtered in. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.IssueCount signal_groups = 2; + * @param array<\Google\Cloud\DatabaseCenter\V1beta\IssueCount>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSignalGroups($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\IssueCount::class); + $this->signal_groups = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DatabaseResourceIssue.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DatabaseResourceIssue.php new file mode 100644 index 00000000000..7365b8c2875 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DatabaseResourceIssue.php @@ -0,0 +1,121 @@ +google.cloud.databasecenter.v1beta.DatabaseResourceIssue + */ +class DatabaseResourceIssue extends \Google\Protobuf\Internal\Message +{ + /** + * Signal associated with the issue. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.Signal signal = 1; + */ + protected $signal = null; + /** + * Resource associated with the issue. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.DatabaseResource resource = 2; + */ + protected $resource = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\DatabaseCenter\V1beta\Signal $signal + * Signal associated with the issue. + * @type \Google\Cloud\DatabaseCenter\V1beta\DatabaseResource $resource + * Resource associated with the issue. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); + parent::__construct($data); + } + + /** + * Signal associated with the issue. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.Signal signal = 1; + * @return \Google\Cloud\DatabaseCenter\V1beta\Signal|null + */ + public function getSignal() + { + return $this->signal; + } + + public function hasSignal() + { + return isset($this->signal); + } + + public function clearSignal() + { + unset($this->signal); + } + + /** + * Signal associated with the issue. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.Signal signal = 1; + * @param \Google\Cloud\DatabaseCenter\V1beta\Signal $var + * @return $this + */ + public function setSignal($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\Signal::class); + $this->signal = $var; + + return $this; + } + + /** + * Resource associated with the issue. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.DatabaseResource resource = 2; + * @return \Google\Cloud\DatabaseCenter\V1beta\DatabaseResource|null + */ + public function getResource() + { + return $this->resource; + } + + public function hasResource() + { + return isset($this->resource); + } + + public function clearResource() + { + unset($this->resource); + } + + /** + * Resource associated with the issue. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.DatabaseResource resource = 2; + * @param \Google\Cloud\DatabaseCenter\V1beta\DatabaseResource $var + * @return $this + */ + public function setResource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\DatabaseResource::class); + $this->resource = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DeletionProtectionInfo.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DeletionProtectionInfo.php new file mode 100644 index 00000000000..54a6fadf015 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DeletionProtectionInfo.php @@ -0,0 +1,111 @@ +google.cloud.databasecenter.v1beta.DeletionProtectionInfo + */ +class DeletionProtectionInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Sub resource details associated with the signal. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResource sub_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $sub_resource = null; + /** + * Is deletion protection enabled. + * + * Generated from protobuf field bool deletion_protection_enabled = 2; + */ + protected $deletion_protection_enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\DatabaseCenter\V1beta\SubResource $sub_resource + * Optional. Sub resource details associated with the signal. + * @type bool $deletion_protection_enabled + * Is deletion protection enabled. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Sub resource details associated with the signal. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResource sub_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\DatabaseCenter\V1beta\SubResource|null + */ + public function getSubResource() + { + return $this->sub_resource; + } + + public function hasSubResource() + { + return isset($this->sub_resource); + } + + public function clearSubResource() + { + unset($this->sub_resource); + } + + /** + * Optional. Sub resource details associated with the signal. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResource sub_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\DatabaseCenter\V1beta\SubResource $var + * @return $this + */ + public function setSubResource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\SubResource::class); + $this->sub_resource = $var; + + return $this; + } + + /** + * Is deletion protection enabled. + * + * Generated from protobuf field bool deletion_protection_enabled = 2; + * @return bool + */ + public function getDeletionProtectionEnabled() + { + return $this->deletion_protection_enabled; + } + + /** + * Is deletion protection enabled. + * + * Generated from protobuf field bool deletion_protection_enabled = 2; + * @param bool $var + * @return $this + */ + public function setDeletionProtectionEnabled($var) + { + GPBUtil::checkBool($var); + $this->deletion_protection_enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DeltaDetails.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DeltaDetails.php new file mode 100644 index 00000000000..c7ccae93266 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DeltaDetails.php @@ -0,0 +1,105 @@ +google.cloud.databasecenter.v1beta.DeltaDetails + */ +class DeltaDetails extends \Google\Protobuf\Internal\Message +{ + /** + * Details of resources that have increased. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.ResourceDetails increased_resources = 1; + */ + private $increased_resources; + /** + * Details of resources that have decreased. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.ResourceDetails decreased_resources = 2; + */ + private $decreased_resources; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\DatabaseCenter\V1beta\ResourceDetails>|\Google\Protobuf\Internal\RepeatedField $increased_resources + * Details of resources that have increased. + * @type array<\Google\Cloud\DatabaseCenter\V1beta\ResourceDetails>|\Google\Protobuf\Internal\RepeatedField $decreased_resources + * Details of resources that have decreased. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); + parent::__construct($data); + } + + /** + * Details of resources that have increased. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.ResourceDetails increased_resources = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getIncreasedResources() + { + return $this->increased_resources; + } + + /** + * Details of resources that have increased. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.ResourceDetails increased_resources = 1; + * @param array<\Google\Cloud\DatabaseCenter\V1beta\ResourceDetails>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setIncreasedResources($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\ResourceDetails::class); + $this->increased_resources = $arr; + + return $this; + } + + /** + * Details of resources that have decreased. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.ResourceDetails decreased_resources = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDecreasedResources() + { + return $this->decreased_resources; + } + + /** + * Details of resources that have decreased. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.ResourceDetails decreased_resources = 2; + * @param array<\Google\Cloud\DatabaseCenter\V1beta\ResourceDetails>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDecreasedResources($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\ResourceDetails::class); + $this->decreased_resources = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Dimension.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Dimension.php new file mode 100644 index 00000000000..b371ca3bed7 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Dimension.php @@ -0,0 +1,690 @@ +google.cloud.databasecenter.v1beta.Dimension + */ +class Dimension extends \Google\Protobuf\Internal\Message +{ + protected $dimension; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $container + * Specifies where the resource is created. For Google Cloud resources, it + * is the full name of the project. + * @type int $product_type + * Type to identify a product + * @type int $product_engine + * Engine refers to underlying database binary running in an instance. + * @type string $product_version + * Version of the underlying database engine + * @type string $location + * The location of the resources. It supports returning only regional + * locations in Google Cloud. + * @type string $resource_type + * The type of resource defined according to the pattern: + * {Service Name}/{Type}. Ex: + * sqladmin.googleapis.com/Instance + * alloydb.googleapis.com/Cluster + * alloydb.googleapis.com/Instance + * spanner.googleapis.com/Instance + * @type int $sub_resource_type + * Subtype of the resource specified at creation time. + * @type int $resource_category + * The category of the resource. + * @type int $management_type + * The management type of the resource. + * @type int $edition + * The edition of the resource. + * @type string $tag_key + * Tag key of the resource. + * @type string $tag_value + * Tag value of the resource. + * @type string $tag_source + * Tag source of the resource. + * @type bool $tag_inherited + * Tag inheritance value of the resource. + * @type string $label_key + * Label key of the resource. + * @type string $label_value + * Label value of the resource. + * @type string $label_source + * Label source of the resource. + * @type bool $has_maintenance_schedule + * Whether the resource has a maintenance schedule. + * @type bool $has_deny_maintenance_schedules + * Whether the resource has deny maintenance schedules. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); + parent::__construct($data); + } + + /** + * Specifies where the resource is created. For Google Cloud resources, it + * is the full name of the project. + * + * Generated from protobuf field string container = 2; + * @return string + */ + public function getContainer() + { + return $this->readOneof(2); + } + + public function hasContainer() + { + return $this->hasOneof(2); + } + + /** + * Specifies where the resource is created. For Google Cloud resources, it + * is the full name of the project. + * + * Generated from protobuf field string container = 2; + * @param string $var + * @return $this + */ + public function setContainer($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Type to identify a product + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.ProductType product_type = 3; + * @return int + */ + public function getProductType() + { + return $this->readOneof(3); + } + + public function hasProductType() + { + return $this->hasOneof(3); + } + + /** + * Type to identify a product + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.ProductType product_type = 3; + * @param int $var + * @return $this + */ + public function setProductType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\ProductType::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Engine refers to underlying database binary running in an instance. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.Engine product_engine = 4; + * @return int + */ + public function getProductEngine() + { + return $this->readOneof(4); + } + + public function hasProductEngine() + { + return $this->hasOneof(4); + } + + /** + * Engine refers to underlying database binary running in an instance. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.Engine product_engine = 4; + * @param int $var + * @return $this + */ + public function setProductEngine($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\Engine::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Version of the underlying database engine + * + * Generated from protobuf field string product_version = 5; + * @return string + */ + public function getProductVersion() + { + return $this->readOneof(5); + } + + public function hasProductVersion() + { + return $this->hasOneof(5); + } + + /** + * Version of the underlying database engine + * + * Generated from protobuf field string product_version = 5; + * @param string $var + * @return $this + */ + public function setProductVersion($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * The location of the resources. It supports returning only regional + * locations in Google Cloud. + * + * Generated from protobuf field string location = 6; + * @return string + */ + public function getLocation() + { + return $this->readOneof(6); + } + + public function hasLocation() + { + return $this->hasOneof(6); + } + + /** + * The location of the resources. It supports returning only regional + * locations in Google Cloud. + * + * Generated from protobuf field string location = 6; + * @param string $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * The type of resource defined according to the pattern: + * {Service Name}/{Type}. Ex: + * sqladmin.googleapis.com/Instance + * alloydb.googleapis.com/Cluster + * alloydb.googleapis.com/Instance + * spanner.googleapis.com/Instance + * + * Generated from protobuf field string resource_type = 7; + * @return string + */ + public function getResourceType() + { + return $this->readOneof(7); + } + + public function hasResourceType() + { + return $this->hasOneof(7); + } + + /** + * The type of resource defined according to the pattern: + * {Service Name}/{Type}. Ex: + * sqladmin.googleapis.com/Instance + * alloydb.googleapis.com/Cluster + * alloydb.googleapis.com/Instance + * spanner.googleapis.com/Instance + * + * Generated from protobuf field string resource_type = 7; + * @param string $var + * @return $this + */ + public function setResourceType($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * Subtype of the resource specified at creation time. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResourceType sub_resource_type = 8; + * @return int + */ + public function getSubResourceType() + { + return $this->readOneof(8); + } + + public function hasSubResourceType() + { + return $this->hasOneof(8); + } + + /** + * Subtype of the resource specified at creation time. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResourceType sub_resource_type = 8; + * @param int $var + * @return $this + */ + public function setSubResourceType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\SubResourceType::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * The category of the resource. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.ResourceCategory resource_category = 9; + * @return int + */ + public function getResourceCategory() + { + return $this->readOneof(9); + } + + public function hasResourceCategory() + { + return $this->hasOneof(9); + } + + /** + * The category of the resource. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.ResourceCategory resource_category = 9; + * @param int $var + * @return $this + */ + public function setResourceCategory($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\ResourceCategory::class); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * The management type of the resource. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.ManagementType management_type = 10; + * @return int + */ + public function getManagementType() + { + return $this->readOneof(10); + } + + public function hasManagementType() + { + return $this->hasOneof(10); + } + + /** + * The management type of the resource. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.ManagementType management_type = 10; + * @param int $var + * @return $this + */ + public function setManagementType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\ManagementType::class); + $this->writeOneof(10, $var); + + return $this; + } + + /** + * The edition of the resource. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.Edition edition = 11; + * @return int + */ + public function getEdition() + { + return $this->readOneof(11); + } + + public function hasEdition() + { + return $this->hasOneof(11); + } + + /** + * The edition of the resource. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.Edition edition = 11; + * @param int $var + * @return $this + */ + public function setEdition($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\Edition::class); + $this->writeOneof(11, $var); + + return $this; + } + + /** + * Tag key of the resource. + * + * Generated from protobuf field string tag_key = 12; + * @return string + */ + public function getTagKey() + { + return $this->readOneof(12); + } + + public function hasTagKey() + { + return $this->hasOneof(12); + } + + /** + * Tag key of the resource. + * + * Generated from protobuf field string tag_key = 12; + * @param string $var + * @return $this + */ + public function setTagKey($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(12, $var); + + return $this; + } + + /** + * Tag value of the resource. + * + * Generated from protobuf field string tag_value = 13; + * @return string + */ + public function getTagValue() + { + return $this->readOneof(13); + } + + public function hasTagValue() + { + return $this->hasOneof(13); + } + + /** + * Tag value of the resource. + * + * Generated from protobuf field string tag_value = 13; + * @param string $var + * @return $this + */ + public function setTagValue($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(13, $var); + + return $this; + } + + /** + * Tag source of the resource. + * + * Generated from protobuf field string tag_source = 14; + * @return string + */ + public function getTagSource() + { + return $this->readOneof(14); + } + + public function hasTagSource() + { + return $this->hasOneof(14); + } + + /** + * Tag source of the resource. + * + * Generated from protobuf field string tag_source = 14; + * @param string $var + * @return $this + */ + public function setTagSource($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(14, $var); + + return $this; + } + + /** + * Tag inheritance value of the resource. + * + * Generated from protobuf field bool tag_inherited = 15; + * @return bool + */ + public function getTagInherited() + { + return $this->readOneof(15); + } + + public function hasTagInherited() + { + return $this->hasOneof(15); + } + + /** + * Tag inheritance value of the resource. + * + * Generated from protobuf field bool tag_inherited = 15; + * @param bool $var + * @return $this + */ + public function setTagInherited($var) + { + GPBUtil::checkBool($var); + $this->writeOneof(15, $var); + + return $this; + } + + /** + * Label key of the resource. + * + * Generated from protobuf field string label_key = 16; + * @return string + */ + public function getLabelKey() + { + return $this->readOneof(16); + } + + public function hasLabelKey() + { + return $this->hasOneof(16); + } + + /** + * Label key of the resource. + * + * Generated from protobuf field string label_key = 16; + * @param string $var + * @return $this + */ + public function setLabelKey($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(16, $var); + + return $this; + } + + /** + * Label value of the resource. + * + * Generated from protobuf field string label_value = 17; + * @return string + */ + public function getLabelValue() + { + return $this->readOneof(17); + } + + public function hasLabelValue() + { + return $this->hasOneof(17); + } + + /** + * Label value of the resource. + * + * Generated from protobuf field string label_value = 17; + * @param string $var + * @return $this + */ + public function setLabelValue($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(17, $var); + + return $this; + } + + /** + * Label source of the resource. + * + * Generated from protobuf field string label_source = 18; + * @return string + */ + public function getLabelSource() + { + return $this->readOneof(18); + } + + public function hasLabelSource() + { + return $this->hasOneof(18); + } + + /** + * Label source of the resource. + * + * Generated from protobuf field string label_source = 18; + * @param string $var + * @return $this + */ + public function setLabelSource($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(18, $var); + + return $this; + } + + /** + * Whether the resource has a maintenance schedule. + * + * Generated from protobuf field bool has_maintenance_schedule = 19; + * @return bool + */ + public function getHasMaintenanceSchedule() + { + return $this->readOneof(19); + } + + public function hasHasMaintenanceSchedule() + { + return $this->hasOneof(19); + } + + /** + * Whether the resource has a maintenance schedule. + * + * Generated from protobuf field bool has_maintenance_schedule = 19; + * @param bool $var + * @return $this + */ + public function setHasMaintenanceSchedule($var) + { + GPBUtil::checkBool($var); + $this->writeOneof(19, $var); + + return $this; + } + + /** + * Whether the resource has deny maintenance schedules. + * + * Generated from protobuf field bool has_deny_maintenance_schedules = 20; + * @return bool + */ + public function getHasDenyMaintenanceSchedules() + { + return $this->readOneof(20); + } + + public function hasHasDenyMaintenanceSchedules() + { + return $this->hasOneof(20); + } + + /** + * Whether the resource has deny maintenance schedules. + * + * Generated from protobuf field bool has_deny_maintenance_schedules = 20; + * @param bool $var + * @return $this + */ + public function setHasDenyMaintenanceSchedules($var) + { + GPBUtil::checkBool($var); + $this->writeOneof(20, $var); + + return $this; + } + + /** + * @return string + */ + public function getDimension() + { + return $this->whichOneof("dimension"); + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Edition.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Edition.php new file mode 100644 index 00000000000..a8a2d06414d --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Edition.php @@ -0,0 +1,69 @@ +google.cloud.databasecenter.v1beta.Edition + */ +class Edition +{ + /** + * Default, to make it consistent with instance edition enum. + * + * Generated from protobuf enum EDITION_UNSPECIFIED = 0; + */ + const EDITION_UNSPECIFIED = 0; + /** + * Represents the enterprise edition. + * + * Generated from protobuf enum EDITION_ENTERPRISE = 1; + */ + const EDITION_ENTERPRISE = 1; + /** + * Represents the enterprise plus edition. + * + * Generated from protobuf enum EDITION_ENTERPRISE_PLUS = 2; + */ + const EDITION_ENTERPRISE_PLUS = 2; + /** + * Represents the standard edition. + * + * Generated from protobuf enum EDITION_STANDARD = 3; + */ + const EDITION_STANDARD = 3; + + private static $valueToName = [ + self::EDITION_UNSPECIFIED => 'EDITION_UNSPECIFIED', + self::EDITION_ENTERPRISE => 'EDITION_ENTERPRISE', + self::EDITION_ENTERPRISE_PLUS => 'EDITION_ENTERPRISE_PLUS', + self::EDITION_STANDARD => 'EDITION_STANDARD', + ]; + + 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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Engine.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Engine.php new file mode 100644 index 00000000000..020fd6a1eee --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Engine.php @@ -0,0 +1,132 @@ +google.cloud.databasecenter.v1beta.Engine + */ +class Engine +{ + /** + * UNSPECIFIED means engine type is not known or available. + * + * Generated from protobuf enum ENGINE_UNSPECIFIED = 0; + */ + const ENGINE_UNSPECIFIED = 0; + /** + * MySQL binary running as an engine in the database instance. + * + * Generated from protobuf enum ENGINE_MYSQL = 1; + */ + const ENGINE_MYSQL = 1; + /** + * Postgres binary running as engine in database instance. + * + * Generated from protobuf enum ENGINE_POSTGRES = 2; + */ + const ENGINE_POSTGRES = 2; + /** + * SQLServer binary running as engine in database instance. + * + * Generated from protobuf enum ENGINE_SQL_SERVER = 3; + */ + const ENGINE_SQL_SERVER = 3; + /** + * Native database binary running as engine in instance. + * + * Generated from protobuf enum ENGINE_NATIVE = 4; + */ + const ENGINE_NATIVE = 4; + /** + * Memorystore with Redis dialect. + * + * Generated from protobuf enum ENGINE_MEMORYSTORE_FOR_REDIS = 8; + */ + const ENGINE_MEMORYSTORE_FOR_REDIS = 8; + /** + * Memorystore with Redis cluster dialect. + * + * Generated from protobuf enum ENGINE_MEMORYSTORE_FOR_REDIS_CLUSTER = 9; + */ + const ENGINE_MEMORYSTORE_FOR_REDIS_CLUSTER = 9; + /** + * Firestore with native mode. + * + * Generated from protobuf enum ENGINE_FIRESTORE_WITH_NATIVE_MODE = 10; + */ + const ENGINE_FIRESTORE_WITH_NATIVE_MODE = 10; + /** + * Firestore with datastore mode. + * + * Generated from protobuf enum ENGINE_FIRESTORE_WITH_DATASTORE_MODE = 11; + */ + const ENGINE_FIRESTORE_WITH_DATASTORE_MODE = 11; + /** + * Oracle Exadata engine. + * + * Generated from protobuf enum ENGINE_EXADATA_ORACLE = 12; + */ + const ENGINE_EXADATA_ORACLE = 12; + /** + * Oracle Autonomous DB Serverless engine. + * + * Generated from protobuf enum ENGINE_ADB_SERVERLESS_ORACLE = 13; + */ + const ENGINE_ADB_SERVERLESS_ORACLE = 13; + /** + * Firestore with MongoDB compatibility. + * + * Generated from protobuf enum ENGINE_FIRESTORE_WITH_MONGODB_COMPATIBILITY_MODE = 14; + */ + const ENGINE_FIRESTORE_WITH_MONGODB_COMPATIBILITY_MODE = 14; + /** + * Other refers to rest of other database engine. This is to be when engine is + * known, but it is not present in this enum. + * + * Generated from protobuf enum ENGINE_OTHER = 6; + */ + const ENGINE_OTHER = 6; + + private static $valueToName = [ + self::ENGINE_UNSPECIFIED => 'ENGINE_UNSPECIFIED', + self::ENGINE_MYSQL => 'ENGINE_MYSQL', + self::ENGINE_POSTGRES => 'ENGINE_POSTGRES', + self::ENGINE_SQL_SERVER => 'ENGINE_SQL_SERVER', + self::ENGINE_NATIVE => 'ENGINE_NATIVE', + self::ENGINE_MEMORYSTORE_FOR_REDIS => 'ENGINE_MEMORYSTORE_FOR_REDIS', + self::ENGINE_MEMORYSTORE_FOR_REDIS_CLUSTER => 'ENGINE_MEMORYSTORE_FOR_REDIS_CLUSTER', + self::ENGINE_FIRESTORE_WITH_NATIVE_MODE => 'ENGINE_FIRESTORE_WITH_NATIVE_MODE', + self::ENGINE_FIRESTORE_WITH_DATASTORE_MODE => 'ENGINE_FIRESTORE_WITH_DATASTORE_MODE', + self::ENGINE_EXADATA_ORACLE => 'ENGINE_EXADATA_ORACLE', + self::ENGINE_ADB_SERVERLESS_ORACLE => 'ENGINE_ADB_SERVERLESS_ORACLE', + self::ENGINE_FIRESTORE_WITH_MONGODB_COMPATIBILITY_MODE => 'ENGINE_FIRESTORE_WITH_MONGODB_COMPATIBILITY_MODE', + self::ENGINE_OTHER => 'ENGINE_OTHER', + ]; + + 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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/InefficientQueryInfo.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/InefficientQueryInfo.php new file mode 100644 index 00000000000..41136eaf141 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/InefficientQueryInfo.php @@ -0,0 +1,211 @@ +google.cloud.databasecenter.v1beta.InefficientQueryInfo + */ +class InefficientQueryInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Name of the database where index is required. For example, "db1", which is + * the name of the database present in the instance. + * + * Generated from protobuf field string database = 1; + */ + protected $database = ''; + /** + * Name of the table where index is required + * + * Generated from protobuf field string table = 2; + */ + protected $table = ''; + /** + * SQL statement of the index. Based on the ddl type, this will be either + * CREATE INDEX or DROP INDEX. + * + * Generated from protobuf field string sql_index_statement = 3; + */ + protected $sql_index_statement = ''; + /** + * Cost of additional disk usage in bytes + * + * Generated from protobuf field int64 storage_cost_bytes = 4; + */ + protected $storage_cost_bytes = 0; + /** + * Count of queries to be impacted if index is applied + * + * Generated from protobuf field int64 impacted_queries_count = 5; + */ + protected $impacted_queries_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $database + * Name of the database where index is required. For example, "db1", which is + * the name of the database present in the instance. + * @type string $table + * Name of the table where index is required + * @type string $sql_index_statement + * SQL statement of the index. Based on the ddl type, this will be either + * CREATE INDEX or DROP INDEX. + * @type int|string $storage_cost_bytes + * Cost of additional disk usage in bytes + * @type int|string $impacted_queries_count + * Count of queries to be impacted if index is applied + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); + parent::__construct($data); + } + + /** + * Name of the database where index is required. For example, "db1", which is + * the name of the database present in the instance. + * + * Generated from protobuf field string database = 1; + * @return string + */ + public function getDatabase() + { + return $this->database; + } + + /** + * Name of the database where index is required. For example, "db1", which is + * the name of the database present in the instance. + * + * Generated from protobuf field string database = 1; + * @param string $var + * @return $this + */ + public function setDatabase($var) + { + GPBUtil::checkString($var, True); + $this->database = $var; + + return $this; + } + + /** + * Name of the table where index is required + * + * Generated from protobuf field string table = 2; + * @return string + */ + public function getTable() + { + return $this->table; + } + + /** + * Name of the table where index is required + * + * Generated from protobuf field string table = 2; + * @param string $var + * @return $this + */ + public function setTable($var) + { + GPBUtil::checkString($var, True); + $this->table = $var; + + return $this; + } + + /** + * SQL statement of the index. Based on the ddl type, this will be either + * CREATE INDEX or DROP INDEX. + * + * Generated from protobuf field string sql_index_statement = 3; + * @return string + */ + public function getSqlIndexStatement() + { + return $this->sql_index_statement; + } + + /** + * SQL statement of the index. Based on the ddl type, this will be either + * CREATE INDEX or DROP INDEX. + * + * Generated from protobuf field string sql_index_statement = 3; + * @param string $var + * @return $this + */ + public function setSqlIndexStatement($var) + { + GPBUtil::checkString($var, True); + $this->sql_index_statement = $var; + + return $this; + } + + /** + * Cost of additional disk usage in bytes + * + * Generated from protobuf field int64 storage_cost_bytes = 4; + * @return int|string + */ + public function getStorageCostBytes() + { + return $this->storage_cost_bytes; + } + + /** + * Cost of additional disk usage in bytes + * + * Generated from protobuf field int64 storage_cost_bytes = 4; + * @param int|string $var + * @return $this + */ + public function setStorageCostBytes($var) + { + GPBUtil::checkInt64($var); + $this->storage_cost_bytes = $var; + + return $this; + } + + /** + * Count of queries to be impacted if index is applied + * + * Generated from protobuf field int64 impacted_queries_count = 5; + * @return int|string + */ + public function getImpactedQueriesCount() + { + return $this->impacted_queries_count; + } + + /** + * Count of queries to be impacted if index is applied + * + * Generated from protobuf field int64 impacted_queries_count = 5; + * @param int|string $var + * @return $this + */ + public function setImpactedQueriesCount($var) + { + GPBUtil::checkInt64($var); + $this->impacted_queries_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueCount.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueCount.php new file mode 100644 index 00000000000..429c6721b8d --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueCount.php @@ -0,0 +1,113 @@ +google.cloud.databasecenter.v1beta.IssueCount + */ +class IssueCount extends \Google\Protobuf\Internal\Message +{ + /** + * Title of a signal group corresponding to the request. + * + * Generated from protobuf field string display_name = 1; + */ + protected $display_name = ''; + /** + * The count of the number of issues associated with those resources that + * are explicitly filtered in by the filters present in the request. + * A signal is an issue when its SignalStatus field is set to + * SIGNAL_STATUS_ISSUE. + * + * Generated from protobuf field int32 issue_count = 2; + */ + protected $issue_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * Title of a signal group corresponding to the request. + * @type int $issue_count + * The count of the number of issues associated with those resources that + * are explicitly filtered in by the filters present in the request. + * A signal is an issue when its SignalStatus field is set to + * SIGNAL_STATUS_ISSUE. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); + parent::__construct($data); + } + + /** + * Title of a signal group corresponding to the request. + * + * Generated from protobuf field string display_name = 1; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Title of a signal group corresponding to the request. + * + * 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; + } + + /** + * The count of the number of issues associated with those resources that + * are explicitly filtered in by the filters present in the request. + * A signal is an issue when its SignalStatus field is set to + * SIGNAL_STATUS_ISSUE. + * + * Generated from protobuf field int32 issue_count = 2; + * @return int + */ + public function getIssueCount() + { + return $this->issue_count; + } + + /** + * The count of the number of issues associated with those resources that + * are explicitly filtered in by the filters present in the request. + * A signal is an issue when its SignalStatus field is set to + * SIGNAL_STATUS_ISSUE. + * + * Generated from protobuf field int32 issue_count = 2; + * @param int $var + * @return $this + */ + public function setIssueCount($var) + { + GPBUtil::checkInt32($var); + $this->issue_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueGroupStats.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueGroupStats.php new file mode 100644 index 00000000000..dbb8e42a5a7 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueGroupStats.php @@ -0,0 +1,270 @@ +google.cloud.databasecenter.v1beta.IssueGroupStats + */ +class IssueGroupStats extends \Google\Protobuf\Internal\Message +{ + /** + * Database resource level health card name. This will corresponds to one of + * the requested input group names. + * + * Generated from protobuf field string display_name = 1; + */ + protected $display_name = ''; + /** + * Total count of the groups of resources returned by the filter that + * also have one or more resources for which any of the specified issues + * are applicable. + * + * Generated from protobuf field int32 resource_groups_count = 2; + */ + protected $resource_groups_count = 0; + /** + * Total count of resources returned by the filter for which any of the + * specified issues are applicable. + * + * Generated from protobuf field int32 resources_count = 3; + */ + protected $resources_count = 0; + /** + * The number of resource groups from the total groups as defined above + * that are healthy with respect to all of the specified issues. + * + * Generated from protobuf field int32 healthy_resource_groups_count = 4; + */ + protected $healthy_resource_groups_count = 0; + /** + * The number of resources from the total defined above in field + * total_resources_count that are healthy with respect to all of the specified + * issues. + * + * Generated from protobuf field int32 healthy_resources_count = 5; + */ + protected $healthy_resources_count = 0; + /** + * List of issues stats containing count of resources having particular issue + * category. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.IssueStats issue_stats = 6; + */ + private $issue_stats; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * Database resource level health card name. This will corresponds to one of + * the requested input group names. + * @type int $resource_groups_count + * Total count of the groups of resources returned by the filter that + * also have one or more resources for which any of the specified issues + * are applicable. + * @type int $resources_count + * Total count of resources returned by the filter for which any of the + * specified issues are applicable. + * @type int $healthy_resource_groups_count + * The number of resource groups from the total groups as defined above + * that are healthy with respect to all of the specified issues. + * @type int $healthy_resources_count + * The number of resources from the total defined above in field + * total_resources_count that are healthy with respect to all of the specified + * issues. + * @type array<\Google\Cloud\DatabaseCenter\V1beta\IssueStats>|\Google\Protobuf\Internal\RepeatedField $issue_stats + * List of issues stats containing count of resources having particular issue + * category. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); + parent::__construct($data); + } + + /** + * Database resource level health card name. This will corresponds to one of + * the requested input group names. + * + * Generated from protobuf field string display_name = 1; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Database resource level health card name. This will corresponds to one of + * the requested input group names. + * + * 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; + } + + /** + * Total count of the groups of resources returned by the filter that + * also have one or more resources for which any of the specified issues + * are applicable. + * + * Generated from protobuf field int32 resource_groups_count = 2; + * @return int + */ + public function getResourceGroupsCount() + { + return $this->resource_groups_count; + } + + /** + * Total count of the groups of resources returned by the filter that + * also have one or more resources for which any of the specified issues + * are applicable. + * + * Generated from protobuf field int32 resource_groups_count = 2; + * @param int $var + * @return $this + */ + public function setResourceGroupsCount($var) + { + GPBUtil::checkInt32($var); + $this->resource_groups_count = $var; + + return $this; + } + + /** + * Total count of resources returned by the filter for which any of the + * specified issues are applicable. + * + * Generated from protobuf field int32 resources_count = 3; + * @return int + */ + public function getResourcesCount() + { + return $this->resources_count; + } + + /** + * Total count of resources returned by the filter for which any of the + * specified issues are applicable. + * + * Generated from protobuf field int32 resources_count = 3; + * @param int $var + * @return $this + */ + public function setResourcesCount($var) + { + GPBUtil::checkInt32($var); + $this->resources_count = $var; + + return $this; + } + + /** + * The number of resource groups from the total groups as defined above + * that are healthy with respect to all of the specified issues. + * + * Generated from protobuf field int32 healthy_resource_groups_count = 4; + * @return int + */ + public function getHealthyResourceGroupsCount() + { + return $this->healthy_resource_groups_count; + } + + /** + * The number of resource groups from the total groups as defined above + * that are healthy with respect to all of the specified issues. + * + * Generated from protobuf field int32 healthy_resource_groups_count = 4; + * @param int $var + * @return $this + */ + public function setHealthyResourceGroupsCount($var) + { + GPBUtil::checkInt32($var); + $this->healthy_resource_groups_count = $var; + + return $this; + } + + /** + * The number of resources from the total defined above in field + * total_resources_count that are healthy with respect to all of the specified + * issues. + * + * Generated from protobuf field int32 healthy_resources_count = 5; + * @return int + */ + public function getHealthyResourcesCount() + { + return $this->healthy_resources_count; + } + + /** + * The number of resources from the total defined above in field + * total_resources_count that are healthy with respect to all of the specified + * issues. + * + * Generated from protobuf field int32 healthy_resources_count = 5; + * @param int $var + * @return $this + */ + public function setHealthyResourcesCount($var) + { + GPBUtil::checkInt32($var); + $this->healthy_resources_count = $var; + + return $this; + } + + /** + * List of issues stats containing count of resources having particular issue + * category. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.IssueStats issue_stats = 6; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getIssueStats() + { + return $this->issue_stats; + } + + /** + * List of issues stats containing count of resources having particular issue + * category. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.IssueStats issue_stats = 6; + * @param array<\Google\Cloud\DatabaseCenter\V1beta\IssueStats>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setIssueStats($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\IssueStats::class); + $this->issue_stats = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueSeverity.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueSeverity.php new file mode 100644 index 00000000000..f2e3e1f78a5 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueSeverity.php @@ -0,0 +1,82 @@ +google.cloud.databasecenter.v1beta.IssueSeverity + */ +class IssueSeverity +{ + /** + * Unspecified. + * + * Generated from protobuf enum ISSUE_SEVERITY_UNSPECIFIED = 0; + */ + const ISSUE_SEVERITY_UNSPECIFIED = 0; + /** + * Low severity. + * + * Generated from protobuf enum ISSUE_SEVERITY_LOW = 1; + */ + const ISSUE_SEVERITY_LOW = 1; + /** + * Medium severity. + * + * Generated from protobuf enum ISSUE_SEVERITY_MEDIUM = 2; + */ + const ISSUE_SEVERITY_MEDIUM = 2; + /** + * High severity. + * + * Generated from protobuf enum ISSUE_SEVERITY_HIGH = 3; + */ + const ISSUE_SEVERITY_HIGH = 3; + /** + * Critical severity. + * + * Generated from protobuf enum ISSUE_SEVERITY_CRITICAL = 4; + */ + const ISSUE_SEVERITY_CRITICAL = 4; + /** + * Irrelevant severity. This means the issue should not be surfaced at all. + * + * Generated from protobuf enum ISSUE_SEVERITY_IRRELEVANT = 5; + */ + const ISSUE_SEVERITY_IRRELEVANT = 5; + + private static $valueToName = [ + self::ISSUE_SEVERITY_UNSPECIFIED => 'ISSUE_SEVERITY_UNSPECIFIED', + self::ISSUE_SEVERITY_LOW => 'ISSUE_SEVERITY_LOW', + self::ISSUE_SEVERITY_MEDIUM => 'ISSUE_SEVERITY_MEDIUM', + self::ISSUE_SEVERITY_HIGH => 'ISSUE_SEVERITY_HIGH', + self::ISSUE_SEVERITY_CRITICAL => 'ISSUE_SEVERITY_CRITICAL', + self::ISSUE_SEVERITY_IRRELEVANT => 'ISSUE_SEVERITY_IRRELEVANT', + ]; + + 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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueStats.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueStats.php new file mode 100644 index 00000000000..8e05000105c --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueStats.php @@ -0,0 +1,193 @@ +google.cloud.databasecenter.v1beta.IssueStats + */ +class IssueStats extends \Google\Protobuf\Internal\Message +{ + /** + * Type of signal which is an issue. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 1; + */ + protected $signal_type = 0; + /** + * Number of resources having issues of a given type. + * + * Generated from protobuf field int32 resource_count = 2; + */ + protected $resource_count = 0; + /** + * Optional. Delta counts and details of resources for which issue was raised + * or fixed. + * + * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $delta_details = null; + /** + * Severity of the issue. + * + * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.IssueSeverity issue_severity = 4; + */ + protected $issue_severity = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $signal_type + * Type of signal which is an issue. + * @type int $resource_count + * Number of resources having issues of a given type. + * @type \Google\Cloud\DatabaseCenter\V1beta\DeltaDetails $delta_details + * Optional. Delta counts and details of resources for which issue was raised + * or fixed. + * @type int $issue_severity + * Severity of the issue. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); + parent::__construct($data); + } + + /** + * Type of signal which is an issue. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 1; + * @return int + */ + public function getSignalType() + { + return $this->signal_type; + } + + /** + * Type of signal which is an issue. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 1; + * @param int $var + * @return $this + */ + public function setSignalType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\SignalType::class); + $this->signal_type = $var; + + return $this; + } + + /** + * Number of resources having issues of a given type. + * + * Generated from protobuf field int32 resource_count = 2; + * @return int + */ + public function getResourceCount() + { + return $this->resource_count; + } + + /** + * Number of resources having issues of a given type. + * + * Generated from protobuf field int32 resource_count = 2; + * @param int $var + * @return $this + */ + public function setResourceCount($var) + { + GPBUtil::checkInt32($var); + $this->resource_count = $var; + + return $this; + } + + /** + * Optional. Delta counts and details of resources for which issue was raised + * or fixed. + * + * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\DatabaseCenter\V1beta\DeltaDetails|null + */ + public function getDeltaDetails() + { + return $this->delta_details; + } + + public function hasDeltaDetails() + { + return isset($this->delta_details); + } + + public function clearDeltaDetails() + { + unset($this->delta_details); + } + + /** + * Optional. Delta counts and details of resources for which issue was raised + * or fixed. + * + * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\DatabaseCenter\V1beta\DeltaDetails $var + * @return $this + */ + public function setDeltaDetails($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\DeltaDetails::class); + $this->delta_details = $var; + + return $this; + } + + /** + * Severity of the issue. + * + * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.IssueSeverity issue_severity = 4; + * @return int + */ + public function getIssueSeverity() + { + return isset($this->issue_severity) ? $this->issue_severity : 0; + } + + public function hasIssueSeverity() + { + return isset($this->issue_severity); + } + + public function clearIssueSeverity() + { + unset($this->issue_severity); + } + + /** + * Severity of the issue. + * + * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.IssueSeverity issue_severity = 4; + * @param int $var + * @return $this + */ + public function setIssueSeverity($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\IssueSeverity::class); + $this->issue_severity = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Label.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Label.php new file mode 100644 index 00000000000..12c6dd186de --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Label.php @@ -0,0 +1,139 @@ +google.cloud.databasecenter.v1beta.Label + */ +class Label extends \Google\Protobuf\Internal\Message +{ + /** + * The key part of the label. + * + * Generated from protobuf field string key = 1; + */ + protected $key = ''; + /** + * The value part of the label. + * + * Generated from protobuf field string value = 2; + */ + protected $value = ''; + /** + * The source of the Label. Source is empty if the label is directly attached + * to the resource and not inherited. + * + * Generated from protobuf field string source = 3; + */ + protected $source = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $key + * The key part of the label. + * @type string $value + * The value part of the label. + * @type string $source + * The source of the Label. Source is empty if the label is directly attached + * to the resource and not inherited. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); + parent::__construct($data); + } + + /** + * The key part of the label. + * + * Generated from protobuf field string key = 1; + * @return string + */ + public function getKey() + { + return $this->key; + } + + /** + * The key part of the label. + * + * 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 part of the label. + * + * Generated from protobuf field string value = 2; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * The value part of the label. + * + * 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; + } + + /** + * The source of the Label. Source is empty if the label is directly attached + * to the resource and not inherited. + * + * Generated from protobuf field string source = 3; + * @return string + */ + public function getSource() + { + return $this->source; + } + + /** + * The source of the Label. Source is empty if the label is directly attached + * to the resource and not inherited. + * + * Generated from protobuf field string source = 3; + * @param string $var + * @return $this + */ + public function setSource($var) + { + GPBUtil::checkString($var, True); + $this->source = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MachineConfig.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MachineConfig.php new file mode 100644 index 00000000000..7652e07e4c2 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MachineConfig.php @@ -0,0 +1,156 @@ +google.cloud.databasecenter.v1beta.MachineConfig + */ +class MachineConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Memory size in bytes. + * + * Generated from protobuf field int64 memory_size_bytes = 2; + */ + protected $memory_size_bytes = 0; + /** + * Optional. The number of Shards (if applicable). + * + * Generated from protobuf field optional int32 shard_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $shard_count = null; + /** + * Optional. The number of vCPUs (if applicable). + * + * Generated from protobuf field optional double vcpu_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $vcpu_count = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $memory_size_bytes + * Memory size in bytes. + * @type int $shard_count + * Optional. The number of Shards (if applicable). + * @type float $vcpu_count + * Optional. The number of vCPUs (if applicable). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\MachineConfig::initOnce(); + parent::__construct($data); + } + + /** + * Memory size in bytes. + * + * Generated from protobuf field int64 memory_size_bytes = 2; + * @return int|string + */ + public function getMemorySizeBytes() + { + return $this->memory_size_bytes; + } + + /** + * Memory size in bytes. + * + * Generated from protobuf field int64 memory_size_bytes = 2; + * @param int|string $var + * @return $this + */ + public function setMemorySizeBytes($var) + { + GPBUtil::checkInt64($var); + $this->memory_size_bytes = $var; + + return $this; + } + + /** + * Optional. The number of Shards (if applicable). + * + * Generated from protobuf field optional int32 shard_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getShardCount() + { + return isset($this->shard_count) ? $this->shard_count : 0; + } + + public function hasShardCount() + { + return isset($this->shard_count); + } + + public function clearShardCount() + { + unset($this->shard_count); + } + + /** + * Optional. The number of Shards (if applicable). + * + * Generated from protobuf field optional int32 shard_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setShardCount($var) + { + GPBUtil::checkInt32($var); + $this->shard_count = $var; + + return $this; + } + + /** + * Optional. The number of vCPUs (if applicable). + * + * Generated from protobuf field optional double vcpu_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return float + */ + public function getVcpuCount() + { + return isset($this->vcpu_count) ? $this->vcpu_count : 0.0; + } + + public function hasVcpuCount() + { + return isset($this->vcpu_count); + } + + public function clearVcpuCount() + { + unset($this->vcpu_count); + } + + /** + * Optional. The number of vCPUs (if applicable). + * + * Generated from protobuf field optional double vcpu_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param float $var + * @return $this + */ + public function setVcpuCount($var) + { + GPBUtil::checkDouble($var); + $this->vcpu_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MaintenanceInfo.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MaintenanceInfo.php new file mode 100644 index 00000000000..08b1527120b --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MaintenanceInfo.php @@ -0,0 +1,149 @@ +google.cloud.databasecenter.v1beta.MaintenanceInfo + */ +class MaintenanceInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Maintenance window for the database resource. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule maintenance_schedule = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $maintenance_schedule = null; + /** + * Optional. List of Deny maintenance period for the database resource. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.ResourceMaintenanceDenySchedule deny_maintenance_schedules = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $deny_maintenance_schedules; + /** + * Output only. Current Maintenance version of the database resource. Example: + * "MYSQL_8_0_41.R20250531.01_15" + * + * Generated from protobuf field string maintenance_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $maintenance_version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\DatabaseCenter\V1beta\ResourceMaintenanceSchedule $maintenance_schedule + * Optional. Maintenance window for the database resource. + * @type array<\Google\Cloud\DatabaseCenter\V1beta\ResourceMaintenanceDenySchedule>|\Google\Protobuf\Internal\RepeatedField $deny_maintenance_schedules + * Optional. List of Deny maintenance period for the database resource. + * @type string $maintenance_version + * Output only. Current Maintenance version of the database resource. Example: + * "MYSQL_8_0_41.R20250531.01_15" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Maintenance::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Maintenance window for the database resource. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule maintenance_schedule = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\DatabaseCenter\V1beta\ResourceMaintenanceSchedule|null + */ + public function getMaintenanceSchedule() + { + return $this->maintenance_schedule; + } + + public function hasMaintenanceSchedule() + { + return isset($this->maintenance_schedule); + } + + public function clearMaintenanceSchedule() + { + unset($this->maintenance_schedule); + } + + /** + * Optional. Maintenance window for the database resource. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule maintenance_schedule = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\DatabaseCenter\V1beta\ResourceMaintenanceSchedule $var + * @return $this + */ + public function setMaintenanceSchedule($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\ResourceMaintenanceSchedule::class); + $this->maintenance_schedule = $var; + + return $this; + } + + /** + * Optional. List of Deny maintenance period for the database resource. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.ResourceMaintenanceDenySchedule deny_maintenance_schedules = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDenyMaintenanceSchedules() + { + return $this->deny_maintenance_schedules; + } + + /** + * Optional. List of Deny maintenance period for the database resource. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.ResourceMaintenanceDenySchedule deny_maintenance_schedules = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Cloud\DatabaseCenter\V1beta\ResourceMaintenanceDenySchedule>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDenyMaintenanceSchedules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\ResourceMaintenanceDenySchedule::class); + $this->deny_maintenance_schedules = $arr; + + return $this; + } + + /** + * Output only. Current Maintenance version of the database resource. Example: + * "MYSQL_8_0_41.R20250531.01_15" + * + * Generated from protobuf field string maintenance_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getMaintenanceVersion() + { + return $this->maintenance_version; + } + + /** + * Output only. Current Maintenance version of the database resource. Example: + * "MYSQL_8_0_41.R20250531.01_15" + * + * Generated from protobuf field string maintenance_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setMaintenanceVersion($var) + { + GPBUtil::checkString($var, True); + $this->maintenance_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MaintenanceRecommendationInfo.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MaintenanceRecommendationInfo.php new file mode 100644 index 00000000000..2edcd38e2b2 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MaintenanceRecommendationInfo.php @@ -0,0 +1,71 @@ +google.cloud.databasecenter.v1beta.MaintenanceRecommendationInfo + */ +class MaintenanceRecommendationInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. List of recommended maintenance schedules for the database + * resource. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule resource_maintenance_schedules = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $resource_maintenance_schedules; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\DatabaseCenter\V1beta\ResourceMaintenanceSchedule>|\Google\Protobuf\Internal\RepeatedField $resource_maintenance_schedules + * Optional. List of recommended maintenance schedules for the database + * resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); + parent::__construct($data); + } + + /** + * Optional. List of recommended maintenance schedules for the database + * resource. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule resource_maintenance_schedules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getResourceMaintenanceSchedules() + { + return $this->resource_maintenance_schedules; + } + + /** + * Optional. List of recommended maintenance schedules for the database + * resource. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule resource_maintenance_schedules = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Cloud\DatabaseCenter\V1beta\ResourceMaintenanceSchedule>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setResourceMaintenanceSchedules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\ResourceMaintenanceSchedule::class); + $this->resource_maintenance_schedules = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ManagementType.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ManagementType.php new file mode 100644 index 00000000000..db81aa5e226 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ManagementType.php @@ -0,0 +1,61 @@ +google.cloud.databasecenter.v1beta.ManagementType + */ +class ManagementType +{ + /** + * Unspecified. + * + * Generated from protobuf enum MANAGEMENT_TYPE_UNSPECIFIED = 0; + */ + const MANAGEMENT_TYPE_UNSPECIFIED = 0; + /** + * Google-managed resource. + * + * Generated from protobuf enum MANAGEMENT_TYPE_GCP_MANAGED = 1; + */ + const MANAGEMENT_TYPE_GCP_MANAGED = 1; + /** + * Self-managed resource. + * + * Generated from protobuf enum MANAGEMENT_TYPE_SELF_MANAGED = 2; + */ + const MANAGEMENT_TYPE_SELF_MANAGED = 2; + + private static $valueToName = [ + self::MANAGEMENT_TYPE_UNSPECIFIED => 'MANAGEMENT_TYPE_UNSPECIFIED', + self::MANAGEMENT_TYPE_GCP_MANAGED => 'MANAGEMENT_TYPE_GCP_MANAGED', + self::MANAGEMENT_TYPE_SELF_MANAGED => 'MANAGEMENT_TYPE_SELF_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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MetricData.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MetricData.php new file mode 100644 index 00000000000..647bdc36756 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MetricData.php @@ -0,0 +1,121 @@ +google.cloud.databasecenter.v1beta.MetricData + */ +class MetricData extends \Google\Protobuf\Internal\Message +{ + /** + * The value associated with the metric. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.TypedValue value = 1; + */ + protected $value = null; + /** + * The time the metric was observed in the metric source service. + * + * Generated from protobuf field .google.protobuf.Timestamp observation_time = 2; + */ + protected $observation_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\DatabaseCenter\V1beta\TypedValue $value + * The value associated with the metric. + * @type \Google\Protobuf\Timestamp $observation_time + * The time the metric was observed in the metric source service. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\MetricData::initOnce(); + parent::__construct($data); + } + + /** + * The value associated with the metric. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.TypedValue value = 1; + * @return \Google\Cloud\DatabaseCenter\V1beta\TypedValue|null + */ + public function getValue() + { + return $this->value; + } + + public function hasValue() + { + return isset($this->value); + } + + public function clearValue() + { + unset($this->value); + } + + /** + * The value associated with the metric. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.TypedValue value = 1; + * @param \Google\Cloud\DatabaseCenter\V1beta\TypedValue $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\TypedValue::class); + $this->value = $var; + + return $this; + } + + /** + * The time the metric was observed in the metric source service. + * + * Generated from protobuf field .google.protobuf.Timestamp observation_time = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getObservationTime() + { + return $this->observation_time; + } + + public function hasObservationTime() + { + return isset($this->observation_time); + } + + public function clearObservationTime() + { + unset($this->observation_time); + } + + /** + * The time the metric was observed in the metric source service. + * + * Generated from protobuf field .google.protobuf.Timestamp observation_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setObservationTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->observation_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Metrics.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Metrics.php new file mode 100644 index 00000000000..940fba3cf41 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Metrics.php @@ -0,0 +1,449 @@ +google.cloud.databasecenter.v1beta.Metrics + */ +class Metrics extends \Google\Protobuf\Internal\Message +{ + /** + * P99 CPU utilization observed for the resource. The value is a + * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). + * + * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData p99_cpu_utilization = 1; + */ + protected $p99_cpu_utilization = null; + /** + * P95 CPU utilization observed for the resource. The value is a + * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). + * + * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData p95_cpu_utilization = 2; + */ + protected $p95_cpu_utilization = null; + /** + * Current storage used by the resource in bytes. + * + * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData current_storage_used_bytes = 3; + */ + protected $current_storage_used_bytes = null; + /** + * Peak storage utilization observed for the resource. The value is a + * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). + * + * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData peak_storage_utilization = 4; + */ + protected $peak_storage_utilization = null; + /** + * Peak memory utilization observed for the resource. The value is a + * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). + * + * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData peak_memory_utilization = 5; + */ + protected $peak_memory_utilization = null; + /** + * Peak number of connections observed for the resource. The value is a + * positive integer. + * + * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData peak_number_connections = 6; + */ + protected $peak_number_connections = null; + /** + * Number of nodes in instance for spanner or bigtable. + * + * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData node_count = 7; + */ + protected $node_count = null; + /** + * Number of processing units in spanner. + * + * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData processing_unit_count = 8; + */ + protected $processing_unit_count = null; + /** + * Current memory used by the resource in bytes. + * + * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData current_memory_used_bytes = 9; + */ + protected $current_memory_used_bytes = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\DatabaseCenter\V1beta\MetricData $p99_cpu_utilization + * P99 CPU utilization observed for the resource. The value is a + * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). + * @type \Google\Cloud\DatabaseCenter\V1beta\MetricData $p95_cpu_utilization + * P95 CPU utilization observed for the resource. The value is a + * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). + * @type \Google\Cloud\DatabaseCenter\V1beta\MetricData $current_storage_used_bytes + * Current storage used by the resource in bytes. + * @type \Google\Cloud\DatabaseCenter\V1beta\MetricData $peak_storage_utilization + * Peak storage utilization observed for the resource. The value is a + * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). + * @type \Google\Cloud\DatabaseCenter\V1beta\MetricData $peak_memory_utilization + * Peak memory utilization observed for the resource. The value is a + * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). + * @type \Google\Cloud\DatabaseCenter\V1beta\MetricData $peak_number_connections + * Peak number of connections observed for the resource. The value is a + * positive integer. + * @type \Google\Cloud\DatabaseCenter\V1beta\MetricData $node_count + * Number of nodes in instance for spanner or bigtable. + * @type \Google\Cloud\DatabaseCenter\V1beta\MetricData $processing_unit_count + * Number of processing units in spanner. + * @type \Google\Cloud\DatabaseCenter\V1beta\MetricData $current_memory_used_bytes + * Current memory used by the resource in bytes. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\MetricData::initOnce(); + parent::__construct($data); + } + + /** + * P99 CPU utilization observed for the resource. The value is a + * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). + * + * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData p99_cpu_utilization = 1; + * @return \Google\Cloud\DatabaseCenter\V1beta\MetricData|null + */ + public function getP99CpuUtilization() + { + return $this->p99_cpu_utilization; + } + + public function hasP99CpuUtilization() + { + return isset($this->p99_cpu_utilization); + } + + public function clearP99CpuUtilization() + { + unset($this->p99_cpu_utilization); + } + + /** + * P99 CPU utilization observed for the resource. The value is a + * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). + * + * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData p99_cpu_utilization = 1; + * @param \Google\Cloud\DatabaseCenter\V1beta\MetricData $var + * @return $this + */ + public function setP99CpuUtilization($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\MetricData::class); + $this->p99_cpu_utilization = $var; + + return $this; + } + + /** + * P95 CPU utilization observed for the resource. The value is a + * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). + * + * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData p95_cpu_utilization = 2; + * @return \Google\Cloud\DatabaseCenter\V1beta\MetricData|null + */ + public function getP95CpuUtilization() + { + return $this->p95_cpu_utilization; + } + + public function hasP95CpuUtilization() + { + return isset($this->p95_cpu_utilization); + } + + public function clearP95CpuUtilization() + { + unset($this->p95_cpu_utilization); + } + + /** + * P95 CPU utilization observed for the resource. The value is a + * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). + * + * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData p95_cpu_utilization = 2; + * @param \Google\Cloud\DatabaseCenter\V1beta\MetricData $var + * @return $this + */ + public function setP95CpuUtilization($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\MetricData::class); + $this->p95_cpu_utilization = $var; + + return $this; + } + + /** + * Current storage used by the resource in bytes. + * + * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData current_storage_used_bytes = 3; + * @return \Google\Cloud\DatabaseCenter\V1beta\MetricData|null + */ + public function getCurrentStorageUsedBytes() + { + return $this->current_storage_used_bytes; + } + + public function hasCurrentStorageUsedBytes() + { + return isset($this->current_storage_used_bytes); + } + + public function clearCurrentStorageUsedBytes() + { + unset($this->current_storage_used_bytes); + } + + /** + * Current storage used by the resource in bytes. + * + * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData current_storage_used_bytes = 3; + * @param \Google\Cloud\DatabaseCenter\V1beta\MetricData $var + * @return $this + */ + public function setCurrentStorageUsedBytes($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\MetricData::class); + $this->current_storage_used_bytes = $var; + + return $this; + } + + /** + * Peak storage utilization observed for the resource. The value is a + * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). + * + * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData peak_storage_utilization = 4; + * @return \Google\Cloud\DatabaseCenter\V1beta\MetricData|null + */ + public function getPeakStorageUtilization() + { + return $this->peak_storage_utilization; + } + + public function hasPeakStorageUtilization() + { + return isset($this->peak_storage_utilization); + } + + public function clearPeakStorageUtilization() + { + unset($this->peak_storage_utilization); + } + + /** + * Peak storage utilization observed for the resource. The value is a + * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). + * + * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData peak_storage_utilization = 4; + * @param \Google\Cloud\DatabaseCenter\V1beta\MetricData $var + * @return $this + */ + public function setPeakStorageUtilization($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\MetricData::class); + $this->peak_storage_utilization = $var; + + return $this; + } + + /** + * Peak memory utilization observed for the resource. The value is a + * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). + * + * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData peak_memory_utilization = 5; + * @return \Google\Cloud\DatabaseCenter\V1beta\MetricData|null + */ + public function getPeakMemoryUtilization() + { + return $this->peak_memory_utilization; + } + + public function hasPeakMemoryUtilization() + { + return isset($this->peak_memory_utilization); + } + + public function clearPeakMemoryUtilization() + { + unset($this->peak_memory_utilization); + } + + /** + * Peak memory utilization observed for the resource. The value is a + * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). + * + * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData peak_memory_utilization = 5; + * @param \Google\Cloud\DatabaseCenter\V1beta\MetricData $var + * @return $this + */ + public function setPeakMemoryUtilization($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\MetricData::class); + $this->peak_memory_utilization = $var; + + return $this; + } + + /** + * Peak number of connections observed for the resource. The value is a + * positive integer. + * + * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData peak_number_connections = 6; + * @return \Google\Cloud\DatabaseCenter\V1beta\MetricData|null + */ + public function getPeakNumberConnections() + { + return $this->peak_number_connections; + } + + public function hasPeakNumberConnections() + { + return isset($this->peak_number_connections); + } + + public function clearPeakNumberConnections() + { + unset($this->peak_number_connections); + } + + /** + * Peak number of connections observed for the resource. The value is a + * positive integer. + * + * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData peak_number_connections = 6; + * @param \Google\Cloud\DatabaseCenter\V1beta\MetricData $var + * @return $this + */ + public function setPeakNumberConnections($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\MetricData::class); + $this->peak_number_connections = $var; + + return $this; + } + + /** + * Number of nodes in instance for spanner or bigtable. + * + * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData node_count = 7; + * @return \Google\Cloud\DatabaseCenter\V1beta\MetricData|null + */ + public function getNodeCount() + { + return $this->node_count; + } + + public function hasNodeCount() + { + return isset($this->node_count); + } + + public function clearNodeCount() + { + unset($this->node_count); + } + + /** + * Number of nodes in instance for spanner or bigtable. + * + * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData node_count = 7; + * @param \Google\Cloud\DatabaseCenter\V1beta\MetricData $var + * @return $this + */ + public function setNodeCount($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\MetricData::class); + $this->node_count = $var; + + return $this; + } + + /** + * Number of processing units in spanner. + * + * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData processing_unit_count = 8; + * @return \Google\Cloud\DatabaseCenter\V1beta\MetricData|null + */ + public function getProcessingUnitCount() + { + return $this->processing_unit_count; + } + + public function hasProcessingUnitCount() + { + return isset($this->processing_unit_count); + } + + public function clearProcessingUnitCount() + { + unset($this->processing_unit_count); + } + + /** + * Number of processing units in spanner. + * + * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData processing_unit_count = 8; + * @param \Google\Cloud\DatabaseCenter\V1beta\MetricData $var + * @return $this + */ + public function setProcessingUnitCount($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\MetricData::class); + $this->processing_unit_count = $var; + + return $this; + } + + /** + * Current memory used by the resource in bytes. + * + * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData current_memory_used_bytes = 9; + * @return \Google\Cloud\DatabaseCenter\V1beta\MetricData|null + */ + public function getCurrentMemoryUsedBytes() + { + return $this->current_memory_used_bytes; + } + + public function hasCurrentMemoryUsedBytes() + { + return isset($this->current_memory_used_bytes); + } + + public function clearCurrentMemoryUsedBytes() + { + unset($this->current_memory_used_bytes); + } + + /** + * Current memory used by the resource in bytes. + * + * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData current_memory_used_bytes = 9; + * @param \Google\Cloud\DatabaseCenter\V1beta\MetricData $var + * @return $this + */ + public function setCurrentMemoryUsedBytes($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\MetricData::class); + $this->current_memory_used_bytes = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/OperationErrorType.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/OperationErrorType.php new file mode 100644 index 00000000000..ed085c37e78 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/OperationErrorType.php @@ -0,0 +1,92 @@ +google.cloud.databasecenter.v1beta.OperationErrorType + */ +class OperationErrorType +{ + /** + * UNSPECIFIED means operation error type is not known or available. + * + * Generated from protobuf enum OPERATION_ERROR_TYPE_UNSPECIFIED = 0; + */ + const OPERATION_ERROR_TYPE_UNSPECIFIED = 0; + /** + * Key destroyed, expired, not found, unreachable or permission denied. + * + * Generated from protobuf enum KMS_KEY_ERROR = 1; + */ + const KMS_KEY_ERROR = 1; + /** + * Database is not accessible. + * + * Generated from protobuf enum DATABASE_ERROR = 2; + */ + const DATABASE_ERROR = 2; + /** + * The zone or region does not have sufficient resources to handle the request + * at the moment. + * + * Generated from protobuf enum STOCKOUT_ERROR = 3; + */ + const STOCKOUT_ERROR = 3; + /** + * User initiated cancellation. + * + * Generated from protobuf enum CANCELLATION_ERROR = 4; + */ + const CANCELLATION_ERROR = 4; + /** + * SQL server specific error. + * + * Generated from protobuf enum SQLSERVER_ERROR = 5; + */ + const SQLSERVER_ERROR = 5; + /** + * Any other internal error. + * + * Generated from protobuf enum INTERNAL_ERROR = 6; + */ + const INTERNAL_ERROR = 6; + + private static $valueToName = [ + self::OPERATION_ERROR_TYPE_UNSPECIFIED => 'OPERATION_ERROR_TYPE_UNSPECIFIED', + self::KMS_KEY_ERROR => 'KMS_KEY_ERROR', + self::DATABASE_ERROR => 'DATABASE_ERROR', + self::STOCKOUT_ERROR => 'STOCKOUT_ERROR', + self::CANCELLATION_ERROR => 'CANCELLATION_ERROR', + self::SQLSERVER_ERROR => 'SQLSERVER_ERROR', + self::INTERNAL_ERROR => 'INTERNAL_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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/OutdatedMinorVersionInfo.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/OutdatedMinorVersionInfo.php new file mode 100644 index 00000000000..a68c9edce0a --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/OutdatedMinorVersionInfo.php @@ -0,0 +1,75 @@ +google.cloud.databasecenter.v1beta.OutdatedMinorVersionInfo + */ +class OutdatedMinorVersionInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Recommended minor version of the underlying database engine. Example + * values: For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it + * could be "14.4", "15.5" etc. + * + * Generated from protobuf field string recommended_minor_version = 1; + */ + protected $recommended_minor_version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $recommended_minor_version + * Recommended minor version of the underlying database engine. Example + * values: For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it + * could be "14.4", "15.5" etc. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); + parent::__construct($data); + } + + /** + * Recommended minor version of the underlying database engine. Example + * values: For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it + * could be "14.4", "15.5" etc. + * + * Generated from protobuf field string recommended_minor_version = 1; + * @return string + */ + public function getRecommendedMinorVersion() + { + return $this->recommended_minor_version; + } + + /** + * Recommended minor version of the underlying database engine. Example + * values: For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it + * could be "14.4", "15.5" etc. + * + * Generated from protobuf field string recommended_minor_version = 1; + * @param string $var + * @return $this + */ + public function setRecommendedMinorVersion($var) + { + GPBUtil::checkString($var, True); + $this->recommended_minor_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Phase.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Phase.php new file mode 100644 index 00000000000..fc477f8e49d --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Phase.php @@ -0,0 +1,79 @@ +google.cloud.databasecenter.v1beta.Phase + */ +class Phase +{ + /** + * Phase is unspecified. + * + * Generated from protobuf enum PHASE_UNSPECIFIED = 0; + */ + const PHASE_UNSPECIFIED = 0; + /** + * Week 1. + * + * Generated from protobuf enum PHASE_WEEK1 = 1; + */ + const PHASE_WEEK1 = 1; + /** + * Week 2. + * + * Generated from protobuf enum PHASE_WEEK2 = 2; + */ + const PHASE_WEEK2 = 2; + /** + * Week 5. + * + * Generated from protobuf enum PHASE_WEEK5 = 3; + */ + const PHASE_WEEK5 = 3; + /** + * Any phase. + * + * Generated from protobuf enum PHASE_ANY = 4; + */ + const PHASE_ANY = 4; + + private static $valueToName = [ + self::PHASE_UNSPECIFIED => 'PHASE_UNSPECIFIED', + self::PHASE_WEEK1 => 'PHASE_WEEK1', + self::PHASE_WEEK2 => 'PHASE_WEEK2', + self::PHASE_WEEK5 => 'PHASE_WEEK5', + self::PHASE_ANY => 'PHASE_ANY', + ]; + + 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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Product.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Product.php new file mode 100644 index 00000000000..2b47957ead4 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Product.php @@ -0,0 +1,189 @@ +google.cloud.databasecenter.v1beta.Product + */ +class Product extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Type of specific database product. It could be CloudSQL, AlloyDB + * etc.. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.ProductType type = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $type = 0; + /** + * Optional. The specific engine that the underlying database is running. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.Engine engine = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $engine = 0; + /** + * Optional. Version of the underlying database engine. Example values: For + * MySQL, it could be "8.0", "5.7" etc. For Postgres, it could be "14", "15" + * etc. + * + * Generated from protobuf field string version = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $version = ''; + /** + * Optional. Minor version of the underlying database engine. Example values: + * For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it could be + * "14.4", "15.5" etc. + * + * Generated from protobuf field string minor_version = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $minor_version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $type + * Optional. Type of specific database product. It could be CloudSQL, AlloyDB + * etc.. + * @type int $engine + * Optional. The specific engine that the underlying database is running. + * @type string $version + * Optional. Version of the underlying database engine. Example values: For + * MySQL, it could be "8.0", "5.7" etc. For Postgres, it could be "14", "15" + * etc. + * @type string $minor_version + * Optional. Minor version of the underlying database engine. Example values: + * For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it could be + * "14.4", "15.5" etc. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Product::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Type of specific database product. It could be CloudSQL, AlloyDB + * etc.. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.ProductType type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Optional. Type of specific database product. It could be CloudSQL, AlloyDB + * etc.. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.ProductType type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\ProductType::class); + $this->type = $var; + + return $this; + } + + /** + * Optional. The specific engine that the underlying database is running. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.Engine engine = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getEngine() + { + return $this->engine; + } + + /** + * Optional. The specific engine that the underlying database is running. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.Engine engine = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setEngine($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\Engine::class); + $this->engine = $var; + + return $this; + } + + /** + * Optional. Version of the underlying database engine. Example values: For + * MySQL, it could be "8.0", "5.7" etc. For Postgres, it could be "14", "15" + * etc. + * + * Generated from protobuf field string version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * Optional. Version of the underlying database engine. Example values: For + * MySQL, it could be "8.0", "5.7" etc. For Postgres, it could be "14", "15" + * etc. + * + * Generated from protobuf field string version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + + /** + * Optional. Minor version of the underlying database engine. Example values: + * For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it could be + * "14.4", "15.5" etc. + * + * Generated from protobuf field string minor_version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getMinorVersion() + { + return $this->minor_version; + } + + /** + * Optional. Minor version of the underlying database engine. Example values: + * For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it could be + * "14.4", "15.5" etc. + * + * Generated from protobuf field string minor_version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setMinorVersion($var) + { + GPBUtil::checkString($var, True); + $this->minor_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ProductType.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ProductType.php new file mode 100644 index 00000000000..b33ce323e43 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ProductType.php @@ -0,0 +1,121 @@ +google.cloud.databasecenter.v1beta.ProductType + */ +class ProductType +{ + /** + * PRODUCT_TYPE_UNSPECIFIED means product type is not known or that the user + * didn't provide this field in the request. + * + * Generated from protobuf enum PRODUCT_TYPE_UNSPECIFIED = 0; + */ + const PRODUCT_TYPE_UNSPECIFIED = 0; + /** + * Cloud SQL product area in Google Cloud + * + * Generated from protobuf enum PRODUCT_TYPE_CLOUD_SQL = 1; + */ + const PRODUCT_TYPE_CLOUD_SQL = 1; + /** + * AlloyDB product area in Google Cloud + * + * Generated from protobuf enum PRODUCT_TYPE_ALLOYDB = 2; + */ + const PRODUCT_TYPE_ALLOYDB = 2; + /** + * Spanner product area in Google Cloud + * + * Generated from protobuf enum PRODUCT_TYPE_SPANNER = 3; + */ + const PRODUCT_TYPE_SPANNER = 3; + /** + * Bigtable product area in Google Cloud + * + * Generated from protobuf enum PRODUCT_TYPE_BIGTABLE = 6; + */ + const PRODUCT_TYPE_BIGTABLE = 6; + /** + * Memorystore product area in Google Cloud + * + * Generated from protobuf enum PRODUCT_TYPE_MEMORYSTORE = 7; + */ + const PRODUCT_TYPE_MEMORYSTORE = 7; + /** + * Firestore product area in Google Cloud + * + * Generated from protobuf enum PRODUCT_TYPE_FIRESTORE = 8; + */ + const PRODUCT_TYPE_FIRESTORE = 8; + /** + * Compute Engine self managed databases + * + * Generated from protobuf enum PRODUCT_TYPE_COMPUTE_ENGINE = 9; + */ + const PRODUCT_TYPE_COMPUTE_ENGINE = 9; + /** + * Oracle product area in Google Cloud + * + * Generated from protobuf enum PRODUCT_TYPE_ORACLE_ON_GCP = 10; + */ + const PRODUCT_TYPE_ORACLE_ON_GCP = 10; + /** + * BigQuery product area in Google Cloud + * + * Generated from protobuf enum PRODUCT_TYPE_BIGQUERY = 11; + */ + const PRODUCT_TYPE_BIGQUERY = 11; + /** + * Other refers to rest of other product type. This is to be when product type + * is known, but it is not present in this enum. + * + * Generated from protobuf enum PRODUCT_TYPE_OTHER = 5; + */ + const PRODUCT_TYPE_OTHER = 5; + + private static $valueToName = [ + self::PRODUCT_TYPE_UNSPECIFIED => 'PRODUCT_TYPE_UNSPECIFIED', + self::PRODUCT_TYPE_CLOUD_SQL => 'PRODUCT_TYPE_CLOUD_SQL', + self::PRODUCT_TYPE_ALLOYDB => 'PRODUCT_TYPE_ALLOYDB', + self::PRODUCT_TYPE_SPANNER => 'PRODUCT_TYPE_SPANNER', + self::PRODUCT_TYPE_BIGTABLE => 'PRODUCT_TYPE_BIGTABLE', + self::PRODUCT_TYPE_MEMORYSTORE => 'PRODUCT_TYPE_MEMORYSTORE', + self::PRODUCT_TYPE_FIRESTORE => 'PRODUCT_TYPE_FIRESTORE', + self::PRODUCT_TYPE_COMPUTE_ENGINE => 'PRODUCT_TYPE_COMPUTE_ENGINE', + self::PRODUCT_TYPE_ORACLE_ON_GCP => 'PRODUCT_TYPE_ORACLE_ON_GCP', + self::PRODUCT_TYPE_BIGQUERY => 'PRODUCT_TYPE_BIGQUERY', + self::PRODUCT_TYPE_OTHER => 'PRODUCT_TYPE_OTHER', + ]; + + 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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryDatabaseResourceGroupsRequest.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryDatabaseResourceGroupsRequest.php new file mode 100644 index 00000000000..562184b0ca3 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryDatabaseResourceGroupsRequest.php @@ -0,0 +1,568 @@ +google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsRequest + */ +class QueryDatabaseResourceGroupsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Parent can be a project, a folder, or an organization. The search + * is limited to the resources within the `scope`. + * The allowed values are: + * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") + * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") + * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") + * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parent = ''; + /** + * Optional. The expression to filter resources. + * The following fields are filterable: + * * full_resource_name + * * resource_type + * * container + * * product.type + * * product.engine + * * product.version + * * location + * * labels + * * resource_category + * * machine_config.cpu_count + * * machine_config.memory_size_bytes + * * machine_config.shard_count + * * resource_name + * * tags + * * backupdr_config.backupdr_managed + * * edition + * The expression is a list of zero or more restrictions combined via logical + * operators `AND` and `OR`. When `AND` and `OR` are both used in the + * expression, parentheses must be appropriately used to group the + * combinations. + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` + * Example: `full_resource_name=~"test"` + * Example: `full_resource_name=~"test.*master"` + * + * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Groups of signal types that are requested. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $signal_type_groups; + /** + * Optional. Filters based on signals. The list will be ORed together and then + * ANDed with the `filters` field above. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalFilter signal_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $signal_filters; + /** + * Optional. A field that specifies the sort order of the results. + * The following fields are sortable: + * * full_resource_name + * * product.type + * * product.engine + * * product.version + * * container + * * issue_count + * * machine_config.vcpu_count + * * machine_config.memory_size_bytes + * * machine_config.shard_count + * * resource_name + * * issue_severity + * * signal_type + * * location + * * resource_type + * * instance_type + * * edition + * * metrics.p99_cpu_utilization + * * metrics.p95_cpu_utilization + * * metrics.current_storage_used_bytes + * * metrics.node_count + * * metrics.processing_unit_count + * * metrics.current_memory_used_bytes + * * metrics.peak_storage_utilization + * * metrics.peak_number_connections + * * metrics.peak_memory_utilization + * The default order is ascending. Add "DESC" after the field name to indicate + * descending order. Add "ASC" after the field name to indicate ascending + * order. It only supports a single field at a time. + * For example: + * `order_by = "full_resource_name"` sorts response in ascending order + * `order_by = "full_resource_name DESC"` sorts response in descending order + * `order_by = "issue_count DESC"` sorts response in descending order of + * count of all issues associated with a resource. + * More explicitly, `order_by = "full_resource_name, product"` is not + * supported. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. If unspecified, at most 50 resource groups will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous + * `QueryDatabaseResourceGroupsRequest` call. Provide this to retrieve the + * subsequent page. All parameters except page_token should match the + * parameters in the call that provided the page page token. + * + * Generated from protobuf field string page_token = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Parent can be a project, a folder, or an organization. The search + * is limited to the resources within the `scope`. + * The allowed values are: + * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") + * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") + * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") + * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + * @type string $filter + * Optional. The expression to filter resources. + * The following fields are filterable: + * * full_resource_name + * * resource_type + * * container + * * product.type + * * product.engine + * * product.version + * * location + * * labels + * * resource_category + * * machine_config.cpu_count + * * machine_config.memory_size_bytes + * * machine_config.shard_count + * * resource_name + * * tags + * * backupdr_config.backupdr_managed + * * edition + * The expression is a list of zero or more restrictions combined via logical + * operators `AND` and `OR`. When `AND` and `OR` are both used in the + * expression, parentheses must be appropriately used to group the + * combinations. + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` + * Example: `full_resource_name=~"test"` + * Example: `full_resource_name=~"test.*master"` + * @type array<\Google\Cloud\DatabaseCenter\V1beta\SignalTypeGroup>|\Google\Protobuf\Internal\RepeatedField $signal_type_groups + * Optional. Groups of signal types that are requested. + * @type array<\Google\Cloud\DatabaseCenter\V1beta\SignalFilter>|\Google\Protobuf\Internal\RepeatedField $signal_filters + * Optional. Filters based on signals. The list will be ORed together and then + * ANDed with the `filters` field above. + * @type string $order_by + * Optional. A field that specifies the sort order of the results. + * The following fields are sortable: + * * full_resource_name + * * product.type + * * product.engine + * * product.version + * * container + * * issue_count + * * machine_config.vcpu_count + * * machine_config.memory_size_bytes + * * machine_config.shard_count + * * resource_name + * * issue_severity + * * signal_type + * * location + * * resource_type + * * instance_type + * * edition + * * metrics.p99_cpu_utilization + * * metrics.p95_cpu_utilization + * * metrics.current_storage_used_bytes + * * metrics.node_count + * * metrics.processing_unit_count + * * metrics.current_memory_used_bytes + * * metrics.peak_storage_utilization + * * metrics.peak_number_connections + * * metrics.peak_memory_utilization + * The default order is ascending. Add "DESC" after the field name to indicate + * descending order. Add "ASC" after the field name to indicate ascending + * order. It only supports a single field at a time. + * For example: + * `order_by = "full_resource_name"` sorts response in ascending order + * `order_by = "full_resource_name DESC"` sorts response in descending order + * `order_by = "issue_count DESC"` sorts response in descending order of + * count of all issues associated with a resource. + * More explicitly, `order_by = "full_resource_name, product"` is not + * supported. + * @type int $page_size + * Optional. If unspecified, at most 50 resource groups will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous + * `QueryDatabaseResourceGroupsRequest` call. Provide this to retrieve the + * subsequent page. All parameters except page_token should match the + * parameters in the call that provided the page page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. Parent can be a project, a folder, or an organization. The search + * is limited to the resources within the `scope`. + * The allowed values are: + * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") + * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") + * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") + * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Parent can be a project, a folder, or an organization. The search + * is limited to the resources within the `scope`. + * The allowed values are: + * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") + * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") + * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") + * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The expression to filter resources. + * The following fields are filterable: + * * full_resource_name + * * resource_type + * * container + * * product.type + * * product.engine + * * product.version + * * location + * * labels + * * resource_category + * * machine_config.cpu_count + * * machine_config.memory_size_bytes + * * machine_config.shard_count + * * resource_name + * * tags + * * backupdr_config.backupdr_managed + * * edition + * The expression is a list of zero or more restrictions combined via logical + * operators `AND` and `OR`. When `AND` and `OR` are both used in the + * expression, parentheses must be appropriately used to group the + * combinations. + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` + * Example: `full_resource_name=~"test"` + * Example: `full_resource_name=~"test.*master"` + * + * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. The expression to filter resources. + * The following fields are filterable: + * * full_resource_name + * * resource_type + * * container + * * product.type + * * product.engine + * * product.version + * * location + * * labels + * * resource_category + * * machine_config.cpu_count + * * machine_config.memory_size_bytes + * * machine_config.shard_count + * * resource_name + * * tags + * * backupdr_config.backupdr_managed + * * edition + * The expression is a list of zero or more restrictions combined via logical + * operators `AND` and `OR`. When `AND` and `OR` are both used in the + * expression, parentheses must be appropriately used to group the + * combinations. + * Example: `location="us-east1"` + * Example: `container="projects/123" OR container="projects/456"` + * Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` + * Example: `full_resource_name=~"test"` + * Example: `full_resource_name=~"test.*master"` + * + * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Groups of signal types that are requested. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSignalTypeGroups() + { + return $this->signal_type_groups; + } + + /** + * Optional. Groups of signal types that are requested. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Cloud\DatabaseCenter\V1beta\SignalTypeGroup>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSignalTypeGroups($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\SignalTypeGroup::class); + $this->signal_type_groups = $arr; + + return $this; + } + + /** + * Optional. Filters based on signals. The list will be ORed together and then + * ANDed with the `filters` field above. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalFilter signal_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSignalFilters() + { + return $this->signal_filters; + } + + /** + * Optional. Filters based on signals. The list will be ORed together and then + * ANDed with the `filters` field above. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalFilter signal_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Cloud\DatabaseCenter\V1beta\SignalFilter>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSignalFilters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\SignalFilter::class); + $this->signal_filters = $arr; + + return $this; + } + + /** + * Optional. A field that specifies the sort order of the results. + * The following fields are sortable: + * * full_resource_name + * * product.type + * * product.engine + * * product.version + * * container + * * issue_count + * * machine_config.vcpu_count + * * machine_config.memory_size_bytes + * * machine_config.shard_count + * * resource_name + * * issue_severity + * * signal_type + * * location + * * resource_type + * * instance_type + * * edition + * * metrics.p99_cpu_utilization + * * metrics.p95_cpu_utilization + * * metrics.current_storage_used_bytes + * * metrics.node_count + * * metrics.processing_unit_count + * * metrics.current_memory_used_bytes + * * metrics.peak_storage_utilization + * * metrics.peak_number_connections + * * metrics.peak_memory_utilization + * The default order is ascending. Add "DESC" after the field name to indicate + * descending order. Add "ASC" after the field name to indicate ascending + * order. It only supports a single field at a time. + * For example: + * `order_by = "full_resource_name"` sorts response in ascending order + * `order_by = "full_resource_name DESC"` sorts response in descending order + * `order_by = "issue_count DESC"` sorts response in descending order of + * count of all issues associated with a resource. + * More explicitly, `order_by = "full_resource_name, product"` is not + * supported. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. A field that specifies the sort order of the results. + * The following fields are sortable: + * * full_resource_name + * * product.type + * * product.engine + * * product.version + * * container + * * issue_count + * * machine_config.vcpu_count + * * machine_config.memory_size_bytes + * * machine_config.shard_count + * * resource_name + * * issue_severity + * * signal_type + * * location + * * resource_type + * * instance_type + * * edition + * * metrics.p99_cpu_utilization + * * metrics.p95_cpu_utilization + * * metrics.current_storage_used_bytes + * * metrics.node_count + * * metrics.processing_unit_count + * * metrics.current_memory_used_bytes + * * metrics.peak_storage_utilization + * * metrics.peak_number_connections + * * metrics.peak_memory_utilization + * The default order is ascending. Add "DESC" after the field name to indicate + * descending order. Add "ASC" after the field name to indicate ascending + * order. It only supports a single field at a time. + * For example: + * `order_by = "full_resource_name"` sorts response in ascending order + * `order_by = "full_resource_name DESC"` sorts response in descending order + * `order_by = "issue_count DESC"` sorts response in descending order of + * count of all issues associated with a resource. + * More explicitly, `order_by = "full_resource_name, product"` is not + * supported. + * + * Generated from protobuf field string order_by = 5 [(.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. If unspecified, at most 50 resource groups will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. If unspecified, at most 50 resource groups will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous + * `QueryDatabaseResourceGroupsRequest` call. Provide this to retrieve the + * subsequent page. All parameters except page_token should match the + * parameters in the call that provided the page page token. + * + * Generated from protobuf field string page_token = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous + * `QueryDatabaseResourceGroupsRequest` call. Provide this to retrieve the + * subsequent page. All parameters except page_token should match the + * parameters in the call that provided the page page token. + * + * Generated from protobuf field string page_token = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryDatabaseResourceGroupsResponse.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryDatabaseResourceGroupsResponse.php new file mode 100644 index 00000000000..371fefb7462 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryDatabaseResourceGroupsResponse.php @@ -0,0 +1,144 @@ +google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsResponse + */ +class QueryDatabaseResourceGroupsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of database resource groups that pass the filter. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.DatabaseResourceGroup resource_groups = 1; + */ + private $resource_groups; + /** + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Unordered list. List of unreachable regions from where data could not be + * retrieved. + * + * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\DatabaseCenter\V1beta\DatabaseResourceGroup>|\Google\Protobuf\Internal\RepeatedField $resource_groups + * List of database resource groups that pass the filter. + * @type string $next_page_token + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable + * Unordered list. List of unreachable regions from where data could not be + * retrieved. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); + parent::__construct($data); + } + + /** + * List of database resource groups that pass the filter. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.DatabaseResourceGroup resource_groups = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getResourceGroups() + { + return $this->resource_groups; + } + + /** + * List of database resource groups that pass the filter. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.DatabaseResourceGroup resource_groups = 1; + * @param array<\Google\Cloud\DatabaseCenter\V1beta\DatabaseResourceGroup>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setResourceGroups($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\DatabaseResourceGroup::class); + $this->resource_groups = $arr; + + return $this; + } + + /** + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * 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; + } + + /** + * Unordered list. List of unreachable regions from where data could not be + * retrieved. + * + * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Unordered list. List of unreachable regions from where data could not be + * retrieved. + * + * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryIssuesRequest.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryIssuesRequest.php new file mode 100644 index 00000000000..156d75aae03 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryIssuesRequest.php @@ -0,0 +1,359 @@ +google.cloud.databasecenter.v1beta.QueryIssuesRequest + */ +class QueryIssuesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Parent can be a project, a folder, or an organization. The list + * is limited to the one attached to resources within the `scope` that a user + * has access to. + * The allowed values are: + * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") + * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") + * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") + * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parent = ''; + /** + * Optional. + * Supported fields are: + * 'product', + * `location`, + * `issue_severity`, + * 'tags', + * 'labels', + * + * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Filters based on signal and product. The filter list will be ORed + * across pairs and ANDed within a signal and products pair. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalProductsFilters signal_products_filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $signal_products_filters; + /** + * Optional. Following fields are sortable: + * SignalType + * Product + * Location + * IssueSeverity + * The default order is ascending. Add "DESC" after the field name to indicate + * descending order. Add "ASC" after the field name to indicate ascending + * order. It only supports a single field at a time. + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. If unspecified, at most 50 issues will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `QueryIssues` call. + * Provide this to retrieve the subsequent page. + * All parameters except page size should match the parameters used in the + * call that provided the page token. + * + * Generated from protobuf field string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. Parent can be a project, a folder, or an organization. The list + * is limited to the one attached to resources within the `scope` that a user + * has access to. + * + * The allowed values are: + * + * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") + * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") + * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") + * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + * + * @return \Google\Cloud\DatabaseCenter\V1beta\QueryIssuesRequest + * + * @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 can be a project, a folder, or an organization. The list + * is limited to the one attached to resources within the `scope` that a user + * has access to. + * The allowed values are: + * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") + * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") + * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") + * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + * @type string $filter + * Optional. + * Supported fields are: + * 'product', + * `location`, + * `issue_severity`, + * 'tags', + * 'labels', + * @type array<\Google\Cloud\DatabaseCenter\V1beta\SignalProductsFilters>|\Google\Protobuf\Internal\RepeatedField $signal_products_filters + * Optional. Filters based on signal and product. The filter list will be ORed + * across pairs and ANDed within a signal and products pair. + * @type string $order_by + * Optional. Following fields are sortable: + * SignalType + * Product + * Location + * IssueSeverity + * The default order is ascending. Add "DESC" after the field name to indicate + * descending order. Add "ASC" after the field name to indicate ascending + * order. It only supports a single field at a time. + * @type int $page_size + * Optional. If unspecified, at most 50 issues will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `QueryIssues` call. + * Provide this to retrieve the subsequent page. + * All parameters except page size should match the parameters used in the + * call that provided the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. Parent can be a project, a folder, or an organization. The list + * is limited to the one attached to resources within the `scope` that a user + * has access to. + * The allowed values are: + * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") + * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") + * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") + * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Parent can be a project, a folder, or an organization. The list + * is limited to the one attached to resources within the `scope` that a user + * has access to. + * The allowed values are: + * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") + * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") + * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") + * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. + * Supported fields are: + * 'product', + * `location`, + * `issue_severity`, + * 'tags', + * 'labels', + * + * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. + * Supported fields are: + * 'product', + * `location`, + * `issue_severity`, + * 'tags', + * 'labels', + * + * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Filters based on signal and product. The filter list will be ORed + * across pairs and ANDed within a signal and products pair. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalProductsFilters signal_products_filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSignalProductsFilters() + { + return $this->signal_products_filters; + } + + /** + * Optional. Filters based on signal and product. The filter list will be ORed + * across pairs and ANDed within a signal and products pair. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalProductsFilters signal_products_filters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Cloud\DatabaseCenter\V1beta\SignalProductsFilters>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSignalProductsFilters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\SignalProductsFilters::class); + $this->signal_products_filters = $arr; + + return $this; + } + + /** + * Optional. Following fields are sortable: + * SignalType + * Product + * Location + * IssueSeverity + * The default order is ascending. Add "DESC" after the field name to indicate + * descending order. Add "ASC" after the field name to indicate ascending + * order. It only supports a single field at a time. + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Following fields are sortable: + * SignalType + * Product + * Location + * IssueSeverity + * The default order is ascending. Add "DESC" after the field name to indicate + * descending order. Add "ASC" after the field name to indicate ascending + * order. It only supports a single field at a time. + * + * 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. If unspecified, at most 50 issues will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. If unspecified, at most 50 issues will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `QueryIssues` call. + * Provide this to retrieve the subsequent page. + * All parameters except page size should match the parameters used in the + * call that provided the page token. + * + * Generated from protobuf field string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `QueryIssues` call. + * Provide this to retrieve the subsequent page. + * All parameters except page size should match the parameters used in the + * call that provided the page token. + * + * Generated from protobuf field string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryIssuesResponse.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryIssuesResponse.php new file mode 100644 index 00000000000..ef6bfe5fdbd --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryIssuesResponse.php @@ -0,0 +1,143 @@ +google.cloud.databasecenter.v1beta.QueryIssuesResponse + */ +class QueryIssuesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of issues and resource details. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1; + */ + private $resource_issues; + /** + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Unordered list. List of unreachable regions from where data could not be + * retrieved. + * + * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\DatabaseCenter\V1beta\DatabaseResourceIssue>|\Google\Protobuf\Internal\RepeatedField $resource_issues + * List of issues and resource details. + * @type string $next_page_token + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable + * Unordered list. List of unreachable regions from where data could not be + * retrieved. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); + parent::__construct($data); + } + + /** + * List of issues and resource details. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getResourceIssues() + { + return $this->resource_issues; + } + + /** + * List of issues and resource details. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1; + * @param array<\Google\Cloud\DatabaseCenter\V1beta\DatabaseResourceIssue>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setResourceIssues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\DatabaseResourceIssue::class); + $this->resource_issues = $arr; + + return $this; + } + + /** + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * 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; + } + + /** + * Unordered list. List of unreachable regions from where data could not be + * retrieved. + * + * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Unordered list. List of unreachable regions from where data could not be + * retrieved. + * + * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryProductsRequest.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryProductsRequest.php new file mode 100644 index 00000000000..d2eef2b02bd --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryProductsRequest.php @@ -0,0 +1,203 @@ +google.cloud.databasecenter.v1beta.QueryProductsRequest + */ +class QueryProductsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Parent can be a project, a folder, or an organization. + * The allowed values are: + * * projects/{PROJECT_ID}/locations/{LOCATION} + * (e.g.,"projects/foo-bar/locations/us-central1") + * * projects/{PROJECT_NUMBER}/locations/{LOCATION} + * (e.g.,"projects/12345678/locations/us-central1") + * * folders/{FOLDER_NUMBER}/locations/{LOCATION} + * (e.g.,"folders/1234567/locations/us-central1") + * * organizations/{ORGANIZATION_NUMBER}/locations/{LOCATION} + * (e.g.,"organizations/123456/locations/us-central1") + * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") + * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") + * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") + * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + * + * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parent = ''; + /** + * Optional. If unspecified, at most 50 products will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListLocations` call. + * Provide this to retrieve the subsequent page. + * All other parameters except page size should match the call that provided + * the page page token. + * + * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Parent can be a project, a folder, or an organization. + * The allowed values are: + * * projects/{PROJECT_ID}/locations/{LOCATION} + * (e.g.,"projects/foo-bar/locations/us-central1") + * * projects/{PROJECT_NUMBER}/locations/{LOCATION} + * (e.g.,"projects/12345678/locations/us-central1") + * * folders/{FOLDER_NUMBER}/locations/{LOCATION} + * (e.g.,"folders/1234567/locations/us-central1") + * * organizations/{ORGANIZATION_NUMBER}/locations/{LOCATION} + * (e.g.,"organizations/123456/locations/us-central1") + * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") + * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") + * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") + * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + * @type int $page_size + * Optional. If unspecified, at most 50 products will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListLocations` call. + * Provide this to retrieve the subsequent page. + * All other parameters except page size should match the call that provided + * the page page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. Parent can be a project, a folder, or an organization. + * The allowed values are: + * * projects/{PROJECT_ID}/locations/{LOCATION} + * (e.g.,"projects/foo-bar/locations/us-central1") + * * projects/{PROJECT_NUMBER}/locations/{LOCATION} + * (e.g.,"projects/12345678/locations/us-central1") + * * folders/{FOLDER_NUMBER}/locations/{LOCATION} + * (e.g.,"folders/1234567/locations/us-central1") + * * organizations/{ORGANIZATION_NUMBER}/locations/{LOCATION} + * (e.g.,"organizations/123456/locations/us-central1") + * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") + * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") + * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") + * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + * + * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Parent can be a project, a folder, or an organization. + * The allowed values are: + * * projects/{PROJECT_ID}/locations/{LOCATION} + * (e.g.,"projects/foo-bar/locations/us-central1") + * * projects/{PROJECT_NUMBER}/locations/{LOCATION} + * (e.g.,"projects/12345678/locations/us-central1") + * * folders/{FOLDER_NUMBER}/locations/{LOCATION} + * (e.g.,"folders/1234567/locations/us-central1") + * * organizations/{ORGANIZATION_NUMBER}/locations/{LOCATION} + * (e.g.,"organizations/123456/locations/us-central1") + * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") + * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") + * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") + * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + * + * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. If unspecified, at most 50 products will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. If unspecified, at most 50 products will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListLocations` call. + * Provide this to retrieve the subsequent page. + * All other parameters except page size should match the call that provided + * the page page token. + * + * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListLocations` call. + * Provide this to retrieve the subsequent page. + * All other parameters except page size should match the call that provided + * the page page token. + * + * 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; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryProductsResponse.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryProductsResponse.php new file mode 100644 index 00000000000..ef9d081f1c9 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryProductsResponse.php @@ -0,0 +1,143 @@ +google.cloud.databasecenter.v1beta.QueryProductsResponse + */ +class QueryProductsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of database products returned. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Product products = 1; + */ + private $products; + /** + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Unordered list. List of unreachable regions from where data could not be + * retrieved. + * + * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\DatabaseCenter\V1beta\Product>|\Google\Protobuf\Internal\RepeatedField $products + * List of database products returned. + * @type string $next_page_token + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable + * Unordered list. List of unreachable regions from where data could not be + * retrieved. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); + parent::__construct($data); + } + + /** + * List of database products returned. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Product products = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getProducts() + { + return $this->products; + } + + /** + * List of database products returned. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Product products = 1; + * @param array<\Google\Cloud\DatabaseCenter\V1beta\Product>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setProducts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\Product::class); + $this->products = $arr; + + return $this; + } + + /** + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token that can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages + * + * 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; + } + + /** + * Unordered list. List of unreachable regions from where data could not be + * retrieved. + * + * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Unordered list. List of unreachable regions from where data could not be + * retrieved. + * + * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/RecommendationInfo.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/RecommendationInfo.php new file mode 100644 index 00000000000..59f583c6008 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/RecommendationInfo.php @@ -0,0 +1,179 @@ +google.cloud.databasecenter.v1beta.RecommendationInfo + */ +class RecommendationInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Name of recommendation. + * Examples: + * organizations/1234/locations/us-central1/recommenders/google.cloudsql.instance.PerformanceRecommender/recommendations/9876 + * + * Generated from protobuf field string recommender = 1; + */ + protected $recommender = ''; + /** + * ID of recommender. + * Examples: "google.cloudsql.instance.PerformanceRecommender" + * + * Generated from protobuf field string recommender_id = 2; + */ + protected $recommender_id = ''; + /** + * Contains an identifier for a subtype of recommendations produced for the + * same recommender. Subtype is a function of content and impact, meaning a + * new subtype might be added when significant changes to `content` or + * `primary_impact.category` are introduced. See the Recommenders section + * to see a list of subtypes for a given Recommender. + * Examples: + * For recommender = "google.cloudsql.instance.PerformanceRecommender", + * recommender_subtype can be + * "MYSQL_HIGH_NUMBER_OF_OPEN_TABLES_BEST_PRACTICE"/"POSTGRES_HIGH_TRANSACTION_ID_UTILIZATION_BEST_PRACTICE" + * + * Generated from protobuf field string recommender_subtype = 3; + */ + protected $recommender_subtype = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $recommender + * Name of recommendation. + * Examples: + * organizations/1234/locations/us-central1/recommenders/google.cloudsql.instance.PerformanceRecommender/recommendations/9876 + * @type string $recommender_id + * ID of recommender. + * Examples: "google.cloudsql.instance.PerformanceRecommender" + * @type string $recommender_subtype + * Contains an identifier for a subtype of recommendations produced for the + * same recommender. Subtype is a function of content and impact, meaning a + * new subtype might be added when significant changes to `content` or + * `primary_impact.category` are introduced. See the Recommenders section + * to see a list of subtypes for a given Recommender. + * Examples: + * For recommender = "google.cloudsql.instance.PerformanceRecommender", + * recommender_subtype can be + * "MYSQL_HIGH_NUMBER_OF_OPEN_TABLES_BEST_PRACTICE"/"POSTGRES_HIGH_TRANSACTION_ID_UTILIZATION_BEST_PRACTICE" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); + parent::__construct($data); + } + + /** + * Name of recommendation. + * Examples: + * organizations/1234/locations/us-central1/recommenders/google.cloudsql.instance.PerformanceRecommender/recommendations/9876 + * + * Generated from protobuf field string recommender = 1; + * @return string + */ + public function getRecommender() + { + return $this->recommender; + } + + /** + * Name of recommendation. + * Examples: + * organizations/1234/locations/us-central1/recommenders/google.cloudsql.instance.PerformanceRecommender/recommendations/9876 + * + * Generated from protobuf field string recommender = 1; + * @param string $var + * @return $this + */ + public function setRecommender($var) + { + GPBUtil::checkString($var, True); + $this->recommender = $var; + + return $this; + } + + /** + * ID of recommender. + * Examples: "google.cloudsql.instance.PerformanceRecommender" + * + * Generated from protobuf field string recommender_id = 2; + * @return string + */ + public function getRecommenderId() + { + return $this->recommender_id; + } + + /** + * ID of recommender. + * Examples: "google.cloudsql.instance.PerformanceRecommender" + * + * Generated from protobuf field string recommender_id = 2; + * @param string $var + * @return $this + */ + public function setRecommenderId($var) + { + GPBUtil::checkString($var, True); + $this->recommender_id = $var; + + return $this; + } + + /** + * Contains an identifier for a subtype of recommendations produced for the + * same recommender. Subtype is a function of content and impact, meaning a + * new subtype might be added when significant changes to `content` or + * `primary_impact.category` are introduced. See the Recommenders section + * to see a list of subtypes for a given Recommender. + * Examples: + * For recommender = "google.cloudsql.instance.PerformanceRecommender", + * recommender_subtype can be + * "MYSQL_HIGH_NUMBER_OF_OPEN_TABLES_BEST_PRACTICE"/"POSTGRES_HIGH_TRANSACTION_ID_UTILIZATION_BEST_PRACTICE" + * + * Generated from protobuf field string recommender_subtype = 3; + * @return string + */ + public function getRecommenderSubtype() + { + return $this->recommender_subtype; + } + + /** + * Contains an identifier for a subtype of recommendations produced for the + * same recommender. Subtype is a function of content and impact, meaning a + * new subtype might be added when significant changes to `content` or + * `primary_impact.category` are introduced. See the Recommenders section + * to see a list of subtypes for a given Recommender. + * Examples: + * For recommender = "google.cloudsql.instance.PerformanceRecommender", + * recommender_subtype can be + * "MYSQL_HIGH_NUMBER_OF_OPEN_TABLES_BEST_PRACTICE"/"POSTGRES_HIGH_TRANSACTION_ID_UTILIZATION_BEST_PRACTICE" + * + * Generated from protobuf field string recommender_subtype = 3; + * @param string $var + * @return $this + */ + public function setRecommenderSubtype($var) + { + GPBUtil::checkString($var, True); + $this->recommender_subtype = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/RegulatoryStandard.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/RegulatoryStandard.php new file mode 100644 index 00000000000..f8e5afc848a --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/RegulatoryStandard.php @@ -0,0 +1,105 @@ +google.cloud.databasecenter.v1beta.RegulatoryStandard + */ +class RegulatoryStandard extends \Google\Protobuf\Internal\Message +{ + /** + * Name of industry compliance standards, such as such as CIS, PCI, and + * OWASP. + * + * Generated from protobuf field string standard = 1; + */ + protected $standard = ''; + /** + * Version of the standard or benchmark, for example, 1.1. + * + * Generated from protobuf field string version = 2; + */ + protected $version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $standard + * Name of industry compliance standards, such as such as CIS, PCI, and + * OWASP. + * @type string $version + * Version of the standard or benchmark, for example, 1.1. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); + parent::__construct($data); + } + + /** + * Name of industry compliance standards, such as such as CIS, PCI, and + * OWASP. + * + * Generated from protobuf field string standard = 1; + * @return string + */ + public function getStandard() + { + return $this->standard; + } + + /** + * Name of industry compliance standards, such as such as CIS, PCI, and + * OWASP. + * + * Generated from protobuf field string standard = 1; + * @param string $var + * @return $this + */ + public function setStandard($var) + { + GPBUtil::checkString($var, True); + $this->standard = $var; + + return $this; + } + + /** + * Version of the standard or benchmark, for example, 1.1. + * + * Generated from protobuf field string version = 2; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * Version of the standard or benchmark, for example, 1.1. + * + * 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; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceCategory.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceCategory.php new file mode 100644 index 00000000000..1e62a3b8b66 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceCategory.php @@ -0,0 +1,68 @@ +google.cloud.databasecenter.v1beta.ResourceCategory + */ +class ResourceCategory +{ + /** + * Unspecified. + * + * Generated from protobuf enum RESOURCE_CATEGORY_UNSPECIFIED = 0; + */ + const RESOURCE_CATEGORY_UNSPECIFIED = 0; + /** + * A resource that is an Instance. + * + * Generated from protobuf enum INSTANCE = 1; + */ + const INSTANCE = 1; + /** + * A resource that is a Cluster. + * + * Generated from protobuf enum CLUSTER = 2; + */ + const CLUSTER = 2; + /** + * A resource that is a Database. + * + * Generated from protobuf enum DATABASE = 3; + */ + const DATABASE = 3; + + private static $valueToName = [ + self::RESOURCE_CATEGORY_UNSPECIFIED => 'RESOURCE_CATEGORY_UNSPECIFIED', + self::INSTANCE => 'INSTANCE', + self::CLUSTER => 'CLUSTER', + self::DATABASE => 'DATABASE', + ]; + + 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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceDetails.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceDetails.php new file mode 100644 index 00000000000..2b35ea8a5cd --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceDetails.php @@ -0,0 +1,184 @@ +google.cloud.databasecenter.v1beta.ResourceDetails + */ +class ResourceDetails extends \Google\Protobuf\Internal\Message +{ + /** + * Full resource name of the resource. + * + * Generated from protobuf field string full_resource_name = 1; + */ + protected $full_resource_name = ''; + /** + * Specifies where the resource is created. For Google Cloud resources, it is + * the full name of the project. + * + * Generated from protobuf field string container = 2; + */ + protected $container = ''; + /** + * Product type of the resource. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.Product product = 3; + */ + protected $product = null; + /** + * Location of the resource. + * + * Generated from protobuf field string location = 4; + */ + protected $location = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $full_resource_name + * Full resource name of the resource. + * @type string $container + * Specifies where the resource is created. For Google Cloud resources, it is + * the full name of the project. + * @type \Google\Cloud\DatabaseCenter\V1beta\Product $product + * Product type of the resource. + * @type string $location + * Location of the resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); + parent::__construct($data); + } + + /** + * Full resource name of the resource. + * + * Generated from protobuf field string full_resource_name = 1; + * @return string + */ + public function getFullResourceName() + { + return $this->full_resource_name; + } + + /** + * Full resource name of the resource. + * + * Generated from protobuf field string full_resource_name = 1; + * @param string $var + * @return $this + */ + public function setFullResourceName($var) + { + GPBUtil::checkString($var, True); + $this->full_resource_name = $var; + + return $this; + } + + /** + * Specifies where the resource is created. For Google Cloud resources, it is + * the full name of the project. + * + * Generated from protobuf field string container = 2; + * @return string + */ + public function getContainer() + { + return $this->container; + } + + /** + * Specifies where the resource is created. For Google Cloud resources, it is + * the full name of the project. + * + * Generated from protobuf field string container = 2; + * @param string $var + * @return $this + */ + public function setContainer($var) + { + GPBUtil::checkString($var, True); + $this->container = $var; + + return $this; + } + + /** + * Product type of the resource. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.Product product = 3; + * @return \Google\Cloud\DatabaseCenter\V1beta\Product|null + */ + public function getProduct() + { + return $this->product; + } + + public function hasProduct() + { + return isset($this->product); + } + + public function clearProduct() + { + unset($this->product); + } + + /** + * Product type of the resource. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.Product product = 3; + * @param \Google\Cloud\DatabaseCenter\V1beta\Product $var + * @return $this + */ + public function setProduct($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\Product::class); + $this->product = $var; + + return $this; + } + + /** + * Location of the resource. + * + * Generated from protobuf field string location = 4; + * @return string + */ + public function getLocation() + { + return $this->location; + } + + /** + * Location of the resource. + * + * Generated from protobuf field string location = 4; + * @param string $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkString($var, True); + $this->location = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceMaintenanceDenySchedule.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceMaintenanceDenySchedule.php new file mode 100644 index 00000000000..5eb5aba10da --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceMaintenanceDenySchedule.php @@ -0,0 +1,171 @@ +google.cloud.databasecenter.v1beta.ResourceMaintenanceDenySchedule + */ +class ResourceMaintenanceDenySchedule extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The start date of the deny maintenance period. + * + * Generated from protobuf field .google.type.Date start_date = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $start_date = null; + /** + * Optional. Deny period end date. + * + * Generated from protobuf field .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $end_date = null; + /** + * Optional. Time in UTC when the deny period starts on start_date and ends on + * end_date. + * + * Generated from protobuf field .google.type.TimeOfDay time = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Type\Date $start_date + * Optional. The start date of the deny maintenance period. + * @type \Google\Type\Date $end_date + * Optional. Deny period end date. + * @type \Google\Type\TimeOfDay $time + * Optional. Time in UTC when the deny period starts on start_date and ends on + * end_date. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Maintenance::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The start date of the deny maintenance period. + * + * Generated from protobuf field .google.type.Date start_date = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Type\Date|null + */ + public function getStartDate() + { + return $this->start_date; + } + + public function hasStartDate() + { + return isset($this->start_date); + } + + public function clearStartDate() + { + unset($this->start_date); + } + + /** + * Optional. The start date of the deny maintenance period. + * + * Generated from protobuf field .google.type.Date start_date = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Type\Date $var + * @return $this + */ + public function setStartDate($var) + { + GPBUtil::checkMessage($var, \Google\Type\Date::class); + $this->start_date = $var; + + return $this; + } + + /** + * Optional. Deny period end date. + * + * Generated from protobuf field .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Type\Date|null + */ + public function getEndDate() + { + return $this->end_date; + } + + public function hasEndDate() + { + return isset($this->end_date); + } + + public function clearEndDate() + { + unset($this->end_date); + } + + /** + * Optional. Deny period end date. + * + * Generated from protobuf field .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Type\Date $var + * @return $this + */ + public function setEndDate($var) + { + GPBUtil::checkMessage($var, \Google\Type\Date::class); + $this->end_date = $var; + + return $this; + } + + /** + * Optional. Time in UTC when the deny period starts on start_date and ends on + * end_date. + * + * Generated from protobuf field .google.type.TimeOfDay time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Type\TimeOfDay|null + */ + public function getTime() + { + return $this->time; + } + + public function hasTime() + { + return isset($this->time); + } + + public function clearTime() + { + unset($this->time); + } + + /** + * Optional. Time in UTC when the deny period starts on start_date and ends on + * end_date. + * + * Generated from protobuf field .google.type.TimeOfDay time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Type\TimeOfDay $var + * @return $this + */ + public function setTime($var) + { + GPBUtil::checkMessage($var, \Google\Type\TimeOfDay::class); + $this->time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceMaintenanceSchedule.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceMaintenanceSchedule.php new file mode 100644 index 00000000000..f77366e5832 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceMaintenanceSchedule.php @@ -0,0 +1,174 @@ +google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule + */ +class ResourceMaintenanceSchedule extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Preferred time to start the maintenance operation on the + * specified day. + * + * Generated from protobuf field .google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $start_time = null; + /** + * Optional. Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, + * etc. + * + * Generated from protobuf field .google.type.DayOfWeek day = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $day = 0; + /** + * Optional. Phase of the maintenance window. This is to capture order of + * maintenance. For example, for Cloud SQL resources, this can be used to + * capture if the maintenance window is in Week1, Week2, Week5, etc. Non + * production resources are usually part of early phase. + * For more details, refer to Cloud SQL resources - + * https://cloud.google.com/sql/docs/mysql/maintenance + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.Phase phase = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $phase = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Type\TimeOfDay $start_time + * Optional. Preferred time to start the maintenance operation on the + * specified day. + * @type int $day + * Optional. Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, + * etc. + * @type int $phase + * Optional. Phase of the maintenance window. This is to capture order of + * maintenance. For example, for Cloud SQL resources, this can be used to + * capture if the maintenance window is in Week1, Week2, Week5, etc. Non + * production resources are usually part of early phase. + * For more details, refer to Cloud SQL resources - + * https://cloud.google.com/sql/docs/mysql/maintenance + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Maintenance::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Preferred time to start the maintenance operation on the + * specified day. + * + * Generated from protobuf field .google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Type\TimeOfDay|null + */ + public function getStartTime() + { + return $this->start_time; + } + + public function hasStartTime() + { + return isset($this->start_time); + } + + public function clearStartTime() + { + unset($this->start_time); + } + + /** + * Optional. Preferred time to start the maintenance operation on the + * specified day. + * + * Generated from protobuf field .google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Type\TimeOfDay $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Type\TimeOfDay::class); + $this->start_time = $var; + + return $this; + } + + /** + * Optional. Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, + * etc. + * + * Generated from protobuf field .google.type.DayOfWeek day = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getDay() + { + return $this->day; + } + + /** + * Optional. Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, + * etc. + * + * Generated from protobuf field .google.type.DayOfWeek day = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setDay($var) + { + GPBUtil::checkEnum($var, \Google\Type\DayOfWeek::class); + $this->day = $var; + + return $this; + } + + /** + * Optional. Phase of the maintenance window. This is to capture order of + * maintenance. For example, for Cloud SQL resources, this can be used to + * capture if the maintenance window is in Week1, Week2, Week5, etc. Non + * production resources are usually part of early phase. + * For more details, refer to Cloud SQL resources - + * https://cloud.google.com/sql/docs/mysql/maintenance + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.Phase phase = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPhase() + { + return $this->phase; + } + + /** + * Optional. Phase of the maintenance window. This is to capture order of + * maintenance. For example, for Cloud SQL resources, this can be used to + * capture if the maintenance window is in Week1, Week2, Week5, etc. Non + * production resources are usually part of early phase. + * For more details, refer to Cloud SQL resources - + * https://cloud.google.com/sql/docs/mysql/maintenance + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.Phase phase = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPhase($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\Phase::class); + $this->phase = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceSuspensionInfo.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceSuspensionInfo.php new file mode 100644 index 00000000000..49c82220b5e --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceSuspensionInfo.php @@ -0,0 +1,101 @@ +google.cloud.databasecenter.v1beta.ResourceSuspensionInfo + */ +class ResourceSuspensionInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Is resource suspended. + * + * Generated from protobuf field bool resource_suspended = 1; + */ + protected $resource_suspended = false; + /** + * Suspension reason for the resource. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SuspensionReason suspension_reason = 2; + */ + protected $suspension_reason = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $resource_suspended + * Is resource suspended. + * @type int $suspension_reason + * Suspension reason for the resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); + parent::__construct($data); + } + + /** + * Is resource suspended. + * + * Generated from protobuf field bool resource_suspended = 1; + * @return bool + */ + public function getResourceSuspended() + { + return $this->resource_suspended; + } + + /** + * Is resource suspended. + * + * Generated from protobuf field bool resource_suspended = 1; + * @param bool $var + * @return $this + */ + public function setResourceSuspended($var) + { + GPBUtil::checkBool($var); + $this->resource_suspended = $var; + + return $this; + } + + /** + * Suspension reason for the resource. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SuspensionReason suspension_reason = 2; + * @return int + */ + public function getSuspensionReason() + { + return $this->suspension_reason; + } + + /** + * Suspension reason for the resource. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SuspensionReason suspension_reason = 2; + * @param int $var + * @return $this + */ + public function setSuspensionReason($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\SuspensionReason::class); + $this->suspension_reason = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/RetentionSettingsInfo.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/RetentionSettingsInfo.php new file mode 100644 index 00000000000..a3de0d106ea --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/RetentionSettingsInfo.php @@ -0,0 +1,212 @@ +google.cloud.databasecenter.v1beta.RetentionSettingsInfo + */ +class RetentionSettingsInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Sub resource details associated with the backup configuration. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResource sub_resource = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $sub_resource = null; + protected $retention; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Int32Value $quantity_based_retention + * Number of backups that will be retained. + * @type \Google\Protobuf\Duration $duration_based_retention + * Duration based retention period i.e. 172800 seconds (2 days) + * @type \Google\Protobuf\Timestamp $timestamp_based_retention_time + * Timestamp based retention period i.e. till 2024-05-01T00:00:00Z + * @type \Google\Cloud\DatabaseCenter\V1beta\SubResource $sub_resource + * Optional. Sub resource details associated with the backup configuration. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); + parent::__construct($data); + } + + /** + * Number of backups that will be retained. + * + * Generated from protobuf field .google.protobuf.Int32Value quantity_based_retention = 3; + * @return \Google\Protobuf\Int32Value|null + */ + public function getQuantityBasedRetention() + { + return $this->readOneof(3); + } + + public function hasQuantityBasedRetention() + { + return $this->hasOneof(3); + } + + /** + * Returns the unboxed value from getQuantityBasedRetention() + + * Number of backups that will be retained. + * + * Generated from protobuf field .google.protobuf.Int32Value quantity_based_retention = 3; + * @return int|null + */ + public function getQuantityBasedRetentionUnwrapped() + { + return $this->readWrapperValue("quantity_based_retention"); + } + + /** + * Number of backups that will be retained. + * + * Generated from protobuf field .google.protobuf.Int32Value quantity_based_retention = 3; + * @param \Google\Protobuf\Int32Value $var + * @return $this + */ + public function setQuantityBasedRetention($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. + + * Number of backups that will be retained. + * + * Generated from protobuf field .google.protobuf.Int32Value quantity_based_retention = 3; + * @param int|null $var + * @return $this + */ + public function setQuantityBasedRetentionUnwrapped($var) + { + $this->writeWrapperValue("quantity_based_retention", $var); + return $this;} + + /** + * Duration based retention period i.e. 172800 seconds (2 days) + * + * Generated from protobuf field .google.protobuf.Duration duration_based_retention = 5; + * @return \Google\Protobuf\Duration|null + */ + public function getDurationBasedRetention() + { + return $this->readOneof(5); + } + + public function hasDurationBasedRetention() + { + return $this->hasOneof(5); + } + + /** + * Duration based retention period i.e. 172800 seconds (2 days) + * + * Generated from protobuf field .google.protobuf.Duration duration_based_retention = 5; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setDurationBasedRetention($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Timestamp based retention period i.e. till 2024-05-01T00:00:00Z + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp_based_retention_time = 6; + * @return \Google\Protobuf\Timestamp|null + */ + public function getTimestampBasedRetentionTime() + { + return $this->readOneof(6); + } + + public function hasTimestampBasedRetentionTime() + { + return $this->hasOneof(6); + } + + /** + * Timestamp based retention period i.e. till 2024-05-01T00:00:00Z + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp_based_retention_time = 6; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setTimestampBasedRetentionTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Optional. Sub resource details associated with the backup configuration. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResource sub_resource = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\DatabaseCenter\V1beta\SubResource|null + */ + public function getSubResource() + { + return $this->sub_resource; + } + + public function hasSubResource() + { + return isset($this->sub_resource); + } + + public function clearSubResource() + { + unset($this->sub_resource); + } + + /** + * Optional. Sub resource details associated with the backup configuration. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResource sub_resource = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\DatabaseCenter\V1beta\SubResource $var + * @return $this + */ + public function setSubResource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\SubResource::class); + $this->sub_resource = $var; + + return $this; + } + + /** + * @return string + */ + public function getRetention() + { + return $this->whichOneof("retention"); + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SCCInfo.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SCCInfo.php new file mode 100644 index 00000000000..528a6b075ca --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SCCInfo.php @@ -0,0 +1,169 @@ +google.cloud.databasecenter.v1beta.SCCInfo + */ +class SCCInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Name of the signal. + * + * Generated from protobuf field string signal = 1; + */ + protected $signal = ''; + /** + * Name by which SCC calls this signal. + * + * Generated from protobuf field string category = 2; + */ + protected $category = ''; + /** + * Compliances that are associated with the signal. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.RegulatoryStandard regulatory_standards = 3; + */ + private $regulatory_standards; + /** + * External URI which points to a SCC page associated with the signal. + * + * Generated from protobuf field string external_uri = 4; + */ + protected $external_uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $signal + * Name of the signal. + * @type string $category + * Name by which SCC calls this signal. + * @type array<\Google\Cloud\DatabaseCenter\V1beta\RegulatoryStandard>|\Google\Protobuf\Internal\RepeatedField $regulatory_standards + * Compliances that are associated with the signal. + * @type string $external_uri + * External URI which points to a SCC page associated with the signal. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); + parent::__construct($data); + } + + /** + * Name of the signal. + * + * Generated from protobuf field string signal = 1; + * @return string + */ + public function getSignal() + { + return $this->signal; + } + + /** + * Name of the signal. + * + * Generated from protobuf field string signal = 1; + * @param string $var + * @return $this + */ + public function setSignal($var) + { + GPBUtil::checkString($var, True); + $this->signal = $var; + + return $this; + } + + /** + * Name by which SCC calls this signal. + * + * Generated from protobuf field string category = 2; + * @return string + */ + public function getCategory() + { + return $this->category; + } + + /** + * Name by which SCC calls this signal. + * + * Generated from protobuf field string category = 2; + * @param string $var + * @return $this + */ + public function setCategory($var) + { + GPBUtil::checkString($var, True); + $this->category = $var; + + return $this; + } + + /** + * Compliances that are associated with the signal. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.RegulatoryStandard regulatory_standards = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRegulatoryStandards() + { + return $this->regulatory_standards; + } + + /** + * Compliances that are associated with the signal. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.RegulatoryStandard regulatory_standards = 3; + * @param array<\Google\Cloud\DatabaseCenter\V1beta\RegulatoryStandard>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRegulatoryStandards($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\RegulatoryStandard::class); + $this->regulatory_standards = $arr; + + return $this; + } + + /** + * External URI which points to a SCC page associated with the signal. + * + * Generated from protobuf field string external_uri = 4; + * @return string + */ + public function getExternalUri() + { + return $this->external_uri; + } + + /** + * External URI which points to a SCC page associated with the signal. + * + * Generated from protobuf field string external_uri = 4; + * @param string $var + * @return $this + */ + public function setExternalUri($var) + { + GPBUtil::checkString($var, True); + $this->external_uri = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Signal.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Signal.php new file mode 100644 index 00000000000..551aa670ecb --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Signal.php @@ -0,0 +1,233 @@ +google.cloud.databasecenter.v1beta.Signal + */ +class Signal extends \Google\Protobuf\Internal\Message +{ + /** + * Type of the signal. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 1; + */ + protected $signal_type = 0; + /** + * Status of the signal. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalStatus signal_status = 2; + */ + protected $signal_status = 0; + /** + * Additional information related to the signal. + * In the case of composite signals, this field encapsulates details + * associated with granular signals, having a signal status of "ISSUE"; + * signals with a status of "OK" are not included. + * For granular signals, it encompasses information relevant to the signal, + * regardless of the signal status. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.AdditionalDetail additional_details = 3; + */ + private $additional_details; + /** + * Severity of the issue. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.IssueSeverity issue_severity = 4; + */ + protected $issue_severity = 0; + /** + * Timestamp when the issue was created (when signal status is ISSUE). + * + * Generated from protobuf field .google.protobuf.Timestamp issue_create_time = 5; + */ + protected $issue_create_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $signal_type + * Type of the signal. + * @type int $signal_status + * Status of the signal. + * @type array<\Google\Cloud\DatabaseCenter\V1beta\AdditionalDetail>|\Google\Protobuf\Internal\RepeatedField $additional_details + * Additional information related to the signal. + * In the case of composite signals, this field encapsulates details + * associated with granular signals, having a signal status of "ISSUE"; + * signals with a status of "OK" are not included. + * For granular signals, it encompasses information relevant to the signal, + * regardless of the signal status. + * @type int $issue_severity + * Severity of the issue. + * @type \Google\Protobuf\Timestamp $issue_create_time + * Timestamp when the issue was created (when signal status is ISSUE). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); + parent::__construct($data); + } + + /** + * Type of the signal. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 1; + * @return int + */ + public function getSignalType() + { + return $this->signal_type; + } + + /** + * Type of the signal. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 1; + * @param int $var + * @return $this + */ + public function setSignalType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\SignalType::class); + $this->signal_type = $var; + + return $this; + } + + /** + * Status of the signal. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalStatus signal_status = 2; + * @return int + */ + public function getSignalStatus() + { + return $this->signal_status; + } + + /** + * Status of the signal. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalStatus signal_status = 2; + * @param int $var + * @return $this + */ + public function setSignalStatus($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\SignalStatus::class); + $this->signal_status = $var; + + return $this; + } + + /** + * Additional information related to the signal. + * In the case of composite signals, this field encapsulates details + * associated with granular signals, having a signal status of "ISSUE"; + * signals with a status of "OK" are not included. + * For granular signals, it encompasses information relevant to the signal, + * regardless of the signal status. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.AdditionalDetail additional_details = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAdditionalDetails() + { + return $this->additional_details; + } + + /** + * Additional information related to the signal. + * In the case of composite signals, this field encapsulates details + * associated with granular signals, having a signal status of "ISSUE"; + * signals with a status of "OK" are not included. + * For granular signals, it encompasses information relevant to the signal, + * regardless of the signal status. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.AdditionalDetail additional_details = 3; + * @param array<\Google\Cloud\DatabaseCenter\V1beta\AdditionalDetail>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAdditionalDetails($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\AdditionalDetail::class); + $this->additional_details = $arr; + + return $this; + } + + /** + * Severity of the issue. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.IssueSeverity issue_severity = 4; + * @return int + */ + public function getIssueSeverity() + { + return $this->issue_severity; + } + + /** + * Severity of the issue. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.IssueSeverity issue_severity = 4; + * @param int $var + * @return $this + */ + public function setIssueSeverity($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\IssueSeverity::class); + $this->issue_severity = $var; + + return $this; + } + + /** + * Timestamp when the issue was created (when signal status is ISSUE). + * + * Generated from protobuf field .google.protobuf.Timestamp issue_create_time = 5; + * @return \Google\Protobuf\Timestamp|null + */ + public function getIssueCreateTime() + { + return $this->issue_create_time; + } + + public function hasIssueCreateTime() + { + return isset($this->issue_create_time); + } + + public function clearIssueCreateTime() + { + unset($this->issue_create_time); + } + + /** + * Timestamp when the issue was created (when signal status is ISSUE). + * + * Generated from protobuf field .google.protobuf.Timestamp issue_create_time = 5; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setIssueCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->issue_create_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalFilter.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalFilter.php new file mode 100644 index 00000000000..6d25a56a3f9 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalFilter.php @@ -0,0 +1,113 @@ +google.cloud.databasecenter.v1beta.SignalFilter + */ +class SignalFilter extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Represents the type of the Signal for which the filter is for. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $signal_type = 0; + /** + * Optional. Represents the status of the Signal for which the filter is for. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalStatus signal_status = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $signal_status = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $signal_type + * Optional. Represents the type of the Signal for which the filter is for. + * @type int $signal_status + * Optional. Represents the status of the Signal for which the filter is for. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Represents the type of the Signal for which the filter is for. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSignalType() + { + return $this->signal_type; + } + + /** + * Optional. Represents the type of the Signal for which the filter is for. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSignalType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\SignalType::class); + $this->signal_type = $var; + + return $this; + } + + /** + * Optional. Represents the status of the Signal for which the filter is for. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalStatus signal_status = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSignalStatus() + { + return $this->signal_status; + } + + /** + * Optional. Represents the status of the Signal for which the filter is for. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalStatus signal_status = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSignalStatus($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\SignalStatus::class); + $this->signal_status = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalGroup.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalGroup.php new file mode 100644 index 00000000000..0bc20d23a55 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalGroup.php @@ -0,0 +1,147 @@ +google.cloud.databasecenter.v1beta.SignalGroup + */ +class SignalGroup extends \Google\Protobuf\Internal\Message +{ + /** + * Title of a signal group corresponding to the request. + * + * Generated from protobuf field string display_name = 1; + */ + protected $display_name = ''; + /** + * When applied to a DatabaseResource represents count of issues associated + * with the resource. A signal is an issue when its SignalStatus field is + * set to SIGNAL_STATUS_ISSUE. + * + * Generated from protobuf field int32 issue_count = 2; + */ + protected $issue_count = 0; + /** + * List of signals present in the group and associated with the resource. + * Only applies to a DatabaseResource. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Signal signals = 3; + */ + private $signals; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * Title of a signal group corresponding to the request. + * @type int $issue_count + * When applied to a DatabaseResource represents count of issues associated + * with the resource. A signal is an issue when its SignalStatus field is + * set to SIGNAL_STATUS_ISSUE. + * @type array<\Google\Cloud\DatabaseCenter\V1beta\Signal>|\Google\Protobuf\Internal\RepeatedField $signals + * List of signals present in the group and associated with the resource. + * Only applies to a DatabaseResource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); + parent::__construct($data); + } + + /** + * Title of a signal group corresponding to the request. + * + * Generated from protobuf field string display_name = 1; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Title of a signal group corresponding to the request. + * + * 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; + } + + /** + * When applied to a DatabaseResource represents count of issues associated + * with the resource. A signal is an issue when its SignalStatus field is + * set to SIGNAL_STATUS_ISSUE. + * + * Generated from protobuf field int32 issue_count = 2; + * @return int + */ + public function getIssueCount() + { + return $this->issue_count; + } + + /** + * When applied to a DatabaseResource represents count of issues associated + * with the resource. A signal is an issue when its SignalStatus field is + * set to SIGNAL_STATUS_ISSUE. + * + * Generated from protobuf field int32 issue_count = 2; + * @param int $var + * @return $this + */ + public function setIssueCount($var) + { + GPBUtil::checkInt32($var); + $this->issue_count = $var; + + return $this; + } + + /** + * List of signals present in the group and associated with the resource. + * Only applies to a DatabaseResource. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Signal signals = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSignals() + { + return $this->signals; + } + + /** + * List of signals present in the group and associated with the resource. + * Only applies to a DatabaseResource. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Signal signals = 3; + * @param array<\Google\Cloud\DatabaseCenter\V1beta\Signal>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSignals($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\Signal::class); + $this->signals = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalProductsFilters.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalProductsFilters.php new file mode 100644 index 00000000000..74fef9fb5f7 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalProductsFilters.php @@ -0,0 +1,105 @@ +google.cloud.databasecenter.v1beta.SignalProductsFilters + */ +class SignalProductsFilters extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The type of signal. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $signal_type = 0; + /** + * Optional. Product type of the resource. The version of the product will be + * ignored in filtering. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $products; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $signal_type + * Optional. The type of signal. + * @type array<\Google\Cloud\DatabaseCenter\V1beta\Product>|\Google\Protobuf\Internal\RepeatedField $products + * Optional. Product type of the resource. The version of the product will be + * ignored in filtering. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The type of signal. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSignalType() + { + return $this->signal_type; + } + + /** + * Optional. The type of signal. + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSignalType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\SignalType::class); + $this->signal_type = $var; + + return $this; + } + + /** + * Optional. Product type of the resource. The version of the product will be + * ignored in filtering. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getProducts() + { + return $this->products; + } + + /** + * Optional. Product type of the resource. The version of the product will be + * ignored in filtering. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Cloud\DatabaseCenter\V1beta\Product>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setProducts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\Product::class); + $this->products = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalSource.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalSource.php new file mode 100644 index 00000000000..8fbd07a9964 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalSource.php @@ -0,0 +1,76 @@ +google.cloud.databasecenter.v1beta.SignalSource + */ +class SignalSource +{ + /** + * Unspecified. + * + * Generated from protobuf enum SIGNAL_SOURCE_UNSPECIFIED = 0; + */ + const SIGNAL_SOURCE_UNSPECIFIED = 0; + /** + * Signal comes from resource metadata. + * + * Generated from protobuf enum SIGNAL_SOURCE_RESOURCE_METADATA = 1; + */ + const SIGNAL_SOURCE_RESOURCE_METADATA = 1; + /** + * Signal comes from SCC findings. + * + * Generated from protobuf enum SIGNAL_SOURCE_SECURITY_FINDINGS = 2; + */ + const SIGNAL_SOURCE_SECURITY_FINDINGS = 2; + /** + * Signal comes from recommender hub. + * + * Generated from protobuf enum SIGNAL_SOURCE_RECOMMENDER = 3; + */ + const SIGNAL_SOURCE_RECOMMENDER = 3; + /** + * Signal comes from modern observability platform. + * + * Generated from protobuf enum SIGNAL_SOURCE_MODERN_OBSERVABILITY = 4; + */ + const SIGNAL_SOURCE_MODERN_OBSERVABILITY = 4; + + private static $valueToName = [ + self::SIGNAL_SOURCE_UNSPECIFIED => 'SIGNAL_SOURCE_UNSPECIFIED', + self::SIGNAL_SOURCE_RESOURCE_METADATA => 'SIGNAL_SOURCE_RESOURCE_METADATA', + self::SIGNAL_SOURCE_SECURITY_FINDINGS => 'SIGNAL_SOURCE_SECURITY_FINDINGS', + self::SIGNAL_SOURCE_RECOMMENDER => 'SIGNAL_SOURCE_RECOMMENDER', + self::SIGNAL_SOURCE_MODERN_OBSERVABILITY => 'SIGNAL_SOURCE_MODERN_OBSERVABILITY', + ]; + + 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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalStatus.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalStatus.php new file mode 100644 index 00000000000..3ea2aa93cf6 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalStatus.php @@ -0,0 +1,76 @@ +google.cloud.databasecenter.v1beta.SignalStatus + */ +class SignalStatus +{ + /** + * Unspecified. + * + * Generated from protobuf enum SIGNAL_STATUS_UNSPECIFIED = 0; + */ + const SIGNAL_STATUS_UNSPECIFIED = 0; + /** + * Signal is not applicable to the resource. + * + * Generated from protobuf enum SIGNAL_STATUS_NOT_APPLICABLE = 1; + */ + const SIGNAL_STATUS_NOT_APPLICABLE = 1; + /** + * Signal is not an issue. + * + * Generated from protobuf enum SIGNAL_STATUS_OK = 2; + */ + const SIGNAL_STATUS_OK = 2; + /** + * Signal is an issue. + * + * Generated from protobuf enum SIGNAL_STATUS_ISSUE = 3; + */ + const SIGNAL_STATUS_ISSUE = 3; + /** + * Signal is not enabled for the resource. + * + * Generated from protobuf enum SIGNAL_STATUS_NOT_ENABLED = 4; + */ + const SIGNAL_STATUS_NOT_ENABLED = 4; + + private static $valueToName = [ + self::SIGNAL_STATUS_UNSPECIFIED => 'SIGNAL_STATUS_UNSPECIFIED', + self::SIGNAL_STATUS_NOT_APPLICABLE => 'SIGNAL_STATUS_NOT_APPLICABLE', + self::SIGNAL_STATUS_OK => 'SIGNAL_STATUS_OK', + self::SIGNAL_STATUS_ISSUE => 'SIGNAL_STATUS_ISSUE', + self::SIGNAL_STATUS_NOT_ENABLED => 'SIGNAL_STATUS_NOT_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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalType.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalType.php new file mode 100644 index 00000000000..4688618ef12 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalType.php @@ -0,0 +1,775 @@ +google.cloud.databasecenter.v1beta.SignalType + */ +class SignalType +{ + /** + * Unspecified. + * + * Generated from protobuf enum SIGNAL_TYPE_UNSPECIFIED = 0; + */ + const SIGNAL_TYPE_UNSPECIFIED = 0; + /** + * Represents if a resource is protected by automatic failover. + * Checks for resources that are configured to have redundancy + * within a region that enables automatic failover. + * + * Generated from protobuf enum SIGNAL_TYPE_RESOURCE_FAILOVER_PROTECTED = 1; + */ + const SIGNAL_TYPE_RESOURCE_FAILOVER_PROTECTED = 1; + /** + * Represents if a group is replicating across regions. + * Checks for resources that are configured to have redundancy, + * and ongoing replication, across regions. + * + * Generated from protobuf enum SIGNAL_TYPE_GROUP_MULTIREGIONAL = 2; + */ + const SIGNAL_TYPE_GROUP_MULTIREGIONAL = 2; + /** + * Represents if a resource has an automated backup policy. + * + * Generated from protobuf enum SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY = 4; + */ + const SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY = 4; + /** + * Represents if a resources has a short backup retention period. + * + * Generated from protobuf enum SIGNAL_TYPE_SHORT_BACKUP_RETENTION = 5; + */ + const SIGNAL_TYPE_SHORT_BACKUP_RETENTION = 5; + /** + * Represents if the last backup of a resource failed. + * + * Generated from protobuf enum SIGNAL_TYPE_LAST_BACKUP_FAILED = 6; + */ + const SIGNAL_TYPE_LAST_BACKUP_FAILED = 6; + /** + * Represents if the last backup of a resource is older than some threshold + * value. + * + * Generated from protobuf enum SIGNAL_TYPE_LAST_BACKUP_OLD = 7; + */ + const SIGNAL_TYPE_LAST_BACKUP_OLD = 7; + /** + * Represents if a resource violates CIS Google Cloud Platform Foundation 2.0. + * + * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_2_0 = 8; + */ + const SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_2_0 = 8; + /** + * Represents if a resource violates CIS Google Cloud Platform Foundation 1.3. + * + * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_3 = 9; + */ + const SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_3 = 9; + /** + * Represents if a resource violates CIS Google Cloud Platform Foundation 1.2. + * + * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_2 = 10; + */ + const SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_2 = 10; + /** + * Represents if a resource violates CIS Google Cloud Platform Foundation 1.1. + * + * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_1 = 11; + */ + const SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_1 = 11; + /** + * Represents if a resource violates CIS Google Cloud Platform Foundation 1.0. + * + * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_0 = 12; + */ + const SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_0 = 12; + /** + * Represents if a resource violates CIS Controls 8.0. + * + * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_CIS_CONTROLS_V8_0 = 76; + */ + const SIGNAL_TYPE_VIOLATES_CIS_CONTROLS_V8_0 = 76; + /** + * Represents if a resource violates NIST 800-53. + * + * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_NIST_800_53 = 13; + */ + const SIGNAL_TYPE_VIOLATES_NIST_800_53 = 13; + /** + * Represents if a resource violates NIST 800-53 R5. + * + * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_NIST_800_53_R5 = 69; + */ + const SIGNAL_TYPE_VIOLATES_NIST_800_53_R5 = 69; + /** + * Represents if a resource violates NIST Cybersecurity Framework 1.0. + * + * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_NIST_CYBERSECURITY_FRAMEWORK_V1_0 = 72; + */ + const SIGNAL_TYPE_VIOLATES_NIST_CYBERSECURITY_FRAMEWORK_V1_0 = 72; + /** + * Represents if a resource violates ISO-27001. + * + * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_ISO_27001 = 14; + */ + const SIGNAL_TYPE_VIOLATES_ISO_27001 = 14; + /** + * Represents if a resource violates ISO 27001 2022. + * + * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_ISO_27001_V2022 = 70; + */ + const SIGNAL_TYPE_VIOLATES_ISO_27001_V2022 = 70; + /** + * Represents if a resource violates PCI-DSS v3.2.1. + * + * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_PCI_DSS_V3_2_1 = 15; + */ + const SIGNAL_TYPE_VIOLATES_PCI_DSS_V3_2_1 = 15; + /** + * Represents if a resource violates PCI-DSS v4.0. + * + * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_PCI_DSS_V4_0 = 71; + */ + const SIGNAL_TYPE_VIOLATES_PCI_DSS_V4_0 = 71; + /** + * Represents if a resource violates Cloud Controls Matrix v4.0. + * + * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_CLOUD_CONTROLS_MATRIX_V4 = 73; + */ + const SIGNAL_TYPE_VIOLATES_CLOUD_CONTROLS_MATRIX_V4 = 73; + /** + * Represents if a resource violates HIPAA. + * + * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_HIPAA = 74; + */ + const SIGNAL_TYPE_VIOLATES_HIPAA = 74; + /** + * Represents if a resource violates SOC2 v2017. + * + * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_SOC2_V2017 = 75; + */ + const SIGNAL_TYPE_VIOLATES_SOC2_V2017 = 75; + /** + * Represents if log_checkpoints database flag for a Cloud SQL for PostgreSQL + * instance is not set to on. + * + * Generated from protobuf enum SIGNAL_TYPE_LOGS_NOT_OPTIMIZED_FOR_TROUBLESHOOTING = 16; + */ + const SIGNAL_TYPE_LOGS_NOT_OPTIMIZED_FOR_TROUBLESHOOTING = 16; + /** + * Represents if the log_duration database flag for a Cloud SQL for PostgreSQL + * instance is not set to on. + * + * Generated from protobuf enum SIGNAL_TYPE_QUERY_DURATIONS_NOT_LOGGED = 17; + */ + const SIGNAL_TYPE_QUERY_DURATIONS_NOT_LOGGED = 17; + /** + * Represents if the log_error_verbosity database flag for a Cloud SQL for + * PostgreSQL instance is not set to default or stricter (default or terse). + * + * Generated from protobuf enum SIGNAL_TYPE_VERBOSE_ERROR_LOGGING = 18; + */ + const SIGNAL_TYPE_VERBOSE_ERROR_LOGGING = 18; + /** + * Represents if the log_lock_waits database flag for a Cloud SQL for + * PostgreSQL instance is not set to on. + * + * Generated from protobuf enum SIGNAL_TYPE_QUERY_LOCK_WAITS_NOT_LOGGED = 19; + */ + const SIGNAL_TYPE_QUERY_LOCK_WAITS_NOT_LOGGED = 19; + /** + * Represents if the log_min_error_statement database flag for a Cloud SQL + * for PostgreSQL instance is not set appropriately. + * + * Generated from protobuf enum SIGNAL_TYPE_LOGGING_MOST_ERRORS = 20; + */ + const SIGNAL_TYPE_LOGGING_MOST_ERRORS = 20; + /** + * Represents if the log_min_error_statement database flag for a Cloud SQL + * for PostgreSQL instance does not have an appropriate severity level. + * + * Generated from protobuf enum SIGNAL_TYPE_LOGGING_ONLY_CRITICAL_ERRORS = 21; + */ + const SIGNAL_TYPE_LOGGING_ONLY_CRITICAL_ERRORS = 21; + /** + * Represents if the log_min_messages database flag for a Cloud SQL for + * PostgreSQL instance is not set to warning or another recommended value. + * + * Generated from protobuf enum SIGNAL_TYPE_MINIMAL_ERROR_LOGGING = 22; + */ + const SIGNAL_TYPE_MINIMAL_ERROR_LOGGING = 22; + /** + * Represents if the databaseFlags property of instance metadata for + * the log_executor_status field is set to on. + * + * Generated from protobuf enum SIGNAL_TYPE_QUERY_STATS_LOGGED = 23; + */ + const SIGNAL_TYPE_QUERY_STATS_LOGGED = 23; + /** + * Represents if the log_hostname database flag for a Cloud SQL for + * PostgreSQL instance is not set to off. + * + * Generated from protobuf enum SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_CLIENT_HOSTNAME = 24; + */ + const SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_CLIENT_HOSTNAME = 24; + /** + * Represents if the log_parser_stats database flag for a Cloud SQL for + * PostgreSQL instance is not set to off. + * + * Generated from protobuf enum SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_PARSER_STATS = 25; + */ + const SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_PARSER_STATS = 25; + /** + * Represents if the log_planner_stats database flag for a Cloud SQL for + * PostgreSQL instance is not set to off. + * + * Generated from protobuf enum SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_PLANNER_STATS = 26; + */ + const SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_PLANNER_STATS = 26; + /** + * Represents if the log_statement database flag for a Cloud SQL for + * PostgreSQL instance is not set to DDL (all data definition statements). + * + * Generated from protobuf enum SIGNAL_TYPE_NOT_LOGGING_ONLY_DDL_STATEMENTS = 27; + */ + const SIGNAL_TYPE_NOT_LOGGING_ONLY_DDL_STATEMENTS = 27; + /** + * Represents if the log_statement_stats database flag for a Cloud SQL for + * PostgreSQL instance is not set to off. + * + * Generated from protobuf enum SIGNAL_TYPE_LOGGING_QUERY_STATS = 28; + */ + const SIGNAL_TYPE_LOGGING_QUERY_STATS = 28; + /** + * Represents if the log_temp_files database flag for a Cloud SQL for + * PostgreSQL instance is not set to "0". (NOTE: 0 = ON) + * + * Generated from protobuf enum SIGNAL_TYPE_NOT_LOGGING_TEMPORARY_FILES = 29; + */ + const SIGNAL_TYPE_NOT_LOGGING_TEMPORARY_FILES = 29; + /** + * Represents if the user connections database flag for a Cloud SQL for SQL + * Server instance is configured. + * + * Generated from protobuf enum SIGNAL_TYPE_CONNECTION_MAX_NOT_CONFIGURED = 30; + */ + const SIGNAL_TYPE_CONNECTION_MAX_NOT_CONFIGURED = 30; + /** + * Represents if the user options database flag for Cloud SQL SQL Server + * instance is configured or not. + * + * Generated from protobuf enum SIGNAL_TYPE_USER_OPTIONS_CONFIGURED = 31; + */ + const SIGNAL_TYPE_USER_OPTIONS_CONFIGURED = 31; + /** + * Represents if a resource is exposed to public access. + * + * Generated from protobuf enum SIGNAL_TYPE_EXPOSED_TO_PUBLIC_ACCESS = 32; + */ + const SIGNAL_TYPE_EXPOSED_TO_PUBLIC_ACCESS = 32; + /** + * Represents if a resources requires all incoming connections to use SSL + * or not. + * + * Generated from protobuf enum SIGNAL_TYPE_UNENCRYPTED_CONNECTIONS = 33; + */ + const SIGNAL_TYPE_UNENCRYPTED_CONNECTIONS = 33; + /** + * Represents if a Cloud SQL database has a password configured for the + * root account or not. + * + * Generated from protobuf enum SIGNAL_TYPE_NO_ROOT_PASSWORD = 34; + */ + const SIGNAL_TYPE_NO_ROOT_PASSWORD = 34; + /** + * Represents if a Cloud SQL database has a weak password configured for the + * root account. + * + * Generated from protobuf enum SIGNAL_TYPE_WEAK_ROOT_PASSWORD = 35; + */ + const SIGNAL_TYPE_WEAK_ROOT_PASSWORD = 35; + /** + * Represents if a SQL database instance is not encrypted with + * customer-managed encryption keys (CMEK). + * + * Generated from protobuf enum SIGNAL_TYPE_ENCRYPTION_KEY_NOT_CUSTOMER_MANAGED = 36; + */ + const SIGNAL_TYPE_ENCRYPTION_KEY_NOT_CUSTOMER_MANAGED = 36; + /** + * Represents if The contained database authentication database flag for a + * Cloud SQL for SQL Server instance is not set to off. + * + * Generated from protobuf enum SIGNAL_TYPE_SERVER_AUTHENTICATION_NOT_REQUIRED = 37; + */ + const SIGNAL_TYPE_SERVER_AUTHENTICATION_NOT_REQUIRED = 37; + /** + * Represents if he external scripts enabled database flag for a Cloud SQL + * for SQL Server instance is not set to off. + * + * Generated from protobuf enum SIGNAL_TYPE_EXPOSED_TO_EXTERNAL_SCRIPTS = 39; + */ + const SIGNAL_TYPE_EXPOSED_TO_EXTERNAL_SCRIPTS = 39; + /** + * Represents if the local_infile database flag for a Cloud SQL for MySQL + * instance is not set to off. + * + * Generated from protobuf enum SIGNAL_TYPE_EXPOSED_TO_LOCAL_DATA_LOADS = 40; + */ + const SIGNAL_TYPE_EXPOSED_TO_LOCAL_DATA_LOADS = 40; + /** + * Represents if the log_connections database flag for a Cloud SQL for + * PostgreSQL instance is not set to on. + * + * Generated from protobuf enum SIGNAL_TYPE_CONNECTION_ATTEMPTS_NOT_LOGGED = 41; + */ + const SIGNAL_TYPE_CONNECTION_ATTEMPTS_NOT_LOGGED = 41; + /** + * Represents if the log_disconnections database flag for a Cloud SQL for + * PostgreSQL instance is not set to on. + * + * Generated from protobuf enum SIGNAL_TYPE_DISCONNECTIONS_NOT_LOGGED = 42; + */ + const SIGNAL_TYPE_DISCONNECTIONS_NOT_LOGGED = 42; + /** + * Represents if the log_min_duration_statement database flag for a Cloud SQL + * for PostgreSQL instance is not set to -1. + * + * Generated from protobuf enum SIGNAL_TYPE_LOGGING_EXCESSIVE_STATEMENT_INFO = 43; + */ + const SIGNAL_TYPE_LOGGING_EXCESSIVE_STATEMENT_INFO = 43; + /** + * Represents if the remote access database flag for a Cloud SQL for SQL + * Server instance is not set to off. + * + * Generated from protobuf enum SIGNAL_TYPE_EXPOSED_TO_REMOTE_ACCESS = 44; + */ + const SIGNAL_TYPE_EXPOSED_TO_REMOTE_ACCESS = 44; + /** + * Represents if the skip_show_database database flag for a Cloud SQL for + * MySQL instance is not set to on. + * + * Generated from protobuf enum SIGNAL_TYPE_DATABASE_NAMES_EXPOSED = 45; + */ + const SIGNAL_TYPE_DATABASE_NAMES_EXPOSED = 45; + /** + * Represents if the 3625 (trace flag) database flag for a Cloud SQL for + * SQL Server instance is not set to on. + * + * Generated from protobuf enum SIGNAL_TYPE_SENSITIVE_TRACE_INFO_NOT_MASKED = 46; + */ + const SIGNAL_TYPE_SENSITIVE_TRACE_INFO_NOT_MASKED = 46; + /** + * Represents if public IP is enabled. + * + * Generated from protobuf enum SIGNAL_TYPE_PUBLIC_IP_ENABLED = 47; + */ + const SIGNAL_TYPE_PUBLIC_IP_ENABLED = 47; + /** + * Represents idle instance helps to reduce costs. + * + * Generated from protobuf enum SIGNAL_TYPE_IDLE = 48; + */ + const SIGNAL_TYPE_IDLE = 48; + /** + * Represents instances that are unnecessarily large for given workload. + * + * Generated from protobuf enum SIGNAL_TYPE_OVERPROVISIONED = 49; + */ + const SIGNAL_TYPE_OVERPROVISIONED = 49; + /** + * Represents high number of concurrently opened tables. + * + * Generated from protobuf enum SIGNAL_TYPE_HIGH_NUMBER_OF_OPEN_TABLES = 50; + */ + const SIGNAL_TYPE_HIGH_NUMBER_OF_OPEN_TABLES = 50; + /** + * Represents high table count close to SLA limit. + * + * Generated from protobuf enum SIGNAL_TYPE_HIGH_NUMBER_OF_TABLES = 51; + */ + const SIGNAL_TYPE_HIGH_NUMBER_OF_TABLES = 51; + /** + * Represents high number of unvacuumed transactions + * + * Generated from protobuf enum SIGNAL_TYPE_HIGH_TRANSACTION_ID_UTILIZATION = 52; + */ + const SIGNAL_TYPE_HIGH_TRANSACTION_ID_UTILIZATION = 52; + /** + * Represents need for more CPU and/or memory + * + * Generated from protobuf enum SIGNAL_TYPE_UNDERPROVISIONED = 53; + */ + const SIGNAL_TYPE_UNDERPROVISIONED = 53; + /** + * Represents out of disk. + * + * Generated from protobuf enum SIGNAL_TYPE_OUT_OF_DISK = 54; + */ + const SIGNAL_TYPE_OUT_OF_DISK = 54; + /** + * Represents server certificate is near expiry. + * + * Generated from protobuf enum SIGNAL_TYPE_SERVER_CERTIFICATE_NEAR_EXPIRY = 55; + */ + const SIGNAL_TYPE_SERVER_CERTIFICATE_NEAR_EXPIRY = 55; + /** + * Represents database auditing is disabled. + * + * Generated from protobuf enum SIGNAL_TYPE_DATABASE_AUDITING_DISABLED = 56; + */ + const SIGNAL_TYPE_DATABASE_AUDITING_DISABLED = 56; + /** + * Represents not restricted to authorized networks. + * + * Generated from protobuf enum SIGNAL_TYPE_RESTRICT_AUTHORIZED_NETWORKS = 57; + */ + const SIGNAL_TYPE_RESTRICT_AUTHORIZED_NETWORKS = 57; + /** + * Represents violate org policy restrict public ip. + * + * Generated from protobuf enum SIGNAL_TYPE_VIOLATE_POLICY_RESTRICT_PUBLIC_IP = 58; + */ + const SIGNAL_TYPE_VIOLATE_POLICY_RESTRICT_PUBLIC_IP = 58; + /** + * Cluster nearing quota limit + * + * Generated from protobuf enum SIGNAL_TYPE_QUOTA_LIMIT = 59; + */ + const SIGNAL_TYPE_QUOTA_LIMIT = 59; + /** + * No password policy set on resources + * + * Generated from protobuf enum SIGNAL_TYPE_NO_PASSWORD_POLICY = 60; + */ + const SIGNAL_TYPE_NO_PASSWORD_POLICY = 60; + /** + * Performance impact of connections settings + * + * Generated from protobuf enum SIGNAL_TYPE_CONNECTIONS_PERFORMANCE_IMPACT = 61; + */ + const SIGNAL_TYPE_CONNECTIONS_PERFORMANCE_IMPACT = 61; + /** + * Performance impact of temporary tables settings + * + * Generated from protobuf enum SIGNAL_TYPE_TMP_TABLES_PERFORMANCE_IMPACT = 62; + */ + const SIGNAL_TYPE_TMP_TABLES_PERFORMANCE_IMPACT = 62; + /** + * Performance impact of transaction logs settings + * + * Generated from protobuf enum SIGNAL_TYPE_TRANS_LOGS_PERFORMANCE_IMPACT = 63; + */ + const SIGNAL_TYPE_TRANS_LOGS_PERFORMANCE_IMPACT = 63; + /** + * Performance impact of high joins without indexes + * + * Generated from protobuf enum SIGNAL_TYPE_HIGH_JOINS_WITHOUT_INDEXES = 64; + */ + const SIGNAL_TYPE_HIGH_JOINS_WITHOUT_INDEXES = 64; + /** + * Detects events where a database superuser (postgres for PostgreSQL servers + * or root for MySQL users) writes to non-system tables. + * + * Generated from protobuf enum SIGNAL_TYPE_SUPERUSER_WRITING_TO_USER_TABLES = 65; + */ + const SIGNAL_TYPE_SUPERUSER_WRITING_TO_USER_TABLES = 65; + /** + * Detects events where a database user or role has been granted all + * privileges to a database, or to all tables, procedures, or functions in a + * schema. + * + * Generated from protobuf enum SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS = 66; + */ + const SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS = 66; + /** + * Detects if database instance data exported to a Cloud Storage bucket + * outside of the organization. + * + * Generated from protobuf enum SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET = 67; + */ + const SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET = 67; + /** + * Detects if database instance data exported to a Cloud Storage bucket that + * is owned by the organization and is publicly accessible. + * + * Generated from protobuf enum SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET = 68; + */ + const SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET = 68; + /** + * Detects if a database instance is using a weak password hash algorithm. + * + * Generated from protobuf enum SIGNAL_TYPE_WEAK_PASSWORD_HASH_ALGORITHM = 77; + */ + const SIGNAL_TYPE_WEAK_PASSWORD_HASH_ALGORITHM = 77; + /** + * Detects if a database instance has no user password policy set. + * + * Generated from protobuf enum SIGNAL_TYPE_NO_USER_PASSWORD_POLICY = 78; + */ + const SIGNAL_TYPE_NO_USER_PASSWORD_POLICY = 78; + /** + * Detects if a database instance/cluster has a hot node. + * + * Generated from protobuf enum SIGNAL_TYPE_HOT_NODE = 79; + */ + const SIGNAL_TYPE_HOT_NODE = 79; + /** + * Deletion Protection Disabled for the resource + * + * Generated from protobuf enum SIGNAL_TYPE_NO_DELETION_PROTECTION = 80; + */ + const SIGNAL_TYPE_NO_DELETION_PROTECTION = 80; + /** + * Detects if a database instance has no point in time recovery enabled. + * + * Generated from protobuf enum SIGNAL_TYPE_NO_POINT_IN_TIME_RECOVERY = 81; + */ + const SIGNAL_TYPE_NO_POINT_IN_TIME_RECOVERY = 81; + /** + * Detects if a database instance/cluster has suspended resources. + * + * Generated from protobuf enum SIGNAL_TYPE_RESOURCE_SUSPENDED = 82; + */ + const SIGNAL_TYPE_RESOURCE_SUSPENDED = 82; + /** + * Detects that expensive commands are being run on a database instance + * impacting overall performance. + * + * Generated from protobuf enum SIGNAL_TYPE_EXPENSIVE_COMMANDS = 83; + */ + const SIGNAL_TYPE_EXPENSIVE_COMMANDS = 83; + /** + * Indicates that the instance does not have a maintenance policy configured. + * + * Generated from protobuf enum SIGNAL_TYPE_NO_MAINTENANCE_POLICY_CONFIGURED = 84; + */ + const SIGNAL_TYPE_NO_MAINTENANCE_POLICY_CONFIGURED = 84; + /** + * Indicates that the instance has inefficient queries detected. + * + * Generated from protobuf enum SIGNAL_TYPE_INEFFICIENT_QUERY = 85; + */ + const SIGNAL_TYPE_INEFFICIENT_QUERY = 85; + /** + * Indicates that the instance has read intensive workload. + * + * Generated from protobuf enum SIGNAL_TYPE_READ_INTENSIVE_WORKLOAD = 86; + */ + const SIGNAL_TYPE_READ_INTENSIVE_WORKLOAD = 86; + /** + * Indicates that the instance is nearing memory limit. + * + * Generated from protobuf enum SIGNAL_TYPE_MEMORY_LIMIT = 87; + */ + const SIGNAL_TYPE_MEMORY_LIMIT = 87; + /** + * Indicates that the instance's max server memory is configured higher than + * the recommended value. + * + * Generated from protobuf enum SIGNAL_TYPE_MAX_SERVER_MEMORY = 88; + */ + const SIGNAL_TYPE_MAX_SERVER_MEMORY = 88; + /** + * Indicates that the database has large rows beyond the recommended limit. + * + * Generated from protobuf enum SIGNAL_TYPE_LARGE_ROWS = 89; + */ + const SIGNAL_TYPE_LARGE_ROWS = 89; + /** + * Heavy write pressure on the database rows. + * + * Generated from protobuf enum SIGNAL_TYPE_HIGH_WRITE_PRESSURE = 90; + */ + const SIGNAL_TYPE_HIGH_WRITE_PRESSURE = 90; + /** + * Heavy read pressure on the database rows. + * + * Generated from protobuf enum SIGNAL_TYPE_HIGH_READ_PRESSURE = 91; + */ + const SIGNAL_TYPE_HIGH_READ_PRESSURE = 91; + /** + * Encryption org policy not satisfied. + * + * Generated from protobuf enum SIGNAL_TYPE_ENCRYPTION_ORG_POLICY_NOT_SATISFIED = 92; + */ + const SIGNAL_TYPE_ENCRYPTION_ORG_POLICY_NOT_SATISFIED = 92; + /** + * Location org policy not satisfied. + * + * Generated from protobuf enum SIGNAL_TYPE_LOCATION_ORG_POLICY_NOT_SATISFIED = 93; + */ + const SIGNAL_TYPE_LOCATION_ORG_POLICY_NOT_SATISFIED = 93; + /** + * Outdated DB minor version. + * + * Generated from protobuf enum SIGNAL_TYPE_OUTDATED_MINOR_VERSION = 94; + */ + const SIGNAL_TYPE_OUTDATED_MINOR_VERSION = 94; + /** + * Schema not optimized. + * + * Generated from protobuf enum SIGNAL_TYPE_SCHEMA_NOT_OPTIMIZED = 95; + */ + const SIGNAL_TYPE_SCHEMA_NOT_OPTIMIZED = 95; + /** + * Replication delay. + * + * Generated from protobuf enum SIGNAL_TYPE_REPLICATION_LAG = 97; + */ + const SIGNAL_TYPE_REPLICATION_LAG = 97; + /** + * Outdated client. + * + * Generated from protobuf enum SIGNAL_TYPE_OUTDATED_CLIENT = 99; + */ + const SIGNAL_TYPE_OUTDATED_CLIENT = 99; + /** + * Databoost is disabled. + * + * Generated from protobuf enum SIGNAL_TYPE_DATABOOST_DISABLED = 100; + */ + const SIGNAL_TYPE_DATABOOST_DISABLED = 100; + /** + * Recommended maintenance policy. + * + * Generated from protobuf enum SIGNAL_TYPE_RECOMMENDED_MAINTENANCE_POLICIES = 101; + */ + const SIGNAL_TYPE_RECOMMENDED_MAINTENANCE_POLICIES = 101; + /** + * Resource version is in extended support. + * + * Generated from protobuf enum SIGNAL_TYPE_EXTENDED_SUPPORT = 102; + */ + const SIGNAL_TYPE_EXTENDED_SUPPORT = 102; + + private static $valueToName = [ + self::SIGNAL_TYPE_UNSPECIFIED => 'SIGNAL_TYPE_UNSPECIFIED', + self::SIGNAL_TYPE_RESOURCE_FAILOVER_PROTECTED => 'SIGNAL_TYPE_RESOURCE_FAILOVER_PROTECTED', + self::SIGNAL_TYPE_GROUP_MULTIREGIONAL => 'SIGNAL_TYPE_GROUP_MULTIREGIONAL', + self::SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY => 'SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY', + self::SIGNAL_TYPE_SHORT_BACKUP_RETENTION => 'SIGNAL_TYPE_SHORT_BACKUP_RETENTION', + self::SIGNAL_TYPE_LAST_BACKUP_FAILED => 'SIGNAL_TYPE_LAST_BACKUP_FAILED', + self::SIGNAL_TYPE_LAST_BACKUP_OLD => 'SIGNAL_TYPE_LAST_BACKUP_OLD', + self::SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_2_0 => 'SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_2_0', + self::SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_3 => 'SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_3', + self::SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_2 => 'SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_2', + self::SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_1 => 'SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_1', + self::SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_0 => 'SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_0', + self::SIGNAL_TYPE_VIOLATES_CIS_CONTROLS_V8_0 => 'SIGNAL_TYPE_VIOLATES_CIS_CONTROLS_V8_0', + self::SIGNAL_TYPE_VIOLATES_NIST_800_53 => 'SIGNAL_TYPE_VIOLATES_NIST_800_53', + self::SIGNAL_TYPE_VIOLATES_NIST_800_53_R5 => 'SIGNAL_TYPE_VIOLATES_NIST_800_53_R5', + self::SIGNAL_TYPE_VIOLATES_NIST_CYBERSECURITY_FRAMEWORK_V1_0 => 'SIGNAL_TYPE_VIOLATES_NIST_CYBERSECURITY_FRAMEWORK_V1_0', + self::SIGNAL_TYPE_VIOLATES_ISO_27001 => 'SIGNAL_TYPE_VIOLATES_ISO_27001', + self::SIGNAL_TYPE_VIOLATES_ISO_27001_V2022 => 'SIGNAL_TYPE_VIOLATES_ISO_27001_V2022', + self::SIGNAL_TYPE_VIOLATES_PCI_DSS_V3_2_1 => 'SIGNAL_TYPE_VIOLATES_PCI_DSS_V3_2_1', + self::SIGNAL_TYPE_VIOLATES_PCI_DSS_V4_0 => 'SIGNAL_TYPE_VIOLATES_PCI_DSS_V4_0', + self::SIGNAL_TYPE_VIOLATES_CLOUD_CONTROLS_MATRIX_V4 => 'SIGNAL_TYPE_VIOLATES_CLOUD_CONTROLS_MATRIX_V4', + self::SIGNAL_TYPE_VIOLATES_HIPAA => 'SIGNAL_TYPE_VIOLATES_HIPAA', + self::SIGNAL_TYPE_VIOLATES_SOC2_V2017 => 'SIGNAL_TYPE_VIOLATES_SOC2_V2017', + self::SIGNAL_TYPE_LOGS_NOT_OPTIMIZED_FOR_TROUBLESHOOTING => 'SIGNAL_TYPE_LOGS_NOT_OPTIMIZED_FOR_TROUBLESHOOTING', + self::SIGNAL_TYPE_QUERY_DURATIONS_NOT_LOGGED => 'SIGNAL_TYPE_QUERY_DURATIONS_NOT_LOGGED', + self::SIGNAL_TYPE_VERBOSE_ERROR_LOGGING => 'SIGNAL_TYPE_VERBOSE_ERROR_LOGGING', + self::SIGNAL_TYPE_QUERY_LOCK_WAITS_NOT_LOGGED => 'SIGNAL_TYPE_QUERY_LOCK_WAITS_NOT_LOGGED', + self::SIGNAL_TYPE_LOGGING_MOST_ERRORS => 'SIGNAL_TYPE_LOGGING_MOST_ERRORS', + self::SIGNAL_TYPE_LOGGING_ONLY_CRITICAL_ERRORS => 'SIGNAL_TYPE_LOGGING_ONLY_CRITICAL_ERRORS', + self::SIGNAL_TYPE_MINIMAL_ERROR_LOGGING => 'SIGNAL_TYPE_MINIMAL_ERROR_LOGGING', + self::SIGNAL_TYPE_QUERY_STATS_LOGGED => 'SIGNAL_TYPE_QUERY_STATS_LOGGED', + self::SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_CLIENT_HOSTNAME => 'SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_CLIENT_HOSTNAME', + self::SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_PARSER_STATS => 'SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_PARSER_STATS', + self::SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_PLANNER_STATS => 'SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_PLANNER_STATS', + self::SIGNAL_TYPE_NOT_LOGGING_ONLY_DDL_STATEMENTS => 'SIGNAL_TYPE_NOT_LOGGING_ONLY_DDL_STATEMENTS', + self::SIGNAL_TYPE_LOGGING_QUERY_STATS => 'SIGNAL_TYPE_LOGGING_QUERY_STATS', + self::SIGNAL_TYPE_NOT_LOGGING_TEMPORARY_FILES => 'SIGNAL_TYPE_NOT_LOGGING_TEMPORARY_FILES', + self::SIGNAL_TYPE_CONNECTION_MAX_NOT_CONFIGURED => 'SIGNAL_TYPE_CONNECTION_MAX_NOT_CONFIGURED', + self::SIGNAL_TYPE_USER_OPTIONS_CONFIGURED => 'SIGNAL_TYPE_USER_OPTIONS_CONFIGURED', + self::SIGNAL_TYPE_EXPOSED_TO_PUBLIC_ACCESS => 'SIGNAL_TYPE_EXPOSED_TO_PUBLIC_ACCESS', + self::SIGNAL_TYPE_UNENCRYPTED_CONNECTIONS => 'SIGNAL_TYPE_UNENCRYPTED_CONNECTIONS', + self::SIGNAL_TYPE_NO_ROOT_PASSWORD => 'SIGNAL_TYPE_NO_ROOT_PASSWORD', + self::SIGNAL_TYPE_WEAK_ROOT_PASSWORD => 'SIGNAL_TYPE_WEAK_ROOT_PASSWORD', + self::SIGNAL_TYPE_ENCRYPTION_KEY_NOT_CUSTOMER_MANAGED => 'SIGNAL_TYPE_ENCRYPTION_KEY_NOT_CUSTOMER_MANAGED', + self::SIGNAL_TYPE_SERVER_AUTHENTICATION_NOT_REQUIRED => 'SIGNAL_TYPE_SERVER_AUTHENTICATION_NOT_REQUIRED', + self::SIGNAL_TYPE_EXPOSED_TO_EXTERNAL_SCRIPTS => 'SIGNAL_TYPE_EXPOSED_TO_EXTERNAL_SCRIPTS', + self::SIGNAL_TYPE_EXPOSED_TO_LOCAL_DATA_LOADS => 'SIGNAL_TYPE_EXPOSED_TO_LOCAL_DATA_LOADS', + self::SIGNAL_TYPE_CONNECTION_ATTEMPTS_NOT_LOGGED => 'SIGNAL_TYPE_CONNECTION_ATTEMPTS_NOT_LOGGED', + self::SIGNAL_TYPE_DISCONNECTIONS_NOT_LOGGED => 'SIGNAL_TYPE_DISCONNECTIONS_NOT_LOGGED', + self::SIGNAL_TYPE_LOGGING_EXCESSIVE_STATEMENT_INFO => 'SIGNAL_TYPE_LOGGING_EXCESSIVE_STATEMENT_INFO', + self::SIGNAL_TYPE_EXPOSED_TO_REMOTE_ACCESS => 'SIGNAL_TYPE_EXPOSED_TO_REMOTE_ACCESS', + self::SIGNAL_TYPE_DATABASE_NAMES_EXPOSED => 'SIGNAL_TYPE_DATABASE_NAMES_EXPOSED', + self::SIGNAL_TYPE_SENSITIVE_TRACE_INFO_NOT_MASKED => 'SIGNAL_TYPE_SENSITIVE_TRACE_INFO_NOT_MASKED', + self::SIGNAL_TYPE_PUBLIC_IP_ENABLED => 'SIGNAL_TYPE_PUBLIC_IP_ENABLED', + self::SIGNAL_TYPE_IDLE => 'SIGNAL_TYPE_IDLE', + self::SIGNAL_TYPE_OVERPROVISIONED => 'SIGNAL_TYPE_OVERPROVISIONED', + self::SIGNAL_TYPE_HIGH_NUMBER_OF_OPEN_TABLES => 'SIGNAL_TYPE_HIGH_NUMBER_OF_OPEN_TABLES', + self::SIGNAL_TYPE_HIGH_NUMBER_OF_TABLES => 'SIGNAL_TYPE_HIGH_NUMBER_OF_TABLES', + self::SIGNAL_TYPE_HIGH_TRANSACTION_ID_UTILIZATION => 'SIGNAL_TYPE_HIGH_TRANSACTION_ID_UTILIZATION', + self::SIGNAL_TYPE_UNDERPROVISIONED => 'SIGNAL_TYPE_UNDERPROVISIONED', + self::SIGNAL_TYPE_OUT_OF_DISK => 'SIGNAL_TYPE_OUT_OF_DISK', + self::SIGNAL_TYPE_SERVER_CERTIFICATE_NEAR_EXPIRY => 'SIGNAL_TYPE_SERVER_CERTIFICATE_NEAR_EXPIRY', + self::SIGNAL_TYPE_DATABASE_AUDITING_DISABLED => 'SIGNAL_TYPE_DATABASE_AUDITING_DISABLED', + self::SIGNAL_TYPE_RESTRICT_AUTHORIZED_NETWORKS => 'SIGNAL_TYPE_RESTRICT_AUTHORIZED_NETWORKS', + self::SIGNAL_TYPE_VIOLATE_POLICY_RESTRICT_PUBLIC_IP => 'SIGNAL_TYPE_VIOLATE_POLICY_RESTRICT_PUBLIC_IP', + self::SIGNAL_TYPE_QUOTA_LIMIT => 'SIGNAL_TYPE_QUOTA_LIMIT', + self::SIGNAL_TYPE_NO_PASSWORD_POLICY => 'SIGNAL_TYPE_NO_PASSWORD_POLICY', + self::SIGNAL_TYPE_CONNECTIONS_PERFORMANCE_IMPACT => 'SIGNAL_TYPE_CONNECTIONS_PERFORMANCE_IMPACT', + self::SIGNAL_TYPE_TMP_TABLES_PERFORMANCE_IMPACT => 'SIGNAL_TYPE_TMP_TABLES_PERFORMANCE_IMPACT', + self::SIGNAL_TYPE_TRANS_LOGS_PERFORMANCE_IMPACT => 'SIGNAL_TYPE_TRANS_LOGS_PERFORMANCE_IMPACT', + self::SIGNAL_TYPE_HIGH_JOINS_WITHOUT_INDEXES => 'SIGNAL_TYPE_HIGH_JOINS_WITHOUT_INDEXES', + self::SIGNAL_TYPE_SUPERUSER_WRITING_TO_USER_TABLES => 'SIGNAL_TYPE_SUPERUSER_WRITING_TO_USER_TABLES', + self::SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS => 'SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS', + self::SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET => 'SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET', + self::SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET => 'SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET', + self::SIGNAL_TYPE_WEAK_PASSWORD_HASH_ALGORITHM => 'SIGNAL_TYPE_WEAK_PASSWORD_HASH_ALGORITHM', + self::SIGNAL_TYPE_NO_USER_PASSWORD_POLICY => 'SIGNAL_TYPE_NO_USER_PASSWORD_POLICY', + self::SIGNAL_TYPE_HOT_NODE => 'SIGNAL_TYPE_HOT_NODE', + self::SIGNAL_TYPE_NO_DELETION_PROTECTION => 'SIGNAL_TYPE_NO_DELETION_PROTECTION', + self::SIGNAL_TYPE_NO_POINT_IN_TIME_RECOVERY => 'SIGNAL_TYPE_NO_POINT_IN_TIME_RECOVERY', + self::SIGNAL_TYPE_RESOURCE_SUSPENDED => 'SIGNAL_TYPE_RESOURCE_SUSPENDED', + self::SIGNAL_TYPE_EXPENSIVE_COMMANDS => 'SIGNAL_TYPE_EXPENSIVE_COMMANDS', + self::SIGNAL_TYPE_NO_MAINTENANCE_POLICY_CONFIGURED => 'SIGNAL_TYPE_NO_MAINTENANCE_POLICY_CONFIGURED', + self::SIGNAL_TYPE_INEFFICIENT_QUERY => 'SIGNAL_TYPE_INEFFICIENT_QUERY', + self::SIGNAL_TYPE_READ_INTENSIVE_WORKLOAD => 'SIGNAL_TYPE_READ_INTENSIVE_WORKLOAD', + self::SIGNAL_TYPE_MEMORY_LIMIT => 'SIGNAL_TYPE_MEMORY_LIMIT', + self::SIGNAL_TYPE_MAX_SERVER_MEMORY => 'SIGNAL_TYPE_MAX_SERVER_MEMORY', + self::SIGNAL_TYPE_LARGE_ROWS => 'SIGNAL_TYPE_LARGE_ROWS', + self::SIGNAL_TYPE_HIGH_WRITE_PRESSURE => 'SIGNAL_TYPE_HIGH_WRITE_PRESSURE', + self::SIGNAL_TYPE_HIGH_READ_PRESSURE => 'SIGNAL_TYPE_HIGH_READ_PRESSURE', + self::SIGNAL_TYPE_ENCRYPTION_ORG_POLICY_NOT_SATISFIED => 'SIGNAL_TYPE_ENCRYPTION_ORG_POLICY_NOT_SATISFIED', + self::SIGNAL_TYPE_LOCATION_ORG_POLICY_NOT_SATISFIED => 'SIGNAL_TYPE_LOCATION_ORG_POLICY_NOT_SATISFIED', + self::SIGNAL_TYPE_OUTDATED_MINOR_VERSION => 'SIGNAL_TYPE_OUTDATED_MINOR_VERSION', + self::SIGNAL_TYPE_SCHEMA_NOT_OPTIMIZED => 'SIGNAL_TYPE_SCHEMA_NOT_OPTIMIZED', + self::SIGNAL_TYPE_REPLICATION_LAG => 'SIGNAL_TYPE_REPLICATION_LAG', + self::SIGNAL_TYPE_OUTDATED_CLIENT => 'SIGNAL_TYPE_OUTDATED_CLIENT', + self::SIGNAL_TYPE_DATABOOST_DISABLED => 'SIGNAL_TYPE_DATABOOST_DISABLED', + self::SIGNAL_TYPE_RECOMMENDED_MAINTENANCE_POLICIES => 'SIGNAL_TYPE_RECOMMENDED_MAINTENANCE_POLICIES', + self::SIGNAL_TYPE_EXTENDED_SUPPORT => 'SIGNAL_TYPE_EXTENDED_SUPPORT', + ]; + + 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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalTypeGroup.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalTypeGroup.php new file mode 100644 index 00000000000..d0600530f73 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalTypeGroup.php @@ -0,0 +1,107 @@ +google.cloud.databasecenter.v1beta.SignalTypeGroup + */ +class SignalTypeGroup extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The display name of a signal group. + * + * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Optional. List of signal types present in the group. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalType signal_types = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $signal_types; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * Required. The display name of a signal group. + * @type array|\Google\Protobuf\Internal\RepeatedField $signal_types + * Optional. List of signal types present in the group. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); + parent::__construct($data); + } + + /** + * Required. The display name of a signal group. + * + * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. The display name of a signal group. + * + * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. List of signal types present in the group. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalType signal_types = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSignalTypes() + { + return $this->signal_types; + } + + /** + * Optional. List of signal types present in the group. + * + * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalType signal_types = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSignalTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\DatabaseCenter\V1beta\SignalType::class); + $this->signal_types = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SubResource.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SubResource.php new file mode 100644 index 00000000000..1c96bdc417e --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SubResource.php @@ -0,0 +1,262 @@ +google.cloud.databasecenter.v1beta.SubResource + */ +class SubResource extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Resource type associated with the sub resource where backup + * settings are configured. E.g. "spanner.googleapis.com/Database" for Spanner + * where backup retention is configured on database within an instance + * OPTIONAL + * + * Generated from protobuf field string resource_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $resource_type = ''; + /** + * Optional. Resource name associated with the sub resource where backup + * settings are configured. + * E.g."//spanner.googleapis.com/projects/project1/instances/inst1/databases/db1" + * for Spanner where backup retention is configured on database within + * an instance + * OPTIONAL + * + * Generated from protobuf field string full_resource_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $full_resource_name = ''; + /** + * Optional. Product information associated with the sub resource where + * backup retention settings are configured. + * e.g. + * ``` + * product: { + * type : PRODUCT_TYPE_SPANNER + * engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT + * } + * ``` + * for Spanner where backup is configured on database within + * an instance + * OPTIONAL + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.Product product = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $product = null; + /** + * Specifies where the resource is created. For Google Cloud resources, it is + * the full name of the project. + * + * Generated from protobuf field string container = 4; + */ + protected $container = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $resource_type + * Optional. Resource type associated with the sub resource where backup + * settings are configured. E.g. "spanner.googleapis.com/Database" for Spanner + * where backup retention is configured on database within an instance + * OPTIONAL + * @type string $full_resource_name + * Optional. Resource name associated with the sub resource where backup + * settings are configured. + * E.g."//spanner.googleapis.com/projects/project1/instances/inst1/databases/db1" + * for Spanner where backup retention is configured on database within + * an instance + * OPTIONAL + * @type \Google\Cloud\DatabaseCenter\V1beta\Product $product + * Optional. Product information associated with the sub resource where + * backup retention settings are configured. + * e.g. + * ``` + * product: { + * type : PRODUCT_TYPE_SPANNER + * engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT + * } + * ``` + * for Spanner where backup is configured on database within + * an instance + * OPTIONAL + * @type string $container + * Specifies where the resource is created. For Google Cloud resources, it is + * the full name of the project. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Resource type associated with the sub resource where backup + * settings are configured. E.g. "spanner.googleapis.com/Database" for Spanner + * where backup retention is configured on database within an instance + * OPTIONAL + * + * Generated from protobuf field string resource_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getResourceType() + { + return $this->resource_type; + } + + /** + * Optional. Resource type associated with the sub resource where backup + * settings are configured. E.g. "spanner.googleapis.com/Database" for Spanner + * where backup retention is configured on database within an instance + * OPTIONAL + * + * Generated from protobuf field string resource_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setResourceType($var) + { + GPBUtil::checkString($var, True); + $this->resource_type = $var; + + return $this; + } + + /** + * Optional. Resource name associated with the sub resource where backup + * settings are configured. + * E.g."//spanner.googleapis.com/projects/project1/instances/inst1/databases/db1" + * for Spanner where backup retention is configured on database within + * an instance + * OPTIONAL + * + * Generated from protobuf field string full_resource_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFullResourceName() + { + return $this->full_resource_name; + } + + /** + * Optional. Resource name associated with the sub resource where backup + * settings are configured. + * E.g."//spanner.googleapis.com/projects/project1/instances/inst1/databases/db1" + * for Spanner where backup retention is configured on database within + * an instance + * OPTIONAL + * + * Generated from protobuf field string full_resource_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFullResourceName($var) + { + GPBUtil::checkString($var, True); + $this->full_resource_name = $var; + + return $this; + } + + /** + * Optional. Product information associated with the sub resource where + * backup retention settings are configured. + * e.g. + * ``` + * product: { + * type : PRODUCT_TYPE_SPANNER + * engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT + * } + * ``` + * for Spanner where backup is configured on database within + * an instance + * OPTIONAL + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.Product product = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\DatabaseCenter\V1beta\Product|null + */ + public function getProduct() + { + return $this->product; + } + + public function hasProduct() + { + return isset($this->product); + } + + public function clearProduct() + { + unset($this->product); + } + + /** + * Optional. Product information associated with the sub resource where + * backup retention settings are configured. + * e.g. + * ``` + * product: { + * type : PRODUCT_TYPE_SPANNER + * engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT + * } + * ``` + * for Spanner where backup is configured on database within + * an instance + * OPTIONAL + * + * Generated from protobuf field .google.cloud.databasecenter.v1beta.Product product = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\DatabaseCenter\V1beta\Product $var + * @return $this + */ + public function setProduct($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\Product::class); + $this->product = $var; + + return $this; + } + + /** + * Specifies where the resource is created. For Google Cloud resources, it is + * the full name of the project. + * + * Generated from protobuf field string container = 4; + * @return string + */ + public function getContainer() + { + return $this->container; + } + + /** + * Specifies where the resource is created. For Google Cloud resources, it is + * the full name of the project. + * + * Generated from protobuf field string container = 4; + * @param string $var + * @return $this + */ + public function setContainer($var) + { + GPBUtil::checkString($var, True); + $this->container = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SubResourceType.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SubResourceType.php new file mode 100644 index 00000000000..f41b76d546f --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SubResourceType.php @@ -0,0 +1,82 @@ +google.cloud.databasecenter.v1beta.SubResourceType + */ +class SubResourceType +{ + /** + * Unspecified. + * + * Generated from protobuf enum SUB_RESOURCE_TYPE_UNSPECIFIED = 0; + */ + const SUB_RESOURCE_TYPE_UNSPECIFIED = 0; + /** + * A resource acting as a primary. + * + * Generated from protobuf enum SUB_RESOURCE_TYPE_PRIMARY = 1; + */ + const SUB_RESOURCE_TYPE_PRIMARY = 1; + /** + * A resource acting as a secondary. + * + * Generated from protobuf enum SUB_RESOURCE_TYPE_SECONDARY = 2; + */ + const SUB_RESOURCE_TYPE_SECONDARY = 2; + /** + * A resource acting as a read-replica. + * + * Generated from protobuf enum SUB_RESOURCE_TYPE_READ_REPLICA = 3; + */ + const SUB_RESOURCE_TYPE_READ_REPLICA = 3; + /** + * A resource acting as an external primary. + * + * Generated from protobuf enum SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY = 5; + */ + const SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY = 5; + /** + * For the rest of the categories. + * + * Generated from protobuf enum SUB_RESOURCE_TYPE_OTHER = 4; + */ + const SUB_RESOURCE_TYPE_OTHER = 4; + + private static $valueToName = [ + self::SUB_RESOURCE_TYPE_UNSPECIFIED => 'SUB_RESOURCE_TYPE_UNSPECIFIED', + self::SUB_RESOURCE_TYPE_PRIMARY => 'SUB_RESOURCE_TYPE_PRIMARY', + self::SUB_RESOURCE_TYPE_SECONDARY => 'SUB_RESOURCE_TYPE_SECONDARY', + self::SUB_RESOURCE_TYPE_READ_REPLICA => 'SUB_RESOURCE_TYPE_READ_REPLICA', + self::SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY => 'SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY', + self::SUB_RESOURCE_TYPE_OTHER => 'SUB_RESOURCE_TYPE_OTHER', + ]; + + 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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SuspensionReason.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SuspensionReason.php new file mode 100644 index 00000000000..6c7832a15ea --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SuspensionReason.php @@ -0,0 +1,89 @@ +google.cloud.databasecenter.v1beta.SuspensionReason + */ +class SuspensionReason +{ + /** + * Suspension reason is unspecified. + * + * Generated from protobuf enum SUSPENSION_REASON_UNSPECIFIED = 0; + */ + const SUSPENSION_REASON_UNSPECIFIED = 0; + /** + * Wipeout hide event. + * + * Generated from protobuf enum WIPEOUT_HIDE_EVENT = 1; + */ + const WIPEOUT_HIDE_EVENT = 1; + /** + * Wipeout purge event. + * + * Generated from protobuf enum WIPEOUT_PURGE_EVENT = 2; + */ + const WIPEOUT_PURGE_EVENT = 2; + /** + * Billing disabled for project + * + * Generated from protobuf enum BILLING_DISABLED = 3; + */ + const BILLING_DISABLED = 3; + /** + * Abuse detected for resource + * + * Generated from protobuf enum ABUSER_DETECTED = 4; + */ + const ABUSER_DETECTED = 4; + /** + * Encryption key inaccessible. + * + * Generated from protobuf enum ENCRYPTION_KEY_INACCESSIBLE = 5; + */ + const ENCRYPTION_KEY_INACCESSIBLE = 5; + /** + * Replicated cluster encryption key inaccessible. + * + * Generated from protobuf enum REPLICATED_CLUSTER_ENCRYPTION_KEY_INACCESSIBLE = 6; + */ + const REPLICATED_CLUSTER_ENCRYPTION_KEY_INACCESSIBLE = 6; + + private static $valueToName = [ + self::SUSPENSION_REASON_UNSPECIFIED => 'SUSPENSION_REASON_UNSPECIFIED', + self::WIPEOUT_HIDE_EVENT => 'WIPEOUT_HIDE_EVENT', + self::WIPEOUT_PURGE_EVENT => 'WIPEOUT_PURGE_EVENT', + self::BILLING_DISABLED => 'BILLING_DISABLED', + self::ABUSER_DETECTED => 'ABUSER_DETECTED', + self::ENCRYPTION_KEY_INACCESSIBLE => 'ENCRYPTION_KEY_INACCESSIBLE', + self::REPLICATED_CLUSTER_ENCRYPTION_KEY_INACCESSIBLE => 'REPLICATED_CLUSTER_ENCRYPTION_KEY_INACCESSIBLE', + ]; + + 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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Tag.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Tag.php new file mode 100644 index 00000000000..6681dcf4199 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Tag.php @@ -0,0 +1,206 @@ +google.cloud.databasecenter.v1beta.Tag + */ +class Tag extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string key = 1; + */ + protected $key = ''; + /** + * The value part of the tag. + * + * Generated from protobuf field string value = 2; + */ + protected $value = ''; + /** + * The source of the tag. According to + * https://cloud.google.com/resource-manager/docs/tags/tags-overview#tags_and_labels, + * tags can be created only at the project or organization level. Tags can be + * inherited from different project as well not just the current project where + * the database resource is present. + * Format: + * "projects/{PROJECT_ID}", + * "projects/{PROJECT_NUMBER}", + * "organizations/{ORGANIZATION_ID}" + * + * Generated from protobuf field string source = 3; + */ + protected $source = ''; + /** + * Indicates the inheritance status of a tag value + * attached to the given resource. If the tag value is inherited from one of + * the resource's ancestors, inherited will be true. If false, then the tag + * value is directly attached to the resource. + * + * Generated from protobuf field bool inherited = 4; + */ + protected $inherited = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $key + * @type string $value + * The value part of the tag. + * @type string $source + * The source of the tag. According to + * https://cloud.google.com/resource-manager/docs/tags/tags-overview#tags_and_labels, + * tags can be created only at the project or organization level. Tags can be + * inherited from different project as well not just the current project where + * the database resource is present. + * Format: + * "projects/{PROJECT_ID}", + * "projects/{PROJECT_NUMBER}", + * "organizations/{ORGANIZATION_ID}" + * @type bool $inherited + * Indicates the inheritance status of a tag value + * attached to the given resource. If the tag value is inherited from one of + * the resource's ancestors, inherited will be true. If false, then the tag + * value is directly attached to the resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string key = 1; + * @return string + */ + public function getKey() + { + return $this->key; + } + + /** + * 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 part of the tag. + * + * Generated from protobuf field string value = 2; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * The value part of the tag. + * + * 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; + } + + /** + * The source of the tag. According to + * https://cloud.google.com/resource-manager/docs/tags/tags-overview#tags_and_labels, + * tags can be created only at the project or organization level. Tags can be + * inherited from different project as well not just the current project where + * the database resource is present. + * Format: + * "projects/{PROJECT_ID}", + * "projects/{PROJECT_NUMBER}", + * "organizations/{ORGANIZATION_ID}" + * + * Generated from protobuf field string source = 3; + * @return string + */ + public function getSource() + { + return $this->source; + } + + /** + * The source of the tag. According to + * https://cloud.google.com/resource-manager/docs/tags/tags-overview#tags_and_labels, + * tags can be created only at the project or organization level. Tags can be + * inherited from different project as well not just the current project where + * the database resource is present. + * Format: + * "projects/{PROJECT_ID}", + * "projects/{PROJECT_NUMBER}", + * "organizations/{ORGANIZATION_ID}" + * + * Generated from protobuf field string source = 3; + * @param string $var + * @return $this + */ + public function setSource($var) + { + GPBUtil::checkString($var, True); + $this->source = $var; + + return $this; + } + + /** + * Indicates the inheritance status of a tag value + * attached to the given resource. If the tag value is inherited from one of + * the resource's ancestors, inherited will be true. If false, then the tag + * value is directly attached to the resource. + * + * Generated from protobuf field bool inherited = 4; + * @return bool + */ + public function getInherited() + { + return $this->inherited; + } + + /** + * Indicates the inheritance status of a tag value + * attached to the given resource. If the tag value is inherited from one of + * the resource's ancestors, inherited will be true. If false, then the tag + * value is directly attached to the resource. + * + * Generated from protobuf field bool inherited = 4; + * @param bool $var + * @return $this + */ + public function setInherited($var) + { + GPBUtil::checkBool($var); + $this->inherited = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/TypedValue.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/TypedValue.php new file mode 100644 index 00000000000..7272a25a5a5 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/TypedValue.php @@ -0,0 +1,108 @@ +google.cloud.databasecenter.v1beta.TypedValue + */ +class TypedValue extends \Google\Protobuf\Internal\Message +{ + protected $value; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $double_value + * The value of the metric as double. + * @type int|string $int64_value + * The value of the metric as int. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\MetricData::initOnce(); + parent::__construct($data); + } + + /** + * The value of the metric as double. + * + * Generated from protobuf field double double_value = 1; + * @return float + */ + public function getDoubleValue() + { + return $this->readOneof(1); + } + + public function hasDoubleValue() + { + return $this->hasOneof(1); + } + + /** + * The value of the metric as double. + * + * Generated from protobuf field double double_value = 1; + * @param float $var + * @return $this + */ + public function setDoubleValue($var) + { + GPBUtil::checkDouble($var); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * The value of the metric as int. + * + * Generated from protobuf field int64 int64_value = 2; + * @return int|string + */ + public function getInt64Value() + { + return $this->readOneof(2); + } + + public function hasInt64Value() + { + return $this->hasOneof(2); + } + + /** + * The value of the metric as int. + * + * Generated from protobuf field int64 int64_value = 2; + * @param int|string $var + * @return $this + */ + public function setInt64Value($var) + { + GPBUtil::checkInt64($var); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getValue() + { + return $this->whichOneof("value"); + } + +} + diff --git a/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/aggregate_fleet.php b/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/aggregate_fleet.php new file mode 100644 index 00000000000..87dffeb8800 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/aggregate_fleet.php @@ -0,0 +1,85 @@ +setParent($parent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $databaseCenterClient->aggregateFleet($request); + + /** @var AggregateFleetRow $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 +{ + $parent = '[PARENT]'; + + aggregate_fleet_sample($parent); +} +// [END databasecenter_v1beta_generated_DatabaseCenter_AggregateFleet_sync] diff --git a/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/aggregate_issue_stats.php b/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/aggregate_issue_stats.php new file mode 100644 index 00000000000..54238e9abdc --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/aggregate_issue_stats.php @@ -0,0 +1,78 @@ +setParent($parent); + + // Call the API and handle any network failures. + try { + /** @var AggregateIssueStatsResponse $response */ + $response = $databaseCenterClient->aggregateIssueStats($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 +{ + $parent = '[PARENT]'; + + aggregate_issue_stats_sample($parent); +} +// [END databasecenter_v1beta_generated_DatabaseCenter_AggregateIssueStats_sync] diff --git a/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/query_database_resource_groups.php b/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/query_database_resource_groups.php new file mode 100644 index 00000000000..bc43e2e6134 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/query_database_resource_groups.php @@ -0,0 +1,83 @@ +setParent($parent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $databaseCenterClient->queryDatabaseResourceGroups($request); + + /** @var DatabaseResourceGroup $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 +{ + $parent = '[PARENT]'; + + query_database_resource_groups_sample($parent); +} +// [END databasecenter_v1beta_generated_DatabaseCenter_QueryDatabaseResourceGroups_sync] diff --git a/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/query_issues.php b/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/query_issues.php new file mode 100644 index 00000000000..1b7941d1b71 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/query_issues.php @@ -0,0 +1,85 @@ +setParent($parent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $databaseCenterClient->queryIssues($request); + + /** @var DatabaseResourceIssue $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 +{ + $parent = '[PARENT]'; + + query_issues_sample($parent); +} +// [END databasecenter_v1beta_generated_DatabaseCenter_QueryIssues_sync] diff --git a/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/query_products.php b/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/query_products.php new file mode 100644 index 00000000000..a68e545f0de --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/query_products.php @@ -0,0 +1,91 @@ +setParent($parent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $databaseCenterClient->queryProducts($request); + + /** @var Product $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 +{ + $parent = '[PARENT]'; + + query_products_sample($parent); +} +// [END databasecenter_v1beta_generated_DatabaseCenter_QueryProducts_sync] diff --git a/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/Client/DatabaseCenterClient.php b/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/Client/DatabaseCenterClient.php new file mode 100644 index 00000000000..21981f7c318 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/Client/DatabaseCenterClient.php @@ -0,0 +1,338 @@ + aggregateFleetAsync(AggregateFleetRequest $request, array $optionalArgs = []) + * @method PromiseInterface aggregateIssueStatsAsync(AggregateIssueStatsRequest $request, array $optionalArgs = []) + * @method PromiseInterface queryDatabaseResourceGroupsAsync(QueryDatabaseResourceGroupsRequest $request, array $optionalArgs = []) + * @method PromiseInterface queryIssuesAsync(QueryIssuesRequest $request, array $optionalArgs = []) + * @method PromiseInterface queryProductsAsync(QueryProductsRequest $request, array $optionalArgs = []) + */ +final class DatabaseCenterClient +{ + use GapicClientTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.databasecenter.v1beta.DatabaseCenter'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'databasecenter.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'databasecenter.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/database_center_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/database_center_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/database_center_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/database_center_rest_client_config.php', + ], + ], + ]; + } + + /** + * 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 'databasecenter.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\DatabaseCenter\V1beta\DatabaseCenterClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new DatabaseCenterClient(['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 + * + * @experimental + */ + 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); + } + + /** + * AggregateFleet provides statistics about the fleet grouped by various + * fields. + * + * The async variant is {@see DatabaseCenterClient::aggregateFleetAsync()} . + * + * @example samples/V1beta/DatabaseCenterClient/aggregate_fleet.php + * + * @param AggregateFleetRequest $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. + * + * @experimental + */ + public function aggregateFleet(AggregateFleetRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('AggregateFleet', $request, $callOptions); + } + + /** + * AggregateIssueStats provides database resource issues statistics. + * + * The async variant is {@see DatabaseCenterClient::aggregateIssueStatsAsync()} . + * + * @example samples/V1beta/DatabaseCenterClient/aggregate_issue_stats.php + * + * @param AggregateIssueStatsRequest $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 AggregateIssueStatsResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function aggregateIssueStats(AggregateIssueStatsRequest $request, array $callOptions = []): AggregateIssueStatsResponse + { + return $this->startApiCall('AggregateIssueStats', $request, $callOptions)->wait(); + } + + /** + * QueryDatabaseResourceGroups returns paginated results of database groups. + * + * The async variant is + * {@see DatabaseCenterClient::queryDatabaseResourceGroupsAsync()} . + * + * @example samples/V1beta/DatabaseCenterClient/query_database_resource_groups.php + * + * @param QueryDatabaseResourceGroupsRequest $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. + * + * @experimental + */ + public function queryDatabaseResourceGroups(QueryDatabaseResourceGroupsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('QueryDatabaseResourceGroups', $request, $callOptions); + } + + /** + * QueryIssues provides a list of issues and recommendations + * that a user has access to and that are within the requested scope. + * + * The async variant is {@see DatabaseCenterClient::queryIssuesAsync()} . + * + * @example samples/V1beta/DatabaseCenterClient/query_issues.php + * + * @param QueryIssuesRequest $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. + * + * @experimental + */ + public function queryIssues(QueryIssuesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('QueryIssues', $request, $callOptions); + } + + /** + * QueryProducts provides a list of all possible products which can be used to + * filter database resources. + * + * The async variant is {@see DatabaseCenterClient::queryProductsAsync()} . + * + * @example samples/V1beta/DatabaseCenterClient/query_products.php + * + * @param QueryProductsRequest $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. + * + * @experimental + */ + public function queryProducts(QueryProductsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('QueryProducts', $request, $callOptions); + } +} diff --git a/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/gapic_metadata.json b/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/gapic_metadata.json new file mode 100644 index 00000000000..3a6dea45609 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/gapic_metadata.json @@ -0,0 +1,43 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "google.cloud.databasecenter.v1beta", + "libraryPackage": "Google\\Cloud\\DatabaseCenter\\V1beta", + "services": { + "DatabaseCenter": { + "clients": { + "grpc": { + "libraryClient": "DatabaseCenterGapicClient", + "rpcs": { + "AggregateFleet": { + "methods": [ + "aggregateFleet" + ] + }, + "AggregateIssueStats": { + "methods": [ + "aggregateIssueStats" + ] + }, + "QueryDatabaseResourceGroups": { + "methods": [ + "queryDatabaseResourceGroups" + ] + }, + "QueryIssues": { + "methods": [ + "queryIssues" + ] + }, + "QueryProducts": { + "methods": [ + "queryProducts" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/resources/database_center_client_config.json b/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/resources/database_center_client_config.json new file mode 100644 index 00000000000..2050a311984 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/resources/database_center_client_config.json @@ -0,0 +1,59 @@ +{ + "interfaces": { + "google.cloud.databasecenter.v1beta.DatabaseCenter": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ] + }, + "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": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 10000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + } + }, + "methods": { + "AggregateFleet": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "AggregateIssueStats": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "QueryDatabaseResourceGroups": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "QueryIssues": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "QueryProducts": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/resources/database_center_descriptor_config.php b/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/resources/database_center_descriptor_config.php new file mode 100644 index 00000000000..0ef66a4936f --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/resources/database_center_descriptor_config.php @@ -0,0 +1,80 @@ + [ + 'google.cloud.databasecenter.v1beta.DatabaseCenter' => [ + 'AggregateFleet' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getRows', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\DatabaseCenter\V1beta\AggregateFleetResponse', + ], + 'AggregateIssueStats' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\DatabaseCenter\V1beta\AggregateIssueStatsResponse', + ], + 'QueryDatabaseResourceGroups' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getResourceGroups', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\DatabaseCenter\V1beta\QueryDatabaseResourceGroupsResponse', + ], + 'QueryIssues' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getResourceIssues', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\DatabaseCenter\V1beta\QueryIssuesResponse', + ], + 'QueryProducts' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getProducts', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\DatabaseCenter\V1beta\QueryProductsResponse', + ], + ], + ], +]; diff --git a/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/resources/database_center_rest_client_config.php b/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/resources/database_center_rest_client_config.php new file mode 100644 index 00000000000..c0a45ea6cf6 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/resources/database_center_rest_client_config.php @@ -0,0 +1,52 @@ + [ + 'google.cloud.databasecenter.v1beta.DatabaseCenter' => [ + 'AggregateFleet' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta:aggregateFleet', + ], + 'AggregateIssueStats' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta:aggregateIssueStats', + 'body' => '*', + ], + 'QueryDatabaseResourceGroups' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta:queryDatabaseResourceGroups', + 'body' => '*', + ], + 'QueryIssues' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta:queryIssues', + 'body' => '*', + ], + 'QueryProducts' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta:queryProducts', + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/DatabaseCenter/v1beta/tests/Unit/V1beta/Client/DatabaseCenterClientTest.php b/owl-bot-staging/DatabaseCenter/v1beta/tests/Unit/V1beta/Client/DatabaseCenterClientTest.php new file mode 100644 index 00000000000..4bc706b6b72 --- /dev/null +++ b/owl-bot-staging/DatabaseCenter/v1beta/tests/Unit/V1beta/Client/DatabaseCenterClientTest.php @@ -0,0 +1,473 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return DatabaseCenterClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new DatabaseCenterClient($options); + } + + /** @test */ + public function aggregateFleetTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $resourceGroupsTotalCount = 435559878; + $resourceTotalCount = 504460893; + $nextPageToken = ''; + $rowsElement = new AggregateFleetRow(); + $rows = [ + $rowsElement, + ]; + $expectedResponse = new AggregateFleetResponse(); + $expectedResponse->setResourceGroupsTotalCount($resourceGroupsTotalCount); + $expectedResponse->setResourceTotalCount($resourceTotalCount); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setRows($rows); + $transport->addResponse($expectedResponse); + // Mock request + $parent = 'parent-995424086'; + $request = (new AggregateFleetRequest()) + ->setParent($parent); + $response = $gapicClient->aggregateFleet($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getRows()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.databasecenter.v1beta.DatabaseCenter/AggregateFleet', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($parent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function aggregateFleetExceptionTest() + { + $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 + $parent = 'parent-995424086'; + $request = (new AggregateFleetRequest()) + ->setParent($parent); + try { + $gapicClient->aggregateFleet($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 aggregateIssueStatsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $totalResourcesCount = 1148081286; + $totalResourceGroupsCount = 1586193222; + $expectedResponse = new AggregateIssueStatsResponse(); + $expectedResponse->setTotalResourcesCount($totalResourcesCount); + $expectedResponse->setTotalResourceGroupsCount($totalResourceGroupsCount); + $transport->addResponse($expectedResponse); + // Mock request + $parent = 'parent-995424086'; + $request = (new AggregateIssueStatsRequest()) + ->setParent($parent); + $response = $gapicClient->aggregateIssueStats($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.databasecenter.v1beta.DatabaseCenter/AggregateIssueStats', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($parent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function aggregateIssueStatsExceptionTest() + { + $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 + $parent = 'parent-995424086'; + $request = (new AggregateIssueStatsRequest()) + ->setParent($parent); + try { + $gapicClient->aggregateIssueStats($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 queryDatabaseResourceGroupsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $resourceGroupsElement = new DatabaseResourceGroup(); + $resourceGroups = [ + $resourceGroupsElement, + ]; + $expectedResponse = new QueryDatabaseResourceGroupsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setResourceGroups($resourceGroups); + $transport->addResponse($expectedResponse); + // Mock request + $parent = 'parent-995424086'; + $request = (new QueryDatabaseResourceGroupsRequest()) + ->setParent($parent); + $response = $gapicClient->queryDatabaseResourceGroups($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getResourceGroups()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.databasecenter.v1beta.DatabaseCenter/QueryDatabaseResourceGroups', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($parent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function queryDatabaseResourceGroupsExceptionTest() + { + $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 + $parent = 'parent-995424086'; + $request = (new QueryDatabaseResourceGroupsRequest()) + ->setParent($parent); + try { + $gapicClient->queryDatabaseResourceGroups($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 queryIssuesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $resourceIssuesElement = new DatabaseResourceIssue(); + $resourceIssues = [ + $resourceIssuesElement, + ]; + $expectedResponse = new QueryIssuesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setResourceIssues($resourceIssues); + $transport->addResponse($expectedResponse); + // Mock request + $parent = 'parent-995424086'; + $request = (new QueryIssuesRequest()) + ->setParent($parent); + $response = $gapicClient->queryIssues($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getResourceIssues()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.databasecenter.v1beta.DatabaseCenter/QueryIssues', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($parent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function queryIssuesExceptionTest() + { + $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 + $parent = 'parent-995424086'; + $request = (new QueryIssuesRequest()) + ->setParent($parent); + try { + $gapicClient->queryIssues($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 queryProductsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $productsElement = new Product(); + $products = [ + $productsElement, + ]; + $expectedResponse = new QueryProductsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setProducts($products); + $transport->addResponse($expectedResponse); + // Mock request + $parent = 'parent-995424086'; + $request = (new QueryProductsRequest()) + ->setParent($parent); + $response = $gapicClient->queryProducts($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getProducts()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.databasecenter.v1beta.DatabaseCenter/QueryProducts', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($parent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function queryProductsExceptionTest() + { + $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 + $parent = 'parent-995424086'; + $request = (new QueryProductsRequest()) + ->setParent($parent); + try { + $gapicClient->queryProducts($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 aggregateFleetAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $resourceGroupsTotalCount = 435559878; + $resourceTotalCount = 504460893; + $nextPageToken = ''; + $rowsElement = new AggregateFleetRow(); + $rows = [ + $rowsElement, + ]; + $expectedResponse = new AggregateFleetResponse(); + $expectedResponse->setResourceGroupsTotalCount($resourceGroupsTotalCount); + $expectedResponse->setResourceTotalCount($resourceTotalCount); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setRows($rows); + $transport->addResponse($expectedResponse); + // Mock request + $parent = 'parent-995424086'; + $request = (new AggregateFleetRequest()) + ->setParent($parent); + $response = $gapicClient->aggregateFleetAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getRows()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.databasecenter.v1beta.DatabaseCenter/AggregateFleet', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($parent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} From f3382641662a9e78bcee361748e046132c9fa576 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 18 Feb 2026 14:09:29 +0000 Subject: [PATCH 2/3] =?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 --- .../src/V1beta/DatabaseResource.php | 37 +- DatabaseCenter/src/V1beta/Dimension.php | 18 +- DatabaseCenter/src/V1beta/ProductType.php | 16 +- DatabaseCenter/src/V1beta/ResourceDetails.php | 16 +- DatabaseCenter/src/V1beta/SignalType.php | 10 +- DatabaseCenter/src/V1beta/SubResource.php | 16 +- .../Databasecenter/V1Beta/MachineConfig.php | Bin 1136 -> 0 bytes .../Databasecenter/V1Beta/Maintenance.php | Bin 1947 -> 0 bytes .../Databasecenter/V1Beta/MetricData.php | Bin 2194 -> 0 bytes .../V1Beta/OperationErrorType.php | Bin 1147 -> 0 bytes .../Cloud/Databasecenter/V1Beta/Product.php | Bin 1901 -> 0 bytes .../Cloud/Databasecenter/V1Beta/Service.php | Bin 9061 -> 0 bytes .../Cloud/Databasecenter/V1Beta/Signals.php | Bin 10514 -> 0 bytes .../V1Beta/SuspensionReason.php | Bin 1185 -> 0 bytes .../V1beta/AdditionalDetail.php | 508 ----------- .../V1beta/AggregateFleetRequest.php | 505 ----------- .../V1beta/AggregateFleetResponse.php | 216 ----- .../V1beta/AggregateFleetRow.php | 183 ---- .../V1beta/AggregateIssueStatsRequest.php | 260 ------ .../V1beta/AggregateIssueStatsResponse.php | 178 ---- .../V1beta/AutomatedBackupPolicyInfo.php | 111 --- .../DatabaseCenter/V1beta/BackupDRConfig.php | 78 -- .../DatabaseCenter/V1beta/BackupRunInfo.php | 271 ------ .../V1beta/BackupRunInfo/State.php | 64 -- .../V1beta/DatabaseResource.php | 786 ------------------ .../V1beta/DatabaseResourceGroup.php | 119 --- .../V1beta/DatabaseResourceIssue.php | 121 --- .../V1beta/DeletionProtectionInfo.php | 111 --- .../DatabaseCenter/V1beta/DeltaDetails.php | 105 --- .../Cloud/DatabaseCenter/V1beta/Dimension.php | 690 --------------- .../Cloud/DatabaseCenter/V1beta/Edition.php | 69 -- .../Cloud/DatabaseCenter/V1beta/Engine.php | 132 --- .../V1beta/InefficientQueryInfo.php | 211 ----- .../DatabaseCenter/V1beta/IssueCount.php | 113 --- .../DatabaseCenter/V1beta/IssueGroupStats.php | 270 ------ .../DatabaseCenter/V1beta/IssueSeverity.php | 82 -- .../DatabaseCenter/V1beta/IssueStats.php | 193 ----- .../Cloud/DatabaseCenter/V1beta/Label.php | 139 ---- .../DatabaseCenter/V1beta/MachineConfig.php | 156 ---- .../DatabaseCenter/V1beta/MaintenanceInfo.php | 149 ---- .../V1beta/MaintenanceRecommendationInfo.php | 71 -- .../DatabaseCenter/V1beta/ManagementType.php | 61 -- .../DatabaseCenter/V1beta/MetricData.php | 121 --- .../Cloud/DatabaseCenter/V1beta/Metrics.php | 449 ---------- .../V1beta/OperationErrorType.php | 92 -- .../V1beta/OutdatedMinorVersionInfo.php | 75 -- .../Cloud/DatabaseCenter/V1beta/Phase.php | 79 -- .../Cloud/DatabaseCenter/V1beta/Product.php | 189 ----- .../DatabaseCenter/V1beta/ProductType.php | 121 --- .../QueryDatabaseResourceGroupsRequest.php | 568 ------------- .../QueryDatabaseResourceGroupsResponse.php | 144 ---- .../V1beta/QueryIssuesRequest.php | 359 -------- .../V1beta/QueryIssuesResponse.php | 143 ---- .../V1beta/QueryProductsRequest.php | 203 ----- .../V1beta/QueryProductsResponse.php | 143 ---- .../V1beta/RecommendationInfo.php | 179 ---- .../V1beta/RegulatoryStandard.php | 105 --- .../V1beta/ResourceCategory.php | 68 -- .../DatabaseCenter/V1beta/ResourceDetails.php | 184 ---- .../ResourceMaintenanceDenySchedule.php | 171 ---- .../V1beta/ResourceMaintenanceSchedule.php | 174 ---- .../V1beta/ResourceSuspensionInfo.php | 101 --- .../V1beta/RetentionSettingsInfo.php | 212 ----- .../Cloud/DatabaseCenter/V1beta/SCCInfo.php | 169 ---- .../Cloud/DatabaseCenter/V1beta/Signal.php | 233 ------ .../DatabaseCenter/V1beta/SignalFilter.php | 113 --- .../DatabaseCenter/V1beta/SignalGroup.php | 147 ---- .../V1beta/SignalProductsFilters.php | 105 --- .../DatabaseCenter/V1beta/SignalSource.php | 76 -- .../DatabaseCenter/V1beta/SignalStatus.php | 76 -- .../DatabaseCenter/V1beta/SignalType.php | 775 ----------------- .../DatabaseCenter/V1beta/SignalTypeGroup.php | 107 --- .../DatabaseCenter/V1beta/SubResource.php | 262 ------ .../DatabaseCenter/V1beta/SubResourceType.php | 82 -- .../V1beta/SuspensionReason.php | 89 -- .../Cloud/DatabaseCenter/V1beta/Tag.php | 206 ----- .../DatabaseCenter/V1beta/TypedValue.php | 108 --- .../DatabaseCenterClient/aggregate_fleet.php | 85 -- .../aggregate_issue_stats.php | 78 -- .../query_database_resource_groups.php | 83 -- .../DatabaseCenterClient/query_issues.php | 85 -- .../DatabaseCenterClient/query_products.php | 91 -- .../V1beta/Client/DatabaseCenterClient.php | 338 -------- .../v1beta/src/V1beta/gapic_metadata.json | 43 - .../database_center_client_config.json | 59 -- .../database_center_descriptor_config.php | 80 -- .../database_center_rest_client_config.php | 52 -- .../Client/DatabaseCenterClientTest.php | 473 ----------- 88 files changed, 58 insertions(+), 13902 deletions(-) delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/MachineConfig.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/Maintenance.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/MetricData.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/OperationErrorType.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/Product.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/Service.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/Signals.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/SuspensionReason.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AdditionalDetail.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateFleetRequest.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateFleetResponse.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateFleetRow.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateIssueStatsRequest.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateIssueStatsResponse.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AutomatedBackupPolicyInfo.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/BackupDRConfig.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/BackupRunInfo.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/BackupRunInfo/State.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DatabaseResource.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DatabaseResourceGroup.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DatabaseResourceIssue.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DeletionProtectionInfo.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DeltaDetails.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Dimension.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Edition.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Engine.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/InefficientQueryInfo.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueCount.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueGroupStats.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueSeverity.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueStats.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Label.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MachineConfig.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MaintenanceInfo.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MaintenanceRecommendationInfo.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ManagementType.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MetricData.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Metrics.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/OperationErrorType.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/OutdatedMinorVersionInfo.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Phase.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Product.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ProductType.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryDatabaseResourceGroupsRequest.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryDatabaseResourceGroupsResponse.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryIssuesRequest.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryIssuesResponse.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryProductsRequest.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryProductsResponse.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/RecommendationInfo.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/RegulatoryStandard.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceCategory.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceDetails.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceMaintenanceDenySchedule.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceMaintenanceSchedule.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceSuspensionInfo.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/RetentionSettingsInfo.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SCCInfo.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Signal.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalFilter.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalGroup.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalProductsFilters.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalSource.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalStatus.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalType.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalTypeGroup.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SubResource.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SubResourceType.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SuspensionReason.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Tag.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/TypedValue.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/aggregate_fleet.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/aggregate_issue_stats.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/query_database_resource_groups.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/query_issues.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/query_products.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/Client/DatabaseCenterClient.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/gapic_metadata.json delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/resources/database_center_client_config.json delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/resources/database_center_descriptor_config.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/resources/database_center_rest_client_config.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/tests/Unit/V1beta/Client/DatabaseCenterClientTest.php diff --git a/DatabaseCenter/src/V1beta/DatabaseResource.php b/DatabaseCenter/src/V1beta/DatabaseResource.php index fbf82cdf5db..55a3424d03d 100644 --- a/DatabaseCenter/src/V1beta/DatabaseResource.php +++ b/DatabaseCenter/src/V1beta/DatabaseResource.php @@ -11,7 +11,6 @@ /** * DatabaseResource represents every individually configured database unit * representing compute and/or storage. - * NextId: 20 * * Generated from protobuf message google.cloud.databasecenter.v1beta.DatabaseResource */ @@ -37,8 +36,8 @@ class DatabaseResource extends \Google\Protobuf\Internal\Message */ protected $full_resource_name = ''; /** - * Specifies where the resource is created. For GCP, it is the full name of - * the project. + * Specifies where the resource is created. For Google Cloud resources, it is + * the full name of the project. * * Generated from protobuf field string container = 4; */ @@ -51,8 +50,9 @@ class DatabaseResource extends \Google\Protobuf\Internal\Message protected $product = null; /** * The location of the resources. It supports returning only regional - * locations in GCP. These are of the form: "us-central1", "us-east1", etc. - * See https://cloud.google.com/about/locations for a list of such regions. + * locations in Google Cloud. These are of the form: "us-central1", + * "us-east1", etc. See https://cloud.google.com/about/locations for a list of + * such regions. * * Generated from protobuf field string location = 6; */ @@ -168,14 +168,15 @@ class DatabaseResource extends \Google\Protobuf\Internal\Message * `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1` * `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1/instances/i1` * @type string $container - * Specifies where the resource is created. For GCP, it is the full name of - * the project. + * Specifies where the resource is created. For Google Cloud resources, it is + * the full name of the project. * @type \Google\Cloud\DatabaseCenter\V1beta\Product $product * The product this resource represents. * @type string $location * The location of the resources. It supports returning only regional - * locations in GCP. These are of the form: "us-central1", "us-east1", etc. - * See https://cloud.google.com/about/locations for a list of such regions. + * locations in Google Cloud. These are of the form: "us-central1", + * "us-east1", etc. See https://cloud.google.com/about/locations for a list of + * such regions. * @type array<\Google\Cloud\DatabaseCenter\V1beta\Label>|\Google\Protobuf\Internal\RepeatedField $labels * Labels applied on the resource. The requirements for labels assigned to * Google Cloud resources may be found at @@ -294,8 +295,8 @@ public function setFullResourceName($var) } /** - * Specifies where the resource is created. For GCP, it is the full name of - * the project. + * Specifies where the resource is created. For Google Cloud resources, it is + * the full name of the project. * * Generated from protobuf field string container = 4; * @return string @@ -306,8 +307,8 @@ public function getContainer() } /** - * Specifies where the resource is created. For GCP, it is the full name of - * the project. + * Specifies where the resource is created. For Google Cloud resources, it is + * the full name of the project. * * Generated from protobuf field string container = 4; * @param string $var @@ -359,8 +360,9 @@ public function setProduct($var) /** * The location of the resources. It supports returning only regional - * locations in GCP. These are of the form: "us-central1", "us-east1", etc. - * See https://cloud.google.com/about/locations for a list of such regions. + * locations in Google Cloud. These are of the form: "us-central1", + * "us-east1", etc. See https://cloud.google.com/about/locations for a list of + * such regions. * * Generated from protobuf field string location = 6; * @return string @@ -372,8 +374,9 @@ public function getLocation() /** * The location of the resources. It supports returning only regional - * locations in GCP. These are of the form: "us-central1", "us-east1", etc. - * See https://cloud.google.com/about/locations for a list of such regions. + * locations in Google Cloud. These are of the form: "us-central1", + * "us-east1", etc. See https://cloud.google.com/about/locations for a list of + * such regions. * * Generated from protobuf field string location = 6; * @param string $var diff --git a/DatabaseCenter/src/V1beta/Dimension.php b/DatabaseCenter/src/V1beta/Dimension.php index 64f9c528ca1..b371ca3bed7 100644 --- a/DatabaseCenter/src/V1beta/Dimension.php +++ b/DatabaseCenter/src/V1beta/Dimension.php @@ -24,8 +24,8 @@ class Dimension extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $container - * Specifies where the resource is created. For GCP, it is the full name of - * the project. + * Specifies where the resource is created. For Google Cloud resources, it + * is the full name of the project. * @type int $product_type * Type to identify a product * @type int $product_engine @@ -34,7 +34,7 @@ class Dimension extends \Google\Protobuf\Internal\Message * Version of the underlying database engine * @type string $location * The location of the resources. It supports returning only regional - * locations in GCP. + * locations in Google Cloud. * @type string $resource_type * The type of resource defined according to the pattern: * {Service Name}/{Type}. Ex: @@ -76,8 +76,8 @@ public function __construct($data = NULL) { } /** - * Specifies where the resource is created. For GCP, it is the full name of - * the project. + * Specifies where the resource is created. For Google Cloud resources, it + * is the full name of the project. * * Generated from protobuf field string container = 2; * @return string @@ -93,8 +93,8 @@ public function hasContainer() } /** - * Specifies where the resource is created. For GCP, it is the full name of - * the project. + * Specifies where the resource is created. For Google Cloud resources, it + * is the full name of the project. * * Generated from protobuf field string container = 2; * @param string $var @@ -203,7 +203,7 @@ public function setProductVersion($var) /** * The location of the resources. It supports returning only regional - * locations in GCP. + * locations in Google Cloud. * * Generated from protobuf field string location = 6; * @return string @@ -220,7 +220,7 @@ public function hasLocation() /** * The location of the resources. It supports returning only regional - * locations in GCP. + * locations in Google Cloud. * * Generated from protobuf field string location = 6; * @param string $var diff --git a/DatabaseCenter/src/V1beta/ProductType.php b/DatabaseCenter/src/V1beta/ProductType.php index 96d5249f906..b33ce323e43 100644 --- a/DatabaseCenter/src/V1beta/ProductType.php +++ b/DatabaseCenter/src/V1beta/ProductType.php @@ -23,37 +23,37 @@ class ProductType */ const PRODUCT_TYPE_UNSPECIFIED = 0; /** - * Cloud SQL product area in GCP + * Cloud SQL product area in Google Cloud * * Generated from protobuf enum PRODUCT_TYPE_CLOUD_SQL = 1; */ const PRODUCT_TYPE_CLOUD_SQL = 1; /** - * AlloyDB product area in GCP + * AlloyDB product area in Google Cloud * * Generated from protobuf enum PRODUCT_TYPE_ALLOYDB = 2; */ const PRODUCT_TYPE_ALLOYDB = 2; /** - * Spanner product area in GCP + * Spanner product area in Google Cloud * * Generated from protobuf enum PRODUCT_TYPE_SPANNER = 3; */ const PRODUCT_TYPE_SPANNER = 3; /** - * Bigtable product area in GCP + * Bigtable product area in Google Cloud * * Generated from protobuf enum PRODUCT_TYPE_BIGTABLE = 6; */ const PRODUCT_TYPE_BIGTABLE = 6; /** - * Memorystore product area in GCP + * Memorystore product area in Google Cloud * * Generated from protobuf enum PRODUCT_TYPE_MEMORYSTORE = 7; */ const PRODUCT_TYPE_MEMORYSTORE = 7; /** - * Firestore product area in GCP + * Firestore product area in Google Cloud * * Generated from protobuf enum PRODUCT_TYPE_FIRESTORE = 8; */ @@ -65,13 +65,13 @@ class ProductType */ const PRODUCT_TYPE_COMPUTE_ENGINE = 9; /** - * Oracle product area in GCP + * Oracle product area in Google Cloud * * Generated from protobuf enum PRODUCT_TYPE_ORACLE_ON_GCP = 10; */ const PRODUCT_TYPE_ORACLE_ON_GCP = 10; /** - * BigQuery product area in GCP + * BigQuery product area in Google Cloud * * Generated from protobuf enum PRODUCT_TYPE_BIGQUERY = 11; */ diff --git a/DatabaseCenter/src/V1beta/ResourceDetails.php b/DatabaseCenter/src/V1beta/ResourceDetails.php index cd523092cc3..2b35ea8a5cd 100644 --- a/DatabaseCenter/src/V1beta/ResourceDetails.php +++ b/DatabaseCenter/src/V1beta/ResourceDetails.php @@ -23,8 +23,8 @@ class ResourceDetails extends \Google\Protobuf\Internal\Message */ protected $full_resource_name = ''; /** - * Specifies where the resource is created. For GCP, it is the full name of - * the project. + * Specifies where the resource is created. For Google Cloud resources, it is + * the full name of the project. * * Generated from protobuf field string container = 2; */ @@ -51,8 +51,8 @@ class ResourceDetails extends \Google\Protobuf\Internal\Message * @type string $full_resource_name * Full resource name of the resource. * @type string $container - * Specifies where the resource is created. For GCP, it is the full name of - * the project. + * Specifies where the resource is created. For Google Cloud resources, it is + * the full name of the project. * @type \Google\Cloud\DatabaseCenter\V1beta\Product $product * Product type of the resource. * @type string $location @@ -91,8 +91,8 @@ public function setFullResourceName($var) } /** - * Specifies where the resource is created. For GCP, it is the full name of - * the project. + * Specifies where the resource is created. For Google Cloud resources, it is + * the full name of the project. * * Generated from protobuf field string container = 2; * @return string @@ -103,8 +103,8 @@ public function getContainer() } /** - * Specifies where the resource is created. For GCP, it is the full name of - * the project. + * Specifies where the resource is created. For Google Cloud resources, it is + * the full name of the project. * * Generated from protobuf field string container = 2; * @param string $var diff --git a/DatabaseCenter/src/V1beta/SignalType.php b/DatabaseCenter/src/V1beta/SignalType.php index 8395e465bcc..4688618ef12 100644 --- a/DatabaseCenter/src/V1beta/SignalType.php +++ b/DatabaseCenter/src/V1beta/SignalType.php @@ -62,31 +62,31 @@ class SignalType */ const SIGNAL_TYPE_LAST_BACKUP_OLD = 7; /** - * Represents if a resource violates CIS GCP Foundation 2.0. + * Represents if a resource violates CIS Google Cloud Platform Foundation 2.0. * * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_2_0 = 8; */ const SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_2_0 = 8; /** - * Represents if a resource violates CIS GCP Foundation 1.3. + * Represents if a resource violates CIS Google Cloud Platform Foundation 1.3. * * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_3 = 9; */ const SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_3 = 9; /** - * Represents if a resource violates CIS GCP Foundation 1.2. + * Represents if a resource violates CIS Google Cloud Platform Foundation 1.2. * * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_2 = 10; */ const SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_2 = 10; /** - * Represents if a resource violates CIS GCP Foundation 1.1. + * Represents if a resource violates CIS Google Cloud Platform Foundation 1.1. * * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_1 = 11; */ const SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_1 = 11; /** - * Represents if a resource violates CIS GCP Foundation 1.0. + * Represents if a resource violates CIS Google Cloud Platform Foundation 1.0. * * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_0 = 12; */ diff --git a/DatabaseCenter/src/V1beta/SubResource.php b/DatabaseCenter/src/V1beta/SubResource.php index f4f2373c841..1c96bdc417e 100644 --- a/DatabaseCenter/src/V1beta/SubResource.php +++ b/DatabaseCenter/src/V1beta/SubResource.php @@ -56,8 +56,8 @@ class SubResource extends \Google\Protobuf\Internal\Message */ protected $product = null; /** - * Specifies where the resource is created. For GCP, it is the full name of - * the project. + * Specifies where the resource is created. For Google Cloud resources, it is + * the full name of the project. * * Generated from protobuf field string container = 4; */ @@ -95,8 +95,8 @@ class SubResource extends \Google\Protobuf\Internal\Message * an instance * OPTIONAL * @type string $container - * Specifies where the resource is created. For GCP, it is the full name of - * the project. + * Specifies where the resource is created. For Google Cloud resources, it is + * the full name of the project. * } */ public function __construct($data = NULL) { @@ -231,8 +231,8 @@ public function setProduct($var) } /** - * Specifies where the resource is created. For GCP, it is the full name of - * the project. + * Specifies where the resource is created. For Google Cloud resources, it is + * the full name of the project. * * Generated from protobuf field string container = 4; * @return string @@ -243,8 +243,8 @@ public function getContainer() } /** - * Specifies where the resource is created. For GCP, it is the full name of - * the project. + * Specifies where the resource is created. For Google Cloud resources, it is + * the full name of the project. * * Generated from protobuf field string container = 4; * @param string $var diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/MachineConfig.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/MachineConfig.php deleted file mode 100644 index 9046884a7785d2a1861c9d555adaec73b3dfceb1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1136 zcmbVLO^ee&7&fhXm~{nvT0vo~tJ?)lSv&|+t2C`!_psX@77r3AlgXQQAjyQuq)?^c zN&GGT6n}+hZ~g-(GyTf0BG^mHywCf*U(fUEO*YHWV?2ZuBvlaNV1d;Pa3+NkOvE@S zq6j2rBFT6R(#3c%!WW}U{C045`ADbcqL2&-o(eIIq0M4ZgzbrHj}7jmtgh9rO*pZ|yL^)l|Ca)?6@W^~SlBxF0)mc$J8{54;V&gS~L0v!I^6Ec&&bu359jEaCp*hQnRrIEgIyUO)sCO6Lne1eH`)F^n zg?pcC=&2UI`|qB;Mx|k+im~(I!j8Gl7fE|6u6l!Jd}WX7HnN~|_2FBsIW)F#jV;`@ zE&9e~uC>MYHOOC?XX73V^R<0SH~y?Wv1Ei8HbSa&gjif~+xYaw(MAQ&tS)zC{8tGZ Lq!ro{EfM++!QgkO diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/Maintenance.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/Maintenance.php deleted file mode 100644 index fb388174f7cbca7a88316b7bf9bc5e338f5788ac..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1947 zcmbVN-A)rh6t*oG7^0M_gusPkMJYtL0rh4PN&mpcKpR1cW|KPIJxe!kcQ(6IOf_8k zB3}9ezJpKUwGTm@pWU*BLWJJ5o&C-^-}&a-b6#%x9Unc!+u%V!7+AR7$E*X`4=AH1 zb#c3A+Yn%rc74Z%K*PA&z`KooT&vdiAMntS_5u@hd`Rh`3q{kVJ*#LDM%p9<6Fde% z@o2RTj1;@X;eS2inV`u62zjInp-)V}+s*P02Z=~yTjnw*KZ#ZlMK zk=(#6=s~hN#sRQi;H^vEBEj+CmoY-SlJ6K>4!BksI^@Wqfv%r+b(&;U=ziY^p*mbS zq)+WH0H3cIx9@a;+7{`Lj+44SeI=|TR4!T8K-4X6$-+PeA<7aunLy942|*C^O>{36n=Yo?jR~k91HbAAZQp*)36Wt1u5hP8uvT= zC7sJi>~fs-5&^WP2$13VA1QQy1oJ9*{Q>)xn7z;{Vm}ktk?e)fV&W6vSuKea?5EZ) zLN22*sfOTvxf=QJX*8XXweHz8*G6{}lc*I&Qb+VQV|tg#Frx3cXVr|0<}EHnYgD0- zUrvS-uUxZIQejmMqdUn$M-YU3jLCbQ6o|~qCp0dvE_V;jG+&qYYOQy>d(B#Z2-*~E>=DcVeZ z+*NYN?;!0K59!%8LVPFMB-|v4{o=RR&mR0t=eOk&(JEqzXxwHppduHNrk2R>7-U4N zX0U4%%;3vLEUv%lM=F`F%WS$noKDvju6cr CVt(`h diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/MetricData.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/MetricData.php deleted file mode 100644 index b07ec253d3e98e1b2f59462db8369cc90ae16ff8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2194 zcmbW2|8Cnh5XU3uhto@o4PKi$=?1V~w>rQoBU?5g%F}tF$OOK1_1&kon4`_ zD3DZuY{(z`Z;!BN*rV)Cws#m%QnDmFPFqa=M+SNP-0|*s-|xOpUM27u8DNZ@N(_j1 zN#rXe31^b|EFxYy9wR3{n@(X>W>>hrX*f&CCHnOs6Ok>LVEp?H9^OZ#sjF<(z1i(_dgY=lixY zI|A?{Dg;qy6jR&4Z$Q*9NxdlaiI7yP&%;o-VI0bkM&YmOddFl;BZ2Dpvh6sHeHpTt z=mTf5kKH|zGqvr*gsF5KlOnjG&XCHE^ITssrjgS};qx$&j1QHmWld0)dDSc3y_s8$ z3&*6J$7oqgK^_yyQ=Ios2uGRn_$Z581Fp({&JC$6qZ@@P!IDlB%c`zbQLLOR|Vdm}8`KJlZyquyngpZQLL)TAI zHq&Q*)MLKU4(&`kvf zu6HR>v{!3^8yfr*v=gMSE9zVZ)@or_HFg9aXV@uD8NXb}>v}Ef+B`K*ryg?GXK{?# zGZO8MTGVw-9jMX30#vv(mhEOO(1r&62=~;e@ll8{p17%c*)!&5EoM_Q&ta!1e38ql z?zd`jHx<|3hP&RtO&xbGH$EO(%NA9mcg^^v^`?R>MiLDgf`-f~UtJFw+e zm9g8f?cSJQ`xDqLgDZTLS?c_508}rubqwnlG)nRRJn+$Fg2A~y)jEI=nJ186WK+VG zYUZ``hrL^j3Ke8FuFY~FcKQHwjBU6bFr^*nR*@K|E3JF5rKaPz2eW03T|Hf~o3n`R z{|xv-sbk^i9Rtq(pt^B3pNGaTFLV21p0R0f!mg_)O~RRgF3!!wJG#E`SEDn?wA0MA z)6}}C2kl9w!)C6Xe-}p1Okqoj&CML8v0AVHZG4`?EGwf~)*{ZbayxG$OYYZ?O0oDd T*RMIbd#luCmbo5X!4<$8!Qtb% diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/OperationErrorType.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/OperationErrorType.php deleted file mode 100644 index 01c0439325f99f3fc19556f014fb064fd6e21fd0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1147 zcmbu8--^>f6vk~`_hLY;5%l)BR<|pfvUrzTC2eO*X*Y>!c3~wDl62Y)q?s_82&?qc zml3ah2p`3#a3)DhyG6V(SK;u@@BIDVeMqlU^c;pHA07G zl}RF+c!V*^JbsfBwaA1};x9>-`XPa#)jJnziExJn)a^^CJJ^A`m!~};>mU@yewKl` zhGWTg1R8xsAigvY;wXfSi_{@Bqs)tvh(~@LeG&b3VeZEn5tx1LJWoPdF31OF5|Y*l zluW5@rc}(Q3+o~+IWjRWcO-jG{Ma3kEM!s2DYJxB(-wqp1}!74lPaymMRRDCHEP;k zkzL>{C)?Qp7~wffIz`g*}PjMBi%h=R0`(yLMsbY7PCrIh*MjuZmTR9pB%476!`f)PF_9eC} z@jVF`84k7$eNx2^d*ABlr8s}}-#zx8?l)Lmg;o1xl(Shw=(4?_w{7C5QRS4~5vD=s zcHn#cXjphdExe(wz0ofWrs%%cO?J- diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/Product.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/Product.php deleted file mode 100644 index 772a6b0ba99ddcd74a91f37b684c24c0b46d54bf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1901 zcmb7F-E!MR6vj?)noUwv(RNJez&51R%}}{5Tq%T({;X=omQ+a&xT6`3EUz8SD3V56 zXQnWD3f_XJ;DRfjf@>ZDZdhq$$8u6AzLDqbcfNDZcXrSD_GNmOf-j(oVwCw9P2l(~ z#AgVmS%Q-wiQsrXouUi|$$1(^DB~cM4X7IqRAkM0NL=$|o&|`9vm}{Cs2fDdeA1ox z*dO~j3Q&wu*1dQ>M%eEX(#br)TuBZH-vD0}R;4q0{ z;b6o8>O6szv%nsv3DMyME;1ugaYAHqwW7Azk6an$K^CSs$xH&}`5D4XK?_UgNfoxB z3#YI{bL9DJNuEHQ&CzOf2s4D|S$tgPT@YL@|G78lCZwU;3sE!?(V2e{CK=CPRdq#D z7WMSIuqr{AOqLnzwyHL=BG|-l zQ`Bz2M(6g6F8AN=T;=KzH*w<+p~1ccEfmkf7`2-v%hCI=D5VD_xC^!}P?nS1(B2>n z+tj)b_RhmN$-Kqc=JM?5=MB)J4D5ZtD!QuaiZ|44Q<1curpU|(ECY5c`(R|h?lTSc zWAIUBF%8>MEyZS<>^*R&G7^wyE7qxEF&pe1uveLN!O>0?W|M{B!Gcg37}m&k3`_BP zhUHo0UE0howgV3T4dF@sq3sa*ZT1m(SRs2F$)jZYUUOb~G@3UsWQ74MgljNaa0KdA zB6rwNz`cr4`9Ua7J;M^DzQXLT_1^+c9hla_uCKCO`!N(>#vqk54} zeg^hy04lp@=$q=h$R^?ImSBW9<#xpmi4#t+568sJMZ``_agiMy5D_ujk@KWZPh;kvp*ZR#36ZL0NC)jy_c+jV@W;aFaT_$Fwj8Hr(XEE%bedaD!#C=NM;p}ksk`<3Zk_tZmPg&^W`m|U za{${opZXt}lNl27f$F;* z+P}N1y43Hu_I)llWAL*3Uu}flvTd`LwQYx4!Lhwerl(Vn#j6POmWd7!Mhi=q=ko=Uxy)>bqux#plKF!>DR@8e`c0ECW`| z7RKcm&aa-fDND9j7>B38orlbXEa0=vW;edKu_|nKBa+4EP58|NcxT*lKr}&-;sqqd zN(}}wj#xnIbs3Rz!TS;9IT2x}H+bAh!gnJPc7tmi zDjq>P(^OJLF&frR7AIp+cp?}i#j4cDM~|~IEvvCstHI^R9qOLSK=jJ=;|}$FvJBI0 z!$ngkCsk#0E;sq->;zebxwg@wx`(wjso?k&8&}9003Y|AXVgwk1O$rqJq1<<*n4fP zPn0}>S*eqUoF+G8=`W;&jAw;HN{Wd)F52{)zCO4uNkXh+yA*wD)Gdm_PYU6uwO>tu z#$~~P=RsDcqKWOePNzLWai*YD9IbI=T9^iX%8@D%VPu_IRc~=Ne8*V&UKC|SzOp3b zA_!aVLtJtdJ9^1W+&u3@=ZMLPq6&5^FzdKY>gx5=6-I68^v82&1?_iuH*Q6AY~AK@193KQiKKRE$RLV?yOW4 zX1ku(!EV>FeeL%%kQfw~?8729L@a6-BkDSkqmE^Dx#mzFo)&OH?aM>7;hN& zC! zLRmFhWCa!i)A1Bd&T>f(V9D#$dv;*io1DX`c*L~r)XOr&S?-cuh=+Sfavqt*(s!fC z83H|IdoY}UtGpG3lc*-Vk}&6;@IK=u7q~2uiYtO~1UDWzgr%`|Es9Qv4bEE`|b))gD({8%5`zDvTwCO1N<~V7gEbyYJcBnUPBKmjiB;oQ# z(z_@~NEs3*m;w?o;yL2TNiK7NB9-&~9_=oYa*4FRD6pPwwOralWAKcxAV&Yc={9Lt zV0g>I#AlF%^5l=DmjVZ{+(=<%qFkFtuYFfhatVm*AtLR!3S1efq-+Y9aV9Hvq9f?+ z92At@NS5Vxb%^$D>ZKmU$RISVwtxo+8)bN_bj!BDshGnyEpcz?v*?_S4!w z6<8eH@iNReO|NYkr=o0fY{2B`CW@&4AvqAF1k-_lV(+(M?$le&5K3!-ouTl{bB-ut1E1aJY`4Yb&)9=PeXp7_amGEGCA^0YiXemxIp~SRGVU zR)RcSa-A1J^1m09nKMp*sR2&T3zpyA=#pt8^1VOQ-hj*9Mg6lP14o=61ne0&KTP$? z!oL()8kXfNFxNCssO_$xOZ-#hyh@fm~jP#efUe1MU`n z?!hTC2ug8mZ4e{!GY?LbMxjIoAkT*qk>lf0uu9<0bHOTPiARJJ!^R^yMxZau4_w4Z z2x`AeDn0P92cKe`%{cH0#aV(G1nN4ghztVH;Sh!l8xnPqVNo`C8GsGS>d25K8%0;J zQPVzVb(}Vn3?;^4R-XlIcOJb29K?mo{I#}7wbaR_D^ z1RnhMj|W{W9jSl{kKhS(HfWn1#>CQ*YSW-rm=u#$Jc5sbkJu$dFZWq9o7KLLP`oUG zq=bHC^gV_E!`=izw!8;}S#=^o18gpG2sa`>d2FY5VhwYYOweyTq?sFaHN-R<3CA@LfS zhuPhON;P|sFD4Z9Nu^pWCnnfbAzRJnvXx?D^7aYL1c&G~SZ3b{cMlH+n5_Z{ zCW;5hq*UHTT7_JJwc&BSggfCjmmv{MGC2y_asjvdBZfs~;1&kesXWQ)U6ra&OT_^R zHsJN)B`C&zw)_+YxdvB;rz^$$A=~yT3Zuc*;RWSlwt%~q_IC5x#3Z=^+VGm<*HGVs z?4BNMHpR3aUUyi1gvPye+lP3#H#6Dxvj^Fo;y&6=AEDcb1v~kYE{F=KoeFOZa;Oyd zw!14P(*K!(c#y|=#1qsdKT%+Tm%yMQkS|98V<8fG$XSn69S0~y#nm>x^Vwg2FtJ8f zFP~vxW$>Mn^7R98h7Z2sIVW2!XYfG??k(ShgynA6?+*_A zY(m@NPeM}si#NN2W7A)f||YVzSo_vMIKR>P+w>7qbem~&?`HSQ_7}y=jJ}5)?5fRdjCjPsSBl3LFX1J?e*wBgeh~lw diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/Signals.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/Signals.php deleted file mode 100644 index 25718f2c671eb9836ec544958c55c8944febe26b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 10514 zcmb_iO>^7E84j)3mR9~iV8@Z|#AawGmYqZ&v=cjYTo(i&3K0p=04Q0mnk_{_GN%;D z5M)|6lVcA(bf%Y1Po3$hhh96=-ueUjC)#s=LND#Jy8s9-X_a=9OKf8I+4tjlpZ8rD zUp($T?~xnXQqT$d^+C|g?!U+mo(I`pzdPtQy6x=#@ZccmXB*w4UaKASSF%~d$=Z&e zH4V#uA6vuju-^y@*~4!4upO*6+TCGuwOJq3_v>NM2s(qHzxvJkelV!7hONU+y&bM_ za6&ruqaf_n8$q^IEmp9A?b<7GoIRc4>=|P?d)w}M4Z^Z#G2h_Oo)LtNeyca=_N!Q0C>#cZB%th<<=fG*46b#MT^2SL3KK>? z$`1O&Abol^+YbiAe&->#n*n^6{Aq7W+_YY6Z=)5oo5kRH{hL;|Unq>c8i7pPdQ8ao zD)kn;?bH#R?+4K7F~T9}X20L<`!9Om6E3pT95x2ukCEOm>;;_=R=Pnw>~>~HO-N!4 zg`2Oj)o-Cb2KA%fYwX?W*L#R?IDIRp^d~=HDP;uKn$3i-8>sT-gkg+tx5#fTvi7Rw zt>(mz6)p%X+>_ z_S*FqlxgfzCYxDaD9-&;JE2=ej_*boqed6uKO>h~o#5c0)o6ic^y^{Jj{>yF z(I3oWy){C3!T=)d2D#cD4v>}t8bBoMz;eU#4TlssmVg_FDJ;`QJb(k{CooOnWZ| zLCC{4r(Q!(KEnGF);C#0ZUtd9t+E)*<$jkTr=$5vJx5N777*D0s~Sk!VYmN+=Y2u- z$;EzfIBeH(+zVz0#;krb9&~3)k(=yC6!~^G<_13(w@Nzfw<59ril~!qla1U-TZXRl zTZ(##oJ;*kTS7T_)Y8908+jvQ9c2NdHt=I#5?kPN>{bMRo}7+G4H1MKr2b_yg!(?Y zJUUUDR0Lk`*BSEOv7>?7Cf5=rNzWr;<9W~=wvpQmzgRq;r3z!UN*(D%IJ`D;|2jcV ziK~u0NU-3(`XG@SYyPi$m|7)jJ-N|PF=fP5n@Ke%?n4$iC+=$@W}H5HeWWcjT~_$L z%!@X%aY;ZmaC097LPv$H9HY8-exKZb!8lw})%VC{&nnqknKCV@d6Jl9$-Co^@fMY8 z)oR(&wPM+XzFZ{A_zGuBIibEoE{y+bd0x#_<|fZ$fTqpB4CT!`e;e5+X3La)PR-S2 zvAaR8$LEO0uIY(CR7_tpG+%>>6N@}kuep}LOE)aru~N zjUQBT@W7@{(KFp`t!R~j2M7L|A!o-kb&Xu%&Qs6aHuHm%Yoth`Fzksjzc5xFWWZ!!<1hnDM_Wpi7zedXkxe`E;}b;w@IFsR63 zf43@!{Ufq>EB!QyI%_o!+@w|4@lD<5Eoc;f4pnlUT9sC6W#4kmlI4JW@aYcuFpX$C zRIB+;1^vySMNQwrmZ}5VA;_s@a6oUK&g{#2T zm#uNihH_e6B_E|1Y+FtlMtM}XJX+GLbi=9HAR11jdAg>|zsiPndRJL^wGDZNyxN9! zW%1QEtSM*YY>YXrJGSpSWshz@fWKw+Cdp0>kZmE{57yS`r+1aJ>fSAK<9{uq?x%{W z7RYBWU#RaEO?Onku2wO39CwRuufvv2Ipc}lmgms?{k64q<(#@qZcfEd*3j+zT0XCA zyxiuhZc)QS1nwf|>&kic1M>b<%w*v`m{(HQ$tP2n>1C&8&?K;6y=y(C+xHX;1JsqN zTQ;q#rYT>h#EsWN;<4xGdFIIaePv7ijO5cGWvAp(CcIA7w<^{%l-P#jQe?FT9Y#4h zK2%XrWEwoFneHw%YA&a{fB;qrRsPmQ2u!!=cqTPn7tm}KgH%;nIs|6f(YNT1X8B{F z7i8}u7+P^aEspFd7jczXmb_zUQO7Rt(pdlE)o;soRxI19p#6>8c}ZrHFq8F2k2?dG z-%;<8we-Q}Q{D7DYuk+7rOpP`%NF#AZo*<4WL1`A5=`Ay)j)EW_he7Gtmete|2(K# z)@(c3b49LsmhL!wJTitMdcKJs=X=W4m&H2ex$^Er`qHqzS*bd%28wLp!r>|Jsh^PB zX}dvi8%=>pWkq|+8Hk@YtWwQIJg-gETaCqlan!M)x1*KU3uc`VOsv!j?`o z+<-h!$xdS0rmefXRn}KV_IS$s>S)&Cm4puDq7Z0R^E^n5q2y#v?3mh?wC09-m#n5; zjt*lkZ<)Ko<(h}a2G1&*t+Cp( zV>V$k9q3<0a`$c>w;aWXwQN`dLo~xvmT{ZEllEd1D607^&Es`?TfI#_NUt|6Z?t8s zr0=L}VY&iCi0= zX?qxxP`JLUVa8EqcZwtX*!M*Cew9ygCtZFj4uBHZIP9Mv_c)TW$7i>1dXtZs4 zU<8oYWr<~j9JOl|bUCITPSvz2oM7dYm!(Tu8!fvld&if-G27Eb?O6t``50KAab79+ zWaeX@8MpFNc^Y(T=p7prY2H#klgSdXS2tZB?<7E8#NX6h7Jkd!Rqo3!Ct1>J_&kFt zH*m#;;DM~|7&Orub=*Nv8;;9cmu>oN1n`v4WoeC?VKg|Rc%sco`jmp~*^`>X$^c!_ zS02g*4@rpCARb1)kiAdyzG}MYt0;5EsY(^$S02fl=vS&yg6WjyKbTm~^2mhTo3{M1 z99y3IFC7beb}U2;dBc^*dKEiex@fq-uo}d$4&+3n#P9=6bfJc{Skt#mU(w|;P}&`(aOz$|wv!8W zlDSRI+k~|x(8u4bD3ys8fi!c^k{!{-!&aBb#k5D8P-GkTK*f=j2M`9XR=m|kS0MyN zsmemh7=`SxtWb<%COE1yjo4M5$mC1zSY8dU`;bIKapg6LE|W3{8N0h`HniN6(~Ki4 z8ji%JoAFZkmhP^;tag@dZlI9)9K)vpr8W^W*VGI+0aSiGD@fK$lx_80vXqWl1(J;k zK~&g|d=wiCBK;5xm8W>Ucqt7~)?CoUb#^>uSDslo-5Gn~7vkk%u27!ILE?+Jy~&y% z9n-cQw-g77bzl#o>G4;sdwa6putv&L{?a`^mWhIj1hY{-m_soqBlWC$l&|Dlm8Wl- z6^%EgWN25Y++JLhznS4Sl(mvlmlq_*iLq2^$id-a?6C1V5#grHpwXKVm@QMug0uv3 zM`5+j7)zlstp1gQ;=eQGL;UmR46hK2(H9#b`v>K2HS^3C|Bw`a{?R>JJ?zR~@6~&) z=mWm^#kTmYuebkD{^3t2awY!#-U|PiY{iJa-_!Ai8y^pf@Av*5FWQT~@=HGR6U+AS zoge#N@LwlB5MYG@M=KP@;R*$@ZvPbj$IQF8lFybt7N60jzPiJUV0;xg<%>JMQhXQp J9r=!s{{mFRw4ne1 diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/SuspensionReason.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/SuspensionReason.php deleted file mode 100644 index 3a83e693226f4f35a06550d3283b13edd528b7d4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1185 zcmbVL%Wl&^6s4hbF&iS6#{wayrO*_Cqr%RipxB;<5y7!yr>Mx1HFhScCD&tl#z=s= z;&1pAetM|5Xh8&>!srteXB6fI6D(#a zjLO-J7BFV#d6LpXhtM8DXXHa?J%*vP2{#O+L#{J%TfmawT@%a1~%n!k>r9Eu7n!KoQlTds?s@Fw5{Zl8SKlZ!6OK{elaGlbD;7S+$ZlWL?f~sQcF}0! zhi|ZrLUe*0zrCT|1>4KII~fm_FIw6y&^GaKh@C-bW3O)xrOb708{F)h6Az6;8~Moc zWpPt`0PZ2j8lSp;)&4Cy4YAX=EaZ7u(%Lt)=RhALcZjXNB!t#*;`vhHZ=5ajYYRM< zG133+iFte75OqNA#s{Z%aw);iyK}Z4CXy$MJgpj@N4@pJx7O}Jg-BN+(w8B!R4ny6 zMBkU7U=g(@Yc(v8VXNZ%tM#ZBGYq9>7^`xIQRAX5mFgG!&8google.cloud.databasecenter.v1beta.AdditionalDetail - */ -class AdditionalDetail extends \Google\Protobuf\Internal\Message -{ - /** - * Where the signal is coming from. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalSource signal_source = 1; - */ - protected $signal_source = 0; - /** - * Type of the signal. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 5; - */ - protected $signal_type = 0; - /** - * Event time when signal was recorded by source service. - * - * Generated from protobuf field .google.protobuf.Timestamp signal_event_time = 7; - */ - protected $signal_event_time = null; - protected $detail; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DatabaseCenter\V1beta\RetentionSettingsInfo $short_backup_retention_info - * Short backup retention information applies to signals with type - * SIGNAL_TYPE_SHORT_BACKUP_RETENTION. - * @type \Google\Cloud\DatabaseCenter\V1beta\BackupRunInfo $backup_run_info - * Backup run information applies to signals with types - * SIGNAL_TYPE_LAST_BACKUP_FAILED and SIGNAL_TYPE_LAST_BACKUP_OLD. - * @type \Google\Cloud\DatabaseCenter\V1beta\SCCInfo $scc_info - * SCC information applies to SCC signals. - * @type \Google\Cloud\DatabaseCenter\V1beta\RecommendationInfo $recommendation_info - * Recommendation information applies to recommendations. - * @type \Google\Cloud\DatabaseCenter\V1beta\AutomatedBackupPolicyInfo $automated_backup_policy_info - * Automated backup policy information applies to signals with type - * SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY. - * @type \Google\Cloud\DatabaseCenter\V1beta\DeletionProtectionInfo $deletion_protection_info - * Deletion protection information applies to signals with type - * [SIGNAL_TYPE_NO_DELETION_PROTECTION][google.cloud.databasecenter.v1beta.SignalType.SIGNAL_TYPE_NO_DELETION_PROTECTION] - * @type \Google\Cloud\DatabaseCenter\V1beta\ResourceSuspensionInfo $resource_suspension_info - * Resource suspension information applies to signals with type - * [SIGNAL_TYPE_RESOURCE_SUSPENDED][google.cloud.databasecenter.v1beta.SignalType.SIGNAL_TYPE_RESOURCE_SUSPENDED]. - * @type \Google\Cloud\DatabaseCenter\V1beta\InefficientQueryInfo $inefficient_query_info - * Inefficient query information applies to signals with type - * [SIGNAL_TYPE_INEFFICIENT_QUERY][google.cloud.databasecenter.v1beta.SignalType.SIGNAL_TYPE_INEFFICIENT_QUERY]. - * @type \Google\Cloud\DatabaseCenter\V1beta\OutdatedMinorVersionInfo $outdated_minor_version_info - * Outdated minor version information applies to signals with type - * SIGNAL_TYPE_OUTDATED_MINOR_VERSION. - * @type \Google\Cloud\DatabaseCenter\V1beta\MaintenanceRecommendationInfo $maintenance_recommendation_info - * Maintenance recommendation information applies to signals - * with type SIGNAL_TYPE_RECOMMENDED_MAINTENANCE_POLICIES. - * @type int $signal_source - * Where the signal is coming from. - * @type int $signal_type - * Type of the signal. - * @type \Google\Protobuf\Timestamp $signal_event_time - * Event time when signal was recorded by source service. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); - parent::__construct($data); - } - - /** - * Short backup retention information applies to signals with type - * SIGNAL_TYPE_SHORT_BACKUP_RETENTION. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.RetentionSettingsInfo short_backup_retention_info = 2; - * @return \Google\Cloud\DatabaseCenter\V1beta\RetentionSettingsInfo|null - */ - public function getShortBackupRetentionInfo() - { - return $this->readOneof(2); - } - - public function hasShortBackupRetentionInfo() - { - return $this->hasOneof(2); - } - - /** - * Short backup retention information applies to signals with type - * SIGNAL_TYPE_SHORT_BACKUP_RETENTION. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.RetentionSettingsInfo short_backup_retention_info = 2; - * @param \Google\Cloud\DatabaseCenter\V1beta\RetentionSettingsInfo $var - * @return $this - */ - public function setShortBackupRetentionInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\RetentionSettingsInfo::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Backup run information applies to signals with types - * SIGNAL_TYPE_LAST_BACKUP_FAILED and SIGNAL_TYPE_LAST_BACKUP_OLD. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.BackupRunInfo backup_run_info = 3; - * @return \Google\Cloud\DatabaseCenter\V1beta\BackupRunInfo|null - */ - public function getBackupRunInfo() - { - return $this->readOneof(3); - } - - public function hasBackupRunInfo() - { - return $this->hasOneof(3); - } - - /** - * Backup run information applies to signals with types - * SIGNAL_TYPE_LAST_BACKUP_FAILED and SIGNAL_TYPE_LAST_BACKUP_OLD. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.BackupRunInfo backup_run_info = 3; - * @param \Google\Cloud\DatabaseCenter\V1beta\BackupRunInfo $var - * @return $this - */ - public function setBackupRunInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\BackupRunInfo::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * SCC information applies to SCC signals. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SCCInfo scc_info = 4; - * @return \Google\Cloud\DatabaseCenter\V1beta\SCCInfo|null - */ - public function getSccInfo() - { - return $this->readOneof(4); - } - - public function hasSccInfo() - { - return $this->hasOneof(4); - } - - /** - * SCC information applies to SCC signals. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SCCInfo scc_info = 4; - * @param \Google\Cloud\DatabaseCenter\V1beta\SCCInfo $var - * @return $this - */ - public function setSccInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\SCCInfo::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Recommendation information applies to recommendations. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.RecommendationInfo recommendation_info = 6; - * @return \Google\Cloud\DatabaseCenter\V1beta\RecommendationInfo|null - */ - public function getRecommendationInfo() - { - return $this->readOneof(6); - } - - public function hasRecommendationInfo() - { - return $this->hasOneof(6); - } - - /** - * Recommendation information applies to recommendations. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.RecommendationInfo recommendation_info = 6; - * @param \Google\Cloud\DatabaseCenter\V1beta\RecommendationInfo $var - * @return $this - */ - public function setRecommendationInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\RecommendationInfo::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Automated backup policy information applies to signals with type - * SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.AutomatedBackupPolicyInfo automated_backup_policy_info = 8; - * @return \Google\Cloud\DatabaseCenter\V1beta\AutomatedBackupPolicyInfo|null - */ - public function getAutomatedBackupPolicyInfo() - { - return $this->readOneof(8); - } - - public function hasAutomatedBackupPolicyInfo() - { - return $this->hasOneof(8); - } - - /** - * Automated backup policy information applies to signals with type - * SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.AutomatedBackupPolicyInfo automated_backup_policy_info = 8; - * @param \Google\Cloud\DatabaseCenter\V1beta\AutomatedBackupPolicyInfo $var - * @return $this - */ - public function setAutomatedBackupPolicyInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\AutomatedBackupPolicyInfo::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Deletion protection information applies to signals with type - * [SIGNAL_TYPE_NO_DELETION_PROTECTION][google.cloud.databasecenter.v1beta.SignalType.SIGNAL_TYPE_NO_DELETION_PROTECTION] - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.DeletionProtectionInfo deletion_protection_info = 9; - * @return \Google\Cloud\DatabaseCenter\V1beta\DeletionProtectionInfo|null - */ - public function getDeletionProtectionInfo() - { - return $this->readOneof(9); - } - - public function hasDeletionProtectionInfo() - { - return $this->hasOneof(9); - } - - /** - * Deletion protection information applies to signals with type - * [SIGNAL_TYPE_NO_DELETION_PROTECTION][google.cloud.databasecenter.v1beta.SignalType.SIGNAL_TYPE_NO_DELETION_PROTECTION] - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.DeletionProtectionInfo deletion_protection_info = 9; - * @param \Google\Cloud\DatabaseCenter\V1beta\DeletionProtectionInfo $var - * @return $this - */ - public function setDeletionProtectionInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\DeletionProtectionInfo::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * Resource suspension information applies to signals with type - * [SIGNAL_TYPE_RESOURCE_SUSPENDED][google.cloud.databasecenter.v1beta.SignalType.SIGNAL_TYPE_RESOURCE_SUSPENDED]. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.ResourceSuspensionInfo resource_suspension_info = 10; - * @return \Google\Cloud\DatabaseCenter\V1beta\ResourceSuspensionInfo|null - */ - public function getResourceSuspensionInfo() - { - return $this->readOneof(10); - } - - public function hasResourceSuspensionInfo() - { - return $this->hasOneof(10); - } - - /** - * Resource suspension information applies to signals with type - * [SIGNAL_TYPE_RESOURCE_SUSPENDED][google.cloud.databasecenter.v1beta.SignalType.SIGNAL_TYPE_RESOURCE_SUSPENDED]. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.ResourceSuspensionInfo resource_suspension_info = 10; - * @param \Google\Cloud\DatabaseCenter\V1beta\ResourceSuspensionInfo $var - * @return $this - */ - public function setResourceSuspensionInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\ResourceSuspensionInfo::class); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * Inefficient query information applies to signals with type - * [SIGNAL_TYPE_INEFFICIENT_QUERY][google.cloud.databasecenter.v1beta.SignalType.SIGNAL_TYPE_INEFFICIENT_QUERY]. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.InefficientQueryInfo inefficient_query_info = 11; - * @return \Google\Cloud\DatabaseCenter\V1beta\InefficientQueryInfo|null - */ - public function getInefficientQueryInfo() - { - return $this->readOneof(11); - } - - public function hasInefficientQueryInfo() - { - return $this->hasOneof(11); - } - - /** - * Inefficient query information applies to signals with type - * [SIGNAL_TYPE_INEFFICIENT_QUERY][google.cloud.databasecenter.v1beta.SignalType.SIGNAL_TYPE_INEFFICIENT_QUERY]. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.InefficientQueryInfo inefficient_query_info = 11; - * @param \Google\Cloud\DatabaseCenter\V1beta\InefficientQueryInfo $var - * @return $this - */ - public function setInefficientQueryInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\InefficientQueryInfo::class); - $this->writeOneof(11, $var); - - return $this; - } - - /** - * Outdated minor version information applies to signals with type - * SIGNAL_TYPE_OUTDATED_MINOR_VERSION. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.OutdatedMinorVersionInfo outdated_minor_version_info = 12; - * @return \Google\Cloud\DatabaseCenter\V1beta\OutdatedMinorVersionInfo|null - */ - public function getOutdatedMinorVersionInfo() - { - return $this->readOneof(12); - } - - public function hasOutdatedMinorVersionInfo() - { - return $this->hasOneof(12); - } - - /** - * Outdated minor version information applies to signals with type - * SIGNAL_TYPE_OUTDATED_MINOR_VERSION. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.OutdatedMinorVersionInfo outdated_minor_version_info = 12; - * @param \Google\Cloud\DatabaseCenter\V1beta\OutdatedMinorVersionInfo $var - * @return $this - */ - public function setOutdatedMinorVersionInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\OutdatedMinorVersionInfo::class); - $this->writeOneof(12, $var); - - return $this; - } - - /** - * Maintenance recommendation information applies to signals - * with type SIGNAL_TYPE_RECOMMENDED_MAINTENANCE_POLICIES. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.MaintenanceRecommendationInfo maintenance_recommendation_info = 13; - * @return \Google\Cloud\DatabaseCenter\V1beta\MaintenanceRecommendationInfo|null - */ - public function getMaintenanceRecommendationInfo() - { - return $this->readOneof(13); - } - - public function hasMaintenanceRecommendationInfo() - { - return $this->hasOneof(13); - } - - /** - * Maintenance recommendation information applies to signals - * with type SIGNAL_TYPE_RECOMMENDED_MAINTENANCE_POLICIES. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.MaintenanceRecommendationInfo maintenance_recommendation_info = 13; - * @param \Google\Cloud\DatabaseCenter\V1beta\MaintenanceRecommendationInfo $var - * @return $this - */ - public function setMaintenanceRecommendationInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\MaintenanceRecommendationInfo::class); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * Where the signal is coming from. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalSource signal_source = 1; - * @return int - */ - public function getSignalSource() - { - return $this->signal_source; - } - - /** - * Where the signal is coming from. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalSource signal_source = 1; - * @param int $var - * @return $this - */ - public function setSignalSource($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\SignalSource::class); - $this->signal_source = $var; - - return $this; - } - - /** - * Type of the signal. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 5; - * @return int - */ - public function getSignalType() - { - return $this->signal_type; - } - - /** - * Type of the signal. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 5; - * @param int $var - * @return $this - */ - public function setSignalType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\SignalType::class); - $this->signal_type = $var; - - return $this; - } - - /** - * Event time when signal was recorded by source service. - * - * Generated from protobuf field .google.protobuf.Timestamp signal_event_time = 7; - * @return \Google\Protobuf\Timestamp|null - */ - public function getSignalEventTime() - { - return $this->signal_event_time; - } - - public function hasSignalEventTime() - { - return isset($this->signal_event_time); - } - - public function clearSignalEventTime() - { - unset($this->signal_event_time); - } - - /** - * Event time when signal was recorded by source service. - * - * Generated from protobuf field .google.protobuf.Timestamp signal_event_time = 7; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setSignalEventTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->signal_event_time = $var; - - return $this; - } - - /** - * @return string - */ - public function getDetail() - { - return $this->whichOneof("detail"); - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateFleetRequest.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateFleetRequest.php deleted file mode 100644 index 934252bd5c2..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateFleetRequest.php +++ /dev/null @@ -1,505 +0,0 @@ -google.cloud.databasecenter.v1beta.AggregateFleetRequest - */ -class AggregateFleetRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent can be a project, a folder, or an organization. The search - * is limited to the resources within the `scope`. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., - * "organizations/123456") - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $parent = ''; - /** - * Optional. The expression to filter resources. - * Supported fields are: `full_resource_name`, `resource_type`, `container`, - * `product.type`, `product.engine`, `product.version`, `location`, - * `labels`, `issues`, fields of availability_info, data_protection_info, - * 'resource_name', etc. - * The expression is a list of zero or more restrictions combined via logical - * operators `AND` and `OR`. When `AND` and `OR` are both used in the - * expression, parentheses must be appropriately used to group the - * combinations. - * Example: `location="us-east1"` - * Example: `container="projects/123" OR container="projects/456"` - * Example: `(container="projects/123" OR - * container="projects/456") AND location="us-east1"` - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. A field that statistics are grouped by. - * Valid values are any combination of the following: - * * container - * * product.type - * * product.engine - * * product.version - * * location - * * sub_resource_type - * * management_type - * * tag.key - * * tag.value - * * tag.source - * * tag.inherited - * * label.key - * * label.value - * * label.source - * * has_maintenance_schedule - * * has_deny_maintenance_schedules - * Comma separated list. - * - * Generated from protobuf field string group_by = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $group_by = ''; - /** - * Optional. Valid values to order by are: - * * resource_groups_count - * * resources_count - * * and all fields supported by `group_by` - * The default order is ascending. Add "DESC" after the field name to indicate - * descending order. Add "ASC" after the field name to indicate ascending - * order. It supports ordering using multiple fields. - * For example: - * `order_by = "resource_groups_count"` sorts response in ascending order - * `order_by = "resource_groups_count DESC"` sorts response in descending - * order - * `order_by = "product.type, product.version DESC, location"` orders by type - * in ascending order, version in descending order and location in ascending - * order - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. If unspecified, at most 50 items will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `AggregateFleet` call. - * Provide this to retrieve the subsequent page. - * All other parameters should match the parameters in the call that provided - * the page token except for page_size which can be different. - * - * Generated from protobuf field string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. The baseline date w.r.t. which the delta counts are calculated. - * If not set, delta counts are not included in the response and the response - * indicates the current state of the fleet. - * - * Generated from protobuf field optional .google.type.Date baseline_date = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $baseline_date = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent can be a project, a folder, or an organization. The search - * is limited to the resources within the `scope`. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., - * "organizations/123456") - * @type string $filter - * Optional. The expression to filter resources. - * Supported fields are: `full_resource_name`, `resource_type`, `container`, - * `product.type`, `product.engine`, `product.version`, `location`, - * `labels`, `issues`, fields of availability_info, data_protection_info, - * 'resource_name', etc. - * The expression is a list of zero or more restrictions combined via logical - * operators `AND` and `OR`. When `AND` and `OR` are both used in the - * expression, parentheses must be appropriately used to group the - * combinations. - * Example: `location="us-east1"` - * Example: `container="projects/123" OR container="projects/456"` - * Example: `(container="projects/123" OR - * container="projects/456") AND location="us-east1"` - * @type string $group_by - * Optional. A field that statistics are grouped by. - * Valid values are any combination of the following: - * * container - * * product.type - * * product.engine - * * product.version - * * location - * * sub_resource_type - * * management_type - * * tag.key - * * tag.value - * * tag.source - * * tag.inherited - * * label.key - * * label.value - * * label.source - * * has_maintenance_schedule - * * has_deny_maintenance_schedules - * Comma separated list. - * @type string $order_by - * Optional. Valid values to order by are: - * * resource_groups_count - * * resources_count - * * and all fields supported by `group_by` - * The default order is ascending. Add "DESC" after the field name to indicate - * descending order. Add "ASC" after the field name to indicate ascending - * order. It supports ordering using multiple fields. - * For example: - * `order_by = "resource_groups_count"` sorts response in ascending order - * `order_by = "resource_groups_count DESC"` sorts response in descending - * order - * `order_by = "product.type, product.version DESC, location"` orders by type - * in ascending order, version in descending order and location in ascending - * order - * @type int $page_size - * Optional. If unspecified, at most 50 items will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `AggregateFleet` call. - * Provide this to retrieve the subsequent page. - * All other parameters should match the parameters in the call that provided - * the page token except for page_size which can be different. - * @type \Google\Type\Date $baseline_date - * Optional. The baseline date w.r.t. which the delta counts are calculated. - * If not set, delta counts are not included in the response and the response - * indicates the current state of the fleet. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent can be a project, a folder, or an organization. The search - * is limited to the resources within the `scope`. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., - * "organizations/123456") - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Parent can be a project, a folder, or an organization. The search - * is limited to the resources within the `scope`. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., - * "organizations/123456") - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The expression to filter resources. - * Supported fields are: `full_resource_name`, `resource_type`, `container`, - * `product.type`, `product.engine`, `product.version`, `location`, - * `labels`, `issues`, fields of availability_info, data_protection_info, - * 'resource_name', etc. - * The expression is a list of zero or more restrictions combined via logical - * operators `AND` and `OR`. When `AND` and `OR` are both used in the - * expression, parentheses must be appropriately used to group the - * combinations. - * Example: `location="us-east1"` - * Example: `container="projects/123" OR container="projects/456"` - * Example: `(container="projects/123" OR - * container="projects/456") AND location="us-east1"` - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. The expression to filter resources. - * Supported fields are: `full_resource_name`, `resource_type`, `container`, - * `product.type`, `product.engine`, `product.version`, `location`, - * `labels`, `issues`, fields of availability_info, data_protection_info, - * 'resource_name', etc. - * The expression is a list of zero or more restrictions combined via logical - * operators `AND` and `OR`. When `AND` and `OR` are both used in the - * expression, parentheses must be appropriately used to group the - * combinations. - * Example: `location="us-east1"` - * Example: `container="projects/123" OR container="projects/456"` - * Example: `(container="projects/123" OR - * container="projects/456") AND location="us-east1"` - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. A field that statistics are grouped by. - * Valid values are any combination of the following: - * * container - * * product.type - * * product.engine - * * product.version - * * location - * * sub_resource_type - * * management_type - * * tag.key - * * tag.value - * * tag.source - * * tag.inherited - * * label.key - * * label.value - * * label.source - * * has_maintenance_schedule - * * has_deny_maintenance_schedules - * Comma separated list. - * - * Generated from protobuf field string group_by = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getGroupBy() - { - return $this->group_by; - } - - /** - * Optional. A field that statistics are grouped by. - * Valid values are any combination of the following: - * * container - * * product.type - * * product.engine - * * product.version - * * location - * * sub_resource_type - * * management_type - * * tag.key - * * tag.value - * * tag.source - * * tag.inherited - * * label.key - * * label.value - * * label.source - * * has_maintenance_schedule - * * has_deny_maintenance_schedules - * Comma separated list. - * - * Generated from protobuf field string group_by = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setGroupBy($var) - { - GPBUtil::checkString($var, True); - $this->group_by = $var; - - return $this; - } - - /** - * Optional. Valid values to order by are: - * * resource_groups_count - * * resources_count - * * and all fields supported by `group_by` - * The default order is ascending. Add "DESC" after the field name to indicate - * descending order. Add "ASC" after the field name to indicate ascending - * order. It supports ordering using multiple fields. - * For example: - * `order_by = "resource_groups_count"` sorts response in ascending order - * `order_by = "resource_groups_count DESC"` sorts response in descending - * order - * `order_by = "product.type, product.version DESC, location"` orders by type - * in ascending order, version in descending order and location in ascending - * order - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Valid values to order by are: - * * resource_groups_count - * * resources_count - * * and all fields supported by `group_by` - * The default order is ascending. Add "DESC" after the field name to indicate - * descending order. Add "ASC" after the field name to indicate ascending - * order. It supports ordering using multiple fields. - * For example: - * `order_by = "resource_groups_count"` sorts response in ascending order - * `order_by = "resource_groups_count DESC"` sorts response in descending - * order - * `order_by = "product.type, product.version DESC, location"` orders by type - * in ascending order, version in descending order and location in ascending - * order - * - * 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. If unspecified, at most 50 items will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. If unspecified, at most 50 items will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `AggregateFleet` call. - * Provide this to retrieve the subsequent page. - * All other parameters should match the parameters in the call that provided - * the page token except for page_size which can be different. - * - * Generated from protobuf field string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `AggregateFleet` call. - * Provide this to retrieve the subsequent page. - * All other parameters should match the parameters in the call that provided - * the page token except for page_size which can be different. - * - * Generated from protobuf field string page_token = 6 [(.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. The baseline date w.r.t. which the delta counts are calculated. - * If not set, delta counts are not included in the response and the response - * indicates the current state of the fleet. - * - * Generated from protobuf field optional .google.type.Date baseline_date = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Type\Date|null - */ - public function getBaselineDate() - { - return $this->baseline_date; - } - - public function hasBaselineDate() - { - return isset($this->baseline_date); - } - - public function clearBaselineDate() - { - unset($this->baseline_date); - } - - /** - * Optional. The baseline date w.r.t. which the delta counts are calculated. - * If not set, delta counts are not included in the response and the response - * indicates the current state of the fleet. - * - * Generated from protobuf field optional .google.type.Date baseline_date = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Type\Date $var - * @return $this - */ - public function setBaselineDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->baseline_date = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateFleetResponse.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateFleetResponse.php deleted file mode 100644 index f9a2cbf20b3..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateFleetResponse.php +++ /dev/null @@ -1,216 +0,0 @@ -google.cloud.databasecenter.v1beta.AggregateFleetResponse - */ -class AggregateFleetResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Represents a row grouped by the fields in the input. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.AggregateFleetRow rows = 1; - */ - private $rows; - /** - * Count of all resource groups in the fleet. This includes counts from all - * pages. - * - * Generated from protobuf field int32 resource_groups_total_count = 2; - */ - protected $resource_groups_total_count = 0; - /** - * Count of all resources in the fleet. This includes counts from all pages. - * - * Generated from protobuf field int32 resource_total_count = 3; - */ - protected $resource_total_count = 0; - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 4; - */ - protected $next_page_token = ''; - /** - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * - * Generated from protobuf field repeated string unreachable = 5 [(.google.api.field_behavior) = UNORDERED_LIST]; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DatabaseCenter\V1beta\AggregateFleetRow>|\Google\Protobuf\Internal\RepeatedField $rows - * Represents a row grouped by the fields in the input. - * @type int $resource_groups_total_count - * Count of all resource groups in the fleet. This includes counts from all - * pages. - * @type int $resource_total_count - * Count of all resources in the fleet. This includes counts from all pages. - * @type string $next_page_token - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Represents a row grouped by the fields in the input. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.AggregateFleetRow rows = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRows() - { - return $this->rows; - } - - /** - * Represents a row grouped by the fields in the input. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.AggregateFleetRow rows = 1; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\AggregateFleetRow>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\AggregateFleetRow::class); - $this->rows = $arr; - - return $this; - } - - /** - * Count of all resource groups in the fleet. This includes counts from all - * pages. - * - * Generated from protobuf field int32 resource_groups_total_count = 2; - * @return int - */ - public function getResourceGroupsTotalCount() - { - return $this->resource_groups_total_count; - } - - /** - * Count of all resource groups in the fleet. This includes counts from all - * pages. - * - * Generated from protobuf field int32 resource_groups_total_count = 2; - * @param int $var - * @return $this - */ - public function setResourceGroupsTotalCount($var) - { - GPBUtil::checkInt32($var); - $this->resource_groups_total_count = $var; - - return $this; - } - - /** - * Count of all resources in the fleet. This includes counts from all pages. - * - * Generated from protobuf field int32 resource_total_count = 3; - * @return int - */ - public function getResourceTotalCount() - { - return $this->resource_total_count; - } - - /** - * Count of all resources in the fleet. This includes counts from all pages. - * - * Generated from protobuf field int32 resource_total_count = 3; - * @param int $var - * @return $this - */ - public function setResourceTotalCount($var) - { - GPBUtil::checkInt32($var); - $this->resource_total_count = $var; - - return $this; - } - - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 4; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 4; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * - * Generated from protobuf field repeated string unreachable = 5 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * - * Generated from protobuf field repeated string unreachable = 5 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateFleetRow.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateFleetRow.php deleted file mode 100644 index 665d25b44b1..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateFleetRow.php +++ /dev/null @@ -1,183 +0,0 @@ -google.cloud.databasecenter.v1beta.AggregateFleetRow - */ -class AggregateFleetRow extends \Google\Protobuf\Internal\Message -{ - /** - * Group by dimension. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Dimension dimension = 1; - */ - private $dimension; - /** - * Number of resource groups that have a particular dimension. - * - * Generated from protobuf field int32 resource_groups_count = 2; - */ - protected $resource_groups_count = 0; - /** - * Number of resources that have a particular dimension. - * - * Generated from protobuf field int32 resources_count = 3; - */ - protected $resources_count = 0; - /** - * Optional. Delta counts and details of resources which were added to/deleted - * from fleet. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $delta_details = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DatabaseCenter\V1beta\Dimension>|\Google\Protobuf\Internal\RepeatedField $dimension - * Group by dimension. - * @type int $resource_groups_count - * Number of resource groups that have a particular dimension. - * @type int $resources_count - * Number of resources that have a particular dimension. - * @type \Google\Cloud\DatabaseCenter\V1beta\DeltaDetails $delta_details - * Optional. Delta counts and details of resources which were added to/deleted - * from fleet. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Group by dimension. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Dimension dimension = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimension() - { - return $this->dimension; - } - - /** - * Group by dimension. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Dimension dimension = 1; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\Dimension>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimension($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\Dimension::class); - $this->dimension = $arr; - - return $this; - } - - /** - * Number of resource groups that have a particular dimension. - * - * Generated from protobuf field int32 resource_groups_count = 2; - * @return int - */ - public function getResourceGroupsCount() - { - return $this->resource_groups_count; - } - - /** - * Number of resource groups that have a particular dimension. - * - * Generated from protobuf field int32 resource_groups_count = 2; - * @param int $var - * @return $this - */ - public function setResourceGroupsCount($var) - { - GPBUtil::checkInt32($var); - $this->resource_groups_count = $var; - - return $this; - } - - /** - * Number of resources that have a particular dimension. - * - * Generated from protobuf field int32 resources_count = 3; - * @return int - */ - public function getResourcesCount() - { - return $this->resources_count; - } - - /** - * Number of resources that have a particular dimension. - * - * Generated from protobuf field int32 resources_count = 3; - * @param int $var - * @return $this - */ - public function setResourcesCount($var) - { - GPBUtil::checkInt32($var); - $this->resources_count = $var; - - return $this; - } - - /** - * Optional. Delta counts and details of resources which were added to/deleted - * from fleet. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\DatabaseCenter\V1beta\DeltaDetails|null - */ - public function getDeltaDetails() - { - return $this->delta_details; - } - - public function hasDeltaDetails() - { - return isset($this->delta_details); - } - - public function clearDeltaDetails() - { - unset($this->delta_details); - } - - /** - * Optional. Delta counts and details of resources which were added to/deleted - * from fleet. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\DatabaseCenter\V1beta\DeltaDetails $var - * @return $this - */ - public function setDeltaDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\DeltaDetails::class); - $this->delta_details = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateIssueStatsRequest.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateIssueStatsRequest.php deleted file mode 100644 index 19e51b7e5c7..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateIssueStatsRequest.php +++ /dev/null @@ -1,260 +0,0 @@ -google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest - */ -class AggregateIssueStatsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent can be a project, a folder, or an organization. The search - * is limited to the resources within the `scope`. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $parent = ''; - /** - * Optional. The expression to filter resources. - * Supported fields are: `full_resource_name`, `resource_type`, `container`, - * `product.type`, `product.engine`, `product.version`, `location`, - * `labels`, `issues`, fields of availability_info, - * data_protection_info,'resource_name', etc. - * The expression is a list of zero or more restrictions combined via logical - * operators `AND` and `OR`. When `AND` and `OR` are both used in the - * expression, parentheses must be appropriately used to group the - * combinations. - * Example: `location="us-east1"` - * Example: `container="projects/123" OR container="projects/456"` - * Example: `(container="projects/123" OR - * container="projects/456") AND location="us-east1"` - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Lists of signal types that are issues. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $signal_type_groups; - /** - * Optional. The baseline date w.r.t. which the delta counts are calculated. - * If not set, delta counts are not included in the response and the response - * indicates the current state of the fleet. - * - * Generated from protobuf field optional .google.type.Date baseline_date = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $baseline_date = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent can be a project, a folder, or an organization. The search - * is limited to the resources within the `scope`. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * @type string $filter - * Optional. The expression to filter resources. - * Supported fields are: `full_resource_name`, `resource_type`, `container`, - * `product.type`, `product.engine`, `product.version`, `location`, - * `labels`, `issues`, fields of availability_info, - * data_protection_info,'resource_name', etc. - * The expression is a list of zero or more restrictions combined via logical - * operators `AND` and `OR`. When `AND` and `OR` are both used in the - * expression, parentheses must be appropriately used to group the - * combinations. - * Example: `location="us-east1"` - * Example: `container="projects/123" OR container="projects/456"` - * Example: `(container="projects/123" OR - * container="projects/456") AND location="us-east1"` - * @type array<\Google\Cloud\DatabaseCenter\V1beta\SignalTypeGroup>|\Google\Protobuf\Internal\RepeatedField $signal_type_groups - * Optional. Lists of signal types that are issues. - * @type \Google\Type\Date $baseline_date - * Optional. The baseline date w.r.t. which the delta counts are calculated. - * If not set, delta counts are not included in the response and the response - * indicates the current state of the fleet. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent can be a project, a folder, or an organization. The search - * is limited to the resources within the `scope`. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Parent can be a project, a folder, or an organization. The search - * is limited to the resources within the `scope`. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The expression to filter resources. - * Supported fields are: `full_resource_name`, `resource_type`, `container`, - * `product.type`, `product.engine`, `product.version`, `location`, - * `labels`, `issues`, fields of availability_info, - * data_protection_info,'resource_name', etc. - * The expression is a list of zero or more restrictions combined via logical - * operators `AND` and `OR`. When `AND` and `OR` are both used in the - * expression, parentheses must be appropriately used to group the - * combinations. - * Example: `location="us-east1"` - * Example: `container="projects/123" OR container="projects/456"` - * Example: `(container="projects/123" OR - * container="projects/456") AND location="us-east1"` - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. The expression to filter resources. - * Supported fields are: `full_resource_name`, `resource_type`, `container`, - * `product.type`, `product.engine`, `product.version`, `location`, - * `labels`, `issues`, fields of availability_info, - * data_protection_info,'resource_name', etc. - * The expression is a list of zero or more restrictions combined via logical - * operators `AND` and `OR`. When `AND` and `OR` are both used in the - * expression, parentheses must be appropriately used to group the - * combinations. - * Example: `location="us-east1"` - * Example: `container="projects/123" OR container="projects/456"` - * Example: `(container="projects/123" OR - * container="projects/456") AND location="us-east1"` - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Lists of signal types that are issues. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSignalTypeGroups() - { - return $this->signal_type_groups; - } - - /** - * Optional. Lists of signal types that are issues. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\SignalTypeGroup>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSignalTypeGroups($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\SignalTypeGroup::class); - $this->signal_type_groups = $arr; - - return $this; - } - - /** - * Optional. The baseline date w.r.t. which the delta counts are calculated. - * If not set, delta counts are not included in the response and the response - * indicates the current state of the fleet. - * - * Generated from protobuf field optional .google.type.Date baseline_date = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Type\Date|null - */ - public function getBaselineDate() - { - return $this->baseline_date; - } - - public function hasBaselineDate() - { - return isset($this->baseline_date); - } - - public function clearBaselineDate() - { - unset($this->baseline_date); - } - - /** - * Optional. The baseline date w.r.t. which the delta counts are calculated. - * If not set, delta counts are not included in the response and the response - * indicates the current state of the fleet. - * - * Generated from protobuf field optional .google.type.Date baseline_date = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Type\Date $var - * @return $this - */ - public function setBaselineDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->baseline_date = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateIssueStatsResponse.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateIssueStatsResponse.php deleted file mode 100644 index 250019fc9b2..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateIssueStatsResponse.php +++ /dev/null @@ -1,178 +0,0 @@ -google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse - */ -class AggregateIssueStatsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of issue group stats where each group contains stats for resources - * having a particular combination of relevant issues. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.IssueGroupStats issue_group_stats = 1; - */ - private $issue_group_stats; - /** - * Total count of the resources filtered in based on the user given filter. - * - * Generated from protobuf field int32 total_resources_count = 2; - */ - protected $total_resources_count = 0; - /** - * Total count of the resource filtered in based on the user given filter. - * - * Generated from protobuf field int32 total_resource_groups_count = 3; - */ - protected $total_resource_groups_count = 0; - /** - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * - * Generated from protobuf field repeated string unreachable = 4 [(.google.api.field_behavior) = UNORDERED_LIST]; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DatabaseCenter\V1beta\IssueGroupStats>|\Google\Protobuf\Internal\RepeatedField $issue_group_stats - * List of issue group stats where each group contains stats for resources - * having a particular combination of relevant issues. - * @type int $total_resources_count - * Total count of the resources filtered in based on the user given filter. - * @type int $total_resource_groups_count - * Total count of the resource filtered in based on the user given filter. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * List of issue group stats where each group contains stats for resources - * having a particular combination of relevant issues. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.IssueGroupStats issue_group_stats = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIssueGroupStats() - { - return $this->issue_group_stats; - } - - /** - * List of issue group stats where each group contains stats for resources - * having a particular combination of relevant issues. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.IssueGroupStats issue_group_stats = 1; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\IssueGroupStats>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIssueGroupStats($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\IssueGroupStats::class); - $this->issue_group_stats = $arr; - - return $this; - } - - /** - * Total count of the resources filtered in based on the user given filter. - * - * Generated from protobuf field int32 total_resources_count = 2; - * @return int - */ - public function getTotalResourcesCount() - { - return $this->total_resources_count; - } - - /** - * Total count of the resources filtered in based on the user given filter. - * - * Generated from protobuf field int32 total_resources_count = 2; - * @param int $var - * @return $this - */ - public function setTotalResourcesCount($var) - { - GPBUtil::checkInt32($var); - $this->total_resources_count = $var; - - return $this; - } - - /** - * Total count of the resource filtered in based on the user given filter. - * - * Generated from protobuf field int32 total_resource_groups_count = 3; - * @return int - */ - public function getTotalResourceGroupsCount() - { - return $this->total_resource_groups_count; - } - - /** - * Total count of the resource filtered in based on the user given filter. - * - * Generated from protobuf field int32 total_resource_groups_count = 3; - * @param int $var - * @return $this - */ - public function setTotalResourceGroupsCount($var) - { - GPBUtil::checkInt32($var); - $this->total_resource_groups_count = $var; - - return $this; - } - - /** - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * - * Generated from protobuf field repeated string unreachable = 4 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * - * Generated from protobuf field repeated string unreachable = 4 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AutomatedBackupPolicyInfo.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AutomatedBackupPolicyInfo.php deleted file mode 100644 index 6cfa4694389..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AutomatedBackupPolicyInfo.php +++ /dev/null @@ -1,111 +0,0 @@ -google.cloud.databasecenter.v1beta.AutomatedBackupPolicyInfo - */ -class AutomatedBackupPolicyInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Sub resource details associated with the signal. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResource sub_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $sub_resource = null; - /** - * Is automated policy enabled. - * - * Generated from protobuf field bool is_enabled = 2; - */ - protected $is_enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DatabaseCenter\V1beta\SubResource $sub_resource - * Optional. Sub resource details associated with the signal. - * @type bool $is_enabled - * Is automated policy enabled. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Sub resource details associated with the signal. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResource sub_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\DatabaseCenter\V1beta\SubResource|null - */ - public function getSubResource() - { - return $this->sub_resource; - } - - public function hasSubResource() - { - return isset($this->sub_resource); - } - - public function clearSubResource() - { - unset($this->sub_resource); - } - - /** - * Optional. Sub resource details associated with the signal. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResource sub_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\DatabaseCenter\V1beta\SubResource $var - * @return $this - */ - public function setSubResource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\SubResource::class); - $this->sub_resource = $var; - - return $this; - } - - /** - * Is automated policy enabled. - * - * Generated from protobuf field bool is_enabled = 2; - * @return bool - */ - public function getIsEnabled() - { - return $this->is_enabled; - } - - /** - * Is automated policy enabled. - * - * Generated from protobuf field bool is_enabled = 2; - * @param bool $var - * @return $this - */ - public function setIsEnabled($var) - { - GPBUtil::checkBool($var); - $this->is_enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/BackupDRConfig.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/BackupDRConfig.php deleted file mode 100644 index 8f997752ee0..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/BackupDRConfig.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.databasecenter.v1beta.BackupDRConfig - */ -class BackupDRConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Indicates if the resource is managed by BackupDR. - * - * Generated from protobuf field optional bool backupdr_managed = 1; - */ - protected $backupdr_managed = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $backupdr_managed - * Indicates if the resource is managed by BackupDR. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Indicates if the resource is managed by BackupDR. - * - * Generated from protobuf field optional bool backupdr_managed = 1; - * @return bool - */ - public function getBackupdrManaged() - { - return isset($this->backupdr_managed) ? $this->backupdr_managed : false; - } - - public function hasBackupdrManaged() - { - return isset($this->backupdr_managed); - } - - public function clearBackupdrManaged() - { - unset($this->backupdr_managed); - } - - /** - * Indicates if the resource is managed by BackupDR. - * - * Generated from protobuf field optional bool backupdr_managed = 1; - * @param bool $var - * @return $this - */ - public function setBackupdrManaged($var) - { - GPBUtil::checkBool($var); - $this->backupdr_managed = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/BackupRunInfo.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/BackupRunInfo.php deleted file mode 100644 index ced3b74eb8a..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/BackupRunInfo.php +++ /dev/null @@ -1,271 +0,0 @@ -google.cloud.databasecenter.v1beta.BackupRunInfo - */ -class BackupRunInfo extends \Google\Protobuf\Internal\Message -{ - /** - * The time the backup operation started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; - */ - protected $start_time = null; - /** - * The time the backup operation completed. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 6; - */ - protected $end_time = null; - /** - * Output only. The state of this run. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.BackupRunInfo.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Additional information about the error encountered. - * - * Generated from protobuf field string error_message = 3; - */ - protected $error_message = ''; - /** - * Optional. OperationErrorType to expose specific error when backup operation - * of database resource failed, that is state is FAILED. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.OperationErrorType operation_error_type = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $operation_error_type = 0; - /** - * Optional. Sub resource details associated with the backup run. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResource sub_resource = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $sub_resource = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $start_time - * The time the backup operation started. - * @type \Google\Protobuf\Timestamp $end_time - * The time the backup operation completed. - * @type int $state - * Output only. The state of this run. - * @type string $error_message - * Additional information about the error encountered. - * @type int $operation_error_type - * Optional. OperationErrorType to expose specific error when backup operation - * of database resource failed, that is state is FAILED. - * @type \Google\Cloud\DatabaseCenter\V1beta\SubResource $sub_resource - * Optional. Sub resource details associated with the backup run. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); - parent::__construct($data); - } - - /** - * The time the backup operation started. - * - * 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); - } - - /** - * The time the backup operation started. - * - * 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; - } - - /** - * The time the backup operation completed. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 6; - * @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); - } - - /** - * The time the backup operation completed. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 6; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Output only. The state of this run. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.BackupRunInfo.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The state of this run. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.BackupRunInfo.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\BackupRunInfo\State::class); - $this->state = $var; - - return $this; - } - - /** - * Additional information about the error encountered. - * - * Generated from protobuf field string error_message = 3; - * @return string - */ - public function getErrorMessage() - { - return $this->error_message; - } - - /** - * Additional information about the error encountered. - * - * Generated from protobuf field string error_message = 3; - * @param string $var - * @return $this - */ - public function setErrorMessage($var) - { - GPBUtil::checkString($var, True); - $this->error_message = $var; - - return $this; - } - - /** - * Optional. OperationErrorType to expose specific error when backup operation - * of database resource failed, that is state is FAILED. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.OperationErrorType operation_error_type = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getOperationErrorType() - { - return $this->operation_error_type; - } - - /** - * Optional. OperationErrorType to expose specific error when backup operation - * of database resource failed, that is state is FAILED. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.OperationErrorType operation_error_type = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setOperationErrorType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\OperationErrorType::class); - $this->operation_error_type = $var; - - return $this; - } - - /** - * Optional. Sub resource details associated with the backup run. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResource sub_resource = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\DatabaseCenter\V1beta\SubResource|null - */ - public function getSubResource() - { - return $this->sub_resource; - } - - public function hasSubResource() - { - return isset($this->sub_resource); - } - - public function clearSubResource() - { - unset($this->sub_resource); - } - - /** - * Optional. Sub resource details associated with the backup run. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResource sub_resource = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\DatabaseCenter\V1beta\SubResource $var - * @return $this - */ - public function setSubResource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\SubResource::class); - $this->sub_resource = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/BackupRunInfo/State.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/BackupRunInfo/State.php deleted file mode 100644 index 5064ee1ef73..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/BackupRunInfo/State.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.databasecenter.v1beta.BackupRunInfo.State - */ -class State -{ - /** - * Unspecified. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The backup succeeded. - * - * Generated from protobuf enum SUCCEEDED = 1; - */ - const SUCCEEDED = 1; - /** - * The backup was unsuccessful. - * - * Generated from protobuf enum FAILED = 2; - */ - const FAILED = 2; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::SUCCEEDED => 'SUCCEEDED', - self::FAILED => 'FAILED', - ]; - - 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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\DatabaseCenter\V1beta\BackupRunInfo_State::class); - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DatabaseResource.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DatabaseResource.php deleted file mode 100644 index 55a3424d03d..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DatabaseResource.php +++ /dev/null @@ -1,786 +0,0 @@ -google.cloud.databasecenter.v1beta.DatabaseResource - */ -class DatabaseResource extends \Google\Protobuf\Internal\Message -{ - /** - * List of children associated with a database group. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.DatabaseResource child_resources = 1; - */ - private $child_resources; - /** - * The full resource name, based on CAIS resource name format - * https://cloud.google.com/asset-inventory/docs/resource-name-format - * Example: - * `//cloudsql.googleapis.com/projects/project-number/instances/mysql-1` - * `//cloudsql.googleapis.com/projects/project-number/instances/postgres-1` - * `//spanner.googleapis.com/projects/project-number/instances/spanner-instance-1` - * `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1` - * `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1/instances/i1` - * - * Generated from protobuf field string full_resource_name = 3; - */ - protected $full_resource_name = ''; - /** - * Specifies where the resource is created. For Google Cloud resources, it is - * the full name of the project. - * - * Generated from protobuf field string container = 4; - */ - protected $container = ''; - /** - * The product this resource represents. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Product product = 5; - */ - protected $product = null; - /** - * The location of the resources. It supports returning only regional - * locations in Google Cloud. These are of the form: "us-central1", - * "us-east1", etc. See https://cloud.google.com/about/locations for a list of - * such regions. - * - * Generated from protobuf field string location = 6; - */ - protected $location = ''; - /** - * Labels applied on the resource. The requirements for labels assigned to - * Google Cloud resources may be found at - * https://cloud.google.com/resource-manager/docs/labels-overview#requirements - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Label labels = 7; - */ - private $labels; - /** - * Tags applied on the resource. The requirements for tags assigned to - * Google Cloud resources may be found at - * https://cloud.google.com/resource-manager/docs/tags/tags-overview - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Tag tags = 16; - */ - private $tags; - /** - * The type of resource defined according to the pattern: - * {Service Name}/{Type}. Ex: - * sqladmin.googleapis.com/Instance - * alloydb.googleapis.com/Cluster - * alloydb.googleapis.com/Instance - * spanner.googleapis.com/Instance - * - * Generated from protobuf field string resource_type = 8; - */ - protected $resource_type = ''; - /** - * Subtype of the resource specified at creation time. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResourceType sub_resource_type = 9; - */ - protected $sub_resource_type = 0; - /** - * Machine configuration like CPU, memory, etc for the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.MachineConfig machine_config = 12; - */ - protected $machine_config = null; - /** - * The list of signal groups and count of issues related to the resource. - * Only those signals which have been requested would be included. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalGroup signal_groups = 10; - */ - private $signal_groups; - /** - * Observable metrics for the resource e.g. CPU utilization, memory - * utilization, etc. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Metrics metrics = 13; - */ - protected $metrics = null; - /** - * The category of the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.ResourceCategory resource_category = 14; - */ - protected $resource_category = 0; - /** - * The name of the resource(The last part of the full resource name). - * Example: - * For full resource name - - * `//cloudsql.googleapis.com/projects/project-number/instances/mysql-1`, - * resource name - `mysql-1` - * For full resource name - - * `//cloudsql.googleapis.com/projects/project-number/instances/postgres-1` , - * resource name - `postgres-1` - * Note: In some cases, there might be more than one resource with the same - * resource name. - * - * Generated from protobuf field string resource_name = 15; - */ - protected $resource_name = ''; - /** - * Optional. Backup and disaster recovery details for the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.BackupDRConfig backupdr_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $backupdr_config = null; - /** - * The edition of the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Edition edition = 18; - */ - protected $edition = 0; - /** - * Optional. The maintenance information of the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.MaintenanceInfo maintenance_info = 19 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $maintenance_info = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DatabaseCenter\V1beta\DatabaseResource>|\Google\Protobuf\Internal\RepeatedField $child_resources - * List of children associated with a database group. - * @type string $full_resource_name - * The full resource name, based on CAIS resource name format - * https://cloud.google.com/asset-inventory/docs/resource-name-format - * Example: - * `//cloudsql.googleapis.com/projects/project-number/instances/mysql-1` - * `//cloudsql.googleapis.com/projects/project-number/instances/postgres-1` - * `//spanner.googleapis.com/projects/project-number/instances/spanner-instance-1` - * `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1` - * `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1/instances/i1` - * @type string $container - * Specifies where the resource is created. For Google Cloud resources, it is - * the full name of the project. - * @type \Google\Cloud\DatabaseCenter\V1beta\Product $product - * The product this resource represents. - * @type string $location - * The location of the resources. It supports returning only regional - * locations in Google Cloud. These are of the form: "us-central1", - * "us-east1", etc. See https://cloud.google.com/about/locations for a list of - * such regions. - * @type array<\Google\Cloud\DatabaseCenter\V1beta\Label>|\Google\Protobuf\Internal\RepeatedField $labels - * Labels applied on the resource. The requirements for labels assigned to - * Google Cloud resources may be found at - * https://cloud.google.com/resource-manager/docs/labels-overview#requirements - * @type array<\Google\Cloud\DatabaseCenter\V1beta\Tag>|\Google\Protobuf\Internal\RepeatedField $tags - * Tags applied on the resource. The requirements for tags assigned to - * Google Cloud resources may be found at - * https://cloud.google.com/resource-manager/docs/tags/tags-overview - * @type string $resource_type - * The type of resource defined according to the pattern: - * {Service Name}/{Type}. Ex: - * sqladmin.googleapis.com/Instance - * alloydb.googleapis.com/Cluster - * alloydb.googleapis.com/Instance - * spanner.googleapis.com/Instance - * @type int $sub_resource_type - * Subtype of the resource specified at creation time. - * @type \Google\Cloud\DatabaseCenter\V1beta\MachineConfig $machine_config - * Machine configuration like CPU, memory, etc for the resource. - * @type array<\Google\Cloud\DatabaseCenter\V1beta\SignalGroup>|\Google\Protobuf\Internal\RepeatedField $signal_groups - * The list of signal groups and count of issues related to the resource. - * Only those signals which have been requested would be included. - * @type \Google\Cloud\DatabaseCenter\V1beta\Metrics $metrics - * Observable metrics for the resource e.g. CPU utilization, memory - * utilization, etc. - * @type int $resource_category - * The category of the resource. - * @type string $resource_name - * The name of the resource(The last part of the full resource name). - * Example: - * For full resource name - - * `//cloudsql.googleapis.com/projects/project-number/instances/mysql-1`, - * resource name - `mysql-1` - * For full resource name - - * `//cloudsql.googleapis.com/projects/project-number/instances/postgres-1` , - * resource name - `postgres-1` - * Note: In some cases, there might be more than one resource with the same - * resource name. - * @type \Google\Cloud\DatabaseCenter\V1beta\BackupDRConfig $backupdr_config - * Optional. Backup and disaster recovery details for the resource. - * @type int $edition - * The edition of the resource. - * @type \Google\Cloud\DatabaseCenter\V1beta\MaintenanceInfo $maintenance_info - * Optional. The maintenance information of the resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * List of children associated with a database group. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.DatabaseResource child_resources = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getChildResources() - { - return $this->child_resources; - } - - /** - * List of children associated with a database group. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.DatabaseResource child_resources = 1; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\DatabaseResource>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setChildResources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\DatabaseResource::class); - $this->child_resources = $arr; - - return $this; - } - - /** - * The full resource name, based on CAIS resource name format - * https://cloud.google.com/asset-inventory/docs/resource-name-format - * Example: - * `//cloudsql.googleapis.com/projects/project-number/instances/mysql-1` - * `//cloudsql.googleapis.com/projects/project-number/instances/postgres-1` - * `//spanner.googleapis.com/projects/project-number/instances/spanner-instance-1` - * `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1` - * `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1/instances/i1` - * - * Generated from protobuf field string full_resource_name = 3; - * @return string - */ - public function getFullResourceName() - { - return $this->full_resource_name; - } - - /** - * The full resource name, based on CAIS resource name format - * https://cloud.google.com/asset-inventory/docs/resource-name-format - * Example: - * `//cloudsql.googleapis.com/projects/project-number/instances/mysql-1` - * `//cloudsql.googleapis.com/projects/project-number/instances/postgres-1` - * `//spanner.googleapis.com/projects/project-number/instances/spanner-instance-1` - * `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1` - * `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1/instances/i1` - * - * Generated from protobuf field string full_resource_name = 3; - * @param string $var - * @return $this - */ - public function setFullResourceName($var) - { - GPBUtil::checkString($var, True); - $this->full_resource_name = $var; - - return $this; - } - - /** - * Specifies where the resource is created. For Google Cloud resources, it is - * the full name of the project. - * - * Generated from protobuf field string container = 4; - * @return string - */ - public function getContainer() - { - return $this->container; - } - - /** - * Specifies where the resource is created. For Google Cloud resources, it is - * the full name of the project. - * - * Generated from protobuf field string container = 4; - * @param string $var - * @return $this - */ - public function setContainer($var) - { - GPBUtil::checkString($var, True); - $this->container = $var; - - return $this; - } - - /** - * The product this resource represents. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Product product = 5; - * @return \Google\Cloud\DatabaseCenter\V1beta\Product|null - */ - public function getProduct() - { - return $this->product; - } - - public function hasProduct() - { - return isset($this->product); - } - - public function clearProduct() - { - unset($this->product); - } - - /** - * The product this resource represents. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Product product = 5; - * @param \Google\Cloud\DatabaseCenter\V1beta\Product $var - * @return $this - */ - public function setProduct($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\Product::class); - $this->product = $var; - - return $this; - } - - /** - * The location of the resources. It supports returning only regional - * locations in Google Cloud. These are of the form: "us-central1", - * "us-east1", etc. See https://cloud.google.com/about/locations for a list of - * such regions. - * - * Generated from protobuf field string location = 6; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * The location of the resources. It supports returning only regional - * locations in Google Cloud. These are of the form: "us-central1", - * "us-east1", etc. See https://cloud.google.com/about/locations for a list of - * such regions. - * - * Generated from protobuf field string location = 6; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * Labels applied on the resource. The requirements for labels assigned to - * Google Cloud resources may be found at - * https://cloud.google.com/resource-manager/docs/labels-overview#requirements - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Label labels = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Labels applied on the resource. The requirements for labels assigned to - * Google Cloud resources may be found at - * https://cloud.google.com/resource-manager/docs/labels-overview#requirements - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Label labels = 7; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\Label>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\Label::class); - $this->labels = $arr; - - return $this; - } - - /** - * Tags applied on the resource. The requirements for tags assigned to - * Google Cloud resources may be found at - * https://cloud.google.com/resource-manager/docs/tags/tags-overview - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Tag tags = 16; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Tags applied on the resource. The requirements for tags assigned to - * Google Cloud resources may be found at - * https://cloud.google.com/resource-manager/docs/tags/tags-overview - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Tag tags = 16; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\Tag>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\Tag::class); - $this->tags = $arr; - - return $this; - } - - /** - * The type of resource defined according to the pattern: - * {Service Name}/{Type}. Ex: - * sqladmin.googleapis.com/Instance - * alloydb.googleapis.com/Cluster - * alloydb.googleapis.com/Instance - * spanner.googleapis.com/Instance - * - * Generated from protobuf field string resource_type = 8; - * @return string - */ - public function getResourceType() - { - return $this->resource_type; - } - - /** - * The type of resource defined according to the pattern: - * {Service Name}/{Type}. Ex: - * sqladmin.googleapis.com/Instance - * alloydb.googleapis.com/Cluster - * alloydb.googleapis.com/Instance - * spanner.googleapis.com/Instance - * - * Generated from protobuf field string resource_type = 8; - * @param string $var - * @return $this - */ - public function setResourceType($var) - { - GPBUtil::checkString($var, True); - $this->resource_type = $var; - - return $this; - } - - /** - * Subtype of the resource specified at creation time. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResourceType sub_resource_type = 9; - * @return int - */ - public function getSubResourceType() - { - return $this->sub_resource_type; - } - - /** - * Subtype of the resource specified at creation time. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResourceType sub_resource_type = 9; - * @param int $var - * @return $this - */ - public function setSubResourceType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\SubResourceType::class); - $this->sub_resource_type = $var; - - return $this; - } - - /** - * Machine configuration like CPU, memory, etc for the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.MachineConfig machine_config = 12; - * @return \Google\Cloud\DatabaseCenter\V1beta\MachineConfig|null - */ - public function getMachineConfig() - { - return $this->machine_config; - } - - public function hasMachineConfig() - { - return isset($this->machine_config); - } - - public function clearMachineConfig() - { - unset($this->machine_config); - } - - /** - * Machine configuration like CPU, memory, etc for the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.MachineConfig machine_config = 12; - * @param \Google\Cloud\DatabaseCenter\V1beta\MachineConfig $var - * @return $this - */ - public function setMachineConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\MachineConfig::class); - $this->machine_config = $var; - - return $this; - } - - /** - * The list of signal groups and count of issues related to the resource. - * Only those signals which have been requested would be included. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalGroup signal_groups = 10; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSignalGroups() - { - return $this->signal_groups; - } - - /** - * The list of signal groups and count of issues related to the resource. - * Only those signals which have been requested would be included. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalGroup signal_groups = 10; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\SignalGroup>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSignalGroups($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\SignalGroup::class); - $this->signal_groups = $arr; - - return $this; - } - - /** - * Observable metrics for the resource e.g. CPU utilization, memory - * utilization, etc. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Metrics metrics = 13; - * @return \Google\Cloud\DatabaseCenter\V1beta\Metrics|null - */ - public function getMetrics() - { - return $this->metrics; - } - - public function hasMetrics() - { - return isset($this->metrics); - } - - public function clearMetrics() - { - unset($this->metrics); - } - - /** - * Observable metrics for the resource e.g. CPU utilization, memory - * utilization, etc. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Metrics metrics = 13; - * @param \Google\Cloud\DatabaseCenter\V1beta\Metrics $var - * @return $this - */ - public function setMetrics($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\Metrics::class); - $this->metrics = $var; - - return $this; - } - - /** - * The category of the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.ResourceCategory resource_category = 14; - * @return int - */ - public function getResourceCategory() - { - return $this->resource_category; - } - - /** - * The category of the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.ResourceCategory resource_category = 14; - * @param int $var - * @return $this - */ - public function setResourceCategory($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\ResourceCategory::class); - $this->resource_category = $var; - - return $this; - } - - /** - * The name of the resource(The last part of the full resource name). - * Example: - * For full resource name - - * `//cloudsql.googleapis.com/projects/project-number/instances/mysql-1`, - * resource name - `mysql-1` - * For full resource name - - * `//cloudsql.googleapis.com/projects/project-number/instances/postgres-1` , - * resource name - `postgres-1` - * Note: In some cases, there might be more than one resource with the same - * resource name. - * - * Generated from protobuf field string resource_name = 15; - * @return string - */ - public function getResourceName() - { - return $this->resource_name; - } - - /** - * The name of the resource(The last part of the full resource name). - * Example: - * For full resource name - - * `//cloudsql.googleapis.com/projects/project-number/instances/mysql-1`, - * resource name - `mysql-1` - * For full resource name - - * `//cloudsql.googleapis.com/projects/project-number/instances/postgres-1` , - * resource name - `postgres-1` - * Note: In some cases, there might be more than one resource with the same - * resource name. - * - * Generated from protobuf field string resource_name = 15; - * @param string $var - * @return $this - */ - public function setResourceName($var) - { - GPBUtil::checkString($var, True); - $this->resource_name = $var; - - return $this; - } - - /** - * Optional. Backup and disaster recovery details for the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.BackupDRConfig backupdr_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\DatabaseCenter\V1beta\BackupDRConfig|null - */ - public function getBackupdrConfig() - { - return $this->backupdr_config; - } - - public function hasBackupdrConfig() - { - return isset($this->backupdr_config); - } - - public function clearBackupdrConfig() - { - unset($this->backupdr_config); - } - - /** - * Optional. Backup and disaster recovery details for the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.BackupDRConfig backupdr_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\DatabaseCenter\V1beta\BackupDRConfig $var - * @return $this - */ - public function setBackupdrConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\BackupDRConfig::class); - $this->backupdr_config = $var; - - return $this; - } - - /** - * The edition of the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Edition edition = 18; - * @return int - */ - public function getEdition() - { - return $this->edition; - } - - /** - * The edition of the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Edition edition = 18; - * @param int $var - * @return $this - */ - public function setEdition($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\Edition::class); - $this->edition = $var; - - return $this; - } - - /** - * Optional. The maintenance information of the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.MaintenanceInfo maintenance_info = 19 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\DatabaseCenter\V1beta\MaintenanceInfo|null - */ - public function getMaintenanceInfo() - { - return $this->maintenance_info; - } - - public function hasMaintenanceInfo() - { - return isset($this->maintenance_info); - } - - public function clearMaintenanceInfo() - { - unset($this->maintenance_info); - } - - /** - * Optional. The maintenance information of the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.MaintenanceInfo maintenance_info = 19 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\DatabaseCenter\V1beta\MaintenanceInfo $var - * @return $this - */ - public function setMaintenanceInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\MaintenanceInfo::class); - $this->maintenance_info = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DatabaseResourceGroup.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DatabaseResourceGroup.php deleted file mode 100644 index 3f533cc1ec6..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DatabaseResourceGroup.php +++ /dev/null @@ -1,119 +0,0 @@ -google.cloud.databasecenter.v1beta.DatabaseResourceGroup - */ -class DatabaseResourceGroup extends \Google\Protobuf\Internal\Message -{ - /** - * A database resource that serves as a root of the group of database - * resources. It is repeated just in case we have the concept of multiple - * roots in the future, however, it will only be populated with a single value - * for now. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.DatabaseResource root_resources = 1; - */ - private $root_resources; - /** - * The filtered signal groups and the count of issues associated with the - * resources that have been filtered in. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.IssueCount signal_groups = 2; - */ - private $signal_groups; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DatabaseCenter\V1beta\DatabaseResource>|\Google\Protobuf\Internal\RepeatedField $root_resources - * A database resource that serves as a root of the group of database - * resources. It is repeated just in case we have the concept of multiple - * roots in the future, however, it will only be populated with a single value - * for now. - * @type array<\Google\Cloud\DatabaseCenter\V1beta\IssueCount>|\Google\Protobuf\Internal\RepeatedField $signal_groups - * The filtered signal groups and the count of issues associated with the - * resources that have been filtered in. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * A database resource that serves as a root of the group of database - * resources. It is repeated just in case we have the concept of multiple - * roots in the future, however, it will only be populated with a single value - * for now. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.DatabaseResource root_resources = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRootResources() - { - return $this->root_resources; - } - - /** - * A database resource that serves as a root of the group of database - * resources. It is repeated just in case we have the concept of multiple - * roots in the future, however, it will only be populated with a single value - * for now. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.DatabaseResource root_resources = 1; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\DatabaseResource>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRootResources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\DatabaseResource::class); - $this->root_resources = $arr; - - return $this; - } - - /** - * The filtered signal groups and the count of issues associated with the - * resources that have been filtered in. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.IssueCount signal_groups = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSignalGroups() - { - return $this->signal_groups; - } - - /** - * The filtered signal groups and the count of issues associated with the - * resources that have been filtered in. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.IssueCount signal_groups = 2; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\IssueCount>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSignalGroups($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\IssueCount::class); - $this->signal_groups = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DatabaseResourceIssue.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DatabaseResourceIssue.php deleted file mode 100644 index 7365b8c2875..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DatabaseResourceIssue.php +++ /dev/null @@ -1,121 +0,0 @@ -google.cloud.databasecenter.v1beta.DatabaseResourceIssue - */ -class DatabaseResourceIssue extends \Google\Protobuf\Internal\Message -{ - /** - * Signal associated with the issue. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Signal signal = 1; - */ - protected $signal = null; - /** - * Resource associated with the issue. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.DatabaseResource resource = 2; - */ - protected $resource = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DatabaseCenter\V1beta\Signal $signal - * Signal associated with the issue. - * @type \Google\Cloud\DatabaseCenter\V1beta\DatabaseResource $resource - * Resource associated with the issue. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Signal associated with the issue. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Signal signal = 1; - * @return \Google\Cloud\DatabaseCenter\V1beta\Signal|null - */ - public function getSignal() - { - return $this->signal; - } - - public function hasSignal() - { - return isset($this->signal); - } - - public function clearSignal() - { - unset($this->signal); - } - - /** - * Signal associated with the issue. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Signal signal = 1; - * @param \Google\Cloud\DatabaseCenter\V1beta\Signal $var - * @return $this - */ - public function setSignal($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\Signal::class); - $this->signal = $var; - - return $this; - } - - /** - * Resource associated with the issue. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.DatabaseResource resource = 2; - * @return \Google\Cloud\DatabaseCenter\V1beta\DatabaseResource|null - */ - public function getResource() - { - return $this->resource; - } - - public function hasResource() - { - return isset($this->resource); - } - - public function clearResource() - { - unset($this->resource); - } - - /** - * Resource associated with the issue. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.DatabaseResource resource = 2; - * @param \Google\Cloud\DatabaseCenter\V1beta\DatabaseResource $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\DatabaseResource::class); - $this->resource = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DeletionProtectionInfo.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DeletionProtectionInfo.php deleted file mode 100644 index 54a6fadf015..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DeletionProtectionInfo.php +++ /dev/null @@ -1,111 +0,0 @@ -google.cloud.databasecenter.v1beta.DeletionProtectionInfo - */ -class DeletionProtectionInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Sub resource details associated with the signal. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResource sub_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $sub_resource = null; - /** - * Is deletion protection enabled. - * - * Generated from protobuf field bool deletion_protection_enabled = 2; - */ - protected $deletion_protection_enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DatabaseCenter\V1beta\SubResource $sub_resource - * Optional. Sub resource details associated with the signal. - * @type bool $deletion_protection_enabled - * Is deletion protection enabled. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Sub resource details associated with the signal. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResource sub_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\DatabaseCenter\V1beta\SubResource|null - */ - public function getSubResource() - { - return $this->sub_resource; - } - - public function hasSubResource() - { - return isset($this->sub_resource); - } - - public function clearSubResource() - { - unset($this->sub_resource); - } - - /** - * Optional. Sub resource details associated with the signal. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResource sub_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\DatabaseCenter\V1beta\SubResource $var - * @return $this - */ - public function setSubResource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\SubResource::class); - $this->sub_resource = $var; - - return $this; - } - - /** - * Is deletion protection enabled. - * - * Generated from protobuf field bool deletion_protection_enabled = 2; - * @return bool - */ - public function getDeletionProtectionEnabled() - { - return $this->deletion_protection_enabled; - } - - /** - * Is deletion protection enabled. - * - * Generated from protobuf field bool deletion_protection_enabled = 2; - * @param bool $var - * @return $this - */ - public function setDeletionProtectionEnabled($var) - { - GPBUtil::checkBool($var); - $this->deletion_protection_enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DeltaDetails.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DeltaDetails.php deleted file mode 100644 index c7ccae93266..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DeltaDetails.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.databasecenter.v1beta.DeltaDetails - */ -class DeltaDetails extends \Google\Protobuf\Internal\Message -{ - /** - * Details of resources that have increased. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.ResourceDetails increased_resources = 1; - */ - private $increased_resources; - /** - * Details of resources that have decreased. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.ResourceDetails decreased_resources = 2; - */ - private $decreased_resources; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DatabaseCenter\V1beta\ResourceDetails>|\Google\Protobuf\Internal\RepeatedField $increased_resources - * Details of resources that have increased. - * @type array<\Google\Cloud\DatabaseCenter\V1beta\ResourceDetails>|\Google\Protobuf\Internal\RepeatedField $decreased_resources - * Details of resources that have decreased. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Details of resources that have increased. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.ResourceDetails increased_resources = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIncreasedResources() - { - return $this->increased_resources; - } - - /** - * Details of resources that have increased. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.ResourceDetails increased_resources = 1; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\ResourceDetails>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIncreasedResources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\ResourceDetails::class); - $this->increased_resources = $arr; - - return $this; - } - - /** - * Details of resources that have decreased. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.ResourceDetails decreased_resources = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDecreasedResources() - { - return $this->decreased_resources; - } - - /** - * Details of resources that have decreased. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.ResourceDetails decreased_resources = 2; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\ResourceDetails>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDecreasedResources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\ResourceDetails::class); - $this->decreased_resources = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Dimension.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Dimension.php deleted file mode 100644 index b371ca3bed7..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Dimension.php +++ /dev/null @@ -1,690 +0,0 @@ -google.cloud.databasecenter.v1beta.Dimension - */ -class Dimension extends \Google\Protobuf\Internal\Message -{ - protected $dimension; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $container - * Specifies where the resource is created. For Google Cloud resources, it - * is the full name of the project. - * @type int $product_type - * Type to identify a product - * @type int $product_engine - * Engine refers to underlying database binary running in an instance. - * @type string $product_version - * Version of the underlying database engine - * @type string $location - * The location of the resources. It supports returning only regional - * locations in Google Cloud. - * @type string $resource_type - * The type of resource defined according to the pattern: - * {Service Name}/{Type}. Ex: - * sqladmin.googleapis.com/Instance - * alloydb.googleapis.com/Cluster - * alloydb.googleapis.com/Instance - * spanner.googleapis.com/Instance - * @type int $sub_resource_type - * Subtype of the resource specified at creation time. - * @type int $resource_category - * The category of the resource. - * @type int $management_type - * The management type of the resource. - * @type int $edition - * The edition of the resource. - * @type string $tag_key - * Tag key of the resource. - * @type string $tag_value - * Tag value of the resource. - * @type string $tag_source - * Tag source of the resource. - * @type bool $tag_inherited - * Tag inheritance value of the resource. - * @type string $label_key - * Label key of the resource. - * @type string $label_value - * Label value of the resource. - * @type string $label_source - * Label source of the resource. - * @type bool $has_maintenance_schedule - * Whether the resource has a maintenance schedule. - * @type bool $has_deny_maintenance_schedules - * Whether the resource has deny maintenance schedules. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Specifies where the resource is created. For Google Cloud resources, it - * is the full name of the project. - * - * Generated from protobuf field string container = 2; - * @return string - */ - public function getContainer() - { - return $this->readOneof(2); - } - - public function hasContainer() - { - return $this->hasOneof(2); - } - - /** - * Specifies where the resource is created. For Google Cloud resources, it - * is the full name of the project. - * - * Generated from protobuf field string container = 2; - * @param string $var - * @return $this - */ - public function setContainer($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Type to identify a product - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.ProductType product_type = 3; - * @return int - */ - public function getProductType() - { - return $this->readOneof(3); - } - - public function hasProductType() - { - return $this->hasOneof(3); - } - - /** - * Type to identify a product - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.ProductType product_type = 3; - * @param int $var - * @return $this - */ - public function setProductType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\ProductType::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Engine refers to underlying database binary running in an instance. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Engine product_engine = 4; - * @return int - */ - public function getProductEngine() - { - return $this->readOneof(4); - } - - public function hasProductEngine() - { - return $this->hasOneof(4); - } - - /** - * Engine refers to underlying database binary running in an instance. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Engine product_engine = 4; - * @param int $var - * @return $this - */ - public function setProductEngine($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\Engine::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Version of the underlying database engine - * - * Generated from protobuf field string product_version = 5; - * @return string - */ - public function getProductVersion() - { - return $this->readOneof(5); - } - - public function hasProductVersion() - { - return $this->hasOneof(5); - } - - /** - * Version of the underlying database engine - * - * Generated from protobuf field string product_version = 5; - * @param string $var - * @return $this - */ - public function setProductVersion($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * The location of the resources. It supports returning only regional - * locations in Google Cloud. - * - * Generated from protobuf field string location = 6; - * @return string - */ - public function getLocation() - { - return $this->readOneof(6); - } - - public function hasLocation() - { - return $this->hasOneof(6); - } - - /** - * The location of the resources. It supports returning only regional - * locations in Google Cloud. - * - * Generated from protobuf field string location = 6; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * The type of resource defined according to the pattern: - * {Service Name}/{Type}. Ex: - * sqladmin.googleapis.com/Instance - * alloydb.googleapis.com/Cluster - * alloydb.googleapis.com/Instance - * spanner.googleapis.com/Instance - * - * Generated from protobuf field string resource_type = 7; - * @return string - */ - public function getResourceType() - { - return $this->readOneof(7); - } - - public function hasResourceType() - { - return $this->hasOneof(7); - } - - /** - * The type of resource defined according to the pattern: - * {Service Name}/{Type}. Ex: - * sqladmin.googleapis.com/Instance - * alloydb.googleapis.com/Cluster - * alloydb.googleapis.com/Instance - * spanner.googleapis.com/Instance - * - * Generated from protobuf field string resource_type = 7; - * @param string $var - * @return $this - */ - public function setResourceType($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Subtype of the resource specified at creation time. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResourceType sub_resource_type = 8; - * @return int - */ - public function getSubResourceType() - { - return $this->readOneof(8); - } - - public function hasSubResourceType() - { - return $this->hasOneof(8); - } - - /** - * Subtype of the resource specified at creation time. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResourceType sub_resource_type = 8; - * @param int $var - * @return $this - */ - public function setSubResourceType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\SubResourceType::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * The category of the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.ResourceCategory resource_category = 9; - * @return int - */ - public function getResourceCategory() - { - return $this->readOneof(9); - } - - public function hasResourceCategory() - { - return $this->hasOneof(9); - } - - /** - * The category of the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.ResourceCategory resource_category = 9; - * @param int $var - * @return $this - */ - public function setResourceCategory($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\ResourceCategory::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * The management type of the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.ManagementType management_type = 10; - * @return int - */ - public function getManagementType() - { - return $this->readOneof(10); - } - - public function hasManagementType() - { - return $this->hasOneof(10); - } - - /** - * The management type of the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.ManagementType management_type = 10; - * @param int $var - * @return $this - */ - public function setManagementType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\ManagementType::class); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * The edition of the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Edition edition = 11; - * @return int - */ - public function getEdition() - { - return $this->readOneof(11); - } - - public function hasEdition() - { - return $this->hasOneof(11); - } - - /** - * The edition of the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Edition edition = 11; - * @param int $var - * @return $this - */ - public function setEdition($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\Edition::class); - $this->writeOneof(11, $var); - - return $this; - } - - /** - * Tag key of the resource. - * - * Generated from protobuf field string tag_key = 12; - * @return string - */ - public function getTagKey() - { - return $this->readOneof(12); - } - - public function hasTagKey() - { - return $this->hasOneof(12); - } - - /** - * Tag key of the resource. - * - * Generated from protobuf field string tag_key = 12; - * @param string $var - * @return $this - */ - public function setTagKey($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(12, $var); - - return $this; - } - - /** - * Tag value of the resource. - * - * Generated from protobuf field string tag_value = 13; - * @return string - */ - public function getTagValue() - { - return $this->readOneof(13); - } - - public function hasTagValue() - { - return $this->hasOneof(13); - } - - /** - * Tag value of the resource. - * - * Generated from protobuf field string tag_value = 13; - * @param string $var - * @return $this - */ - public function setTagValue($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * Tag source of the resource. - * - * Generated from protobuf field string tag_source = 14; - * @return string - */ - public function getTagSource() - { - return $this->readOneof(14); - } - - public function hasTagSource() - { - return $this->hasOneof(14); - } - - /** - * Tag source of the resource. - * - * Generated from protobuf field string tag_source = 14; - * @param string $var - * @return $this - */ - public function setTagSource($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(14, $var); - - return $this; - } - - /** - * Tag inheritance value of the resource. - * - * Generated from protobuf field bool tag_inherited = 15; - * @return bool - */ - public function getTagInherited() - { - return $this->readOneof(15); - } - - public function hasTagInherited() - { - return $this->hasOneof(15); - } - - /** - * Tag inheritance value of the resource. - * - * Generated from protobuf field bool tag_inherited = 15; - * @param bool $var - * @return $this - */ - public function setTagInherited($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(15, $var); - - return $this; - } - - /** - * Label key of the resource. - * - * Generated from protobuf field string label_key = 16; - * @return string - */ - public function getLabelKey() - { - return $this->readOneof(16); - } - - public function hasLabelKey() - { - return $this->hasOneof(16); - } - - /** - * Label key of the resource. - * - * Generated from protobuf field string label_key = 16; - * @param string $var - * @return $this - */ - public function setLabelKey($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(16, $var); - - return $this; - } - - /** - * Label value of the resource. - * - * Generated from protobuf field string label_value = 17; - * @return string - */ - public function getLabelValue() - { - return $this->readOneof(17); - } - - public function hasLabelValue() - { - return $this->hasOneof(17); - } - - /** - * Label value of the resource. - * - * Generated from protobuf field string label_value = 17; - * @param string $var - * @return $this - */ - public function setLabelValue($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(17, $var); - - return $this; - } - - /** - * Label source of the resource. - * - * Generated from protobuf field string label_source = 18; - * @return string - */ - public function getLabelSource() - { - return $this->readOneof(18); - } - - public function hasLabelSource() - { - return $this->hasOneof(18); - } - - /** - * Label source of the resource. - * - * Generated from protobuf field string label_source = 18; - * @param string $var - * @return $this - */ - public function setLabelSource($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(18, $var); - - return $this; - } - - /** - * Whether the resource has a maintenance schedule. - * - * Generated from protobuf field bool has_maintenance_schedule = 19; - * @return bool - */ - public function getHasMaintenanceSchedule() - { - return $this->readOneof(19); - } - - public function hasHasMaintenanceSchedule() - { - return $this->hasOneof(19); - } - - /** - * Whether the resource has a maintenance schedule. - * - * Generated from protobuf field bool has_maintenance_schedule = 19; - * @param bool $var - * @return $this - */ - public function setHasMaintenanceSchedule($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(19, $var); - - return $this; - } - - /** - * Whether the resource has deny maintenance schedules. - * - * Generated from protobuf field bool has_deny_maintenance_schedules = 20; - * @return bool - */ - public function getHasDenyMaintenanceSchedules() - { - return $this->readOneof(20); - } - - public function hasHasDenyMaintenanceSchedules() - { - return $this->hasOneof(20); - } - - /** - * Whether the resource has deny maintenance schedules. - * - * Generated from protobuf field bool has_deny_maintenance_schedules = 20; - * @param bool $var - * @return $this - */ - public function setHasDenyMaintenanceSchedules($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(20, $var); - - return $this; - } - - /** - * @return string - */ - public function getDimension() - { - return $this->whichOneof("dimension"); - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Edition.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Edition.php deleted file mode 100644 index a8a2d06414d..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Edition.php +++ /dev/null @@ -1,69 +0,0 @@ -google.cloud.databasecenter.v1beta.Edition - */ -class Edition -{ - /** - * Default, to make it consistent with instance edition enum. - * - * Generated from protobuf enum EDITION_UNSPECIFIED = 0; - */ - const EDITION_UNSPECIFIED = 0; - /** - * Represents the enterprise edition. - * - * Generated from protobuf enum EDITION_ENTERPRISE = 1; - */ - const EDITION_ENTERPRISE = 1; - /** - * Represents the enterprise plus edition. - * - * Generated from protobuf enum EDITION_ENTERPRISE_PLUS = 2; - */ - const EDITION_ENTERPRISE_PLUS = 2; - /** - * Represents the standard edition. - * - * Generated from protobuf enum EDITION_STANDARD = 3; - */ - const EDITION_STANDARD = 3; - - private static $valueToName = [ - self::EDITION_UNSPECIFIED => 'EDITION_UNSPECIFIED', - self::EDITION_ENTERPRISE => 'EDITION_ENTERPRISE', - self::EDITION_ENTERPRISE_PLUS => 'EDITION_ENTERPRISE_PLUS', - self::EDITION_STANDARD => 'EDITION_STANDARD', - ]; - - 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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Engine.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Engine.php deleted file mode 100644 index 020fd6a1eee..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Engine.php +++ /dev/null @@ -1,132 +0,0 @@ -google.cloud.databasecenter.v1beta.Engine - */ -class Engine -{ - /** - * UNSPECIFIED means engine type is not known or available. - * - * Generated from protobuf enum ENGINE_UNSPECIFIED = 0; - */ - const ENGINE_UNSPECIFIED = 0; - /** - * MySQL binary running as an engine in the database instance. - * - * Generated from protobuf enum ENGINE_MYSQL = 1; - */ - const ENGINE_MYSQL = 1; - /** - * Postgres binary running as engine in database instance. - * - * Generated from protobuf enum ENGINE_POSTGRES = 2; - */ - const ENGINE_POSTGRES = 2; - /** - * SQLServer binary running as engine in database instance. - * - * Generated from protobuf enum ENGINE_SQL_SERVER = 3; - */ - const ENGINE_SQL_SERVER = 3; - /** - * Native database binary running as engine in instance. - * - * Generated from protobuf enum ENGINE_NATIVE = 4; - */ - const ENGINE_NATIVE = 4; - /** - * Memorystore with Redis dialect. - * - * Generated from protobuf enum ENGINE_MEMORYSTORE_FOR_REDIS = 8; - */ - const ENGINE_MEMORYSTORE_FOR_REDIS = 8; - /** - * Memorystore with Redis cluster dialect. - * - * Generated from protobuf enum ENGINE_MEMORYSTORE_FOR_REDIS_CLUSTER = 9; - */ - const ENGINE_MEMORYSTORE_FOR_REDIS_CLUSTER = 9; - /** - * Firestore with native mode. - * - * Generated from protobuf enum ENGINE_FIRESTORE_WITH_NATIVE_MODE = 10; - */ - const ENGINE_FIRESTORE_WITH_NATIVE_MODE = 10; - /** - * Firestore with datastore mode. - * - * Generated from protobuf enum ENGINE_FIRESTORE_WITH_DATASTORE_MODE = 11; - */ - const ENGINE_FIRESTORE_WITH_DATASTORE_MODE = 11; - /** - * Oracle Exadata engine. - * - * Generated from protobuf enum ENGINE_EXADATA_ORACLE = 12; - */ - const ENGINE_EXADATA_ORACLE = 12; - /** - * Oracle Autonomous DB Serverless engine. - * - * Generated from protobuf enum ENGINE_ADB_SERVERLESS_ORACLE = 13; - */ - const ENGINE_ADB_SERVERLESS_ORACLE = 13; - /** - * Firestore with MongoDB compatibility. - * - * Generated from protobuf enum ENGINE_FIRESTORE_WITH_MONGODB_COMPATIBILITY_MODE = 14; - */ - const ENGINE_FIRESTORE_WITH_MONGODB_COMPATIBILITY_MODE = 14; - /** - * Other refers to rest of other database engine. This is to be when engine is - * known, but it is not present in this enum. - * - * Generated from protobuf enum ENGINE_OTHER = 6; - */ - const ENGINE_OTHER = 6; - - private static $valueToName = [ - self::ENGINE_UNSPECIFIED => 'ENGINE_UNSPECIFIED', - self::ENGINE_MYSQL => 'ENGINE_MYSQL', - self::ENGINE_POSTGRES => 'ENGINE_POSTGRES', - self::ENGINE_SQL_SERVER => 'ENGINE_SQL_SERVER', - self::ENGINE_NATIVE => 'ENGINE_NATIVE', - self::ENGINE_MEMORYSTORE_FOR_REDIS => 'ENGINE_MEMORYSTORE_FOR_REDIS', - self::ENGINE_MEMORYSTORE_FOR_REDIS_CLUSTER => 'ENGINE_MEMORYSTORE_FOR_REDIS_CLUSTER', - self::ENGINE_FIRESTORE_WITH_NATIVE_MODE => 'ENGINE_FIRESTORE_WITH_NATIVE_MODE', - self::ENGINE_FIRESTORE_WITH_DATASTORE_MODE => 'ENGINE_FIRESTORE_WITH_DATASTORE_MODE', - self::ENGINE_EXADATA_ORACLE => 'ENGINE_EXADATA_ORACLE', - self::ENGINE_ADB_SERVERLESS_ORACLE => 'ENGINE_ADB_SERVERLESS_ORACLE', - self::ENGINE_FIRESTORE_WITH_MONGODB_COMPATIBILITY_MODE => 'ENGINE_FIRESTORE_WITH_MONGODB_COMPATIBILITY_MODE', - self::ENGINE_OTHER => 'ENGINE_OTHER', - ]; - - 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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/InefficientQueryInfo.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/InefficientQueryInfo.php deleted file mode 100644 index 41136eaf141..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/InefficientQueryInfo.php +++ /dev/null @@ -1,211 +0,0 @@ -google.cloud.databasecenter.v1beta.InefficientQueryInfo - */ -class InefficientQueryInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the database where index is required. For example, "db1", which is - * the name of the database present in the instance. - * - * Generated from protobuf field string database = 1; - */ - protected $database = ''; - /** - * Name of the table where index is required - * - * Generated from protobuf field string table = 2; - */ - protected $table = ''; - /** - * SQL statement of the index. Based on the ddl type, this will be either - * CREATE INDEX or DROP INDEX. - * - * Generated from protobuf field string sql_index_statement = 3; - */ - protected $sql_index_statement = ''; - /** - * Cost of additional disk usage in bytes - * - * Generated from protobuf field int64 storage_cost_bytes = 4; - */ - protected $storage_cost_bytes = 0; - /** - * Count of queries to be impacted if index is applied - * - * Generated from protobuf field int64 impacted_queries_count = 5; - */ - protected $impacted_queries_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $database - * Name of the database where index is required. For example, "db1", which is - * the name of the database present in the instance. - * @type string $table - * Name of the table where index is required - * @type string $sql_index_statement - * SQL statement of the index. Based on the ddl type, this will be either - * CREATE INDEX or DROP INDEX. - * @type int|string $storage_cost_bytes - * Cost of additional disk usage in bytes - * @type int|string $impacted_queries_count - * Count of queries to be impacted if index is applied - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); - parent::__construct($data); - } - - /** - * Name of the database where index is required. For example, "db1", which is - * the name of the database present in the instance. - * - * Generated from protobuf field string database = 1; - * @return string - */ - public function getDatabase() - { - return $this->database; - } - - /** - * Name of the database where index is required. For example, "db1", which is - * the name of the database present in the instance. - * - * Generated from protobuf field string database = 1; - * @param string $var - * @return $this - */ - public function setDatabase($var) - { - GPBUtil::checkString($var, True); - $this->database = $var; - - return $this; - } - - /** - * Name of the table where index is required - * - * Generated from protobuf field string table = 2; - * @return string - */ - public function getTable() - { - return $this->table; - } - - /** - * Name of the table where index is required - * - * Generated from protobuf field string table = 2; - * @param string $var - * @return $this - */ - public function setTable($var) - { - GPBUtil::checkString($var, True); - $this->table = $var; - - return $this; - } - - /** - * SQL statement of the index. Based on the ddl type, this will be either - * CREATE INDEX or DROP INDEX. - * - * Generated from protobuf field string sql_index_statement = 3; - * @return string - */ - public function getSqlIndexStatement() - { - return $this->sql_index_statement; - } - - /** - * SQL statement of the index. Based on the ddl type, this will be either - * CREATE INDEX or DROP INDEX. - * - * Generated from protobuf field string sql_index_statement = 3; - * @param string $var - * @return $this - */ - public function setSqlIndexStatement($var) - { - GPBUtil::checkString($var, True); - $this->sql_index_statement = $var; - - return $this; - } - - /** - * Cost of additional disk usage in bytes - * - * Generated from protobuf field int64 storage_cost_bytes = 4; - * @return int|string - */ - public function getStorageCostBytes() - { - return $this->storage_cost_bytes; - } - - /** - * Cost of additional disk usage in bytes - * - * Generated from protobuf field int64 storage_cost_bytes = 4; - * @param int|string $var - * @return $this - */ - public function setStorageCostBytes($var) - { - GPBUtil::checkInt64($var); - $this->storage_cost_bytes = $var; - - return $this; - } - - /** - * Count of queries to be impacted if index is applied - * - * Generated from protobuf field int64 impacted_queries_count = 5; - * @return int|string - */ - public function getImpactedQueriesCount() - { - return $this->impacted_queries_count; - } - - /** - * Count of queries to be impacted if index is applied - * - * Generated from protobuf field int64 impacted_queries_count = 5; - * @param int|string $var - * @return $this - */ - public function setImpactedQueriesCount($var) - { - GPBUtil::checkInt64($var); - $this->impacted_queries_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueCount.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueCount.php deleted file mode 100644 index 429c6721b8d..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueCount.php +++ /dev/null @@ -1,113 +0,0 @@ -google.cloud.databasecenter.v1beta.IssueCount - */ -class IssueCount extends \Google\Protobuf\Internal\Message -{ - /** - * Title of a signal group corresponding to the request. - * - * Generated from protobuf field string display_name = 1; - */ - protected $display_name = ''; - /** - * The count of the number of issues associated with those resources that - * are explicitly filtered in by the filters present in the request. - * A signal is an issue when its SignalStatus field is set to - * SIGNAL_STATUS_ISSUE. - * - * Generated from protobuf field int32 issue_count = 2; - */ - protected $issue_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Title of a signal group corresponding to the request. - * @type int $issue_count - * The count of the number of issues associated with those resources that - * are explicitly filtered in by the filters present in the request. - * A signal is an issue when its SignalStatus field is set to - * SIGNAL_STATUS_ISSUE. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); - parent::__construct($data); - } - - /** - * Title of a signal group corresponding to the request. - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Title of a signal group corresponding to the request. - * - * 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; - } - - /** - * The count of the number of issues associated with those resources that - * are explicitly filtered in by the filters present in the request. - * A signal is an issue when its SignalStatus field is set to - * SIGNAL_STATUS_ISSUE. - * - * Generated from protobuf field int32 issue_count = 2; - * @return int - */ - public function getIssueCount() - { - return $this->issue_count; - } - - /** - * The count of the number of issues associated with those resources that - * are explicitly filtered in by the filters present in the request. - * A signal is an issue when its SignalStatus field is set to - * SIGNAL_STATUS_ISSUE. - * - * Generated from protobuf field int32 issue_count = 2; - * @param int $var - * @return $this - */ - public function setIssueCount($var) - { - GPBUtil::checkInt32($var); - $this->issue_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueGroupStats.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueGroupStats.php deleted file mode 100644 index dbb8e42a5a7..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueGroupStats.php +++ /dev/null @@ -1,270 +0,0 @@ -google.cloud.databasecenter.v1beta.IssueGroupStats - */ -class IssueGroupStats extends \Google\Protobuf\Internal\Message -{ - /** - * Database resource level health card name. This will corresponds to one of - * the requested input group names. - * - * Generated from protobuf field string display_name = 1; - */ - protected $display_name = ''; - /** - * Total count of the groups of resources returned by the filter that - * also have one or more resources for which any of the specified issues - * are applicable. - * - * Generated from protobuf field int32 resource_groups_count = 2; - */ - protected $resource_groups_count = 0; - /** - * Total count of resources returned by the filter for which any of the - * specified issues are applicable. - * - * Generated from protobuf field int32 resources_count = 3; - */ - protected $resources_count = 0; - /** - * The number of resource groups from the total groups as defined above - * that are healthy with respect to all of the specified issues. - * - * Generated from protobuf field int32 healthy_resource_groups_count = 4; - */ - protected $healthy_resource_groups_count = 0; - /** - * The number of resources from the total defined above in field - * total_resources_count that are healthy with respect to all of the specified - * issues. - * - * Generated from protobuf field int32 healthy_resources_count = 5; - */ - protected $healthy_resources_count = 0; - /** - * List of issues stats containing count of resources having particular issue - * category. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.IssueStats issue_stats = 6; - */ - private $issue_stats; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Database resource level health card name. This will corresponds to one of - * the requested input group names. - * @type int $resource_groups_count - * Total count of the groups of resources returned by the filter that - * also have one or more resources for which any of the specified issues - * are applicable. - * @type int $resources_count - * Total count of resources returned by the filter for which any of the - * specified issues are applicable. - * @type int $healthy_resource_groups_count - * The number of resource groups from the total groups as defined above - * that are healthy with respect to all of the specified issues. - * @type int $healthy_resources_count - * The number of resources from the total defined above in field - * total_resources_count that are healthy with respect to all of the specified - * issues. - * @type array<\Google\Cloud\DatabaseCenter\V1beta\IssueStats>|\Google\Protobuf\Internal\RepeatedField $issue_stats - * List of issues stats containing count of resources having particular issue - * category. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Database resource level health card name. This will corresponds to one of - * the requested input group names. - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Database resource level health card name. This will corresponds to one of - * the requested input group names. - * - * 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; - } - - /** - * Total count of the groups of resources returned by the filter that - * also have one or more resources for which any of the specified issues - * are applicable. - * - * Generated from protobuf field int32 resource_groups_count = 2; - * @return int - */ - public function getResourceGroupsCount() - { - return $this->resource_groups_count; - } - - /** - * Total count of the groups of resources returned by the filter that - * also have one or more resources for which any of the specified issues - * are applicable. - * - * Generated from protobuf field int32 resource_groups_count = 2; - * @param int $var - * @return $this - */ - public function setResourceGroupsCount($var) - { - GPBUtil::checkInt32($var); - $this->resource_groups_count = $var; - - return $this; - } - - /** - * Total count of resources returned by the filter for which any of the - * specified issues are applicable. - * - * Generated from protobuf field int32 resources_count = 3; - * @return int - */ - public function getResourcesCount() - { - return $this->resources_count; - } - - /** - * Total count of resources returned by the filter for which any of the - * specified issues are applicable. - * - * Generated from protobuf field int32 resources_count = 3; - * @param int $var - * @return $this - */ - public function setResourcesCount($var) - { - GPBUtil::checkInt32($var); - $this->resources_count = $var; - - return $this; - } - - /** - * The number of resource groups from the total groups as defined above - * that are healthy with respect to all of the specified issues. - * - * Generated from protobuf field int32 healthy_resource_groups_count = 4; - * @return int - */ - public function getHealthyResourceGroupsCount() - { - return $this->healthy_resource_groups_count; - } - - /** - * The number of resource groups from the total groups as defined above - * that are healthy with respect to all of the specified issues. - * - * Generated from protobuf field int32 healthy_resource_groups_count = 4; - * @param int $var - * @return $this - */ - public function setHealthyResourceGroupsCount($var) - { - GPBUtil::checkInt32($var); - $this->healthy_resource_groups_count = $var; - - return $this; - } - - /** - * The number of resources from the total defined above in field - * total_resources_count that are healthy with respect to all of the specified - * issues. - * - * Generated from protobuf field int32 healthy_resources_count = 5; - * @return int - */ - public function getHealthyResourcesCount() - { - return $this->healthy_resources_count; - } - - /** - * The number of resources from the total defined above in field - * total_resources_count that are healthy with respect to all of the specified - * issues. - * - * Generated from protobuf field int32 healthy_resources_count = 5; - * @param int $var - * @return $this - */ - public function setHealthyResourcesCount($var) - { - GPBUtil::checkInt32($var); - $this->healthy_resources_count = $var; - - return $this; - } - - /** - * List of issues stats containing count of resources having particular issue - * category. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.IssueStats issue_stats = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIssueStats() - { - return $this->issue_stats; - } - - /** - * List of issues stats containing count of resources having particular issue - * category. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.IssueStats issue_stats = 6; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\IssueStats>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIssueStats($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\IssueStats::class); - $this->issue_stats = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueSeverity.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueSeverity.php deleted file mode 100644 index f2e3e1f78a5..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueSeverity.php +++ /dev/null @@ -1,82 +0,0 @@ -google.cloud.databasecenter.v1beta.IssueSeverity - */ -class IssueSeverity -{ - /** - * Unspecified. - * - * Generated from protobuf enum ISSUE_SEVERITY_UNSPECIFIED = 0; - */ - const ISSUE_SEVERITY_UNSPECIFIED = 0; - /** - * Low severity. - * - * Generated from protobuf enum ISSUE_SEVERITY_LOW = 1; - */ - const ISSUE_SEVERITY_LOW = 1; - /** - * Medium severity. - * - * Generated from protobuf enum ISSUE_SEVERITY_MEDIUM = 2; - */ - const ISSUE_SEVERITY_MEDIUM = 2; - /** - * High severity. - * - * Generated from protobuf enum ISSUE_SEVERITY_HIGH = 3; - */ - const ISSUE_SEVERITY_HIGH = 3; - /** - * Critical severity. - * - * Generated from protobuf enum ISSUE_SEVERITY_CRITICAL = 4; - */ - const ISSUE_SEVERITY_CRITICAL = 4; - /** - * Irrelevant severity. This means the issue should not be surfaced at all. - * - * Generated from protobuf enum ISSUE_SEVERITY_IRRELEVANT = 5; - */ - const ISSUE_SEVERITY_IRRELEVANT = 5; - - private static $valueToName = [ - self::ISSUE_SEVERITY_UNSPECIFIED => 'ISSUE_SEVERITY_UNSPECIFIED', - self::ISSUE_SEVERITY_LOW => 'ISSUE_SEVERITY_LOW', - self::ISSUE_SEVERITY_MEDIUM => 'ISSUE_SEVERITY_MEDIUM', - self::ISSUE_SEVERITY_HIGH => 'ISSUE_SEVERITY_HIGH', - self::ISSUE_SEVERITY_CRITICAL => 'ISSUE_SEVERITY_CRITICAL', - self::ISSUE_SEVERITY_IRRELEVANT => 'ISSUE_SEVERITY_IRRELEVANT', - ]; - - 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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueStats.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueStats.php deleted file mode 100644 index 8e05000105c..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueStats.php +++ /dev/null @@ -1,193 +0,0 @@ -google.cloud.databasecenter.v1beta.IssueStats - */ -class IssueStats extends \Google\Protobuf\Internal\Message -{ - /** - * Type of signal which is an issue. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 1; - */ - protected $signal_type = 0; - /** - * Number of resources having issues of a given type. - * - * Generated from protobuf field int32 resource_count = 2; - */ - protected $resource_count = 0; - /** - * Optional. Delta counts and details of resources for which issue was raised - * or fixed. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $delta_details = null; - /** - * Severity of the issue. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.IssueSeverity issue_severity = 4; - */ - protected $issue_severity = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $signal_type - * Type of signal which is an issue. - * @type int $resource_count - * Number of resources having issues of a given type. - * @type \Google\Cloud\DatabaseCenter\V1beta\DeltaDetails $delta_details - * Optional. Delta counts and details of resources for which issue was raised - * or fixed. - * @type int $issue_severity - * Severity of the issue. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Type of signal which is an issue. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 1; - * @return int - */ - public function getSignalType() - { - return $this->signal_type; - } - - /** - * Type of signal which is an issue. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 1; - * @param int $var - * @return $this - */ - public function setSignalType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\SignalType::class); - $this->signal_type = $var; - - return $this; - } - - /** - * Number of resources having issues of a given type. - * - * Generated from protobuf field int32 resource_count = 2; - * @return int - */ - public function getResourceCount() - { - return $this->resource_count; - } - - /** - * Number of resources having issues of a given type. - * - * Generated from protobuf field int32 resource_count = 2; - * @param int $var - * @return $this - */ - public function setResourceCount($var) - { - GPBUtil::checkInt32($var); - $this->resource_count = $var; - - return $this; - } - - /** - * Optional. Delta counts and details of resources for which issue was raised - * or fixed. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\DatabaseCenter\V1beta\DeltaDetails|null - */ - public function getDeltaDetails() - { - return $this->delta_details; - } - - public function hasDeltaDetails() - { - return isset($this->delta_details); - } - - public function clearDeltaDetails() - { - unset($this->delta_details); - } - - /** - * Optional. Delta counts and details of resources for which issue was raised - * or fixed. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\DatabaseCenter\V1beta\DeltaDetails $var - * @return $this - */ - public function setDeltaDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\DeltaDetails::class); - $this->delta_details = $var; - - return $this; - } - - /** - * Severity of the issue. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.IssueSeverity issue_severity = 4; - * @return int - */ - public function getIssueSeverity() - { - return isset($this->issue_severity) ? $this->issue_severity : 0; - } - - public function hasIssueSeverity() - { - return isset($this->issue_severity); - } - - public function clearIssueSeverity() - { - unset($this->issue_severity); - } - - /** - * Severity of the issue. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.IssueSeverity issue_severity = 4; - * @param int $var - * @return $this - */ - public function setIssueSeverity($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\IssueSeverity::class); - $this->issue_severity = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Label.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Label.php deleted file mode 100644 index 12c6dd186de..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Label.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.databasecenter.v1beta.Label - */ -class Label extends \Google\Protobuf\Internal\Message -{ - /** - * The key part of the label. - * - * Generated from protobuf field string key = 1; - */ - protected $key = ''; - /** - * The value part of the label. - * - * Generated from protobuf field string value = 2; - */ - protected $value = ''; - /** - * The source of the Label. Source is empty if the label is directly attached - * to the resource and not inherited. - * - * Generated from protobuf field string source = 3; - */ - protected $source = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key - * The key part of the label. - * @type string $value - * The value part of the label. - * @type string $source - * The source of the Label. Source is empty if the label is directly attached - * to the resource and not inherited. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * The key part of the label. - * - * Generated from protobuf field string key = 1; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * The key part of the label. - * - * 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 part of the label. - * - * Generated from protobuf field string value = 2; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The value part of the label. - * - * 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; - } - - /** - * The source of the Label. Source is empty if the label is directly attached - * to the resource and not inherited. - * - * Generated from protobuf field string source = 3; - * @return string - */ - public function getSource() - { - return $this->source; - } - - /** - * The source of the Label. Source is empty if the label is directly attached - * to the resource and not inherited. - * - * Generated from protobuf field string source = 3; - * @param string $var - * @return $this - */ - public function setSource($var) - { - GPBUtil::checkString($var, True); - $this->source = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MachineConfig.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MachineConfig.php deleted file mode 100644 index 7652e07e4c2..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MachineConfig.php +++ /dev/null @@ -1,156 +0,0 @@ -google.cloud.databasecenter.v1beta.MachineConfig - */ -class MachineConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Memory size in bytes. - * - * Generated from protobuf field int64 memory_size_bytes = 2; - */ - protected $memory_size_bytes = 0; - /** - * Optional. The number of Shards (if applicable). - * - * Generated from protobuf field optional int32 shard_count = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $shard_count = null; - /** - * Optional. The number of vCPUs (if applicable). - * - * Generated from protobuf field optional double vcpu_count = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $vcpu_count = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $memory_size_bytes - * Memory size in bytes. - * @type int $shard_count - * Optional. The number of Shards (if applicable). - * @type float $vcpu_count - * Optional. The number of vCPUs (if applicable). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\MachineConfig::initOnce(); - parent::__construct($data); - } - - /** - * Memory size in bytes. - * - * Generated from protobuf field int64 memory_size_bytes = 2; - * @return int|string - */ - public function getMemorySizeBytes() - { - return $this->memory_size_bytes; - } - - /** - * Memory size in bytes. - * - * Generated from protobuf field int64 memory_size_bytes = 2; - * @param int|string $var - * @return $this - */ - public function setMemorySizeBytes($var) - { - GPBUtil::checkInt64($var); - $this->memory_size_bytes = $var; - - return $this; - } - - /** - * Optional. The number of Shards (if applicable). - * - * Generated from protobuf field optional int32 shard_count = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getShardCount() - { - return isset($this->shard_count) ? $this->shard_count : 0; - } - - public function hasShardCount() - { - return isset($this->shard_count); - } - - public function clearShardCount() - { - unset($this->shard_count); - } - - /** - * Optional. The number of Shards (if applicable). - * - * Generated from protobuf field optional int32 shard_count = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setShardCount($var) - { - GPBUtil::checkInt32($var); - $this->shard_count = $var; - - return $this; - } - - /** - * Optional. The number of vCPUs (if applicable). - * - * Generated from protobuf field optional double vcpu_count = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return float - */ - public function getVcpuCount() - { - return isset($this->vcpu_count) ? $this->vcpu_count : 0.0; - } - - public function hasVcpuCount() - { - return isset($this->vcpu_count); - } - - public function clearVcpuCount() - { - unset($this->vcpu_count); - } - - /** - * Optional. The number of vCPUs (if applicable). - * - * Generated from protobuf field optional double vcpu_count = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param float $var - * @return $this - */ - public function setVcpuCount($var) - { - GPBUtil::checkDouble($var); - $this->vcpu_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MaintenanceInfo.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MaintenanceInfo.php deleted file mode 100644 index 08b1527120b..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MaintenanceInfo.php +++ /dev/null @@ -1,149 +0,0 @@ -google.cloud.databasecenter.v1beta.MaintenanceInfo - */ -class MaintenanceInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Maintenance window for the database resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule maintenance_schedule = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $maintenance_schedule = null; - /** - * Optional. List of Deny maintenance period for the database resource. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.ResourceMaintenanceDenySchedule deny_maintenance_schedules = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $deny_maintenance_schedules; - /** - * Output only. Current Maintenance version of the database resource. Example: - * "MYSQL_8_0_41.R20250531.01_15" - * - * Generated from protobuf field string maintenance_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $maintenance_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DatabaseCenter\V1beta\ResourceMaintenanceSchedule $maintenance_schedule - * Optional. Maintenance window for the database resource. - * @type array<\Google\Cloud\DatabaseCenter\V1beta\ResourceMaintenanceDenySchedule>|\Google\Protobuf\Internal\RepeatedField $deny_maintenance_schedules - * Optional. List of Deny maintenance period for the database resource. - * @type string $maintenance_version - * Output only. Current Maintenance version of the database resource. Example: - * "MYSQL_8_0_41.R20250531.01_15" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Maintenance::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Maintenance window for the database resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule maintenance_schedule = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\DatabaseCenter\V1beta\ResourceMaintenanceSchedule|null - */ - public function getMaintenanceSchedule() - { - return $this->maintenance_schedule; - } - - public function hasMaintenanceSchedule() - { - return isset($this->maintenance_schedule); - } - - public function clearMaintenanceSchedule() - { - unset($this->maintenance_schedule); - } - - /** - * Optional. Maintenance window for the database resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule maintenance_schedule = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\DatabaseCenter\V1beta\ResourceMaintenanceSchedule $var - * @return $this - */ - public function setMaintenanceSchedule($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\ResourceMaintenanceSchedule::class); - $this->maintenance_schedule = $var; - - return $this; - } - - /** - * Optional. List of Deny maintenance period for the database resource. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.ResourceMaintenanceDenySchedule deny_maintenance_schedules = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDenyMaintenanceSchedules() - { - return $this->deny_maintenance_schedules; - } - - /** - * Optional. List of Deny maintenance period for the database resource. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.ResourceMaintenanceDenySchedule deny_maintenance_schedules = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\ResourceMaintenanceDenySchedule>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDenyMaintenanceSchedules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\ResourceMaintenanceDenySchedule::class); - $this->deny_maintenance_schedules = $arr; - - return $this; - } - - /** - * Output only. Current Maintenance version of the database resource. Example: - * "MYSQL_8_0_41.R20250531.01_15" - * - * Generated from protobuf field string maintenance_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getMaintenanceVersion() - { - return $this->maintenance_version; - } - - /** - * Output only. Current Maintenance version of the database resource. Example: - * "MYSQL_8_0_41.R20250531.01_15" - * - * Generated from protobuf field string maintenance_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setMaintenanceVersion($var) - { - GPBUtil::checkString($var, True); - $this->maintenance_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MaintenanceRecommendationInfo.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MaintenanceRecommendationInfo.php deleted file mode 100644 index 2edcd38e2b2..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MaintenanceRecommendationInfo.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.databasecenter.v1beta.MaintenanceRecommendationInfo - */ -class MaintenanceRecommendationInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. List of recommended maintenance schedules for the database - * resource. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule resource_maintenance_schedules = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $resource_maintenance_schedules; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DatabaseCenter\V1beta\ResourceMaintenanceSchedule>|\Google\Protobuf\Internal\RepeatedField $resource_maintenance_schedules - * Optional. List of recommended maintenance schedules for the database - * resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); - parent::__construct($data); - } - - /** - * Optional. List of recommended maintenance schedules for the database - * resource. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule resource_maintenance_schedules = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResourceMaintenanceSchedules() - { - return $this->resource_maintenance_schedules; - } - - /** - * Optional. List of recommended maintenance schedules for the database - * resource. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule resource_maintenance_schedules = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\ResourceMaintenanceSchedule>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResourceMaintenanceSchedules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\ResourceMaintenanceSchedule::class); - $this->resource_maintenance_schedules = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ManagementType.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ManagementType.php deleted file mode 100644 index db81aa5e226..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ManagementType.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.databasecenter.v1beta.ManagementType - */ -class ManagementType -{ - /** - * Unspecified. - * - * Generated from protobuf enum MANAGEMENT_TYPE_UNSPECIFIED = 0; - */ - const MANAGEMENT_TYPE_UNSPECIFIED = 0; - /** - * Google-managed resource. - * - * Generated from protobuf enum MANAGEMENT_TYPE_GCP_MANAGED = 1; - */ - const MANAGEMENT_TYPE_GCP_MANAGED = 1; - /** - * Self-managed resource. - * - * Generated from protobuf enum MANAGEMENT_TYPE_SELF_MANAGED = 2; - */ - const MANAGEMENT_TYPE_SELF_MANAGED = 2; - - private static $valueToName = [ - self::MANAGEMENT_TYPE_UNSPECIFIED => 'MANAGEMENT_TYPE_UNSPECIFIED', - self::MANAGEMENT_TYPE_GCP_MANAGED => 'MANAGEMENT_TYPE_GCP_MANAGED', - self::MANAGEMENT_TYPE_SELF_MANAGED => 'MANAGEMENT_TYPE_SELF_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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MetricData.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MetricData.php deleted file mode 100644 index 647bdc36756..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MetricData.php +++ /dev/null @@ -1,121 +0,0 @@ -google.cloud.databasecenter.v1beta.MetricData - */ -class MetricData extends \Google\Protobuf\Internal\Message -{ - /** - * The value associated with the metric. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.TypedValue value = 1; - */ - protected $value = null; - /** - * The time the metric was observed in the metric source service. - * - * Generated from protobuf field .google.protobuf.Timestamp observation_time = 2; - */ - protected $observation_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DatabaseCenter\V1beta\TypedValue $value - * The value associated with the metric. - * @type \Google\Protobuf\Timestamp $observation_time - * The time the metric was observed in the metric source service. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\MetricData::initOnce(); - parent::__construct($data); - } - - /** - * The value associated with the metric. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.TypedValue value = 1; - * @return \Google\Cloud\DatabaseCenter\V1beta\TypedValue|null - */ - public function getValue() - { - return $this->value; - } - - public function hasValue() - { - return isset($this->value); - } - - public function clearValue() - { - unset($this->value); - } - - /** - * The value associated with the metric. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.TypedValue value = 1; - * @param \Google\Cloud\DatabaseCenter\V1beta\TypedValue $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\TypedValue::class); - $this->value = $var; - - return $this; - } - - /** - * The time the metric was observed in the metric source service. - * - * Generated from protobuf field .google.protobuf.Timestamp observation_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getObservationTime() - { - return $this->observation_time; - } - - public function hasObservationTime() - { - return isset($this->observation_time); - } - - public function clearObservationTime() - { - unset($this->observation_time); - } - - /** - * The time the metric was observed in the metric source service. - * - * Generated from protobuf field .google.protobuf.Timestamp observation_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setObservationTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->observation_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Metrics.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Metrics.php deleted file mode 100644 index 940fba3cf41..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Metrics.php +++ /dev/null @@ -1,449 +0,0 @@ -google.cloud.databasecenter.v1beta.Metrics - */ -class Metrics extends \Google\Protobuf\Internal\Message -{ - /** - * P99 CPU utilization observed for the resource. The value is a - * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData p99_cpu_utilization = 1; - */ - protected $p99_cpu_utilization = null; - /** - * P95 CPU utilization observed for the resource. The value is a - * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData p95_cpu_utilization = 2; - */ - protected $p95_cpu_utilization = null; - /** - * Current storage used by the resource in bytes. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData current_storage_used_bytes = 3; - */ - protected $current_storage_used_bytes = null; - /** - * Peak storage utilization observed for the resource. The value is a - * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData peak_storage_utilization = 4; - */ - protected $peak_storage_utilization = null; - /** - * Peak memory utilization observed for the resource. The value is a - * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData peak_memory_utilization = 5; - */ - protected $peak_memory_utilization = null; - /** - * Peak number of connections observed for the resource. The value is a - * positive integer. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData peak_number_connections = 6; - */ - protected $peak_number_connections = null; - /** - * Number of nodes in instance for spanner or bigtable. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData node_count = 7; - */ - protected $node_count = null; - /** - * Number of processing units in spanner. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData processing_unit_count = 8; - */ - protected $processing_unit_count = null; - /** - * Current memory used by the resource in bytes. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData current_memory_used_bytes = 9; - */ - protected $current_memory_used_bytes = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DatabaseCenter\V1beta\MetricData $p99_cpu_utilization - * P99 CPU utilization observed for the resource. The value is a - * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). - * @type \Google\Cloud\DatabaseCenter\V1beta\MetricData $p95_cpu_utilization - * P95 CPU utilization observed for the resource. The value is a - * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). - * @type \Google\Cloud\DatabaseCenter\V1beta\MetricData $current_storage_used_bytes - * Current storage used by the resource in bytes. - * @type \Google\Cloud\DatabaseCenter\V1beta\MetricData $peak_storage_utilization - * Peak storage utilization observed for the resource. The value is a - * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). - * @type \Google\Cloud\DatabaseCenter\V1beta\MetricData $peak_memory_utilization - * Peak memory utilization observed for the resource. The value is a - * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). - * @type \Google\Cloud\DatabaseCenter\V1beta\MetricData $peak_number_connections - * Peak number of connections observed for the resource. The value is a - * positive integer. - * @type \Google\Cloud\DatabaseCenter\V1beta\MetricData $node_count - * Number of nodes in instance for spanner or bigtable. - * @type \Google\Cloud\DatabaseCenter\V1beta\MetricData $processing_unit_count - * Number of processing units in spanner. - * @type \Google\Cloud\DatabaseCenter\V1beta\MetricData $current_memory_used_bytes - * Current memory used by the resource in bytes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\MetricData::initOnce(); - parent::__construct($data); - } - - /** - * P99 CPU utilization observed for the resource. The value is a - * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData p99_cpu_utilization = 1; - * @return \Google\Cloud\DatabaseCenter\V1beta\MetricData|null - */ - public function getP99CpuUtilization() - { - return $this->p99_cpu_utilization; - } - - public function hasP99CpuUtilization() - { - return isset($this->p99_cpu_utilization); - } - - public function clearP99CpuUtilization() - { - unset($this->p99_cpu_utilization); - } - - /** - * P99 CPU utilization observed for the resource. The value is a - * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData p99_cpu_utilization = 1; - * @param \Google\Cloud\DatabaseCenter\V1beta\MetricData $var - * @return $this - */ - public function setP99CpuUtilization($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\MetricData::class); - $this->p99_cpu_utilization = $var; - - return $this; - } - - /** - * P95 CPU utilization observed for the resource. The value is a - * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData p95_cpu_utilization = 2; - * @return \Google\Cloud\DatabaseCenter\V1beta\MetricData|null - */ - public function getP95CpuUtilization() - { - return $this->p95_cpu_utilization; - } - - public function hasP95CpuUtilization() - { - return isset($this->p95_cpu_utilization); - } - - public function clearP95CpuUtilization() - { - unset($this->p95_cpu_utilization); - } - - /** - * P95 CPU utilization observed for the resource. The value is a - * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData p95_cpu_utilization = 2; - * @param \Google\Cloud\DatabaseCenter\V1beta\MetricData $var - * @return $this - */ - public function setP95CpuUtilization($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\MetricData::class); - $this->p95_cpu_utilization = $var; - - return $this; - } - - /** - * Current storage used by the resource in bytes. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData current_storage_used_bytes = 3; - * @return \Google\Cloud\DatabaseCenter\V1beta\MetricData|null - */ - public function getCurrentStorageUsedBytes() - { - return $this->current_storage_used_bytes; - } - - public function hasCurrentStorageUsedBytes() - { - return isset($this->current_storage_used_bytes); - } - - public function clearCurrentStorageUsedBytes() - { - unset($this->current_storage_used_bytes); - } - - /** - * Current storage used by the resource in bytes. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData current_storage_used_bytes = 3; - * @param \Google\Cloud\DatabaseCenter\V1beta\MetricData $var - * @return $this - */ - public function setCurrentStorageUsedBytes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\MetricData::class); - $this->current_storage_used_bytes = $var; - - return $this; - } - - /** - * Peak storage utilization observed for the resource. The value is a - * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData peak_storage_utilization = 4; - * @return \Google\Cloud\DatabaseCenter\V1beta\MetricData|null - */ - public function getPeakStorageUtilization() - { - return $this->peak_storage_utilization; - } - - public function hasPeakStorageUtilization() - { - return isset($this->peak_storage_utilization); - } - - public function clearPeakStorageUtilization() - { - unset($this->peak_storage_utilization); - } - - /** - * Peak storage utilization observed for the resource. The value is a - * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData peak_storage_utilization = 4; - * @param \Google\Cloud\DatabaseCenter\V1beta\MetricData $var - * @return $this - */ - public function setPeakStorageUtilization($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\MetricData::class); - $this->peak_storage_utilization = $var; - - return $this; - } - - /** - * Peak memory utilization observed for the resource. The value is a - * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData peak_memory_utilization = 5; - * @return \Google\Cloud\DatabaseCenter\V1beta\MetricData|null - */ - public function getPeakMemoryUtilization() - { - return $this->peak_memory_utilization; - } - - public function hasPeakMemoryUtilization() - { - return isset($this->peak_memory_utilization); - } - - public function clearPeakMemoryUtilization() - { - unset($this->peak_memory_utilization); - } - - /** - * Peak memory utilization observed for the resource. The value is a - * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData peak_memory_utilization = 5; - * @param \Google\Cloud\DatabaseCenter\V1beta\MetricData $var - * @return $this - */ - public function setPeakMemoryUtilization($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\MetricData::class); - $this->peak_memory_utilization = $var; - - return $this; - } - - /** - * Peak number of connections observed for the resource. The value is a - * positive integer. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData peak_number_connections = 6; - * @return \Google\Cloud\DatabaseCenter\V1beta\MetricData|null - */ - public function getPeakNumberConnections() - { - return $this->peak_number_connections; - } - - public function hasPeakNumberConnections() - { - return isset($this->peak_number_connections); - } - - public function clearPeakNumberConnections() - { - unset($this->peak_number_connections); - } - - /** - * Peak number of connections observed for the resource. The value is a - * positive integer. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData peak_number_connections = 6; - * @param \Google\Cloud\DatabaseCenter\V1beta\MetricData $var - * @return $this - */ - public function setPeakNumberConnections($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\MetricData::class); - $this->peak_number_connections = $var; - - return $this; - } - - /** - * Number of nodes in instance for spanner or bigtable. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData node_count = 7; - * @return \Google\Cloud\DatabaseCenter\V1beta\MetricData|null - */ - public function getNodeCount() - { - return $this->node_count; - } - - public function hasNodeCount() - { - return isset($this->node_count); - } - - public function clearNodeCount() - { - unset($this->node_count); - } - - /** - * Number of nodes in instance for spanner or bigtable. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData node_count = 7; - * @param \Google\Cloud\DatabaseCenter\V1beta\MetricData $var - * @return $this - */ - public function setNodeCount($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\MetricData::class); - $this->node_count = $var; - - return $this; - } - - /** - * Number of processing units in spanner. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData processing_unit_count = 8; - * @return \Google\Cloud\DatabaseCenter\V1beta\MetricData|null - */ - public function getProcessingUnitCount() - { - return $this->processing_unit_count; - } - - public function hasProcessingUnitCount() - { - return isset($this->processing_unit_count); - } - - public function clearProcessingUnitCount() - { - unset($this->processing_unit_count); - } - - /** - * Number of processing units in spanner. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData processing_unit_count = 8; - * @param \Google\Cloud\DatabaseCenter\V1beta\MetricData $var - * @return $this - */ - public function setProcessingUnitCount($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\MetricData::class); - $this->processing_unit_count = $var; - - return $this; - } - - /** - * Current memory used by the resource in bytes. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData current_memory_used_bytes = 9; - * @return \Google\Cloud\DatabaseCenter\V1beta\MetricData|null - */ - public function getCurrentMemoryUsedBytes() - { - return $this->current_memory_used_bytes; - } - - public function hasCurrentMemoryUsedBytes() - { - return isset($this->current_memory_used_bytes); - } - - public function clearCurrentMemoryUsedBytes() - { - unset($this->current_memory_used_bytes); - } - - /** - * Current memory used by the resource in bytes. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData current_memory_used_bytes = 9; - * @param \Google\Cloud\DatabaseCenter\V1beta\MetricData $var - * @return $this - */ - public function setCurrentMemoryUsedBytes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\MetricData::class); - $this->current_memory_used_bytes = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/OperationErrorType.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/OperationErrorType.php deleted file mode 100644 index ed085c37e78..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/OperationErrorType.php +++ /dev/null @@ -1,92 +0,0 @@ -google.cloud.databasecenter.v1beta.OperationErrorType - */ -class OperationErrorType -{ - /** - * UNSPECIFIED means operation error type is not known or available. - * - * Generated from protobuf enum OPERATION_ERROR_TYPE_UNSPECIFIED = 0; - */ - const OPERATION_ERROR_TYPE_UNSPECIFIED = 0; - /** - * Key destroyed, expired, not found, unreachable or permission denied. - * - * Generated from protobuf enum KMS_KEY_ERROR = 1; - */ - const KMS_KEY_ERROR = 1; - /** - * Database is not accessible. - * - * Generated from protobuf enum DATABASE_ERROR = 2; - */ - const DATABASE_ERROR = 2; - /** - * The zone or region does not have sufficient resources to handle the request - * at the moment. - * - * Generated from protobuf enum STOCKOUT_ERROR = 3; - */ - const STOCKOUT_ERROR = 3; - /** - * User initiated cancellation. - * - * Generated from protobuf enum CANCELLATION_ERROR = 4; - */ - const CANCELLATION_ERROR = 4; - /** - * SQL server specific error. - * - * Generated from protobuf enum SQLSERVER_ERROR = 5; - */ - const SQLSERVER_ERROR = 5; - /** - * Any other internal error. - * - * Generated from protobuf enum INTERNAL_ERROR = 6; - */ - const INTERNAL_ERROR = 6; - - private static $valueToName = [ - self::OPERATION_ERROR_TYPE_UNSPECIFIED => 'OPERATION_ERROR_TYPE_UNSPECIFIED', - self::KMS_KEY_ERROR => 'KMS_KEY_ERROR', - self::DATABASE_ERROR => 'DATABASE_ERROR', - self::STOCKOUT_ERROR => 'STOCKOUT_ERROR', - self::CANCELLATION_ERROR => 'CANCELLATION_ERROR', - self::SQLSERVER_ERROR => 'SQLSERVER_ERROR', - self::INTERNAL_ERROR => 'INTERNAL_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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/OutdatedMinorVersionInfo.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/OutdatedMinorVersionInfo.php deleted file mode 100644 index a68c9edce0a..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/OutdatedMinorVersionInfo.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.databasecenter.v1beta.OutdatedMinorVersionInfo - */ -class OutdatedMinorVersionInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Recommended minor version of the underlying database engine. Example - * values: For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it - * could be "14.4", "15.5" etc. - * - * Generated from protobuf field string recommended_minor_version = 1; - */ - protected $recommended_minor_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $recommended_minor_version - * Recommended minor version of the underlying database engine. Example - * values: For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it - * could be "14.4", "15.5" etc. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); - parent::__construct($data); - } - - /** - * Recommended minor version of the underlying database engine. Example - * values: For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it - * could be "14.4", "15.5" etc. - * - * Generated from protobuf field string recommended_minor_version = 1; - * @return string - */ - public function getRecommendedMinorVersion() - { - return $this->recommended_minor_version; - } - - /** - * Recommended minor version of the underlying database engine. Example - * values: For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it - * could be "14.4", "15.5" etc. - * - * Generated from protobuf field string recommended_minor_version = 1; - * @param string $var - * @return $this - */ - public function setRecommendedMinorVersion($var) - { - GPBUtil::checkString($var, True); - $this->recommended_minor_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Phase.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Phase.php deleted file mode 100644 index fc477f8e49d..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Phase.php +++ /dev/null @@ -1,79 +0,0 @@ -google.cloud.databasecenter.v1beta.Phase - */ -class Phase -{ - /** - * Phase is unspecified. - * - * Generated from protobuf enum PHASE_UNSPECIFIED = 0; - */ - const PHASE_UNSPECIFIED = 0; - /** - * Week 1. - * - * Generated from protobuf enum PHASE_WEEK1 = 1; - */ - const PHASE_WEEK1 = 1; - /** - * Week 2. - * - * Generated from protobuf enum PHASE_WEEK2 = 2; - */ - const PHASE_WEEK2 = 2; - /** - * Week 5. - * - * Generated from protobuf enum PHASE_WEEK5 = 3; - */ - const PHASE_WEEK5 = 3; - /** - * Any phase. - * - * Generated from protobuf enum PHASE_ANY = 4; - */ - const PHASE_ANY = 4; - - private static $valueToName = [ - self::PHASE_UNSPECIFIED => 'PHASE_UNSPECIFIED', - self::PHASE_WEEK1 => 'PHASE_WEEK1', - self::PHASE_WEEK2 => 'PHASE_WEEK2', - self::PHASE_WEEK5 => 'PHASE_WEEK5', - self::PHASE_ANY => 'PHASE_ANY', - ]; - - 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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Product.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Product.php deleted file mode 100644 index 2b47957ead4..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Product.php +++ /dev/null @@ -1,189 +0,0 @@ -google.cloud.databasecenter.v1beta.Product - */ -class Product extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Type of specific database product. It could be CloudSQL, AlloyDB - * etc.. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.ProductType type = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $type = 0; - /** - * Optional. The specific engine that the underlying database is running. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Engine engine = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $engine = 0; - /** - * Optional. Version of the underlying database engine. Example values: For - * MySQL, it could be "8.0", "5.7" etc. For Postgres, it could be "14", "15" - * etc. - * - * Generated from protobuf field string version = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $version = ''; - /** - * Optional. Minor version of the underlying database engine. Example values: - * For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it could be - * "14.4", "15.5" etc. - * - * Generated from protobuf field string minor_version = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $minor_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * Optional. Type of specific database product. It could be CloudSQL, AlloyDB - * etc.. - * @type int $engine - * Optional. The specific engine that the underlying database is running. - * @type string $version - * Optional. Version of the underlying database engine. Example values: For - * MySQL, it could be "8.0", "5.7" etc. For Postgres, it could be "14", "15" - * etc. - * @type string $minor_version - * Optional. Minor version of the underlying database engine. Example values: - * For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it could be - * "14.4", "15.5" etc. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Product::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Type of specific database product. It could be CloudSQL, AlloyDB - * etc.. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.ProductType type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Optional. Type of specific database product. It could be CloudSQL, AlloyDB - * etc.. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.ProductType type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\ProductType::class); - $this->type = $var; - - return $this; - } - - /** - * Optional. The specific engine that the underlying database is running. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Engine engine = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getEngine() - { - return $this->engine; - } - - /** - * Optional. The specific engine that the underlying database is running. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Engine engine = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setEngine($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\Engine::class); - $this->engine = $var; - - return $this; - } - - /** - * Optional. Version of the underlying database engine. Example values: For - * MySQL, it could be "8.0", "5.7" etc. For Postgres, it could be "14", "15" - * etc. - * - * Generated from protobuf field string version = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Optional. Version of the underlying database engine. Example values: For - * MySQL, it could be "8.0", "5.7" etc. For Postgres, it could be "14", "15" - * etc. - * - * Generated from protobuf field string version = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * Optional. Minor version of the underlying database engine. Example values: - * For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it could be - * "14.4", "15.5" etc. - * - * Generated from protobuf field string minor_version = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getMinorVersion() - { - return $this->minor_version; - } - - /** - * Optional. Minor version of the underlying database engine. Example values: - * For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it could be - * "14.4", "15.5" etc. - * - * Generated from protobuf field string minor_version = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setMinorVersion($var) - { - GPBUtil::checkString($var, True); - $this->minor_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ProductType.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ProductType.php deleted file mode 100644 index b33ce323e43..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ProductType.php +++ /dev/null @@ -1,121 +0,0 @@ -google.cloud.databasecenter.v1beta.ProductType - */ -class ProductType -{ - /** - * PRODUCT_TYPE_UNSPECIFIED means product type is not known or that the user - * didn't provide this field in the request. - * - * Generated from protobuf enum PRODUCT_TYPE_UNSPECIFIED = 0; - */ - const PRODUCT_TYPE_UNSPECIFIED = 0; - /** - * Cloud SQL product area in Google Cloud - * - * Generated from protobuf enum PRODUCT_TYPE_CLOUD_SQL = 1; - */ - const PRODUCT_TYPE_CLOUD_SQL = 1; - /** - * AlloyDB product area in Google Cloud - * - * Generated from protobuf enum PRODUCT_TYPE_ALLOYDB = 2; - */ - const PRODUCT_TYPE_ALLOYDB = 2; - /** - * Spanner product area in Google Cloud - * - * Generated from protobuf enum PRODUCT_TYPE_SPANNER = 3; - */ - const PRODUCT_TYPE_SPANNER = 3; - /** - * Bigtable product area in Google Cloud - * - * Generated from protobuf enum PRODUCT_TYPE_BIGTABLE = 6; - */ - const PRODUCT_TYPE_BIGTABLE = 6; - /** - * Memorystore product area in Google Cloud - * - * Generated from protobuf enum PRODUCT_TYPE_MEMORYSTORE = 7; - */ - const PRODUCT_TYPE_MEMORYSTORE = 7; - /** - * Firestore product area in Google Cloud - * - * Generated from protobuf enum PRODUCT_TYPE_FIRESTORE = 8; - */ - const PRODUCT_TYPE_FIRESTORE = 8; - /** - * Compute Engine self managed databases - * - * Generated from protobuf enum PRODUCT_TYPE_COMPUTE_ENGINE = 9; - */ - const PRODUCT_TYPE_COMPUTE_ENGINE = 9; - /** - * Oracle product area in Google Cloud - * - * Generated from protobuf enum PRODUCT_TYPE_ORACLE_ON_GCP = 10; - */ - const PRODUCT_TYPE_ORACLE_ON_GCP = 10; - /** - * BigQuery product area in Google Cloud - * - * Generated from protobuf enum PRODUCT_TYPE_BIGQUERY = 11; - */ - const PRODUCT_TYPE_BIGQUERY = 11; - /** - * Other refers to rest of other product type. This is to be when product type - * is known, but it is not present in this enum. - * - * Generated from protobuf enum PRODUCT_TYPE_OTHER = 5; - */ - const PRODUCT_TYPE_OTHER = 5; - - private static $valueToName = [ - self::PRODUCT_TYPE_UNSPECIFIED => 'PRODUCT_TYPE_UNSPECIFIED', - self::PRODUCT_TYPE_CLOUD_SQL => 'PRODUCT_TYPE_CLOUD_SQL', - self::PRODUCT_TYPE_ALLOYDB => 'PRODUCT_TYPE_ALLOYDB', - self::PRODUCT_TYPE_SPANNER => 'PRODUCT_TYPE_SPANNER', - self::PRODUCT_TYPE_BIGTABLE => 'PRODUCT_TYPE_BIGTABLE', - self::PRODUCT_TYPE_MEMORYSTORE => 'PRODUCT_TYPE_MEMORYSTORE', - self::PRODUCT_TYPE_FIRESTORE => 'PRODUCT_TYPE_FIRESTORE', - self::PRODUCT_TYPE_COMPUTE_ENGINE => 'PRODUCT_TYPE_COMPUTE_ENGINE', - self::PRODUCT_TYPE_ORACLE_ON_GCP => 'PRODUCT_TYPE_ORACLE_ON_GCP', - self::PRODUCT_TYPE_BIGQUERY => 'PRODUCT_TYPE_BIGQUERY', - self::PRODUCT_TYPE_OTHER => 'PRODUCT_TYPE_OTHER', - ]; - - 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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryDatabaseResourceGroupsRequest.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryDatabaseResourceGroupsRequest.php deleted file mode 100644 index 562184b0ca3..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryDatabaseResourceGroupsRequest.php +++ /dev/null @@ -1,568 +0,0 @@ -google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsRequest - */ -class QueryDatabaseResourceGroupsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent can be a project, a folder, or an organization. The search - * is limited to the resources within the `scope`. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $parent = ''; - /** - * Optional. The expression to filter resources. - * The following fields are filterable: - * * full_resource_name - * * resource_type - * * container - * * product.type - * * product.engine - * * product.version - * * location - * * labels - * * resource_category - * * machine_config.cpu_count - * * machine_config.memory_size_bytes - * * machine_config.shard_count - * * resource_name - * * tags - * * backupdr_config.backupdr_managed - * * edition - * The expression is a list of zero or more restrictions combined via logical - * operators `AND` and `OR`. When `AND` and `OR` are both used in the - * expression, parentheses must be appropriately used to group the - * combinations. - * Example: `location="us-east1"` - * Example: `container="projects/123" OR container="projects/456"` - * Example: `(container="projects/123" OR - * container="projects/456") AND location="us-east1"` - * Example: `full_resource_name=~"test"` - * Example: `full_resource_name=~"test.*master"` - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Groups of signal types that are requested. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $signal_type_groups; - /** - * Optional. Filters based on signals. The list will be ORed together and then - * ANDed with the `filters` field above. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalFilter signal_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $signal_filters; - /** - * Optional. A field that specifies the sort order of the results. - * The following fields are sortable: - * * full_resource_name - * * product.type - * * product.engine - * * product.version - * * container - * * issue_count - * * machine_config.vcpu_count - * * machine_config.memory_size_bytes - * * machine_config.shard_count - * * resource_name - * * issue_severity - * * signal_type - * * location - * * resource_type - * * instance_type - * * edition - * * metrics.p99_cpu_utilization - * * metrics.p95_cpu_utilization - * * metrics.current_storage_used_bytes - * * metrics.node_count - * * metrics.processing_unit_count - * * metrics.current_memory_used_bytes - * * metrics.peak_storage_utilization - * * metrics.peak_number_connections - * * metrics.peak_memory_utilization - * The default order is ascending. Add "DESC" after the field name to indicate - * descending order. Add "ASC" after the field name to indicate ascending - * order. It only supports a single field at a time. - * For example: - * `order_by = "full_resource_name"` sorts response in ascending order - * `order_by = "full_resource_name DESC"` sorts response in descending order - * `order_by = "issue_count DESC"` sorts response in descending order of - * count of all issues associated with a resource. - * More explicitly, `order_by = "full_resource_name, product"` is not - * supported. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. If unspecified, at most 50 resource groups will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous - * `QueryDatabaseResourceGroupsRequest` call. Provide this to retrieve the - * subsequent page. All parameters except page_token should match the - * parameters in the call that provided the page page token. - * - * Generated from protobuf field string page_token = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent can be a project, a folder, or an organization. The search - * is limited to the resources within the `scope`. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * @type string $filter - * Optional. The expression to filter resources. - * The following fields are filterable: - * * full_resource_name - * * resource_type - * * container - * * product.type - * * product.engine - * * product.version - * * location - * * labels - * * resource_category - * * machine_config.cpu_count - * * machine_config.memory_size_bytes - * * machine_config.shard_count - * * resource_name - * * tags - * * backupdr_config.backupdr_managed - * * edition - * The expression is a list of zero or more restrictions combined via logical - * operators `AND` and `OR`. When `AND` and `OR` are both used in the - * expression, parentheses must be appropriately used to group the - * combinations. - * Example: `location="us-east1"` - * Example: `container="projects/123" OR container="projects/456"` - * Example: `(container="projects/123" OR - * container="projects/456") AND location="us-east1"` - * Example: `full_resource_name=~"test"` - * Example: `full_resource_name=~"test.*master"` - * @type array<\Google\Cloud\DatabaseCenter\V1beta\SignalTypeGroup>|\Google\Protobuf\Internal\RepeatedField $signal_type_groups - * Optional. Groups of signal types that are requested. - * @type array<\Google\Cloud\DatabaseCenter\V1beta\SignalFilter>|\Google\Protobuf\Internal\RepeatedField $signal_filters - * Optional. Filters based on signals. The list will be ORed together and then - * ANDed with the `filters` field above. - * @type string $order_by - * Optional. A field that specifies the sort order of the results. - * The following fields are sortable: - * * full_resource_name - * * product.type - * * product.engine - * * product.version - * * container - * * issue_count - * * machine_config.vcpu_count - * * machine_config.memory_size_bytes - * * machine_config.shard_count - * * resource_name - * * issue_severity - * * signal_type - * * location - * * resource_type - * * instance_type - * * edition - * * metrics.p99_cpu_utilization - * * metrics.p95_cpu_utilization - * * metrics.current_storage_used_bytes - * * metrics.node_count - * * metrics.processing_unit_count - * * metrics.current_memory_used_bytes - * * metrics.peak_storage_utilization - * * metrics.peak_number_connections - * * metrics.peak_memory_utilization - * The default order is ascending. Add "DESC" after the field name to indicate - * descending order. Add "ASC" after the field name to indicate ascending - * order. It only supports a single field at a time. - * For example: - * `order_by = "full_resource_name"` sorts response in ascending order - * `order_by = "full_resource_name DESC"` sorts response in descending order - * `order_by = "issue_count DESC"` sorts response in descending order of - * count of all issues associated with a resource. - * More explicitly, `order_by = "full_resource_name, product"` is not - * supported. - * @type int $page_size - * Optional. If unspecified, at most 50 resource groups will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous - * `QueryDatabaseResourceGroupsRequest` call. Provide this to retrieve the - * subsequent page. All parameters except page_token should match the - * parameters in the call that provided the page page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent can be a project, a folder, or an organization. The search - * is limited to the resources within the `scope`. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Parent can be a project, a folder, or an organization. The search - * is limited to the resources within the `scope`. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The expression to filter resources. - * The following fields are filterable: - * * full_resource_name - * * resource_type - * * container - * * product.type - * * product.engine - * * product.version - * * location - * * labels - * * resource_category - * * machine_config.cpu_count - * * machine_config.memory_size_bytes - * * machine_config.shard_count - * * resource_name - * * tags - * * backupdr_config.backupdr_managed - * * edition - * The expression is a list of zero or more restrictions combined via logical - * operators `AND` and `OR`. When `AND` and `OR` are both used in the - * expression, parentheses must be appropriately used to group the - * combinations. - * Example: `location="us-east1"` - * Example: `container="projects/123" OR container="projects/456"` - * Example: `(container="projects/123" OR - * container="projects/456") AND location="us-east1"` - * Example: `full_resource_name=~"test"` - * Example: `full_resource_name=~"test.*master"` - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. The expression to filter resources. - * The following fields are filterable: - * * full_resource_name - * * resource_type - * * container - * * product.type - * * product.engine - * * product.version - * * location - * * labels - * * resource_category - * * machine_config.cpu_count - * * machine_config.memory_size_bytes - * * machine_config.shard_count - * * resource_name - * * tags - * * backupdr_config.backupdr_managed - * * edition - * The expression is a list of zero or more restrictions combined via logical - * operators `AND` and `OR`. When `AND` and `OR` are both used in the - * expression, parentheses must be appropriately used to group the - * combinations. - * Example: `location="us-east1"` - * Example: `container="projects/123" OR container="projects/456"` - * Example: `(container="projects/123" OR - * container="projects/456") AND location="us-east1"` - * Example: `full_resource_name=~"test"` - * Example: `full_resource_name=~"test.*master"` - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Groups of signal types that are requested. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSignalTypeGroups() - { - return $this->signal_type_groups; - } - - /** - * Optional. Groups of signal types that are requested. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\SignalTypeGroup>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSignalTypeGroups($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\SignalTypeGroup::class); - $this->signal_type_groups = $arr; - - return $this; - } - - /** - * Optional. Filters based on signals. The list will be ORed together and then - * ANDed with the `filters` field above. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalFilter signal_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSignalFilters() - { - return $this->signal_filters; - } - - /** - * Optional. Filters based on signals. The list will be ORed together and then - * ANDed with the `filters` field above. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalFilter signal_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\SignalFilter>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSignalFilters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\SignalFilter::class); - $this->signal_filters = $arr; - - return $this; - } - - /** - * Optional. A field that specifies the sort order of the results. - * The following fields are sortable: - * * full_resource_name - * * product.type - * * product.engine - * * product.version - * * container - * * issue_count - * * machine_config.vcpu_count - * * machine_config.memory_size_bytes - * * machine_config.shard_count - * * resource_name - * * issue_severity - * * signal_type - * * location - * * resource_type - * * instance_type - * * edition - * * metrics.p99_cpu_utilization - * * metrics.p95_cpu_utilization - * * metrics.current_storage_used_bytes - * * metrics.node_count - * * metrics.processing_unit_count - * * metrics.current_memory_used_bytes - * * metrics.peak_storage_utilization - * * metrics.peak_number_connections - * * metrics.peak_memory_utilization - * The default order is ascending. Add "DESC" after the field name to indicate - * descending order. Add "ASC" after the field name to indicate ascending - * order. It only supports a single field at a time. - * For example: - * `order_by = "full_resource_name"` sorts response in ascending order - * `order_by = "full_resource_name DESC"` sorts response in descending order - * `order_by = "issue_count DESC"` sorts response in descending order of - * count of all issues associated with a resource. - * More explicitly, `order_by = "full_resource_name, product"` is not - * supported. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. A field that specifies the sort order of the results. - * The following fields are sortable: - * * full_resource_name - * * product.type - * * product.engine - * * product.version - * * container - * * issue_count - * * machine_config.vcpu_count - * * machine_config.memory_size_bytes - * * machine_config.shard_count - * * resource_name - * * issue_severity - * * signal_type - * * location - * * resource_type - * * instance_type - * * edition - * * metrics.p99_cpu_utilization - * * metrics.p95_cpu_utilization - * * metrics.current_storage_used_bytes - * * metrics.node_count - * * metrics.processing_unit_count - * * metrics.current_memory_used_bytes - * * metrics.peak_storage_utilization - * * metrics.peak_number_connections - * * metrics.peak_memory_utilization - * The default order is ascending. Add "DESC" after the field name to indicate - * descending order. Add "ASC" after the field name to indicate ascending - * order. It only supports a single field at a time. - * For example: - * `order_by = "full_resource_name"` sorts response in ascending order - * `order_by = "full_resource_name DESC"` sorts response in descending order - * `order_by = "issue_count DESC"` sorts response in descending order of - * count of all issues associated with a resource. - * More explicitly, `order_by = "full_resource_name, product"` is not - * supported. - * - * Generated from protobuf field string order_by = 5 [(.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. If unspecified, at most 50 resource groups will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. If unspecified, at most 50 resource groups will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous - * `QueryDatabaseResourceGroupsRequest` call. Provide this to retrieve the - * subsequent page. All parameters except page_token should match the - * parameters in the call that provided the page page token. - * - * Generated from protobuf field string page_token = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous - * `QueryDatabaseResourceGroupsRequest` call. Provide this to retrieve the - * subsequent page. All parameters except page_token should match the - * parameters in the call that provided the page page token. - * - * Generated from protobuf field string page_token = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryDatabaseResourceGroupsResponse.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryDatabaseResourceGroupsResponse.php deleted file mode 100644 index 371fefb7462..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryDatabaseResourceGroupsResponse.php +++ /dev/null @@ -1,144 +0,0 @@ -google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsResponse - */ -class QueryDatabaseResourceGroupsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of database resource groups that pass the filter. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.DatabaseResourceGroup resource_groups = 1; - */ - private $resource_groups; - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DatabaseCenter\V1beta\DatabaseResourceGroup>|\Google\Protobuf\Internal\RepeatedField $resource_groups - * List of database resource groups that pass the filter. - * @type string $next_page_token - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * List of database resource groups that pass the filter. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.DatabaseResourceGroup resource_groups = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResourceGroups() - { - return $this->resource_groups; - } - - /** - * List of database resource groups that pass the filter. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.DatabaseResourceGroup resource_groups = 1; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\DatabaseResourceGroup>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResourceGroups($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\DatabaseResourceGroup::class); - $this->resource_groups = $arr; - - return $this; - } - - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * 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; - } - - /** - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryIssuesRequest.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryIssuesRequest.php deleted file mode 100644 index 156d75aae03..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryIssuesRequest.php +++ /dev/null @@ -1,359 +0,0 @@ -google.cloud.databasecenter.v1beta.QueryIssuesRequest - */ -class QueryIssuesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent can be a project, a folder, or an organization. The list - * is limited to the one attached to resources within the `scope` that a user - * has access to. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $parent = ''; - /** - * Optional. - * Supported fields are: - * 'product', - * `location`, - * `issue_severity`, - * 'tags', - * 'labels', - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Filters based on signal and product. The filter list will be ORed - * across pairs and ANDed within a signal and products pair. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalProductsFilters signal_products_filters = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $signal_products_filters; - /** - * Optional. Following fields are sortable: - * SignalType - * Product - * Location - * IssueSeverity - * The default order is ascending. Add "DESC" after the field name to indicate - * descending order. Add "ASC" after the field name to indicate ascending - * order. It only supports a single field at a time. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. If unspecified, at most 50 issues will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `QueryIssues` call. - * Provide this to retrieve the subsequent page. - * All parameters except page size should match the parameters used in the - * call that provided the page token. - * - * Generated from protobuf field string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. Parent can be a project, a folder, or an organization. The list - * is limited to the one attached to resources within the `scope` that a user - * has access to. - * - * The allowed values are: - * - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * @return \Google\Cloud\DatabaseCenter\V1beta\QueryIssuesRequest - * - * @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 can be a project, a folder, or an organization. The list - * is limited to the one attached to resources within the `scope` that a user - * has access to. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * @type string $filter - * Optional. - * Supported fields are: - * 'product', - * `location`, - * `issue_severity`, - * 'tags', - * 'labels', - * @type array<\Google\Cloud\DatabaseCenter\V1beta\SignalProductsFilters>|\Google\Protobuf\Internal\RepeatedField $signal_products_filters - * Optional. Filters based on signal and product. The filter list will be ORed - * across pairs and ANDed within a signal and products pair. - * @type string $order_by - * Optional. Following fields are sortable: - * SignalType - * Product - * Location - * IssueSeverity - * The default order is ascending. Add "DESC" after the field name to indicate - * descending order. Add "ASC" after the field name to indicate ascending - * order. It only supports a single field at a time. - * @type int $page_size - * Optional. If unspecified, at most 50 issues will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `QueryIssues` call. - * Provide this to retrieve the subsequent page. - * All parameters except page size should match the parameters used in the - * call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent can be a project, a folder, or an organization. The list - * is limited to the one attached to resources within the `scope` that a user - * has access to. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Parent can be a project, a folder, or an organization. The list - * is limited to the one attached to resources within the `scope` that a user - * has access to. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. - * Supported fields are: - * 'product', - * `location`, - * `issue_severity`, - * 'tags', - * 'labels', - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. - * Supported fields are: - * 'product', - * `location`, - * `issue_severity`, - * 'tags', - * 'labels', - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Filters based on signal and product. The filter list will be ORed - * across pairs and ANDed within a signal and products pair. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalProductsFilters signal_products_filters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSignalProductsFilters() - { - return $this->signal_products_filters; - } - - /** - * Optional. Filters based on signal and product. The filter list will be ORed - * across pairs and ANDed within a signal and products pair. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalProductsFilters signal_products_filters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\SignalProductsFilters>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSignalProductsFilters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\SignalProductsFilters::class); - $this->signal_products_filters = $arr; - - return $this; - } - - /** - * Optional. Following fields are sortable: - * SignalType - * Product - * Location - * IssueSeverity - * The default order is ascending. Add "DESC" after the field name to indicate - * descending order. Add "ASC" after the field name to indicate ascending - * order. It only supports a single field at a time. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Following fields are sortable: - * SignalType - * Product - * Location - * IssueSeverity - * The default order is ascending. Add "DESC" after the field name to indicate - * descending order. Add "ASC" after the field name to indicate ascending - * order. It only supports a single field at a time. - * - * 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. If unspecified, at most 50 issues will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. If unspecified, at most 50 issues will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `QueryIssues` call. - * Provide this to retrieve the subsequent page. - * All parameters except page size should match the parameters used in the - * call that provided the page token. - * - * Generated from protobuf field string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `QueryIssues` call. - * Provide this to retrieve the subsequent page. - * All parameters except page size should match the parameters used in the - * call that provided the page token. - * - * Generated from protobuf field string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryIssuesResponse.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryIssuesResponse.php deleted file mode 100644 index ef6bfe5fdbd..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryIssuesResponse.php +++ /dev/null @@ -1,143 +0,0 @@ -google.cloud.databasecenter.v1beta.QueryIssuesResponse - */ -class QueryIssuesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of issues and resource details. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1; - */ - private $resource_issues; - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DatabaseCenter\V1beta\DatabaseResourceIssue>|\Google\Protobuf\Internal\RepeatedField $resource_issues - * List of issues and resource details. - * @type string $next_page_token - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * List of issues and resource details. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResourceIssues() - { - return $this->resource_issues; - } - - /** - * List of issues and resource details. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\DatabaseResourceIssue>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResourceIssues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\DatabaseResourceIssue::class); - $this->resource_issues = $arr; - - return $this; - } - - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * 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; - } - - /** - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryProductsRequest.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryProductsRequest.php deleted file mode 100644 index d2eef2b02bd..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryProductsRequest.php +++ /dev/null @@ -1,203 +0,0 @@ -google.cloud.databasecenter.v1beta.QueryProductsRequest - */ -class QueryProductsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent can be a project, a folder, or an organization. - * The allowed values are: - * * projects/{PROJECT_ID}/locations/{LOCATION} - * (e.g.,"projects/foo-bar/locations/us-central1") - * * projects/{PROJECT_NUMBER}/locations/{LOCATION} - * (e.g.,"projects/12345678/locations/us-central1") - * * folders/{FOLDER_NUMBER}/locations/{LOCATION} - * (e.g.,"folders/1234567/locations/us-central1") - * * organizations/{ORGANIZATION_NUMBER}/locations/{LOCATION} - * (e.g.,"organizations/123456/locations/us-central1") - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $parent = ''; - /** - * Optional. If unspecified, at most 50 products will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListLocations` call. - * Provide this to retrieve the subsequent page. - * All other parameters except page size should match the call that provided - * the page page token. - * - * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent can be a project, a folder, or an organization. - * The allowed values are: - * * projects/{PROJECT_ID}/locations/{LOCATION} - * (e.g.,"projects/foo-bar/locations/us-central1") - * * projects/{PROJECT_NUMBER}/locations/{LOCATION} - * (e.g.,"projects/12345678/locations/us-central1") - * * folders/{FOLDER_NUMBER}/locations/{LOCATION} - * (e.g.,"folders/1234567/locations/us-central1") - * * organizations/{ORGANIZATION_NUMBER}/locations/{LOCATION} - * (e.g.,"organizations/123456/locations/us-central1") - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * @type int $page_size - * Optional. If unspecified, at most 50 products will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListLocations` call. - * Provide this to retrieve the subsequent page. - * All other parameters except page size should match the call that provided - * the page page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent can be a project, a folder, or an organization. - * The allowed values are: - * * projects/{PROJECT_ID}/locations/{LOCATION} - * (e.g.,"projects/foo-bar/locations/us-central1") - * * projects/{PROJECT_NUMBER}/locations/{LOCATION} - * (e.g.,"projects/12345678/locations/us-central1") - * * folders/{FOLDER_NUMBER}/locations/{LOCATION} - * (e.g.,"folders/1234567/locations/us-central1") - * * organizations/{ORGANIZATION_NUMBER}/locations/{LOCATION} - * (e.g.,"organizations/123456/locations/us-central1") - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Parent can be a project, a folder, or an organization. - * The allowed values are: - * * projects/{PROJECT_ID}/locations/{LOCATION} - * (e.g.,"projects/foo-bar/locations/us-central1") - * * projects/{PROJECT_NUMBER}/locations/{LOCATION} - * (e.g.,"projects/12345678/locations/us-central1") - * * folders/{FOLDER_NUMBER}/locations/{LOCATION} - * (e.g.,"folders/1234567/locations/us-central1") - * * organizations/{ORGANIZATION_NUMBER}/locations/{LOCATION} - * (e.g.,"organizations/123456/locations/us-central1") - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. If unspecified, at most 50 products will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. If unspecified, at most 50 products will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListLocations` call. - * Provide this to retrieve the subsequent page. - * All other parameters except page size should match the call that provided - * the page page token. - * - * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListLocations` call. - * Provide this to retrieve the subsequent page. - * All other parameters except page size should match the call that provided - * the page page token. - * - * 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; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryProductsResponse.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryProductsResponse.php deleted file mode 100644 index ef9d081f1c9..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryProductsResponse.php +++ /dev/null @@ -1,143 +0,0 @@ -google.cloud.databasecenter.v1beta.QueryProductsResponse - */ -class QueryProductsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of database products returned. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Product products = 1; - */ - private $products; - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DatabaseCenter\V1beta\Product>|\Google\Protobuf\Internal\RepeatedField $products - * List of database products returned. - * @type string $next_page_token - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * List of database products returned. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Product products = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getProducts() - { - return $this->products; - } - - /** - * List of database products returned. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Product products = 1; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\Product>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setProducts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\Product::class); - $this->products = $arr; - - return $this; - } - - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages - * - * 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; - } - - /** - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/RecommendationInfo.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/RecommendationInfo.php deleted file mode 100644 index 59f583c6008..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/RecommendationInfo.php +++ /dev/null @@ -1,179 +0,0 @@ -google.cloud.databasecenter.v1beta.RecommendationInfo - */ -class RecommendationInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Name of recommendation. - * Examples: - * organizations/1234/locations/us-central1/recommenders/google.cloudsql.instance.PerformanceRecommender/recommendations/9876 - * - * Generated from protobuf field string recommender = 1; - */ - protected $recommender = ''; - /** - * ID of recommender. - * Examples: "google.cloudsql.instance.PerformanceRecommender" - * - * Generated from protobuf field string recommender_id = 2; - */ - protected $recommender_id = ''; - /** - * Contains an identifier for a subtype of recommendations produced for the - * same recommender. Subtype is a function of content and impact, meaning a - * new subtype might be added when significant changes to `content` or - * `primary_impact.category` are introduced. See the Recommenders section - * to see a list of subtypes for a given Recommender. - * Examples: - * For recommender = "google.cloudsql.instance.PerformanceRecommender", - * recommender_subtype can be - * "MYSQL_HIGH_NUMBER_OF_OPEN_TABLES_BEST_PRACTICE"/"POSTGRES_HIGH_TRANSACTION_ID_UTILIZATION_BEST_PRACTICE" - * - * Generated from protobuf field string recommender_subtype = 3; - */ - protected $recommender_subtype = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $recommender - * Name of recommendation. - * Examples: - * organizations/1234/locations/us-central1/recommenders/google.cloudsql.instance.PerformanceRecommender/recommendations/9876 - * @type string $recommender_id - * ID of recommender. - * Examples: "google.cloudsql.instance.PerformanceRecommender" - * @type string $recommender_subtype - * Contains an identifier for a subtype of recommendations produced for the - * same recommender. Subtype is a function of content and impact, meaning a - * new subtype might be added when significant changes to `content` or - * `primary_impact.category` are introduced. See the Recommenders section - * to see a list of subtypes for a given Recommender. - * Examples: - * For recommender = "google.cloudsql.instance.PerformanceRecommender", - * recommender_subtype can be - * "MYSQL_HIGH_NUMBER_OF_OPEN_TABLES_BEST_PRACTICE"/"POSTGRES_HIGH_TRANSACTION_ID_UTILIZATION_BEST_PRACTICE" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); - parent::__construct($data); - } - - /** - * Name of recommendation. - * Examples: - * organizations/1234/locations/us-central1/recommenders/google.cloudsql.instance.PerformanceRecommender/recommendations/9876 - * - * Generated from protobuf field string recommender = 1; - * @return string - */ - public function getRecommender() - { - return $this->recommender; - } - - /** - * Name of recommendation. - * Examples: - * organizations/1234/locations/us-central1/recommenders/google.cloudsql.instance.PerformanceRecommender/recommendations/9876 - * - * Generated from protobuf field string recommender = 1; - * @param string $var - * @return $this - */ - public function setRecommender($var) - { - GPBUtil::checkString($var, True); - $this->recommender = $var; - - return $this; - } - - /** - * ID of recommender. - * Examples: "google.cloudsql.instance.PerformanceRecommender" - * - * Generated from protobuf field string recommender_id = 2; - * @return string - */ - public function getRecommenderId() - { - return $this->recommender_id; - } - - /** - * ID of recommender. - * Examples: "google.cloudsql.instance.PerformanceRecommender" - * - * Generated from protobuf field string recommender_id = 2; - * @param string $var - * @return $this - */ - public function setRecommenderId($var) - { - GPBUtil::checkString($var, True); - $this->recommender_id = $var; - - return $this; - } - - /** - * Contains an identifier for a subtype of recommendations produced for the - * same recommender. Subtype is a function of content and impact, meaning a - * new subtype might be added when significant changes to `content` or - * `primary_impact.category` are introduced. See the Recommenders section - * to see a list of subtypes for a given Recommender. - * Examples: - * For recommender = "google.cloudsql.instance.PerformanceRecommender", - * recommender_subtype can be - * "MYSQL_HIGH_NUMBER_OF_OPEN_TABLES_BEST_PRACTICE"/"POSTGRES_HIGH_TRANSACTION_ID_UTILIZATION_BEST_PRACTICE" - * - * Generated from protobuf field string recommender_subtype = 3; - * @return string - */ - public function getRecommenderSubtype() - { - return $this->recommender_subtype; - } - - /** - * Contains an identifier for a subtype of recommendations produced for the - * same recommender. Subtype is a function of content and impact, meaning a - * new subtype might be added when significant changes to `content` or - * `primary_impact.category` are introduced. See the Recommenders section - * to see a list of subtypes for a given Recommender. - * Examples: - * For recommender = "google.cloudsql.instance.PerformanceRecommender", - * recommender_subtype can be - * "MYSQL_HIGH_NUMBER_OF_OPEN_TABLES_BEST_PRACTICE"/"POSTGRES_HIGH_TRANSACTION_ID_UTILIZATION_BEST_PRACTICE" - * - * Generated from protobuf field string recommender_subtype = 3; - * @param string $var - * @return $this - */ - public function setRecommenderSubtype($var) - { - GPBUtil::checkString($var, True); - $this->recommender_subtype = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/RegulatoryStandard.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/RegulatoryStandard.php deleted file mode 100644 index f8e5afc848a..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/RegulatoryStandard.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.databasecenter.v1beta.RegulatoryStandard - */ -class RegulatoryStandard extends \Google\Protobuf\Internal\Message -{ - /** - * Name of industry compliance standards, such as such as CIS, PCI, and - * OWASP. - * - * Generated from protobuf field string standard = 1; - */ - protected $standard = ''; - /** - * Version of the standard or benchmark, for example, 1.1. - * - * Generated from protobuf field string version = 2; - */ - protected $version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $standard - * Name of industry compliance standards, such as such as CIS, PCI, and - * OWASP. - * @type string $version - * Version of the standard or benchmark, for example, 1.1. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); - parent::__construct($data); - } - - /** - * Name of industry compliance standards, such as such as CIS, PCI, and - * OWASP. - * - * Generated from protobuf field string standard = 1; - * @return string - */ - public function getStandard() - { - return $this->standard; - } - - /** - * Name of industry compliance standards, such as such as CIS, PCI, and - * OWASP. - * - * Generated from protobuf field string standard = 1; - * @param string $var - * @return $this - */ - public function setStandard($var) - { - GPBUtil::checkString($var, True); - $this->standard = $var; - - return $this; - } - - /** - * Version of the standard or benchmark, for example, 1.1. - * - * Generated from protobuf field string version = 2; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Version of the standard or benchmark, for example, 1.1. - * - * 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; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceCategory.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceCategory.php deleted file mode 100644 index 1e62a3b8b66..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceCategory.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.databasecenter.v1beta.ResourceCategory - */ -class ResourceCategory -{ - /** - * Unspecified. - * - * Generated from protobuf enum RESOURCE_CATEGORY_UNSPECIFIED = 0; - */ - const RESOURCE_CATEGORY_UNSPECIFIED = 0; - /** - * A resource that is an Instance. - * - * Generated from protobuf enum INSTANCE = 1; - */ - const INSTANCE = 1; - /** - * A resource that is a Cluster. - * - * Generated from protobuf enum CLUSTER = 2; - */ - const CLUSTER = 2; - /** - * A resource that is a Database. - * - * Generated from protobuf enum DATABASE = 3; - */ - const DATABASE = 3; - - private static $valueToName = [ - self::RESOURCE_CATEGORY_UNSPECIFIED => 'RESOURCE_CATEGORY_UNSPECIFIED', - self::INSTANCE => 'INSTANCE', - self::CLUSTER => 'CLUSTER', - self::DATABASE => 'DATABASE', - ]; - - 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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceDetails.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceDetails.php deleted file mode 100644 index 2b35ea8a5cd..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceDetails.php +++ /dev/null @@ -1,184 +0,0 @@ -google.cloud.databasecenter.v1beta.ResourceDetails - */ -class ResourceDetails extends \Google\Protobuf\Internal\Message -{ - /** - * Full resource name of the resource. - * - * Generated from protobuf field string full_resource_name = 1; - */ - protected $full_resource_name = ''; - /** - * Specifies where the resource is created. For Google Cloud resources, it is - * the full name of the project. - * - * Generated from protobuf field string container = 2; - */ - protected $container = ''; - /** - * Product type of the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Product product = 3; - */ - protected $product = null; - /** - * Location of the resource. - * - * Generated from protobuf field string location = 4; - */ - protected $location = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $full_resource_name - * Full resource name of the resource. - * @type string $container - * Specifies where the resource is created. For Google Cloud resources, it is - * the full name of the project. - * @type \Google\Cloud\DatabaseCenter\V1beta\Product $product - * Product type of the resource. - * @type string $location - * Location of the resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Full resource name of the resource. - * - * Generated from protobuf field string full_resource_name = 1; - * @return string - */ - public function getFullResourceName() - { - return $this->full_resource_name; - } - - /** - * Full resource name of the resource. - * - * Generated from protobuf field string full_resource_name = 1; - * @param string $var - * @return $this - */ - public function setFullResourceName($var) - { - GPBUtil::checkString($var, True); - $this->full_resource_name = $var; - - return $this; - } - - /** - * Specifies where the resource is created. For Google Cloud resources, it is - * the full name of the project. - * - * Generated from protobuf field string container = 2; - * @return string - */ - public function getContainer() - { - return $this->container; - } - - /** - * Specifies where the resource is created. For Google Cloud resources, it is - * the full name of the project. - * - * Generated from protobuf field string container = 2; - * @param string $var - * @return $this - */ - public function setContainer($var) - { - GPBUtil::checkString($var, True); - $this->container = $var; - - return $this; - } - - /** - * Product type of the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Product product = 3; - * @return \Google\Cloud\DatabaseCenter\V1beta\Product|null - */ - public function getProduct() - { - return $this->product; - } - - public function hasProduct() - { - return isset($this->product); - } - - public function clearProduct() - { - unset($this->product); - } - - /** - * Product type of the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Product product = 3; - * @param \Google\Cloud\DatabaseCenter\V1beta\Product $var - * @return $this - */ - public function setProduct($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\Product::class); - $this->product = $var; - - return $this; - } - - /** - * Location of the resource. - * - * Generated from protobuf field string location = 4; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Location of the resource. - * - * Generated from protobuf field string location = 4; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceMaintenanceDenySchedule.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceMaintenanceDenySchedule.php deleted file mode 100644 index 5eb5aba10da..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceMaintenanceDenySchedule.php +++ /dev/null @@ -1,171 +0,0 @@ -google.cloud.databasecenter.v1beta.ResourceMaintenanceDenySchedule - */ -class ResourceMaintenanceDenySchedule extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The start date of the deny maintenance period. - * - * Generated from protobuf field .google.type.Date start_date = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $start_date = null; - /** - * Optional. Deny period end date. - * - * Generated from protobuf field .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $end_date = null; - /** - * Optional. Time in UTC when the deny period starts on start_date and ends on - * end_date. - * - * Generated from protobuf field .google.type.TimeOfDay time = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Type\Date $start_date - * Optional. The start date of the deny maintenance period. - * @type \Google\Type\Date $end_date - * Optional. Deny period end date. - * @type \Google\Type\TimeOfDay $time - * Optional. Time in UTC when the deny period starts on start_date and ends on - * end_date. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Maintenance::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The start date of the deny maintenance period. - * - * Generated from protobuf field .google.type.Date start_date = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Type\Date|null - */ - public function getStartDate() - { - return $this->start_date; - } - - public function hasStartDate() - { - return isset($this->start_date); - } - - public function clearStartDate() - { - unset($this->start_date); - } - - /** - * Optional. The start date of the deny maintenance period. - * - * Generated from protobuf field .google.type.Date start_date = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Type\Date $var - * @return $this - */ - public function setStartDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->start_date = $var; - - return $this; - } - - /** - * Optional. Deny period end date. - * - * Generated from protobuf field .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Type\Date|null - */ - public function getEndDate() - { - return $this->end_date; - } - - public function hasEndDate() - { - return isset($this->end_date); - } - - public function clearEndDate() - { - unset($this->end_date); - } - - /** - * Optional. Deny period end date. - * - * Generated from protobuf field .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Type\Date $var - * @return $this - */ - public function setEndDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->end_date = $var; - - return $this; - } - - /** - * Optional. Time in UTC when the deny period starts on start_date and ends on - * end_date. - * - * Generated from protobuf field .google.type.TimeOfDay time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Type\TimeOfDay|null - */ - public function getTime() - { - return $this->time; - } - - public function hasTime() - { - return isset($this->time); - } - - public function clearTime() - { - unset($this->time); - } - - /** - * Optional. Time in UTC when the deny period starts on start_date and ends on - * end_date. - * - * Generated from protobuf field .google.type.TimeOfDay time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Type\TimeOfDay $var - * @return $this - */ - public function setTime($var) - { - GPBUtil::checkMessage($var, \Google\Type\TimeOfDay::class); - $this->time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceMaintenanceSchedule.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceMaintenanceSchedule.php deleted file mode 100644 index f77366e5832..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceMaintenanceSchedule.php +++ /dev/null @@ -1,174 +0,0 @@ -google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule - */ -class ResourceMaintenanceSchedule extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Preferred time to start the maintenance operation on the - * specified day. - * - * Generated from protobuf field .google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $start_time = null; - /** - * Optional. Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, - * etc. - * - * Generated from protobuf field .google.type.DayOfWeek day = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $day = 0; - /** - * Optional. Phase of the maintenance window. This is to capture order of - * maintenance. For example, for Cloud SQL resources, this can be used to - * capture if the maintenance window is in Week1, Week2, Week5, etc. Non - * production resources are usually part of early phase. - * For more details, refer to Cloud SQL resources - - * https://cloud.google.com/sql/docs/mysql/maintenance - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Phase phase = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $phase = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Type\TimeOfDay $start_time - * Optional. Preferred time to start the maintenance operation on the - * specified day. - * @type int $day - * Optional. Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, - * etc. - * @type int $phase - * Optional. Phase of the maintenance window. This is to capture order of - * maintenance. For example, for Cloud SQL resources, this can be used to - * capture if the maintenance window is in Week1, Week2, Week5, etc. Non - * production resources are usually part of early phase. - * For more details, refer to Cloud SQL resources - - * https://cloud.google.com/sql/docs/mysql/maintenance - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Maintenance::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Preferred time to start the maintenance operation on the - * specified day. - * - * Generated from protobuf field .google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Type\TimeOfDay|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Optional. Preferred time to start the maintenance operation on the - * specified day. - * - * Generated from protobuf field .google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Type\TimeOfDay $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Type\TimeOfDay::class); - $this->start_time = $var; - - return $this; - } - - /** - * Optional. Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, - * etc. - * - * Generated from protobuf field .google.type.DayOfWeek day = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getDay() - { - return $this->day; - } - - /** - * Optional. Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, - * etc. - * - * Generated from protobuf field .google.type.DayOfWeek day = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setDay($var) - { - GPBUtil::checkEnum($var, \Google\Type\DayOfWeek::class); - $this->day = $var; - - return $this; - } - - /** - * Optional. Phase of the maintenance window. This is to capture order of - * maintenance. For example, for Cloud SQL resources, this can be used to - * capture if the maintenance window is in Week1, Week2, Week5, etc. Non - * production resources are usually part of early phase. - * For more details, refer to Cloud SQL resources - - * https://cloud.google.com/sql/docs/mysql/maintenance - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Phase phase = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPhase() - { - return $this->phase; - } - - /** - * Optional. Phase of the maintenance window. This is to capture order of - * maintenance. For example, for Cloud SQL resources, this can be used to - * capture if the maintenance window is in Week1, Week2, Week5, etc. Non - * production resources are usually part of early phase. - * For more details, refer to Cloud SQL resources - - * https://cloud.google.com/sql/docs/mysql/maintenance - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Phase phase = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPhase($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\Phase::class); - $this->phase = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceSuspensionInfo.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceSuspensionInfo.php deleted file mode 100644 index 49c82220b5e..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceSuspensionInfo.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.databasecenter.v1beta.ResourceSuspensionInfo - */ -class ResourceSuspensionInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Is resource suspended. - * - * Generated from protobuf field bool resource_suspended = 1; - */ - protected $resource_suspended = false; - /** - * Suspension reason for the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SuspensionReason suspension_reason = 2; - */ - protected $suspension_reason = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $resource_suspended - * Is resource suspended. - * @type int $suspension_reason - * Suspension reason for the resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); - parent::__construct($data); - } - - /** - * Is resource suspended. - * - * Generated from protobuf field bool resource_suspended = 1; - * @return bool - */ - public function getResourceSuspended() - { - return $this->resource_suspended; - } - - /** - * Is resource suspended. - * - * Generated from protobuf field bool resource_suspended = 1; - * @param bool $var - * @return $this - */ - public function setResourceSuspended($var) - { - GPBUtil::checkBool($var); - $this->resource_suspended = $var; - - return $this; - } - - /** - * Suspension reason for the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SuspensionReason suspension_reason = 2; - * @return int - */ - public function getSuspensionReason() - { - return $this->suspension_reason; - } - - /** - * Suspension reason for the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SuspensionReason suspension_reason = 2; - * @param int $var - * @return $this - */ - public function setSuspensionReason($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\SuspensionReason::class); - $this->suspension_reason = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/RetentionSettingsInfo.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/RetentionSettingsInfo.php deleted file mode 100644 index a3de0d106ea..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/RetentionSettingsInfo.php +++ /dev/null @@ -1,212 +0,0 @@ -google.cloud.databasecenter.v1beta.RetentionSettingsInfo - */ -class RetentionSettingsInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Sub resource details associated with the backup configuration. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResource sub_resource = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $sub_resource = null; - protected $retention; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Int32Value $quantity_based_retention - * Number of backups that will be retained. - * @type \Google\Protobuf\Duration $duration_based_retention - * Duration based retention period i.e. 172800 seconds (2 days) - * @type \Google\Protobuf\Timestamp $timestamp_based_retention_time - * Timestamp based retention period i.e. till 2024-05-01T00:00:00Z - * @type \Google\Cloud\DatabaseCenter\V1beta\SubResource $sub_resource - * Optional. Sub resource details associated with the backup configuration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); - parent::__construct($data); - } - - /** - * Number of backups that will be retained. - * - * Generated from protobuf field .google.protobuf.Int32Value quantity_based_retention = 3; - * @return \Google\Protobuf\Int32Value|null - */ - public function getQuantityBasedRetention() - { - return $this->readOneof(3); - } - - public function hasQuantityBasedRetention() - { - return $this->hasOneof(3); - } - - /** - * Returns the unboxed value from getQuantityBasedRetention() - - * Number of backups that will be retained. - * - * Generated from protobuf field .google.protobuf.Int32Value quantity_based_retention = 3; - * @return int|null - */ - public function getQuantityBasedRetentionUnwrapped() - { - return $this->readWrapperValue("quantity_based_retention"); - } - - /** - * Number of backups that will be retained. - * - * Generated from protobuf field .google.protobuf.Int32Value quantity_based_retention = 3; - * @param \Google\Protobuf\Int32Value $var - * @return $this - */ - public function setQuantityBasedRetention($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. - - * Number of backups that will be retained. - * - * Generated from protobuf field .google.protobuf.Int32Value quantity_based_retention = 3; - * @param int|null $var - * @return $this - */ - public function setQuantityBasedRetentionUnwrapped($var) - { - $this->writeWrapperValue("quantity_based_retention", $var); - return $this;} - - /** - * Duration based retention period i.e. 172800 seconds (2 days) - * - * Generated from protobuf field .google.protobuf.Duration duration_based_retention = 5; - * @return \Google\Protobuf\Duration|null - */ - public function getDurationBasedRetention() - { - return $this->readOneof(5); - } - - public function hasDurationBasedRetention() - { - return $this->hasOneof(5); - } - - /** - * Duration based retention period i.e. 172800 seconds (2 days) - * - * Generated from protobuf field .google.protobuf.Duration duration_based_retention = 5; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setDurationBasedRetention($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Timestamp based retention period i.e. till 2024-05-01T00:00:00Z - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp_based_retention_time = 6; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTimestampBasedRetentionTime() - { - return $this->readOneof(6); - } - - public function hasTimestampBasedRetentionTime() - { - return $this->hasOneof(6); - } - - /** - * Timestamp based retention period i.e. till 2024-05-01T00:00:00Z - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp_based_retention_time = 6; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTimestampBasedRetentionTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Optional. Sub resource details associated with the backup configuration. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResource sub_resource = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\DatabaseCenter\V1beta\SubResource|null - */ - public function getSubResource() - { - return $this->sub_resource; - } - - public function hasSubResource() - { - return isset($this->sub_resource); - } - - public function clearSubResource() - { - unset($this->sub_resource); - } - - /** - * Optional. Sub resource details associated with the backup configuration. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResource sub_resource = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\DatabaseCenter\V1beta\SubResource $var - * @return $this - */ - public function setSubResource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\SubResource::class); - $this->sub_resource = $var; - - return $this; - } - - /** - * @return string - */ - public function getRetention() - { - return $this->whichOneof("retention"); - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SCCInfo.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SCCInfo.php deleted file mode 100644 index 528a6b075ca..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SCCInfo.php +++ /dev/null @@ -1,169 +0,0 @@ -google.cloud.databasecenter.v1beta.SCCInfo - */ -class SCCInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the signal. - * - * Generated from protobuf field string signal = 1; - */ - protected $signal = ''; - /** - * Name by which SCC calls this signal. - * - * Generated from protobuf field string category = 2; - */ - protected $category = ''; - /** - * Compliances that are associated with the signal. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.RegulatoryStandard regulatory_standards = 3; - */ - private $regulatory_standards; - /** - * External URI which points to a SCC page associated with the signal. - * - * Generated from protobuf field string external_uri = 4; - */ - protected $external_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $signal - * Name of the signal. - * @type string $category - * Name by which SCC calls this signal. - * @type array<\Google\Cloud\DatabaseCenter\V1beta\RegulatoryStandard>|\Google\Protobuf\Internal\RepeatedField $regulatory_standards - * Compliances that are associated with the signal. - * @type string $external_uri - * External URI which points to a SCC page associated with the signal. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); - parent::__construct($data); - } - - /** - * Name of the signal. - * - * Generated from protobuf field string signal = 1; - * @return string - */ - public function getSignal() - { - return $this->signal; - } - - /** - * Name of the signal. - * - * Generated from protobuf field string signal = 1; - * @param string $var - * @return $this - */ - public function setSignal($var) - { - GPBUtil::checkString($var, True); - $this->signal = $var; - - return $this; - } - - /** - * Name by which SCC calls this signal. - * - * Generated from protobuf field string category = 2; - * @return string - */ - public function getCategory() - { - return $this->category; - } - - /** - * Name by which SCC calls this signal. - * - * Generated from protobuf field string category = 2; - * @param string $var - * @return $this - */ - public function setCategory($var) - { - GPBUtil::checkString($var, True); - $this->category = $var; - - return $this; - } - - /** - * Compliances that are associated with the signal. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.RegulatoryStandard regulatory_standards = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRegulatoryStandards() - { - return $this->regulatory_standards; - } - - /** - * Compliances that are associated with the signal. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.RegulatoryStandard regulatory_standards = 3; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\RegulatoryStandard>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRegulatoryStandards($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\RegulatoryStandard::class); - $this->regulatory_standards = $arr; - - return $this; - } - - /** - * External URI which points to a SCC page associated with the signal. - * - * Generated from protobuf field string external_uri = 4; - * @return string - */ - public function getExternalUri() - { - return $this->external_uri; - } - - /** - * External URI which points to a SCC page associated with the signal. - * - * Generated from protobuf field string external_uri = 4; - * @param string $var - * @return $this - */ - public function setExternalUri($var) - { - GPBUtil::checkString($var, True); - $this->external_uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Signal.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Signal.php deleted file mode 100644 index 551aa670ecb..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Signal.php +++ /dev/null @@ -1,233 +0,0 @@ -google.cloud.databasecenter.v1beta.Signal - */ -class Signal extends \Google\Protobuf\Internal\Message -{ - /** - * Type of the signal. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 1; - */ - protected $signal_type = 0; - /** - * Status of the signal. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalStatus signal_status = 2; - */ - protected $signal_status = 0; - /** - * Additional information related to the signal. - * In the case of composite signals, this field encapsulates details - * associated with granular signals, having a signal status of "ISSUE"; - * signals with a status of "OK" are not included. - * For granular signals, it encompasses information relevant to the signal, - * regardless of the signal status. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.AdditionalDetail additional_details = 3; - */ - private $additional_details; - /** - * Severity of the issue. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.IssueSeverity issue_severity = 4; - */ - protected $issue_severity = 0; - /** - * Timestamp when the issue was created (when signal status is ISSUE). - * - * Generated from protobuf field .google.protobuf.Timestamp issue_create_time = 5; - */ - protected $issue_create_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $signal_type - * Type of the signal. - * @type int $signal_status - * Status of the signal. - * @type array<\Google\Cloud\DatabaseCenter\V1beta\AdditionalDetail>|\Google\Protobuf\Internal\RepeatedField $additional_details - * Additional information related to the signal. - * In the case of composite signals, this field encapsulates details - * associated with granular signals, having a signal status of "ISSUE"; - * signals with a status of "OK" are not included. - * For granular signals, it encompasses information relevant to the signal, - * regardless of the signal status. - * @type int $issue_severity - * Severity of the issue. - * @type \Google\Protobuf\Timestamp $issue_create_time - * Timestamp when the issue was created (when signal status is ISSUE). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); - parent::__construct($data); - } - - /** - * Type of the signal. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 1; - * @return int - */ - public function getSignalType() - { - return $this->signal_type; - } - - /** - * Type of the signal. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 1; - * @param int $var - * @return $this - */ - public function setSignalType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\SignalType::class); - $this->signal_type = $var; - - return $this; - } - - /** - * Status of the signal. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalStatus signal_status = 2; - * @return int - */ - public function getSignalStatus() - { - return $this->signal_status; - } - - /** - * Status of the signal. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalStatus signal_status = 2; - * @param int $var - * @return $this - */ - public function setSignalStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\SignalStatus::class); - $this->signal_status = $var; - - return $this; - } - - /** - * Additional information related to the signal. - * In the case of composite signals, this field encapsulates details - * associated with granular signals, having a signal status of "ISSUE"; - * signals with a status of "OK" are not included. - * For granular signals, it encompasses information relevant to the signal, - * regardless of the signal status. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.AdditionalDetail additional_details = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAdditionalDetails() - { - return $this->additional_details; - } - - /** - * Additional information related to the signal. - * In the case of composite signals, this field encapsulates details - * associated with granular signals, having a signal status of "ISSUE"; - * signals with a status of "OK" are not included. - * For granular signals, it encompasses information relevant to the signal, - * regardless of the signal status. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.AdditionalDetail additional_details = 3; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\AdditionalDetail>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAdditionalDetails($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\AdditionalDetail::class); - $this->additional_details = $arr; - - return $this; - } - - /** - * Severity of the issue. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.IssueSeverity issue_severity = 4; - * @return int - */ - public function getIssueSeverity() - { - return $this->issue_severity; - } - - /** - * Severity of the issue. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.IssueSeverity issue_severity = 4; - * @param int $var - * @return $this - */ - public function setIssueSeverity($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\IssueSeverity::class); - $this->issue_severity = $var; - - return $this; - } - - /** - * Timestamp when the issue was created (when signal status is ISSUE). - * - * Generated from protobuf field .google.protobuf.Timestamp issue_create_time = 5; - * @return \Google\Protobuf\Timestamp|null - */ - public function getIssueCreateTime() - { - return $this->issue_create_time; - } - - public function hasIssueCreateTime() - { - return isset($this->issue_create_time); - } - - public function clearIssueCreateTime() - { - unset($this->issue_create_time); - } - - /** - * Timestamp when the issue was created (when signal status is ISSUE). - * - * Generated from protobuf field .google.protobuf.Timestamp issue_create_time = 5; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setIssueCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->issue_create_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalFilter.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalFilter.php deleted file mode 100644 index 6d25a56a3f9..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalFilter.php +++ /dev/null @@ -1,113 +0,0 @@ -google.cloud.databasecenter.v1beta.SignalFilter - */ -class SignalFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Represents the type of the Signal for which the filter is for. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $signal_type = 0; - /** - * Optional. Represents the status of the Signal for which the filter is for. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalStatus signal_status = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $signal_status = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $signal_type - * Optional. Represents the type of the Signal for which the filter is for. - * @type int $signal_status - * Optional. Represents the status of the Signal for which the filter is for. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Represents the type of the Signal for which the filter is for. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSignalType() - { - return $this->signal_type; - } - - /** - * Optional. Represents the type of the Signal for which the filter is for. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSignalType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\SignalType::class); - $this->signal_type = $var; - - return $this; - } - - /** - * Optional. Represents the status of the Signal for which the filter is for. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalStatus signal_status = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSignalStatus() - { - return $this->signal_status; - } - - /** - * Optional. Represents the status of the Signal for which the filter is for. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalStatus signal_status = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSignalStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\SignalStatus::class); - $this->signal_status = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalGroup.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalGroup.php deleted file mode 100644 index 0bc20d23a55..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalGroup.php +++ /dev/null @@ -1,147 +0,0 @@ -google.cloud.databasecenter.v1beta.SignalGroup - */ -class SignalGroup extends \Google\Protobuf\Internal\Message -{ - /** - * Title of a signal group corresponding to the request. - * - * Generated from protobuf field string display_name = 1; - */ - protected $display_name = ''; - /** - * When applied to a DatabaseResource represents count of issues associated - * with the resource. A signal is an issue when its SignalStatus field is - * set to SIGNAL_STATUS_ISSUE. - * - * Generated from protobuf field int32 issue_count = 2; - */ - protected $issue_count = 0; - /** - * List of signals present in the group and associated with the resource. - * Only applies to a DatabaseResource. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Signal signals = 3; - */ - private $signals; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Title of a signal group corresponding to the request. - * @type int $issue_count - * When applied to a DatabaseResource represents count of issues associated - * with the resource. A signal is an issue when its SignalStatus field is - * set to SIGNAL_STATUS_ISSUE. - * @type array<\Google\Cloud\DatabaseCenter\V1beta\Signal>|\Google\Protobuf\Internal\RepeatedField $signals - * List of signals present in the group and associated with the resource. - * Only applies to a DatabaseResource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); - parent::__construct($data); - } - - /** - * Title of a signal group corresponding to the request. - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Title of a signal group corresponding to the request. - * - * 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; - } - - /** - * When applied to a DatabaseResource represents count of issues associated - * with the resource. A signal is an issue when its SignalStatus field is - * set to SIGNAL_STATUS_ISSUE. - * - * Generated from protobuf field int32 issue_count = 2; - * @return int - */ - public function getIssueCount() - { - return $this->issue_count; - } - - /** - * When applied to a DatabaseResource represents count of issues associated - * with the resource. A signal is an issue when its SignalStatus field is - * set to SIGNAL_STATUS_ISSUE. - * - * Generated from protobuf field int32 issue_count = 2; - * @param int $var - * @return $this - */ - public function setIssueCount($var) - { - GPBUtil::checkInt32($var); - $this->issue_count = $var; - - return $this; - } - - /** - * List of signals present in the group and associated with the resource. - * Only applies to a DatabaseResource. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Signal signals = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSignals() - { - return $this->signals; - } - - /** - * List of signals present in the group and associated with the resource. - * Only applies to a DatabaseResource. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Signal signals = 3; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\Signal>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSignals($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\Signal::class); - $this->signals = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalProductsFilters.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalProductsFilters.php deleted file mode 100644 index 74fef9fb5f7..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalProductsFilters.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.databasecenter.v1beta.SignalProductsFilters - */ -class SignalProductsFilters extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The type of signal. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $signal_type = 0; - /** - * Optional. Product type of the resource. The version of the product will be - * ignored in filtering. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $products; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $signal_type - * Optional. The type of signal. - * @type array<\Google\Cloud\DatabaseCenter\V1beta\Product>|\Google\Protobuf\Internal\RepeatedField $products - * Optional. Product type of the resource. The version of the product will be - * ignored in filtering. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The type of signal. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSignalType() - { - return $this->signal_type; - } - - /** - * Optional. The type of signal. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSignalType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\SignalType::class); - $this->signal_type = $var; - - return $this; - } - - /** - * Optional. Product type of the resource. The version of the product will be - * ignored in filtering. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getProducts() - { - return $this->products; - } - - /** - * Optional. Product type of the resource. The version of the product will be - * ignored in filtering. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\Product>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setProducts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\Product::class); - $this->products = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalSource.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalSource.php deleted file mode 100644 index 8fbd07a9964..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalSource.php +++ /dev/null @@ -1,76 +0,0 @@ -google.cloud.databasecenter.v1beta.SignalSource - */ -class SignalSource -{ - /** - * Unspecified. - * - * Generated from protobuf enum SIGNAL_SOURCE_UNSPECIFIED = 0; - */ - const SIGNAL_SOURCE_UNSPECIFIED = 0; - /** - * Signal comes from resource metadata. - * - * Generated from protobuf enum SIGNAL_SOURCE_RESOURCE_METADATA = 1; - */ - const SIGNAL_SOURCE_RESOURCE_METADATA = 1; - /** - * Signal comes from SCC findings. - * - * Generated from protobuf enum SIGNAL_SOURCE_SECURITY_FINDINGS = 2; - */ - const SIGNAL_SOURCE_SECURITY_FINDINGS = 2; - /** - * Signal comes from recommender hub. - * - * Generated from protobuf enum SIGNAL_SOURCE_RECOMMENDER = 3; - */ - const SIGNAL_SOURCE_RECOMMENDER = 3; - /** - * Signal comes from modern observability platform. - * - * Generated from protobuf enum SIGNAL_SOURCE_MODERN_OBSERVABILITY = 4; - */ - const SIGNAL_SOURCE_MODERN_OBSERVABILITY = 4; - - private static $valueToName = [ - self::SIGNAL_SOURCE_UNSPECIFIED => 'SIGNAL_SOURCE_UNSPECIFIED', - self::SIGNAL_SOURCE_RESOURCE_METADATA => 'SIGNAL_SOURCE_RESOURCE_METADATA', - self::SIGNAL_SOURCE_SECURITY_FINDINGS => 'SIGNAL_SOURCE_SECURITY_FINDINGS', - self::SIGNAL_SOURCE_RECOMMENDER => 'SIGNAL_SOURCE_RECOMMENDER', - self::SIGNAL_SOURCE_MODERN_OBSERVABILITY => 'SIGNAL_SOURCE_MODERN_OBSERVABILITY', - ]; - - 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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalStatus.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalStatus.php deleted file mode 100644 index 3ea2aa93cf6..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalStatus.php +++ /dev/null @@ -1,76 +0,0 @@ -google.cloud.databasecenter.v1beta.SignalStatus - */ -class SignalStatus -{ - /** - * Unspecified. - * - * Generated from protobuf enum SIGNAL_STATUS_UNSPECIFIED = 0; - */ - const SIGNAL_STATUS_UNSPECIFIED = 0; - /** - * Signal is not applicable to the resource. - * - * Generated from protobuf enum SIGNAL_STATUS_NOT_APPLICABLE = 1; - */ - const SIGNAL_STATUS_NOT_APPLICABLE = 1; - /** - * Signal is not an issue. - * - * Generated from protobuf enum SIGNAL_STATUS_OK = 2; - */ - const SIGNAL_STATUS_OK = 2; - /** - * Signal is an issue. - * - * Generated from protobuf enum SIGNAL_STATUS_ISSUE = 3; - */ - const SIGNAL_STATUS_ISSUE = 3; - /** - * Signal is not enabled for the resource. - * - * Generated from protobuf enum SIGNAL_STATUS_NOT_ENABLED = 4; - */ - const SIGNAL_STATUS_NOT_ENABLED = 4; - - private static $valueToName = [ - self::SIGNAL_STATUS_UNSPECIFIED => 'SIGNAL_STATUS_UNSPECIFIED', - self::SIGNAL_STATUS_NOT_APPLICABLE => 'SIGNAL_STATUS_NOT_APPLICABLE', - self::SIGNAL_STATUS_OK => 'SIGNAL_STATUS_OK', - self::SIGNAL_STATUS_ISSUE => 'SIGNAL_STATUS_ISSUE', - self::SIGNAL_STATUS_NOT_ENABLED => 'SIGNAL_STATUS_NOT_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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalType.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalType.php deleted file mode 100644 index 4688618ef12..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalType.php +++ /dev/null @@ -1,775 +0,0 @@ -google.cloud.databasecenter.v1beta.SignalType - */ -class SignalType -{ - /** - * Unspecified. - * - * Generated from protobuf enum SIGNAL_TYPE_UNSPECIFIED = 0; - */ - const SIGNAL_TYPE_UNSPECIFIED = 0; - /** - * Represents if a resource is protected by automatic failover. - * Checks for resources that are configured to have redundancy - * within a region that enables automatic failover. - * - * Generated from protobuf enum SIGNAL_TYPE_RESOURCE_FAILOVER_PROTECTED = 1; - */ - const SIGNAL_TYPE_RESOURCE_FAILOVER_PROTECTED = 1; - /** - * Represents if a group is replicating across regions. - * Checks for resources that are configured to have redundancy, - * and ongoing replication, across regions. - * - * Generated from protobuf enum SIGNAL_TYPE_GROUP_MULTIREGIONAL = 2; - */ - const SIGNAL_TYPE_GROUP_MULTIREGIONAL = 2; - /** - * Represents if a resource has an automated backup policy. - * - * Generated from protobuf enum SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY = 4; - */ - const SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY = 4; - /** - * Represents if a resources has a short backup retention period. - * - * Generated from protobuf enum SIGNAL_TYPE_SHORT_BACKUP_RETENTION = 5; - */ - const SIGNAL_TYPE_SHORT_BACKUP_RETENTION = 5; - /** - * Represents if the last backup of a resource failed. - * - * Generated from protobuf enum SIGNAL_TYPE_LAST_BACKUP_FAILED = 6; - */ - const SIGNAL_TYPE_LAST_BACKUP_FAILED = 6; - /** - * Represents if the last backup of a resource is older than some threshold - * value. - * - * Generated from protobuf enum SIGNAL_TYPE_LAST_BACKUP_OLD = 7; - */ - const SIGNAL_TYPE_LAST_BACKUP_OLD = 7; - /** - * Represents if a resource violates CIS Google Cloud Platform Foundation 2.0. - * - * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_2_0 = 8; - */ - const SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_2_0 = 8; - /** - * Represents if a resource violates CIS Google Cloud Platform Foundation 1.3. - * - * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_3 = 9; - */ - const SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_3 = 9; - /** - * Represents if a resource violates CIS Google Cloud Platform Foundation 1.2. - * - * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_2 = 10; - */ - const SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_2 = 10; - /** - * Represents if a resource violates CIS Google Cloud Platform Foundation 1.1. - * - * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_1 = 11; - */ - const SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_1 = 11; - /** - * Represents if a resource violates CIS Google Cloud Platform Foundation 1.0. - * - * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_0 = 12; - */ - const SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_0 = 12; - /** - * Represents if a resource violates CIS Controls 8.0. - * - * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_CIS_CONTROLS_V8_0 = 76; - */ - const SIGNAL_TYPE_VIOLATES_CIS_CONTROLS_V8_0 = 76; - /** - * Represents if a resource violates NIST 800-53. - * - * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_NIST_800_53 = 13; - */ - const SIGNAL_TYPE_VIOLATES_NIST_800_53 = 13; - /** - * Represents if a resource violates NIST 800-53 R5. - * - * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_NIST_800_53_R5 = 69; - */ - const SIGNAL_TYPE_VIOLATES_NIST_800_53_R5 = 69; - /** - * Represents if a resource violates NIST Cybersecurity Framework 1.0. - * - * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_NIST_CYBERSECURITY_FRAMEWORK_V1_0 = 72; - */ - const SIGNAL_TYPE_VIOLATES_NIST_CYBERSECURITY_FRAMEWORK_V1_0 = 72; - /** - * Represents if a resource violates ISO-27001. - * - * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_ISO_27001 = 14; - */ - const SIGNAL_TYPE_VIOLATES_ISO_27001 = 14; - /** - * Represents if a resource violates ISO 27001 2022. - * - * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_ISO_27001_V2022 = 70; - */ - const SIGNAL_TYPE_VIOLATES_ISO_27001_V2022 = 70; - /** - * Represents if a resource violates PCI-DSS v3.2.1. - * - * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_PCI_DSS_V3_2_1 = 15; - */ - const SIGNAL_TYPE_VIOLATES_PCI_DSS_V3_2_1 = 15; - /** - * Represents if a resource violates PCI-DSS v4.0. - * - * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_PCI_DSS_V4_0 = 71; - */ - const SIGNAL_TYPE_VIOLATES_PCI_DSS_V4_0 = 71; - /** - * Represents if a resource violates Cloud Controls Matrix v4.0. - * - * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_CLOUD_CONTROLS_MATRIX_V4 = 73; - */ - const SIGNAL_TYPE_VIOLATES_CLOUD_CONTROLS_MATRIX_V4 = 73; - /** - * Represents if a resource violates HIPAA. - * - * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_HIPAA = 74; - */ - const SIGNAL_TYPE_VIOLATES_HIPAA = 74; - /** - * Represents if a resource violates SOC2 v2017. - * - * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_SOC2_V2017 = 75; - */ - const SIGNAL_TYPE_VIOLATES_SOC2_V2017 = 75; - /** - * Represents if log_checkpoints database flag for a Cloud SQL for PostgreSQL - * instance is not set to on. - * - * Generated from protobuf enum SIGNAL_TYPE_LOGS_NOT_OPTIMIZED_FOR_TROUBLESHOOTING = 16; - */ - const SIGNAL_TYPE_LOGS_NOT_OPTIMIZED_FOR_TROUBLESHOOTING = 16; - /** - * Represents if the log_duration database flag for a Cloud SQL for PostgreSQL - * instance is not set to on. - * - * Generated from protobuf enum SIGNAL_TYPE_QUERY_DURATIONS_NOT_LOGGED = 17; - */ - const SIGNAL_TYPE_QUERY_DURATIONS_NOT_LOGGED = 17; - /** - * Represents if the log_error_verbosity database flag for a Cloud SQL for - * PostgreSQL instance is not set to default or stricter (default or terse). - * - * Generated from protobuf enum SIGNAL_TYPE_VERBOSE_ERROR_LOGGING = 18; - */ - const SIGNAL_TYPE_VERBOSE_ERROR_LOGGING = 18; - /** - * Represents if the log_lock_waits database flag for a Cloud SQL for - * PostgreSQL instance is not set to on. - * - * Generated from protobuf enum SIGNAL_TYPE_QUERY_LOCK_WAITS_NOT_LOGGED = 19; - */ - const SIGNAL_TYPE_QUERY_LOCK_WAITS_NOT_LOGGED = 19; - /** - * Represents if the log_min_error_statement database flag for a Cloud SQL - * for PostgreSQL instance is not set appropriately. - * - * Generated from protobuf enum SIGNAL_TYPE_LOGGING_MOST_ERRORS = 20; - */ - const SIGNAL_TYPE_LOGGING_MOST_ERRORS = 20; - /** - * Represents if the log_min_error_statement database flag for a Cloud SQL - * for PostgreSQL instance does not have an appropriate severity level. - * - * Generated from protobuf enum SIGNAL_TYPE_LOGGING_ONLY_CRITICAL_ERRORS = 21; - */ - const SIGNAL_TYPE_LOGGING_ONLY_CRITICAL_ERRORS = 21; - /** - * Represents if the log_min_messages database flag for a Cloud SQL for - * PostgreSQL instance is not set to warning or another recommended value. - * - * Generated from protobuf enum SIGNAL_TYPE_MINIMAL_ERROR_LOGGING = 22; - */ - const SIGNAL_TYPE_MINIMAL_ERROR_LOGGING = 22; - /** - * Represents if the databaseFlags property of instance metadata for - * the log_executor_status field is set to on. - * - * Generated from protobuf enum SIGNAL_TYPE_QUERY_STATS_LOGGED = 23; - */ - const SIGNAL_TYPE_QUERY_STATS_LOGGED = 23; - /** - * Represents if the log_hostname database flag for a Cloud SQL for - * PostgreSQL instance is not set to off. - * - * Generated from protobuf enum SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_CLIENT_HOSTNAME = 24; - */ - const SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_CLIENT_HOSTNAME = 24; - /** - * Represents if the log_parser_stats database flag for a Cloud SQL for - * PostgreSQL instance is not set to off. - * - * Generated from protobuf enum SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_PARSER_STATS = 25; - */ - const SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_PARSER_STATS = 25; - /** - * Represents if the log_planner_stats database flag for a Cloud SQL for - * PostgreSQL instance is not set to off. - * - * Generated from protobuf enum SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_PLANNER_STATS = 26; - */ - const SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_PLANNER_STATS = 26; - /** - * Represents if the log_statement database flag for a Cloud SQL for - * PostgreSQL instance is not set to DDL (all data definition statements). - * - * Generated from protobuf enum SIGNAL_TYPE_NOT_LOGGING_ONLY_DDL_STATEMENTS = 27; - */ - const SIGNAL_TYPE_NOT_LOGGING_ONLY_DDL_STATEMENTS = 27; - /** - * Represents if the log_statement_stats database flag for a Cloud SQL for - * PostgreSQL instance is not set to off. - * - * Generated from protobuf enum SIGNAL_TYPE_LOGGING_QUERY_STATS = 28; - */ - const SIGNAL_TYPE_LOGGING_QUERY_STATS = 28; - /** - * Represents if the log_temp_files database flag for a Cloud SQL for - * PostgreSQL instance is not set to "0". (NOTE: 0 = ON) - * - * Generated from protobuf enum SIGNAL_TYPE_NOT_LOGGING_TEMPORARY_FILES = 29; - */ - const SIGNAL_TYPE_NOT_LOGGING_TEMPORARY_FILES = 29; - /** - * Represents if the user connections database flag for a Cloud SQL for SQL - * Server instance is configured. - * - * Generated from protobuf enum SIGNAL_TYPE_CONNECTION_MAX_NOT_CONFIGURED = 30; - */ - const SIGNAL_TYPE_CONNECTION_MAX_NOT_CONFIGURED = 30; - /** - * Represents if the user options database flag for Cloud SQL SQL Server - * instance is configured or not. - * - * Generated from protobuf enum SIGNAL_TYPE_USER_OPTIONS_CONFIGURED = 31; - */ - const SIGNAL_TYPE_USER_OPTIONS_CONFIGURED = 31; - /** - * Represents if a resource is exposed to public access. - * - * Generated from protobuf enum SIGNAL_TYPE_EXPOSED_TO_PUBLIC_ACCESS = 32; - */ - const SIGNAL_TYPE_EXPOSED_TO_PUBLIC_ACCESS = 32; - /** - * Represents if a resources requires all incoming connections to use SSL - * or not. - * - * Generated from protobuf enum SIGNAL_TYPE_UNENCRYPTED_CONNECTIONS = 33; - */ - const SIGNAL_TYPE_UNENCRYPTED_CONNECTIONS = 33; - /** - * Represents if a Cloud SQL database has a password configured for the - * root account or not. - * - * Generated from protobuf enum SIGNAL_TYPE_NO_ROOT_PASSWORD = 34; - */ - const SIGNAL_TYPE_NO_ROOT_PASSWORD = 34; - /** - * Represents if a Cloud SQL database has a weak password configured for the - * root account. - * - * Generated from protobuf enum SIGNAL_TYPE_WEAK_ROOT_PASSWORD = 35; - */ - const SIGNAL_TYPE_WEAK_ROOT_PASSWORD = 35; - /** - * Represents if a SQL database instance is not encrypted with - * customer-managed encryption keys (CMEK). - * - * Generated from protobuf enum SIGNAL_TYPE_ENCRYPTION_KEY_NOT_CUSTOMER_MANAGED = 36; - */ - const SIGNAL_TYPE_ENCRYPTION_KEY_NOT_CUSTOMER_MANAGED = 36; - /** - * Represents if The contained database authentication database flag for a - * Cloud SQL for SQL Server instance is not set to off. - * - * Generated from protobuf enum SIGNAL_TYPE_SERVER_AUTHENTICATION_NOT_REQUIRED = 37; - */ - const SIGNAL_TYPE_SERVER_AUTHENTICATION_NOT_REQUIRED = 37; - /** - * Represents if he external scripts enabled database flag for a Cloud SQL - * for SQL Server instance is not set to off. - * - * Generated from protobuf enum SIGNAL_TYPE_EXPOSED_TO_EXTERNAL_SCRIPTS = 39; - */ - const SIGNAL_TYPE_EXPOSED_TO_EXTERNAL_SCRIPTS = 39; - /** - * Represents if the local_infile database flag for a Cloud SQL for MySQL - * instance is not set to off. - * - * Generated from protobuf enum SIGNAL_TYPE_EXPOSED_TO_LOCAL_DATA_LOADS = 40; - */ - const SIGNAL_TYPE_EXPOSED_TO_LOCAL_DATA_LOADS = 40; - /** - * Represents if the log_connections database flag for a Cloud SQL for - * PostgreSQL instance is not set to on. - * - * Generated from protobuf enum SIGNAL_TYPE_CONNECTION_ATTEMPTS_NOT_LOGGED = 41; - */ - const SIGNAL_TYPE_CONNECTION_ATTEMPTS_NOT_LOGGED = 41; - /** - * Represents if the log_disconnections database flag for a Cloud SQL for - * PostgreSQL instance is not set to on. - * - * Generated from protobuf enum SIGNAL_TYPE_DISCONNECTIONS_NOT_LOGGED = 42; - */ - const SIGNAL_TYPE_DISCONNECTIONS_NOT_LOGGED = 42; - /** - * Represents if the log_min_duration_statement database flag for a Cloud SQL - * for PostgreSQL instance is not set to -1. - * - * Generated from protobuf enum SIGNAL_TYPE_LOGGING_EXCESSIVE_STATEMENT_INFO = 43; - */ - const SIGNAL_TYPE_LOGGING_EXCESSIVE_STATEMENT_INFO = 43; - /** - * Represents if the remote access database flag for a Cloud SQL for SQL - * Server instance is not set to off. - * - * Generated from protobuf enum SIGNAL_TYPE_EXPOSED_TO_REMOTE_ACCESS = 44; - */ - const SIGNAL_TYPE_EXPOSED_TO_REMOTE_ACCESS = 44; - /** - * Represents if the skip_show_database database flag for a Cloud SQL for - * MySQL instance is not set to on. - * - * Generated from protobuf enum SIGNAL_TYPE_DATABASE_NAMES_EXPOSED = 45; - */ - const SIGNAL_TYPE_DATABASE_NAMES_EXPOSED = 45; - /** - * Represents if the 3625 (trace flag) database flag for a Cloud SQL for - * SQL Server instance is not set to on. - * - * Generated from protobuf enum SIGNAL_TYPE_SENSITIVE_TRACE_INFO_NOT_MASKED = 46; - */ - const SIGNAL_TYPE_SENSITIVE_TRACE_INFO_NOT_MASKED = 46; - /** - * Represents if public IP is enabled. - * - * Generated from protobuf enum SIGNAL_TYPE_PUBLIC_IP_ENABLED = 47; - */ - const SIGNAL_TYPE_PUBLIC_IP_ENABLED = 47; - /** - * Represents idle instance helps to reduce costs. - * - * Generated from protobuf enum SIGNAL_TYPE_IDLE = 48; - */ - const SIGNAL_TYPE_IDLE = 48; - /** - * Represents instances that are unnecessarily large for given workload. - * - * Generated from protobuf enum SIGNAL_TYPE_OVERPROVISIONED = 49; - */ - const SIGNAL_TYPE_OVERPROVISIONED = 49; - /** - * Represents high number of concurrently opened tables. - * - * Generated from protobuf enum SIGNAL_TYPE_HIGH_NUMBER_OF_OPEN_TABLES = 50; - */ - const SIGNAL_TYPE_HIGH_NUMBER_OF_OPEN_TABLES = 50; - /** - * Represents high table count close to SLA limit. - * - * Generated from protobuf enum SIGNAL_TYPE_HIGH_NUMBER_OF_TABLES = 51; - */ - const SIGNAL_TYPE_HIGH_NUMBER_OF_TABLES = 51; - /** - * Represents high number of unvacuumed transactions - * - * Generated from protobuf enum SIGNAL_TYPE_HIGH_TRANSACTION_ID_UTILIZATION = 52; - */ - const SIGNAL_TYPE_HIGH_TRANSACTION_ID_UTILIZATION = 52; - /** - * Represents need for more CPU and/or memory - * - * Generated from protobuf enum SIGNAL_TYPE_UNDERPROVISIONED = 53; - */ - const SIGNAL_TYPE_UNDERPROVISIONED = 53; - /** - * Represents out of disk. - * - * Generated from protobuf enum SIGNAL_TYPE_OUT_OF_DISK = 54; - */ - const SIGNAL_TYPE_OUT_OF_DISK = 54; - /** - * Represents server certificate is near expiry. - * - * Generated from protobuf enum SIGNAL_TYPE_SERVER_CERTIFICATE_NEAR_EXPIRY = 55; - */ - const SIGNAL_TYPE_SERVER_CERTIFICATE_NEAR_EXPIRY = 55; - /** - * Represents database auditing is disabled. - * - * Generated from protobuf enum SIGNAL_TYPE_DATABASE_AUDITING_DISABLED = 56; - */ - const SIGNAL_TYPE_DATABASE_AUDITING_DISABLED = 56; - /** - * Represents not restricted to authorized networks. - * - * Generated from protobuf enum SIGNAL_TYPE_RESTRICT_AUTHORIZED_NETWORKS = 57; - */ - const SIGNAL_TYPE_RESTRICT_AUTHORIZED_NETWORKS = 57; - /** - * Represents violate org policy restrict public ip. - * - * Generated from protobuf enum SIGNAL_TYPE_VIOLATE_POLICY_RESTRICT_PUBLIC_IP = 58; - */ - const SIGNAL_TYPE_VIOLATE_POLICY_RESTRICT_PUBLIC_IP = 58; - /** - * Cluster nearing quota limit - * - * Generated from protobuf enum SIGNAL_TYPE_QUOTA_LIMIT = 59; - */ - const SIGNAL_TYPE_QUOTA_LIMIT = 59; - /** - * No password policy set on resources - * - * Generated from protobuf enum SIGNAL_TYPE_NO_PASSWORD_POLICY = 60; - */ - const SIGNAL_TYPE_NO_PASSWORD_POLICY = 60; - /** - * Performance impact of connections settings - * - * Generated from protobuf enum SIGNAL_TYPE_CONNECTIONS_PERFORMANCE_IMPACT = 61; - */ - const SIGNAL_TYPE_CONNECTIONS_PERFORMANCE_IMPACT = 61; - /** - * Performance impact of temporary tables settings - * - * Generated from protobuf enum SIGNAL_TYPE_TMP_TABLES_PERFORMANCE_IMPACT = 62; - */ - const SIGNAL_TYPE_TMP_TABLES_PERFORMANCE_IMPACT = 62; - /** - * Performance impact of transaction logs settings - * - * Generated from protobuf enum SIGNAL_TYPE_TRANS_LOGS_PERFORMANCE_IMPACT = 63; - */ - const SIGNAL_TYPE_TRANS_LOGS_PERFORMANCE_IMPACT = 63; - /** - * Performance impact of high joins without indexes - * - * Generated from protobuf enum SIGNAL_TYPE_HIGH_JOINS_WITHOUT_INDEXES = 64; - */ - const SIGNAL_TYPE_HIGH_JOINS_WITHOUT_INDEXES = 64; - /** - * Detects events where a database superuser (postgres for PostgreSQL servers - * or root for MySQL users) writes to non-system tables. - * - * Generated from protobuf enum SIGNAL_TYPE_SUPERUSER_WRITING_TO_USER_TABLES = 65; - */ - const SIGNAL_TYPE_SUPERUSER_WRITING_TO_USER_TABLES = 65; - /** - * Detects events where a database user or role has been granted all - * privileges to a database, or to all tables, procedures, or functions in a - * schema. - * - * Generated from protobuf enum SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS = 66; - */ - const SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS = 66; - /** - * Detects if database instance data exported to a Cloud Storage bucket - * outside of the organization. - * - * Generated from protobuf enum SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET = 67; - */ - const SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET = 67; - /** - * Detects if database instance data exported to a Cloud Storage bucket that - * is owned by the organization and is publicly accessible. - * - * Generated from protobuf enum SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET = 68; - */ - const SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET = 68; - /** - * Detects if a database instance is using a weak password hash algorithm. - * - * Generated from protobuf enum SIGNAL_TYPE_WEAK_PASSWORD_HASH_ALGORITHM = 77; - */ - const SIGNAL_TYPE_WEAK_PASSWORD_HASH_ALGORITHM = 77; - /** - * Detects if a database instance has no user password policy set. - * - * Generated from protobuf enum SIGNAL_TYPE_NO_USER_PASSWORD_POLICY = 78; - */ - const SIGNAL_TYPE_NO_USER_PASSWORD_POLICY = 78; - /** - * Detects if a database instance/cluster has a hot node. - * - * Generated from protobuf enum SIGNAL_TYPE_HOT_NODE = 79; - */ - const SIGNAL_TYPE_HOT_NODE = 79; - /** - * Deletion Protection Disabled for the resource - * - * Generated from protobuf enum SIGNAL_TYPE_NO_DELETION_PROTECTION = 80; - */ - const SIGNAL_TYPE_NO_DELETION_PROTECTION = 80; - /** - * Detects if a database instance has no point in time recovery enabled. - * - * Generated from protobuf enum SIGNAL_TYPE_NO_POINT_IN_TIME_RECOVERY = 81; - */ - const SIGNAL_TYPE_NO_POINT_IN_TIME_RECOVERY = 81; - /** - * Detects if a database instance/cluster has suspended resources. - * - * Generated from protobuf enum SIGNAL_TYPE_RESOURCE_SUSPENDED = 82; - */ - const SIGNAL_TYPE_RESOURCE_SUSPENDED = 82; - /** - * Detects that expensive commands are being run on a database instance - * impacting overall performance. - * - * Generated from protobuf enum SIGNAL_TYPE_EXPENSIVE_COMMANDS = 83; - */ - const SIGNAL_TYPE_EXPENSIVE_COMMANDS = 83; - /** - * Indicates that the instance does not have a maintenance policy configured. - * - * Generated from protobuf enum SIGNAL_TYPE_NO_MAINTENANCE_POLICY_CONFIGURED = 84; - */ - const SIGNAL_TYPE_NO_MAINTENANCE_POLICY_CONFIGURED = 84; - /** - * Indicates that the instance has inefficient queries detected. - * - * Generated from protobuf enum SIGNAL_TYPE_INEFFICIENT_QUERY = 85; - */ - const SIGNAL_TYPE_INEFFICIENT_QUERY = 85; - /** - * Indicates that the instance has read intensive workload. - * - * Generated from protobuf enum SIGNAL_TYPE_READ_INTENSIVE_WORKLOAD = 86; - */ - const SIGNAL_TYPE_READ_INTENSIVE_WORKLOAD = 86; - /** - * Indicates that the instance is nearing memory limit. - * - * Generated from protobuf enum SIGNAL_TYPE_MEMORY_LIMIT = 87; - */ - const SIGNAL_TYPE_MEMORY_LIMIT = 87; - /** - * Indicates that the instance's max server memory is configured higher than - * the recommended value. - * - * Generated from protobuf enum SIGNAL_TYPE_MAX_SERVER_MEMORY = 88; - */ - const SIGNAL_TYPE_MAX_SERVER_MEMORY = 88; - /** - * Indicates that the database has large rows beyond the recommended limit. - * - * Generated from protobuf enum SIGNAL_TYPE_LARGE_ROWS = 89; - */ - const SIGNAL_TYPE_LARGE_ROWS = 89; - /** - * Heavy write pressure on the database rows. - * - * Generated from protobuf enum SIGNAL_TYPE_HIGH_WRITE_PRESSURE = 90; - */ - const SIGNAL_TYPE_HIGH_WRITE_PRESSURE = 90; - /** - * Heavy read pressure on the database rows. - * - * Generated from protobuf enum SIGNAL_TYPE_HIGH_READ_PRESSURE = 91; - */ - const SIGNAL_TYPE_HIGH_READ_PRESSURE = 91; - /** - * Encryption org policy not satisfied. - * - * Generated from protobuf enum SIGNAL_TYPE_ENCRYPTION_ORG_POLICY_NOT_SATISFIED = 92; - */ - const SIGNAL_TYPE_ENCRYPTION_ORG_POLICY_NOT_SATISFIED = 92; - /** - * Location org policy not satisfied. - * - * Generated from protobuf enum SIGNAL_TYPE_LOCATION_ORG_POLICY_NOT_SATISFIED = 93; - */ - const SIGNAL_TYPE_LOCATION_ORG_POLICY_NOT_SATISFIED = 93; - /** - * Outdated DB minor version. - * - * Generated from protobuf enum SIGNAL_TYPE_OUTDATED_MINOR_VERSION = 94; - */ - const SIGNAL_TYPE_OUTDATED_MINOR_VERSION = 94; - /** - * Schema not optimized. - * - * Generated from protobuf enum SIGNAL_TYPE_SCHEMA_NOT_OPTIMIZED = 95; - */ - const SIGNAL_TYPE_SCHEMA_NOT_OPTIMIZED = 95; - /** - * Replication delay. - * - * Generated from protobuf enum SIGNAL_TYPE_REPLICATION_LAG = 97; - */ - const SIGNAL_TYPE_REPLICATION_LAG = 97; - /** - * Outdated client. - * - * Generated from protobuf enum SIGNAL_TYPE_OUTDATED_CLIENT = 99; - */ - const SIGNAL_TYPE_OUTDATED_CLIENT = 99; - /** - * Databoost is disabled. - * - * Generated from protobuf enum SIGNAL_TYPE_DATABOOST_DISABLED = 100; - */ - const SIGNAL_TYPE_DATABOOST_DISABLED = 100; - /** - * Recommended maintenance policy. - * - * Generated from protobuf enum SIGNAL_TYPE_RECOMMENDED_MAINTENANCE_POLICIES = 101; - */ - const SIGNAL_TYPE_RECOMMENDED_MAINTENANCE_POLICIES = 101; - /** - * Resource version is in extended support. - * - * Generated from protobuf enum SIGNAL_TYPE_EXTENDED_SUPPORT = 102; - */ - const SIGNAL_TYPE_EXTENDED_SUPPORT = 102; - - private static $valueToName = [ - self::SIGNAL_TYPE_UNSPECIFIED => 'SIGNAL_TYPE_UNSPECIFIED', - self::SIGNAL_TYPE_RESOURCE_FAILOVER_PROTECTED => 'SIGNAL_TYPE_RESOURCE_FAILOVER_PROTECTED', - self::SIGNAL_TYPE_GROUP_MULTIREGIONAL => 'SIGNAL_TYPE_GROUP_MULTIREGIONAL', - self::SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY => 'SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY', - self::SIGNAL_TYPE_SHORT_BACKUP_RETENTION => 'SIGNAL_TYPE_SHORT_BACKUP_RETENTION', - self::SIGNAL_TYPE_LAST_BACKUP_FAILED => 'SIGNAL_TYPE_LAST_BACKUP_FAILED', - self::SIGNAL_TYPE_LAST_BACKUP_OLD => 'SIGNAL_TYPE_LAST_BACKUP_OLD', - self::SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_2_0 => 'SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_2_0', - self::SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_3 => 'SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_3', - self::SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_2 => 'SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_2', - self::SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_1 => 'SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_1', - self::SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_0 => 'SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_0', - self::SIGNAL_TYPE_VIOLATES_CIS_CONTROLS_V8_0 => 'SIGNAL_TYPE_VIOLATES_CIS_CONTROLS_V8_0', - self::SIGNAL_TYPE_VIOLATES_NIST_800_53 => 'SIGNAL_TYPE_VIOLATES_NIST_800_53', - self::SIGNAL_TYPE_VIOLATES_NIST_800_53_R5 => 'SIGNAL_TYPE_VIOLATES_NIST_800_53_R5', - self::SIGNAL_TYPE_VIOLATES_NIST_CYBERSECURITY_FRAMEWORK_V1_0 => 'SIGNAL_TYPE_VIOLATES_NIST_CYBERSECURITY_FRAMEWORK_V1_0', - self::SIGNAL_TYPE_VIOLATES_ISO_27001 => 'SIGNAL_TYPE_VIOLATES_ISO_27001', - self::SIGNAL_TYPE_VIOLATES_ISO_27001_V2022 => 'SIGNAL_TYPE_VIOLATES_ISO_27001_V2022', - self::SIGNAL_TYPE_VIOLATES_PCI_DSS_V3_2_1 => 'SIGNAL_TYPE_VIOLATES_PCI_DSS_V3_2_1', - self::SIGNAL_TYPE_VIOLATES_PCI_DSS_V4_0 => 'SIGNAL_TYPE_VIOLATES_PCI_DSS_V4_0', - self::SIGNAL_TYPE_VIOLATES_CLOUD_CONTROLS_MATRIX_V4 => 'SIGNAL_TYPE_VIOLATES_CLOUD_CONTROLS_MATRIX_V4', - self::SIGNAL_TYPE_VIOLATES_HIPAA => 'SIGNAL_TYPE_VIOLATES_HIPAA', - self::SIGNAL_TYPE_VIOLATES_SOC2_V2017 => 'SIGNAL_TYPE_VIOLATES_SOC2_V2017', - self::SIGNAL_TYPE_LOGS_NOT_OPTIMIZED_FOR_TROUBLESHOOTING => 'SIGNAL_TYPE_LOGS_NOT_OPTIMIZED_FOR_TROUBLESHOOTING', - self::SIGNAL_TYPE_QUERY_DURATIONS_NOT_LOGGED => 'SIGNAL_TYPE_QUERY_DURATIONS_NOT_LOGGED', - self::SIGNAL_TYPE_VERBOSE_ERROR_LOGGING => 'SIGNAL_TYPE_VERBOSE_ERROR_LOGGING', - self::SIGNAL_TYPE_QUERY_LOCK_WAITS_NOT_LOGGED => 'SIGNAL_TYPE_QUERY_LOCK_WAITS_NOT_LOGGED', - self::SIGNAL_TYPE_LOGGING_MOST_ERRORS => 'SIGNAL_TYPE_LOGGING_MOST_ERRORS', - self::SIGNAL_TYPE_LOGGING_ONLY_CRITICAL_ERRORS => 'SIGNAL_TYPE_LOGGING_ONLY_CRITICAL_ERRORS', - self::SIGNAL_TYPE_MINIMAL_ERROR_LOGGING => 'SIGNAL_TYPE_MINIMAL_ERROR_LOGGING', - self::SIGNAL_TYPE_QUERY_STATS_LOGGED => 'SIGNAL_TYPE_QUERY_STATS_LOGGED', - self::SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_CLIENT_HOSTNAME => 'SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_CLIENT_HOSTNAME', - self::SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_PARSER_STATS => 'SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_PARSER_STATS', - self::SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_PLANNER_STATS => 'SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_PLANNER_STATS', - self::SIGNAL_TYPE_NOT_LOGGING_ONLY_DDL_STATEMENTS => 'SIGNAL_TYPE_NOT_LOGGING_ONLY_DDL_STATEMENTS', - self::SIGNAL_TYPE_LOGGING_QUERY_STATS => 'SIGNAL_TYPE_LOGGING_QUERY_STATS', - self::SIGNAL_TYPE_NOT_LOGGING_TEMPORARY_FILES => 'SIGNAL_TYPE_NOT_LOGGING_TEMPORARY_FILES', - self::SIGNAL_TYPE_CONNECTION_MAX_NOT_CONFIGURED => 'SIGNAL_TYPE_CONNECTION_MAX_NOT_CONFIGURED', - self::SIGNAL_TYPE_USER_OPTIONS_CONFIGURED => 'SIGNAL_TYPE_USER_OPTIONS_CONFIGURED', - self::SIGNAL_TYPE_EXPOSED_TO_PUBLIC_ACCESS => 'SIGNAL_TYPE_EXPOSED_TO_PUBLIC_ACCESS', - self::SIGNAL_TYPE_UNENCRYPTED_CONNECTIONS => 'SIGNAL_TYPE_UNENCRYPTED_CONNECTIONS', - self::SIGNAL_TYPE_NO_ROOT_PASSWORD => 'SIGNAL_TYPE_NO_ROOT_PASSWORD', - self::SIGNAL_TYPE_WEAK_ROOT_PASSWORD => 'SIGNAL_TYPE_WEAK_ROOT_PASSWORD', - self::SIGNAL_TYPE_ENCRYPTION_KEY_NOT_CUSTOMER_MANAGED => 'SIGNAL_TYPE_ENCRYPTION_KEY_NOT_CUSTOMER_MANAGED', - self::SIGNAL_TYPE_SERVER_AUTHENTICATION_NOT_REQUIRED => 'SIGNAL_TYPE_SERVER_AUTHENTICATION_NOT_REQUIRED', - self::SIGNAL_TYPE_EXPOSED_TO_EXTERNAL_SCRIPTS => 'SIGNAL_TYPE_EXPOSED_TO_EXTERNAL_SCRIPTS', - self::SIGNAL_TYPE_EXPOSED_TO_LOCAL_DATA_LOADS => 'SIGNAL_TYPE_EXPOSED_TO_LOCAL_DATA_LOADS', - self::SIGNAL_TYPE_CONNECTION_ATTEMPTS_NOT_LOGGED => 'SIGNAL_TYPE_CONNECTION_ATTEMPTS_NOT_LOGGED', - self::SIGNAL_TYPE_DISCONNECTIONS_NOT_LOGGED => 'SIGNAL_TYPE_DISCONNECTIONS_NOT_LOGGED', - self::SIGNAL_TYPE_LOGGING_EXCESSIVE_STATEMENT_INFO => 'SIGNAL_TYPE_LOGGING_EXCESSIVE_STATEMENT_INFO', - self::SIGNAL_TYPE_EXPOSED_TO_REMOTE_ACCESS => 'SIGNAL_TYPE_EXPOSED_TO_REMOTE_ACCESS', - self::SIGNAL_TYPE_DATABASE_NAMES_EXPOSED => 'SIGNAL_TYPE_DATABASE_NAMES_EXPOSED', - self::SIGNAL_TYPE_SENSITIVE_TRACE_INFO_NOT_MASKED => 'SIGNAL_TYPE_SENSITIVE_TRACE_INFO_NOT_MASKED', - self::SIGNAL_TYPE_PUBLIC_IP_ENABLED => 'SIGNAL_TYPE_PUBLIC_IP_ENABLED', - self::SIGNAL_TYPE_IDLE => 'SIGNAL_TYPE_IDLE', - self::SIGNAL_TYPE_OVERPROVISIONED => 'SIGNAL_TYPE_OVERPROVISIONED', - self::SIGNAL_TYPE_HIGH_NUMBER_OF_OPEN_TABLES => 'SIGNAL_TYPE_HIGH_NUMBER_OF_OPEN_TABLES', - self::SIGNAL_TYPE_HIGH_NUMBER_OF_TABLES => 'SIGNAL_TYPE_HIGH_NUMBER_OF_TABLES', - self::SIGNAL_TYPE_HIGH_TRANSACTION_ID_UTILIZATION => 'SIGNAL_TYPE_HIGH_TRANSACTION_ID_UTILIZATION', - self::SIGNAL_TYPE_UNDERPROVISIONED => 'SIGNAL_TYPE_UNDERPROVISIONED', - self::SIGNAL_TYPE_OUT_OF_DISK => 'SIGNAL_TYPE_OUT_OF_DISK', - self::SIGNAL_TYPE_SERVER_CERTIFICATE_NEAR_EXPIRY => 'SIGNAL_TYPE_SERVER_CERTIFICATE_NEAR_EXPIRY', - self::SIGNAL_TYPE_DATABASE_AUDITING_DISABLED => 'SIGNAL_TYPE_DATABASE_AUDITING_DISABLED', - self::SIGNAL_TYPE_RESTRICT_AUTHORIZED_NETWORKS => 'SIGNAL_TYPE_RESTRICT_AUTHORIZED_NETWORKS', - self::SIGNAL_TYPE_VIOLATE_POLICY_RESTRICT_PUBLIC_IP => 'SIGNAL_TYPE_VIOLATE_POLICY_RESTRICT_PUBLIC_IP', - self::SIGNAL_TYPE_QUOTA_LIMIT => 'SIGNAL_TYPE_QUOTA_LIMIT', - self::SIGNAL_TYPE_NO_PASSWORD_POLICY => 'SIGNAL_TYPE_NO_PASSWORD_POLICY', - self::SIGNAL_TYPE_CONNECTIONS_PERFORMANCE_IMPACT => 'SIGNAL_TYPE_CONNECTIONS_PERFORMANCE_IMPACT', - self::SIGNAL_TYPE_TMP_TABLES_PERFORMANCE_IMPACT => 'SIGNAL_TYPE_TMP_TABLES_PERFORMANCE_IMPACT', - self::SIGNAL_TYPE_TRANS_LOGS_PERFORMANCE_IMPACT => 'SIGNAL_TYPE_TRANS_LOGS_PERFORMANCE_IMPACT', - self::SIGNAL_TYPE_HIGH_JOINS_WITHOUT_INDEXES => 'SIGNAL_TYPE_HIGH_JOINS_WITHOUT_INDEXES', - self::SIGNAL_TYPE_SUPERUSER_WRITING_TO_USER_TABLES => 'SIGNAL_TYPE_SUPERUSER_WRITING_TO_USER_TABLES', - self::SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS => 'SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS', - self::SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET => 'SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET', - self::SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET => 'SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET', - self::SIGNAL_TYPE_WEAK_PASSWORD_HASH_ALGORITHM => 'SIGNAL_TYPE_WEAK_PASSWORD_HASH_ALGORITHM', - self::SIGNAL_TYPE_NO_USER_PASSWORD_POLICY => 'SIGNAL_TYPE_NO_USER_PASSWORD_POLICY', - self::SIGNAL_TYPE_HOT_NODE => 'SIGNAL_TYPE_HOT_NODE', - self::SIGNAL_TYPE_NO_DELETION_PROTECTION => 'SIGNAL_TYPE_NO_DELETION_PROTECTION', - self::SIGNAL_TYPE_NO_POINT_IN_TIME_RECOVERY => 'SIGNAL_TYPE_NO_POINT_IN_TIME_RECOVERY', - self::SIGNAL_TYPE_RESOURCE_SUSPENDED => 'SIGNAL_TYPE_RESOURCE_SUSPENDED', - self::SIGNAL_TYPE_EXPENSIVE_COMMANDS => 'SIGNAL_TYPE_EXPENSIVE_COMMANDS', - self::SIGNAL_TYPE_NO_MAINTENANCE_POLICY_CONFIGURED => 'SIGNAL_TYPE_NO_MAINTENANCE_POLICY_CONFIGURED', - self::SIGNAL_TYPE_INEFFICIENT_QUERY => 'SIGNAL_TYPE_INEFFICIENT_QUERY', - self::SIGNAL_TYPE_READ_INTENSIVE_WORKLOAD => 'SIGNAL_TYPE_READ_INTENSIVE_WORKLOAD', - self::SIGNAL_TYPE_MEMORY_LIMIT => 'SIGNAL_TYPE_MEMORY_LIMIT', - self::SIGNAL_TYPE_MAX_SERVER_MEMORY => 'SIGNAL_TYPE_MAX_SERVER_MEMORY', - self::SIGNAL_TYPE_LARGE_ROWS => 'SIGNAL_TYPE_LARGE_ROWS', - self::SIGNAL_TYPE_HIGH_WRITE_PRESSURE => 'SIGNAL_TYPE_HIGH_WRITE_PRESSURE', - self::SIGNAL_TYPE_HIGH_READ_PRESSURE => 'SIGNAL_TYPE_HIGH_READ_PRESSURE', - self::SIGNAL_TYPE_ENCRYPTION_ORG_POLICY_NOT_SATISFIED => 'SIGNAL_TYPE_ENCRYPTION_ORG_POLICY_NOT_SATISFIED', - self::SIGNAL_TYPE_LOCATION_ORG_POLICY_NOT_SATISFIED => 'SIGNAL_TYPE_LOCATION_ORG_POLICY_NOT_SATISFIED', - self::SIGNAL_TYPE_OUTDATED_MINOR_VERSION => 'SIGNAL_TYPE_OUTDATED_MINOR_VERSION', - self::SIGNAL_TYPE_SCHEMA_NOT_OPTIMIZED => 'SIGNAL_TYPE_SCHEMA_NOT_OPTIMIZED', - self::SIGNAL_TYPE_REPLICATION_LAG => 'SIGNAL_TYPE_REPLICATION_LAG', - self::SIGNAL_TYPE_OUTDATED_CLIENT => 'SIGNAL_TYPE_OUTDATED_CLIENT', - self::SIGNAL_TYPE_DATABOOST_DISABLED => 'SIGNAL_TYPE_DATABOOST_DISABLED', - self::SIGNAL_TYPE_RECOMMENDED_MAINTENANCE_POLICIES => 'SIGNAL_TYPE_RECOMMENDED_MAINTENANCE_POLICIES', - self::SIGNAL_TYPE_EXTENDED_SUPPORT => 'SIGNAL_TYPE_EXTENDED_SUPPORT', - ]; - - 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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalTypeGroup.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalTypeGroup.php deleted file mode 100644 index d0600530f73..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalTypeGroup.php +++ /dev/null @@ -1,107 +0,0 @@ -google.cloud.databasecenter.v1beta.SignalTypeGroup - */ -class SignalTypeGroup extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The display name of a signal group. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Optional. List of signal types present in the group. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalType signal_types = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $signal_types; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Required. The display name of a signal group. - * @type array|\Google\Protobuf\Internal\RepeatedField $signal_types - * Optional. List of signal types present in the group. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); - parent::__construct($data); - } - - /** - * Required. The display name of a signal group. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. The display name of a signal group. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. List of signal types present in the group. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalType signal_types = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSignalTypes() - { - return $this->signal_types; - } - - /** - * Optional. List of signal types present in the group. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalType signal_types = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSignalTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\DatabaseCenter\V1beta\SignalType::class); - $this->signal_types = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SubResource.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SubResource.php deleted file mode 100644 index 1c96bdc417e..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SubResource.php +++ /dev/null @@ -1,262 +0,0 @@ -google.cloud.databasecenter.v1beta.SubResource - */ -class SubResource extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Resource type associated with the sub resource where backup - * settings are configured. E.g. "spanner.googleapis.com/Database" for Spanner - * where backup retention is configured on database within an instance - * OPTIONAL - * - * Generated from protobuf field string resource_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $resource_type = ''; - /** - * Optional. Resource name associated with the sub resource where backup - * settings are configured. - * E.g."//spanner.googleapis.com/projects/project1/instances/inst1/databases/db1" - * for Spanner where backup retention is configured on database within - * an instance - * OPTIONAL - * - * Generated from protobuf field string full_resource_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $full_resource_name = ''; - /** - * Optional. Product information associated with the sub resource where - * backup retention settings are configured. - * e.g. - * ``` - * product: { - * type : PRODUCT_TYPE_SPANNER - * engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT - * } - * ``` - * for Spanner where backup is configured on database within - * an instance - * OPTIONAL - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Product product = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $product = null; - /** - * Specifies where the resource is created. For Google Cloud resources, it is - * the full name of the project. - * - * Generated from protobuf field string container = 4; - */ - protected $container = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $resource_type - * Optional. Resource type associated with the sub resource where backup - * settings are configured. E.g. "spanner.googleapis.com/Database" for Spanner - * where backup retention is configured on database within an instance - * OPTIONAL - * @type string $full_resource_name - * Optional. Resource name associated with the sub resource where backup - * settings are configured. - * E.g."//spanner.googleapis.com/projects/project1/instances/inst1/databases/db1" - * for Spanner where backup retention is configured on database within - * an instance - * OPTIONAL - * @type \Google\Cloud\DatabaseCenter\V1beta\Product $product - * Optional. Product information associated with the sub resource where - * backup retention settings are configured. - * e.g. - * ``` - * product: { - * type : PRODUCT_TYPE_SPANNER - * engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT - * } - * ``` - * for Spanner where backup is configured on database within - * an instance - * OPTIONAL - * @type string $container - * Specifies where the resource is created. For Google Cloud resources, it is - * the full name of the project. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Resource type associated with the sub resource where backup - * settings are configured. E.g. "spanner.googleapis.com/Database" for Spanner - * where backup retention is configured on database within an instance - * OPTIONAL - * - * Generated from protobuf field string resource_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getResourceType() - { - return $this->resource_type; - } - - /** - * Optional. Resource type associated with the sub resource where backup - * settings are configured. E.g. "spanner.googleapis.com/Database" for Spanner - * where backup retention is configured on database within an instance - * OPTIONAL - * - * Generated from protobuf field string resource_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setResourceType($var) - { - GPBUtil::checkString($var, True); - $this->resource_type = $var; - - return $this; - } - - /** - * Optional. Resource name associated with the sub resource where backup - * settings are configured. - * E.g."//spanner.googleapis.com/projects/project1/instances/inst1/databases/db1" - * for Spanner where backup retention is configured on database within - * an instance - * OPTIONAL - * - * Generated from protobuf field string full_resource_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFullResourceName() - { - return $this->full_resource_name; - } - - /** - * Optional. Resource name associated with the sub resource where backup - * settings are configured. - * E.g."//spanner.googleapis.com/projects/project1/instances/inst1/databases/db1" - * for Spanner where backup retention is configured on database within - * an instance - * OPTIONAL - * - * Generated from protobuf field string full_resource_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFullResourceName($var) - { - GPBUtil::checkString($var, True); - $this->full_resource_name = $var; - - return $this; - } - - /** - * Optional. Product information associated with the sub resource where - * backup retention settings are configured. - * e.g. - * ``` - * product: { - * type : PRODUCT_TYPE_SPANNER - * engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT - * } - * ``` - * for Spanner where backup is configured on database within - * an instance - * OPTIONAL - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Product product = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\DatabaseCenter\V1beta\Product|null - */ - public function getProduct() - { - return $this->product; - } - - public function hasProduct() - { - return isset($this->product); - } - - public function clearProduct() - { - unset($this->product); - } - - /** - * Optional. Product information associated with the sub resource where - * backup retention settings are configured. - * e.g. - * ``` - * product: { - * type : PRODUCT_TYPE_SPANNER - * engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT - * } - * ``` - * for Spanner where backup is configured on database within - * an instance - * OPTIONAL - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Product product = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\DatabaseCenter\V1beta\Product $var - * @return $this - */ - public function setProduct($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\Product::class); - $this->product = $var; - - return $this; - } - - /** - * Specifies where the resource is created. For Google Cloud resources, it is - * the full name of the project. - * - * Generated from protobuf field string container = 4; - * @return string - */ - public function getContainer() - { - return $this->container; - } - - /** - * Specifies where the resource is created. For Google Cloud resources, it is - * the full name of the project. - * - * Generated from protobuf field string container = 4; - * @param string $var - * @return $this - */ - public function setContainer($var) - { - GPBUtil::checkString($var, True); - $this->container = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SubResourceType.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SubResourceType.php deleted file mode 100644 index f41b76d546f..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SubResourceType.php +++ /dev/null @@ -1,82 +0,0 @@ -google.cloud.databasecenter.v1beta.SubResourceType - */ -class SubResourceType -{ - /** - * Unspecified. - * - * Generated from protobuf enum SUB_RESOURCE_TYPE_UNSPECIFIED = 0; - */ - const SUB_RESOURCE_TYPE_UNSPECIFIED = 0; - /** - * A resource acting as a primary. - * - * Generated from protobuf enum SUB_RESOURCE_TYPE_PRIMARY = 1; - */ - const SUB_RESOURCE_TYPE_PRIMARY = 1; - /** - * A resource acting as a secondary. - * - * Generated from protobuf enum SUB_RESOURCE_TYPE_SECONDARY = 2; - */ - const SUB_RESOURCE_TYPE_SECONDARY = 2; - /** - * A resource acting as a read-replica. - * - * Generated from protobuf enum SUB_RESOURCE_TYPE_READ_REPLICA = 3; - */ - const SUB_RESOURCE_TYPE_READ_REPLICA = 3; - /** - * A resource acting as an external primary. - * - * Generated from protobuf enum SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY = 5; - */ - const SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY = 5; - /** - * For the rest of the categories. - * - * Generated from protobuf enum SUB_RESOURCE_TYPE_OTHER = 4; - */ - const SUB_RESOURCE_TYPE_OTHER = 4; - - private static $valueToName = [ - self::SUB_RESOURCE_TYPE_UNSPECIFIED => 'SUB_RESOURCE_TYPE_UNSPECIFIED', - self::SUB_RESOURCE_TYPE_PRIMARY => 'SUB_RESOURCE_TYPE_PRIMARY', - self::SUB_RESOURCE_TYPE_SECONDARY => 'SUB_RESOURCE_TYPE_SECONDARY', - self::SUB_RESOURCE_TYPE_READ_REPLICA => 'SUB_RESOURCE_TYPE_READ_REPLICA', - self::SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY => 'SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY', - self::SUB_RESOURCE_TYPE_OTHER => 'SUB_RESOURCE_TYPE_OTHER', - ]; - - 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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SuspensionReason.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SuspensionReason.php deleted file mode 100644 index 6c7832a15ea..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SuspensionReason.php +++ /dev/null @@ -1,89 +0,0 @@ -google.cloud.databasecenter.v1beta.SuspensionReason - */ -class SuspensionReason -{ - /** - * Suspension reason is unspecified. - * - * Generated from protobuf enum SUSPENSION_REASON_UNSPECIFIED = 0; - */ - const SUSPENSION_REASON_UNSPECIFIED = 0; - /** - * Wipeout hide event. - * - * Generated from protobuf enum WIPEOUT_HIDE_EVENT = 1; - */ - const WIPEOUT_HIDE_EVENT = 1; - /** - * Wipeout purge event. - * - * Generated from protobuf enum WIPEOUT_PURGE_EVENT = 2; - */ - const WIPEOUT_PURGE_EVENT = 2; - /** - * Billing disabled for project - * - * Generated from protobuf enum BILLING_DISABLED = 3; - */ - const BILLING_DISABLED = 3; - /** - * Abuse detected for resource - * - * Generated from protobuf enum ABUSER_DETECTED = 4; - */ - const ABUSER_DETECTED = 4; - /** - * Encryption key inaccessible. - * - * Generated from protobuf enum ENCRYPTION_KEY_INACCESSIBLE = 5; - */ - const ENCRYPTION_KEY_INACCESSIBLE = 5; - /** - * Replicated cluster encryption key inaccessible. - * - * Generated from protobuf enum REPLICATED_CLUSTER_ENCRYPTION_KEY_INACCESSIBLE = 6; - */ - const REPLICATED_CLUSTER_ENCRYPTION_KEY_INACCESSIBLE = 6; - - private static $valueToName = [ - self::SUSPENSION_REASON_UNSPECIFIED => 'SUSPENSION_REASON_UNSPECIFIED', - self::WIPEOUT_HIDE_EVENT => 'WIPEOUT_HIDE_EVENT', - self::WIPEOUT_PURGE_EVENT => 'WIPEOUT_PURGE_EVENT', - self::BILLING_DISABLED => 'BILLING_DISABLED', - self::ABUSER_DETECTED => 'ABUSER_DETECTED', - self::ENCRYPTION_KEY_INACCESSIBLE => 'ENCRYPTION_KEY_INACCESSIBLE', - self::REPLICATED_CLUSTER_ENCRYPTION_KEY_INACCESSIBLE => 'REPLICATED_CLUSTER_ENCRYPTION_KEY_INACCESSIBLE', - ]; - - 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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Tag.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Tag.php deleted file mode 100644 index 6681dcf4199..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Tag.php +++ /dev/null @@ -1,206 +0,0 @@ -google.cloud.databasecenter.v1beta.Tag - */ -class Tag extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string key = 1; - */ - protected $key = ''; - /** - * The value part of the tag. - * - * Generated from protobuf field string value = 2; - */ - protected $value = ''; - /** - * The source of the tag. According to - * https://cloud.google.com/resource-manager/docs/tags/tags-overview#tags_and_labels, - * tags can be created only at the project or organization level. Tags can be - * inherited from different project as well not just the current project where - * the database resource is present. - * Format: - * "projects/{PROJECT_ID}", - * "projects/{PROJECT_NUMBER}", - * "organizations/{ORGANIZATION_ID}" - * - * Generated from protobuf field string source = 3; - */ - protected $source = ''; - /** - * Indicates the inheritance status of a tag value - * attached to the given resource. If the tag value is inherited from one of - * the resource's ancestors, inherited will be true. If false, then the tag - * value is directly attached to the resource. - * - * Generated from protobuf field bool inherited = 4; - */ - protected $inherited = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key - * @type string $value - * The value part of the tag. - * @type string $source - * The source of the tag. According to - * https://cloud.google.com/resource-manager/docs/tags/tags-overview#tags_and_labels, - * tags can be created only at the project or organization level. Tags can be - * inherited from different project as well not just the current project where - * the database resource is present. - * Format: - * "projects/{PROJECT_ID}", - * "projects/{PROJECT_NUMBER}", - * "organizations/{ORGANIZATION_ID}" - * @type bool $inherited - * Indicates the inheritance status of a tag value - * attached to the given resource. If the tag value is inherited from one of - * the resource's ancestors, inherited will be true. If false, then the tag - * value is directly attached to the resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field string key = 1; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * 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 part of the tag. - * - * Generated from protobuf field string value = 2; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The value part of the tag. - * - * 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; - } - - /** - * The source of the tag. According to - * https://cloud.google.com/resource-manager/docs/tags/tags-overview#tags_and_labels, - * tags can be created only at the project or organization level. Tags can be - * inherited from different project as well not just the current project where - * the database resource is present. - * Format: - * "projects/{PROJECT_ID}", - * "projects/{PROJECT_NUMBER}", - * "organizations/{ORGANIZATION_ID}" - * - * Generated from protobuf field string source = 3; - * @return string - */ - public function getSource() - { - return $this->source; - } - - /** - * The source of the tag. According to - * https://cloud.google.com/resource-manager/docs/tags/tags-overview#tags_and_labels, - * tags can be created only at the project or organization level. Tags can be - * inherited from different project as well not just the current project where - * the database resource is present. - * Format: - * "projects/{PROJECT_ID}", - * "projects/{PROJECT_NUMBER}", - * "organizations/{ORGANIZATION_ID}" - * - * Generated from protobuf field string source = 3; - * @param string $var - * @return $this - */ - public function setSource($var) - { - GPBUtil::checkString($var, True); - $this->source = $var; - - return $this; - } - - /** - * Indicates the inheritance status of a tag value - * attached to the given resource. If the tag value is inherited from one of - * the resource's ancestors, inherited will be true. If false, then the tag - * value is directly attached to the resource. - * - * Generated from protobuf field bool inherited = 4; - * @return bool - */ - public function getInherited() - { - return $this->inherited; - } - - /** - * Indicates the inheritance status of a tag value - * attached to the given resource. If the tag value is inherited from one of - * the resource's ancestors, inherited will be true. If false, then the tag - * value is directly attached to the resource. - * - * Generated from protobuf field bool inherited = 4; - * @param bool $var - * @return $this - */ - public function setInherited($var) - { - GPBUtil::checkBool($var); - $this->inherited = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/TypedValue.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/TypedValue.php deleted file mode 100644 index 7272a25a5a5..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/TypedValue.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.databasecenter.v1beta.TypedValue - */ -class TypedValue extends \Google\Protobuf\Internal\Message -{ - protected $value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $double_value - * The value of the metric as double. - * @type int|string $int64_value - * The value of the metric as int. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\MetricData::initOnce(); - parent::__construct($data); - } - - /** - * The value of the metric as double. - * - * Generated from protobuf field double double_value = 1; - * @return float - */ - public function getDoubleValue() - { - return $this->readOneof(1); - } - - public function hasDoubleValue() - { - return $this->hasOneof(1); - } - - /** - * The value of the metric as double. - * - * Generated from protobuf field double double_value = 1; - * @param float $var - * @return $this - */ - public function setDoubleValue($var) - { - GPBUtil::checkDouble($var); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The value of the metric as int. - * - * Generated from protobuf field int64 int64_value = 2; - * @return int|string - */ - public function getInt64Value() - { - return $this->readOneof(2); - } - - public function hasInt64Value() - { - return $this->hasOneof(2); - } - - /** - * The value of the metric as int. - * - * Generated from protobuf field int64 int64_value = 2; - * @param int|string $var - * @return $this - */ - public function setInt64Value($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getValue() - { - return $this->whichOneof("value"); - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/aggregate_fleet.php b/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/aggregate_fleet.php deleted file mode 100644 index 87dffeb8800..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/aggregate_fleet.php +++ /dev/null @@ -1,85 +0,0 @@ -setParent($parent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $databaseCenterClient->aggregateFleet($request); - - /** @var AggregateFleetRow $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 -{ - $parent = '[PARENT]'; - - aggregate_fleet_sample($parent); -} -// [END databasecenter_v1beta_generated_DatabaseCenter_AggregateFleet_sync] diff --git a/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/aggregate_issue_stats.php b/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/aggregate_issue_stats.php deleted file mode 100644 index 54238e9abdc..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/aggregate_issue_stats.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($parent); - - // Call the API and handle any network failures. - try { - /** @var AggregateIssueStatsResponse $response */ - $response = $databaseCenterClient->aggregateIssueStats($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 -{ - $parent = '[PARENT]'; - - aggregate_issue_stats_sample($parent); -} -// [END databasecenter_v1beta_generated_DatabaseCenter_AggregateIssueStats_sync] diff --git a/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/query_database_resource_groups.php b/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/query_database_resource_groups.php deleted file mode 100644 index bc43e2e6134..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/query_database_resource_groups.php +++ /dev/null @@ -1,83 +0,0 @@ -setParent($parent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $databaseCenterClient->queryDatabaseResourceGroups($request); - - /** @var DatabaseResourceGroup $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 -{ - $parent = '[PARENT]'; - - query_database_resource_groups_sample($parent); -} -// [END databasecenter_v1beta_generated_DatabaseCenter_QueryDatabaseResourceGroups_sync] diff --git a/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/query_issues.php b/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/query_issues.php deleted file mode 100644 index 1b7941d1b71..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/query_issues.php +++ /dev/null @@ -1,85 +0,0 @@ -setParent($parent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $databaseCenterClient->queryIssues($request); - - /** @var DatabaseResourceIssue $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 -{ - $parent = '[PARENT]'; - - query_issues_sample($parent); -} -// [END databasecenter_v1beta_generated_DatabaseCenter_QueryIssues_sync] diff --git a/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/query_products.php b/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/query_products.php deleted file mode 100644 index a68e545f0de..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/query_products.php +++ /dev/null @@ -1,91 +0,0 @@ -setParent($parent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $databaseCenterClient->queryProducts($request); - - /** @var Product $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 -{ - $parent = '[PARENT]'; - - query_products_sample($parent); -} -// [END databasecenter_v1beta_generated_DatabaseCenter_QueryProducts_sync] diff --git a/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/Client/DatabaseCenterClient.php b/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/Client/DatabaseCenterClient.php deleted file mode 100644 index 21981f7c318..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/Client/DatabaseCenterClient.php +++ /dev/null @@ -1,338 +0,0 @@ - aggregateFleetAsync(AggregateFleetRequest $request, array $optionalArgs = []) - * @method PromiseInterface aggregateIssueStatsAsync(AggregateIssueStatsRequest $request, array $optionalArgs = []) - * @method PromiseInterface queryDatabaseResourceGroupsAsync(QueryDatabaseResourceGroupsRequest $request, array $optionalArgs = []) - * @method PromiseInterface queryIssuesAsync(QueryIssuesRequest $request, array $optionalArgs = []) - * @method PromiseInterface queryProductsAsync(QueryProductsRequest $request, array $optionalArgs = []) - */ -final class DatabaseCenterClient -{ - use GapicClientTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.databasecenter.v1beta.DatabaseCenter'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'databasecenter.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'databasecenter.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/database_center_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/database_center_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/database_center_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/database_center_rest_client_config.php', - ], - ], - ]; - } - - /** - * 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 'databasecenter.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\DatabaseCenter\V1beta\DatabaseCenterClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new DatabaseCenterClient(['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 - * - * @experimental - */ - 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); - } - - /** - * AggregateFleet provides statistics about the fleet grouped by various - * fields. - * - * The async variant is {@see DatabaseCenterClient::aggregateFleetAsync()} . - * - * @example samples/V1beta/DatabaseCenterClient/aggregate_fleet.php - * - * @param AggregateFleetRequest $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. - * - * @experimental - */ - public function aggregateFleet(AggregateFleetRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('AggregateFleet', $request, $callOptions); - } - - /** - * AggregateIssueStats provides database resource issues statistics. - * - * The async variant is {@see DatabaseCenterClient::aggregateIssueStatsAsync()} . - * - * @example samples/V1beta/DatabaseCenterClient/aggregate_issue_stats.php - * - * @param AggregateIssueStatsRequest $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 AggregateIssueStatsResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function aggregateIssueStats(AggregateIssueStatsRequest $request, array $callOptions = []): AggregateIssueStatsResponse - { - return $this->startApiCall('AggregateIssueStats', $request, $callOptions)->wait(); - } - - /** - * QueryDatabaseResourceGroups returns paginated results of database groups. - * - * The async variant is - * {@see DatabaseCenterClient::queryDatabaseResourceGroupsAsync()} . - * - * @example samples/V1beta/DatabaseCenterClient/query_database_resource_groups.php - * - * @param QueryDatabaseResourceGroupsRequest $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. - * - * @experimental - */ - public function queryDatabaseResourceGroups(QueryDatabaseResourceGroupsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('QueryDatabaseResourceGroups', $request, $callOptions); - } - - /** - * QueryIssues provides a list of issues and recommendations - * that a user has access to and that are within the requested scope. - * - * The async variant is {@see DatabaseCenterClient::queryIssuesAsync()} . - * - * @example samples/V1beta/DatabaseCenterClient/query_issues.php - * - * @param QueryIssuesRequest $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. - * - * @experimental - */ - public function queryIssues(QueryIssuesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('QueryIssues', $request, $callOptions); - } - - /** - * QueryProducts provides a list of all possible products which can be used to - * filter database resources. - * - * The async variant is {@see DatabaseCenterClient::queryProductsAsync()} . - * - * @example samples/V1beta/DatabaseCenterClient/query_products.php - * - * @param QueryProductsRequest $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. - * - * @experimental - */ - public function queryProducts(QueryProductsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('QueryProducts', $request, $callOptions); - } -} diff --git a/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/gapic_metadata.json b/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/gapic_metadata.json deleted file mode 100644 index 3a6dea45609..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/gapic_metadata.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.databasecenter.v1beta", - "libraryPackage": "Google\\Cloud\\DatabaseCenter\\V1beta", - "services": { - "DatabaseCenter": { - "clients": { - "grpc": { - "libraryClient": "DatabaseCenterGapicClient", - "rpcs": { - "AggregateFleet": { - "methods": [ - "aggregateFleet" - ] - }, - "AggregateIssueStats": { - "methods": [ - "aggregateIssueStats" - ] - }, - "QueryDatabaseResourceGroups": { - "methods": [ - "queryDatabaseResourceGroups" - ] - }, - "QueryIssues": { - "methods": [ - "queryIssues" - ] - }, - "QueryProducts": { - "methods": [ - "queryProducts" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/resources/database_center_client_config.json b/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/resources/database_center_client_config.json deleted file mode 100644 index 2050a311984..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/resources/database_center_client_config.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "interfaces": { - "google.cloud.databasecenter.v1beta.DatabaseCenter": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ] - }, - "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": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 10000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "AggregateFleet": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "AggregateIssueStats": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "QueryDatabaseResourceGroups": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "QueryIssues": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "QueryProducts": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/resources/database_center_descriptor_config.php b/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/resources/database_center_descriptor_config.php deleted file mode 100644 index 0ef66a4936f..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/resources/database_center_descriptor_config.php +++ /dev/null @@ -1,80 +0,0 @@ - [ - 'google.cloud.databasecenter.v1beta.DatabaseCenter' => [ - 'AggregateFleet' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getRows', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\DatabaseCenter\V1beta\AggregateFleetResponse', - ], - 'AggregateIssueStats' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DatabaseCenter\V1beta\AggregateIssueStatsResponse', - ], - 'QueryDatabaseResourceGroups' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getResourceGroups', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\DatabaseCenter\V1beta\QueryDatabaseResourceGroupsResponse', - ], - 'QueryIssues' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getResourceIssues', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\DatabaseCenter\V1beta\QueryIssuesResponse', - ], - 'QueryProducts' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getProducts', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\DatabaseCenter\V1beta\QueryProductsResponse', - ], - ], - ], -]; diff --git a/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/resources/database_center_rest_client_config.php b/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/resources/database_center_rest_client_config.php deleted file mode 100644 index c0a45ea6cf6..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/resources/database_center_rest_client_config.php +++ /dev/null @@ -1,52 +0,0 @@ - [ - 'google.cloud.databasecenter.v1beta.DatabaseCenter' => [ - 'AggregateFleet' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta:aggregateFleet', - ], - 'AggregateIssueStats' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta:aggregateIssueStats', - 'body' => '*', - ], - 'QueryDatabaseResourceGroups' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta:queryDatabaseResourceGroups', - 'body' => '*', - ], - 'QueryIssues' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta:queryIssues', - 'body' => '*', - ], - 'QueryProducts' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta:queryProducts', - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/DatabaseCenter/v1beta/tests/Unit/V1beta/Client/DatabaseCenterClientTest.php b/owl-bot-staging/DatabaseCenter/v1beta/tests/Unit/V1beta/Client/DatabaseCenterClientTest.php deleted file mode 100644 index 4bc706b6b72..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/tests/Unit/V1beta/Client/DatabaseCenterClientTest.php +++ /dev/null @@ -1,473 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return DatabaseCenterClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new DatabaseCenterClient($options); - } - - /** @test */ - public function aggregateFleetTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $resourceGroupsTotalCount = 435559878; - $resourceTotalCount = 504460893; - $nextPageToken = ''; - $rowsElement = new AggregateFleetRow(); - $rows = [ - $rowsElement, - ]; - $expectedResponse = new AggregateFleetResponse(); - $expectedResponse->setResourceGroupsTotalCount($resourceGroupsTotalCount); - $expectedResponse->setResourceTotalCount($resourceTotalCount); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setRows($rows); - $transport->addResponse($expectedResponse); - // Mock request - $parent = 'parent-995424086'; - $request = (new AggregateFleetRequest()) - ->setParent($parent); - $response = $gapicClient->aggregateFleet($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getRows()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.databasecenter.v1beta.DatabaseCenter/AggregateFleet', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($parent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function aggregateFleetExceptionTest() - { - $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 - $parent = 'parent-995424086'; - $request = (new AggregateFleetRequest()) - ->setParent($parent); - try { - $gapicClient->aggregateFleet($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 aggregateIssueStatsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $totalResourcesCount = 1148081286; - $totalResourceGroupsCount = 1586193222; - $expectedResponse = new AggregateIssueStatsResponse(); - $expectedResponse->setTotalResourcesCount($totalResourcesCount); - $expectedResponse->setTotalResourceGroupsCount($totalResourceGroupsCount); - $transport->addResponse($expectedResponse); - // Mock request - $parent = 'parent-995424086'; - $request = (new AggregateIssueStatsRequest()) - ->setParent($parent); - $response = $gapicClient->aggregateIssueStats($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.databasecenter.v1beta.DatabaseCenter/AggregateIssueStats', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($parent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function aggregateIssueStatsExceptionTest() - { - $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 - $parent = 'parent-995424086'; - $request = (new AggregateIssueStatsRequest()) - ->setParent($parent); - try { - $gapicClient->aggregateIssueStats($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 queryDatabaseResourceGroupsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $resourceGroupsElement = new DatabaseResourceGroup(); - $resourceGroups = [ - $resourceGroupsElement, - ]; - $expectedResponse = new QueryDatabaseResourceGroupsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setResourceGroups($resourceGroups); - $transport->addResponse($expectedResponse); - // Mock request - $parent = 'parent-995424086'; - $request = (new QueryDatabaseResourceGroupsRequest()) - ->setParent($parent); - $response = $gapicClient->queryDatabaseResourceGroups($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getResourceGroups()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.databasecenter.v1beta.DatabaseCenter/QueryDatabaseResourceGroups', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($parent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryDatabaseResourceGroupsExceptionTest() - { - $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 - $parent = 'parent-995424086'; - $request = (new QueryDatabaseResourceGroupsRequest()) - ->setParent($parent); - try { - $gapicClient->queryDatabaseResourceGroups($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 queryIssuesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $resourceIssuesElement = new DatabaseResourceIssue(); - $resourceIssues = [ - $resourceIssuesElement, - ]; - $expectedResponse = new QueryIssuesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setResourceIssues($resourceIssues); - $transport->addResponse($expectedResponse); - // Mock request - $parent = 'parent-995424086'; - $request = (new QueryIssuesRequest()) - ->setParent($parent); - $response = $gapicClient->queryIssues($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getResourceIssues()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.databasecenter.v1beta.DatabaseCenter/QueryIssues', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($parent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryIssuesExceptionTest() - { - $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 - $parent = 'parent-995424086'; - $request = (new QueryIssuesRequest()) - ->setParent($parent); - try { - $gapicClient->queryIssues($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 queryProductsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $productsElement = new Product(); - $products = [ - $productsElement, - ]; - $expectedResponse = new QueryProductsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setProducts($products); - $transport->addResponse($expectedResponse); - // Mock request - $parent = 'parent-995424086'; - $request = (new QueryProductsRequest()) - ->setParent($parent); - $response = $gapicClient->queryProducts($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getProducts()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.databasecenter.v1beta.DatabaseCenter/QueryProducts', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($parent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryProductsExceptionTest() - { - $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 - $parent = 'parent-995424086'; - $request = (new QueryProductsRequest()) - ->setParent($parent); - try { - $gapicClient->queryProducts($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 aggregateFleetAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $resourceGroupsTotalCount = 435559878; - $resourceTotalCount = 504460893; - $nextPageToken = ''; - $rowsElement = new AggregateFleetRow(); - $rows = [ - $rowsElement, - ]; - $expectedResponse = new AggregateFleetResponse(); - $expectedResponse->setResourceGroupsTotalCount($resourceGroupsTotalCount); - $expectedResponse->setResourceTotalCount($resourceTotalCount); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setRows($rows); - $transport->addResponse($expectedResponse); - // Mock request - $parent = 'parent-995424086'; - $request = (new AggregateFleetRequest()) - ->setParent($parent); - $response = $gapicClient->aggregateFleetAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getRows()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.databasecenter.v1beta.DatabaseCenter/AggregateFleet', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($parent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} From 45f2a80571db08ba597a4204858701c7414f4e23 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 18 Feb 2026 14:11:18 +0000 Subject: [PATCH 3/3] =?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 --- .../src/V1beta/DatabaseResource.php | 37 +- DatabaseCenter/src/V1beta/Dimension.php | 18 +- DatabaseCenter/src/V1beta/ProductType.php | 16 +- DatabaseCenter/src/V1beta/ResourceDetails.php | 16 +- DatabaseCenter/src/V1beta/SignalType.php | 10 +- DatabaseCenter/src/V1beta/SubResource.php | 16 +- .../Databasecenter/V1Beta/MachineConfig.php | Bin 1136 -> 0 bytes .../Databasecenter/V1Beta/Maintenance.php | Bin 1947 -> 0 bytes .../Databasecenter/V1Beta/MetricData.php | Bin 2194 -> 0 bytes .../V1Beta/OperationErrorType.php | Bin 1147 -> 0 bytes .../Cloud/Databasecenter/V1Beta/Product.php | Bin 1901 -> 0 bytes .../Cloud/Databasecenter/V1Beta/Service.php | Bin 9061 -> 0 bytes .../Cloud/Databasecenter/V1Beta/Signals.php | Bin 10514 -> 0 bytes .../V1Beta/SuspensionReason.php | Bin 1185 -> 0 bytes .../V1beta/AdditionalDetail.php | 508 ----------- .../V1beta/AggregateFleetRequest.php | 505 ----------- .../V1beta/AggregateFleetResponse.php | 216 ----- .../V1beta/AggregateFleetRow.php | 183 ---- .../V1beta/AggregateIssueStatsRequest.php | 260 ------ .../V1beta/AggregateIssueStatsResponse.php | 178 ---- .../V1beta/AutomatedBackupPolicyInfo.php | 111 --- .../DatabaseCenter/V1beta/BackupDRConfig.php | 78 -- .../DatabaseCenter/V1beta/BackupRunInfo.php | 271 ------ .../V1beta/BackupRunInfo/State.php | 64 -- .../V1beta/DatabaseResource.php | 786 ------------------ .../V1beta/DatabaseResourceGroup.php | 119 --- .../V1beta/DatabaseResourceIssue.php | 121 --- .../V1beta/DeletionProtectionInfo.php | 111 --- .../DatabaseCenter/V1beta/DeltaDetails.php | 105 --- .../Cloud/DatabaseCenter/V1beta/Dimension.php | 690 --------------- .../Cloud/DatabaseCenter/V1beta/Edition.php | 69 -- .../Cloud/DatabaseCenter/V1beta/Engine.php | 132 --- .../V1beta/InefficientQueryInfo.php | 211 ----- .../DatabaseCenter/V1beta/IssueCount.php | 113 --- .../DatabaseCenter/V1beta/IssueGroupStats.php | 270 ------ .../DatabaseCenter/V1beta/IssueSeverity.php | 82 -- .../DatabaseCenter/V1beta/IssueStats.php | 193 ----- .../Cloud/DatabaseCenter/V1beta/Label.php | 139 ---- .../DatabaseCenter/V1beta/MachineConfig.php | 156 ---- .../DatabaseCenter/V1beta/MaintenanceInfo.php | 149 ---- .../V1beta/MaintenanceRecommendationInfo.php | 71 -- .../DatabaseCenter/V1beta/ManagementType.php | 61 -- .../DatabaseCenter/V1beta/MetricData.php | 121 --- .../Cloud/DatabaseCenter/V1beta/Metrics.php | 449 ---------- .../V1beta/OperationErrorType.php | 92 -- .../V1beta/OutdatedMinorVersionInfo.php | 75 -- .../Cloud/DatabaseCenter/V1beta/Phase.php | 79 -- .../Cloud/DatabaseCenter/V1beta/Product.php | 189 ----- .../DatabaseCenter/V1beta/ProductType.php | 121 --- .../QueryDatabaseResourceGroupsRequest.php | 568 ------------- .../QueryDatabaseResourceGroupsResponse.php | 144 ---- .../V1beta/QueryIssuesRequest.php | 359 -------- .../V1beta/QueryIssuesResponse.php | 143 ---- .../V1beta/QueryProductsRequest.php | 203 ----- .../V1beta/QueryProductsResponse.php | 143 ---- .../V1beta/RecommendationInfo.php | 179 ---- .../V1beta/RegulatoryStandard.php | 105 --- .../V1beta/ResourceCategory.php | 68 -- .../DatabaseCenter/V1beta/ResourceDetails.php | 184 ---- .../ResourceMaintenanceDenySchedule.php | 171 ---- .../V1beta/ResourceMaintenanceSchedule.php | 174 ---- .../V1beta/ResourceSuspensionInfo.php | 101 --- .../V1beta/RetentionSettingsInfo.php | 212 ----- .../Cloud/DatabaseCenter/V1beta/SCCInfo.php | 169 ---- .../Cloud/DatabaseCenter/V1beta/Signal.php | 233 ------ .../DatabaseCenter/V1beta/SignalFilter.php | 113 --- .../DatabaseCenter/V1beta/SignalGroup.php | 147 ---- .../V1beta/SignalProductsFilters.php | 105 --- .../DatabaseCenter/V1beta/SignalSource.php | 76 -- .../DatabaseCenter/V1beta/SignalStatus.php | 76 -- .../DatabaseCenter/V1beta/SignalType.php | 775 ----------------- .../DatabaseCenter/V1beta/SignalTypeGroup.php | 107 --- .../DatabaseCenter/V1beta/SubResource.php | 262 ------ .../DatabaseCenter/V1beta/SubResourceType.php | 82 -- .../V1beta/SuspensionReason.php | 89 -- .../Cloud/DatabaseCenter/V1beta/Tag.php | 206 ----- .../DatabaseCenter/V1beta/TypedValue.php | 108 --- .../DatabaseCenterClient/aggregate_fleet.php | 85 -- .../aggregate_issue_stats.php | 78 -- .../query_database_resource_groups.php | 83 -- .../DatabaseCenterClient/query_issues.php | 85 -- .../DatabaseCenterClient/query_products.php | 91 -- .../V1beta/Client/DatabaseCenterClient.php | 338 -------- .../v1beta/src/V1beta/gapic_metadata.json | 43 - .../database_center_client_config.json | 59 -- .../database_center_descriptor_config.php | 80 -- .../database_center_rest_client_config.php | 52 -- .../Client/DatabaseCenterClientTest.php | 473 ----------- 88 files changed, 58 insertions(+), 13902 deletions(-) delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/MachineConfig.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/Maintenance.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/MetricData.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/OperationErrorType.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/Product.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/Service.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/Signals.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/SuspensionReason.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AdditionalDetail.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateFleetRequest.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateFleetResponse.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateFleetRow.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateIssueStatsRequest.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateIssueStatsResponse.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AutomatedBackupPolicyInfo.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/BackupDRConfig.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/BackupRunInfo.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/BackupRunInfo/State.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DatabaseResource.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DatabaseResourceGroup.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DatabaseResourceIssue.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DeletionProtectionInfo.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DeltaDetails.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Dimension.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Edition.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Engine.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/InefficientQueryInfo.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueCount.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueGroupStats.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueSeverity.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueStats.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Label.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MachineConfig.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MaintenanceInfo.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MaintenanceRecommendationInfo.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ManagementType.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MetricData.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Metrics.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/OperationErrorType.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/OutdatedMinorVersionInfo.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Phase.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Product.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ProductType.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryDatabaseResourceGroupsRequest.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryDatabaseResourceGroupsResponse.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryIssuesRequest.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryIssuesResponse.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryProductsRequest.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryProductsResponse.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/RecommendationInfo.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/RegulatoryStandard.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceCategory.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceDetails.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceMaintenanceDenySchedule.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceMaintenanceSchedule.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceSuspensionInfo.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/RetentionSettingsInfo.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SCCInfo.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Signal.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalFilter.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalGroup.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalProductsFilters.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalSource.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalStatus.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalType.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalTypeGroup.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SubResource.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SubResourceType.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SuspensionReason.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Tag.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/TypedValue.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/aggregate_fleet.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/aggregate_issue_stats.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/query_database_resource_groups.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/query_issues.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/query_products.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/Client/DatabaseCenterClient.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/gapic_metadata.json delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/resources/database_center_client_config.json delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/resources/database_center_descriptor_config.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/resources/database_center_rest_client_config.php delete mode 100644 owl-bot-staging/DatabaseCenter/v1beta/tests/Unit/V1beta/Client/DatabaseCenterClientTest.php diff --git a/DatabaseCenter/src/V1beta/DatabaseResource.php b/DatabaseCenter/src/V1beta/DatabaseResource.php index fbf82cdf5db..55a3424d03d 100644 --- a/DatabaseCenter/src/V1beta/DatabaseResource.php +++ b/DatabaseCenter/src/V1beta/DatabaseResource.php @@ -11,7 +11,6 @@ /** * DatabaseResource represents every individually configured database unit * representing compute and/or storage. - * NextId: 20 * * Generated from protobuf message google.cloud.databasecenter.v1beta.DatabaseResource */ @@ -37,8 +36,8 @@ class DatabaseResource extends \Google\Protobuf\Internal\Message */ protected $full_resource_name = ''; /** - * Specifies where the resource is created. For GCP, it is the full name of - * the project. + * Specifies where the resource is created. For Google Cloud resources, it is + * the full name of the project. * * Generated from protobuf field string container = 4; */ @@ -51,8 +50,9 @@ class DatabaseResource extends \Google\Protobuf\Internal\Message protected $product = null; /** * The location of the resources. It supports returning only regional - * locations in GCP. These are of the form: "us-central1", "us-east1", etc. - * See https://cloud.google.com/about/locations for a list of such regions. + * locations in Google Cloud. These are of the form: "us-central1", + * "us-east1", etc. See https://cloud.google.com/about/locations for a list of + * such regions. * * Generated from protobuf field string location = 6; */ @@ -168,14 +168,15 @@ class DatabaseResource extends \Google\Protobuf\Internal\Message * `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1` * `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1/instances/i1` * @type string $container - * Specifies where the resource is created. For GCP, it is the full name of - * the project. + * Specifies where the resource is created. For Google Cloud resources, it is + * the full name of the project. * @type \Google\Cloud\DatabaseCenter\V1beta\Product $product * The product this resource represents. * @type string $location * The location of the resources. It supports returning only regional - * locations in GCP. These are of the form: "us-central1", "us-east1", etc. - * See https://cloud.google.com/about/locations for a list of such regions. + * locations in Google Cloud. These are of the form: "us-central1", + * "us-east1", etc. See https://cloud.google.com/about/locations for a list of + * such regions. * @type array<\Google\Cloud\DatabaseCenter\V1beta\Label>|\Google\Protobuf\Internal\RepeatedField $labels * Labels applied on the resource. The requirements for labels assigned to * Google Cloud resources may be found at @@ -294,8 +295,8 @@ public function setFullResourceName($var) } /** - * Specifies where the resource is created. For GCP, it is the full name of - * the project. + * Specifies where the resource is created. For Google Cloud resources, it is + * the full name of the project. * * Generated from protobuf field string container = 4; * @return string @@ -306,8 +307,8 @@ public function getContainer() } /** - * Specifies where the resource is created. For GCP, it is the full name of - * the project. + * Specifies where the resource is created. For Google Cloud resources, it is + * the full name of the project. * * Generated from protobuf field string container = 4; * @param string $var @@ -359,8 +360,9 @@ public function setProduct($var) /** * The location of the resources. It supports returning only regional - * locations in GCP. These are of the form: "us-central1", "us-east1", etc. - * See https://cloud.google.com/about/locations for a list of such regions. + * locations in Google Cloud. These are of the form: "us-central1", + * "us-east1", etc. See https://cloud.google.com/about/locations for a list of + * such regions. * * Generated from protobuf field string location = 6; * @return string @@ -372,8 +374,9 @@ public function getLocation() /** * The location of the resources. It supports returning only regional - * locations in GCP. These are of the form: "us-central1", "us-east1", etc. - * See https://cloud.google.com/about/locations for a list of such regions. + * locations in Google Cloud. These are of the form: "us-central1", + * "us-east1", etc. See https://cloud.google.com/about/locations for a list of + * such regions. * * Generated from protobuf field string location = 6; * @param string $var diff --git a/DatabaseCenter/src/V1beta/Dimension.php b/DatabaseCenter/src/V1beta/Dimension.php index 64f9c528ca1..b371ca3bed7 100644 --- a/DatabaseCenter/src/V1beta/Dimension.php +++ b/DatabaseCenter/src/V1beta/Dimension.php @@ -24,8 +24,8 @@ class Dimension extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $container - * Specifies where the resource is created. For GCP, it is the full name of - * the project. + * Specifies where the resource is created. For Google Cloud resources, it + * is the full name of the project. * @type int $product_type * Type to identify a product * @type int $product_engine @@ -34,7 +34,7 @@ class Dimension extends \Google\Protobuf\Internal\Message * Version of the underlying database engine * @type string $location * The location of the resources. It supports returning only regional - * locations in GCP. + * locations in Google Cloud. * @type string $resource_type * The type of resource defined according to the pattern: * {Service Name}/{Type}. Ex: @@ -76,8 +76,8 @@ public function __construct($data = NULL) { } /** - * Specifies where the resource is created. For GCP, it is the full name of - * the project. + * Specifies where the resource is created. For Google Cloud resources, it + * is the full name of the project. * * Generated from protobuf field string container = 2; * @return string @@ -93,8 +93,8 @@ public function hasContainer() } /** - * Specifies where the resource is created. For GCP, it is the full name of - * the project. + * Specifies where the resource is created. For Google Cloud resources, it + * is the full name of the project. * * Generated from protobuf field string container = 2; * @param string $var @@ -203,7 +203,7 @@ public function setProductVersion($var) /** * The location of the resources. It supports returning only regional - * locations in GCP. + * locations in Google Cloud. * * Generated from protobuf field string location = 6; * @return string @@ -220,7 +220,7 @@ public function hasLocation() /** * The location of the resources. It supports returning only regional - * locations in GCP. + * locations in Google Cloud. * * Generated from protobuf field string location = 6; * @param string $var diff --git a/DatabaseCenter/src/V1beta/ProductType.php b/DatabaseCenter/src/V1beta/ProductType.php index 96d5249f906..b33ce323e43 100644 --- a/DatabaseCenter/src/V1beta/ProductType.php +++ b/DatabaseCenter/src/V1beta/ProductType.php @@ -23,37 +23,37 @@ class ProductType */ const PRODUCT_TYPE_UNSPECIFIED = 0; /** - * Cloud SQL product area in GCP + * Cloud SQL product area in Google Cloud * * Generated from protobuf enum PRODUCT_TYPE_CLOUD_SQL = 1; */ const PRODUCT_TYPE_CLOUD_SQL = 1; /** - * AlloyDB product area in GCP + * AlloyDB product area in Google Cloud * * Generated from protobuf enum PRODUCT_TYPE_ALLOYDB = 2; */ const PRODUCT_TYPE_ALLOYDB = 2; /** - * Spanner product area in GCP + * Spanner product area in Google Cloud * * Generated from protobuf enum PRODUCT_TYPE_SPANNER = 3; */ const PRODUCT_TYPE_SPANNER = 3; /** - * Bigtable product area in GCP + * Bigtable product area in Google Cloud * * Generated from protobuf enum PRODUCT_TYPE_BIGTABLE = 6; */ const PRODUCT_TYPE_BIGTABLE = 6; /** - * Memorystore product area in GCP + * Memorystore product area in Google Cloud * * Generated from protobuf enum PRODUCT_TYPE_MEMORYSTORE = 7; */ const PRODUCT_TYPE_MEMORYSTORE = 7; /** - * Firestore product area in GCP + * Firestore product area in Google Cloud * * Generated from protobuf enum PRODUCT_TYPE_FIRESTORE = 8; */ @@ -65,13 +65,13 @@ class ProductType */ const PRODUCT_TYPE_COMPUTE_ENGINE = 9; /** - * Oracle product area in GCP + * Oracle product area in Google Cloud * * Generated from protobuf enum PRODUCT_TYPE_ORACLE_ON_GCP = 10; */ const PRODUCT_TYPE_ORACLE_ON_GCP = 10; /** - * BigQuery product area in GCP + * BigQuery product area in Google Cloud * * Generated from protobuf enum PRODUCT_TYPE_BIGQUERY = 11; */ diff --git a/DatabaseCenter/src/V1beta/ResourceDetails.php b/DatabaseCenter/src/V1beta/ResourceDetails.php index cd523092cc3..2b35ea8a5cd 100644 --- a/DatabaseCenter/src/V1beta/ResourceDetails.php +++ b/DatabaseCenter/src/V1beta/ResourceDetails.php @@ -23,8 +23,8 @@ class ResourceDetails extends \Google\Protobuf\Internal\Message */ protected $full_resource_name = ''; /** - * Specifies where the resource is created. For GCP, it is the full name of - * the project. + * Specifies where the resource is created. For Google Cloud resources, it is + * the full name of the project. * * Generated from protobuf field string container = 2; */ @@ -51,8 +51,8 @@ class ResourceDetails extends \Google\Protobuf\Internal\Message * @type string $full_resource_name * Full resource name of the resource. * @type string $container - * Specifies where the resource is created. For GCP, it is the full name of - * the project. + * Specifies where the resource is created. For Google Cloud resources, it is + * the full name of the project. * @type \Google\Cloud\DatabaseCenter\V1beta\Product $product * Product type of the resource. * @type string $location @@ -91,8 +91,8 @@ public function setFullResourceName($var) } /** - * Specifies where the resource is created. For GCP, it is the full name of - * the project. + * Specifies where the resource is created. For Google Cloud resources, it is + * the full name of the project. * * Generated from protobuf field string container = 2; * @return string @@ -103,8 +103,8 @@ public function getContainer() } /** - * Specifies where the resource is created. For GCP, it is the full name of - * the project. + * Specifies where the resource is created. For Google Cloud resources, it is + * the full name of the project. * * Generated from protobuf field string container = 2; * @param string $var diff --git a/DatabaseCenter/src/V1beta/SignalType.php b/DatabaseCenter/src/V1beta/SignalType.php index 8395e465bcc..4688618ef12 100644 --- a/DatabaseCenter/src/V1beta/SignalType.php +++ b/DatabaseCenter/src/V1beta/SignalType.php @@ -62,31 +62,31 @@ class SignalType */ const SIGNAL_TYPE_LAST_BACKUP_OLD = 7; /** - * Represents if a resource violates CIS GCP Foundation 2.0. + * Represents if a resource violates CIS Google Cloud Platform Foundation 2.0. * * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_2_0 = 8; */ const SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_2_0 = 8; /** - * Represents if a resource violates CIS GCP Foundation 1.3. + * Represents if a resource violates CIS Google Cloud Platform Foundation 1.3. * * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_3 = 9; */ const SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_3 = 9; /** - * Represents if a resource violates CIS GCP Foundation 1.2. + * Represents if a resource violates CIS Google Cloud Platform Foundation 1.2. * * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_2 = 10; */ const SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_2 = 10; /** - * Represents if a resource violates CIS GCP Foundation 1.1. + * Represents if a resource violates CIS Google Cloud Platform Foundation 1.1. * * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_1 = 11; */ const SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_1 = 11; /** - * Represents if a resource violates CIS GCP Foundation 1.0. + * Represents if a resource violates CIS Google Cloud Platform Foundation 1.0. * * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_0 = 12; */ diff --git a/DatabaseCenter/src/V1beta/SubResource.php b/DatabaseCenter/src/V1beta/SubResource.php index f4f2373c841..1c96bdc417e 100644 --- a/DatabaseCenter/src/V1beta/SubResource.php +++ b/DatabaseCenter/src/V1beta/SubResource.php @@ -56,8 +56,8 @@ class SubResource extends \Google\Protobuf\Internal\Message */ protected $product = null; /** - * Specifies where the resource is created. For GCP, it is the full name of - * the project. + * Specifies where the resource is created. For Google Cloud resources, it is + * the full name of the project. * * Generated from protobuf field string container = 4; */ @@ -95,8 +95,8 @@ class SubResource extends \Google\Protobuf\Internal\Message * an instance * OPTIONAL * @type string $container - * Specifies where the resource is created. For GCP, it is the full name of - * the project. + * Specifies where the resource is created. For Google Cloud resources, it is + * the full name of the project. * } */ public function __construct($data = NULL) { @@ -231,8 +231,8 @@ public function setProduct($var) } /** - * Specifies where the resource is created. For GCP, it is the full name of - * the project. + * Specifies where the resource is created. For Google Cloud resources, it is + * the full name of the project. * * Generated from protobuf field string container = 4; * @return string @@ -243,8 +243,8 @@ public function getContainer() } /** - * Specifies where the resource is created. For GCP, it is the full name of - * the project. + * Specifies where the resource is created. For Google Cloud resources, it is + * the full name of the project. * * Generated from protobuf field string container = 4; * @param string $var diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/MachineConfig.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/MachineConfig.php deleted file mode 100644 index 9046884a7785d2a1861c9d555adaec73b3dfceb1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1136 zcmbVLO^ee&7&fhXm~{nvT0vo~tJ?)lSv&|+t2C`!_psX@77r3AlgXQQAjyQuq)?^c zN&GGT6n}+hZ~g-(GyTf0BG^mHywCf*U(fUEO*YHWV?2ZuBvlaNV1d;Pa3+NkOvE@S zq6j2rBFT6R(#3c%!WW}U{C045`ADbcqL2&-o(eIIq0M4ZgzbrHj}7jmtgh9rO*pZ|yL^)l|Ca)?6@W^~SlBxF0)mc$J8{54;V&gS~L0v!I^6Ec&&bu359jEaCp*hQnRrIEgIyUO)sCO6Lne1eH`)F^n zg?pcC=&2UI`|qB;Mx|k+im~(I!j8Gl7fE|6u6l!Jd}WX7HnN~|_2FBsIW)F#jV;`@ zE&9e~uC>MYHOOC?XX73V^R<0SH~y?Wv1Ei8HbSa&gjif~+xYaw(MAQ&tS)zC{8tGZ Lq!ro{EfM++!QgkO diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/Maintenance.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/Maintenance.php deleted file mode 100644 index fb388174f7cbca7a88316b7bf9bc5e338f5788ac..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1947 zcmbVN-A)rh6t*oG7^0M_gusPkMJYtL0rh4PN&mpcKpR1cW|KPIJxe!kcQ(6IOf_8k zB3}9ezJpKUwGTm@pWU*BLWJJ5o&C-^-}&a-b6#%x9Unc!+u%V!7+AR7$E*X`4=AH1 zb#c3A+Yn%rc74Z%K*PA&z`KooT&vdiAMntS_5u@hd`Rh`3q{kVJ*#LDM%p9<6Fde% z@o2RTj1;@X;eS2inV`u62zjInp-)V}+s*P02Z=~yTjnw*KZ#ZlMK zk=(#6=s~hN#sRQi;H^vEBEj+CmoY-SlJ6K>4!BksI^@Wqfv%r+b(&;U=ziY^p*mbS zq)+WH0H3cIx9@a;+7{`Lj+44SeI=|TR4!T8K-4X6$-+PeA<7aunLy942|*C^O>{36n=Yo?jR~k91HbAAZQp*)36Wt1u5hP8uvT= zC7sJi>~fs-5&^WP2$13VA1QQy1oJ9*{Q>)xn7z;{Vm}ktk?e)fV&W6vSuKea?5EZ) zLN22*sfOTvxf=QJX*8XXweHz8*G6{}lc*I&Qb+VQV|tg#Frx3cXVr|0<}EHnYgD0- zUrvS-uUxZIQejmMqdUn$M-YU3jLCbQ6o|~qCp0dvE_V;jG+&qYYOQy>d(B#Z2-*~E>=DcVeZ z+*NYN?;!0K59!%8LVPFMB-|v4{o=RR&mR0t=eOk&(JEqzXxwHppduHNrk2R>7-U4N zX0U4%%;3vLEUv%lM=F`F%WS$noKDvju6cr CVt(`h diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/MetricData.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/MetricData.php deleted file mode 100644 index b07ec253d3e98e1b2f59462db8369cc90ae16ff8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2194 zcmbW2|8Cnh5XU3uhto@o4PKi$=?1V~w>rQoBU?5g%F}tF$OOK1_1&kon4`_ zD3DZuY{(z`Z;!BN*rV)Cws#m%QnDmFPFqa=M+SNP-0|*s-|xOpUM27u8DNZ@N(_j1 zN#rXe31^b|EFxYy9wR3{n@(X>W>>hrX*f&CCHnOs6Ok>LVEp?H9^OZ#sjF<(z1i(_dgY=lixY zI|A?{Dg;qy6jR&4Z$Q*9NxdlaiI7yP&%;o-VI0bkM&YmOddFl;BZ2Dpvh6sHeHpTt z=mTf5kKH|zGqvr*gsF5KlOnjG&XCHE^ITssrjgS};qx$&j1QHmWld0)dDSc3y_s8$ z3&*6J$7oqgK^_yyQ=Ios2uGRn_$Z581Fp({&JC$6qZ@@P!IDlB%c`zbQLLOR|Vdm}8`KJlZyquyngpZQLL)TAI zHq&Q*)MLKU4(&`kvf zu6HR>v{!3^8yfr*v=gMSE9zVZ)@or_HFg9aXV@uD8NXb}>v}Ef+B`K*ryg?GXK{?# zGZO8MTGVw-9jMX30#vv(mhEOO(1r&62=~;e@ll8{p17%c*)!&5EoM_Q&ta!1e38ql z?zd`jHx<|3hP&RtO&xbGH$EO(%NA9mcg^^v^`?R>MiLDgf`-f~UtJFw+e zm9g8f?cSJQ`xDqLgDZTLS?c_508}rubqwnlG)nRRJn+$Fg2A~y)jEI=nJ186WK+VG zYUZ``hrL^j3Ke8FuFY~FcKQHwjBU6bFr^*nR*@K|E3JF5rKaPz2eW03T|Hf~o3n`R z{|xv-sbk^i9Rtq(pt^B3pNGaTFLV21p0R0f!mg_)O~RRgF3!!wJG#E`SEDn?wA0MA z)6}}C2kl9w!)C6Xe-}p1Okqoj&CML8v0AVHZG4`?EGwf~)*{ZbayxG$OYYZ?O0oDd T*RMIbd#luCmbo5X!4<$8!Qtb% diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/OperationErrorType.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/OperationErrorType.php deleted file mode 100644 index 01c0439325f99f3fc19556f014fb064fd6e21fd0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1147 zcmbu8--^>f6vk~`_hLY;5%l)BR<|pfvUrzTC2eO*X*Y>!c3~wDl62Y)q?s_82&?qc zml3ah2p`3#a3)DhyG6V(SK;u@@BIDVeMqlU^c;pHA07G zl}RF+c!V*^JbsfBwaA1};x9>-`XPa#)jJnziExJn)a^^CJJ^A`m!~};>mU@yewKl` zhGWTg1R8xsAigvY;wXfSi_{@Bqs)tvh(~@LeG&b3VeZEn5tx1LJWoPdF31OF5|Y*l zluW5@rc}(Q3+o~+IWjRWcO-jG{Ma3kEM!s2DYJxB(-wqp1}!74lPaymMRRDCHEP;k zkzL>{C)?Qp7~wffIz`g*}PjMBi%h=R0`(yLMsbY7PCrIh*MjuZmTR9pB%476!`f)PF_9eC} z@jVF`84k7$eNx2^d*ABlr8s}}-#zx8?l)Lmg;o1xl(Shw=(4?_w{7C5QRS4~5vD=s zcHn#cXjphdExe(wz0ofWrs%%cO?J- diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/Product.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/Product.php deleted file mode 100644 index 772a6b0ba99ddcd74a91f37b684c24c0b46d54bf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1901 zcmb7F-E!MR6vj?)noUwv(RNJez&51R%}}{5Tq%T({;X=omQ+a&xT6`3EUz8SD3V56 zXQnWD3f_XJ;DRfjf@>ZDZdhq$$8u6AzLDqbcfNDZcXrSD_GNmOf-j(oVwCw9P2l(~ z#AgVmS%Q-wiQsrXouUi|$$1(^DB~cM4X7IqRAkM0NL=$|o&|`9vm}{Cs2fDdeA1ox z*dO~j3Q&wu*1dQ>M%eEX(#br)TuBZH-vD0}R;4q0{ z;b6o8>O6szv%nsv3DMyME;1ugaYAHqwW7Azk6an$K^CSs$xH&}`5D4XK?_UgNfoxB z3#YI{bL9DJNuEHQ&CzOf2s4D|S$tgPT@YL@|G78lCZwU;3sE!?(V2e{CK=CPRdq#D z7WMSIuqr{AOqLnzwyHL=BG|-l zQ`Bz2M(6g6F8AN=T;=KzH*w<+p~1ccEfmkf7`2-v%hCI=D5VD_xC^!}P?nS1(B2>n z+tj)b_RhmN$-Kqc=JM?5=MB)J4D5ZtD!QuaiZ|44Q<1curpU|(ECY5c`(R|h?lTSc zWAIUBF%8>MEyZS<>^*R&G7^wyE7qxEF&pe1uveLN!O>0?W|M{B!Gcg37}m&k3`_BP zhUHo0UE0howgV3T4dF@sq3sa*ZT1m(SRs2F$)jZYUUOb~G@3UsWQ74MgljNaa0KdA zB6rwNz`cr4`9Ua7J;M^DzQXLT_1^+c9hla_uCKCO`!N(>#vqk54} zeg^hy04lp@=$q=h$R^?ImSBW9<#xpmi4#t+568sJMZ``_agiMy5D_ujk@KWZPh;kvp*ZR#36ZL0NC)jy_c+jV@W;aFaT_$Fwj8Hr(XEE%bedaD!#C=NM;p}ksk`<3Zk_tZmPg&^W`m|U za{${opZXt}lNl27f$F;* z+P}N1y43Hu_I)llWAL*3Uu}flvTd`LwQYx4!Lhwerl(Vn#j6POmWd7!Mhi=q=ko=Uxy)>bqux#plKF!>DR@8e`c0ECW`| z7RKcm&aa-fDND9j7>B38orlbXEa0=vW;edKu_|nKBa+4EP58|NcxT*lKr}&-;sqqd zN(}}wj#xnIbs3Rz!TS;9IT2x}H+bAh!gnJPc7tmi zDjq>P(^OJLF&frR7AIp+cp?}i#j4cDM~|~IEvvCstHI^R9qOLSK=jJ=;|}$FvJBI0 z!$ngkCsk#0E;sq->;zebxwg@wx`(wjso?k&8&}9003Y|AXVgwk1O$rqJq1<<*n4fP zPn0}>S*eqUoF+G8=`W;&jAw;HN{Wd)F52{)zCO4uNkXh+yA*wD)Gdm_PYU6uwO>tu z#$~~P=RsDcqKWOePNzLWai*YD9IbI=T9^iX%8@D%VPu_IRc~=Ne8*V&UKC|SzOp3b zA_!aVLtJtdJ9^1W+&u3@=ZMLPq6&5^FzdKY>gx5=6-I68^v82&1?_iuH*Q6AY~AK@193KQiKKRE$RLV?yOW4 zX1ku(!EV>FeeL%%kQfw~?8729L@a6-BkDSkqmE^Dx#mzFo)&OH?aM>7;hN& zC! zLRmFhWCa!i)A1Bd&T>f(V9D#$dv;*io1DX`c*L~r)XOr&S?-cuh=+Sfavqt*(s!fC z83H|IdoY}UtGpG3lc*-Vk}&6;@IK=u7q~2uiYtO~1UDWzgr%`|Es9Qv4bEE`|b))gD({8%5`zDvTwCO1N<~V7gEbyYJcBnUPBKmjiB;oQ# z(z_@~NEs3*m;w?o;yL2TNiK7NB9-&~9_=oYa*4FRD6pPwwOralWAKcxAV&Yc={9Lt zV0g>I#AlF%^5l=DmjVZ{+(=<%qFkFtuYFfhatVm*AtLR!3S1efq-+Y9aV9Hvq9f?+ z92At@NS5Vxb%^$D>ZKmU$RISVwtxo+8)bN_bj!BDshGnyEpcz?v*?_S4!w z6<8eH@iNReO|NYkr=o0fY{2B`CW@&4AvqAF1k-_lV(+(M?$le&5K3!-ouTl{bB-ut1E1aJY`4Yb&)9=PeXp7_amGEGCA^0YiXemxIp~SRGVU zR)RcSa-A1J^1m09nKMp*sR2&T3zpyA=#pt8^1VOQ-hj*9Mg6lP14o=61ne0&KTP$? z!oL()8kXfNFxNCssO_$xOZ-#hyh@fm~jP#efUe1MU`n z?!hTC2ug8mZ4e{!GY?LbMxjIoAkT*qk>lf0uu9<0bHOTPiARJJ!^R^yMxZau4_w4Z z2x`AeDn0P92cKe`%{cH0#aV(G1nN4ghztVH;Sh!l8xnPqVNo`C8GsGS>d25K8%0;J zQPVzVb(}Vn3?;^4R-XlIcOJb29K?mo{I#}7wbaR_D^ z1RnhMj|W{W9jSl{kKhS(HfWn1#>CQ*YSW-rm=u#$Jc5sbkJu$dFZWq9o7KLLP`oUG zq=bHC^gV_E!`=izw!8;}S#=^o18gpG2sa`>d2FY5VhwYYOweyTq?sFaHN-R<3CA@LfS zhuPhON;P|sFD4Z9Nu^pWCnnfbAzRJnvXx?D^7aYL1c&G~SZ3b{cMlH+n5_Z{ zCW;5hq*UHTT7_JJwc&BSggfCjmmv{MGC2y_asjvdBZfs~;1&kesXWQ)U6ra&OT_^R zHsJN)B`C&zw)_+YxdvB;rz^$$A=~yT3Zuc*;RWSlwt%~q_IC5x#3Z=^+VGm<*HGVs z?4BNMHpR3aUUyi1gvPye+lP3#H#6Dxvj^Fo;y&6=AEDcb1v~kYE{F=KoeFOZa;Oyd zw!14P(*K!(c#y|=#1qsdKT%+Tm%yMQkS|98V<8fG$XSn69S0~y#nm>x^Vwg2FtJ8f zFP~vxW$>Mn^7R98h7Z2sIVW2!XYfG??k(ShgynA6?+*_A zY(m@NPeM}si#NN2W7A)f||YVzSo_vMIKR>P+w>7qbem~&?`HSQ_7}y=jJ}5)?5fRdjCjPsSBl3LFX1J?e*wBgeh~lw diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/Signals.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/Signals.php deleted file mode 100644 index 25718f2c671eb9836ec544958c55c8944febe26b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 10514 zcmb_iO>^7E84j)3mR9~iV8@Z|#AawGmYqZ&v=cjYTo(i&3K0p=04Q0mnk_{_GN%;D z5M)|6lVcA(bf%Y1Po3$hhh96=-ueUjC)#s=LND#Jy8s9-X_a=9OKf8I+4tjlpZ8rD zUp($T?~xnXQqT$d^+C|g?!U+mo(I`pzdPtQy6x=#@ZccmXB*w4UaKASSF%~d$=Z&e zH4V#uA6vuju-^y@*~4!4upO*6+TCGuwOJq3_v>NM2s(qHzxvJkelV!7hONU+y&bM_ za6&ruqaf_n8$q^IEmp9A?b<7GoIRc4>=|P?d)w}M4Z^Z#G2h_Oo)LtNeyca=_N!Q0C>#cZB%th<<=fG*46b#MT^2SL3KK>? z$`1O&Abol^+YbiAe&->#n*n^6{Aq7W+_YY6Z=)5oo5kRH{hL;|Unq>c8i7pPdQ8ao zD)kn;?bH#R?+4K7F~T9}X20L<`!9Om6E3pT95x2ukCEOm>;;_=R=Pnw>~>~HO-N!4 zg`2Oj)o-Cb2KA%fYwX?W*L#R?IDIRp^d~=HDP;uKn$3i-8>sT-gkg+tx5#fTvi7Rw zt>(mz6)p%X+>_ z_S*FqlxgfzCYxDaD9-&;JE2=ej_*boqed6uKO>h~o#5c0)o6ic^y^{Jj{>yF z(I3oWy){C3!T=)d2D#cD4v>}t8bBoMz;eU#4TlssmVg_FDJ;`QJb(k{CooOnWZ| zLCC{4r(Q!(KEnGF);C#0ZUtd9t+E)*<$jkTr=$5vJx5N777*D0s~Sk!VYmN+=Y2u- z$;EzfIBeH(+zVz0#;krb9&~3)k(=yC6!~^G<_13(w@Nzfw<59ril~!qla1U-TZXRl zTZ(##oJ;*kTS7T_)Y8908+jvQ9c2NdHt=I#5?kPN>{bMRo}7+G4H1MKr2b_yg!(?Y zJUUUDR0Lk`*BSEOv7>?7Cf5=rNzWr;<9W~=wvpQmzgRq;r3z!UN*(D%IJ`D;|2jcV ziK~u0NU-3(`XG@SYyPi$m|7)jJ-N|PF=fP5n@Ke%?n4$iC+=$@W}H5HeWWcjT~_$L z%!@X%aY;ZmaC097LPv$H9HY8-exKZb!8lw})%VC{&nnqknKCV@d6Jl9$-Co^@fMY8 z)oR(&wPM+XzFZ{A_zGuBIibEoE{y+bd0x#_<|fZ$fTqpB4CT!`e;e5+X3La)PR-S2 zvAaR8$LEO0uIY(CR7_tpG+%>>6N@}kuep}LOE)aru~N zjUQBT@W7@{(KFp`t!R~j2M7L|A!o-kb&Xu%&Qs6aHuHm%Yoth`Fzksjzc5xFWWZ!!<1hnDM_Wpi7zedXkxe`E;}b;w@IFsR63 zf43@!{Ufq>EB!QyI%_o!+@w|4@lD<5Eoc;f4pnlUT9sC6W#4kmlI4JW@aYcuFpX$C zRIB+;1^vySMNQwrmZ}5VA;_s@a6oUK&g{#2T zm#uNihH_e6B_E|1Y+FtlMtM}XJX+GLbi=9HAR11jdAg>|zsiPndRJL^wGDZNyxN9! zW%1QEtSM*YY>YXrJGSpSWshz@fWKw+Cdp0>kZmE{57yS`r+1aJ>fSAK<9{uq?x%{W z7RYBWU#RaEO?Onku2wO39CwRuufvv2Ipc}lmgms?{k64q<(#@qZcfEd*3j+zT0XCA zyxiuhZc)QS1nwf|>&kic1M>b<%w*v`m{(HQ$tP2n>1C&8&?K;6y=y(C+xHX;1JsqN zTQ;q#rYT>h#EsWN;<4xGdFIIaePv7ijO5cGWvAp(CcIA7w<^{%l-P#jQe?FT9Y#4h zK2%XrWEwoFneHw%YA&a{fB;qrRsPmQ2u!!=cqTPn7tm}KgH%;nIs|6f(YNT1X8B{F z7i8}u7+P^aEspFd7jczXmb_zUQO7Rt(pdlE)o;soRxI19p#6>8c}ZrHFq8F2k2?dG z-%;<8we-Q}Q{D7DYuk+7rOpP`%NF#AZo*<4WL1`A5=`Ay)j)EW_he7Gtmete|2(K# z)@(c3b49LsmhL!wJTitMdcKJs=X=W4m&H2ex$^Er`qHqzS*bd%28wLp!r>|Jsh^PB zX}dvi8%=>pWkq|+8Hk@YtWwQIJg-gETaCqlan!M)x1*KU3uc`VOsv!j?`o z+<-h!$xdS0rmefXRn}KV_IS$s>S)&Cm4puDq7Z0R^E^n5q2y#v?3mh?wC09-m#n5; zjt*lkZ<)Ko<(h}a2G1&*t+Cp( zV>V$k9q3<0a`$c>w;aWXwQN`dLo~xvmT{ZEllEd1D607^&Es`?TfI#_NUt|6Z?t8s zr0=L}VY&iCi0= zX?qxxP`JLUVa8EqcZwtX*!M*Cew9ygCtZFj4uBHZIP9Mv_c)TW$7i>1dXtZs4 zU<8oYWr<~j9JOl|bUCITPSvz2oM7dYm!(Tu8!fvld&if-G27Eb?O6t``50KAab79+ zWaeX@8MpFNc^Y(T=p7prY2H#klgSdXS2tZB?<7E8#NX6h7Jkd!Rqo3!Ct1>J_&kFt zH*m#;;DM~|7&Orub=*Nv8;;9cmu>oN1n`v4WoeC?VKg|Rc%sco`jmp~*^`>X$^c!_ zS02g*4@rpCARb1)kiAdyzG}MYt0;5EsY(^$S02fl=vS&yg6WjyKbTm~^2mhTo3{M1 z99y3IFC7beb}U2;dBc^*dKEiex@fq-uo}d$4&+3n#P9=6bfJc{Skt#mU(w|;P}&`(aOz$|wv!8W zlDSRI+k~|x(8u4bD3ys8fi!c^k{!{-!&aBb#k5D8P-GkTK*f=j2M`9XR=m|kS0MyN zsmemh7=`SxtWb<%COE1yjo4M5$mC1zSY8dU`;bIKapg6LE|W3{8N0h`HniN6(~Ki4 z8ji%JoAFZkmhP^;tag@dZlI9)9K)vpr8W^W*VGI+0aSiGD@fK$lx_80vXqWl1(J;k zK~&g|d=wiCBK;5xm8W>Ucqt7~)?CoUb#^>uSDslo-5Gn~7vkk%u27!ILE?+Jy~&y% z9n-cQw-g77bzl#o>G4;sdwa6putv&L{?a`^mWhIj1hY{-m_soqBlWC$l&|Dlm8Wl- z6^%EgWN25Y++JLhznS4Sl(mvlmlq_*iLq2^$id-a?6C1V5#grHpwXKVm@QMug0uv3 zM`5+j7)zlstp1gQ;=eQGL;UmR46hK2(H9#b`v>K2HS^3C|Bw`a{?R>JJ?zR~@6~&) z=mWm^#kTmYuebkD{^3t2awY!#-U|PiY{iJa-_!Ai8y^pf@Av*5FWQT~@=HGR6U+AS zoge#N@LwlB5MYG@M=KP@;R*$@ZvPbj$IQF8lFybt7N60jzPiJUV0;xg<%>JMQhXQp J9r=!s{{mFRw4ne1 diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/SuspensionReason.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/GPBMetadata/Google/Cloud/Databasecenter/V1Beta/SuspensionReason.php deleted file mode 100644 index 3a83e693226f4f35a06550d3283b13edd528b7d4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1185 zcmbVL%Wl&^6s4hbF&iS6#{wayrO*_Cqr%RipxB;<5y7!yr>Mx1HFhScCD&tl#z=s= z;&1pAetM|5Xh8&>!srteXB6fI6D(#a zjLO-J7BFV#d6LpXhtM8DXXHa?J%*vP2{#O+L#{J%TfmawT@%a1~%n!k>r9Eu7n!KoQlTds?s@Fw5{Zl8SKlZ!6OK{elaGlbD;7S+$ZlWL?f~sQcF}0! zhi|ZrLUe*0zrCT|1>4KII~fm_FIw6y&^GaKh@C-bW3O)xrOb708{F)h6Az6;8~Moc zWpPt`0PZ2j8lSp;)&4Cy4YAX=EaZ7u(%Lt)=RhALcZjXNB!t#*;`vhHZ=5ajYYRM< zG133+iFte75OqNA#s{Z%aw);iyK}Z4CXy$MJgpj@N4@pJx7O}Jg-BN+(w8B!R4ny6 zMBkU7U=g(@Yc(v8VXNZ%tM#ZBGYq9>7^`xIQRAX5mFgG!&8google.cloud.databasecenter.v1beta.AdditionalDetail - */ -class AdditionalDetail extends \Google\Protobuf\Internal\Message -{ - /** - * Where the signal is coming from. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalSource signal_source = 1; - */ - protected $signal_source = 0; - /** - * Type of the signal. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 5; - */ - protected $signal_type = 0; - /** - * Event time when signal was recorded by source service. - * - * Generated from protobuf field .google.protobuf.Timestamp signal_event_time = 7; - */ - protected $signal_event_time = null; - protected $detail; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DatabaseCenter\V1beta\RetentionSettingsInfo $short_backup_retention_info - * Short backup retention information applies to signals with type - * SIGNAL_TYPE_SHORT_BACKUP_RETENTION. - * @type \Google\Cloud\DatabaseCenter\V1beta\BackupRunInfo $backup_run_info - * Backup run information applies to signals with types - * SIGNAL_TYPE_LAST_BACKUP_FAILED and SIGNAL_TYPE_LAST_BACKUP_OLD. - * @type \Google\Cloud\DatabaseCenter\V1beta\SCCInfo $scc_info - * SCC information applies to SCC signals. - * @type \Google\Cloud\DatabaseCenter\V1beta\RecommendationInfo $recommendation_info - * Recommendation information applies to recommendations. - * @type \Google\Cloud\DatabaseCenter\V1beta\AutomatedBackupPolicyInfo $automated_backup_policy_info - * Automated backup policy information applies to signals with type - * SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY. - * @type \Google\Cloud\DatabaseCenter\V1beta\DeletionProtectionInfo $deletion_protection_info - * Deletion protection information applies to signals with type - * [SIGNAL_TYPE_NO_DELETION_PROTECTION][google.cloud.databasecenter.v1beta.SignalType.SIGNAL_TYPE_NO_DELETION_PROTECTION] - * @type \Google\Cloud\DatabaseCenter\V1beta\ResourceSuspensionInfo $resource_suspension_info - * Resource suspension information applies to signals with type - * [SIGNAL_TYPE_RESOURCE_SUSPENDED][google.cloud.databasecenter.v1beta.SignalType.SIGNAL_TYPE_RESOURCE_SUSPENDED]. - * @type \Google\Cloud\DatabaseCenter\V1beta\InefficientQueryInfo $inefficient_query_info - * Inefficient query information applies to signals with type - * [SIGNAL_TYPE_INEFFICIENT_QUERY][google.cloud.databasecenter.v1beta.SignalType.SIGNAL_TYPE_INEFFICIENT_QUERY]. - * @type \Google\Cloud\DatabaseCenter\V1beta\OutdatedMinorVersionInfo $outdated_minor_version_info - * Outdated minor version information applies to signals with type - * SIGNAL_TYPE_OUTDATED_MINOR_VERSION. - * @type \Google\Cloud\DatabaseCenter\V1beta\MaintenanceRecommendationInfo $maintenance_recommendation_info - * Maintenance recommendation information applies to signals - * with type SIGNAL_TYPE_RECOMMENDED_MAINTENANCE_POLICIES. - * @type int $signal_source - * Where the signal is coming from. - * @type int $signal_type - * Type of the signal. - * @type \Google\Protobuf\Timestamp $signal_event_time - * Event time when signal was recorded by source service. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); - parent::__construct($data); - } - - /** - * Short backup retention information applies to signals with type - * SIGNAL_TYPE_SHORT_BACKUP_RETENTION. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.RetentionSettingsInfo short_backup_retention_info = 2; - * @return \Google\Cloud\DatabaseCenter\V1beta\RetentionSettingsInfo|null - */ - public function getShortBackupRetentionInfo() - { - return $this->readOneof(2); - } - - public function hasShortBackupRetentionInfo() - { - return $this->hasOneof(2); - } - - /** - * Short backup retention information applies to signals with type - * SIGNAL_TYPE_SHORT_BACKUP_RETENTION. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.RetentionSettingsInfo short_backup_retention_info = 2; - * @param \Google\Cloud\DatabaseCenter\V1beta\RetentionSettingsInfo $var - * @return $this - */ - public function setShortBackupRetentionInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\RetentionSettingsInfo::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Backup run information applies to signals with types - * SIGNAL_TYPE_LAST_BACKUP_FAILED and SIGNAL_TYPE_LAST_BACKUP_OLD. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.BackupRunInfo backup_run_info = 3; - * @return \Google\Cloud\DatabaseCenter\V1beta\BackupRunInfo|null - */ - public function getBackupRunInfo() - { - return $this->readOneof(3); - } - - public function hasBackupRunInfo() - { - return $this->hasOneof(3); - } - - /** - * Backup run information applies to signals with types - * SIGNAL_TYPE_LAST_BACKUP_FAILED and SIGNAL_TYPE_LAST_BACKUP_OLD. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.BackupRunInfo backup_run_info = 3; - * @param \Google\Cloud\DatabaseCenter\V1beta\BackupRunInfo $var - * @return $this - */ - public function setBackupRunInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\BackupRunInfo::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * SCC information applies to SCC signals. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SCCInfo scc_info = 4; - * @return \Google\Cloud\DatabaseCenter\V1beta\SCCInfo|null - */ - public function getSccInfo() - { - return $this->readOneof(4); - } - - public function hasSccInfo() - { - return $this->hasOneof(4); - } - - /** - * SCC information applies to SCC signals. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SCCInfo scc_info = 4; - * @param \Google\Cloud\DatabaseCenter\V1beta\SCCInfo $var - * @return $this - */ - public function setSccInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\SCCInfo::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Recommendation information applies to recommendations. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.RecommendationInfo recommendation_info = 6; - * @return \Google\Cloud\DatabaseCenter\V1beta\RecommendationInfo|null - */ - public function getRecommendationInfo() - { - return $this->readOneof(6); - } - - public function hasRecommendationInfo() - { - return $this->hasOneof(6); - } - - /** - * Recommendation information applies to recommendations. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.RecommendationInfo recommendation_info = 6; - * @param \Google\Cloud\DatabaseCenter\V1beta\RecommendationInfo $var - * @return $this - */ - public function setRecommendationInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\RecommendationInfo::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Automated backup policy information applies to signals with type - * SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.AutomatedBackupPolicyInfo automated_backup_policy_info = 8; - * @return \Google\Cloud\DatabaseCenter\V1beta\AutomatedBackupPolicyInfo|null - */ - public function getAutomatedBackupPolicyInfo() - { - return $this->readOneof(8); - } - - public function hasAutomatedBackupPolicyInfo() - { - return $this->hasOneof(8); - } - - /** - * Automated backup policy information applies to signals with type - * SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.AutomatedBackupPolicyInfo automated_backup_policy_info = 8; - * @param \Google\Cloud\DatabaseCenter\V1beta\AutomatedBackupPolicyInfo $var - * @return $this - */ - public function setAutomatedBackupPolicyInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\AutomatedBackupPolicyInfo::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Deletion protection information applies to signals with type - * [SIGNAL_TYPE_NO_DELETION_PROTECTION][google.cloud.databasecenter.v1beta.SignalType.SIGNAL_TYPE_NO_DELETION_PROTECTION] - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.DeletionProtectionInfo deletion_protection_info = 9; - * @return \Google\Cloud\DatabaseCenter\V1beta\DeletionProtectionInfo|null - */ - public function getDeletionProtectionInfo() - { - return $this->readOneof(9); - } - - public function hasDeletionProtectionInfo() - { - return $this->hasOneof(9); - } - - /** - * Deletion protection information applies to signals with type - * [SIGNAL_TYPE_NO_DELETION_PROTECTION][google.cloud.databasecenter.v1beta.SignalType.SIGNAL_TYPE_NO_DELETION_PROTECTION] - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.DeletionProtectionInfo deletion_protection_info = 9; - * @param \Google\Cloud\DatabaseCenter\V1beta\DeletionProtectionInfo $var - * @return $this - */ - public function setDeletionProtectionInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\DeletionProtectionInfo::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * Resource suspension information applies to signals with type - * [SIGNAL_TYPE_RESOURCE_SUSPENDED][google.cloud.databasecenter.v1beta.SignalType.SIGNAL_TYPE_RESOURCE_SUSPENDED]. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.ResourceSuspensionInfo resource_suspension_info = 10; - * @return \Google\Cloud\DatabaseCenter\V1beta\ResourceSuspensionInfo|null - */ - public function getResourceSuspensionInfo() - { - return $this->readOneof(10); - } - - public function hasResourceSuspensionInfo() - { - return $this->hasOneof(10); - } - - /** - * Resource suspension information applies to signals with type - * [SIGNAL_TYPE_RESOURCE_SUSPENDED][google.cloud.databasecenter.v1beta.SignalType.SIGNAL_TYPE_RESOURCE_SUSPENDED]. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.ResourceSuspensionInfo resource_suspension_info = 10; - * @param \Google\Cloud\DatabaseCenter\V1beta\ResourceSuspensionInfo $var - * @return $this - */ - public function setResourceSuspensionInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\ResourceSuspensionInfo::class); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * Inefficient query information applies to signals with type - * [SIGNAL_TYPE_INEFFICIENT_QUERY][google.cloud.databasecenter.v1beta.SignalType.SIGNAL_TYPE_INEFFICIENT_QUERY]. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.InefficientQueryInfo inefficient_query_info = 11; - * @return \Google\Cloud\DatabaseCenter\V1beta\InefficientQueryInfo|null - */ - public function getInefficientQueryInfo() - { - return $this->readOneof(11); - } - - public function hasInefficientQueryInfo() - { - return $this->hasOneof(11); - } - - /** - * Inefficient query information applies to signals with type - * [SIGNAL_TYPE_INEFFICIENT_QUERY][google.cloud.databasecenter.v1beta.SignalType.SIGNAL_TYPE_INEFFICIENT_QUERY]. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.InefficientQueryInfo inefficient_query_info = 11; - * @param \Google\Cloud\DatabaseCenter\V1beta\InefficientQueryInfo $var - * @return $this - */ - public function setInefficientQueryInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\InefficientQueryInfo::class); - $this->writeOneof(11, $var); - - return $this; - } - - /** - * Outdated minor version information applies to signals with type - * SIGNAL_TYPE_OUTDATED_MINOR_VERSION. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.OutdatedMinorVersionInfo outdated_minor_version_info = 12; - * @return \Google\Cloud\DatabaseCenter\V1beta\OutdatedMinorVersionInfo|null - */ - public function getOutdatedMinorVersionInfo() - { - return $this->readOneof(12); - } - - public function hasOutdatedMinorVersionInfo() - { - return $this->hasOneof(12); - } - - /** - * Outdated minor version information applies to signals with type - * SIGNAL_TYPE_OUTDATED_MINOR_VERSION. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.OutdatedMinorVersionInfo outdated_minor_version_info = 12; - * @param \Google\Cloud\DatabaseCenter\V1beta\OutdatedMinorVersionInfo $var - * @return $this - */ - public function setOutdatedMinorVersionInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\OutdatedMinorVersionInfo::class); - $this->writeOneof(12, $var); - - return $this; - } - - /** - * Maintenance recommendation information applies to signals - * with type SIGNAL_TYPE_RECOMMENDED_MAINTENANCE_POLICIES. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.MaintenanceRecommendationInfo maintenance_recommendation_info = 13; - * @return \Google\Cloud\DatabaseCenter\V1beta\MaintenanceRecommendationInfo|null - */ - public function getMaintenanceRecommendationInfo() - { - return $this->readOneof(13); - } - - public function hasMaintenanceRecommendationInfo() - { - return $this->hasOneof(13); - } - - /** - * Maintenance recommendation information applies to signals - * with type SIGNAL_TYPE_RECOMMENDED_MAINTENANCE_POLICIES. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.MaintenanceRecommendationInfo maintenance_recommendation_info = 13; - * @param \Google\Cloud\DatabaseCenter\V1beta\MaintenanceRecommendationInfo $var - * @return $this - */ - public function setMaintenanceRecommendationInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\MaintenanceRecommendationInfo::class); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * Where the signal is coming from. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalSource signal_source = 1; - * @return int - */ - public function getSignalSource() - { - return $this->signal_source; - } - - /** - * Where the signal is coming from. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalSource signal_source = 1; - * @param int $var - * @return $this - */ - public function setSignalSource($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\SignalSource::class); - $this->signal_source = $var; - - return $this; - } - - /** - * Type of the signal. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 5; - * @return int - */ - public function getSignalType() - { - return $this->signal_type; - } - - /** - * Type of the signal. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 5; - * @param int $var - * @return $this - */ - public function setSignalType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\SignalType::class); - $this->signal_type = $var; - - return $this; - } - - /** - * Event time when signal was recorded by source service. - * - * Generated from protobuf field .google.protobuf.Timestamp signal_event_time = 7; - * @return \Google\Protobuf\Timestamp|null - */ - public function getSignalEventTime() - { - return $this->signal_event_time; - } - - public function hasSignalEventTime() - { - return isset($this->signal_event_time); - } - - public function clearSignalEventTime() - { - unset($this->signal_event_time); - } - - /** - * Event time when signal was recorded by source service. - * - * Generated from protobuf field .google.protobuf.Timestamp signal_event_time = 7; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setSignalEventTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->signal_event_time = $var; - - return $this; - } - - /** - * @return string - */ - public function getDetail() - { - return $this->whichOneof("detail"); - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateFleetRequest.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateFleetRequest.php deleted file mode 100644 index 934252bd5c2..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateFleetRequest.php +++ /dev/null @@ -1,505 +0,0 @@ -google.cloud.databasecenter.v1beta.AggregateFleetRequest - */ -class AggregateFleetRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent can be a project, a folder, or an organization. The search - * is limited to the resources within the `scope`. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., - * "organizations/123456") - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $parent = ''; - /** - * Optional. The expression to filter resources. - * Supported fields are: `full_resource_name`, `resource_type`, `container`, - * `product.type`, `product.engine`, `product.version`, `location`, - * `labels`, `issues`, fields of availability_info, data_protection_info, - * 'resource_name', etc. - * The expression is a list of zero or more restrictions combined via logical - * operators `AND` and `OR`. When `AND` and `OR` are both used in the - * expression, parentheses must be appropriately used to group the - * combinations. - * Example: `location="us-east1"` - * Example: `container="projects/123" OR container="projects/456"` - * Example: `(container="projects/123" OR - * container="projects/456") AND location="us-east1"` - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. A field that statistics are grouped by. - * Valid values are any combination of the following: - * * container - * * product.type - * * product.engine - * * product.version - * * location - * * sub_resource_type - * * management_type - * * tag.key - * * tag.value - * * tag.source - * * tag.inherited - * * label.key - * * label.value - * * label.source - * * has_maintenance_schedule - * * has_deny_maintenance_schedules - * Comma separated list. - * - * Generated from protobuf field string group_by = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $group_by = ''; - /** - * Optional. Valid values to order by are: - * * resource_groups_count - * * resources_count - * * and all fields supported by `group_by` - * The default order is ascending. Add "DESC" after the field name to indicate - * descending order. Add "ASC" after the field name to indicate ascending - * order. It supports ordering using multiple fields. - * For example: - * `order_by = "resource_groups_count"` sorts response in ascending order - * `order_by = "resource_groups_count DESC"` sorts response in descending - * order - * `order_by = "product.type, product.version DESC, location"` orders by type - * in ascending order, version in descending order and location in ascending - * order - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. If unspecified, at most 50 items will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `AggregateFleet` call. - * Provide this to retrieve the subsequent page. - * All other parameters should match the parameters in the call that provided - * the page token except for page_size which can be different. - * - * Generated from protobuf field string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. The baseline date w.r.t. which the delta counts are calculated. - * If not set, delta counts are not included in the response and the response - * indicates the current state of the fleet. - * - * Generated from protobuf field optional .google.type.Date baseline_date = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $baseline_date = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent can be a project, a folder, or an organization. The search - * is limited to the resources within the `scope`. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., - * "organizations/123456") - * @type string $filter - * Optional. The expression to filter resources. - * Supported fields are: `full_resource_name`, `resource_type`, `container`, - * `product.type`, `product.engine`, `product.version`, `location`, - * `labels`, `issues`, fields of availability_info, data_protection_info, - * 'resource_name', etc. - * The expression is a list of zero or more restrictions combined via logical - * operators `AND` and `OR`. When `AND` and `OR` are both used in the - * expression, parentheses must be appropriately used to group the - * combinations. - * Example: `location="us-east1"` - * Example: `container="projects/123" OR container="projects/456"` - * Example: `(container="projects/123" OR - * container="projects/456") AND location="us-east1"` - * @type string $group_by - * Optional. A field that statistics are grouped by. - * Valid values are any combination of the following: - * * container - * * product.type - * * product.engine - * * product.version - * * location - * * sub_resource_type - * * management_type - * * tag.key - * * tag.value - * * tag.source - * * tag.inherited - * * label.key - * * label.value - * * label.source - * * has_maintenance_schedule - * * has_deny_maintenance_schedules - * Comma separated list. - * @type string $order_by - * Optional. Valid values to order by are: - * * resource_groups_count - * * resources_count - * * and all fields supported by `group_by` - * The default order is ascending. Add "DESC" after the field name to indicate - * descending order. Add "ASC" after the field name to indicate ascending - * order. It supports ordering using multiple fields. - * For example: - * `order_by = "resource_groups_count"` sorts response in ascending order - * `order_by = "resource_groups_count DESC"` sorts response in descending - * order - * `order_by = "product.type, product.version DESC, location"` orders by type - * in ascending order, version in descending order and location in ascending - * order - * @type int $page_size - * Optional. If unspecified, at most 50 items will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `AggregateFleet` call. - * Provide this to retrieve the subsequent page. - * All other parameters should match the parameters in the call that provided - * the page token except for page_size which can be different. - * @type \Google\Type\Date $baseline_date - * Optional. The baseline date w.r.t. which the delta counts are calculated. - * If not set, delta counts are not included in the response and the response - * indicates the current state of the fleet. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent can be a project, a folder, or an organization. The search - * is limited to the resources within the `scope`. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., - * "organizations/123456") - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Parent can be a project, a folder, or an organization. The search - * is limited to the resources within the `scope`. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., - * "organizations/123456") - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The expression to filter resources. - * Supported fields are: `full_resource_name`, `resource_type`, `container`, - * `product.type`, `product.engine`, `product.version`, `location`, - * `labels`, `issues`, fields of availability_info, data_protection_info, - * 'resource_name', etc. - * The expression is a list of zero or more restrictions combined via logical - * operators `AND` and `OR`. When `AND` and `OR` are both used in the - * expression, parentheses must be appropriately used to group the - * combinations. - * Example: `location="us-east1"` - * Example: `container="projects/123" OR container="projects/456"` - * Example: `(container="projects/123" OR - * container="projects/456") AND location="us-east1"` - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. The expression to filter resources. - * Supported fields are: `full_resource_name`, `resource_type`, `container`, - * `product.type`, `product.engine`, `product.version`, `location`, - * `labels`, `issues`, fields of availability_info, data_protection_info, - * 'resource_name', etc. - * The expression is a list of zero or more restrictions combined via logical - * operators `AND` and `OR`. When `AND` and `OR` are both used in the - * expression, parentheses must be appropriately used to group the - * combinations. - * Example: `location="us-east1"` - * Example: `container="projects/123" OR container="projects/456"` - * Example: `(container="projects/123" OR - * container="projects/456") AND location="us-east1"` - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. A field that statistics are grouped by. - * Valid values are any combination of the following: - * * container - * * product.type - * * product.engine - * * product.version - * * location - * * sub_resource_type - * * management_type - * * tag.key - * * tag.value - * * tag.source - * * tag.inherited - * * label.key - * * label.value - * * label.source - * * has_maintenance_schedule - * * has_deny_maintenance_schedules - * Comma separated list. - * - * Generated from protobuf field string group_by = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getGroupBy() - { - return $this->group_by; - } - - /** - * Optional. A field that statistics are grouped by. - * Valid values are any combination of the following: - * * container - * * product.type - * * product.engine - * * product.version - * * location - * * sub_resource_type - * * management_type - * * tag.key - * * tag.value - * * tag.source - * * tag.inherited - * * label.key - * * label.value - * * label.source - * * has_maintenance_schedule - * * has_deny_maintenance_schedules - * Comma separated list. - * - * Generated from protobuf field string group_by = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setGroupBy($var) - { - GPBUtil::checkString($var, True); - $this->group_by = $var; - - return $this; - } - - /** - * Optional. Valid values to order by are: - * * resource_groups_count - * * resources_count - * * and all fields supported by `group_by` - * The default order is ascending. Add "DESC" after the field name to indicate - * descending order. Add "ASC" after the field name to indicate ascending - * order. It supports ordering using multiple fields. - * For example: - * `order_by = "resource_groups_count"` sorts response in ascending order - * `order_by = "resource_groups_count DESC"` sorts response in descending - * order - * `order_by = "product.type, product.version DESC, location"` orders by type - * in ascending order, version in descending order and location in ascending - * order - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Valid values to order by are: - * * resource_groups_count - * * resources_count - * * and all fields supported by `group_by` - * The default order is ascending. Add "DESC" after the field name to indicate - * descending order. Add "ASC" after the field name to indicate ascending - * order. It supports ordering using multiple fields. - * For example: - * `order_by = "resource_groups_count"` sorts response in ascending order - * `order_by = "resource_groups_count DESC"` sorts response in descending - * order - * `order_by = "product.type, product.version DESC, location"` orders by type - * in ascending order, version in descending order and location in ascending - * order - * - * 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. If unspecified, at most 50 items will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. If unspecified, at most 50 items will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `AggregateFleet` call. - * Provide this to retrieve the subsequent page. - * All other parameters should match the parameters in the call that provided - * the page token except for page_size which can be different. - * - * Generated from protobuf field string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `AggregateFleet` call. - * Provide this to retrieve the subsequent page. - * All other parameters should match the parameters in the call that provided - * the page token except for page_size which can be different. - * - * Generated from protobuf field string page_token = 6 [(.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. The baseline date w.r.t. which the delta counts are calculated. - * If not set, delta counts are not included in the response and the response - * indicates the current state of the fleet. - * - * Generated from protobuf field optional .google.type.Date baseline_date = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Type\Date|null - */ - public function getBaselineDate() - { - return $this->baseline_date; - } - - public function hasBaselineDate() - { - return isset($this->baseline_date); - } - - public function clearBaselineDate() - { - unset($this->baseline_date); - } - - /** - * Optional. The baseline date w.r.t. which the delta counts are calculated. - * If not set, delta counts are not included in the response and the response - * indicates the current state of the fleet. - * - * Generated from protobuf field optional .google.type.Date baseline_date = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Type\Date $var - * @return $this - */ - public function setBaselineDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->baseline_date = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateFleetResponse.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateFleetResponse.php deleted file mode 100644 index f9a2cbf20b3..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateFleetResponse.php +++ /dev/null @@ -1,216 +0,0 @@ -google.cloud.databasecenter.v1beta.AggregateFleetResponse - */ -class AggregateFleetResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Represents a row grouped by the fields in the input. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.AggregateFleetRow rows = 1; - */ - private $rows; - /** - * Count of all resource groups in the fleet. This includes counts from all - * pages. - * - * Generated from protobuf field int32 resource_groups_total_count = 2; - */ - protected $resource_groups_total_count = 0; - /** - * Count of all resources in the fleet. This includes counts from all pages. - * - * Generated from protobuf field int32 resource_total_count = 3; - */ - protected $resource_total_count = 0; - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 4; - */ - protected $next_page_token = ''; - /** - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * - * Generated from protobuf field repeated string unreachable = 5 [(.google.api.field_behavior) = UNORDERED_LIST]; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DatabaseCenter\V1beta\AggregateFleetRow>|\Google\Protobuf\Internal\RepeatedField $rows - * Represents a row grouped by the fields in the input. - * @type int $resource_groups_total_count - * Count of all resource groups in the fleet. This includes counts from all - * pages. - * @type int $resource_total_count - * Count of all resources in the fleet. This includes counts from all pages. - * @type string $next_page_token - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Represents a row grouped by the fields in the input. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.AggregateFleetRow rows = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRows() - { - return $this->rows; - } - - /** - * Represents a row grouped by the fields in the input. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.AggregateFleetRow rows = 1; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\AggregateFleetRow>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\AggregateFleetRow::class); - $this->rows = $arr; - - return $this; - } - - /** - * Count of all resource groups in the fleet. This includes counts from all - * pages. - * - * Generated from protobuf field int32 resource_groups_total_count = 2; - * @return int - */ - public function getResourceGroupsTotalCount() - { - return $this->resource_groups_total_count; - } - - /** - * Count of all resource groups in the fleet. This includes counts from all - * pages. - * - * Generated from protobuf field int32 resource_groups_total_count = 2; - * @param int $var - * @return $this - */ - public function setResourceGroupsTotalCount($var) - { - GPBUtil::checkInt32($var); - $this->resource_groups_total_count = $var; - - return $this; - } - - /** - * Count of all resources in the fleet. This includes counts from all pages. - * - * Generated from protobuf field int32 resource_total_count = 3; - * @return int - */ - public function getResourceTotalCount() - { - return $this->resource_total_count; - } - - /** - * Count of all resources in the fleet. This includes counts from all pages. - * - * Generated from protobuf field int32 resource_total_count = 3; - * @param int $var - * @return $this - */ - public function setResourceTotalCount($var) - { - GPBUtil::checkInt32($var); - $this->resource_total_count = $var; - - return $this; - } - - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 4; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 4; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * - * Generated from protobuf field repeated string unreachable = 5 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * - * Generated from protobuf field repeated string unreachable = 5 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateFleetRow.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateFleetRow.php deleted file mode 100644 index 665d25b44b1..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateFleetRow.php +++ /dev/null @@ -1,183 +0,0 @@ -google.cloud.databasecenter.v1beta.AggregateFleetRow - */ -class AggregateFleetRow extends \Google\Protobuf\Internal\Message -{ - /** - * Group by dimension. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Dimension dimension = 1; - */ - private $dimension; - /** - * Number of resource groups that have a particular dimension. - * - * Generated from protobuf field int32 resource_groups_count = 2; - */ - protected $resource_groups_count = 0; - /** - * Number of resources that have a particular dimension. - * - * Generated from protobuf field int32 resources_count = 3; - */ - protected $resources_count = 0; - /** - * Optional. Delta counts and details of resources which were added to/deleted - * from fleet. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $delta_details = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DatabaseCenter\V1beta\Dimension>|\Google\Protobuf\Internal\RepeatedField $dimension - * Group by dimension. - * @type int $resource_groups_count - * Number of resource groups that have a particular dimension. - * @type int $resources_count - * Number of resources that have a particular dimension. - * @type \Google\Cloud\DatabaseCenter\V1beta\DeltaDetails $delta_details - * Optional. Delta counts and details of resources which were added to/deleted - * from fleet. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Group by dimension. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Dimension dimension = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimension() - { - return $this->dimension; - } - - /** - * Group by dimension. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Dimension dimension = 1; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\Dimension>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimension($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\Dimension::class); - $this->dimension = $arr; - - return $this; - } - - /** - * Number of resource groups that have a particular dimension. - * - * Generated from protobuf field int32 resource_groups_count = 2; - * @return int - */ - public function getResourceGroupsCount() - { - return $this->resource_groups_count; - } - - /** - * Number of resource groups that have a particular dimension. - * - * Generated from protobuf field int32 resource_groups_count = 2; - * @param int $var - * @return $this - */ - public function setResourceGroupsCount($var) - { - GPBUtil::checkInt32($var); - $this->resource_groups_count = $var; - - return $this; - } - - /** - * Number of resources that have a particular dimension. - * - * Generated from protobuf field int32 resources_count = 3; - * @return int - */ - public function getResourcesCount() - { - return $this->resources_count; - } - - /** - * Number of resources that have a particular dimension. - * - * Generated from protobuf field int32 resources_count = 3; - * @param int $var - * @return $this - */ - public function setResourcesCount($var) - { - GPBUtil::checkInt32($var); - $this->resources_count = $var; - - return $this; - } - - /** - * Optional. Delta counts and details of resources which were added to/deleted - * from fleet. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\DatabaseCenter\V1beta\DeltaDetails|null - */ - public function getDeltaDetails() - { - return $this->delta_details; - } - - public function hasDeltaDetails() - { - return isset($this->delta_details); - } - - public function clearDeltaDetails() - { - unset($this->delta_details); - } - - /** - * Optional. Delta counts and details of resources which were added to/deleted - * from fleet. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\DatabaseCenter\V1beta\DeltaDetails $var - * @return $this - */ - public function setDeltaDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\DeltaDetails::class); - $this->delta_details = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateIssueStatsRequest.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateIssueStatsRequest.php deleted file mode 100644 index 19e51b7e5c7..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateIssueStatsRequest.php +++ /dev/null @@ -1,260 +0,0 @@ -google.cloud.databasecenter.v1beta.AggregateIssueStatsRequest - */ -class AggregateIssueStatsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent can be a project, a folder, or an organization. The search - * is limited to the resources within the `scope`. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $parent = ''; - /** - * Optional. The expression to filter resources. - * Supported fields are: `full_resource_name`, `resource_type`, `container`, - * `product.type`, `product.engine`, `product.version`, `location`, - * `labels`, `issues`, fields of availability_info, - * data_protection_info,'resource_name', etc. - * The expression is a list of zero or more restrictions combined via logical - * operators `AND` and `OR`. When `AND` and `OR` are both used in the - * expression, parentheses must be appropriately used to group the - * combinations. - * Example: `location="us-east1"` - * Example: `container="projects/123" OR container="projects/456"` - * Example: `(container="projects/123" OR - * container="projects/456") AND location="us-east1"` - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Lists of signal types that are issues. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $signal_type_groups; - /** - * Optional. The baseline date w.r.t. which the delta counts are calculated. - * If not set, delta counts are not included in the response and the response - * indicates the current state of the fleet. - * - * Generated from protobuf field optional .google.type.Date baseline_date = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $baseline_date = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent can be a project, a folder, or an organization. The search - * is limited to the resources within the `scope`. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * @type string $filter - * Optional. The expression to filter resources. - * Supported fields are: `full_resource_name`, `resource_type`, `container`, - * `product.type`, `product.engine`, `product.version`, `location`, - * `labels`, `issues`, fields of availability_info, - * data_protection_info,'resource_name', etc. - * The expression is a list of zero or more restrictions combined via logical - * operators `AND` and `OR`. When `AND` and `OR` are both used in the - * expression, parentheses must be appropriately used to group the - * combinations. - * Example: `location="us-east1"` - * Example: `container="projects/123" OR container="projects/456"` - * Example: `(container="projects/123" OR - * container="projects/456") AND location="us-east1"` - * @type array<\Google\Cloud\DatabaseCenter\V1beta\SignalTypeGroup>|\Google\Protobuf\Internal\RepeatedField $signal_type_groups - * Optional. Lists of signal types that are issues. - * @type \Google\Type\Date $baseline_date - * Optional. The baseline date w.r.t. which the delta counts are calculated. - * If not set, delta counts are not included in the response and the response - * indicates the current state of the fleet. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent can be a project, a folder, or an organization. The search - * is limited to the resources within the `scope`. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Parent can be a project, a folder, or an organization. The search - * is limited to the resources within the `scope`. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The expression to filter resources. - * Supported fields are: `full_resource_name`, `resource_type`, `container`, - * `product.type`, `product.engine`, `product.version`, `location`, - * `labels`, `issues`, fields of availability_info, - * data_protection_info,'resource_name', etc. - * The expression is a list of zero or more restrictions combined via logical - * operators `AND` and `OR`. When `AND` and `OR` are both used in the - * expression, parentheses must be appropriately used to group the - * combinations. - * Example: `location="us-east1"` - * Example: `container="projects/123" OR container="projects/456"` - * Example: `(container="projects/123" OR - * container="projects/456") AND location="us-east1"` - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. The expression to filter resources. - * Supported fields are: `full_resource_name`, `resource_type`, `container`, - * `product.type`, `product.engine`, `product.version`, `location`, - * `labels`, `issues`, fields of availability_info, - * data_protection_info,'resource_name', etc. - * The expression is a list of zero or more restrictions combined via logical - * operators `AND` and `OR`. When `AND` and `OR` are both used in the - * expression, parentheses must be appropriately used to group the - * combinations. - * Example: `location="us-east1"` - * Example: `container="projects/123" OR container="projects/456"` - * Example: `(container="projects/123" OR - * container="projects/456") AND location="us-east1"` - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Lists of signal types that are issues. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSignalTypeGroups() - { - return $this->signal_type_groups; - } - - /** - * Optional. Lists of signal types that are issues. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\SignalTypeGroup>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSignalTypeGroups($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\SignalTypeGroup::class); - $this->signal_type_groups = $arr; - - return $this; - } - - /** - * Optional. The baseline date w.r.t. which the delta counts are calculated. - * If not set, delta counts are not included in the response and the response - * indicates the current state of the fleet. - * - * Generated from protobuf field optional .google.type.Date baseline_date = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Type\Date|null - */ - public function getBaselineDate() - { - return $this->baseline_date; - } - - public function hasBaselineDate() - { - return isset($this->baseline_date); - } - - public function clearBaselineDate() - { - unset($this->baseline_date); - } - - /** - * Optional. The baseline date w.r.t. which the delta counts are calculated. - * If not set, delta counts are not included in the response and the response - * indicates the current state of the fleet. - * - * Generated from protobuf field optional .google.type.Date baseline_date = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Type\Date $var - * @return $this - */ - public function setBaselineDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->baseline_date = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateIssueStatsResponse.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateIssueStatsResponse.php deleted file mode 100644 index 250019fc9b2..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AggregateIssueStatsResponse.php +++ /dev/null @@ -1,178 +0,0 @@ -google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse - */ -class AggregateIssueStatsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of issue group stats where each group contains stats for resources - * having a particular combination of relevant issues. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.IssueGroupStats issue_group_stats = 1; - */ - private $issue_group_stats; - /** - * Total count of the resources filtered in based on the user given filter. - * - * Generated from protobuf field int32 total_resources_count = 2; - */ - protected $total_resources_count = 0; - /** - * Total count of the resource filtered in based on the user given filter. - * - * Generated from protobuf field int32 total_resource_groups_count = 3; - */ - protected $total_resource_groups_count = 0; - /** - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * - * Generated from protobuf field repeated string unreachable = 4 [(.google.api.field_behavior) = UNORDERED_LIST]; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DatabaseCenter\V1beta\IssueGroupStats>|\Google\Protobuf\Internal\RepeatedField $issue_group_stats - * List of issue group stats where each group contains stats for resources - * having a particular combination of relevant issues. - * @type int $total_resources_count - * Total count of the resources filtered in based on the user given filter. - * @type int $total_resource_groups_count - * Total count of the resource filtered in based on the user given filter. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * List of issue group stats where each group contains stats for resources - * having a particular combination of relevant issues. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.IssueGroupStats issue_group_stats = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIssueGroupStats() - { - return $this->issue_group_stats; - } - - /** - * List of issue group stats where each group contains stats for resources - * having a particular combination of relevant issues. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.IssueGroupStats issue_group_stats = 1; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\IssueGroupStats>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIssueGroupStats($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\IssueGroupStats::class); - $this->issue_group_stats = $arr; - - return $this; - } - - /** - * Total count of the resources filtered in based on the user given filter. - * - * Generated from protobuf field int32 total_resources_count = 2; - * @return int - */ - public function getTotalResourcesCount() - { - return $this->total_resources_count; - } - - /** - * Total count of the resources filtered in based on the user given filter. - * - * Generated from protobuf field int32 total_resources_count = 2; - * @param int $var - * @return $this - */ - public function setTotalResourcesCount($var) - { - GPBUtil::checkInt32($var); - $this->total_resources_count = $var; - - return $this; - } - - /** - * Total count of the resource filtered in based on the user given filter. - * - * Generated from protobuf field int32 total_resource_groups_count = 3; - * @return int - */ - public function getTotalResourceGroupsCount() - { - return $this->total_resource_groups_count; - } - - /** - * Total count of the resource filtered in based on the user given filter. - * - * Generated from protobuf field int32 total_resource_groups_count = 3; - * @param int $var - * @return $this - */ - public function setTotalResourceGroupsCount($var) - { - GPBUtil::checkInt32($var); - $this->total_resource_groups_count = $var; - - return $this; - } - - /** - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * - * Generated from protobuf field repeated string unreachable = 4 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * - * Generated from protobuf field repeated string unreachable = 4 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AutomatedBackupPolicyInfo.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AutomatedBackupPolicyInfo.php deleted file mode 100644 index 6cfa4694389..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/AutomatedBackupPolicyInfo.php +++ /dev/null @@ -1,111 +0,0 @@ -google.cloud.databasecenter.v1beta.AutomatedBackupPolicyInfo - */ -class AutomatedBackupPolicyInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Sub resource details associated with the signal. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResource sub_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $sub_resource = null; - /** - * Is automated policy enabled. - * - * Generated from protobuf field bool is_enabled = 2; - */ - protected $is_enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DatabaseCenter\V1beta\SubResource $sub_resource - * Optional. Sub resource details associated with the signal. - * @type bool $is_enabled - * Is automated policy enabled. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Sub resource details associated with the signal. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResource sub_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\DatabaseCenter\V1beta\SubResource|null - */ - public function getSubResource() - { - return $this->sub_resource; - } - - public function hasSubResource() - { - return isset($this->sub_resource); - } - - public function clearSubResource() - { - unset($this->sub_resource); - } - - /** - * Optional. Sub resource details associated with the signal. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResource sub_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\DatabaseCenter\V1beta\SubResource $var - * @return $this - */ - public function setSubResource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\SubResource::class); - $this->sub_resource = $var; - - return $this; - } - - /** - * Is automated policy enabled. - * - * Generated from protobuf field bool is_enabled = 2; - * @return bool - */ - public function getIsEnabled() - { - return $this->is_enabled; - } - - /** - * Is automated policy enabled. - * - * Generated from protobuf field bool is_enabled = 2; - * @param bool $var - * @return $this - */ - public function setIsEnabled($var) - { - GPBUtil::checkBool($var); - $this->is_enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/BackupDRConfig.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/BackupDRConfig.php deleted file mode 100644 index 8f997752ee0..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/BackupDRConfig.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.databasecenter.v1beta.BackupDRConfig - */ -class BackupDRConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Indicates if the resource is managed by BackupDR. - * - * Generated from protobuf field optional bool backupdr_managed = 1; - */ - protected $backupdr_managed = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $backupdr_managed - * Indicates if the resource is managed by BackupDR. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Indicates if the resource is managed by BackupDR. - * - * Generated from protobuf field optional bool backupdr_managed = 1; - * @return bool - */ - public function getBackupdrManaged() - { - return isset($this->backupdr_managed) ? $this->backupdr_managed : false; - } - - public function hasBackupdrManaged() - { - return isset($this->backupdr_managed); - } - - public function clearBackupdrManaged() - { - unset($this->backupdr_managed); - } - - /** - * Indicates if the resource is managed by BackupDR. - * - * Generated from protobuf field optional bool backupdr_managed = 1; - * @param bool $var - * @return $this - */ - public function setBackupdrManaged($var) - { - GPBUtil::checkBool($var); - $this->backupdr_managed = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/BackupRunInfo.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/BackupRunInfo.php deleted file mode 100644 index ced3b74eb8a..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/BackupRunInfo.php +++ /dev/null @@ -1,271 +0,0 @@ -google.cloud.databasecenter.v1beta.BackupRunInfo - */ -class BackupRunInfo extends \Google\Protobuf\Internal\Message -{ - /** - * The time the backup operation started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; - */ - protected $start_time = null; - /** - * The time the backup operation completed. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 6; - */ - protected $end_time = null; - /** - * Output only. The state of this run. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.BackupRunInfo.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Additional information about the error encountered. - * - * Generated from protobuf field string error_message = 3; - */ - protected $error_message = ''; - /** - * Optional. OperationErrorType to expose specific error when backup operation - * of database resource failed, that is state is FAILED. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.OperationErrorType operation_error_type = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $operation_error_type = 0; - /** - * Optional. Sub resource details associated with the backup run. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResource sub_resource = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $sub_resource = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $start_time - * The time the backup operation started. - * @type \Google\Protobuf\Timestamp $end_time - * The time the backup operation completed. - * @type int $state - * Output only. The state of this run. - * @type string $error_message - * Additional information about the error encountered. - * @type int $operation_error_type - * Optional. OperationErrorType to expose specific error when backup operation - * of database resource failed, that is state is FAILED. - * @type \Google\Cloud\DatabaseCenter\V1beta\SubResource $sub_resource - * Optional. Sub resource details associated with the backup run. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); - parent::__construct($data); - } - - /** - * The time the backup operation started. - * - * 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); - } - - /** - * The time the backup operation started. - * - * 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; - } - - /** - * The time the backup operation completed. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 6; - * @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); - } - - /** - * The time the backup operation completed. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 6; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Output only. The state of this run. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.BackupRunInfo.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The state of this run. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.BackupRunInfo.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\BackupRunInfo\State::class); - $this->state = $var; - - return $this; - } - - /** - * Additional information about the error encountered. - * - * Generated from protobuf field string error_message = 3; - * @return string - */ - public function getErrorMessage() - { - return $this->error_message; - } - - /** - * Additional information about the error encountered. - * - * Generated from protobuf field string error_message = 3; - * @param string $var - * @return $this - */ - public function setErrorMessage($var) - { - GPBUtil::checkString($var, True); - $this->error_message = $var; - - return $this; - } - - /** - * Optional. OperationErrorType to expose specific error when backup operation - * of database resource failed, that is state is FAILED. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.OperationErrorType operation_error_type = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getOperationErrorType() - { - return $this->operation_error_type; - } - - /** - * Optional. OperationErrorType to expose specific error when backup operation - * of database resource failed, that is state is FAILED. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.OperationErrorType operation_error_type = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setOperationErrorType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\OperationErrorType::class); - $this->operation_error_type = $var; - - return $this; - } - - /** - * Optional. Sub resource details associated with the backup run. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResource sub_resource = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\DatabaseCenter\V1beta\SubResource|null - */ - public function getSubResource() - { - return $this->sub_resource; - } - - public function hasSubResource() - { - return isset($this->sub_resource); - } - - public function clearSubResource() - { - unset($this->sub_resource); - } - - /** - * Optional. Sub resource details associated with the backup run. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResource sub_resource = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\DatabaseCenter\V1beta\SubResource $var - * @return $this - */ - public function setSubResource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\SubResource::class); - $this->sub_resource = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/BackupRunInfo/State.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/BackupRunInfo/State.php deleted file mode 100644 index 5064ee1ef73..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/BackupRunInfo/State.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.databasecenter.v1beta.BackupRunInfo.State - */ -class State -{ - /** - * Unspecified. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The backup succeeded. - * - * Generated from protobuf enum SUCCEEDED = 1; - */ - const SUCCEEDED = 1; - /** - * The backup was unsuccessful. - * - * Generated from protobuf enum FAILED = 2; - */ - const FAILED = 2; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::SUCCEEDED => 'SUCCEEDED', - self::FAILED => 'FAILED', - ]; - - 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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\DatabaseCenter\V1beta\BackupRunInfo_State::class); - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DatabaseResource.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DatabaseResource.php deleted file mode 100644 index 55a3424d03d..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DatabaseResource.php +++ /dev/null @@ -1,786 +0,0 @@ -google.cloud.databasecenter.v1beta.DatabaseResource - */ -class DatabaseResource extends \Google\Protobuf\Internal\Message -{ - /** - * List of children associated with a database group. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.DatabaseResource child_resources = 1; - */ - private $child_resources; - /** - * The full resource name, based on CAIS resource name format - * https://cloud.google.com/asset-inventory/docs/resource-name-format - * Example: - * `//cloudsql.googleapis.com/projects/project-number/instances/mysql-1` - * `//cloudsql.googleapis.com/projects/project-number/instances/postgres-1` - * `//spanner.googleapis.com/projects/project-number/instances/spanner-instance-1` - * `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1` - * `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1/instances/i1` - * - * Generated from protobuf field string full_resource_name = 3; - */ - protected $full_resource_name = ''; - /** - * Specifies where the resource is created. For Google Cloud resources, it is - * the full name of the project. - * - * Generated from protobuf field string container = 4; - */ - protected $container = ''; - /** - * The product this resource represents. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Product product = 5; - */ - protected $product = null; - /** - * The location of the resources. It supports returning only regional - * locations in Google Cloud. These are of the form: "us-central1", - * "us-east1", etc. See https://cloud.google.com/about/locations for a list of - * such regions. - * - * Generated from protobuf field string location = 6; - */ - protected $location = ''; - /** - * Labels applied on the resource. The requirements for labels assigned to - * Google Cloud resources may be found at - * https://cloud.google.com/resource-manager/docs/labels-overview#requirements - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Label labels = 7; - */ - private $labels; - /** - * Tags applied on the resource. The requirements for tags assigned to - * Google Cloud resources may be found at - * https://cloud.google.com/resource-manager/docs/tags/tags-overview - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Tag tags = 16; - */ - private $tags; - /** - * The type of resource defined according to the pattern: - * {Service Name}/{Type}. Ex: - * sqladmin.googleapis.com/Instance - * alloydb.googleapis.com/Cluster - * alloydb.googleapis.com/Instance - * spanner.googleapis.com/Instance - * - * Generated from protobuf field string resource_type = 8; - */ - protected $resource_type = ''; - /** - * Subtype of the resource specified at creation time. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResourceType sub_resource_type = 9; - */ - protected $sub_resource_type = 0; - /** - * Machine configuration like CPU, memory, etc for the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.MachineConfig machine_config = 12; - */ - protected $machine_config = null; - /** - * The list of signal groups and count of issues related to the resource. - * Only those signals which have been requested would be included. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalGroup signal_groups = 10; - */ - private $signal_groups; - /** - * Observable metrics for the resource e.g. CPU utilization, memory - * utilization, etc. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Metrics metrics = 13; - */ - protected $metrics = null; - /** - * The category of the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.ResourceCategory resource_category = 14; - */ - protected $resource_category = 0; - /** - * The name of the resource(The last part of the full resource name). - * Example: - * For full resource name - - * `//cloudsql.googleapis.com/projects/project-number/instances/mysql-1`, - * resource name - `mysql-1` - * For full resource name - - * `//cloudsql.googleapis.com/projects/project-number/instances/postgres-1` , - * resource name - `postgres-1` - * Note: In some cases, there might be more than one resource with the same - * resource name. - * - * Generated from protobuf field string resource_name = 15; - */ - protected $resource_name = ''; - /** - * Optional. Backup and disaster recovery details for the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.BackupDRConfig backupdr_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $backupdr_config = null; - /** - * The edition of the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Edition edition = 18; - */ - protected $edition = 0; - /** - * Optional. The maintenance information of the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.MaintenanceInfo maintenance_info = 19 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $maintenance_info = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DatabaseCenter\V1beta\DatabaseResource>|\Google\Protobuf\Internal\RepeatedField $child_resources - * List of children associated with a database group. - * @type string $full_resource_name - * The full resource name, based on CAIS resource name format - * https://cloud.google.com/asset-inventory/docs/resource-name-format - * Example: - * `//cloudsql.googleapis.com/projects/project-number/instances/mysql-1` - * `//cloudsql.googleapis.com/projects/project-number/instances/postgres-1` - * `//spanner.googleapis.com/projects/project-number/instances/spanner-instance-1` - * `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1` - * `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1/instances/i1` - * @type string $container - * Specifies where the resource is created. For Google Cloud resources, it is - * the full name of the project. - * @type \Google\Cloud\DatabaseCenter\V1beta\Product $product - * The product this resource represents. - * @type string $location - * The location of the resources. It supports returning only regional - * locations in Google Cloud. These are of the form: "us-central1", - * "us-east1", etc. See https://cloud.google.com/about/locations for a list of - * such regions. - * @type array<\Google\Cloud\DatabaseCenter\V1beta\Label>|\Google\Protobuf\Internal\RepeatedField $labels - * Labels applied on the resource. The requirements for labels assigned to - * Google Cloud resources may be found at - * https://cloud.google.com/resource-manager/docs/labels-overview#requirements - * @type array<\Google\Cloud\DatabaseCenter\V1beta\Tag>|\Google\Protobuf\Internal\RepeatedField $tags - * Tags applied on the resource. The requirements for tags assigned to - * Google Cloud resources may be found at - * https://cloud.google.com/resource-manager/docs/tags/tags-overview - * @type string $resource_type - * The type of resource defined according to the pattern: - * {Service Name}/{Type}. Ex: - * sqladmin.googleapis.com/Instance - * alloydb.googleapis.com/Cluster - * alloydb.googleapis.com/Instance - * spanner.googleapis.com/Instance - * @type int $sub_resource_type - * Subtype of the resource specified at creation time. - * @type \Google\Cloud\DatabaseCenter\V1beta\MachineConfig $machine_config - * Machine configuration like CPU, memory, etc for the resource. - * @type array<\Google\Cloud\DatabaseCenter\V1beta\SignalGroup>|\Google\Protobuf\Internal\RepeatedField $signal_groups - * The list of signal groups and count of issues related to the resource. - * Only those signals which have been requested would be included. - * @type \Google\Cloud\DatabaseCenter\V1beta\Metrics $metrics - * Observable metrics for the resource e.g. CPU utilization, memory - * utilization, etc. - * @type int $resource_category - * The category of the resource. - * @type string $resource_name - * The name of the resource(The last part of the full resource name). - * Example: - * For full resource name - - * `//cloudsql.googleapis.com/projects/project-number/instances/mysql-1`, - * resource name - `mysql-1` - * For full resource name - - * `//cloudsql.googleapis.com/projects/project-number/instances/postgres-1` , - * resource name - `postgres-1` - * Note: In some cases, there might be more than one resource with the same - * resource name. - * @type \Google\Cloud\DatabaseCenter\V1beta\BackupDRConfig $backupdr_config - * Optional. Backup and disaster recovery details for the resource. - * @type int $edition - * The edition of the resource. - * @type \Google\Cloud\DatabaseCenter\V1beta\MaintenanceInfo $maintenance_info - * Optional. The maintenance information of the resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * List of children associated with a database group. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.DatabaseResource child_resources = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getChildResources() - { - return $this->child_resources; - } - - /** - * List of children associated with a database group. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.DatabaseResource child_resources = 1; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\DatabaseResource>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setChildResources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\DatabaseResource::class); - $this->child_resources = $arr; - - return $this; - } - - /** - * The full resource name, based on CAIS resource name format - * https://cloud.google.com/asset-inventory/docs/resource-name-format - * Example: - * `//cloudsql.googleapis.com/projects/project-number/instances/mysql-1` - * `//cloudsql.googleapis.com/projects/project-number/instances/postgres-1` - * `//spanner.googleapis.com/projects/project-number/instances/spanner-instance-1` - * `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1` - * `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1/instances/i1` - * - * Generated from protobuf field string full_resource_name = 3; - * @return string - */ - public function getFullResourceName() - { - return $this->full_resource_name; - } - - /** - * The full resource name, based on CAIS resource name format - * https://cloud.google.com/asset-inventory/docs/resource-name-format - * Example: - * `//cloudsql.googleapis.com/projects/project-number/instances/mysql-1` - * `//cloudsql.googleapis.com/projects/project-number/instances/postgres-1` - * `//spanner.googleapis.com/projects/project-number/instances/spanner-instance-1` - * `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1` - * `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1/instances/i1` - * - * Generated from protobuf field string full_resource_name = 3; - * @param string $var - * @return $this - */ - public function setFullResourceName($var) - { - GPBUtil::checkString($var, True); - $this->full_resource_name = $var; - - return $this; - } - - /** - * Specifies where the resource is created. For Google Cloud resources, it is - * the full name of the project. - * - * Generated from protobuf field string container = 4; - * @return string - */ - public function getContainer() - { - return $this->container; - } - - /** - * Specifies where the resource is created. For Google Cloud resources, it is - * the full name of the project. - * - * Generated from protobuf field string container = 4; - * @param string $var - * @return $this - */ - public function setContainer($var) - { - GPBUtil::checkString($var, True); - $this->container = $var; - - return $this; - } - - /** - * The product this resource represents. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Product product = 5; - * @return \Google\Cloud\DatabaseCenter\V1beta\Product|null - */ - public function getProduct() - { - return $this->product; - } - - public function hasProduct() - { - return isset($this->product); - } - - public function clearProduct() - { - unset($this->product); - } - - /** - * The product this resource represents. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Product product = 5; - * @param \Google\Cloud\DatabaseCenter\V1beta\Product $var - * @return $this - */ - public function setProduct($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\Product::class); - $this->product = $var; - - return $this; - } - - /** - * The location of the resources. It supports returning only regional - * locations in Google Cloud. These are of the form: "us-central1", - * "us-east1", etc. See https://cloud.google.com/about/locations for a list of - * such regions. - * - * Generated from protobuf field string location = 6; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * The location of the resources. It supports returning only regional - * locations in Google Cloud. These are of the form: "us-central1", - * "us-east1", etc. See https://cloud.google.com/about/locations for a list of - * such regions. - * - * Generated from protobuf field string location = 6; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * Labels applied on the resource. The requirements for labels assigned to - * Google Cloud resources may be found at - * https://cloud.google.com/resource-manager/docs/labels-overview#requirements - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Label labels = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Labels applied on the resource. The requirements for labels assigned to - * Google Cloud resources may be found at - * https://cloud.google.com/resource-manager/docs/labels-overview#requirements - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Label labels = 7; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\Label>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\Label::class); - $this->labels = $arr; - - return $this; - } - - /** - * Tags applied on the resource. The requirements for tags assigned to - * Google Cloud resources may be found at - * https://cloud.google.com/resource-manager/docs/tags/tags-overview - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Tag tags = 16; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Tags applied on the resource. The requirements for tags assigned to - * Google Cloud resources may be found at - * https://cloud.google.com/resource-manager/docs/tags/tags-overview - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Tag tags = 16; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\Tag>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\Tag::class); - $this->tags = $arr; - - return $this; - } - - /** - * The type of resource defined according to the pattern: - * {Service Name}/{Type}. Ex: - * sqladmin.googleapis.com/Instance - * alloydb.googleapis.com/Cluster - * alloydb.googleapis.com/Instance - * spanner.googleapis.com/Instance - * - * Generated from protobuf field string resource_type = 8; - * @return string - */ - public function getResourceType() - { - return $this->resource_type; - } - - /** - * The type of resource defined according to the pattern: - * {Service Name}/{Type}. Ex: - * sqladmin.googleapis.com/Instance - * alloydb.googleapis.com/Cluster - * alloydb.googleapis.com/Instance - * spanner.googleapis.com/Instance - * - * Generated from protobuf field string resource_type = 8; - * @param string $var - * @return $this - */ - public function setResourceType($var) - { - GPBUtil::checkString($var, True); - $this->resource_type = $var; - - return $this; - } - - /** - * Subtype of the resource specified at creation time. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResourceType sub_resource_type = 9; - * @return int - */ - public function getSubResourceType() - { - return $this->sub_resource_type; - } - - /** - * Subtype of the resource specified at creation time. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResourceType sub_resource_type = 9; - * @param int $var - * @return $this - */ - public function setSubResourceType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\SubResourceType::class); - $this->sub_resource_type = $var; - - return $this; - } - - /** - * Machine configuration like CPU, memory, etc for the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.MachineConfig machine_config = 12; - * @return \Google\Cloud\DatabaseCenter\V1beta\MachineConfig|null - */ - public function getMachineConfig() - { - return $this->machine_config; - } - - public function hasMachineConfig() - { - return isset($this->machine_config); - } - - public function clearMachineConfig() - { - unset($this->machine_config); - } - - /** - * Machine configuration like CPU, memory, etc for the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.MachineConfig machine_config = 12; - * @param \Google\Cloud\DatabaseCenter\V1beta\MachineConfig $var - * @return $this - */ - public function setMachineConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\MachineConfig::class); - $this->machine_config = $var; - - return $this; - } - - /** - * The list of signal groups and count of issues related to the resource. - * Only those signals which have been requested would be included. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalGroup signal_groups = 10; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSignalGroups() - { - return $this->signal_groups; - } - - /** - * The list of signal groups and count of issues related to the resource. - * Only those signals which have been requested would be included. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalGroup signal_groups = 10; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\SignalGroup>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSignalGroups($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\SignalGroup::class); - $this->signal_groups = $arr; - - return $this; - } - - /** - * Observable metrics for the resource e.g. CPU utilization, memory - * utilization, etc. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Metrics metrics = 13; - * @return \Google\Cloud\DatabaseCenter\V1beta\Metrics|null - */ - public function getMetrics() - { - return $this->metrics; - } - - public function hasMetrics() - { - return isset($this->metrics); - } - - public function clearMetrics() - { - unset($this->metrics); - } - - /** - * Observable metrics for the resource e.g. CPU utilization, memory - * utilization, etc. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Metrics metrics = 13; - * @param \Google\Cloud\DatabaseCenter\V1beta\Metrics $var - * @return $this - */ - public function setMetrics($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\Metrics::class); - $this->metrics = $var; - - return $this; - } - - /** - * The category of the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.ResourceCategory resource_category = 14; - * @return int - */ - public function getResourceCategory() - { - return $this->resource_category; - } - - /** - * The category of the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.ResourceCategory resource_category = 14; - * @param int $var - * @return $this - */ - public function setResourceCategory($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\ResourceCategory::class); - $this->resource_category = $var; - - return $this; - } - - /** - * The name of the resource(The last part of the full resource name). - * Example: - * For full resource name - - * `//cloudsql.googleapis.com/projects/project-number/instances/mysql-1`, - * resource name - `mysql-1` - * For full resource name - - * `//cloudsql.googleapis.com/projects/project-number/instances/postgres-1` , - * resource name - `postgres-1` - * Note: In some cases, there might be more than one resource with the same - * resource name. - * - * Generated from protobuf field string resource_name = 15; - * @return string - */ - public function getResourceName() - { - return $this->resource_name; - } - - /** - * The name of the resource(The last part of the full resource name). - * Example: - * For full resource name - - * `//cloudsql.googleapis.com/projects/project-number/instances/mysql-1`, - * resource name - `mysql-1` - * For full resource name - - * `//cloudsql.googleapis.com/projects/project-number/instances/postgres-1` , - * resource name - `postgres-1` - * Note: In some cases, there might be more than one resource with the same - * resource name. - * - * Generated from protobuf field string resource_name = 15; - * @param string $var - * @return $this - */ - public function setResourceName($var) - { - GPBUtil::checkString($var, True); - $this->resource_name = $var; - - return $this; - } - - /** - * Optional. Backup and disaster recovery details for the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.BackupDRConfig backupdr_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\DatabaseCenter\V1beta\BackupDRConfig|null - */ - public function getBackupdrConfig() - { - return $this->backupdr_config; - } - - public function hasBackupdrConfig() - { - return isset($this->backupdr_config); - } - - public function clearBackupdrConfig() - { - unset($this->backupdr_config); - } - - /** - * Optional. Backup and disaster recovery details for the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.BackupDRConfig backupdr_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\DatabaseCenter\V1beta\BackupDRConfig $var - * @return $this - */ - public function setBackupdrConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\BackupDRConfig::class); - $this->backupdr_config = $var; - - return $this; - } - - /** - * The edition of the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Edition edition = 18; - * @return int - */ - public function getEdition() - { - return $this->edition; - } - - /** - * The edition of the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Edition edition = 18; - * @param int $var - * @return $this - */ - public function setEdition($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\Edition::class); - $this->edition = $var; - - return $this; - } - - /** - * Optional. The maintenance information of the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.MaintenanceInfo maintenance_info = 19 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\DatabaseCenter\V1beta\MaintenanceInfo|null - */ - public function getMaintenanceInfo() - { - return $this->maintenance_info; - } - - public function hasMaintenanceInfo() - { - return isset($this->maintenance_info); - } - - public function clearMaintenanceInfo() - { - unset($this->maintenance_info); - } - - /** - * Optional. The maintenance information of the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.MaintenanceInfo maintenance_info = 19 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\DatabaseCenter\V1beta\MaintenanceInfo $var - * @return $this - */ - public function setMaintenanceInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\MaintenanceInfo::class); - $this->maintenance_info = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DatabaseResourceGroup.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DatabaseResourceGroup.php deleted file mode 100644 index 3f533cc1ec6..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DatabaseResourceGroup.php +++ /dev/null @@ -1,119 +0,0 @@ -google.cloud.databasecenter.v1beta.DatabaseResourceGroup - */ -class DatabaseResourceGroup extends \Google\Protobuf\Internal\Message -{ - /** - * A database resource that serves as a root of the group of database - * resources. It is repeated just in case we have the concept of multiple - * roots in the future, however, it will only be populated with a single value - * for now. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.DatabaseResource root_resources = 1; - */ - private $root_resources; - /** - * The filtered signal groups and the count of issues associated with the - * resources that have been filtered in. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.IssueCount signal_groups = 2; - */ - private $signal_groups; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DatabaseCenter\V1beta\DatabaseResource>|\Google\Protobuf\Internal\RepeatedField $root_resources - * A database resource that serves as a root of the group of database - * resources. It is repeated just in case we have the concept of multiple - * roots in the future, however, it will only be populated with a single value - * for now. - * @type array<\Google\Cloud\DatabaseCenter\V1beta\IssueCount>|\Google\Protobuf\Internal\RepeatedField $signal_groups - * The filtered signal groups and the count of issues associated with the - * resources that have been filtered in. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * A database resource that serves as a root of the group of database - * resources. It is repeated just in case we have the concept of multiple - * roots in the future, however, it will only be populated with a single value - * for now. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.DatabaseResource root_resources = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRootResources() - { - return $this->root_resources; - } - - /** - * A database resource that serves as a root of the group of database - * resources. It is repeated just in case we have the concept of multiple - * roots in the future, however, it will only be populated with a single value - * for now. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.DatabaseResource root_resources = 1; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\DatabaseResource>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRootResources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\DatabaseResource::class); - $this->root_resources = $arr; - - return $this; - } - - /** - * The filtered signal groups and the count of issues associated with the - * resources that have been filtered in. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.IssueCount signal_groups = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSignalGroups() - { - return $this->signal_groups; - } - - /** - * The filtered signal groups and the count of issues associated with the - * resources that have been filtered in. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.IssueCount signal_groups = 2; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\IssueCount>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSignalGroups($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\IssueCount::class); - $this->signal_groups = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DatabaseResourceIssue.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DatabaseResourceIssue.php deleted file mode 100644 index 7365b8c2875..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DatabaseResourceIssue.php +++ /dev/null @@ -1,121 +0,0 @@ -google.cloud.databasecenter.v1beta.DatabaseResourceIssue - */ -class DatabaseResourceIssue extends \Google\Protobuf\Internal\Message -{ - /** - * Signal associated with the issue. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Signal signal = 1; - */ - protected $signal = null; - /** - * Resource associated with the issue. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.DatabaseResource resource = 2; - */ - protected $resource = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DatabaseCenter\V1beta\Signal $signal - * Signal associated with the issue. - * @type \Google\Cloud\DatabaseCenter\V1beta\DatabaseResource $resource - * Resource associated with the issue. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Signal associated with the issue. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Signal signal = 1; - * @return \Google\Cloud\DatabaseCenter\V1beta\Signal|null - */ - public function getSignal() - { - return $this->signal; - } - - public function hasSignal() - { - return isset($this->signal); - } - - public function clearSignal() - { - unset($this->signal); - } - - /** - * Signal associated with the issue. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Signal signal = 1; - * @param \Google\Cloud\DatabaseCenter\V1beta\Signal $var - * @return $this - */ - public function setSignal($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\Signal::class); - $this->signal = $var; - - return $this; - } - - /** - * Resource associated with the issue. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.DatabaseResource resource = 2; - * @return \Google\Cloud\DatabaseCenter\V1beta\DatabaseResource|null - */ - public function getResource() - { - return $this->resource; - } - - public function hasResource() - { - return isset($this->resource); - } - - public function clearResource() - { - unset($this->resource); - } - - /** - * Resource associated with the issue. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.DatabaseResource resource = 2; - * @param \Google\Cloud\DatabaseCenter\V1beta\DatabaseResource $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\DatabaseResource::class); - $this->resource = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DeletionProtectionInfo.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DeletionProtectionInfo.php deleted file mode 100644 index 54a6fadf015..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DeletionProtectionInfo.php +++ /dev/null @@ -1,111 +0,0 @@ -google.cloud.databasecenter.v1beta.DeletionProtectionInfo - */ -class DeletionProtectionInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Sub resource details associated with the signal. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResource sub_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $sub_resource = null; - /** - * Is deletion protection enabled. - * - * Generated from protobuf field bool deletion_protection_enabled = 2; - */ - protected $deletion_protection_enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DatabaseCenter\V1beta\SubResource $sub_resource - * Optional. Sub resource details associated with the signal. - * @type bool $deletion_protection_enabled - * Is deletion protection enabled. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Sub resource details associated with the signal. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResource sub_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\DatabaseCenter\V1beta\SubResource|null - */ - public function getSubResource() - { - return $this->sub_resource; - } - - public function hasSubResource() - { - return isset($this->sub_resource); - } - - public function clearSubResource() - { - unset($this->sub_resource); - } - - /** - * Optional. Sub resource details associated with the signal. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResource sub_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\DatabaseCenter\V1beta\SubResource $var - * @return $this - */ - public function setSubResource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\SubResource::class); - $this->sub_resource = $var; - - return $this; - } - - /** - * Is deletion protection enabled. - * - * Generated from protobuf field bool deletion_protection_enabled = 2; - * @return bool - */ - public function getDeletionProtectionEnabled() - { - return $this->deletion_protection_enabled; - } - - /** - * Is deletion protection enabled. - * - * Generated from protobuf field bool deletion_protection_enabled = 2; - * @param bool $var - * @return $this - */ - public function setDeletionProtectionEnabled($var) - { - GPBUtil::checkBool($var); - $this->deletion_protection_enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DeltaDetails.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DeltaDetails.php deleted file mode 100644 index c7ccae93266..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/DeltaDetails.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.databasecenter.v1beta.DeltaDetails - */ -class DeltaDetails extends \Google\Protobuf\Internal\Message -{ - /** - * Details of resources that have increased. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.ResourceDetails increased_resources = 1; - */ - private $increased_resources; - /** - * Details of resources that have decreased. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.ResourceDetails decreased_resources = 2; - */ - private $decreased_resources; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DatabaseCenter\V1beta\ResourceDetails>|\Google\Protobuf\Internal\RepeatedField $increased_resources - * Details of resources that have increased. - * @type array<\Google\Cloud\DatabaseCenter\V1beta\ResourceDetails>|\Google\Protobuf\Internal\RepeatedField $decreased_resources - * Details of resources that have decreased. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Details of resources that have increased. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.ResourceDetails increased_resources = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIncreasedResources() - { - return $this->increased_resources; - } - - /** - * Details of resources that have increased. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.ResourceDetails increased_resources = 1; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\ResourceDetails>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIncreasedResources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\ResourceDetails::class); - $this->increased_resources = $arr; - - return $this; - } - - /** - * Details of resources that have decreased. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.ResourceDetails decreased_resources = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDecreasedResources() - { - return $this->decreased_resources; - } - - /** - * Details of resources that have decreased. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.ResourceDetails decreased_resources = 2; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\ResourceDetails>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDecreasedResources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\ResourceDetails::class); - $this->decreased_resources = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Dimension.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Dimension.php deleted file mode 100644 index b371ca3bed7..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Dimension.php +++ /dev/null @@ -1,690 +0,0 @@ -google.cloud.databasecenter.v1beta.Dimension - */ -class Dimension extends \Google\Protobuf\Internal\Message -{ - protected $dimension; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $container - * Specifies where the resource is created. For Google Cloud resources, it - * is the full name of the project. - * @type int $product_type - * Type to identify a product - * @type int $product_engine - * Engine refers to underlying database binary running in an instance. - * @type string $product_version - * Version of the underlying database engine - * @type string $location - * The location of the resources. It supports returning only regional - * locations in Google Cloud. - * @type string $resource_type - * The type of resource defined according to the pattern: - * {Service Name}/{Type}. Ex: - * sqladmin.googleapis.com/Instance - * alloydb.googleapis.com/Cluster - * alloydb.googleapis.com/Instance - * spanner.googleapis.com/Instance - * @type int $sub_resource_type - * Subtype of the resource specified at creation time. - * @type int $resource_category - * The category of the resource. - * @type int $management_type - * The management type of the resource. - * @type int $edition - * The edition of the resource. - * @type string $tag_key - * Tag key of the resource. - * @type string $tag_value - * Tag value of the resource. - * @type string $tag_source - * Tag source of the resource. - * @type bool $tag_inherited - * Tag inheritance value of the resource. - * @type string $label_key - * Label key of the resource. - * @type string $label_value - * Label value of the resource. - * @type string $label_source - * Label source of the resource. - * @type bool $has_maintenance_schedule - * Whether the resource has a maintenance schedule. - * @type bool $has_deny_maintenance_schedules - * Whether the resource has deny maintenance schedules. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Specifies where the resource is created. For Google Cloud resources, it - * is the full name of the project. - * - * Generated from protobuf field string container = 2; - * @return string - */ - public function getContainer() - { - return $this->readOneof(2); - } - - public function hasContainer() - { - return $this->hasOneof(2); - } - - /** - * Specifies where the resource is created. For Google Cloud resources, it - * is the full name of the project. - * - * Generated from protobuf field string container = 2; - * @param string $var - * @return $this - */ - public function setContainer($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Type to identify a product - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.ProductType product_type = 3; - * @return int - */ - public function getProductType() - { - return $this->readOneof(3); - } - - public function hasProductType() - { - return $this->hasOneof(3); - } - - /** - * Type to identify a product - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.ProductType product_type = 3; - * @param int $var - * @return $this - */ - public function setProductType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\ProductType::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Engine refers to underlying database binary running in an instance. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Engine product_engine = 4; - * @return int - */ - public function getProductEngine() - { - return $this->readOneof(4); - } - - public function hasProductEngine() - { - return $this->hasOneof(4); - } - - /** - * Engine refers to underlying database binary running in an instance. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Engine product_engine = 4; - * @param int $var - * @return $this - */ - public function setProductEngine($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\Engine::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Version of the underlying database engine - * - * Generated from protobuf field string product_version = 5; - * @return string - */ - public function getProductVersion() - { - return $this->readOneof(5); - } - - public function hasProductVersion() - { - return $this->hasOneof(5); - } - - /** - * Version of the underlying database engine - * - * Generated from protobuf field string product_version = 5; - * @param string $var - * @return $this - */ - public function setProductVersion($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * The location of the resources. It supports returning only regional - * locations in Google Cloud. - * - * Generated from protobuf field string location = 6; - * @return string - */ - public function getLocation() - { - return $this->readOneof(6); - } - - public function hasLocation() - { - return $this->hasOneof(6); - } - - /** - * The location of the resources. It supports returning only regional - * locations in Google Cloud. - * - * Generated from protobuf field string location = 6; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * The type of resource defined according to the pattern: - * {Service Name}/{Type}. Ex: - * sqladmin.googleapis.com/Instance - * alloydb.googleapis.com/Cluster - * alloydb.googleapis.com/Instance - * spanner.googleapis.com/Instance - * - * Generated from protobuf field string resource_type = 7; - * @return string - */ - public function getResourceType() - { - return $this->readOneof(7); - } - - public function hasResourceType() - { - return $this->hasOneof(7); - } - - /** - * The type of resource defined according to the pattern: - * {Service Name}/{Type}. Ex: - * sqladmin.googleapis.com/Instance - * alloydb.googleapis.com/Cluster - * alloydb.googleapis.com/Instance - * spanner.googleapis.com/Instance - * - * Generated from protobuf field string resource_type = 7; - * @param string $var - * @return $this - */ - public function setResourceType($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Subtype of the resource specified at creation time. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResourceType sub_resource_type = 8; - * @return int - */ - public function getSubResourceType() - { - return $this->readOneof(8); - } - - public function hasSubResourceType() - { - return $this->hasOneof(8); - } - - /** - * Subtype of the resource specified at creation time. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResourceType sub_resource_type = 8; - * @param int $var - * @return $this - */ - public function setSubResourceType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\SubResourceType::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * The category of the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.ResourceCategory resource_category = 9; - * @return int - */ - public function getResourceCategory() - { - return $this->readOneof(9); - } - - public function hasResourceCategory() - { - return $this->hasOneof(9); - } - - /** - * The category of the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.ResourceCategory resource_category = 9; - * @param int $var - * @return $this - */ - public function setResourceCategory($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\ResourceCategory::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * The management type of the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.ManagementType management_type = 10; - * @return int - */ - public function getManagementType() - { - return $this->readOneof(10); - } - - public function hasManagementType() - { - return $this->hasOneof(10); - } - - /** - * The management type of the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.ManagementType management_type = 10; - * @param int $var - * @return $this - */ - public function setManagementType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\ManagementType::class); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * The edition of the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Edition edition = 11; - * @return int - */ - public function getEdition() - { - return $this->readOneof(11); - } - - public function hasEdition() - { - return $this->hasOneof(11); - } - - /** - * The edition of the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Edition edition = 11; - * @param int $var - * @return $this - */ - public function setEdition($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\Edition::class); - $this->writeOneof(11, $var); - - return $this; - } - - /** - * Tag key of the resource. - * - * Generated from protobuf field string tag_key = 12; - * @return string - */ - public function getTagKey() - { - return $this->readOneof(12); - } - - public function hasTagKey() - { - return $this->hasOneof(12); - } - - /** - * Tag key of the resource. - * - * Generated from protobuf field string tag_key = 12; - * @param string $var - * @return $this - */ - public function setTagKey($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(12, $var); - - return $this; - } - - /** - * Tag value of the resource. - * - * Generated from protobuf field string tag_value = 13; - * @return string - */ - public function getTagValue() - { - return $this->readOneof(13); - } - - public function hasTagValue() - { - return $this->hasOneof(13); - } - - /** - * Tag value of the resource. - * - * Generated from protobuf field string tag_value = 13; - * @param string $var - * @return $this - */ - public function setTagValue($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * Tag source of the resource. - * - * Generated from protobuf field string tag_source = 14; - * @return string - */ - public function getTagSource() - { - return $this->readOneof(14); - } - - public function hasTagSource() - { - return $this->hasOneof(14); - } - - /** - * Tag source of the resource. - * - * Generated from protobuf field string tag_source = 14; - * @param string $var - * @return $this - */ - public function setTagSource($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(14, $var); - - return $this; - } - - /** - * Tag inheritance value of the resource. - * - * Generated from protobuf field bool tag_inherited = 15; - * @return bool - */ - public function getTagInherited() - { - return $this->readOneof(15); - } - - public function hasTagInherited() - { - return $this->hasOneof(15); - } - - /** - * Tag inheritance value of the resource. - * - * Generated from protobuf field bool tag_inherited = 15; - * @param bool $var - * @return $this - */ - public function setTagInherited($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(15, $var); - - return $this; - } - - /** - * Label key of the resource. - * - * Generated from protobuf field string label_key = 16; - * @return string - */ - public function getLabelKey() - { - return $this->readOneof(16); - } - - public function hasLabelKey() - { - return $this->hasOneof(16); - } - - /** - * Label key of the resource. - * - * Generated from protobuf field string label_key = 16; - * @param string $var - * @return $this - */ - public function setLabelKey($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(16, $var); - - return $this; - } - - /** - * Label value of the resource. - * - * Generated from protobuf field string label_value = 17; - * @return string - */ - public function getLabelValue() - { - return $this->readOneof(17); - } - - public function hasLabelValue() - { - return $this->hasOneof(17); - } - - /** - * Label value of the resource. - * - * Generated from protobuf field string label_value = 17; - * @param string $var - * @return $this - */ - public function setLabelValue($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(17, $var); - - return $this; - } - - /** - * Label source of the resource. - * - * Generated from protobuf field string label_source = 18; - * @return string - */ - public function getLabelSource() - { - return $this->readOneof(18); - } - - public function hasLabelSource() - { - return $this->hasOneof(18); - } - - /** - * Label source of the resource. - * - * Generated from protobuf field string label_source = 18; - * @param string $var - * @return $this - */ - public function setLabelSource($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(18, $var); - - return $this; - } - - /** - * Whether the resource has a maintenance schedule. - * - * Generated from protobuf field bool has_maintenance_schedule = 19; - * @return bool - */ - public function getHasMaintenanceSchedule() - { - return $this->readOneof(19); - } - - public function hasHasMaintenanceSchedule() - { - return $this->hasOneof(19); - } - - /** - * Whether the resource has a maintenance schedule. - * - * Generated from protobuf field bool has_maintenance_schedule = 19; - * @param bool $var - * @return $this - */ - public function setHasMaintenanceSchedule($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(19, $var); - - return $this; - } - - /** - * Whether the resource has deny maintenance schedules. - * - * Generated from protobuf field bool has_deny_maintenance_schedules = 20; - * @return bool - */ - public function getHasDenyMaintenanceSchedules() - { - return $this->readOneof(20); - } - - public function hasHasDenyMaintenanceSchedules() - { - return $this->hasOneof(20); - } - - /** - * Whether the resource has deny maintenance schedules. - * - * Generated from protobuf field bool has_deny_maintenance_schedules = 20; - * @param bool $var - * @return $this - */ - public function setHasDenyMaintenanceSchedules($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(20, $var); - - return $this; - } - - /** - * @return string - */ - public function getDimension() - { - return $this->whichOneof("dimension"); - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Edition.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Edition.php deleted file mode 100644 index a8a2d06414d..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Edition.php +++ /dev/null @@ -1,69 +0,0 @@ -google.cloud.databasecenter.v1beta.Edition - */ -class Edition -{ - /** - * Default, to make it consistent with instance edition enum. - * - * Generated from protobuf enum EDITION_UNSPECIFIED = 0; - */ - const EDITION_UNSPECIFIED = 0; - /** - * Represents the enterprise edition. - * - * Generated from protobuf enum EDITION_ENTERPRISE = 1; - */ - const EDITION_ENTERPRISE = 1; - /** - * Represents the enterprise plus edition. - * - * Generated from protobuf enum EDITION_ENTERPRISE_PLUS = 2; - */ - const EDITION_ENTERPRISE_PLUS = 2; - /** - * Represents the standard edition. - * - * Generated from protobuf enum EDITION_STANDARD = 3; - */ - const EDITION_STANDARD = 3; - - private static $valueToName = [ - self::EDITION_UNSPECIFIED => 'EDITION_UNSPECIFIED', - self::EDITION_ENTERPRISE => 'EDITION_ENTERPRISE', - self::EDITION_ENTERPRISE_PLUS => 'EDITION_ENTERPRISE_PLUS', - self::EDITION_STANDARD => 'EDITION_STANDARD', - ]; - - 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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Engine.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Engine.php deleted file mode 100644 index 020fd6a1eee..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Engine.php +++ /dev/null @@ -1,132 +0,0 @@ -google.cloud.databasecenter.v1beta.Engine - */ -class Engine -{ - /** - * UNSPECIFIED means engine type is not known or available. - * - * Generated from protobuf enum ENGINE_UNSPECIFIED = 0; - */ - const ENGINE_UNSPECIFIED = 0; - /** - * MySQL binary running as an engine in the database instance. - * - * Generated from protobuf enum ENGINE_MYSQL = 1; - */ - const ENGINE_MYSQL = 1; - /** - * Postgres binary running as engine in database instance. - * - * Generated from protobuf enum ENGINE_POSTGRES = 2; - */ - const ENGINE_POSTGRES = 2; - /** - * SQLServer binary running as engine in database instance. - * - * Generated from protobuf enum ENGINE_SQL_SERVER = 3; - */ - const ENGINE_SQL_SERVER = 3; - /** - * Native database binary running as engine in instance. - * - * Generated from protobuf enum ENGINE_NATIVE = 4; - */ - const ENGINE_NATIVE = 4; - /** - * Memorystore with Redis dialect. - * - * Generated from protobuf enum ENGINE_MEMORYSTORE_FOR_REDIS = 8; - */ - const ENGINE_MEMORYSTORE_FOR_REDIS = 8; - /** - * Memorystore with Redis cluster dialect. - * - * Generated from protobuf enum ENGINE_MEMORYSTORE_FOR_REDIS_CLUSTER = 9; - */ - const ENGINE_MEMORYSTORE_FOR_REDIS_CLUSTER = 9; - /** - * Firestore with native mode. - * - * Generated from protobuf enum ENGINE_FIRESTORE_WITH_NATIVE_MODE = 10; - */ - const ENGINE_FIRESTORE_WITH_NATIVE_MODE = 10; - /** - * Firestore with datastore mode. - * - * Generated from protobuf enum ENGINE_FIRESTORE_WITH_DATASTORE_MODE = 11; - */ - const ENGINE_FIRESTORE_WITH_DATASTORE_MODE = 11; - /** - * Oracle Exadata engine. - * - * Generated from protobuf enum ENGINE_EXADATA_ORACLE = 12; - */ - const ENGINE_EXADATA_ORACLE = 12; - /** - * Oracle Autonomous DB Serverless engine. - * - * Generated from protobuf enum ENGINE_ADB_SERVERLESS_ORACLE = 13; - */ - const ENGINE_ADB_SERVERLESS_ORACLE = 13; - /** - * Firestore with MongoDB compatibility. - * - * Generated from protobuf enum ENGINE_FIRESTORE_WITH_MONGODB_COMPATIBILITY_MODE = 14; - */ - const ENGINE_FIRESTORE_WITH_MONGODB_COMPATIBILITY_MODE = 14; - /** - * Other refers to rest of other database engine. This is to be when engine is - * known, but it is not present in this enum. - * - * Generated from protobuf enum ENGINE_OTHER = 6; - */ - const ENGINE_OTHER = 6; - - private static $valueToName = [ - self::ENGINE_UNSPECIFIED => 'ENGINE_UNSPECIFIED', - self::ENGINE_MYSQL => 'ENGINE_MYSQL', - self::ENGINE_POSTGRES => 'ENGINE_POSTGRES', - self::ENGINE_SQL_SERVER => 'ENGINE_SQL_SERVER', - self::ENGINE_NATIVE => 'ENGINE_NATIVE', - self::ENGINE_MEMORYSTORE_FOR_REDIS => 'ENGINE_MEMORYSTORE_FOR_REDIS', - self::ENGINE_MEMORYSTORE_FOR_REDIS_CLUSTER => 'ENGINE_MEMORYSTORE_FOR_REDIS_CLUSTER', - self::ENGINE_FIRESTORE_WITH_NATIVE_MODE => 'ENGINE_FIRESTORE_WITH_NATIVE_MODE', - self::ENGINE_FIRESTORE_WITH_DATASTORE_MODE => 'ENGINE_FIRESTORE_WITH_DATASTORE_MODE', - self::ENGINE_EXADATA_ORACLE => 'ENGINE_EXADATA_ORACLE', - self::ENGINE_ADB_SERVERLESS_ORACLE => 'ENGINE_ADB_SERVERLESS_ORACLE', - self::ENGINE_FIRESTORE_WITH_MONGODB_COMPATIBILITY_MODE => 'ENGINE_FIRESTORE_WITH_MONGODB_COMPATIBILITY_MODE', - self::ENGINE_OTHER => 'ENGINE_OTHER', - ]; - - 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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/InefficientQueryInfo.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/InefficientQueryInfo.php deleted file mode 100644 index 41136eaf141..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/InefficientQueryInfo.php +++ /dev/null @@ -1,211 +0,0 @@ -google.cloud.databasecenter.v1beta.InefficientQueryInfo - */ -class InefficientQueryInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the database where index is required. For example, "db1", which is - * the name of the database present in the instance. - * - * Generated from protobuf field string database = 1; - */ - protected $database = ''; - /** - * Name of the table where index is required - * - * Generated from protobuf field string table = 2; - */ - protected $table = ''; - /** - * SQL statement of the index. Based on the ddl type, this will be either - * CREATE INDEX or DROP INDEX. - * - * Generated from protobuf field string sql_index_statement = 3; - */ - protected $sql_index_statement = ''; - /** - * Cost of additional disk usage in bytes - * - * Generated from protobuf field int64 storage_cost_bytes = 4; - */ - protected $storage_cost_bytes = 0; - /** - * Count of queries to be impacted if index is applied - * - * Generated from protobuf field int64 impacted_queries_count = 5; - */ - protected $impacted_queries_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $database - * Name of the database where index is required. For example, "db1", which is - * the name of the database present in the instance. - * @type string $table - * Name of the table where index is required - * @type string $sql_index_statement - * SQL statement of the index. Based on the ddl type, this will be either - * CREATE INDEX or DROP INDEX. - * @type int|string $storage_cost_bytes - * Cost of additional disk usage in bytes - * @type int|string $impacted_queries_count - * Count of queries to be impacted if index is applied - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); - parent::__construct($data); - } - - /** - * Name of the database where index is required. For example, "db1", which is - * the name of the database present in the instance. - * - * Generated from protobuf field string database = 1; - * @return string - */ - public function getDatabase() - { - return $this->database; - } - - /** - * Name of the database where index is required. For example, "db1", which is - * the name of the database present in the instance. - * - * Generated from protobuf field string database = 1; - * @param string $var - * @return $this - */ - public function setDatabase($var) - { - GPBUtil::checkString($var, True); - $this->database = $var; - - return $this; - } - - /** - * Name of the table where index is required - * - * Generated from protobuf field string table = 2; - * @return string - */ - public function getTable() - { - return $this->table; - } - - /** - * Name of the table where index is required - * - * Generated from protobuf field string table = 2; - * @param string $var - * @return $this - */ - public function setTable($var) - { - GPBUtil::checkString($var, True); - $this->table = $var; - - return $this; - } - - /** - * SQL statement of the index. Based on the ddl type, this will be either - * CREATE INDEX or DROP INDEX. - * - * Generated from protobuf field string sql_index_statement = 3; - * @return string - */ - public function getSqlIndexStatement() - { - return $this->sql_index_statement; - } - - /** - * SQL statement of the index. Based on the ddl type, this will be either - * CREATE INDEX or DROP INDEX. - * - * Generated from protobuf field string sql_index_statement = 3; - * @param string $var - * @return $this - */ - public function setSqlIndexStatement($var) - { - GPBUtil::checkString($var, True); - $this->sql_index_statement = $var; - - return $this; - } - - /** - * Cost of additional disk usage in bytes - * - * Generated from protobuf field int64 storage_cost_bytes = 4; - * @return int|string - */ - public function getStorageCostBytes() - { - return $this->storage_cost_bytes; - } - - /** - * Cost of additional disk usage in bytes - * - * Generated from protobuf field int64 storage_cost_bytes = 4; - * @param int|string $var - * @return $this - */ - public function setStorageCostBytes($var) - { - GPBUtil::checkInt64($var); - $this->storage_cost_bytes = $var; - - return $this; - } - - /** - * Count of queries to be impacted if index is applied - * - * Generated from protobuf field int64 impacted_queries_count = 5; - * @return int|string - */ - public function getImpactedQueriesCount() - { - return $this->impacted_queries_count; - } - - /** - * Count of queries to be impacted if index is applied - * - * Generated from protobuf field int64 impacted_queries_count = 5; - * @param int|string $var - * @return $this - */ - public function setImpactedQueriesCount($var) - { - GPBUtil::checkInt64($var); - $this->impacted_queries_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueCount.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueCount.php deleted file mode 100644 index 429c6721b8d..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueCount.php +++ /dev/null @@ -1,113 +0,0 @@ -google.cloud.databasecenter.v1beta.IssueCount - */ -class IssueCount extends \Google\Protobuf\Internal\Message -{ - /** - * Title of a signal group corresponding to the request. - * - * Generated from protobuf field string display_name = 1; - */ - protected $display_name = ''; - /** - * The count of the number of issues associated with those resources that - * are explicitly filtered in by the filters present in the request. - * A signal is an issue when its SignalStatus field is set to - * SIGNAL_STATUS_ISSUE. - * - * Generated from protobuf field int32 issue_count = 2; - */ - protected $issue_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Title of a signal group corresponding to the request. - * @type int $issue_count - * The count of the number of issues associated with those resources that - * are explicitly filtered in by the filters present in the request. - * A signal is an issue when its SignalStatus field is set to - * SIGNAL_STATUS_ISSUE. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); - parent::__construct($data); - } - - /** - * Title of a signal group corresponding to the request. - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Title of a signal group corresponding to the request. - * - * 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; - } - - /** - * The count of the number of issues associated with those resources that - * are explicitly filtered in by the filters present in the request. - * A signal is an issue when its SignalStatus field is set to - * SIGNAL_STATUS_ISSUE. - * - * Generated from protobuf field int32 issue_count = 2; - * @return int - */ - public function getIssueCount() - { - return $this->issue_count; - } - - /** - * The count of the number of issues associated with those resources that - * are explicitly filtered in by the filters present in the request. - * A signal is an issue when its SignalStatus field is set to - * SIGNAL_STATUS_ISSUE. - * - * Generated from protobuf field int32 issue_count = 2; - * @param int $var - * @return $this - */ - public function setIssueCount($var) - { - GPBUtil::checkInt32($var); - $this->issue_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueGroupStats.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueGroupStats.php deleted file mode 100644 index dbb8e42a5a7..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueGroupStats.php +++ /dev/null @@ -1,270 +0,0 @@ -google.cloud.databasecenter.v1beta.IssueGroupStats - */ -class IssueGroupStats extends \Google\Protobuf\Internal\Message -{ - /** - * Database resource level health card name. This will corresponds to one of - * the requested input group names. - * - * Generated from protobuf field string display_name = 1; - */ - protected $display_name = ''; - /** - * Total count of the groups of resources returned by the filter that - * also have one or more resources for which any of the specified issues - * are applicable. - * - * Generated from protobuf field int32 resource_groups_count = 2; - */ - protected $resource_groups_count = 0; - /** - * Total count of resources returned by the filter for which any of the - * specified issues are applicable. - * - * Generated from protobuf field int32 resources_count = 3; - */ - protected $resources_count = 0; - /** - * The number of resource groups from the total groups as defined above - * that are healthy with respect to all of the specified issues. - * - * Generated from protobuf field int32 healthy_resource_groups_count = 4; - */ - protected $healthy_resource_groups_count = 0; - /** - * The number of resources from the total defined above in field - * total_resources_count that are healthy with respect to all of the specified - * issues. - * - * Generated from protobuf field int32 healthy_resources_count = 5; - */ - protected $healthy_resources_count = 0; - /** - * List of issues stats containing count of resources having particular issue - * category. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.IssueStats issue_stats = 6; - */ - private $issue_stats; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Database resource level health card name. This will corresponds to one of - * the requested input group names. - * @type int $resource_groups_count - * Total count of the groups of resources returned by the filter that - * also have one or more resources for which any of the specified issues - * are applicable. - * @type int $resources_count - * Total count of resources returned by the filter for which any of the - * specified issues are applicable. - * @type int $healthy_resource_groups_count - * The number of resource groups from the total groups as defined above - * that are healthy with respect to all of the specified issues. - * @type int $healthy_resources_count - * The number of resources from the total defined above in field - * total_resources_count that are healthy with respect to all of the specified - * issues. - * @type array<\Google\Cloud\DatabaseCenter\V1beta\IssueStats>|\Google\Protobuf\Internal\RepeatedField $issue_stats - * List of issues stats containing count of resources having particular issue - * category. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Database resource level health card name. This will corresponds to one of - * the requested input group names. - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Database resource level health card name. This will corresponds to one of - * the requested input group names. - * - * 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; - } - - /** - * Total count of the groups of resources returned by the filter that - * also have one or more resources for which any of the specified issues - * are applicable. - * - * Generated from protobuf field int32 resource_groups_count = 2; - * @return int - */ - public function getResourceGroupsCount() - { - return $this->resource_groups_count; - } - - /** - * Total count of the groups of resources returned by the filter that - * also have one or more resources for which any of the specified issues - * are applicable. - * - * Generated from protobuf field int32 resource_groups_count = 2; - * @param int $var - * @return $this - */ - public function setResourceGroupsCount($var) - { - GPBUtil::checkInt32($var); - $this->resource_groups_count = $var; - - return $this; - } - - /** - * Total count of resources returned by the filter for which any of the - * specified issues are applicable. - * - * Generated from protobuf field int32 resources_count = 3; - * @return int - */ - public function getResourcesCount() - { - return $this->resources_count; - } - - /** - * Total count of resources returned by the filter for which any of the - * specified issues are applicable. - * - * Generated from protobuf field int32 resources_count = 3; - * @param int $var - * @return $this - */ - public function setResourcesCount($var) - { - GPBUtil::checkInt32($var); - $this->resources_count = $var; - - return $this; - } - - /** - * The number of resource groups from the total groups as defined above - * that are healthy with respect to all of the specified issues. - * - * Generated from protobuf field int32 healthy_resource_groups_count = 4; - * @return int - */ - public function getHealthyResourceGroupsCount() - { - return $this->healthy_resource_groups_count; - } - - /** - * The number of resource groups from the total groups as defined above - * that are healthy with respect to all of the specified issues. - * - * Generated from protobuf field int32 healthy_resource_groups_count = 4; - * @param int $var - * @return $this - */ - public function setHealthyResourceGroupsCount($var) - { - GPBUtil::checkInt32($var); - $this->healthy_resource_groups_count = $var; - - return $this; - } - - /** - * The number of resources from the total defined above in field - * total_resources_count that are healthy with respect to all of the specified - * issues. - * - * Generated from protobuf field int32 healthy_resources_count = 5; - * @return int - */ - public function getHealthyResourcesCount() - { - return $this->healthy_resources_count; - } - - /** - * The number of resources from the total defined above in field - * total_resources_count that are healthy with respect to all of the specified - * issues. - * - * Generated from protobuf field int32 healthy_resources_count = 5; - * @param int $var - * @return $this - */ - public function setHealthyResourcesCount($var) - { - GPBUtil::checkInt32($var); - $this->healthy_resources_count = $var; - - return $this; - } - - /** - * List of issues stats containing count of resources having particular issue - * category. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.IssueStats issue_stats = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIssueStats() - { - return $this->issue_stats; - } - - /** - * List of issues stats containing count of resources having particular issue - * category. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.IssueStats issue_stats = 6; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\IssueStats>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIssueStats($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\IssueStats::class); - $this->issue_stats = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueSeverity.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueSeverity.php deleted file mode 100644 index f2e3e1f78a5..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueSeverity.php +++ /dev/null @@ -1,82 +0,0 @@ -google.cloud.databasecenter.v1beta.IssueSeverity - */ -class IssueSeverity -{ - /** - * Unspecified. - * - * Generated from protobuf enum ISSUE_SEVERITY_UNSPECIFIED = 0; - */ - const ISSUE_SEVERITY_UNSPECIFIED = 0; - /** - * Low severity. - * - * Generated from protobuf enum ISSUE_SEVERITY_LOW = 1; - */ - const ISSUE_SEVERITY_LOW = 1; - /** - * Medium severity. - * - * Generated from protobuf enum ISSUE_SEVERITY_MEDIUM = 2; - */ - const ISSUE_SEVERITY_MEDIUM = 2; - /** - * High severity. - * - * Generated from protobuf enum ISSUE_SEVERITY_HIGH = 3; - */ - const ISSUE_SEVERITY_HIGH = 3; - /** - * Critical severity. - * - * Generated from protobuf enum ISSUE_SEVERITY_CRITICAL = 4; - */ - const ISSUE_SEVERITY_CRITICAL = 4; - /** - * Irrelevant severity. This means the issue should not be surfaced at all. - * - * Generated from protobuf enum ISSUE_SEVERITY_IRRELEVANT = 5; - */ - const ISSUE_SEVERITY_IRRELEVANT = 5; - - private static $valueToName = [ - self::ISSUE_SEVERITY_UNSPECIFIED => 'ISSUE_SEVERITY_UNSPECIFIED', - self::ISSUE_SEVERITY_LOW => 'ISSUE_SEVERITY_LOW', - self::ISSUE_SEVERITY_MEDIUM => 'ISSUE_SEVERITY_MEDIUM', - self::ISSUE_SEVERITY_HIGH => 'ISSUE_SEVERITY_HIGH', - self::ISSUE_SEVERITY_CRITICAL => 'ISSUE_SEVERITY_CRITICAL', - self::ISSUE_SEVERITY_IRRELEVANT => 'ISSUE_SEVERITY_IRRELEVANT', - ]; - - 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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueStats.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueStats.php deleted file mode 100644 index 8e05000105c..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/IssueStats.php +++ /dev/null @@ -1,193 +0,0 @@ -google.cloud.databasecenter.v1beta.IssueStats - */ -class IssueStats extends \Google\Protobuf\Internal\Message -{ - /** - * Type of signal which is an issue. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 1; - */ - protected $signal_type = 0; - /** - * Number of resources having issues of a given type. - * - * Generated from protobuf field int32 resource_count = 2; - */ - protected $resource_count = 0; - /** - * Optional. Delta counts and details of resources for which issue was raised - * or fixed. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $delta_details = null; - /** - * Severity of the issue. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.IssueSeverity issue_severity = 4; - */ - protected $issue_severity = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $signal_type - * Type of signal which is an issue. - * @type int $resource_count - * Number of resources having issues of a given type. - * @type \Google\Cloud\DatabaseCenter\V1beta\DeltaDetails $delta_details - * Optional. Delta counts and details of resources for which issue was raised - * or fixed. - * @type int $issue_severity - * Severity of the issue. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Type of signal which is an issue. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 1; - * @return int - */ - public function getSignalType() - { - return $this->signal_type; - } - - /** - * Type of signal which is an issue. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 1; - * @param int $var - * @return $this - */ - public function setSignalType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\SignalType::class); - $this->signal_type = $var; - - return $this; - } - - /** - * Number of resources having issues of a given type. - * - * Generated from protobuf field int32 resource_count = 2; - * @return int - */ - public function getResourceCount() - { - return $this->resource_count; - } - - /** - * Number of resources having issues of a given type. - * - * Generated from protobuf field int32 resource_count = 2; - * @param int $var - * @return $this - */ - public function setResourceCount($var) - { - GPBUtil::checkInt32($var); - $this->resource_count = $var; - - return $this; - } - - /** - * Optional. Delta counts and details of resources for which issue was raised - * or fixed. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\DatabaseCenter\V1beta\DeltaDetails|null - */ - public function getDeltaDetails() - { - return $this->delta_details; - } - - public function hasDeltaDetails() - { - return isset($this->delta_details); - } - - public function clearDeltaDetails() - { - unset($this->delta_details); - } - - /** - * Optional. Delta counts and details of resources for which issue was raised - * or fixed. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\DatabaseCenter\V1beta\DeltaDetails $var - * @return $this - */ - public function setDeltaDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\DeltaDetails::class); - $this->delta_details = $var; - - return $this; - } - - /** - * Severity of the issue. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.IssueSeverity issue_severity = 4; - * @return int - */ - public function getIssueSeverity() - { - return isset($this->issue_severity) ? $this->issue_severity : 0; - } - - public function hasIssueSeverity() - { - return isset($this->issue_severity); - } - - public function clearIssueSeverity() - { - unset($this->issue_severity); - } - - /** - * Severity of the issue. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.IssueSeverity issue_severity = 4; - * @param int $var - * @return $this - */ - public function setIssueSeverity($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\IssueSeverity::class); - $this->issue_severity = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Label.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Label.php deleted file mode 100644 index 12c6dd186de..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Label.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.databasecenter.v1beta.Label - */ -class Label extends \Google\Protobuf\Internal\Message -{ - /** - * The key part of the label. - * - * Generated from protobuf field string key = 1; - */ - protected $key = ''; - /** - * The value part of the label. - * - * Generated from protobuf field string value = 2; - */ - protected $value = ''; - /** - * The source of the Label. Source is empty if the label is directly attached - * to the resource and not inherited. - * - * Generated from protobuf field string source = 3; - */ - protected $source = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key - * The key part of the label. - * @type string $value - * The value part of the label. - * @type string $source - * The source of the Label. Source is empty if the label is directly attached - * to the resource and not inherited. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * The key part of the label. - * - * Generated from protobuf field string key = 1; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * The key part of the label. - * - * 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 part of the label. - * - * Generated from protobuf field string value = 2; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The value part of the label. - * - * 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; - } - - /** - * The source of the Label. Source is empty if the label is directly attached - * to the resource and not inherited. - * - * Generated from protobuf field string source = 3; - * @return string - */ - public function getSource() - { - return $this->source; - } - - /** - * The source of the Label. Source is empty if the label is directly attached - * to the resource and not inherited. - * - * Generated from protobuf field string source = 3; - * @param string $var - * @return $this - */ - public function setSource($var) - { - GPBUtil::checkString($var, True); - $this->source = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MachineConfig.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MachineConfig.php deleted file mode 100644 index 7652e07e4c2..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MachineConfig.php +++ /dev/null @@ -1,156 +0,0 @@ -google.cloud.databasecenter.v1beta.MachineConfig - */ -class MachineConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Memory size in bytes. - * - * Generated from protobuf field int64 memory_size_bytes = 2; - */ - protected $memory_size_bytes = 0; - /** - * Optional. The number of Shards (if applicable). - * - * Generated from protobuf field optional int32 shard_count = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $shard_count = null; - /** - * Optional. The number of vCPUs (if applicable). - * - * Generated from protobuf field optional double vcpu_count = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $vcpu_count = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $memory_size_bytes - * Memory size in bytes. - * @type int $shard_count - * Optional. The number of Shards (if applicable). - * @type float $vcpu_count - * Optional. The number of vCPUs (if applicable). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\MachineConfig::initOnce(); - parent::__construct($data); - } - - /** - * Memory size in bytes. - * - * Generated from protobuf field int64 memory_size_bytes = 2; - * @return int|string - */ - public function getMemorySizeBytes() - { - return $this->memory_size_bytes; - } - - /** - * Memory size in bytes. - * - * Generated from protobuf field int64 memory_size_bytes = 2; - * @param int|string $var - * @return $this - */ - public function setMemorySizeBytes($var) - { - GPBUtil::checkInt64($var); - $this->memory_size_bytes = $var; - - return $this; - } - - /** - * Optional. The number of Shards (if applicable). - * - * Generated from protobuf field optional int32 shard_count = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getShardCount() - { - return isset($this->shard_count) ? $this->shard_count : 0; - } - - public function hasShardCount() - { - return isset($this->shard_count); - } - - public function clearShardCount() - { - unset($this->shard_count); - } - - /** - * Optional. The number of Shards (if applicable). - * - * Generated from protobuf field optional int32 shard_count = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setShardCount($var) - { - GPBUtil::checkInt32($var); - $this->shard_count = $var; - - return $this; - } - - /** - * Optional. The number of vCPUs (if applicable). - * - * Generated from protobuf field optional double vcpu_count = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return float - */ - public function getVcpuCount() - { - return isset($this->vcpu_count) ? $this->vcpu_count : 0.0; - } - - public function hasVcpuCount() - { - return isset($this->vcpu_count); - } - - public function clearVcpuCount() - { - unset($this->vcpu_count); - } - - /** - * Optional. The number of vCPUs (if applicable). - * - * Generated from protobuf field optional double vcpu_count = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param float $var - * @return $this - */ - public function setVcpuCount($var) - { - GPBUtil::checkDouble($var); - $this->vcpu_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MaintenanceInfo.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MaintenanceInfo.php deleted file mode 100644 index 08b1527120b..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MaintenanceInfo.php +++ /dev/null @@ -1,149 +0,0 @@ -google.cloud.databasecenter.v1beta.MaintenanceInfo - */ -class MaintenanceInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Maintenance window for the database resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule maintenance_schedule = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $maintenance_schedule = null; - /** - * Optional. List of Deny maintenance period for the database resource. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.ResourceMaintenanceDenySchedule deny_maintenance_schedules = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $deny_maintenance_schedules; - /** - * Output only. Current Maintenance version of the database resource. Example: - * "MYSQL_8_0_41.R20250531.01_15" - * - * Generated from protobuf field string maintenance_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $maintenance_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DatabaseCenter\V1beta\ResourceMaintenanceSchedule $maintenance_schedule - * Optional. Maintenance window for the database resource. - * @type array<\Google\Cloud\DatabaseCenter\V1beta\ResourceMaintenanceDenySchedule>|\Google\Protobuf\Internal\RepeatedField $deny_maintenance_schedules - * Optional. List of Deny maintenance period for the database resource. - * @type string $maintenance_version - * Output only. Current Maintenance version of the database resource. Example: - * "MYSQL_8_0_41.R20250531.01_15" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Maintenance::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Maintenance window for the database resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule maintenance_schedule = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\DatabaseCenter\V1beta\ResourceMaintenanceSchedule|null - */ - public function getMaintenanceSchedule() - { - return $this->maintenance_schedule; - } - - public function hasMaintenanceSchedule() - { - return isset($this->maintenance_schedule); - } - - public function clearMaintenanceSchedule() - { - unset($this->maintenance_schedule); - } - - /** - * Optional. Maintenance window for the database resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule maintenance_schedule = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\DatabaseCenter\V1beta\ResourceMaintenanceSchedule $var - * @return $this - */ - public function setMaintenanceSchedule($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\ResourceMaintenanceSchedule::class); - $this->maintenance_schedule = $var; - - return $this; - } - - /** - * Optional. List of Deny maintenance period for the database resource. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.ResourceMaintenanceDenySchedule deny_maintenance_schedules = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDenyMaintenanceSchedules() - { - return $this->deny_maintenance_schedules; - } - - /** - * Optional. List of Deny maintenance period for the database resource. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.ResourceMaintenanceDenySchedule deny_maintenance_schedules = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\ResourceMaintenanceDenySchedule>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDenyMaintenanceSchedules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\ResourceMaintenanceDenySchedule::class); - $this->deny_maintenance_schedules = $arr; - - return $this; - } - - /** - * Output only. Current Maintenance version of the database resource. Example: - * "MYSQL_8_0_41.R20250531.01_15" - * - * Generated from protobuf field string maintenance_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getMaintenanceVersion() - { - return $this->maintenance_version; - } - - /** - * Output only. Current Maintenance version of the database resource. Example: - * "MYSQL_8_0_41.R20250531.01_15" - * - * Generated from protobuf field string maintenance_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setMaintenanceVersion($var) - { - GPBUtil::checkString($var, True); - $this->maintenance_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MaintenanceRecommendationInfo.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MaintenanceRecommendationInfo.php deleted file mode 100644 index 2edcd38e2b2..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MaintenanceRecommendationInfo.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.databasecenter.v1beta.MaintenanceRecommendationInfo - */ -class MaintenanceRecommendationInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. List of recommended maintenance schedules for the database - * resource. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule resource_maintenance_schedules = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $resource_maintenance_schedules; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DatabaseCenter\V1beta\ResourceMaintenanceSchedule>|\Google\Protobuf\Internal\RepeatedField $resource_maintenance_schedules - * Optional. List of recommended maintenance schedules for the database - * resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); - parent::__construct($data); - } - - /** - * Optional. List of recommended maintenance schedules for the database - * resource. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule resource_maintenance_schedules = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResourceMaintenanceSchedules() - { - return $this->resource_maintenance_schedules; - } - - /** - * Optional. List of recommended maintenance schedules for the database - * resource. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule resource_maintenance_schedules = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\ResourceMaintenanceSchedule>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResourceMaintenanceSchedules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\ResourceMaintenanceSchedule::class); - $this->resource_maintenance_schedules = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ManagementType.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ManagementType.php deleted file mode 100644 index db81aa5e226..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ManagementType.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.databasecenter.v1beta.ManagementType - */ -class ManagementType -{ - /** - * Unspecified. - * - * Generated from protobuf enum MANAGEMENT_TYPE_UNSPECIFIED = 0; - */ - const MANAGEMENT_TYPE_UNSPECIFIED = 0; - /** - * Google-managed resource. - * - * Generated from protobuf enum MANAGEMENT_TYPE_GCP_MANAGED = 1; - */ - const MANAGEMENT_TYPE_GCP_MANAGED = 1; - /** - * Self-managed resource. - * - * Generated from protobuf enum MANAGEMENT_TYPE_SELF_MANAGED = 2; - */ - const MANAGEMENT_TYPE_SELF_MANAGED = 2; - - private static $valueToName = [ - self::MANAGEMENT_TYPE_UNSPECIFIED => 'MANAGEMENT_TYPE_UNSPECIFIED', - self::MANAGEMENT_TYPE_GCP_MANAGED => 'MANAGEMENT_TYPE_GCP_MANAGED', - self::MANAGEMENT_TYPE_SELF_MANAGED => 'MANAGEMENT_TYPE_SELF_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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MetricData.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MetricData.php deleted file mode 100644 index 647bdc36756..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/MetricData.php +++ /dev/null @@ -1,121 +0,0 @@ -google.cloud.databasecenter.v1beta.MetricData - */ -class MetricData extends \Google\Protobuf\Internal\Message -{ - /** - * The value associated with the metric. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.TypedValue value = 1; - */ - protected $value = null; - /** - * The time the metric was observed in the metric source service. - * - * Generated from protobuf field .google.protobuf.Timestamp observation_time = 2; - */ - protected $observation_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DatabaseCenter\V1beta\TypedValue $value - * The value associated with the metric. - * @type \Google\Protobuf\Timestamp $observation_time - * The time the metric was observed in the metric source service. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\MetricData::initOnce(); - parent::__construct($data); - } - - /** - * The value associated with the metric. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.TypedValue value = 1; - * @return \Google\Cloud\DatabaseCenter\V1beta\TypedValue|null - */ - public function getValue() - { - return $this->value; - } - - public function hasValue() - { - return isset($this->value); - } - - public function clearValue() - { - unset($this->value); - } - - /** - * The value associated with the metric. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.TypedValue value = 1; - * @param \Google\Cloud\DatabaseCenter\V1beta\TypedValue $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\TypedValue::class); - $this->value = $var; - - return $this; - } - - /** - * The time the metric was observed in the metric source service. - * - * Generated from protobuf field .google.protobuf.Timestamp observation_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getObservationTime() - { - return $this->observation_time; - } - - public function hasObservationTime() - { - return isset($this->observation_time); - } - - public function clearObservationTime() - { - unset($this->observation_time); - } - - /** - * The time the metric was observed in the metric source service. - * - * Generated from protobuf field .google.protobuf.Timestamp observation_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setObservationTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->observation_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Metrics.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Metrics.php deleted file mode 100644 index 940fba3cf41..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Metrics.php +++ /dev/null @@ -1,449 +0,0 @@ -google.cloud.databasecenter.v1beta.Metrics - */ -class Metrics extends \Google\Protobuf\Internal\Message -{ - /** - * P99 CPU utilization observed for the resource. The value is a - * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData p99_cpu_utilization = 1; - */ - protected $p99_cpu_utilization = null; - /** - * P95 CPU utilization observed for the resource. The value is a - * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData p95_cpu_utilization = 2; - */ - protected $p95_cpu_utilization = null; - /** - * Current storage used by the resource in bytes. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData current_storage_used_bytes = 3; - */ - protected $current_storage_used_bytes = null; - /** - * Peak storage utilization observed for the resource. The value is a - * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData peak_storage_utilization = 4; - */ - protected $peak_storage_utilization = null; - /** - * Peak memory utilization observed for the resource. The value is a - * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData peak_memory_utilization = 5; - */ - protected $peak_memory_utilization = null; - /** - * Peak number of connections observed for the resource. The value is a - * positive integer. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData peak_number_connections = 6; - */ - protected $peak_number_connections = null; - /** - * Number of nodes in instance for spanner or bigtable. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData node_count = 7; - */ - protected $node_count = null; - /** - * Number of processing units in spanner. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData processing_unit_count = 8; - */ - protected $processing_unit_count = null; - /** - * Current memory used by the resource in bytes. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData current_memory_used_bytes = 9; - */ - protected $current_memory_used_bytes = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DatabaseCenter\V1beta\MetricData $p99_cpu_utilization - * P99 CPU utilization observed for the resource. The value is a - * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). - * @type \Google\Cloud\DatabaseCenter\V1beta\MetricData $p95_cpu_utilization - * P95 CPU utilization observed for the resource. The value is a - * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). - * @type \Google\Cloud\DatabaseCenter\V1beta\MetricData $current_storage_used_bytes - * Current storage used by the resource in bytes. - * @type \Google\Cloud\DatabaseCenter\V1beta\MetricData $peak_storage_utilization - * Peak storage utilization observed for the resource. The value is a - * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). - * @type \Google\Cloud\DatabaseCenter\V1beta\MetricData $peak_memory_utilization - * Peak memory utilization observed for the resource. The value is a - * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). - * @type \Google\Cloud\DatabaseCenter\V1beta\MetricData $peak_number_connections - * Peak number of connections observed for the resource. The value is a - * positive integer. - * @type \Google\Cloud\DatabaseCenter\V1beta\MetricData $node_count - * Number of nodes in instance for spanner or bigtable. - * @type \Google\Cloud\DatabaseCenter\V1beta\MetricData $processing_unit_count - * Number of processing units in spanner. - * @type \Google\Cloud\DatabaseCenter\V1beta\MetricData $current_memory_used_bytes - * Current memory used by the resource in bytes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\MetricData::initOnce(); - parent::__construct($data); - } - - /** - * P99 CPU utilization observed for the resource. The value is a - * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData p99_cpu_utilization = 1; - * @return \Google\Cloud\DatabaseCenter\V1beta\MetricData|null - */ - public function getP99CpuUtilization() - { - return $this->p99_cpu_utilization; - } - - public function hasP99CpuUtilization() - { - return isset($this->p99_cpu_utilization); - } - - public function clearP99CpuUtilization() - { - unset($this->p99_cpu_utilization); - } - - /** - * P99 CPU utilization observed for the resource. The value is a - * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData p99_cpu_utilization = 1; - * @param \Google\Cloud\DatabaseCenter\V1beta\MetricData $var - * @return $this - */ - public function setP99CpuUtilization($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\MetricData::class); - $this->p99_cpu_utilization = $var; - - return $this; - } - - /** - * P95 CPU utilization observed for the resource. The value is a - * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData p95_cpu_utilization = 2; - * @return \Google\Cloud\DatabaseCenter\V1beta\MetricData|null - */ - public function getP95CpuUtilization() - { - return $this->p95_cpu_utilization; - } - - public function hasP95CpuUtilization() - { - return isset($this->p95_cpu_utilization); - } - - public function clearP95CpuUtilization() - { - unset($this->p95_cpu_utilization); - } - - /** - * P95 CPU utilization observed for the resource. The value is a - * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData p95_cpu_utilization = 2; - * @param \Google\Cloud\DatabaseCenter\V1beta\MetricData $var - * @return $this - */ - public function setP95CpuUtilization($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\MetricData::class); - $this->p95_cpu_utilization = $var; - - return $this; - } - - /** - * Current storage used by the resource in bytes. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData current_storage_used_bytes = 3; - * @return \Google\Cloud\DatabaseCenter\V1beta\MetricData|null - */ - public function getCurrentStorageUsedBytes() - { - return $this->current_storage_used_bytes; - } - - public function hasCurrentStorageUsedBytes() - { - return isset($this->current_storage_used_bytes); - } - - public function clearCurrentStorageUsedBytes() - { - unset($this->current_storage_used_bytes); - } - - /** - * Current storage used by the resource in bytes. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData current_storage_used_bytes = 3; - * @param \Google\Cloud\DatabaseCenter\V1beta\MetricData $var - * @return $this - */ - public function setCurrentStorageUsedBytes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\MetricData::class); - $this->current_storage_used_bytes = $var; - - return $this; - } - - /** - * Peak storage utilization observed for the resource. The value is a - * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData peak_storage_utilization = 4; - * @return \Google\Cloud\DatabaseCenter\V1beta\MetricData|null - */ - public function getPeakStorageUtilization() - { - return $this->peak_storage_utilization; - } - - public function hasPeakStorageUtilization() - { - return isset($this->peak_storage_utilization); - } - - public function clearPeakStorageUtilization() - { - unset($this->peak_storage_utilization); - } - - /** - * Peak storage utilization observed for the resource. The value is a - * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData peak_storage_utilization = 4; - * @param \Google\Cloud\DatabaseCenter\V1beta\MetricData $var - * @return $this - */ - public function setPeakStorageUtilization($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\MetricData::class); - $this->peak_storage_utilization = $var; - - return $this; - } - - /** - * Peak memory utilization observed for the resource. The value is a - * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData peak_memory_utilization = 5; - * @return \Google\Cloud\DatabaseCenter\V1beta\MetricData|null - */ - public function getPeakMemoryUtilization() - { - return $this->peak_memory_utilization; - } - - public function hasPeakMemoryUtilization() - { - return isset($this->peak_memory_utilization); - } - - public function clearPeakMemoryUtilization() - { - unset($this->peak_memory_utilization); - } - - /** - * Peak memory utilization observed for the resource. The value is a - * fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData peak_memory_utilization = 5; - * @param \Google\Cloud\DatabaseCenter\V1beta\MetricData $var - * @return $this - */ - public function setPeakMemoryUtilization($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\MetricData::class); - $this->peak_memory_utilization = $var; - - return $this; - } - - /** - * Peak number of connections observed for the resource. The value is a - * positive integer. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData peak_number_connections = 6; - * @return \Google\Cloud\DatabaseCenter\V1beta\MetricData|null - */ - public function getPeakNumberConnections() - { - return $this->peak_number_connections; - } - - public function hasPeakNumberConnections() - { - return isset($this->peak_number_connections); - } - - public function clearPeakNumberConnections() - { - unset($this->peak_number_connections); - } - - /** - * Peak number of connections observed for the resource. The value is a - * positive integer. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData peak_number_connections = 6; - * @param \Google\Cloud\DatabaseCenter\V1beta\MetricData $var - * @return $this - */ - public function setPeakNumberConnections($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\MetricData::class); - $this->peak_number_connections = $var; - - return $this; - } - - /** - * Number of nodes in instance for spanner or bigtable. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData node_count = 7; - * @return \Google\Cloud\DatabaseCenter\V1beta\MetricData|null - */ - public function getNodeCount() - { - return $this->node_count; - } - - public function hasNodeCount() - { - return isset($this->node_count); - } - - public function clearNodeCount() - { - unset($this->node_count); - } - - /** - * Number of nodes in instance for spanner or bigtable. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData node_count = 7; - * @param \Google\Cloud\DatabaseCenter\V1beta\MetricData $var - * @return $this - */ - public function setNodeCount($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\MetricData::class); - $this->node_count = $var; - - return $this; - } - - /** - * Number of processing units in spanner. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData processing_unit_count = 8; - * @return \Google\Cloud\DatabaseCenter\V1beta\MetricData|null - */ - public function getProcessingUnitCount() - { - return $this->processing_unit_count; - } - - public function hasProcessingUnitCount() - { - return isset($this->processing_unit_count); - } - - public function clearProcessingUnitCount() - { - unset($this->processing_unit_count); - } - - /** - * Number of processing units in spanner. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData processing_unit_count = 8; - * @param \Google\Cloud\DatabaseCenter\V1beta\MetricData $var - * @return $this - */ - public function setProcessingUnitCount($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\MetricData::class); - $this->processing_unit_count = $var; - - return $this; - } - - /** - * Current memory used by the resource in bytes. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData current_memory_used_bytes = 9; - * @return \Google\Cloud\DatabaseCenter\V1beta\MetricData|null - */ - public function getCurrentMemoryUsedBytes() - { - return $this->current_memory_used_bytes; - } - - public function hasCurrentMemoryUsedBytes() - { - return isset($this->current_memory_used_bytes); - } - - public function clearCurrentMemoryUsedBytes() - { - unset($this->current_memory_used_bytes); - } - - /** - * Current memory used by the resource in bytes. - * - * Generated from protobuf field optional .google.cloud.databasecenter.v1beta.MetricData current_memory_used_bytes = 9; - * @param \Google\Cloud\DatabaseCenter\V1beta\MetricData $var - * @return $this - */ - public function setCurrentMemoryUsedBytes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\MetricData::class); - $this->current_memory_used_bytes = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/OperationErrorType.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/OperationErrorType.php deleted file mode 100644 index ed085c37e78..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/OperationErrorType.php +++ /dev/null @@ -1,92 +0,0 @@ -google.cloud.databasecenter.v1beta.OperationErrorType - */ -class OperationErrorType -{ - /** - * UNSPECIFIED means operation error type is not known or available. - * - * Generated from protobuf enum OPERATION_ERROR_TYPE_UNSPECIFIED = 0; - */ - const OPERATION_ERROR_TYPE_UNSPECIFIED = 0; - /** - * Key destroyed, expired, not found, unreachable or permission denied. - * - * Generated from protobuf enum KMS_KEY_ERROR = 1; - */ - const KMS_KEY_ERROR = 1; - /** - * Database is not accessible. - * - * Generated from protobuf enum DATABASE_ERROR = 2; - */ - const DATABASE_ERROR = 2; - /** - * The zone or region does not have sufficient resources to handle the request - * at the moment. - * - * Generated from protobuf enum STOCKOUT_ERROR = 3; - */ - const STOCKOUT_ERROR = 3; - /** - * User initiated cancellation. - * - * Generated from protobuf enum CANCELLATION_ERROR = 4; - */ - const CANCELLATION_ERROR = 4; - /** - * SQL server specific error. - * - * Generated from protobuf enum SQLSERVER_ERROR = 5; - */ - const SQLSERVER_ERROR = 5; - /** - * Any other internal error. - * - * Generated from protobuf enum INTERNAL_ERROR = 6; - */ - const INTERNAL_ERROR = 6; - - private static $valueToName = [ - self::OPERATION_ERROR_TYPE_UNSPECIFIED => 'OPERATION_ERROR_TYPE_UNSPECIFIED', - self::KMS_KEY_ERROR => 'KMS_KEY_ERROR', - self::DATABASE_ERROR => 'DATABASE_ERROR', - self::STOCKOUT_ERROR => 'STOCKOUT_ERROR', - self::CANCELLATION_ERROR => 'CANCELLATION_ERROR', - self::SQLSERVER_ERROR => 'SQLSERVER_ERROR', - self::INTERNAL_ERROR => 'INTERNAL_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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/OutdatedMinorVersionInfo.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/OutdatedMinorVersionInfo.php deleted file mode 100644 index a68c9edce0a..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/OutdatedMinorVersionInfo.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.databasecenter.v1beta.OutdatedMinorVersionInfo - */ -class OutdatedMinorVersionInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Recommended minor version of the underlying database engine. Example - * values: For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it - * could be "14.4", "15.5" etc. - * - * Generated from protobuf field string recommended_minor_version = 1; - */ - protected $recommended_minor_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $recommended_minor_version - * Recommended minor version of the underlying database engine. Example - * values: For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it - * could be "14.4", "15.5" etc. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); - parent::__construct($data); - } - - /** - * Recommended minor version of the underlying database engine. Example - * values: For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it - * could be "14.4", "15.5" etc. - * - * Generated from protobuf field string recommended_minor_version = 1; - * @return string - */ - public function getRecommendedMinorVersion() - { - return $this->recommended_minor_version; - } - - /** - * Recommended minor version of the underlying database engine. Example - * values: For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it - * could be "14.4", "15.5" etc. - * - * Generated from protobuf field string recommended_minor_version = 1; - * @param string $var - * @return $this - */ - public function setRecommendedMinorVersion($var) - { - GPBUtil::checkString($var, True); - $this->recommended_minor_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Phase.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Phase.php deleted file mode 100644 index fc477f8e49d..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Phase.php +++ /dev/null @@ -1,79 +0,0 @@ -google.cloud.databasecenter.v1beta.Phase - */ -class Phase -{ - /** - * Phase is unspecified. - * - * Generated from protobuf enum PHASE_UNSPECIFIED = 0; - */ - const PHASE_UNSPECIFIED = 0; - /** - * Week 1. - * - * Generated from protobuf enum PHASE_WEEK1 = 1; - */ - const PHASE_WEEK1 = 1; - /** - * Week 2. - * - * Generated from protobuf enum PHASE_WEEK2 = 2; - */ - const PHASE_WEEK2 = 2; - /** - * Week 5. - * - * Generated from protobuf enum PHASE_WEEK5 = 3; - */ - const PHASE_WEEK5 = 3; - /** - * Any phase. - * - * Generated from protobuf enum PHASE_ANY = 4; - */ - const PHASE_ANY = 4; - - private static $valueToName = [ - self::PHASE_UNSPECIFIED => 'PHASE_UNSPECIFIED', - self::PHASE_WEEK1 => 'PHASE_WEEK1', - self::PHASE_WEEK2 => 'PHASE_WEEK2', - self::PHASE_WEEK5 => 'PHASE_WEEK5', - self::PHASE_ANY => 'PHASE_ANY', - ]; - - 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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Product.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Product.php deleted file mode 100644 index 2b47957ead4..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Product.php +++ /dev/null @@ -1,189 +0,0 @@ -google.cloud.databasecenter.v1beta.Product - */ -class Product extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Type of specific database product. It could be CloudSQL, AlloyDB - * etc.. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.ProductType type = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $type = 0; - /** - * Optional. The specific engine that the underlying database is running. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Engine engine = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $engine = 0; - /** - * Optional. Version of the underlying database engine. Example values: For - * MySQL, it could be "8.0", "5.7" etc. For Postgres, it could be "14", "15" - * etc. - * - * Generated from protobuf field string version = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $version = ''; - /** - * Optional. Minor version of the underlying database engine. Example values: - * For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it could be - * "14.4", "15.5" etc. - * - * Generated from protobuf field string minor_version = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $minor_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * Optional. Type of specific database product. It could be CloudSQL, AlloyDB - * etc.. - * @type int $engine - * Optional. The specific engine that the underlying database is running. - * @type string $version - * Optional. Version of the underlying database engine. Example values: For - * MySQL, it could be "8.0", "5.7" etc. For Postgres, it could be "14", "15" - * etc. - * @type string $minor_version - * Optional. Minor version of the underlying database engine. Example values: - * For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it could be - * "14.4", "15.5" etc. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Product::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Type of specific database product. It could be CloudSQL, AlloyDB - * etc.. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.ProductType type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Optional. Type of specific database product. It could be CloudSQL, AlloyDB - * etc.. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.ProductType type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\ProductType::class); - $this->type = $var; - - return $this; - } - - /** - * Optional. The specific engine that the underlying database is running. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Engine engine = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getEngine() - { - return $this->engine; - } - - /** - * Optional. The specific engine that the underlying database is running. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Engine engine = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setEngine($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\Engine::class); - $this->engine = $var; - - return $this; - } - - /** - * Optional. Version of the underlying database engine. Example values: For - * MySQL, it could be "8.0", "5.7" etc. For Postgres, it could be "14", "15" - * etc. - * - * Generated from protobuf field string version = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Optional. Version of the underlying database engine. Example values: For - * MySQL, it could be "8.0", "5.7" etc. For Postgres, it could be "14", "15" - * etc. - * - * Generated from protobuf field string version = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * Optional. Minor version of the underlying database engine. Example values: - * For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it could be - * "14.4", "15.5" etc. - * - * Generated from protobuf field string minor_version = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getMinorVersion() - { - return $this->minor_version; - } - - /** - * Optional. Minor version of the underlying database engine. Example values: - * For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it could be - * "14.4", "15.5" etc. - * - * Generated from protobuf field string minor_version = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setMinorVersion($var) - { - GPBUtil::checkString($var, True); - $this->minor_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ProductType.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ProductType.php deleted file mode 100644 index b33ce323e43..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ProductType.php +++ /dev/null @@ -1,121 +0,0 @@ -google.cloud.databasecenter.v1beta.ProductType - */ -class ProductType -{ - /** - * PRODUCT_TYPE_UNSPECIFIED means product type is not known or that the user - * didn't provide this field in the request. - * - * Generated from protobuf enum PRODUCT_TYPE_UNSPECIFIED = 0; - */ - const PRODUCT_TYPE_UNSPECIFIED = 0; - /** - * Cloud SQL product area in Google Cloud - * - * Generated from protobuf enum PRODUCT_TYPE_CLOUD_SQL = 1; - */ - const PRODUCT_TYPE_CLOUD_SQL = 1; - /** - * AlloyDB product area in Google Cloud - * - * Generated from protobuf enum PRODUCT_TYPE_ALLOYDB = 2; - */ - const PRODUCT_TYPE_ALLOYDB = 2; - /** - * Spanner product area in Google Cloud - * - * Generated from protobuf enum PRODUCT_TYPE_SPANNER = 3; - */ - const PRODUCT_TYPE_SPANNER = 3; - /** - * Bigtable product area in Google Cloud - * - * Generated from protobuf enum PRODUCT_TYPE_BIGTABLE = 6; - */ - const PRODUCT_TYPE_BIGTABLE = 6; - /** - * Memorystore product area in Google Cloud - * - * Generated from protobuf enum PRODUCT_TYPE_MEMORYSTORE = 7; - */ - const PRODUCT_TYPE_MEMORYSTORE = 7; - /** - * Firestore product area in Google Cloud - * - * Generated from protobuf enum PRODUCT_TYPE_FIRESTORE = 8; - */ - const PRODUCT_TYPE_FIRESTORE = 8; - /** - * Compute Engine self managed databases - * - * Generated from protobuf enum PRODUCT_TYPE_COMPUTE_ENGINE = 9; - */ - const PRODUCT_TYPE_COMPUTE_ENGINE = 9; - /** - * Oracle product area in Google Cloud - * - * Generated from protobuf enum PRODUCT_TYPE_ORACLE_ON_GCP = 10; - */ - const PRODUCT_TYPE_ORACLE_ON_GCP = 10; - /** - * BigQuery product area in Google Cloud - * - * Generated from protobuf enum PRODUCT_TYPE_BIGQUERY = 11; - */ - const PRODUCT_TYPE_BIGQUERY = 11; - /** - * Other refers to rest of other product type. This is to be when product type - * is known, but it is not present in this enum. - * - * Generated from protobuf enum PRODUCT_TYPE_OTHER = 5; - */ - const PRODUCT_TYPE_OTHER = 5; - - private static $valueToName = [ - self::PRODUCT_TYPE_UNSPECIFIED => 'PRODUCT_TYPE_UNSPECIFIED', - self::PRODUCT_TYPE_CLOUD_SQL => 'PRODUCT_TYPE_CLOUD_SQL', - self::PRODUCT_TYPE_ALLOYDB => 'PRODUCT_TYPE_ALLOYDB', - self::PRODUCT_TYPE_SPANNER => 'PRODUCT_TYPE_SPANNER', - self::PRODUCT_TYPE_BIGTABLE => 'PRODUCT_TYPE_BIGTABLE', - self::PRODUCT_TYPE_MEMORYSTORE => 'PRODUCT_TYPE_MEMORYSTORE', - self::PRODUCT_TYPE_FIRESTORE => 'PRODUCT_TYPE_FIRESTORE', - self::PRODUCT_TYPE_COMPUTE_ENGINE => 'PRODUCT_TYPE_COMPUTE_ENGINE', - self::PRODUCT_TYPE_ORACLE_ON_GCP => 'PRODUCT_TYPE_ORACLE_ON_GCP', - self::PRODUCT_TYPE_BIGQUERY => 'PRODUCT_TYPE_BIGQUERY', - self::PRODUCT_TYPE_OTHER => 'PRODUCT_TYPE_OTHER', - ]; - - 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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryDatabaseResourceGroupsRequest.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryDatabaseResourceGroupsRequest.php deleted file mode 100644 index 562184b0ca3..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryDatabaseResourceGroupsRequest.php +++ /dev/null @@ -1,568 +0,0 @@ -google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsRequest - */ -class QueryDatabaseResourceGroupsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent can be a project, a folder, or an organization. The search - * is limited to the resources within the `scope`. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $parent = ''; - /** - * Optional. The expression to filter resources. - * The following fields are filterable: - * * full_resource_name - * * resource_type - * * container - * * product.type - * * product.engine - * * product.version - * * location - * * labels - * * resource_category - * * machine_config.cpu_count - * * machine_config.memory_size_bytes - * * machine_config.shard_count - * * resource_name - * * tags - * * backupdr_config.backupdr_managed - * * edition - * The expression is a list of zero or more restrictions combined via logical - * operators `AND` and `OR`. When `AND` and `OR` are both used in the - * expression, parentheses must be appropriately used to group the - * combinations. - * Example: `location="us-east1"` - * Example: `container="projects/123" OR container="projects/456"` - * Example: `(container="projects/123" OR - * container="projects/456") AND location="us-east1"` - * Example: `full_resource_name=~"test"` - * Example: `full_resource_name=~"test.*master"` - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Groups of signal types that are requested. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $signal_type_groups; - /** - * Optional. Filters based on signals. The list will be ORed together and then - * ANDed with the `filters` field above. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalFilter signal_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $signal_filters; - /** - * Optional. A field that specifies the sort order of the results. - * The following fields are sortable: - * * full_resource_name - * * product.type - * * product.engine - * * product.version - * * container - * * issue_count - * * machine_config.vcpu_count - * * machine_config.memory_size_bytes - * * machine_config.shard_count - * * resource_name - * * issue_severity - * * signal_type - * * location - * * resource_type - * * instance_type - * * edition - * * metrics.p99_cpu_utilization - * * metrics.p95_cpu_utilization - * * metrics.current_storage_used_bytes - * * metrics.node_count - * * metrics.processing_unit_count - * * metrics.current_memory_used_bytes - * * metrics.peak_storage_utilization - * * metrics.peak_number_connections - * * metrics.peak_memory_utilization - * The default order is ascending. Add "DESC" after the field name to indicate - * descending order. Add "ASC" after the field name to indicate ascending - * order. It only supports a single field at a time. - * For example: - * `order_by = "full_resource_name"` sorts response in ascending order - * `order_by = "full_resource_name DESC"` sorts response in descending order - * `order_by = "issue_count DESC"` sorts response in descending order of - * count of all issues associated with a resource. - * More explicitly, `order_by = "full_resource_name, product"` is not - * supported. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. If unspecified, at most 50 resource groups will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous - * `QueryDatabaseResourceGroupsRequest` call. Provide this to retrieve the - * subsequent page. All parameters except page_token should match the - * parameters in the call that provided the page page token. - * - * Generated from protobuf field string page_token = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent can be a project, a folder, or an organization. The search - * is limited to the resources within the `scope`. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * @type string $filter - * Optional. The expression to filter resources. - * The following fields are filterable: - * * full_resource_name - * * resource_type - * * container - * * product.type - * * product.engine - * * product.version - * * location - * * labels - * * resource_category - * * machine_config.cpu_count - * * machine_config.memory_size_bytes - * * machine_config.shard_count - * * resource_name - * * tags - * * backupdr_config.backupdr_managed - * * edition - * The expression is a list of zero or more restrictions combined via logical - * operators `AND` and `OR`. When `AND` and `OR` are both used in the - * expression, parentheses must be appropriately used to group the - * combinations. - * Example: `location="us-east1"` - * Example: `container="projects/123" OR container="projects/456"` - * Example: `(container="projects/123" OR - * container="projects/456") AND location="us-east1"` - * Example: `full_resource_name=~"test"` - * Example: `full_resource_name=~"test.*master"` - * @type array<\Google\Cloud\DatabaseCenter\V1beta\SignalTypeGroup>|\Google\Protobuf\Internal\RepeatedField $signal_type_groups - * Optional. Groups of signal types that are requested. - * @type array<\Google\Cloud\DatabaseCenter\V1beta\SignalFilter>|\Google\Protobuf\Internal\RepeatedField $signal_filters - * Optional. Filters based on signals. The list will be ORed together and then - * ANDed with the `filters` field above. - * @type string $order_by - * Optional. A field that specifies the sort order of the results. - * The following fields are sortable: - * * full_resource_name - * * product.type - * * product.engine - * * product.version - * * container - * * issue_count - * * machine_config.vcpu_count - * * machine_config.memory_size_bytes - * * machine_config.shard_count - * * resource_name - * * issue_severity - * * signal_type - * * location - * * resource_type - * * instance_type - * * edition - * * metrics.p99_cpu_utilization - * * metrics.p95_cpu_utilization - * * metrics.current_storage_used_bytes - * * metrics.node_count - * * metrics.processing_unit_count - * * metrics.current_memory_used_bytes - * * metrics.peak_storage_utilization - * * metrics.peak_number_connections - * * metrics.peak_memory_utilization - * The default order is ascending. Add "DESC" after the field name to indicate - * descending order. Add "ASC" after the field name to indicate ascending - * order. It only supports a single field at a time. - * For example: - * `order_by = "full_resource_name"` sorts response in ascending order - * `order_by = "full_resource_name DESC"` sorts response in descending order - * `order_by = "issue_count DESC"` sorts response in descending order of - * count of all issues associated with a resource. - * More explicitly, `order_by = "full_resource_name, product"` is not - * supported. - * @type int $page_size - * Optional. If unspecified, at most 50 resource groups will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous - * `QueryDatabaseResourceGroupsRequest` call. Provide this to retrieve the - * subsequent page. All parameters except page_token should match the - * parameters in the call that provided the page page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent can be a project, a folder, or an organization. The search - * is limited to the resources within the `scope`. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Parent can be a project, a folder, or an organization. The search - * is limited to the resources within the `scope`. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The expression to filter resources. - * The following fields are filterable: - * * full_resource_name - * * resource_type - * * container - * * product.type - * * product.engine - * * product.version - * * location - * * labels - * * resource_category - * * machine_config.cpu_count - * * machine_config.memory_size_bytes - * * machine_config.shard_count - * * resource_name - * * tags - * * backupdr_config.backupdr_managed - * * edition - * The expression is a list of zero or more restrictions combined via logical - * operators `AND` and `OR`. When `AND` and `OR` are both used in the - * expression, parentheses must be appropriately used to group the - * combinations. - * Example: `location="us-east1"` - * Example: `container="projects/123" OR container="projects/456"` - * Example: `(container="projects/123" OR - * container="projects/456") AND location="us-east1"` - * Example: `full_resource_name=~"test"` - * Example: `full_resource_name=~"test.*master"` - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. The expression to filter resources. - * The following fields are filterable: - * * full_resource_name - * * resource_type - * * container - * * product.type - * * product.engine - * * product.version - * * location - * * labels - * * resource_category - * * machine_config.cpu_count - * * machine_config.memory_size_bytes - * * machine_config.shard_count - * * resource_name - * * tags - * * backupdr_config.backupdr_managed - * * edition - * The expression is a list of zero or more restrictions combined via logical - * operators `AND` and `OR`. When `AND` and `OR` are both used in the - * expression, parentheses must be appropriately used to group the - * combinations. - * Example: `location="us-east1"` - * Example: `container="projects/123" OR container="projects/456"` - * Example: `(container="projects/123" OR - * container="projects/456") AND location="us-east1"` - * Example: `full_resource_name=~"test"` - * Example: `full_resource_name=~"test.*master"` - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Groups of signal types that are requested. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSignalTypeGroups() - { - return $this->signal_type_groups; - } - - /** - * Optional. Groups of signal types that are requested. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalTypeGroup signal_type_groups = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\SignalTypeGroup>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSignalTypeGroups($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\SignalTypeGroup::class); - $this->signal_type_groups = $arr; - - return $this; - } - - /** - * Optional. Filters based on signals. The list will be ORed together and then - * ANDed with the `filters` field above. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalFilter signal_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSignalFilters() - { - return $this->signal_filters; - } - - /** - * Optional. Filters based on signals. The list will be ORed together and then - * ANDed with the `filters` field above. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalFilter signal_filters = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\SignalFilter>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSignalFilters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\SignalFilter::class); - $this->signal_filters = $arr; - - return $this; - } - - /** - * Optional. A field that specifies the sort order of the results. - * The following fields are sortable: - * * full_resource_name - * * product.type - * * product.engine - * * product.version - * * container - * * issue_count - * * machine_config.vcpu_count - * * machine_config.memory_size_bytes - * * machine_config.shard_count - * * resource_name - * * issue_severity - * * signal_type - * * location - * * resource_type - * * instance_type - * * edition - * * metrics.p99_cpu_utilization - * * metrics.p95_cpu_utilization - * * metrics.current_storage_used_bytes - * * metrics.node_count - * * metrics.processing_unit_count - * * metrics.current_memory_used_bytes - * * metrics.peak_storage_utilization - * * metrics.peak_number_connections - * * metrics.peak_memory_utilization - * The default order is ascending. Add "DESC" after the field name to indicate - * descending order. Add "ASC" after the field name to indicate ascending - * order. It only supports a single field at a time. - * For example: - * `order_by = "full_resource_name"` sorts response in ascending order - * `order_by = "full_resource_name DESC"` sorts response in descending order - * `order_by = "issue_count DESC"` sorts response in descending order of - * count of all issues associated with a resource. - * More explicitly, `order_by = "full_resource_name, product"` is not - * supported. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. A field that specifies the sort order of the results. - * The following fields are sortable: - * * full_resource_name - * * product.type - * * product.engine - * * product.version - * * container - * * issue_count - * * machine_config.vcpu_count - * * machine_config.memory_size_bytes - * * machine_config.shard_count - * * resource_name - * * issue_severity - * * signal_type - * * location - * * resource_type - * * instance_type - * * edition - * * metrics.p99_cpu_utilization - * * metrics.p95_cpu_utilization - * * metrics.current_storage_used_bytes - * * metrics.node_count - * * metrics.processing_unit_count - * * metrics.current_memory_used_bytes - * * metrics.peak_storage_utilization - * * metrics.peak_number_connections - * * metrics.peak_memory_utilization - * The default order is ascending. Add "DESC" after the field name to indicate - * descending order. Add "ASC" after the field name to indicate ascending - * order. It only supports a single field at a time. - * For example: - * `order_by = "full_resource_name"` sorts response in ascending order - * `order_by = "full_resource_name DESC"` sorts response in descending order - * `order_by = "issue_count DESC"` sorts response in descending order of - * count of all issues associated with a resource. - * More explicitly, `order_by = "full_resource_name, product"` is not - * supported. - * - * Generated from protobuf field string order_by = 5 [(.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. If unspecified, at most 50 resource groups will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. If unspecified, at most 50 resource groups will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous - * `QueryDatabaseResourceGroupsRequest` call. Provide this to retrieve the - * subsequent page. All parameters except page_token should match the - * parameters in the call that provided the page page token. - * - * Generated from protobuf field string page_token = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous - * `QueryDatabaseResourceGroupsRequest` call. Provide this to retrieve the - * subsequent page. All parameters except page_token should match the - * parameters in the call that provided the page page token. - * - * Generated from protobuf field string page_token = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryDatabaseResourceGroupsResponse.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryDatabaseResourceGroupsResponse.php deleted file mode 100644 index 371fefb7462..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryDatabaseResourceGroupsResponse.php +++ /dev/null @@ -1,144 +0,0 @@ -google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsResponse - */ -class QueryDatabaseResourceGroupsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of database resource groups that pass the filter. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.DatabaseResourceGroup resource_groups = 1; - */ - private $resource_groups; - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DatabaseCenter\V1beta\DatabaseResourceGroup>|\Google\Protobuf\Internal\RepeatedField $resource_groups - * List of database resource groups that pass the filter. - * @type string $next_page_token - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * List of database resource groups that pass the filter. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.DatabaseResourceGroup resource_groups = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResourceGroups() - { - return $this->resource_groups; - } - - /** - * List of database resource groups that pass the filter. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.DatabaseResourceGroup resource_groups = 1; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\DatabaseResourceGroup>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResourceGroups($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\DatabaseResourceGroup::class); - $this->resource_groups = $arr; - - return $this; - } - - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * 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; - } - - /** - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryIssuesRequest.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryIssuesRequest.php deleted file mode 100644 index 156d75aae03..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryIssuesRequest.php +++ /dev/null @@ -1,359 +0,0 @@ -google.cloud.databasecenter.v1beta.QueryIssuesRequest - */ -class QueryIssuesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent can be a project, a folder, or an organization. The list - * is limited to the one attached to resources within the `scope` that a user - * has access to. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $parent = ''; - /** - * Optional. - * Supported fields are: - * 'product', - * `location`, - * `issue_severity`, - * 'tags', - * 'labels', - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Filters based on signal and product. The filter list will be ORed - * across pairs and ANDed within a signal and products pair. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalProductsFilters signal_products_filters = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $signal_products_filters; - /** - * Optional. Following fields are sortable: - * SignalType - * Product - * Location - * IssueSeverity - * The default order is ascending. Add "DESC" after the field name to indicate - * descending order. Add "ASC" after the field name to indicate ascending - * order. It only supports a single field at a time. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. If unspecified, at most 50 issues will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `QueryIssues` call. - * Provide this to retrieve the subsequent page. - * All parameters except page size should match the parameters used in the - * call that provided the page token. - * - * Generated from protobuf field string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. Parent can be a project, a folder, or an organization. The list - * is limited to the one attached to resources within the `scope` that a user - * has access to. - * - * The allowed values are: - * - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * @return \Google\Cloud\DatabaseCenter\V1beta\QueryIssuesRequest - * - * @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 can be a project, a folder, or an organization. The list - * is limited to the one attached to resources within the `scope` that a user - * has access to. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * @type string $filter - * Optional. - * Supported fields are: - * 'product', - * `location`, - * `issue_severity`, - * 'tags', - * 'labels', - * @type array<\Google\Cloud\DatabaseCenter\V1beta\SignalProductsFilters>|\Google\Protobuf\Internal\RepeatedField $signal_products_filters - * Optional. Filters based on signal and product. The filter list will be ORed - * across pairs and ANDed within a signal and products pair. - * @type string $order_by - * Optional. Following fields are sortable: - * SignalType - * Product - * Location - * IssueSeverity - * The default order is ascending. Add "DESC" after the field name to indicate - * descending order. Add "ASC" after the field name to indicate ascending - * order. It only supports a single field at a time. - * @type int $page_size - * Optional. If unspecified, at most 50 issues will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `QueryIssues` call. - * Provide this to retrieve the subsequent page. - * All parameters except page size should match the parameters used in the - * call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent can be a project, a folder, or an organization. The list - * is limited to the one attached to resources within the `scope` that a user - * has access to. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Parent can be a project, a folder, or an organization. The list - * is limited to the one attached to resources within the `scope` that a user - * has access to. - * The allowed values are: - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. - * Supported fields are: - * 'product', - * `location`, - * `issue_severity`, - * 'tags', - * 'labels', - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. - * Supported fields are: - * 'product', - * `location`, - * `issue_severity`, - * 'tags', - * 'labels', - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Filters based on signal and product. The filter list will be ORed - * across pairs and ANDed within a signal and products pair. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalProductsFilters signal_products_filters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSignalProductsFilters() - { - return $this->signal_products_filters; - } - - /** - * Optional. Filters based on signal and product. The filter list will be ORed - * across pairs and ANDed within a signal and products pair. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalProductsFilters signal_products_filters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\SignalProductsFilters>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSignalProductsFilters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\SignalProductsFilters::class); - $this->signal_products_filters = $arr; - - return $this; - } - - /** - * Optional. Following fields are sortable: - * SignalType - * Product - * Location - * IssueSeverity - * The default order is ascending. Add "DESC" after the field name to indicate - * descending order. Add "ASC" after the field name to indicate ascending - * order. It only supports a single field at a time. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Following fields are sortable: - * SignalType - * Product - * Location - * IssueSeverity - * The default order is ascending. Add "DESC" after the field name to indicate - * descending order. Add "ASC" after the field name to indicate ascending - * order. It only supports a single field at a time. - * - * 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. If unspecified, at most 50 issues will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. If unspecified, at most 50 issues will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `QueryIssues` call. - * Provide this to retrieve the subsequent page. - * All parameters except page size should match the parameters used in the - * call that provided the page token. - * - * Generated from protobuf field string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `QueryIssues` call. - * Provide this to retrieve the subsequent page. - * All parameters except page size should match the parameters used in the - * call that provided the page token. - * - * Generated from protobuf field string page_token = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryIssuesResponse.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryIssuesResponse.php deleted file mode 100644 index ef6bfe5fdbd..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryIssuesResponse.php +++ /dev/null @@ -1,143 +0,0 @@ -google.cloud.databasecenter.v1beta.QueryIssuesResponse - */ -class QueryIssuesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of issues and resource details. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1; - */ - private $resource_issues; - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DatabaseCenter\V1beta\DatabaseResourceIssue>|\Google\Protobuf\Internal\RepeatedField $resource_issues - * List of issues and resource details. - * @type string $next_page_token - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * List of issues and resource details. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResourceIssues() - { - return $this->resource_issues; - } - - /** - * List of issues and resource details. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.DatabaseResourceIssue resource_issues = 1; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\DatabaseResourceIssue>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResourceIssues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\DatabaseResourceIssue::class); - $this->resource_issues = $arr; - - return $this; - } - - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * 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; - } - - /** - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryProductsRequest.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryProductsRequest.php deleted file mode 100644 index d2eef2b02bd..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryProductsRequest.php +++ /dev/null @@ -1,203 +0,0 @@ -google.cloud.databasecenter.v1beta.QueryProductsRequest - */ -class QueryProductsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent can be a project, a folder, or an organization. - * The allowed values are: - * * projects/{PROJECT_ID}/locations/{LOCATION} - * (e.g.,"projects/foo-bar/locations/us-central1") - * * projects/{PROJECT_NUMBER}/locations/{LOCATION} - * (e.g.,"projects/12345678/locations/us-central1") - * * folders/{FOLDER_NUMBER}/locations/{LOCATION} - * (e.g.,"folders/1234567/locations/us-central1") - * * organizations/{ORGANIZATION_NUMBER}/locations/{LOCATION} - * (e.g.,"organizations/123456/locations/us-central1") - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $parent = ''; - /** - * Optional. If unspecified, at most 50 products will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListLocations` call. - * Provide this to retrieve the subsequent page. - * All other parameters except page size should match the call that provided - * the page page token. - * - * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent can be a project, a folder, or an organization. - * The allowed values are: - * * projects/{PROJECT_ID}/locations/{LOCATION} - * (e.g.,"projects/foo-bar/locations/us-central1") - * * projects/{PROJECT_NUMBER}/locations/{LOCATION} - * (e.g.,"projects/12345678/locations/us-central1") - * * folders/{FOLDER_NUMBER}/locations/{LOCATION} - * (e.g.,"folders/1234567/locations/us-central1") - * * organizations/{ORGANIZATION_NUMBER}/locations/{LOCATION} - * (e.g.,"organizations/123456/locations/us-central1") - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * @type int $page_size - * Optional. If unspecified, at most 50 products will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListLocations` call. - * Provide this to retrieve the subsequent page. - * All other parameters except page size should match the call that provided - * the page page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent can be a project, a folder, or an organization. - * The allowed values are: - * * projects/{PROJECT_ID}/locations/{LOCATION} - * (e.g.,"projects/foo-bar/locations/us-central1") - * * projects/{PROJECT_NUMBER}/locations/{LOCATION} - * (e.g.,"projects/12345678/locations/us-central1") - * * folders/{FOLDER_NUMBER}/locations/{LOCATION} - * (e.g.,"folders/1234567/locations/us-central1") - * * organizations/{ORGANIZATION_NUMBER}/locations/{LOCATION} - * (e.g.,"organizations/123456/locations/us-central1") - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Parent can be a project, a folder, or an organization. - * The allowed values are: - * * projects/{PROJECT_ID}/locations/{LOCATION} - * (e.g.,"projects/foo-bar/locations/us-central1") - * * projects/{PROJECT_NUMBER}/locations/{LOCATION} - * (e.g.,"projects/12345678/locations/us-central1") - * * folders/{FOLDER_NUMBER}/locations/{LOCATION} - * (e.g.,"folders/1234567/locations/us-central1") - * * organizations/{ORGANIZATION_NUMBER}/locations/{LOCATION} - * (e.g.,"organizations/123456/locations/us-central1") - * * projects/{PROJECT_ID} (e.g., "projects/foo-bar") - * * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") - * * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") - * * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") - * - * Generated from protobuf field string parent = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. If unspecified, at most 50 products will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. If unspecified, at most 50 products will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListLocations` call. - * Provide this to retrieve the subsequent page. - * All other parameters except page size should match the call that provided - * the page page token. - * - * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListLocations` call. - * Provide this to retrieve the subsequent page. - * All other parameters except page size should match the call that provided - * the page page token. - * - * 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; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryProductsResponse.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryProductsResponse.php deleted file mode 100644 index ef9d081f1c9..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/QueryProductsResponse.php +++ /dev/null @@ -1,143 +0,0 @@ -google.cloud.databasecenter.v1beta.QueryProductsResponse - */ -class QueryProductsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of database products returned. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Product products = 1; - */ - private $products; - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DatabaseCenter\V1beta\Product>|\Google\Protobuf\Internal\RepeatedField $products - * List of database products returned. - * @type string $next_page_token - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * List of database products returned. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Product products = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getProducts() - { - return $this->products; - } - - /** - * List of database products returned. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Product products = 1; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\Product>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setProducts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\Product::class); - $this->products = $arr; - - return $this; - } - - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token that can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages - * - * 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; - } - - /** - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Unordered list. List of unreachable regions from where data could not be - * retrieved. - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/RecommendationInfo.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/RecommendationInfo.php deleted file mode 100644 index 59f583c6008..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/RecommendationInfo.php +++ /dev/null @@ -1,179 +0,0 @@ -google.cloud.databasecenter.v1beta.RecommendationInfo - */ -class RecommendationInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Name of recommendation. - * Examples: - * organizations/1234/locations/us-central1/recommenders/google.cloudsql.instance.PerformanceRecommender/recommendations/9876 - * - * Generated from protobuf field string recommender = 1; - */ - protected $recommender = ''; - /** - * ID of recommender. - * Examples: "google.cloudsql.instance.PerformanceRecommender" - * - * Generated from protobuf field string recommender_id = 2; - */ - protected $recommender_id = ''; - /** - * Contains an identifier for a subtype of recommendations produced for the - * same recommender. Subtype is a function of content and impact, meaning a - * new subtype might be added when significant changes to `content` or - * `primary_impact.category` are introduced. See the Recommenders section - * to see a list of subtypes for a given Recommender. - * Examples: - * For recommender = "google.cloudsql.instance.PerformanceRecommender", - * recommender_subtype can be - * "MYSQL_HIGH_NUMBER_OF_OPEN_TABLES_BEST_PRACTICE"/"POSTGRES_HIGH_TRANSACTION_ID_UTILIZATION_BEST_PRACTICE" - * - * Generated from protobuf field string recommender_subtype = 3; - */ - protected $recommender_subtype = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $recommender - * Name of recommendation. - * Examples: - * organizations/1234/locations/us-central1/recommenders/google.cloudsql.instance.PerformanceRecommender/recommendations/9876 - * @type string $recommender_id - * ID of recommender. - * Examples: "google.cloudsql.instance.PerformanceRecommender" - * @type string $recommender_subtype - * Contains an identifier for a subtype of recommendations produced for the - * same recommender. Subtype is a function of content and impact, meaning a - * new subtype might be added when significant changes to `content` or - * `primary_impact.category` are introduced. See the Recommenders section - * to see a list of subtypes for a given Recommender. - * Examples: - * For recommender = "google.cloudsql.instance.PerformanceRecommender", - * recommender_subtype can be - * "MYSQL_HIGH_NUMBER_OF_OPEN_TABLES_BEST_PRACTICE"/"POSTGRES_HIGH_TRANSACTION_ID_UTILIZATION_BEST_PRACTICE" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); - parent::__construct($data); - } - - /** - * Name of recommendation. - * Examples: - * organizations/1234/locations/us-central1/recommenders/google.cloudsql.instance.PerformanceRecommender/recommendations/9876 - * - * Generated from protobuf field string recommender = 1; - * @return string - */ - public function getRecommender() - { - return $this->recommender; - } - - /** - * Name of recommendation. - * Examples: - * organizations/1234/locations/us-central1/recommenders/google.cloudsql.instance.PerformanceRecommender/recommendations/9876 - * - * Generated from protobuf field string recommender = 1; - * @param string $var - * @return $this - */ - public function setRecommender($var) - { - GPBUtil::checkString($var, True); - $this->recommender = $var; - - return $this; - } - - /** - * ID of recommender. - * Examples: "google.cloudsql.instance.PerformanceRecommender" - * - * Generated from protobuf field string recommender_id = 2; - * @return string - */ - public function getRecommenderId() - { - return $this->recommender_id; - } - - /** - * ID of recommender. - * Examples: "google.cloudsql.instance.PerformanceRecommender" - * - * Generated from protobuf field string recommender_id = 2; - * @param string $var - * @return $this - */ - public function setRecommenderId($var) - { - GPBUtil::checkString($var, True); - $this->recommender_id = $var; - - return $this; - } - - /** - * Contains an identifier for a subtype of recommendations produced for the - * same recommender. Subtype is a function of content and impact, meaning a - * new subtype might be added when significant changes to `content` or - * `primary_impact.category` are introduced. See the Recommenders section - * to see a list of subtypes for a given Recommender. - * Examples: - * For recommender = "google.cloudsql.instance.PerformanceRecommender", - * recommender_subtype can be - * "MYSQL_HIGH_NUMBER_OF_OPEN_TABLES_BEST_PRACTICE"/"POSTGRES_HIGH_TRANSACTION_ID_UTILIZATION_BEST_PRACTICE" - * - * Generated from protobuf field string recommender_subtype = 3; - * @return string - */ - public function getRecommenderSubtype() - { - return $this->recommender_subtype; - } - - /** - * Contains an identifier for a subtype of recommendations produced for the - * same recommender. Subtype is a function of content and impact, meaning a - * new subtype might be added when significant changes to `content` or - * `primary_impact.category` are introduced. See the Recommenders section - * to see a list of subtypes for a given Recommender. - * Examples: - * For recommender = "google.cloudsql.instance.PerformanceRecommender", - * recommender_subtype can be - * "MYSQL_HIGH_NUMBER_OF_OPEN_TABLES_BEST_PRACTICE"/"POSTGRES_HIGH_TRANSACTION_ID_UTILIZATION_BEST_PRACTICE" - * - * Generated from protobuf field string recommender_subtype = 3; - * @param string $var - * @return $this - */ - public function setRecommenderSubtype($var) - { - GPBUtil::checkString($var, True); - $this->recommender_subtype = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/RegulatoryStandard.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/RegulatoryStandard.php deleted file mode 100644 index f8e5afc848a..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/RegulatoryStandard.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.databasecenter.v1beta.RegulatoryStandard - */ -class RegulatoryStandard extends \Google\Protobuf\Internal\Message -{ - /** - * Name of industry compliance standards, such as such as CIS, PCI, and - * OWASP. - * - * Generated from protobuf field string standard = 1; - */ - protected $standard = ''; - /** - * Version of the standard or benchmark, for example, 1.1. - * - * Generated from protobuf field string version = 2; - */ - protected $version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $standard - * Name of industry compliance standards, such as such as CIS, PCI, and - * OWASP. - * @type string $version - * Version of the standard or benchmark, for example, 1.1. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); - parent::__construct($data); - } - - /** - * Name of industry compliance standards, such as such as CIS, PCI, and - * OWASP. - * - * Generated from protobuf field string standard = 1; - * @return string - */ - public function getStandard() - { - return $this->standard; - } - - /** - * Name of industry compliance standards, such as such as CIS, PCI, and - * OWASP. - * - * Generated from protobuf field string standard = 1; - * @param string $var - * @return $this - */ - public function setStandard($var) - { - GPBUtil::checkString($var, True); - $this->standard = $var; - - return $this; - } - - /** - * Version of the standard or benchmark, for example, 1.1. - * - * Generated from protobuf field string version = 2; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Version of the standard or benchmark, for example, 1.1. - * - * 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; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceCategory.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceCategory.php deleted file mode 100644 index 1e62a3b8b66..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceCategory.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.databasecenter.v1beta.ResourceCategory - */ -class ResourceCategory -{ - /** - * Unspecified. - * - * Generated from protobuf enum RESOURCE_CATEGORY_UNSPECIFIED = 0; - */ - const RESOURCE_CATEGORY_UNSPECIFIED = 0; - /** - * A resource that is an Instance. - * - * Generated from protobuf enum INSTANCE = 1; - */ - const INSTANCE = 1; - /** - * A resource that is a Cluster. - * - * Generated from protobuf enum CLUSTER = 2; - */ - const CLUSTER = 2; - /** - * A resource that is a Database. - * - * Generated from protobuf enum DATABASE = 3; - */ - const DATABASE = 3; - - private static $valueToName = [ - self::RESOURCE_CATEGORY_UNSPECIFIED => 'RESOURCE_CATEGORY_UNSPECIFIED', - self::INSTANCE => 'INSTANCE', - self::CLUSTER => 'CLUSTER', - self::DATABASE => 'DATABASE', - ]; - - 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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceDetails.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceDetails.php deleted file mode 100644 index 2b35ea8a5cd..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceDetails.php +++ /dev/null @@ -1,184 +0,0 @@ -google.cloud.databasecenter.v1beta.ResourceDetails - */ -class ResourceDetails extends \Google\Protobuf\Internal\Message -{ - /** - * Full resource name of the resource. - * - * Generated from protobuf field string full_resource_name = 1; - */ - protected $full_resource_name = ''; - /** - * Specifies where the resource is created. For Google Cloud resources, it is - * the full name of the project. - * - * Generated from protobuf field string container = 2; - */ - protected $container = ''; - /** - * Product type of the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Product product = 3; - */ - protected $product = null; - /** - * Location of the resource. - * - * Generated from protobuf field string location = 4; - */ - protected $location = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $full_resource_name - * Full resource name of the resource. - * @type string $container - * Specifies where the resource is created. For Google Cloud resources, it is - * the full name of the project. - * @type \Google\Cloud\DatabaseCenter\V1beta\Product $product - * Product type of the resource. - * @type string $location - * Location of the resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Full resource name of the resource. - * - * Generated from protobuf field string full_resource_name = 1; - * @return string - */ - public function getFullResourceName() - { - return $this->full_resource_name; - } - - /** - * Full resource name of the resource. - * - * Generated from protobuf field string full_resource_name = 1; - * @param string $var - * @return $this - */ - public function setFullResourceName($var) - { - GPBUtil::checkString($var, True); - $this->full_resource_name = $var; - - return $this; - } - - /** - * Specifies where the resource is created. For Google Cloud resources, it is - * the full name of the project. - * - * Generated from protobuf field string container = 2; - * @return string - */ - public function getContainer() - { - return $this->container; - } - - /** - * Specifies where the resource is created. For Google Cloud resources, it is - * the full name of the project. - * - * Generated from protobuf field string container = 2; - * @param string $var - * @return $this - */ - public function setContainer($var) - { - GPBUtil::checkString($var, True); - $this->container = $var; - - return $this; - } - - /** - * Product type of the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Product product = 3; - * @return \Google\Cloud\DatabaseCenter\V1beta\Product|null - */ - public function getProduct() - { - return $this->product; - } - - public function hasProduct() - { - return isset($this->product); - } - - public function clearProduct() - { - unset($this->product); - } - - /** - * Product type of the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Product product = 3; - * @param \Google\Cloud\DatabaseCenter\V1beta\Product $var - * @return $this - */ - public function setProduct($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\Product::class); - $this->product = $var; - - return $this; - } - - /** - * Location of the resource. - * - * Generated from protobuf field string location = 4; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Location of the resource. - * - * Generated from protobuf field string location = 4; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceMaintenanceDenySchedule.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceMaintenanceDenySchedule.php deleted file mode 100644 index 5eb5aba10da..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceMaintenanceDenySchedule.php +++ /dev/null @@ -1,171 +0,0 @@ -google.cloud.databasecenter.v1beta.ResourceMaintenanceDenySchedule - */ -class ResourceMaintenanceDenySchedule extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The start date of the deny maintenance period. - * - * Generated from protobuf field .google.type.Date start_date = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $start_date = null; - /** - * Optional. Deny period end date. - * - * Generated from protobuf field .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $end_date = null; - /** - * Optional. Time in UTC when the deny period starts on start_date and ends on - * end_date. - * - * Generated from protobuf field .google.type.TimeOfDay time = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Type\Date $start_date - * Optional. The start date of the deny maintenance period. - * @type \Google\Type\Date $end_date - * Optional. Deny period end date. - * @type \Google\Type\TimeOfDay $time - * Optional. Time in UTC when the deny period starts on start_date and ends on - * end_date. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Maintenance::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The start date of the deny maintenance period. - * - * Generated from protobuf field .google.type.Date start_date = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Type\Date|null - */ - public function getStartDate() - { - return $this->start_date; - } - - public function hasStartDate() - { - return isset($this->start_date); - } - - public function clearStartDate() - { - unset($this->start_date); - } - - /** - * Optional. The start date of the deny maintenance period. - * - * Generated from protobuf field .google.type.Date start_date = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Type\Date $var - * @return $this - */ - public function setStartDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->start_date = $var; - - return $this; - } - - /** - * Optional. Deny period end date. - * - * Generated from protobuf field .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Type\Date|null - */ - public function getEndDate() - { - return $this->end_date; - } - - public function hasEndDate() - { - return isset($this->end_date); - } - - public function clearEndDate() - { - unset($this->end_date); - } - - /** - * Optional. Deny period end date. - * - * Generated from protobuf field .google.type.Date end_date = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Type\Date $var - * @return $this - */ - public function setEndDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->end_date = $var; - - return $this; - } - - /** - * Optional. Time in UTC when the deny period starts on start_date and ends on - * end_date. - * - * Generated from protobuf field .google.type.TimeOfDay time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Type\TimeOfDay|null - */ - public function getTime() - { - return $this->time; - } - - public function hasTime() - { - return isset($this->time); - } - - public function clearTime() - { - unset($this->time); - } - - /** - * Optional. Time in UTC when the deny period starts on start_date and ends on - * end_date. - * - * Generated from protobuf field .google.type.TimeOfDay time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Type\TimeOfDay $var - * @return $this - */ - public function setTime($var) - { - GPBUtil::checkMessage($var, \Google\Type\TimeOfDay::class); - $this->time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceMaintenanceSchedule.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceMaintenanceSchedule.php deleted file mode 100644 index f77366e5832..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceMaintenanceSchedule.php +++ /dev/null @@ -1,174 +0,0 @@ -google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule - */ -class ResourceMaintenanceSchedule extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Preferred time to start the maintenance operation on the - * specified day. - * - * Generated from protobuf field .google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $start_time = null; - /** - * Optional. Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, - * etc. - * - * Generated from protobuf field .google.type.DayOfWeek day = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $day = 0; - /** - * Optional. Phase of the maintenance window. This is to capture order of - * maintenance. For example, for Cloud SQL resources, this can be used to - * capture if the maintenance window is in Week1, Week2, Week5, etc. Non - * production resources are usually part of early phase. - * For more details, refer to Cloud SQL resources - - * https://cloud.google.com/sql/docs/mysql/maintenance - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Phase phase = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $phase = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Type\TimeOfDay $start_time - * Optional. Preferred time to start the maintenance operation on the - * specified day. - * @type int $day - * Optional. Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, - * etc. - * @type int $phase - * Optional. Phase of the maintenance window. This is to capture order of - * maintenance. For example, for Cloud SQL resources, this can be used to - * capture if the maintenance window is in Week1, Week2, Week5, etc. Non - * production resources are usually part of early phase. - * For more details, refer to Cloud SQL resources - - * https://cloud.google.com/sql/docs/mysql/maintenance - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Maintenance::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Preferred time to start the maintenance operation on the - * specified day. - * - * Generated from protobuf field .google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Type\TimeOfDay|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Optional. Preferred time to start the maintenance operation on the - * specified day. - * - * Generated from protobuf field .google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Type\TimeOfDay $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Type\TimeOfDay::class); - $this->start_time = $var; - - return $this; - } - - /** - * Optional. Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, - * etc. - * - * Generated from protobuf field .google.type.DayOfWeek day = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getDay() - { - return $this->day; - } - - /** - * Optional. Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, - * etc. - * - * Generated from protobuf field .google.type.DayOfWeek day = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setDay($var) - { - GPBUtil::checkEnum($var, \Google\Type\DayOfWeek::class); - $this->day = $var; - - return $this; - } - - /** - * Optional. Phase of the maintenance window. This is to capture order of - * maintenance. For example, for Cloud SQL resources, this can be used to - * capture if the maintenance window is in Week1, Week2, Week5, etc. Non - * production resources are usually part of early phase. - * For more details, refer to Cloud SQL resources - - * https://cloud.google.com/sql/docs/mysql/maintenance - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Phase phase = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPhase() - { - return $this->phase; - } - - /** - * Optional. Phase of the maintenance window. This is to capture order of - * maintenance. For example, for Cloud SQL resources, this can be used to - * capture if the maintenance window is in Week1, Week2, Week5, etc. Non - * production resources are usually part of early phase. - * For more details, refer to Cloud SQL resources - - * https://cloud.google.com/sql/docs/mysql/maintenance - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Phase phase = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPhase($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\Phase::class); - $this->phase = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceSuspensionInfo.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceSuspensionInfo.php deleted file mode 100644 index 49c82220b5e..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/ResourceSuspensionInfo.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.databasecenter.v1beta.ResourceSuspensionInfo - */ -class ResourceSuspensionInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Is resource suspended. - * - * Generated from protobuf field bool resource_suspended = 1; - */ - protected $resource_suspended = false; - /** - * Suspension reason for the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SuspensionReason suspension_reason = 2; - */ - protected $suspension_reason = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $resource_suspended - * Is resource suspended. - * @type int $suspension_reason - * Suspension reason for the resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); - parent::__construct($data); - } - - /** - * Is resource suspended. - * - * Generated from protobuf field bool resource_suspended = 1; - * @return bool - */ - public function getResourceSuspended() - { - return $this->resource_suspended; - } - - /** - * Is resource suspended. - * - * Generated from protobuf field bool resource_suspended = 1; - * @param bool $var - * @return $this - */ - public function setResourceSuspended($var) - { - GPBUtil::checkBool($var); - $this->resource_suspended = $var; - - return $this; - } - - /** - * Suspension reason for the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SuspensionReason suspension_reason = 2; - * @return int - */ - public function getSuspensionReason() - { - return $this->suspension_reason; - } - - /** - * Suspension reason for the resource. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SuspensionReason suspension_reason = 2; - * @param int $var - * @return $this - */ - public function setSuspensionReason($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\SuspensionReason::class); - $this->suspension_reason = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/RetentionSettingsInfo.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/RetentionSettingsInfo.php deleted file mode 100644 index a3de0d106ea..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/RetentionSettingsInfo.php +++ /dev/null @@ -1,212 +0,0 @@ -google.cloud.databasecenter.v1beta.RetentionSettingsInfo - */ -class RetentionSettingsInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Sub resource details associated with the backup configuration. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResource sub_resource = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $sub_resource = null; - protected $retention; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Int32Value $quantity_based_retention - * Number of backups that will be retained. - * @type \Google\Protobuf\Duration $duration_based_retention - * Duration based retention period i.e. 172800 seconds (2 days) - * @type \Google\Protobuf\Timestamp $timestamp_based_retention_time - * Timestamp based retention period i.e. till 2024-05-01T00:00:00Z - * @type \Google\Cloud\DatabaseCenter\V1beta\SubResource $sub_resource - * Optional. Sub resource details associated with the backup configuration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); - parent::__construct($data); - } - - /** - * Number of backups that will be retained. - * - * Generated from protobuf field .google.protobuf.Int32Value quantity_based_retention = 3; - * @return \Google\Protobuf\Int32Value|null - */ - public function getQuantityBasedRetention() - { - return $this->readOneof(3); - } - - public function hasQuantityBasedRetention() - { - return $this->hasOneof(3); - } - - /** - * Returns the unboxed value from getQuantityBasedRetention() - - * Number of backups that will be retained. - * - * Generated from protobuf field .google.protobuf.Int32Value quantity_based_retention = 3; - * @return int|null - */ - public function getQuantityBasedRetentionUnwrapped() - { - return $this->readWrapperValue("quantity_based_retention"); - } - - /** - * Number of backups that will be retained. - * - * Generated from protobuf field .google.protobuf.Int32Value quantity_based_retention = 3; - * @param \Google\Protobuf\Int32Value $var - * @return $this - */ - public function setQuantityBasedRetention($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. - - * Number of backups that will be retained. - * - * Generated from protobuf field .google.protobuf.Int32Value quantity_based_retention = 3; - * @param int|null $var - * @return $this - */ - public function setQuantityBasedRetentionUnwrapped($var) - { - $this->writeWrapperValue("quantity_based_retention", $var); - return $this;} - - /** - * Duration based retention period i.e. 172800 seconds (2 days) - * - * Generated from protobuf field .google.protobuf.Duration duration_based_retention = 5; - * @return \Google\Protobuf\Duration|null - */ - public function getDurationBasedRetention() - { - return $this->readOneof(5); - } - - public function hasDurationBasedRetention() - { - return $this->hasOneof(5); - } - - /** - * Duration based retention period i.e. 172800 seconds (2 days) - * - * Generated from protobuf field .google.protobuf.Duration duration_based_retention = 5; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setDurationBasedRetention($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Timestamp based retention period i.e. till 2024-05-01T00:00:00Z - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp_based_retention_time = 6; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTimestampBasedRetentionTime() - { - return $this->readOneof(6); - } - - public function hasTimestampBasedRetentionTime() - { - return $this->hasOneof(6); - } - - /** - * Timestamp based retention period i.e. till 2024-05-01T00:00:00Z - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp_based_retention_time = 6; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTimestampBasedRetentionTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Optional. Sub resource details associated with the backup configuration. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResource sub_resource = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\DatabaseCenter\V1beta\SubResource|null - */ - public function getSubResource() - { - return $this->sub_resource; - } - - public function hasSubResource() - { - return isset($this->sub_resource); - } - - public function clearSubResource() - { - unset($this->sub_resource); - } - - /** - * Optional. Sub resource details associated with the backup configuration. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SubResource sub_resource = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\DatabaseCenter\V1beta\SubResource $var - * @return $this - */ - public function setSubResource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\SubResource::class); - $this->sub_resource = $var; - - return $this; - } - - /** - * @return string - */ - public function getRetention() - { - return $this->whichOneof("retention"); - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SCCInfo.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SCCInfo.php deleted file mode 100644 index 528a6b075ca..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SCCInfo.php +++ /dev/null @@ -1,169 +0,0 @@ -google.cloud.databasecenter.v1beta.SCCInfo - */ -class SCCInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the signal. - * - * Generated from protobuf field string signal = 1; - */ - protected $signal = ''; - /** - * Name by which SCC calls this signal. - * - * Generated from protobuf field string category = 2; - */ - protected $category = ''; - /** - * Compliances that are associated with the signal. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.RegulatoryStandard regulatory_standards = 3; - */ - private $regulatory_standards; - /** - * External URI which points to a SCC page associated with the signal. - * - * Generated from protobuf field string external_uri = 4; - */ - protected $external_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $signal - * Name of the signal. - * @type string $category - * Name by which SCC calls this signal. - * @type array<\Google\Cloud\DatabaseCenter\V1beta\RegulatoryStandard>|\Google\Protobuf\Internal\RepeatedField $regulatory_standards - * Compliances that are associated with the signal. - * @type string $external_uri - * External URI which points to a SCC page associated with the signal. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); - parent::__construct($data); - } - - /** - * Name of the signal. - * - * Generated from protobuf field string signal = 1; - * @return string - */ - public function getSignal() - { - return $this->signal; - } - - /** - * Name of the signal. - * - * Generated from protobuf field string signal = 1; - * @param string $var - * @return $this - */ - public function setSignal($var) - { - GPBUtil::checkString($var, True); - $this->signal = $var; - - return $this; - } - - /** - * Name by which SCC calls this signal. - * - * Generated from protobuf field string category = 2; - * @return string - */ - public function getCategory() - { - return $this->category; - } - - /** - * Name by which SCC calls this signal. - * - * Generated from protobuf field string category = 2; - * @param string $var - * @return $this - */ - public function setCategory($var) - { - GPBUtil::checkString($var, True); - $this->category = $var; - - return $this; - } - - /** - * Compliances that are associated with the signal. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.RegulatoryStandard regulatory_standards = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRegulatoryStandards() - { - return $this->regulatory_standards; - } - - /** - * Compliances that are associated with the signal. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.RegulatoryStandard regulatory_standards = 3; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\RegulatoryStandard>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRegulatoryStandards($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\RegulatoryStandard::class); - $this->regulatory_standards = $arr; - - return $this; - } - - /** - * External URI which points to a SCC page associated with the signal. - * - * Generated from protobuf field string external_uri = 4; - * @return string - */ - public function getExternalUri() - { - return $this->external_uri; - } - - /** - * External URI which points to a SCC page associated with the signal. - * - * Generated from protobuf field string external_uri = 4; - * @param string $var - * @return $this - */ - public function setExternalUri($var) - { - GPBUtil::checkString($var, True); - $this->external_uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Signal.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Signal.php deleted file mode 100644 index 551aa670ecb..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Signal.php +++ /dev/null @@ -1,233 +0,0 @@ -google.cloud.databasecenter.v1beta.Signal - */ -class Signal extends \Google\Protobuf\Internal\Message -{ - /** - * Type of the signal. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 1; - */ - protected $signal_type = 0; - /** - * Status of the signal. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalStatus signal_status = 2; - */ - protected $signal_status = 0; - /** - * Additional information related to the signal. - * In the case of composite signals, this field encapsulates details - * associated with granular signals, having a signal status of "ISSUE"; - * signals with a status of "OK" are not included. - * For granular signals, it encompasses information relevant to the signal, - * regardless of the signal status. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.AdditionalDetail additional_details = 3; - */ - private $additional_details; - /** - * Severity of the issue. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.IssueSeverity issue_severity = 4; - */ - protected $issue_severity = 0; - /** - * Timestamp when the issue was created (when signal status is ISSUE). - * - * Generated from protobuf field .google.protobuf.Timestamp issue_create_time = 5; - */ - protected $issue_create_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $signal_type - * Type of the signal. - * @type int $signal_status - * Status of the signal. - * @type array<\Google\Cloud\DatabaseCenter\V1beta\AdditionalDetail>|\Google\Protobuf\Internal\RepeatedField $additional_details - * Additional information related to the signal. - * In the case of composite signals, this field encapsulates details - * associated with granular signals, having a signal status of "ISSUE"; - * signals with a status of "OK" are not included. - * For granular signals, it encompasses information relevant to the signal, - * regardless of the signal status. - * @type int $issue_severity - * Severity of the issue. - * @type \Google\Protobuf\Timestamp $issue_create_time - * Timestamp when the issue was created (when signal status is ISSUE). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); - parent::__construct($data); - } - - /** - * Type of the signal. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 1; - * @return int - */ - public function getSignalType() - { - return $this->signal_type; - } - - /** - * Type of the signal. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 1; - * @param int $var - * @return $this - */ - public function setSignalType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\SignalType::class); - $this->signal_type = $var; - - return $this; - } - - /** - * Status of the signal. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalStatus signal_status = 2; - * @return int - */ - public function getSignalStatus() - { - return $this->signal_status; - } - - /** - * Status of the signal. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalStatus signal_status = 2; - * @param int $var - * @return $this - */ - public function setSignalStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\SignalStatus::class); - $this->signal_status = $var; - - return $this; - } - - /** - * Additional information related to the signal. - * In the case of composite signals, this field encapsulates details - * associated with granular signals, having a signal status of "ISSUE"; - * signals with a status of "OK" are not included. - * For granular signals, it encompasses information relevant to the signal, - * regardless of the signal status. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.AdditionalDetail additional_details = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAdditionalDetails() - { - return $this->additional_details; - } - - /** - * Additional information related to the signal. - * In the case of composite signals, this field encapsulates details - * associated with granular signals, having a signal status of "ISSUE"; - * signals with a status of "OK" are not included. - * For granular signals, it encompasses information relevant to the signal, - * regardless of the signal status. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.AdditionalDetail additional_details = 3; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\AdditionalDetail>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAdditionalDetails($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\AdditionalDetail::class); - $this->additional_details = $arr; - - return $this; - } - - /** - * Severity of the issue. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.IssueSeverity issue_severity = 4; - * @return int - */ - public function getIssueSeverity() - { - return $this->issue_severity; - } - - /** - * Severity of the issue. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.IssueSeverity issue_severity = 4; - * @param int $var - * @return $this - */ - public function setIssueSeverity($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\IssueSeverity::class); - $this->issue_severity = $var; - - return $this; - } - - /** - * Timestamp when the issue was created (when signal status is ISSUE). - * - * Generated from protobuf field .google.protobuf.Timestamp issue_create_time = 5; - * @return \Google\Protobuf\Timestamp|null - */ - public function getIssueCreateTime() - { - return $this->issue_create_time; - } - - public function hasIssueCreateTime() - { - return isset($this->issue_create_time); - } - - public function clearIssueCreateTime() - { - unset($this->issue_create_time); - } - - /** - * Timestamp when the issue was created (when signal status is ISSUE). - * - * Generated from protobuf field .google.protobuf.Timestamp issue_create_time = 5; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setIssueCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->issue_create_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalFilter.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalFilter.php deleted file mode 100644 index 6d25a56a3f9..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalFilter.php +++ /dev/null @@ -1,113 +0,0 @@ -google.cloud.databasecenter.v1beta.SignalFilter - */ -class SignalFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Represents the type of the Signal for which the filter is for. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $signal_type = 0; - /** - * Optional. Represents the status of the Signal for which the filter is for. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalStatus signal_status = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $signal_status = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $signal_type - * Optional. Represents the type of the Signal for which the filter is for. - * @type int $signal_status - * Optional. Represents the status of the Signal for which the filter is for. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Represents the type of the Signal for which the filter is for. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSignalType() - { - return $this->signal_type; - } - - /** - * Optional. Represents the type of the Signal for which the filter is for. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSignalType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\SignalType::class); - $this->signal_type = $var; - - return $this; - } - - /** - * Optional. Represents the status of the Signal for which the filter is for. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalStatus signal_status = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSignalStatus() - { - return $this->signal_status; - } - - /** - * Optional. Represents the status of the Signal for which the filter is for. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalStatus signal_status = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSignalStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\SignalStatus::class); - $this->signal_status = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalGroup.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalGroup.php deleted file mode 100644 index 0bc20d23a55..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalGroup.php +++ /dev/null @@ -1,147 +0,0 @@ -google.cloud.databasecenter.v1beta.SignalGroup - */ -class SignalGroup extends \Google\Protobuf\Internal\Message -{ - /** - * Title of a signal group corresponding to the request. - * - * Generated from protobuf field string display_name = 1; - */ - protected $display_name = ''; - /** - * When applied to a DatabaseResource represents count of issues associated - * with the resource. A signal is an issue when its SignalStatus field is - * set to SIGNAL_STATUS_ISSUE. - * - * Generated from protobuf field int32 issue_count = 2; - */ - protected $issue_count = 0; - /** - * List of signals present in the group and associated with the resource. - * Only applies to a DatabaseResource. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Signal signals = 3; - */ - private $signals; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Title of a signal group corresponding to the request. - * @type int $issue_count - * When applied to a DatabaseResource represents count of issues associated - * with the resource. A signal is an issue when its SignalStatus field is - * set to SIGNAL_STATUS_ISSUE. - * @type array<\Google\Cloud\DatabaseCenter\V1beta\Signal>|\Google\Protobuf\Internal\RepeatedField $signals - * List of signals present in the group and associated with the resource. - * Only applies to a DatabaseResource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); - parent::__construct($data); - } - - /** - * Title of a signal group corresponding to the request. - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Title of a signal group corresponding to the request. - * - * 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; - } - - /** - * When applied to a DatabaseResource represents count of issues associated - * with the resource. A signal is an issue when its SignalStatus field is - * set to SIGNAL_STATUS_ISSUE. - * - * Generated from protobuf field int32 issue_count = 2; - * @return int - */ - public function getIssueCount() - { - return $this->issue_count; - } - - /** - * When applied to a DatabaseResource represents count of issues associated - * with the resource. A signal is an issue when its SignalStatus field is - * set to SIGNAL_STATUS_ISSUE. - * - * Generated from protobuf field int32 issue_count = 2; - * @param int $var - * @return $this - */ - public function setIssueCount($var) - { - GPBUtil::checkInt32($var); - $this->issue_count = $var; - - return $this; - } - - /** - * List of signals present in the group and associated with the resource. - * Only applies to a DatabaseResource. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Signal signals = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSignals() - { - return $this->signals; - } - - /** - * List of signals present in the group and associated with the resource. - * Only applies to a DatabaseResource. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Signal signals = 3; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\Signal>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSignals($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\Signal::class); - $this->signals = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalProductsFilters.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalProductsFilters.php deleted file mode 100644 index 74fef9fb5f7..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalProductsFilters.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.databasecenter.v1beta.SignalProductsFilters - */ -class SignalProductsFilters extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The type of signal. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $signal_type = 0; - /** - * Optional. Product type of the resource. The version of the product will be - * ignored in filtering. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $products; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $signal_type - * Optional. The type of signal. - * @type array<\Google\Cloud\DatabaseCenter\V1beta\Product>|\Google\Protobuf\Internal\RepeatedField $products - * Optional. Product type of the resource. The version of the product will be - * ignored in filtering. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The type of signal. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getSignalType() - { - return $this->signal_type; - } - - /** - * Optional. The type of signal. - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setSignalType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DatabaseCenter\V1beta\SignalType::class); - $this->signal_type = $var; - - return $this; - } - - /** - * Optional. Product type of the resource. The version of the product will be - * ignored in filtering. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getProducts() - { - return $this->products; - } - - /** - * Optional. Product type of the resource. The version of the product will be - * ignored in filtering. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.Product products = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\DatabaseCenter\V1beta\Product>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setProducts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DatabaseCenter\V1beta\Product::class); - $this->products = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalSource.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalSource.php deleted file mode 100644 index 8fbd07a9964..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalSource.php +++ /dev/null @@ -1,76 +0,0 @@ -google.cloud.databasecenter.v1beta.SignalSource - */ -class SignalSource -{ - /** - * Unspecified. - * - * Generated from protobuf enum SIGNAL_SOURCE_UNSPECIFIED = 0; - */ - const SIGNAL_SOURCE_UNSPECIFIED = 0; - /** - * Signal comes from resource metadata. - * - * Generated from protobuf enum SIGNAL_SOURCE_RESOURCE_METADATA = 1; - */ - const SIGNAL_SOURCE_RESOURCE_METADATA = 1; - /** - * Signal comes from SCC findings. - * - * Generated from protobuf enum SIGNAL_SOURCE_SECURITY_FINDINGS = 2; - */ - const SIGNAL_SOURCE_SECURITY_FINDINGS = 2; - /** - * Signal comes from recommender hub. - * - * Generated from protobuf enum SIGNAL_SOURCE_RECOMMENDER = 3; - */ - const SIGNAL_SOURCE_RECOMMENDER = 3; - /** - * Signal comes from modern observability platform. - * - * Generated from protobuf enum SIGNAL_SOURCE_MODERN_OBSERVABILITY = 4; - */ - const SIGNAL_SOURCE_MODERN_OBSERVABILITY = 4; - - private static $valueToName = [ - self::SIGNAL_SOURCE_UNSPECIFIED => 'SIGNAL_SOURCE_UNSPECIFIED', - self::SIGNAL_SOURCE_RESOURCE_METADATA => 'SIGNAL_SOURCE_RESOURCE_METADATA', - self::SIGNAL_SOURCE_SECURITY_FINDINGS => 'SIGNAL_SOURCE_SECURITY_FINDINGS', - self::SIGNAL_SOURCE_RECOMMENDER => 'SIGNAL_SOURCE_RECOMMENDER', - self::SIGNAL_SOURCE_MODERN_OBSERVABILITY => 'SIGNAL_SOURCE_MODERN_OBSERVABILITY', - ]; - - 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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalStatus.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalStatus.php deleted file mode 100644 index 3ea2aa93cf6..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalStatus.php +++ /dev/null @@ -1,76 +0,0 @@ -google.cloud.databasecenter.v1beta.SignalStatus - */ -class SignalStatus -{ - /** - * Unspecified. - * - * Generated from protobuf enum SIGNAL_STATUS_UNSPECIFIED = 0; - */ - const SIGNAL_STATUS_UNSPECIFIED = 0; - /** - * Signal is not applicable to the resource. - * - * Generated from protobuf enum SIGNAL_STATUS_NOT_APPLICABLE = 1; - */ - const SIGNAL_STATUS_NOT_APPLICABLE = 1; - /** - * Signal is not an issue. - * - * Generated from protobuf enum SIGNAL_STATUS_OK = 2; - */ - const SIGNAL_STATUS_OK = 2; - /** - * Signal is an issue. - * - * Generated from protobuf enum SIGNAL_STATUS_ISSUE = 3; - */ - const SIGNAL_STATUS_ISSUE = 3; - /** - * Signal is not enabled for the resource. - * - * Generated from protobuf enum SIGNAL_STATUS_NOT_ENABLED = 4; - */ - const SIGNAL_STATUS_NOT_ENABLED = 4; - - private static $valueToName = [ - self::SIGNAL_STATUS_UNSPECIFIED => 'SIGNAL_STATUS_UNSPECIFIED', - self::SIGNAL_STATUS_NOT_APPLICABLE => 'SIGNAL_STATUS_NOT_APPLICABLE', - self::SIGNAL_STATUS_OK => 'SIGNAL_STATUS_OK', - self::SIGNAL_STATUS_ISSUE => 'SIGNAL_STATUS_ISSUE', - self::SIGNAL_STATUS_NOT_ENABLED => 'SIGNAL_STATUS_NOT_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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalType.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalType.php deleted file mode 100644 index 4688618ef12..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalType.php +++ /dev/null @@ -1,775 +0,0 @@ -google.cloud.databasecenter.v1beta.SignalType - */ -class SignalType -{ - /** - * Unspecified. - * - * Generated from protobuf enum SIGNAL_TYPE_UNSPECIFIED = 0; - */ - const SIGNAL_TYPE_UNSPECIFIED = 0; - /** - * Represents if a resource is protected by automatic failover. - * Checks for resources that are configured to have redundancy - * within a region that enables automatic failover. - * - * Generated from protobuf enum SIGNAL_TYPE_RESOURCE_FAILOVER_PROTECTED = 1; - */ - const SIGNAL_TYPE_RESOURCE_FAILOVER_PROTECTED = 1; - /** - * Represents if a group is replicating across regions. - * Checks for resources that are configured to have redundancy, - * and ongoing replication, across regions. - * - * Generated from protobuf enum SIGNAL_TYPE_GROUP_MULTIREGIONAL = 2; - */ - const SIGNAL_TYPE_GROUP_MULTIREGIONAL = 2; - /** - * Represents if a resource has an automated backup policy. - * - * Generated from protobuf enum SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY = 4; - */ - const SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY = 4; - /** - * Represents if a resources has a short backup retention period. - * - * Generated from protobuf enum SIGNAL_TYPE_SHORT_BACKUP_RETENTION = 5; - */ - const SIGNAL_TYPE_SHORT_BACKUP_RETENTION = 5; - /** - * Represents if the last backup of a resource failed. - * - * Generated from protobuf enum SIGNAL_TYPE_LAST_BACKUP_FAILED = 6; - */ - const SIGNAL_TYPE_LAST_BACKUP_FAILED = 6; - /** - * Represents if the last backup of a resource is older than some threshold - * value. - * - * Generated from protobuf enum SIGNAL_TYPE_LAST_BACKUP_OLD = 7; - */ - const SIGNAL_TYPE_LAST_BACKUP_OLD = 7; - /** - * Represents if a resource violates CIS Google Cloud Platform Foundation 2.0. - * - * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_2_0 = 8; - */ - const SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_2_0 = 8; - /** - * Represents if a resource violates CIS Google Cloud Platform Foundation 1.3. - * - * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_3 = 9; - */ - const SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_3 = 9; - /** - * Represents if a resource violates CIS Google Cloud Platform Foundation 1.2. - * - * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_2 = 10; - */ - const SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_2 = 10; - /** - * Represents if a resource violates CIS Google Cloud Platform Foundation 1.1. - * - * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_1 = 11; - */ - const SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_1 = 11; - /** - * Represents if a resource violates CIS Google Cloud Platform Foundation 1.0. - * - * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_0 = 12; - */ - const SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_0 = 12; - /** - * Represents if a resource violates CIS Controls 8.0. - * - * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_CIS_CONTROLS_V8_0 = 76; - */ - const SIGNAL_TYPE_VIOLATES_CIS_CONTROLS_V8_0 = 76; - /** - * Represents if a resource violates NIST 800-53. - * - * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_NIST_800_53 = 13; - */ - const SIGNAL_TYPE_VIOLATES_NIST_800_53 = 13; - /** - * Represents if a resource violates NIST 800-53 R5. - * - * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_NIST_800_53_R5 = 69; - */ - const SIGNAL_TYPE_VIOLATES_NIST_800_53_R5 = 69; - /** - * Represents if a resource violates NIST Cybersecurity Framework 1.0. - * - * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_NIST_CYBERSECURITY_FRAMEWORK_V1_0 = 72; - */ - const SIGNAL_TYPE_VIOLATES_NIST_CYBERSECURITY_FRAMEWORK_V1_0 = 72; - /** - * Represents if a resource violates ISO-27001. - * - * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_ISO_27001 = 14; - */ - const SIGNAL_TYPE_VIOLATES_ISO_27001 = 14; - /** - * Represents if a resource violates ISO 27001 2022. - * - * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_ISO_27001_V2022 = 70; - */ - const SIGNAL_TYPE_VIOLATES_ISO_27001_V2022 = 70; - /** - * Represents if a resource violates PCI-DSS v3.2.1. - * - * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_PCI_DSS_V3_2_1 = 15; - */ - const SIGNAL_TYPE_VIOLATES_PCI_DSS_V3_2_1 = 15; - /** - * Represents if a resource violates PCI-DSS v4.0. - * - * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_PCI_DSS_V4_0 = 71; - */ - const SIGNAL_TYPE_VIOLATES_PCI_DSS_V4_0 = 71; - /** - * Represents if a resource violates Cloud Controls Matrix v4.0. - * - * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_CLOUD_CONTROLS_MATRIX_V4 = 73; - */ - const SIGNAL_TYPE_VIOLATES_CLOUD_CONTROLS_MATRIX_V4 = 73; - /** - * Represents if a resource violates HIPAA. - * - * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_HIPAA = 74; - */ - const SIGNAL_TYPE_VIOLATES_HIPAA = 74; - /** - * Represents if a resource violates SOC2 v2017. - * - * Generated from protobuf enum SIGNAL_TYPE_VIOLATES_SOC2_V2017 = 75; - */ - const SIGNAL_TYPE_VIOLATES_SOC2_V2017 = 75; - /** - * Represents if log_checkpoints database flag for a Cloud SQL for PostgreSQL - * instance is not set to on. - * - * Generated from protobuf enum SIGNAL_TYPE_LOGS_NOT_OPTIMIZED_FOR_TROUBLESHOOTING = 16; - */ - const SIGNAL_TYPE_LOGS_NOT_OPTIMIZED_FOR_TROUBLESHOOTING = 16; - /** - * Represents if the log_duration database flag for a Cloud SQL for PostgreSQL - * instance is not set to on. - * - * Generated from protobuf enum SIGNAL_TYPE_QUERY_DURATIONS_NOT_LOGGED = 17; - */ - const SIGNAL_TYPE_QUERY_DURATIONS_NOT_LOGGED = 17; - /** - * Represents if the log_error_verbosity database flag for a Cloud SQL for - * PostgreSQL instance is not set to default or stricter (default or terse). - * - * Generated from protobuf enum SIGNAL_TYPE_VERBOSE_ERROR_LOGGING = 18; - */ - const SIGNAL_TYPE_VERBOSE_ERROR_LOGGING = 18; - /** - * Represents if the log_lock_waits database flag for a Cloud SQL for - * PostgreSQL instance is not set to on. - * - * Generated from protobuf enum SIGNAL_TYPE_QUERY_LOCK_WAITS_NOT_LOGGED = 19; - */ - const SIGNAL_TYPE_QUERY_LOCK_WAITS_NOT_LOGGED = 19; - /** - * Represents if the log_min_error_statement database flag for a Cloud SQL - * for PostgreSQL instance is not set appropriately. - * - * Generated from protobuf enum SIGNAL_TYPE_LOGGING_MOST_ERRORS = 20; - */ - const SIGNAL_TYPE_LOGGING_MOST_ERRORS = 20; - /** - * Represents if the log_min_error_statement database flag for a Cloud SQL - * for PostgreSQL instance does not have an appropriate severity level. - * - * Generated from protobuf enum SIGNAL_TYPE_LOGGING_ONLY_CRITICAL_ERRORS = 21; - */ - const SIGNAL_TYPE_LOGGING_ONLY_CRITICAL_ERRORS = 21; - /** - * Represents if the log_min_messages database flag for a Cloud SQL for - * PostgreSQL instance is not set to warning or another recommended value. - * - * Generated from protobuf enum SIGNAL_TYPE_MINIMAL_ERROR_LOGGING = 22; - */ - const SIGNAL_TYPE_MINIMAL_ERROR_LOGGING = 22; - /** - * Represents if the databaseFlags property of instance metadata for - * the log_executor_status field is set to on. - * - * Generated from protobuf enum SIGNAL_TYPE_QUERY_STATS_LOGGED = 23; - */ - const SIGNAL_TYPE_QUERY_STATS_LOGGED = 23; - /** - * Represents if the log_hostname database flag for a Cloud SQL for - * PostgreSQL instance is not set to off. - * - * Generated from protobuf enum SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_CLIENT_HOSTNAME = 24; - */ - const SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_CLIENT_HOSTNAME = 24; - /** - * Represents if the log_parser_stats database flag for a Cloud SQL for - * PostgreSQL instance is not set to off. - * - * Generated from protobuf enum SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_PARSER_STATS = 25; - */ - const SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_PARSER_STATS = 25; - /** - * Represents if the log_planner_stats database flag for a Cloud SQL for - * PostgreSQL instance is not set to off. - * - * Generated from protobuf enum SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_PLANNER_STATS = 26; - */ - const SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_PLANNER_STATS = 26; - /** - * Represents if the log_statement database flag for a Cloud SQL for - * PostgreSQL instance is not set to DDL (all data definition statements). - * - * Generated from protobuf enum SIGNAL_TYPE_NOT_LOGGING_ONLY_DDL_STATEMENTS = 27; - */ - const SIGNAL_TYPE_NOT_LOGGING_ONLY_DDL_STATEMENTS = 27; - /** - * Represents if the log_statement_stats database flag for a Cloud SQL for - * PostgreSQL instance is not set to off. - * - * Generated from protobuf enum SIGNAL_TYPE_LOGGING_QUERY_STATS = 28; - */ - const SIGNAL_TYPE_LOGGING_QUERY_STATS = 28; - /** - * Represents if the log_temp_files database flag for a Cloud SQL for - * PostgreSQL instance is not set to "0". (NOTE: 0 = ON) - * - * Generated from protobuf enum SIGNAL_TYPE_NOT_LOGGING_TEMPORARY_FILES = 29; - */ - const SIGNAL_TYPE_NOT_LOGGING_TEMPORARY_FILES = 29; - /** - * Represents if the user connections database flag for a Cloud SQL for SQL - * Server instance is configured. - * - * Generated from protobuf enum SIGNAL_TYPE_CONNECTION_MAX_NOT_CONFIGURED = 30; - */ - const SIGNAL_TYPE_CONNECTION_MAX_NOT_CONFIGURED = 30; - /** - * Represents if the user options database flag for Cloud SQL SQL Server - * instance is configured or not. - * - * Generated from protobuf enum SIGNAL_TYPE_USER_OPTIONS_CONFIGURED = 31; - */ - const SIGNAL_TYPE_USER_OPTIONS_CONFIGURED = 31; - /** - * Represents if a resource is exposed to public access. - * - * Generated from protobuf enum SIGNAL_TYPE_EXPOSED_TO_PUBLIC_ACCESS = 32; - */ - const SIGNAL_TYPE_EXPOSED_TO_PUBLIC_ACCESS = 32; - /** - * Represents if a resources requires all incoming connections to use SSL - * or not. - * - * Generated from protobuf enum SIGNAL_TYPE_UNENCRYPTED_CONNECTIONS = 33; - */ - const SIGNAL_TYPE_UNENCRYPTED_CONNECTIONS = 33; - /** - * Represents if a Cloud SQL database has a password configured for the - * root account or not. - * - * Generated from protobuf enum SIGNAL_TYPE_NO_ROOT_PASSWORD = 34; - */ - const SIGNAL_TYPE_NO_ROOT_PASSWORD = 34; - /** - * Represents if a Cloud SQL database has a weak password configured for the - * root account. - * - * Generated from protobuf enum SIGNAL_TYPE_WEAK_ROOT_PASSWORD = 35; - */ - const SIGNAL_TYPE_WEAK_ROOT_PASSWORD = 35; - /** - * Represents if a SQL database instance is not encrypted with - * customer-managed encryption keys (CMEK). - * - * Generated from protobuf enum SIGNAL_TYPE_ENCRYPTION_KEY_NOT_CUSTOMER_MANAGED = 36; - */ - const SIGNAL_TYPE_ENCRYPTION_KEY_NOT_CUSTOMER_MANAGED = 36; - /** - * Represents if The contained database authentication database flag for a - * Cloud SQL for SQL Server instance is not set to off. - * - * Generated from protobuf enum SIGNAL_TYPE_SERVER_AUTHENTICATION_NOT_REQUIRED = 37; - */ - const SIGNAL_TYPE_SERVER_AUTHENTICATION_NOT_REQUIRED = 37; - /** - * Represents if he external scripts enabled database flag for a Cloud SQL - * for SQL Server instance is not set to off. - * - * Generated from protobuf enum SIGNAL_TYPE_EXPOSED_TO_EXTERNAL_SCRIPTS = 39; - */ - const SIGNAL_TYPE_EXPOSED_TO_EXTERNAL_SCRIPTS = 39; - /** - * Represents if the local_infile database flag for a Cloud SQL for MySQL - * instance is not set to off. - * - * Generated from protobuf enum SIGNAL_TYPE_EXPOSED_TO_LOCAL_DATA_LOADS = 40; - */ - const SIGNAL_TYPE_EXPOSED_TO_LOCAL_DATA_LOADS = 40; - /** - * Represents if the log_connections database flag for a Cloud SQL for - * PostgreSQL instance is not set to on. - * - * Generated from protobuf enum SIGNAL_TYPE_CONNECTION_ATTEMPTS_NOT_LOGGED = 41; - */ - const SIGNAL_TYPE_CONNECTION_ATTEMPTS_NOT_LOGGED = 41; - /** - * Represents if the log_disconnections database flag for a Cloud SQL for - * PostgreSQL instance is not set to on. - * - * Generated from protobuf enum SIGNAL_TYPE_DISCONNECTIONS_NOT_LOGGED = 42; - */ - const SIGNAL_TYPE_DISCONNECTIONS_NOT_LOGGED = 42; - /** - * Represents if the log_min_duration_statement database flag for a Cloud SQL - * for PostgreSQL instance is not set to -1. - * - * Generated from protobuf enum SIGNAL_TYPE_LOGGING_EXCESSIVE_STATEMENT_INFO = 43; - */ - const SIGNAL_TYPE_LOGGING_EXCESSIVE_STATEMENT_INFO = 43; - /** - * Represents if the remote access database flag for a Cloud SQL for SQL - * Server instance is not set to off. - * - * Generated from protobuf enum SIGNAL_TYPE_EXPOSED_TO_REMOTE_ACCESS = 44; - */ - const SIGNAL_TYPE_EXPOSED_TO_REMOTE_ACCESS = 44; - /** - * Represents if the skip_show_database database flag for a Cloud SQL for - * MySQL instance is not set to on. - * - * Generated from protobuf enum SIGNAL_TYPE_DATABASE_NAMES_EXPOSED = 45; - */ - const SIGNAL_TYPE_DATABASE_NAMES_EXPOSED = 45; - /** - * Represents if the 3625 (trace flag) database flag for a Cloud SQL for - * SQL Server instance is not set to on. - * - * Generated from protobuf enum SIGNAL_TYPE_SENSITIVE_TRACE_INFO_NOT_MASKED = 46; - */ - const SIGNAL_TYPE_SENSITIVE_TRACE_INFO_NOT_MASKED = 46; - /** - * Represents if public IP is enabled. - * - * Generated from protobuf enum SIGNAL_TYPE_PUBLIC_IP_ENABLED = 47; - */ - const SIGNAL_TYPE_PUBLIC_IP_ENABLED = 47; - /** - * Represents idle instance helps to reduce costs. - * - * Generated from protobuf enum SIGNAL_TYPE_IDLE = 48; - */ - const SIGNAL_TYPE_IDLE = 48; - /** - * Represents instances that are unnecessarily large for given workload. - * - * Generated from protobuf enum SIGNAL_TYPE_OVERPROVISIONED = 49; - */ - const SIGNAL_TYPE_OVERPROVISIONED = 49; - /** - * Represents high number of concurrently opened tables. - * - * Generated from protobuf enum SIGNAL_TYPE_HIGH_NUMBER_OF_OPEN_TABLES = 50; - */ - const SIGNAL_TYPE_HIGH_NUMBER_OF_OPEN_TABLES = 50; - /** - * Represents high table count close to SLA limit. - * - * Generated from protobuf enum SIGNAL_TYPE_HIGH_NUMBER_OF_TABLES = 51; - */ - const SIGNAL_TYPE_HIGH_NUMBER_OF_TABLES = 51; - /** - * Represents high number of unvacuumed transactions - * - * Generated from protobuf enum SIGNAL_TYPE_HIGH_TRANSACTION_ID_UTILIZATION = 52; - */ - const SIGNAL_TYPE_HIGH_TRANSACTION_ID_UTILIZATION = 52; - /** - * Represents need for more CPU and/or memory - * - * Generated from protobuf enum SIGNAL_TYPE_UNDERPROVISIONED = 53; - */ - const SIGNAL_TYPE_UNDERPROVISIONED = 53; - /** - * Represents out of disk. - * - * Generated from protobuf enum SIGNAL_TYPE_OUT_OF_DISK = 54; - */ - const SIGNAL_TYPE_OUT_OF_DISK = 54; - /** - * Represents server certificate is near expiry. - * - * Generated from protobuf enum SIGNAL_TYPE_SERVER_CERTIFICATE_NEAR_EXPIRY = 55; - */ - const SIGNAL_TYPE_SERVER_CERTIFICATE_NEAR_EXPIRY = 55; - /** - * Represents database auditing is disabled. - * - * Generated from protobuf enum SIGNAL_TYPE_DATABASE_AUDITING_DISABLED = 56; - */ - const SIGNAL_TYPE_DATABASE_AUDITING_DISABLED = 56; - /** - * Represents not restricted to authorized networks. - * - * Generated from protobuf enum SIGNAL_TYPE_RESTRICT_AUTHORIZED_NETWORKS = 57; - */ - const SIGNAL_TYPE_RESTRICT_AUTHORIZED_NETWORKS = 57; - /** - * Represents violate org policy restrict public ip. - * - * Generated from protobuf enum SIGNAL_TYPE_VIOLATE_POLICY_RESTRICT_PUBLIC_IP = 58; - */ - const SIGNAL_TYPE_VIOLATE_POLICY_RESTRICT_PUBLIC_IP = 58; - /** - * Cluster nearing quota limit - * - * Generated from protobuf enum SIGNAL_TYPE_QUOTA_LIMIT = 59; - */ - const SIGNAL_TYPE_QUOTA_LIMIT = 59; - /** - * No password policy set on resources - * - * Generated from protobuf enum SIGNAL_TYPE_NO_PASSWORD_POLICY = 60; - */ - const SIGNAL_TYPE_NO_PASSWORD_POLICY = 60; - /** - * Performance impact of connections settings - * - * Generated from protobuf enum SIGNAL_TYPE_CONNECTIONS_PERFORMANCE_IMPACT = 61; - */ - const SIGNAL_TYPE_CONNECTIONS_PERFORMANCE_IMPACT = 61; - /** - * Performance impact of temporary tables settings - * - * Generated from protobuf enum SIGNAL_TYPE_TMP_TABLES_PERFORMANCE_IMPACT = 62; - */ - const SIGNAL_TYPE_TMP_TABLES_PERFORMANCE_IMPACT = 62; - /** - * Performance impact of transaction logs settings - * - * Generated from protobuf enum SIGNAL_TYPE_TRANS_LOGS_PERFORMANCE_IMPACT = 63; - */ - const SIGNAL_TYPE_TRANS_LOGS_PERFORMANCE_IMPACT = 63; - /** - * Performance impact of high joins without indexes - * - * Generated from protobuf enum SIGNAL_TYPE_HIGH_JOINS_WITHOUT_INDEXES = 64; - */ - const SIGNAL_TYPE_HIGH_JOINS_WITHOUT_INDEXES = 64; - /** - * Detects events where a database superuser (postgres for PostgreSQL servers - * or root for MySQL users) writes to non-system tables. - * - * Generated from protobuf enum SIGNAL_TYPE_SUPERUSER_WRITING_TO_USER_TABLES = 65; - */ - const SIGNAL_TYPE_SUPERUSER_WRITING_TO_USER_TABLES = 65; - /** - * Detects events where a database user or role has been granted all - * privileges to a database, or to all tables, procedures, or functions in a - * schema. - * - * Generated from protobuf enum SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS = 66; - */ - const SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS = 66; - /** - * Detects if database instance data exported to a Cloud Storage bucket - * outside of the organization. - * - * Generated from protobuf enum SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET = 67; - */ - const SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET = 67; - /** - * Detects if database instance data exported to a Cloud Storage bucket that - * is owned by the organization and is publicly accessible. - * - * Generated from protobuf enum SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET = 68; - */ - const SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET = 68; - /** - * Detects if a database instance is using a weak password hash algorithm. - * - * Generated from protobuf enum SIGNAL_TYPE_WEAK_PASSWORD_HASH_ALGORITHM = 77; - */ - const SIGNAL_TYPE_WEAK_PASSWORD_HASH_ALGORITHM = 77; - /** - * Detects if a database instance has no user password policy set. - * - * Generated from protobuf enum SIGNAL_TYPE_NO_USER_PASSWORD_POLICY = 78; - */ - const SIGNAL_TYPE_NO_USER_PASSWORD_POLICY = 78; - /** - * Detects if a database instance/cluster has a hot node. - * - * Generated from protobuf enum SIGNAL_TYPE_HOT_NODE = 79; - */ - const SIGNAL_TYPE_HOT_NODE = 79; - /** - * Deletion Protection Disabled for the resource - * - * Generated from protobuf enum SIGNAL_TYPE_NO_DELETION_PROTECTION = 80; - */ - const SIGNAL_TYPE_NO_DELETION_PROTECTION = 80; - /** - * Detects if a database instance has no point in time recovery enabled. - * - * Generated from protobuf enum SIGNAL_TYPE_NO_POINT_IN_TIME_RECOVERY = 81; - */ - const SIGNAL_TYPE_NO_POINT_IN_TIME_RECOVERY = 81; - /** - * Detects if a database instance/cluster has suspended resources. - * - * Generated from protobuf enum SIGNAL_TYPE_RESOURCE_SUSPENDED = 82; - */ - const SIGNAL_TYPE_RESOURCE_SUSPENDED = 82; - /** - * Detects that expensive commands are being run on a database instance - * impacting overall performance. - * - * Generated from protobuf enum SIGNAL_TYPE_EXPENSIVE_COMMANDS = 83; - */ - const SIGNAL_TYPE_EXPENSIVE_COMMANDS = 83; - /** - * Indicates that the instance does not have a maintenance policy configured. - * - * Generated from protobuf enum SIGNAL_TYPE_NO_MAINTENANCE_POLICY_CONFIGURED = 84; - */ - const SIGNAL_TYPE_NO_MAINTENANCE_POLICY_CONFIGURED = 84; - /** - * Indicates that the instance has inefficient queries detected. - * - * Generated from protobuf enum SIGNAL_TYPE_INEFFICIENT_QUERY = 85; - */ - const SIGNAL_TYPE_INEFFICIENT_QUERY = 85; - /** - * Indicates that the instance has read intensive workload. - * - * Generated from protobuf enum SIGNAL_TYPE_READ_INTENSIVE_WORKLOAD = 86; - */ - const SIGNAL_TYPE_READ_INTENSIVE_WORKLOAD = 86; - /** - * Indicates that the instance is nearing memory limit. - * - * Generated from protobuf enum SIGNAL_TYPE_MEMORY_LIMIT = 87; - */ - const SIGNAL_TYPE_MEMORY_LIMIT = 87; - /** - * Indicates that the instance's max server memory is configured higher than - * the recommended value. - * - * Generated from protobuf enum SIGNAL_TYPE_MAX_SERVER_MEMORY = 88; - */ - const SIGNAL_TYPE_MAX_SERVER_MEMORY = 88; - /** - * Indicates that the database has large rows beyond the recommended limit. - * - * Generated from protobuf enum SIGNAL_TYPE_LARGE_ROWS = 89; - */ - const SIGNAL_TYPE_LARGE_ROWS = 89; - /** - * Heavy write pressure on the database rows. - * - * Generated from protobuf enum SIGNAL_TYPE_HIGH_WRITE_PRESSURE = 90; - */ - const SIGNAL_TYPE_HIGH_WRITE_PRESSURE = 90; - /** - * Heavy read pressure on the database rows. - * - * Generated from protobuf enum SIGNAL_TYPE_HIGH_READ_PRESSURE = 91; - */ - const SIGNAL_TYPE_HIGH_READ_PRESSURE = 91; - /** - * Encryption org policy not satisfied. - * - * Generated from protobuf enum SIGNAL_TYPE_ENCRYPTION_ORG_POLICY_NOT_SATISFIED = 92; - */ - const SIGNAL_TYPE_ENCRYPTION_ORG_POLICY_NOT_SATISFIED = 92; - /** - * Location org policy not satisfied. - * - * Generated from protobuf enum SIGNAL_TYPE_LOCATION_ORG_POLICY_NOT_SATISFIED = 93; - */ - const SIGNAL_TYPE_LOCATION_ORG_POLICY_NOT_SATISFIED = 93; - /** - * Outdated DB minor version. - * - * Generated from protobuf enum SIGNAL_TYPE_OUTDATED_MINOR_VERSION = 94; - */ - const SIGNAL_TYPE_OUTDATED_MINOR_VERSION = 94; - /** - * Schema not optimized. - * - * Generated from protobuf enum SIGNAL_TYPE_SCHEMA_NOT_OPTIMIZED = 95; - */ - const SIGNAL_TYPE_SCHEMA_NOT_OPTIMIZED = 95; - /** - * Replication delay. - * - * Generated from protobuf enum SIGNAL_TYPE_REPLICATION_LAG = 97; - */ - const SIGNAL_TYPE_REPLICATION_LAG = 97; - /** - * Outdated client. - * - * Generated from protobuf enum SIGNAL_TYPE_OUTDATED_CLIENT = 99; - */ - const SIGNAL_TYPE_OUTDATED_CLIENT = 99; - /** - * Databoost is disabled. - * - * Generated from protobuf enum SIGNAL_TYPE_DATABOOST_DISABLED = 100; - */ - const SIGNAL_TYPE_DATABOOST_DISABLED = 100; - /** - * Recommended maintenance policy. - * - * Generated from protobuf enum SIGNAL_TYPE_RECOMMENDED_MAINTENANCE_POLICIES = 101; - */ - const SIGNAL_TYPE_RECOMMENDED_MAINTENANCE_POLICIES = 101; - /** - * Resource version is in extended support. - * - * Generated from protobuf enum SIGNAL_TYPE_EXTENDED_SUPPORT = 102; - */ - const SIGNAL_TYPE_EXTENDED_SUPPORT = 102; - - private static $valueToName = [ - self::SIGNAL_TYPE_UNSPECIFIED => 'SIGNAL_TYPE_UNSPECIFIED', - self::SIGNAL_TYPE_RESOURCE_FAILOVER_PROTECTED => 'SIGNAL_TYPE_RESOURCE_FAILOVER_PROTECTED', - self::SIGNAL_TYPE_GROUP_MULTIREGIONAL => 'SIGNAL_TYPE_GROUP_MULTIREGIONAL', - self::SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY => 'SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY', - self::SIGNAL_TYPE_SHORT_BACKUP_RETENTION => 'SIGNAL_TYPE_SHORT_BACKUP_RETENTION', - self::SIGNAL_TYPE_LAST_BACKUP_FAILED => 'SIGNAL_TYPE_LAST_BACKUP_FAILED', - self::SIGNAL_TYPE_LAST_BACKUP_OLD => 'SIGNAL_TYPE_LAST_BACKUP_OLD', - self::SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_2_0 => 'SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_2_0', - self::SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_3 => 'SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_3', - self::SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_2 => 'SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_2', - self::SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_1 => 'SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_1', - self::SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_0 => 'SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_0', - self::SIGNAL_TYPE_VIOLATES_CIS_CONTROLS_V8_0 => 'SIGNAL_TYPE_VIOLATES_CIS_CONTROLS_V8_0', - self::SIGNAL_TYPE_VIOLATES_NIST_800_53 => 'SIGNAL_TYPE_VIOLATES_NIST_800_53', - self::SIGNAL_TYPE_VIOLATES_NIST_800_53_R5 => 'SIGNAL_TYPE_VIOLATES_NIST_800_53_R5', - self::SIGNAL_TYPE_VIOLATES_NIST_CYBERSECURITY_FRAMEWORK_V1_0 => 'SIGNAL_TYPE_VIOLATES_NIST_CYBERSECURITY_FRAMEWORK_V1_0', - self::SIGNAL_TYPE_VIOLATES_ISO_27001 => 'SIGNAL_TYPE_VIOLATES_ISO_27001', - self::SIGNAL_TYPE_VIOLATES_ISO_27001_V2022 => 'SIGNAL_TYPE_VIOLATES_ISO_27001_V2022', - self::SIGNAL_TYPE_VIOLATES_PCI_DSS_V3_2_1 => 'SIGNAL_TYPE_VIOLATES_PCI_DSS_V3_2_1', - self::SIGNAL_TYPE_VIOLATES_PCI_DSS_V4_0 => 'SIGNAL_TYPE_VIOLATES_PCI_DSS_V4_0', - self::SIGNAL_TYPE_VIOLATES_CLOUD_CONTROLS_MATRIX_V4 => 'SIGNAL_TYPE_VIOLATES_CLOUD_CONTROLS_MATRIX_V4', - self::SIGNAL_TYPE_VIOLATES_HIPAA => 'SIGNAL_TYPE_VIOLATES_HIPAA', - self::SIGNAL_TYPE_VIOLATES_SOC2_V2017 => 'SIGNAL_TYPE_VIOLATES_SOC2_V2017', - self::SIGNAL_TYPE_LOGS_NOT_OPTIMIZED_FOR_TROUBLESHOOTING => 'SIGNAL_TYPE_LOGS_NOT_OPTIMIZED_FOR_TROUBLESHOOTING', - self::SIGNAL_TYPE_QUERY_DURATIONS_NOT_LOGGED => 'SIGNAL_TYPE_QUERY_DURATIONS_NOT_LOGGED', - self::SIGNAL_TYPE_VERBOSE_ERROR_LOGGING => 'SIGNAL_TYPE_VERBOSE_ERROR_LOGGING', - self::SIGNAL_TYPE_QUERY_LOCK_WAITS_NOT_LOGGED => 'SIGNAL_TYPE_QUERY_LOCK_WAITS_NOT_LOGGED', - self::SIGNAL_TYPE_LOGGING_MOST_ERRORS => 'SIGNAL_TYPE_LOGGING_MOST_ERRORS', - self::SIGNAL_TYPE_LOGGING_ONLY_CRITICAL_ERRORS => 'SIGNAL_TYPE_LOGGING_ONLY_CRITICAL_ERRORS', - self::SIGNAL_TYPE_MINIMAL_ERROR_LOGGING => 'SIGNAL_TYPE_MINIMAL_ERROR_LOGGING', - self::SIGNAL_TYPE_QUERY_STATS_LOGGED => 'SIGNAL_TYPE_QUERY_STATS_LOGGED', - self::SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_CLIENT_HOSTNAME => 'SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_CLIENT_HOSTNAME', - self::SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_PARSER_STATS => 'SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_PARSER_STATS', - self::SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_PLANNER_STATS => 'SIGNAL_TYPE_EXCESSIVE_LOGGING_OF_PLANNER_STATS', - self::SIGNAL_TYPE_NOT_LOGGING_ONLY_DDL_STATEMENTS => 'SIGNAL_TYPE_NOT_LOGGING_ONLY_DDL_STATEMENTS', - self::SIGNAL_TYPE_LOGGING_QUERY_STATS => 'SIGNAL_TYPE_LOGGING_QUERY_STATS', - self::SIGNAL_TYPE_NOT_LOGGING_TEMPORARY_FILES => 'SIGNAL_TYPE_NOT_LOGGING_TEMPORARY_FILES', - self::SIGNAL_TYPE_CONNECTION_MAX_NOT_CONFIGURED => 'SIGNAL_TYPE_CONNECTION_MAX_NOT_CONFIGURED', - self::SIGNAL_TYPE_USER_OPTIONS_CONFIGURED => 'SIGNAL_TYPE_USER_OPTIONS_CONFIGURED', - self::SIGNAL_TYPE_EXPOSED_TO_PUBLIC_ACCESS => 'SIGNAL_TYPE_EXPOSED_TO_PUBLIC_ACCESS', - self::SIGNAL_TYPE_UNENCRYPTED_CONNECTIONS => 'SIGNAL_TYPE_UNENCRYPTED_CONNECTIONS', - self::SIGNAL_TYPE_NO_ROOT_PASSWORD => 'SIGNAL_TYPE_NO_ROOT_PASSWORD', - self::SIGNAL_TYPE_WEAK_ROOT_PASSWORD => 'SIGNAL_TYPE_WEAK_ROOT_PASSWORD', - self::SIGNAL_TYPE_ENCRYPTION_KEY_NOT_CUSTOMER_MANAGED => 'SIGNAL_TYPE_ENCRYPTION_KEY_NOT_CUSTOMER_MANAGED', - self::SIGNAL_TYPE_SERVER_AUTHENTICATION_NOT_REQUIRED => 'SIGNAL_TYPE_SERVER_AUTHENTICATION_NOT_REQUIRED', - self::SIGNAL_TYPE_EXPOSED_TO_EXTERNAL_SCRIPTS => 'SIGNAL_TYPE_EXPOSED_TO_EXTERNAL_SCRIPTS', - self::SIGNAL_TYPE_EXPOSED_TO_LOCAL_DATA_LOADS => 'SIGNAL_TYPE_EXPOSED_TO_LOCAL_DATA_LOADS', - self::SIGNAL_TYPE_CONNECTION_ATTEMPTS_NOT_LOGGED => 'SIGNAL_TYPE_CONNECTION_ATTEMPTS_NOT_LOGGED', - self::SIGNAL_TYPE_DISCONNECTIONS_NOT_LOGGED => 'SIGNAL_TYPE_DISCONNECTIONS_NOT_LOGGED', - self::SIGNAL_TYPE_LOGGING_EXCESSIVE_STATEMENT_INFO => 'SIGNAL_TYPE_LOGGING_EXCESSIVE_STATEMENT_INFO', - self::SIGNAL_TYPE_EXPOSED_TO_REMOTE_ACCESS => 'SIGNAL_TYPE_EXPOSED_TO_REMOTE_ACCESS', - self::SIGNAL_TYPE_DATABASE_NAMES_EXPOSED => 'SIGNAL_TYPE_DATABASE_NAMES_EXPOSED', - self::SIGNAL_TYPE_SENSITIVE_TRACE_INFO_NOT_MASKED => 'SIGNAL_TYPE_SENSITIVE_TRACE_INFO_NOT_MASKED', - self::SIGNAL_TYPE_PUBLIC_IP_ENABLED => 'SIGNAL_TYPE_PUBLIC_IP_ENABLED', - self::SIGNAL_TYPE_IDLE => 'SIGNAL_TYPE_IDLE', - self::SIGNAL_TYPE_OVERPROVISIONED => 'SIGNAL_TYPE_OVERPROVISIONED', - self::SIGNAL_TYPE_HIGH_NUMBER_OF_OPEN_TABLES => 'SIGNAL_TYPE_HIGH_NUMBER_OF_OPEN_TABLES', - self::SIGNAL_TYPE_HIGH_NUMBER_OF_TABLES => 'SIGNAL_TYPE_HIGH_NUMBER_OF_TABLES', - self::SIGNAL_TYPE_HIGH_TRANSACTION_ID_UTILIZATION => 'SIGNAL_TYPE_HIGH_TRANSACTION_ID_UTILIZATION', - self::SIGNAL_TYPE_UNDERPROVISIONED => 'SIGNAL_TYPE_UNDERPROVISIONED', - self::SIGNAL_TYPE_OUT_OF_DISK => 'SIGNAL_TYPE_OUT_OF_DISK', - self::SIGNAL_TYPE_SERVER_CERTIFICATE_NEAR_EXPIRY => 'SIGNAL_TYPE_SERVER_CERTIFICATE_NEAR_EXPIRY', - self::SIGNAL_TYPE_DATABASE_AUDITING_DISABLED => 'SIGNAL_TYPE_DATABASE_AUDITING_DISABLED', - self::SIGNAL_TYPE_RESTRICT_AUTHORIZED_NETWORKS => 'SIGNAL_TYPE_RESTRICT_AUTHORIZED_NETWORKS', - self::SIGNAL_TYPE_VIOLATE_POLICY_RESTRICT_PUBLIC_IP => 'SIGNAL_TYPE_VIOLATE_POLICY_RESTRICT_PUBLIC_IP', - self::SIGNAL_TYPE_QUOTA_LIMIT => 'SIGNAL_TYPE_QUOTA_LIMIT', - self::SIGNAL_TYPE_NO_PASSWORD_POLICY => 'SIGNAL_TYPE_NO_PASSWORD_POLICY', - self::SIGNAL_TYPE_CONNECTIONS_PERFORMANCE_IMPACT => 'SIGNAL_TYPE_CONNECTIONS_PERFORMANCE_IMPACT', - self::SIGNAL_TYPE_TMP_TABLES_PERFORMANCE_IMPACT => 'SIGNAL_TYPE_TMP_TABLES_PERFORMANCE_IMPACT', - self::SIGNAL_TYPE_TRANS_LOGS_PERFORMANCE_IMPACT => 'SIGNAL_TYPE_TRANS_LOGS_PERFORMANCE_IMPACT', - self::SIGNAL_TYPE_HIGH_JOINS_WITHOUT_INDEXES => 'SIGNAL_TYPE_HIGH_JOINS_WITHOUT_INDEXES', - self::SIGNAL_TYPE_SUPERUSER_WRITING_TO_USER_TABLES => 'SIGNAL_TYPE_SUPERUSER_WRITING_TO_USER_TABLES', - self::SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS => 'SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS', - self::SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET => 'SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET', - self::SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET => 'SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET', - self::SIGNAL_TYPE_WEAK_PASSWORD_HASH_ALGORITHM => 'SIGNAL_TYPE_WEAK_PASSWORD_HASH_ALGORITHM', - self::SIGNAL_TYPE_NO_USER_PASSWORD_POLICY => 'SIGNAL_TYPE_NO_USER_PASSWORD_POLICY', - self::SIGNAL_TYPE_HOT_NODE => 'SIGNAL_TYPE_HOT_NODE', - self::SIGNAL_TYPE_NO_DELETION_PROTECTION => 'SIGNAL_TYPE_NO_DELETION_PROTECTION', - self::SIGNAL_TYPE_NO_POINT_IN_TIME_RECOVERY => 'SIGNAL_TYPE_NO_POINT_IN_TIME_RECOVERY', - self::SIGNAL_TYPE_RESOURCE_SUSPENDED => 'SIGNAL_TYPE_RESOURCE_SUSPENDED', - self::SIGNAL_TYPE_EXPENSIVE_COMMANDS => 'SIGNAL_TYPE_EXPENSIVE_COMMANDS', - self::SIGNAL_TYPE_NO_MAINTENANCE_POLICY_CONFIGURED => 'SIGNAL_TYPE_NO_MAINTENANCE_POLICY_CONFIGURED', - self::SIGNAL_TYPE_INEFFICIENT_QUERY => 'SIGNAL_TYPE_INEFFICIENT_QUERY', - self::SIGNAL_TYPE_READ_INTENSIVE_WORKLOAD => 'SIGNAL_TYPE_READ_INTENSIVE_WORKLOAD', - self::SIGNAL_TYPE_MEMORY_LIMIT => 'SIGNAL_TYPE_MEMORY_LIMIT', - self::SIGNAL_TYPE_MAX_SERVER_MEMORY => 'SIGNAL_TYPE_MAX_SERVER_MEMORY', - self::SIGNAL_TYPE_LARGE_ROWS => 'SIGNAL_TYPE_LARGE_ROWS', - self::SIGNAL_TYPE_HIGH_WRITE_PRESSURE => 'SIGNAL_TYPE_HIGH_WRITE_PRESSURE', - self::SIGNAL_TYPE_HIGH_READ_PRESSURE => 'SIGNAL_TYPE_HIGH_READ_PRESSURE', - self::SIGNAL_TYPE_ENCRYPTION_ORG_POLICY_NOT_SATISFIED => 'SIGNAL_TYPE_ENCRYPTION_ORG_POLICY_NOT_SATISFIED', - self::SIGNAL_TYPE_LOCATION_ORG_POLICY_NOT_SATISFIED => 'SIGNAL_TYPE_LOCATION_ORG_POLICY_NOT_SATISFIED', - self::SIGNAL_TYPE_OUTDATED_MINOR_VERSION => 'SIGNAL_TYPE_OUTDATED_MINOR_VERSION', - self::SIGNAL_TYPE_SCHEMA_NOT_OPTIMIZED => 'SIGNAL_TYPE_SCHEMA_NOT_OPTIMIZED', - self::SIGNAL_TYPE_REPLICATION_LAG => 'SIGNAL_TYPE_REPLICATION_LAG', - self::SIGNAL_TYPE_OUTDATED_CLIENT => 'SIGNAL_TYPE_OUTDATED_CLIENT', - self::SIGNAL_TYPE_DATABOOST_DISABLED => 'SIGNAL_TYPE_DATABOOST_DISABLED', - self::SIGNAL_TYPE_RECOMMENDED_MAINTENANCE_POLICIES => 'SIGNAL_TYPE_RECOMMENDED_MAINTENANCE_POLICIES', - self::SIGNAL_TYPE_EXTENDED_SUPPORT => 'SIGNAL_TYPE_EXTENDED_SUPPORT', - ]; - - 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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalTypeGroup.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalTypeGroup.php deleted file mode 100644 index d0600530f73..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SignalTypeGroup.php +++ /dev/null @@ -1,107 +0,0 @@ -google.cloud.databasecenter.v1beta.SignalTypeGroup - */ -class SignalTypeGroup extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The display name of a signal group. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Optional. List of signal types present in the group. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalType signal_types = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $signal_types; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Required. The display name of a signal group. - * @type array|\Google\Protobuf\Internal\RepeatedField $signal_types - * Optional. List of signal types present in the group. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); - parent::__construct($data); - } - - /** - * Required. The display name of a signal group. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. The display name of a signal group. - * - * Generated from protobuf field string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. List of signal types present in the group. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalType signal_types = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSignalTypes() - { - return $this->signal_types; - } - - /** - * Optional. List of signal types present in the group. - * - * Generated from protobuf field repeated .google.cloud.databasecenter.v1beta.SignalType signal_types = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSignalTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\DatabaseCenter\V1beta\SignalType::class); - $this->signal_types = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SubResource.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SubResource.php deleted file mode 100644 index 1c96bdc417e..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SubResource.php +++ /dev/null @@ -1,262 +0,0 @@ -google.cloud.databasecenter.v1beta.SubResource - */ -class SubResource extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Resource type associated with the sub resource where backup - * settings are configured. E.g. "spanner.googleapis.com/Database" for Spanner - * where backup retention is configured on database within an instance - * OPTIONAL - * - * Generated from protobuf field string resource_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $resource_type = ''; - /** - * Optional. Resource name associated with the sub resource where backup - * settings are configured. - * E.g."//spanner.googleapis.com/projects/project1/instances/inst1/databases/db1" - * for Spanner where backup retention is configured on database within - * an instance - * OPTIONAL - * - * Generated from protobuf field string full_resource_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $full_resource_name = ''; - /** - * Optional. Product information associated with the sub resource where - * backup retention settings are configured. - * e.g. - * ``` - * product: { - * type : PRODUCT_TYPE_SPANNER - * engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT - * } - * ``` - * for Spanner where backup is configured on database within - * an instance - * OPTIONAL - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Product product = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $product = null; - /** - * Specifies where the resource is created. For Google Cloud resources, it is - * the full name of the project. - * - * Generated from protobuf field string container = 4; - */ - protected $container = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $resource_type - * Optional. Resource type associated with the sub resource where backup - * settings are configured. E.g. "spanner.googleapis.com/Database" for Spanner - * where backup retention is configured on database within an instance - * OPTIONAL - * @type string $full_resource_name - * Optional. Resource name associated with the sub resource where backup - * settings are configured. - * E.g."//spanner.googleapis.com/projects/project1/instances/inst1/databases/db1" - * for Spanner where backup retention is configured on database within - * an instance - * OPTIONAL - * @type \Google\Cloud\DatabaseCenter\V1beta\Product $product - * Optional. Product information associated with the sub resource where - * backup retention settings are configured. - * e.g. - * ``` - * product: { - * type : PRODUCT_TYPE_SPANNER - * engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT - * } - * ``` - * for Spanner where backup is configured on database within - * an instance - * OPTIONAL - * @type string $container - * Specifies where the resource is created. For Google Cloud resources, it is - * the full name of the project. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Signals::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Resource type associated with the sub resource where backup - * settings are configured. E.g. "spanner.googleapis.com/Database" for Spanner - * where backup retention is configured on database within an instance - * OPTIONAL - * - * Generated from protobuf field string resource_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getResourceType() - { - return $this->resource_type; - } - - /** - * Optional. Resource type associated with the sub resource where backup - * settings are configured. E.g. "spanner.googleapis.com/Database" for Spanner - * where backup retention is configured on database within an instance - * OPTIONAL - * - * Generated from protobuf field string resource_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setResourceType($var) - { - GPBUtil::checkString($var, True); - $this->resource_type = $var; - - return $this; - } - - /** - * Optional. Resource name associated with the sub resource where backup - * settings are configured. - * E.g."//spanner.googleapis.com/projects/project1/instances/inst1/databases/db1" - * for Spanner where backup retention is configured on database within - * an instance - * OPTIONAL - * - * Generated from protobuf field string full_resource_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFullResourceName() - { - return $this->full_resource_name; - } - - /** - * Optional. Resource name associated with the sub resource where backup - * settings are configured. - * E.g."//spanner.googleapis.com/projects/project1/instances/inst1/databases/db1" - * for Spanner where backup retention is configured on database within - * an instance - * OPTIONAL - * - * Generated from protobuf field string full_resource_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFullResourceName($var) - { - GPBUtil::checkString($var, True); - $this->full_resource_name = $var; - - return $this; - } - - /** - * Optional. Product information associated with the sub resource where - * backup retention settings are configured. - * e.g. - * ``` - * product: { - * type : PRODUCT_TYPE_SPANNER - * engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT - * } - * ``` - * for Spanner where backup is configured on database within - * an instance - * OPTIONAL - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Product product = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\DatabaseCenter\V1beta\Product|null - */ - public function getProduct() - { - return $this->product; - } - - public function hasProduct() - { - return isset($this->product); - } - - public function clearProduct() - { - unset($this->product); - } - - /** - * Optional. Product information associated with the sub resource where - * backup retention settings are configured. - * e.g. - * ``` - * product: { - * type : PRODUCT_TYPE_SPANNER - * engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT - * } - * ``` - * for Spanner where backup is configured on database within - * an instance - * OPTIONAL - * - * Generated from protobuf field .google.cloud.databasecenter.v1beta.Product product = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\DatabaseCenter\V1beta\Product $var - * @return $this - */ - public function setProduct($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DatabaseCenter\V1beta\Product::class); - $this->product = $var; - - return $this; - } - - /** - * Specifies where the resource is created. For Google Cloud resources, it is - * the full name of the project. - * - * Generated from protobuf field string container = 4; - * @return string - */ - public function getContainer() - { - return $this->container; - } - - /** - * Specifies where the resource is created. For Google Cloud resources, it is - * the full name of the project. - * - * Generated from protobuf field string container = 4; - * @param string $var - * @return $this - */ - public function setContainer($var) - { - GPBUtil::checkString($var, True); - $this->container = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SubResourceType.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SubResourceType.php deleted file mode 100644 index f41b76d546f..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SubResourceType.php +++ /dev/null @@ -1,82 +0,0 @@ -google.cloud.databasecenter.v1beta.SubResourceType - */ -class SubResourceType -{ - /** - * Unspecified. - * - * Generated from protobuf enum SUB_RESOURCE_TYPE_UNSPECIFIED = 0; - */ - const SUB_RESOURCE_TYPE_UNSPECIFIED = 0; - /** - * A resource acting as a primary. - * - * Generated from protobuf enum SUB_RESOURCE_TYPE_PRIMARY = 1; - */ - const SUB_RESOURCE_TYPE_PRIMARY = 1; - /** - * A resource acting as a secondary. - * - * Generated from protobuf enum SUB_RESOURCE_TYPE_SECONDARY = 2; - */ - const SUB_RESOURCE_TYPE_SECONDARY = 2; - /** - * A resource acting as a read-replica. - * - * Generated from protobuf enum SUB_RESOURCE_TYPE_READ_REPLICA = 3; - */ - const SUB_RESOURCE_TYPE_READ_REPLICA = 3; - /** - * A resource acting as an external primary. - * - * Generated from protobuf enum SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY = 5; - */ - const SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY = 5; - /** - * For the rest of the categories. - * - * Generated from protobuf enum SUB_RESOURCE_TYPE_OTHER = 4; - */ - const SUB_RESOURCE_TYPE_OTHER = 4; - - private static $valueToName = [ - self::SUB_RESOURCE_TYPE_UNSPECIFIED => 'SUB_RESOURCE_TYPE_UNSPECIFIED', - self::SUB_RESOURCE_TYPE_PRIMARY => 'SUB_RESOURCE_TYPE_PRIMARY', - self::SUB_RESOURCE_TYPE_SECONDARY => 'SUB_RESOURCE_TYPE_SECONDARY', - self::SUB_RESOURCE_TYPE_READ_REPLICA => 'SUB_RESOURCE_TYPE_READ_REPLICA', - self::SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY => 'SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY', - self::SUB_RESOURCE_TYPE_OTHER => 'SUB_RESOURCE_TYPE_OTHER', - ]; - - 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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SuspensionReason.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SuspensionReason.php deleted file mode 100644 index 6c7832a15ea..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/SuspensionReason.php +++ /dev/null @@ -1,89 +0,0 @@ -google.cloud.databasecenter.v1beta.SuspensionReason - */ -class SuspensionReason -{ - /** - * Suspension reason is unspecified. - * - * Generated from protobuf enum SUSPENSION_REASON_UNSPECIFIED = 0; - */ - const SUSPENSION_REASON_UNSPECIFIED = 0; - /** - * Wipeout hide event. - * - * Generated from protobuf enum WIPEOUT_HIDE_EVENT = 1; - */ - const WIPEOUT_HIDE_EVENT = 1; - /** - * Wipeout purge event. - * - * Generated from protobuf enum WIPEOUT_PURGE_EVENT = 2; - */ - const WIPEOUT_PURGE_EVENT = 2; - /** - * Billing disabled for project - * - * Generated from protobuf enum BILLING_DISABLED = 3; - */ - const BILLING_DISABLED = 3; - /** - * Abuse detected for resource - * - * Generated from protobuf enum ABUSER_DETECTED = 4; - */ - const ABUSER_DETECTED = 4; - /** - * Encryption key inaccessible. - * - * Generated from protobuf enum ENCRYPTION_KEY_INACCESSIBLE = 5; - */ - const ENCRYPTION_KEY_INACCESSIBLE = 5; - /** - * Replicated cluster encryption key inaccessible. - * - * Generated from protobuf enum REPLICATED_CLUSTER_ENCRYPTION_KEY_INACCESSIBLE = 6; - */ - const REPLICATED_CLUSTER_ENCRYPTION_KEY_INACCESSIBLE = 6; - - private static $valueToName = [ - self::SUSPENSION_REASON_UNSPECIFIED => 'SUSPENSION_REASON_UNSPECIFIED', - self::WIPEOUT_HIDE_EVENT => 'WIPEOUT_HIDE_EVENT', - self::WIPEOUT_PURGE_EVENT => 'WIPEOUT_PURGE_EVENT', - self::BILLING_DISABLED => 'BILLING_DISABLED', - self::ABUSER_DETECTED => 'ABUSER_DETECTED', - self::ENCRYPTION_KEY_INACCESSIBLE => 'ENCRYPTION_KEY_INACCESSIBLE', - self::REPLICATED_CLUSTER_ENCRYPTION_KEY_INACCESSIBLE => 'REPLICATED_CLUSTER_ENCRYPTION_KEY_INACCESSIBLE', - ]; - - 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/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Tag.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Tag.php deleted file mode 100644 index 6681dcf4199..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/Tag.php +++ /dev/null @@ -1,206 +0,0 @@ -google.cloud.databasecenter.v1beta.Tag - */ -class Tag extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string key = 1; - */ - protected $key = ''; - /** - * The value part of the tag. - * - * Generated from protobuf field string value = 2; - */ - protected $value = ''; - /** - * The source of the tag. According to - * https://cloud.google.com/resource-manager/docs/tags/tags-overview#tags_and_labels, - * tags can be created only at the project or organization level. Tags can be - * inherited from different project as well not just the current project where - * the database resource is present. - * Format: - * "projects/{PROJECT_ID}", - * "projects/{PROJECT_NUMBER}", - * "organizations/{ORGANIZATION_ID}" - * - * Generated from protobuf field string source = 3; - */ - protected $source = ''; - /** - * Indicates the inheritance status of a tag value - * attached to the given resource. If the tag value is inherited from one of - * the resource's ancestors, inherited will be true. If false, then the tag - * value is directly attached to the resource. - * - * Generated from protobuf field bool inherited = 4; - */ - protected $inherited = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key - * @type string $value - * The value part of the tag. - * @type string $source - * The source of the tag. According to - * https://cloud.google.com/resource-manager/docs/tags/tags-overview#tags_and_labels, - * tags can be created only at the project or organization level. Tags can be - * inherited from different project as well not just the current project where - * the database resource is present. - * Format: - * "projects/{PROJECT_ID}", - * "projects/{PROJECT_NUMBER}", - * "organizations/{ORGANIZATION_ID}" - * @type bool $inherited - * Indicates the inheritance status of a tag value - * attached to the given resource. If the tag value is inherited from one of - * the resource's ancestors, inherited will be true. If false, then the tag - * value is directly attached to the resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\Service::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field string key = 1; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * 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 part of the tag. - * - * Generated from protobuf field string value = 2; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The value part of the tag. - * - * 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; - } - - /** - * The source of the tag. According to - * https://cloud.google.com/resource-manager/docs/tags/tags-overview#tags_and_labels, - * tags can be created only at the project or organization level. Tags can be - * inherited from different project as well not just the current project where - * the database resource is present. - * Format: - * "projects/{PROJECT_ID}", - * "projects/{PROJECT_NUMBER}", - * "organizations/{ORGANIZATION_ID}" - * - * Generated from protobuf field string source = 3; - * @return string - */ - public function getSource() - { - return $this->source; - } - - /** - * The source of the tag. According to - * https://cloud.google.com/resource-manager/docs/tags/tags-overview#tags_and_labels, - * tags can be created only at the project or organization level. Tags can be - * inherited from different project as well not just the current project where - * the database resource is present. - * Format: - * "projects/{PROJECT_ID}", - * "projects/{PROJECT_NUMBER}", - * "organizations/{ORGANIZATION_ID}" - * - * Generated from protobuf field string source = 3; - * @param string $var - * @return $this - */ - public function setSource($var) - { - GPBUtil::checkString($var, True); - $this->source = $var; - - return $this; - } - - /** - * Indicates the inheritance status of a tag value - * attached to the given resource. If the tag value is inherited from one of - * the resource's ancestors, inherited will be true. If false, then the tag - * value is directly attached to the resource. - * - * Generated from protobuf field bool inherited = 4; - * @return bool - */ - public function getInherited() - { - return $this->inherited; - } - - /** - * Indicates the inheritance status of a tag value - * attached to the given resource. If the tag value is inherited from one of - * the resource's ancestors, inherited will be true. If false, then the tag - * value is directly attached to the resource. - * - * Generated from protobuf field bool inherited = 4; - * @param bool $var - * @return $this - */ - public function setInherited($var) - { - GPBUtil::checkBool($var); - $this->inherited = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/TypedValue.php b/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/TypedValue.php deleted file mode 100644 index 7272a25a5a5..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/proto/src/Google/Cloud/DatabaseCenter/V1beta/TypedValue.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.databasecenter.v1beta.TypedValue - */ -class TypedValue extends \Google\Protobuf\Internal\Message -{ - protected $value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $double_value - * The value of the metric as double. - * @type int|string $int64_value - * The value of the metric as int. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Databasecenter\V1Beta\MetricData::initOnce(); - parent::__construct($data); - } - - /** - * The value of the metric as double. - * - * Generated from protobuf field double double_value = 1; - * @return float - */ - public function getDoubleValue() - { - return $this->readOneof(1); - } - - public function hasDoubleValue() - { - return $this->hasOneof(1); - } - - /** - * The value of the metric as double. - * - * Generated from protobuf field double double_value = 1; - * @param float $var - * @return $this - */ - public function setDoubleValue($var) - { - GPBUtil::checkDouble($var); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The value of the metric as int. - * - * Generated from protobuf field int64 int64_value = 2; - * @return int|string - */ - public function getInt64Value() - { - return $this->readOneof(2); - } - - public function hasInt64Value() - { - return $this->hasOneof(2); - } - - /** - * The value of the metric as int. - * - * Generated from protobuf field int64 int64_value = 2; - * @param int|string $var - * @return $this - */ - public function setInt64Value($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getValue() - { - return $this->whichOneof("value"); - } - -} - diff --git a/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/aggregate_fleet.php b/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/aggregate_fleet.php deleted file mode 100644 index 87dffeb8800..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/aggregate_fleet.php +++ /dev/null @@ -1,85 +0,0 @@ -setParent($parent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $databaseCenterClient->aggregateFleet($request); - - /** @var AggregateFleetRow $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 -{ - $parent = '[PARENT]'; - - aggregate_fleet_sample($parent); -} -// [END databasecenter_v1beta_generated_DatabaseCenter_AggregateFleet_sync] diff --git a/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/aggregate_issue_stats.php b/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/aggregate_issue_stats.php deleted file mode 100644 index 54238e9abdc..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/aggregate_issue_stats.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($parent); - - // Call the API and handle any network failures. - try { - /** @var AggregateIssueStatsResponse $response */ - $response = $databaseCenterClient->aggregateIssueStats($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 -{ - $parent = '[PARENT]'; - - aggregate_issue_stats_sample($parent); -} -// [END databasecenter_v1beta_generated_DatabaseCenter_AggregateIssueStats_sync] diff --git a/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/query_database_resource_groups.php b/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/query_database_resource_groups.php deleted file mode 100644 index bc43e2e6134..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/query_database_resource_groups.php +++ /dev/null @@ -1,83 +0,0 @@ -setParent($parent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $databaseCenterClient->queryDatabaseResourceGroups($request); - - /** @var DatabaseResourceGroup $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 -{ - $parent = '[PARENT]'; - - query_database_resource_groups_sample($parent); -} -// [END databasecenter_v1beta_generated_DatabaseCenter_QueryDatabaseResourceGroups_sync] diff --git a/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/query_issues.php b/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/query_issues.php deleted file mode 100644 index 1b7941d1b71..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/query_issues.php +++ /dev/null @@ -1,85 +0,0 @@ -setParent($parent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $databaseCenterClient->queryIssues($request); - - /** @var DatabaseResourceIssue $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 -{ - $parent = '[PARENT]'; - - query_issues_sample($parent); -} -// [END databasecenter_v1beta_generated_DatabaseCenter_QueryIssues_sync] diff --git a/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/query_products.php b/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/query_products.php deleted file mode 100644 index a68e545f0de..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/samples/V1beta/DatabaseCenterClient/query_products.php +++ /dev/null @@ -1,91 +0,0 @@ -setParent($parent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $databaseCenterClient->queryProducts($request); - - /** @var Product $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 -{ - $parent = '[PARENT]'; - - query_products_sample($parent); -} -// [END databasecenter_v1beta_generated_DatabaseCenter_QueryProducts_sync] diff --git a/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/Client/DatabaseCenterClient.php b/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/Client/DatabaseCenterClient.php deleted file mode 100644 index 21981f7c318..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/Client/DatabaseCenterClient.php +++ /dev/null @@ -1,338 +0,0 @@ - aggregateFleetAsync(AggregateFleetRequest $request, array $optionalArgs = []) - * @method PromiseInterface aggregateIssueStatsAsync(AggregateIssueStatsRequest $request, array $optionalArgs = []) - * @method PromiseInterface queryDatabaseResourceGroupsAsync(QueryDatabaseResourceGroupsRequest $request, array $optionalArgs = []) - * @method PromiseInterface queryIssuesAsync(QueryIssuesRequest $request, array $optionalArgs = []) - * @method PromiseInterface queryProductsAsync(QueryProductsRequest $request, array $optionalArgs = []) - */ -final class DatabaseCenterClient -{ - use GapicClientTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.databasecenter.v1beta.DatabaseCenter'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'databasecenter.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'databasecenter.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/database_center_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/database_center_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/database_center_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/database_center_rest_client_config.php', - ], - ], - ]; - } - - /** - * 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 'databasecenter.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\DatabaseCenter\V1beta\DatabaseCenterClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new DatabaseCenterClient(['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 - * - * @experimental - */ - 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); - } - - /** - * AggregateFleet provides statistics about the fleet grouped by various - * fields. - * - * The async variant is {@see DatabaseCenterClient::aggregateFleetAsync()} . - * - * @example samples/V1beta/DatabaseCenterClient/aggregate_fleet.php - * - * @param AggregateFleetRequest $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. - * - * @experimental - */ - public function aggregateFleet(AggregateFleetRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('AggregateFleet', $request, $callOptions); - } - - /** - * AggregateIssueStats provides database resource issues statistics. - * - * The async variant is {@see DatabaseCenterClient::aggregateIssueStatsAsync()} . - * - * @example samples/V1beta/DatabaseCenterClient/aggregate_issue_stats.php - * - * @param AggregateIssueStatsRequest $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 AggregateIssueStatsResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function aggregateIssueStats(AggregateIssueStatsRequest $request, array $callOptions = []): AggregateIssueStatsResponse - { - return $this->startApiCall('AggregateIssueStats', $request, $callOptions)->wait(); - } - - /** - * QueryDatabaseResourceGroups returns paginated results of database groups. - * - * The async variant is - * {@see DatabaseCenterClient::queryDatabaseResourceGroupsAsync()} . - * - * @example samples/V1beta/DatabaseCenterClient/query_database_resource_groups.php - * - * @param QueryDatabaseResourceGroupsRequest $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. - * - * @experimental - */ - public function queryDatabaseResourceGroups(QueryDatabaseResourceGroupsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('QueryDatabaseResourceGroups', $request, $callOptions); - } - - /** - * QueryIssues provides a list of issues and recommendations - * that a user has access to and that are within the requested scope. - * - * The async variant is {@see DatabaseCenterClient::queryIssuesAsync()} . - * - * @example samples/V1beta/DatabaseCenterClient/query_issues.php - * - * @param QueryIssuesRequest $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. - * - * @experimental - */ - public function queryIssues(QueryIssuesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('QueryIssues', $request, $callOptions); - } - - /** - * QueryProducts provides a list of all possible products which can be used to - * filter database resources. - * - * The async variant is {@see DatabaseCenterClient::queryProductsAsync()} . - * - * @example samples/V1beta/DatabaseCenterClient/query_products.php - * - * @param QueryProductsRequest $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. - * - * @experimental - */ - public function queryProducts(QueryProductsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('QueryProducts', $request, $callOptions); - } -} diff --git a/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/gapic_metadata.json b/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/gapic_metadata.json deleted file mode 100644 index 3a6dea45609..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/gapic_metadata.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.databasecenter.v1beta", - "libraryPackage": "Google\\Cloud\\DatabaseCenter\\V1beta", - "services": { - "DatabaseCenter": { - "clients": { - "grpc": { - "libraryClient": "DatabaseCenterGapicClient", - "rpcs": { - "AggregateFleet": { - "methods": [ - "aggregateFleet" - ] - }, - "AggregateIssueStats": { - "methods": [ - "aggregateIssueStats" - ] - }, - "QueryDatabaseResourceGroups": { - "methods": [ - "queryDatabaseResourceGroups" - ] - }, - "QueryIssues": { - "methods": [ - "queryIssues" - ] - }, - "QueryProducts": { - "methods": [ - "queryProducts" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/resources/database_center_client_config.json b/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/resources/database_center_client_config.json deleted file mode 100644 index 2050a311984..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/resources/database_center_client_config.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "interfaces": { - "google.cloud.databasecenter.v1beta.DatabaseCenter": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ] - }, - "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": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 10000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "AggregateFleet": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "AggregateIssueStats": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "QueryDatabaseResourceGroups": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "QueryIssues": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "QueryProducts": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/resources/database_center_descriptor_config.php b/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/resources/database_center_descriptor_config.php deleted file mode 100644 index 0ef66a4936f..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/resources/database_center_descriptor_config.php +++ /dev/null @@ -1,80 +0,0 @@ - [ - 'google.cloud.databasecenter.v1beta.DatabaseCenter' => [ - 'AggregateFleet' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getRows', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\DatabaseCenter\V1beta\AggregateFleetResponse', - ], - 'AggregateIssueStats' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DatabaseCenter\V1beta\AggregateIssueStatsResponse', - ], - 'QueryDatabaseResourceGroups' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getResourceGroups', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\DatabaseCenter\V1beta\QueryDatabaseResourceGroupsResponse', - ], - 'QueryIssues' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getResourceIssues', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\DatabaseCenter\V1beta\QueryIssuesResponse', - ], - 'QueryProducts' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getProducts', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\DatabaseCenter\V1beta\QueryProductsResponse', - ], - ], - ], -]; diff --git a/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/resources/database_center_rest_client_config.php b/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/resources/database_center_rest_client_config.php deleted file mode 100644 index c0a45ea6cf6..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/src/V1beta/resources/database_center_rest_client_config.php +++ /dev/null @@ -1,52 +0,0 @@ - [ - 'google.cloud.databasecenter.v1beta.DatabaseCenter' => [ - 'AggregateFleet' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta:aggregateFleet', - ], - 'AggregateIssueStats' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta:aggregateIssueStats', - 'body' => '*', - ], - 'QueryDatabaseResourceGroups' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta:queryDatabaseResourceGroups', - 'body' => '*', - ], - 'QueryIssues' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta:queryIssues', - 'body' => '*', - ], - 'QueryProducts' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta:queryProducts', - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/DatabaseCenter/v1beta/tests/Unit/V1beta/Client/DatabaseCenterClientTest.php b/owl-bot-staging/DatabaseCenter/v1beta/tests/Unit/V1beta/Client/DatabaseCenterClientTest.php deleted file mode 100644 index 4bc706b6b72..00000000000 --- a/owl-bot-staging/DatabaseCenter/v1beta/tests/Unit/V1beta/Client/DatabaseCenterClientTest.php +++ /dev/null @@ -1,473 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return DatabaseCenterClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new DatabaseCenterClient($options); - } - - /** @test */ - public function aggregateFleetTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $resourceGroupsTotalCount = 435559878; - $resourceTotalCount = 504460893; - $nextPageToken = ''; - $rowsElement = new AggregateFleetRow(); - $rows = [ - $rowsElement, - ]; - $expectedResponse = new AggregateFleetResponse(); - $expectedResponse->setResourceGroupsTotalCount($resourceGroupsTotalCount); - $expectedResponse->setResourceTotalCount($resourceTotalCount); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setRows($rows); - $transport->addResponse($expectedResponse); - // Mock request - $parent = 'parent-995424086'; - $request = (new AggregateFleetRequest()) - ->setParent($parent); - $response = $gapicClient->aggregateFleet($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getRows()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.databasecenter.v1beta.DatabaseCenter/AggregateFleet', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($parent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function aggregateFleetExceptionTest() - { - $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 - $parent = 'parent-995424086'; - $request = (new AggregateFleetRequest()) - ->setParent($parent); - try { - $gapicClient->aggregateFleet($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 aggregateIssueStatsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $totalResourcesCount = 1148081286; - $totalResourceGroupsCount = 1586193222; - $expectedResponse = new AggregateIssueStatsResponse(); - $expectedResponse->setTotalResourcesCount($totalResourcesCount); - $expectedResponse->setTotalResourceGroupsCount($totalResourceGroupsCount); - $transport->addResponse($expectedResponse); - // Mock request - $parent = 'parent-995424086'; - $request = (new AggregateIssueStatsRequest()) - ->setParent($parent); - $response = $gapicClient->aggregateIssueStats($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.databasecenter.v1beta.DatabaseCenter/AggregateIssueStats', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($parent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function aggregateIssueStatsExceptionTest() - { - $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 - $parent = 'parent-995424086'; - $request = (new AggregateIssueStatsRequest()) - ->setParent($parent); - try { - $gapicClient->aggregateIssueStats($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 queryDatabaseResourceGroupsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $resourceGroupsElement = new DatabaseResourceGroup(); - $resourceGroups = [ - $resourceGroupsElement, - ]; - $expectedResponse = new QueryDatabaseResourceGroupsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setResourceGroups($resourceGroups); - $transport->addResponse($expectedResponse); - // Mock request - $parent = 'parent-995424086'; - $request = (new QueryDatabaseResourceGroupsRequest()) - ->setParent($parent); - $response = $gapicClient->queryDatabaseResourceGroups($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getResourceGroups()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.databasecenter.v1beta.DatabaseCenter/QueryDatabaseResourceGroups', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($parent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryDatabaseResourceGroupsExceptionTest() - { - $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 - $parent = 'parent-995424086'; - $request = (new QueryDatabaseResourceGroupsRequest()) - ->setParent($parent); - try { - $gapicClient->queryDatabaseResourceGroups($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 queryIssuesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $resourceIssuesElement = new DatabaseResourceIssue(); - $resourceIssues = [ - $resourceIssuesElement, - ]; - $expectedResponse = new QueryIssuesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setResourceIssues($resourceIssues); - $transport->addResponse($expectedResponse); - // Mock request - $parent = 'parent-995424086'; - $request = (new QueryIssuesRequest()) - ->setParent($parent); - $response = $gapicClient->queryIssues($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getResourceIssues()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.databasecenter.v1beta.DatabaseCenter/QueryIssues', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($parent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryIssuesExceptionTest() - { - $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 - $parent = 'parent-995424086'; - $request = (new QueryIssuesRequest()) - ->setParent($parent); - try { - $gapicClient->queryIssues($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 queryProductsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $productsElement = new Product(); - $products = [ - $productsElement, - ]; - $expectedResponse = new QueryProductsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setProducts($products); - $transport->addResponse($expectedResponse); - // Mock request - $parent = 'parent-995424086'; - $request = (new QueryProductsRequest()) - ->setParent($parent); - $response = $gapicClient->queryProducts($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getProducts()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.databasecenter.v1beta.DatabaseCenter/QueryProducts', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($parent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryProductsExceptionTest() - { - $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 - $parent = 'parent-995424086'; - $request = (new QueryProductsRequest()) - ->setParent($parent); - try { - $gapicClient->queryProducts($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 aggregateFleetAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $resourceGroupsTotalCount = 435559878; - $resourceTotalCount = 504460893; - $nextPageToken = ''; - $rowsElement = new AggregateFleetRow(); - $rows = [ - $rowsElement, - ]; - $expectedResponse = new AggregateFleetResponse(); - $expectedResponse->setResourceGroupsTotalCount($resourceGroupsTotalCount); - $expectedResponse->setResourceTotalCount($resourceTotalCount); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setRows($rows); - $transport->addResponse($expectedResponse); - // Mock request - $parent = 'parent-995424086'; - $request = (new AggregateFleetRequest()) - ->setParent($parent); - $response = $gapicClient->aggregateFleetAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getRows()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.databasecenter.v1beta.DatabaseCenter/AggregateFleet', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($parent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -}