From 4ac8ef86e604b3de466005f865e6f64bfd7ec67f Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 23 Mar 2026 22:09:04 +0000 Subject: [PATCH 1/2] feat: add locations field to AutomatedBackupPolicy docs: A comment for field `retention_period` in message `.google.bigtable.admin.v2.Table` is changed docs: A comment for field `frequency` in message `.google.bigtable.admin.v2.Table` is changed PiperOrigin-RevId: 888234464 Source-Link: https://github.com/googleapis/googleapis/commit/5993bc685e72fbda796378c146533f7ef6e95d8a Source-Link: https://github.com/googleapis/googleapis-gen/commit/773a76b233a0a2b8ba165129579441cedb68f157 Copy-Tag: eyJwIjoiQmlndGFibGUvLk93bEJvdC55YW1sIiwiaCI6Ijc3M2E3NmIyMzNhMGEyYjhiYTE2NTEyOTU3OTQ0MWNlZGI2OGYxNTcifQ== --- .../Admin/V2/BigtableInstanceAdmin.php | 35 + .../Bigtable/Admin/V2/BigtableTableAdmin.php | 37 + .../Google/Bigtable/Admin/V2/Common.php | 25 + .../Google/Bigtable/Admin/V2/Instance.php | 28 + .../Google/Bigtable/Admin/V2/Table.php | 30 + .../Google/Bigtable/Admin/V2/Types.php | 25 + .../Cloud/Bigtable/Admin/V2/AppProfile.php | 372 ++ .../AppProfile/DataBoostIsolationReadOnly.php | 81 + .../ComputeBillingOwner.php | 57 + .../AppProfile/MultiClusterRoutingUseAny.php | 120 + .../MultiClusterRoutingUseAny/RowAffinity.php | 41 + .../Bigtable/Admin/V2/AppProfile/Priority.php | 64 + .../V2/AppProfile/SingleClusterRouting.php | 111 + .../Admin/V2/AppProfile/StandardIsolation.php | 68 + .../Bigtable/Admin/V2/AuthorizedView.php | 203 + .../Admin/V2/AuthorizedView/FamilySubsets.php | 117 + .../Admin/V2/AuthorizedView/ResponseView.php | 69 + .../Admin/V2/AuthorizedView/SubsetView.php | 109 + .../Bigtable/Admin/V2/AutoscalingLimits.php | 101 + .../Bigtable/Admin/V2/AutoscalingTargets.php | 133 + .../Google/Cloud/Bigtable/Admin/V2/Backup.php | 573 +++ .../Bigtable/Admin/V2/Backup/BackupType.php | 66 + .../Cloud/Bigtable/Admin/V2/Backup/State.php | 62 + .../Cloud/Bigtable/Admin/V2/BackupInfo.php | 243 ++ .../Bigtable/Admin/V2/ChangeStreamConfig.php | 93 + .../Admin/V2/CheckConsistencyRequest.php | 215 ++ .../Admin/V2/CheckConsistencyResponse.php | 72 + .../Cloud/Bigtable/Admin/V2/Cluster.php | 353 ++ .../V2/Cluster/ClusterAutoscalingConfig.php | 121 + .../Admin/V2/Cluster/ClusterConfig.php | 77 + .../Admin/V2/Cluster/EncryptionConfig.php | 100 + .../Admin/V2/Cluster/NodeScalingFactor.php | 64 + .../Cloud/Bigtable/Admin/V2/Cluster/State.php | 82 + .../Cloud/Bigtable/Admin/V2/ColumnFamily.php | 157 + .../Bigtable/Admin/V2/CopyBackupMetadata.php | 172 + .../Bigtable/Admin/V2/CopyBackupRequest.php | 286 ++ .../Admin/V2/CreateAppProfileRequest.php | 217 ++ .../Admin/V2/CreateAuthorizedViewMetadata.php | 169 + .../Admin/V2/CreateAuthorizedViewRequest.php | 189 + .../Admin/V2/CreateBackupMetadata.php | 190 + .../Bigtable/Admin/V2/CreateBackupRequest.php | 199 + .../Admin/V2/CreateClusterMetadata.php | 223 ++ .../CreateClusterMetadata/TableProgress.php | 136 + .../TableProgress/State.php | 73 + .../Admin/V2/CreateClusterRequest.php | 183 + .../Admin/V2/CreateInstanceMetadata.php | 165 + .../Admin/V2/CreateInstanceRequest.php | 234 ++ .../Admin/V2/CreateLogicalViewMetadata.php | 169 + .../Admin/V2/CreateLogicalViewRequest.php | 173 + .../V2/CreateMaterializedViewMetadata.php | 169 + .../V2/CreateMaterializedViewRequest.php | 173 + .../Admin/V2/CreateSchemaBundleMetadata.php | 164 + .../Admin/V2/CreateSchemaBundleRequest.php | 179 + .../V2/CreateTableFromSnapshotMetadata.php | 173 + .../V2/CreateTableFromSnapshotRequest.php | 184 + .../Bigtable/Admin/V2/CreateTableRequest.php | 265 ++ .../Admin/V2/CreateTableRequest/Split.php | 67 + .../Admin/V2/DataBoostReadLocalWrites.php | 34 + .../Admin/V2/DeleteAppProfileRequest.php | 143 + .../Admin/V2/DeleteAuthorizedViewRequest.php | 138 + .../Bigtable/Admin/V2/DeleteBackupRequest.php | 92 + .../Admin/V2/DeleteClusterRequest.php | 86 + .../Admin/V2/DeleteInstanceRequest.php | 86 + .../Admin/V2/DeleteLogicalViewRequest.php | 137 + .../V2/DeleteMaterializedViewRequest.php | 137 + .../Admin/V2/DeleteSchemaBundleRequest.php | 134 + .../Admin/V2/DeleteSnapshotRequest.php | 96 + .../Bigtable/Admin/V2/DeleteTableRequest.php | 92 + .../Bigtable/Admin/V2/DropRowRangeRequest.php | 154 + .../Bigtable/Admin/V2/EncryptionInfo.php | 160 + .../V2/EncryptionInfo/EncryptionType.php | 69 + .../Google/Cloud/Bigtable/Admin/V2/GcRule.php | 180 + .../Bigtable/Admin/V2/GcRule/Intersection.php | 67 + .../Cloud/Bigtable/Admin/V2/GcRule/Union.php | 67 + .../V2/GenerateConsistencyTokenRequest.php | 92 + .../V2/GenerateConsistencyTokenResponse.php | 68 + .../Admin/V2/GetAppProfileRequest.php | 86 + .../Admin/V2/GetAuthorizedViewRequest.php | 130 + .../Bigtable/Admin/V2/GetBackupRequest.php | 92 + .../Bigtable/Admin/V2/GetClusterRequest.php | 86 + .../Bigtable/Admin/V2/GetInstanceRequest.php | 86 + .../Admin/V2/GetLogicalViewRequest.php | 86 + .../Admin/V2/GetMaterializedViewRequest.php | 91 + .../Admin/V2/GetSchemaBundleRequest.php | 92 + .../Bigtable/Admin/V2/GetSnapshotRequest.php | 96 + .../Bigtable/Admin/V2/GetTableRequest.php | 130 + .../Cloud/Bigtable/Admin/V2/HotTablet.php | 315 ++ .../Cloud/Bigtable/Admin/V2/Instance.php | 456 +++ .../Bigtable/Admin/V2/Instance/State.php | 63 + .../Cloud/Bigtable/Admin/V2/Instance/Type.php | 65 + .../Admin/V2/ListAppProfilesRequest.php | 193 + .../Admin/V2/ListAppProfilesResponse.php | 155 + .../Admin/V2/ListAuthorizedViewsRequest.php | 222 ++ .../Admin/V2/ListAuthorizedViewsResponse.php | 110 + .../Bigtable/Admin/V2/ListBackupsRequest.php | 429 +++ .../Bigtable/Admin/V2/ListBackupsResponse.php | 110 + .../Bigtable/Admin/V2/ListClustersRequest.php | 135 + .../Admin/V2/ListClustersResponse.php | 151 + .../Admin/V2/ListHotTabletsRequest.php | 291 ++ .../Admin/V2/ListHotTabletsResponse.php | 125 + .../Admin/V2/ListInstancesRequest.php | 120 + .../Admin/V2/ListInstancesResponse.php | 155 + .../Admin/V2/ListLogicalViewsRequest.php | 175 + .../Admin/V2/ListLogicalViewsResponse.php | 105 + .../Admin/V2/ListMaterializedViewsRequest.php | 175 + .../V2/ListMaterializedViewsResponse.php | 105 + .../Admin/V2/ListSchemaBundlesRequest.php | 180 + .../Admin/V2/ListSchemaBundlesResponse.php | 106 + .../Admin/V2/ListSnapshotsRequest.php | 178 + .../Admin/V2/ListSnapshotsResponse.php | 114 + .../Bigtable/Admin/V2/ListTablesRequest.php | 217 ++ .../Bigtable/Admin/V2/ListTablesResponse.php | 110 + .../Cloud/Bigtable/Admin/V2/LogicalView.php | 189 + .../Bigtable/Admin/V2/MaterializedView.php | 189 + .../Admin/V2/ModifyColumnFamiliesRequest.php | 177 + .../Modification.php | 236 ++ .../Bigtable/Admin/V2/OperationProgress.php | 164 + .../V2/OptimizeRestoredTableMetadata.php | 114 + .../Admin/V2/PartialUpdateClusterMetadata.php | 165 + .../Admin/V2/PartialUpdateClusterRequest.php | 141 + .../Admin/V2/PartialUpdateInstanceRequest.php | 141 + .../Cloud/Bigtable/Admin/V2/ProtoSchema.php | 123 + .../Cloud/Bigtable/Admin/V2/RestoreInfo.php | 112 + .../Bigtable/Admin/V2/RestoreSourceType.php | 54 + .../Admin/V2/RestoreTableMetadata.php | 257 ++ .../Bigtable/Admin/V2/RestoreTableRequest.php | 163 + .../Cloud/Bigtable/Admin/V2/SchemaBundle.php | 163 + .../Cloud/Bigtable/Admin/V2/Snapshot.php | 334 ++ .../Bigtable/Admin/V2/Snapshot/State.php | 63 + .../Admin/V2/SnapshotTableMetadata.php | 169 + .../Admin/V2/SnapshotTableRequest.php | 286 ++ .../Admin/V2/StandardReadRemoteWrites.php | 34 + .../Cloud/Bigtable/Admin/V2/StorageType.php | 61 + .../Google/Cloud/Bigtable/Admin/V2/Table.php | 721 ++++ .../Admin/V2/Table/AutomatedBackupPolicy.php | 179 + .../Bigtable/Admin/V2/Table/ClusterState.php | 117 + .../Table/ClusterState/ReplicationState.php | 90 + .../Admin/V2/Table/TimestampGranularity.php | 56 + .../Cloud/Bigtable/Admin/V2/Table/View.php | 83 + .../Bigtable/Admin/V2/TieredStorageConfig.php | 85 + .../Bigtable/Admin/V2/TieredStorageRule.php | 78 + .../Google/Cloud/Bigtable/Admin/V2/Type.php | 521 +++ .../Bigtable/Admin/V2/Type/Aggregate.php | 281 ++ .../HyperLogLogPlusPlusUniqueCount.php | 39 + .../Bigtable/Admin/V2/Type/Aggregate/Max.php | 35 + .../Bigtable/Admin/V2/Type/Aggregate/Min.php | 35 + .../Bigtable/Admin/V2/Type/Aggregate/Sum.php | 35 + .../Cloud/Bigtable/Admin/V2/Type/Bytes.php | 78 + .../Bigtable/Admin/V2/Type/Bytes/Encoding.php | 75 + .../Admin/V2/Type/Bytes/Encoding/Raw.php | 35 + .../Cloud/Bigtable/Admin/V2/Type/Date.php | 34 + .../Cloud/Bigtable/Admin/V2/Type/Enum.php | 106 + .../Cloud/Bigtable/Admin/V2/Type/Float32.php | 34 + .../Cloud/Bigtable/Admin/V2/Type/Float64.php | 34 + .../Cloud/Bigtable/Admin/V2/Type/Int64.php | 78 + .../Bigtable/Admin/V2/Type/Int64/Encoding.php | 108 + .../V2/Type/Int64/Encoding/BigEndianBytes.php | 94 + .../Type/Int64/Encoding/OrderedCodeBytes.php | 36 + .../Cloud/Bigtable/Admin/V2/Type/Map.php | 131 + .../Cloud/Bigtable/Admin/V2/Type/PBArray.php | 78 + .../Cloud/Bigtable/Admin/V2/Type/PBBool.php | 34 + .../Cloud/Bigtable/Admin/V2/Type/PBString.php | 78 + .../Admin/V2/Type/PBString/Encoding.php | 117 + .../V2/Type/PBString/Encoding/Utf8Bytes.php | 41 + .../V2/Type/PBString/Encoding/Utf8Raw.php | 34 + .../Cloud/Bigtable/Admin/V2/Type/Proto.php | 106 + .../Cloud/Bigtable/Admin/V2/Type/Struct.php | 114 + .../Admin/V2/Type/Struct/Encoding.php | 141 + .../Type/Struct/Encoding/DelimitedBytes.php | 81 + .../Type/Struct/Encoding/OrderedCodeBytes.php | 62 + .../V2/Type/Struct/Encoding/Singleton.php | 34 + .../Bigtable/Admin/V2/Type/Struct/Field.php | 115 + .../Bigtable/Admin/V2/Type/Timestamp.php | 78 + .../Admin/V2/Type/Timestamp/Encoding.php | 84 + .../Admin/V2/UndeleteTableMetadata.php | 156 + .../Admin/V2/UndeleteTableRequest.php | 92 + .../Admin/V2/UpdateAppProfileMetadata.php | 33 + .../Admin/V2/UpdateAppProfileRequest.php | 175 + .../Admin/V2/UpdateAuthorizedViewMetadata.php | 170 + .../Admin/V2/UpdateAuthorizedViewRequest.php | 220 ++ .../Bigtable/Admin/V2/UpdateBackupRequest.php | 173 + .../Admin/V2/UpdateClusterMetadata.php | 165 + .../Admin/V2/UpdateInstanceMetadata.php | 165 + .../Admin/V2/UpdateLogicalViewMetadata.php | 169 + .../Admin/V2/UpdateLogicalViewRequest.php | 152 + .../V2/UpdateMaterializedViewMetadata.php | 169 + .../V2/UpdateMaterializedViewRequest.php | 152 + .../Admin/V2/UpdateSchemaBundleMetadata.php | 164 + .../Admin/V2/UpdateSchemaBundleRequest.php | 199 + .../Bigtable/Admin/V2/UpdateTableMetadata.php | 156 + .../Bigtable/Admin/V2/UpdateTableRequest.php | 228 ++ .../create_app_profile.php | 79 + .../create_cluster.php | 97 + .../create_instance.php | 107 + .../create_logical_view.php | 96 + .../create_materialized_view.php | 96 + .../delete_app_profile.php | 78 + .../delete_cluster.php | 70 + .../delete_instance.php | 70 + .../delete_logical_view.php | 75 + .../delete_materialized_view.php | 75 + .../get_app_profile.php | 76 + .../get_cluster.php | 72 + .../get_iam_policy.php | 72 + .../get_instance.php | 72 + .../get_logical_view.php | 76 + .../get_materialized_view.php | 77 + .../list_app_profiles.php | 80 + .../list_clusters.php | 75 + .../list_hot_tablets.php | 79 + .../list_instances.php | 72 + .../list_logical_views.php | 78 + .../list_materialized_views.php | 78 + .../partial_update_cluster.php | 85 + .../partial_update_instance.php | 90 + .../set_iam_policy.php | 74 + .../test_iam_permissions.php | 78 + .../update_app_profile.php | 74 + .../update_cluster.php | 91 + .../update_instance.php | 83 + .../update_logical_view.php | 84 + .../update_materialized_view.php | 84 + .../check_consistency.php | 78 + .../BigtableTableAdminClient/copy_backup.php | 115 + .../create_authorized_view.php | 93 + .../create_backup.php | 113 + .../create_schema_bundle.php | 91 + .../BigtableTableAdminClient/create_table.php | 81 + .../create_table_from_snapshot.php | 110 + .../delete_authorized_view.php | 76 + .../delete_backup.php | 76 + .../delete_schema_bundle.php | 76 + .../delete_snapshot.php | 82 + .../BigtableTableAdminClient/delete_table.php | 71 + .../drop_row_range.php | 73 + .../generate_consistency_token.php | 76 + .../get_authorized_view.php | 78 + .../BigtableTableAdminClient/get_backup.php | 78 + .../get_iam_policy.php | 73 + .../get_schema_bundle.php | 78 + .../BigtableTableAdminClient/get_snapshot.php | 84 + .../V2/BigtableTableAdminClient/get_table.php | 73 + .../list_authorized_views.php | 78 + .../BigtableTableAdminClient/list_backups.php | 80 + .../list_schema_bundles.php | 78 + .../list_snapshots.php | 86 + .../BigtableTableAdminClient/list_tables.php | 77 + .../modify_column_families.php | 79 + .../restore_table.php | 96 + .../set_iam_policy.php | 74 + .../snapshot_table.php | 107 + .../test_iam_permissions.php | 79 + .../undelete_table.php | 85 + .../update_authorized_view.php | 71 + .../update_backup.php | 80 + .../update_schema_bundle.php | 71 + .../BigtableTableAdminClient/update_table.php | 74 + .../V2/Client/BigtableInstanceAdminClient.php | 1366 +++++++ .../V2/Client/BigtableTableAdminClient.php | 1540 ++++++++ .../v2/Admin/src/V2/gapic_metadata.json | 357 ++ ...bigtable_instance_admin_client_config.json | 181 + ...table_instance_admin_descriptor_config.php | 517 +++ ...able_instance_admin_rest_client_config.php | 496 +++ .../bigtable_table_admin_client_config.json | 201 + ...bigtable_table_admin_descriptor_config.php | 580 +++ ...igtable_table_admin_rest_client_config.php | 550 +++ .../BigtableInstanceAdminClientTest.php | 3054 +++++++++++++++ .../Client/BigtableTableAdminClientTest.php | 3274 +++++++++++++++++ .../Google/Bigtable/V2/Bigtable.php | 36 + .../GPBMetadata/Google/Bigtable/V2/Data.php | 28 + .../Google/Bigtable/V2/FeatureFlags.php | 24 + .../Google/Bigtable/V2/PeerInfo.php | 24 + .../Google/Bigtable/V2/RequestStats.php | 25 + .../Google/Bigtable/V2/ResponseParams.php | 24 + .../GPBMetadata/Google/Bigtable/V2/Types.php | 25 + .../Google/Cloud/Bigtable/V2/ArrayValue.php | 67 + .../src/Google/Cloud/Bigtable/V2/Cell.php | 163 + .../Bigtable/V2/CheckAndMutateRowRequest.php | 436 +++ .../Bigtable/V2/CheckAndMutateRowResponse.php | 71 + .../src/Google/Cloud/Bigtable/V2/Column.php | 118 + .../Cloud/Bigtable/V2/ColumnMetadata.php | 111 + .../Google/Cloud/Bigtable/V2/ColumnRange.php | 220 ++ .../Cloud/Bigtable/V2/ExecuteQueryRequest.php | 483 +++ .../Bigtable/V2/ExecuteQueryResponse.php | 117 + .../src/Google/Cloud/Bigtable/V2/Family.php | 122 + .../Google/Cloud/Bigtable/V2/FeatureFlags.php | 412 +++ .../Cloud/Bigtable/V2/FullReadStatsView.php | 137 + ...teInitialChangeStreamPartitionsRequest.php | 160 + ...eInitialChangeStreamPartitionsResponse.php | 78 + .../Google/Cloud/Bigtable/V2/Idempotency.php | 133 + .../Cloud/Bigtable/V2/MutateRowRequest.php | 338 ++ .../Cloud/Bigtable/V2/MutateRowResponse.php | 33 + .../Cloud/Bigtable/V2/MutateRowsRequest.php | 264 ++ .../Bigtable/V2/MutateRowsRequest/Entry.php | 157 + .../Cloud/Bigtable/V2/MutateRowsResponse.php | 119 + .../Bigtable/V2/MutateRowsResponse/Entry.php | 127 + .../src/Google/Cloud/Bigtable/V2/Mutation.php | 240 ++ .../Cloud/Bigtable/V2/Mutation/AddToCell.php | 219 ++ .../Bigtable/V2/Mutation/DeleteFromColumn.php | 154 + .../Bigtable/V2/Mutation/DeleteFromFamily.php | 71 + .../Bigtable/V2/Mutation/DeleteFromRow.php | 33 + .../Bigtable/V2/Mutation/MergeToCell.php | 224 ++ .../Cloud/Bigtable/V2/Mutation/SetCell.php | 193 + .../Cloud/Bigtable/V2/PartialResultSet.php | 391 ++ .../src/Google/Cloud/Bigtable/V2/PeerInfo.php | 209 ++ .../Bigtable/V2/PeerInfo/TransportType.php | 100 + .../Cloud/Bigtable/V2/PingAndWarmRequest.php | 148 + .../Cloud/Bigtable/V2/PingAndWarmResponse.php | 33 + .../Cloud/Bigtable/V2/PrepareQueryRequest.php | 308 ++ .../Bigtable/V2/PrepareQueryResponse.php | 171 + .../Google/Cloud/Bigtable/V2/ProtoFormat.php | 34 + .../Google/Cloud/Bigtable/V2/ProtoRows.php | 78 + .../Cloud/Bigtable/V2/ProtoRowsBatch.php | 83 + .../Google/Cloud/Bigtable/V2/ProtoSchema.php | 67 + .../Cloud/Bigtable/V2/RateLimitInfo.php | 159 + .../Bigtable/V2/ReadChangeStreamRequest.php | 412 +++ .../Bigtable/V2/ReadChangeStreamResponse.php | 142 + .../ReadChangeStreamResponse/CloseStream.php | 176 + .../ReadChangeStreamResponse/DataChange.php | 436 +++ .../DataChange/Type.php | 69 + .../V2/ReadChangeStreamResponse/Heartbeat.php | 146 + .../MutationChunk.php | 133 + .../MutationChunk/ChunkInfo.php | 141 + .../Cloud/Bigtable/V2/ReadIterationStats.php | 179 + .../Bigtable/V2/ReadModifyWriteRowRequest.php | 302 ++ .../V2/ReadModifyWriteRowResponse.php | 77 + .../Cloud/Bigtable/V2/ReadModifyWriteRule.php | 204 + .../Cloud/Bigtable/V2/ReadRowsRequest.php | 468 +++ .../V2/ReadRowsRequest/RequestStatsView.php | 64 + .../Cloud/Bigtable/V2/ReadRowsResponse.php | 185 + .../V2/ReadRowsResponse/CellChunk.php | 557 +++ .../Cloud/Bigtable/V2/RequestLatencyStats.php | 135 + .../Google/Cloud/Bigtable/V2/RequestStats.php | 80 + .../Cloud/Bigtable/V2/ResponseParams.php | 169 + .../Cloud/Bigtable/V2/ResultSetMetadata.php | 75 + .../src/Google/Cloud/Bigtable/V2/Row.php | 114 + .../Google/Cloud/Bigtable/V2/RowFilter.php | 990 +++++ .../Cloud/Bigtable/V2/RowFilter/Chain.php | 75 + .../Cloud/Bigtable/V2/RowFilter/Condition.php | 186 + .../Bigtable/V2/RowFilter/Interleave.php | 156 + .../src/Google/Cloud/Bigtable/V2/RowRange.php | 183 + .../src/Google/Cloud/Bigtable/V2/RowSet.php | 101 + .../Bigtable/V2/SampleRowKeysRequest.php | 238 ++ .../Bigtable/V2/SampleRowKeysResponse.php | 137 + .../Bigtable/V2/StreamContinuationToken.php | 113 + .../Bigtable/V2/StreamContinuationTokens.php | 69 + .../Cloud/Bigtable/V2/StreamPartition.php | 82 + .../Cloud/Bigtable/V2/TimestampRange.php | 101 + .../src/Google/Cloud/Bigtable/V2/Type.php | 521 +++ .../Cloud/Bigtable/V2/Type/Aggregate.php | 277 ++ .../HyperLogLogPlusPlusUniqueCount.php | 39 + .../Cloud/Bigtable/V2/Type/Aggregate/Max.php | 35 + .../Cloud/Bigtable/V2/Type/Aggregate/Min.php | 35 + .../Cloud/Bigtable/V2/Type/Aggregate/Sum.php | 35 + .../Google/Cloud/Bigtable/V2/Type/Bytes.php | 78 + .../Cloud/Bigtable/V2/Type/Bytes/Encoding.php | 75 + .../Bigtable/V2/Type/Bytes/Encoding/Raw.php | 77 + .../Google/Cloud/Bigtable/V2/Type/Date.php | 34 + .../Google/Cloud/Bigtable/V2/Type/Enum.php | 106 + .../Google/Cloud/Bigtable/V2/Type/Float32.php | 34 + .../Google/Cloud/Bigtable/V2/Type/Float64.php | 34 + .../Google/Cloud/Bigtable/V2/Type/Int64.php | 78 + .../Cloud/Bigtable/V2/Type/Int64/Encoding.php | 108 + .../V2/Type/Int64/Encoding/BigEndianBytes.php | 94 + .../Type/Int64/Encoding/OrderedCodeBytes.php | 36 + .../src/Google/Cloud/Bigtable/V2/Type/Map.php | 131 + .../Google/Cloud/Bigtable/V2/Type/PBArray.php | 78 + .../Google/Cloud/Bigtable/V2/Type/PBBool.php | 34 + .../Cloud/Bigtable/V2/Type/PBString.php | 78 + .../Bigtable/V2/Type/PBString/Encoding.php | 117 + .../V2/Type/PBString/Encoding/Utf8Bytes.php | 99 + .../V2/Type/PBString/Encoding/Utf8Raw.php | 34 + .../Google/Cloud/Bigtable/V2/Type/Proto.php | 106 + .../Google/Cloud/Bigtable/V2/Type/Struct.php | 114 + .../Bigtable/V2/Type/Struct/Encoding.php | 141 + .../Type/Struct/Encoding/DelimitedBytes.php | 81 + .../Type/Struct/Encoding/OrderedCodeBytes.php | 64 + .../V2/Type/Struct/Encoding/Singleton.php | 34 + .../Cloud/Bigtable/V2/Type/Struct/Field.php | 115 + .../Cloud/Bigtable/V2/Type/Timestamp.php | 78 + .../Bigtable/V2/Type/Timestamp/Encoding.php | 84 + .../src/Google/Cloud/Bigtable/V2/Value.php | 480 +++ .../Google/Cloud/Bigtable/V2/ValueRange.php | 183 + .../BigtableClient/check_and_mutate_row.php | 79 + .../V2/BigtableClient/execute_query.php | 86 + ...erate_initial_change_stream_partitions.php | 82 + .../samples/V2/BigtableClient/mutate_row.php | 82 + .../samples/V2/BigtableClient/mutate_rows.php | 89 + .../V2/BigtableClient/ping_and_warm.php | 74 + .../V2/BigtableClient/prepare_query.php | 78 + .../V2/BigtableClient/read_change_stream.php | 82 + .../BigtableClient/read_modify_write_row.php | 86 + .../samples/V2/BigtableClient/read_rows.php | 83 + .../V2/BigtableClient/sample_row_keys.php | 82 + .../v2/src/V2/Client/BigtableClient.php | 633 ++++ .../Bigtable/v2/src/V2/gapic_metadata.json | 73 + .../V2/resources/bigtable_client_config.json | 69 + .../resources/bigtable_descriptor_config.php | 289 ++ .../resources/bigtable_rest_client_config.php | 250 ++ .../Unit/V2/Client/BigtableClientTest.php | 966 +++++ 400 files changed, 64382 insertions(+) create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/BigtableInstanceAdmin.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/BigtableTableAdmin.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/Common.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/Instance.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/Table.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/Types.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/DataBoostIsolationReadOnly.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/DataBoostIsolationReadOnly/ComputeBillingOwner.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/MultiClusterRoutingUseAny.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/MultiClusterRoutingUseAny/RowAffinity.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/Priority.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/SingleClusterRouting.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/StandardIsolation.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AuthorizedView.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AuthorizedView/FamilySubsets.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AuthorizedView/ResponseView.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AuthorizedView/SubsetView.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AutoscalingLimits.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AutoscalingTargets.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Backup.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Backup/BackupType.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Backup/State.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/BackupInfo.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ChangeStreamConfig.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CheckConsistencyRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CheckConsistencyResponse.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/ClusterAutoscalingConfig.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/ClusterConfig.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/EncryptionConfig.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/NodeScalingFactor.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/State.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ColumnFamily.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CopyBackupMetadata.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CopyBackupRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateAppProfileRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateAuthorizedViewMetadata.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateAuthorizedViewRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateBackupMetadata.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateBackupRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateClusterMetadata.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateClusterMetadata/TableProgress.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateClusterMetadata/TableProgress/State.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateClusterRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateInstanceMetadata.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateInstanceRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateLogicalViewMetadata.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateLogicalViewRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateMaterializedViewMetadata.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateMaterializedViewRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateSchemaBundleMetadata.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateSchemaBundleRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateTableFromSnapshotMetadata.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateTableFromSnapshotRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateTableRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateTableRequest/Split.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DataBoostReadLocalWrites.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteAppProfileRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteAuthorizedViewRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteBackupRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteClusterRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteInstanceRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteLogicalViewRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteMaterializedViewRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteSchemaBundleRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteSnapshotRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteTableRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DropRowRangeRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/EncryptionInfo.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/EncryptionInfo/EncryptionType.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GcRule.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GcRule/Intersection.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GcRule/Union.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GenerateConsistencyTokenRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GenerateConsistencyTokenResponse.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetAppProfileRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetAuthorizedViewRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetBackupRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetClusterRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetInstanceRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetLogicalViewRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetMaterializedViewRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetSchemaBundleRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetSnapshotRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetTableRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/HotTablet.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Instance.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Instance/State.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Instance/Type.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListAppProfilesRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListAppProfilesResponse.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListAuthorizedViewsRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListAuthorizedViewsResponse.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListBackupsRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListBackupsResponse.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListClustersRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListClustersResponse.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListHotTabletsRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListHotTabletsResponse.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListInstancesRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListInstancesResponse.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListLogicalViewsRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListLogicalViewsResponse.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListMaterializedViewsRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListMaterializedViewsResponse.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListSchemaBundlesRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListSchemaBundlesResponse.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListSnapshotsRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListSnapshotsResponse.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListTablesRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListTablesResponse.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/LogicalView.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/MaterializedView.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ModifyColumnFamiliesRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ModifyColumnFamiliesRequest/Modification.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/OperationProgress.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/OptimizeRestoredTableMetadata.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/PartialUpdateClusterMetadata.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/PartialUpdateClusterRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/PartialUpdateInstanceRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ProtoSchema.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/RestoreInfo.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/RestoreSourceType.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/RestoreTableMetadata.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/RestoreTableRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/SchemaBundle.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Snapshot.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Snapshot/State.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/SnapshotTableMetadata.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/SnapshotTableRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/StandardReadRemoteWrites.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/StorageType.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/AutomatedBackupPolicy.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/ClusterState.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/ClusterState/ReplicationState.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/TimestampGranularity.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/View.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/TieredStorageConfig.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/TieredStorageRule.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate/HyperLogLogPlusPlusUniqueCount.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate/Max.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate/Min.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate/Sum.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Bytes.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Bytes/Encoding.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Bytes/Encoding/Raw.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Date.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Enum.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Float32.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Float64.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Int64.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Int64/Encoding.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Int64/Encoding/BigEndianBytes.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Int64/Encoding/OrderedCodeBytes.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Map.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBArray.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBBool.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBString.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBString/Encoding.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBString/Encoding/Utf8Bytes.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBString/Encoding/Utf8Raw.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Proto.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Encoding.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Encoding/DelimitedBytes.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Encoding/OrderedCodeBytes.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Encoding/Singleton.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Field.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Timestamp.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Timestamp/Encoding.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UndeleteTableMetadata.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UndeleteTableRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateAppProfileMetadata.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateAppProfileRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateAuthorizedViewMetadata.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateAuthorizedViewRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateBackupRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateClusterMetadata.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateInstanceMetadata.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateLogicalViewMetadata.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateLogicalViewRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateMaterializedViewMetadata.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateMaterializedViewRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateSchemaBundleMetadata.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateSchemaBundleRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateTableMetadata.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateTableRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_app_profile.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_cluster.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_instance.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_logical_view.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_materialized_view.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_app_profile.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_cluster.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_instance.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_logical_view.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_materialized_view.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_app_profile.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_cluster.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_iam_policy.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_instance.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_logical_view.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_materialized_view.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_app_profiles.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_clusters.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_hot_tablets.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_instances.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_logical_views.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_materialized_views.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/partial_update_cluster.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/partial_update_instance.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/set_iam_policy.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/test_iam_permissions.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_app_profile.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_cluster.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_instance.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_logical_view.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_materialized_view.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/check_consistency.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/copy_backup.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_authorized_view.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_backup.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_schema_bundle.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_table.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_table_from_snapshot.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_authorized_view.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_backup.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_schema_bundle.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_snapshot.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_table.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/drop_row_range.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/generate_consistency_token.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_authorized_view.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_backup.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_iam_policy.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_schema_bundle.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_snapshot.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_table.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_authorized_views.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_backups.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_schema_bundles.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_snapshots.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_tables.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/modify_column_families.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/restore_table.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/set_iam_policy.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/snapshot_table.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/test_iam_permissions.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/undelete_table.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/update_authorized_view.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/update_backup.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/update_schema_bundle.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/update_table.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/src/V2/Client/BigtableInstanceAdminClient.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/src/V2/Client/BigtableTableAdminClient.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/src/V2/gapic_metadata.json create mode 100644 owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_instance_admin_client_config.json create mode 100644 owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_instance_admin_descriptor_config.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_instance_admin_rest_client_config.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_table_admin_client_config.json create mode 100644 owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_table_admin_descriptor_config.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_table_admin_rest_client_config.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/tests/Unit/V2/Client/BigtableInstanceAdminClientTest.php create mode 100644 owl-bot-staging/Bigtable/v2/Admin/tests/Unit/V2/Client/BigtableTableAdminClientTest.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/Bigtable.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/Data.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/FeatureFlags.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/PeerInfo.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/RequestStats.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/ResponseParams.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/Types.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ArrayValue.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Cell.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/CheckAndMutateRowRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/CheckAndMutateRowResponse.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Column.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ColumnMetadata.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ColumnRange.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ExecuteQueryRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ExecuteQueryResponse.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Family.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/FeatureFlags.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/FullReadStatsView.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/GenerateInitialChangeStreamPartitionsRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/GenerateInitialChangeStreamPartitionsResponse.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Idempotency.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowResponse.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowsRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowsRequest/Entry.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowsResponse.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowsResponse/Entry.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/AddToCell.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/DeleteFromColumn.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/DeleteFromFamily.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/DeleteFromRow.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/MergeToCell.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/SetCell.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PartialResultSet.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PeerInfo.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PeerInfo/TransportType.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PingAndWarmRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PingAndWarmResponse.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PrepareQueryRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PrepareQueryResponse.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ProtoFormat.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ProtoRows.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ProtoRowsBatch.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ProtoSchema.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RateLimitInfo.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/CloseStream.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/DataChange.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/DataChange/Type.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/Heartbeat.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/MutationChunk.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/MutationChunk/ChunkInfo.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadIterationStats.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadModifyWriteRowRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadModifyWriteRowResponse.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadModifyWriteRule.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadRowsRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadRowsRequest/RequestStatsView.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadRowsResponse.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadRowsResponse/CellChunk.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RequestLatencyStats.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RequestStats.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ResponseParams.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ResultSetMetadata.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Row.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowFilter.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowFilter/Chain.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowFilter/Condition.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowFilter/Interleave.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowRange.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowSet.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/SampleRowKeysRequest.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/SampleRowKeysResponse.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/StreamContinuationToken.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/StreamContinuationTokens.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/StreamPartition.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/TimestampRange.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate/HyperLogLogPlusPlusUniqueCount.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate/Max.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate/Min.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate/Sum.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Bytes.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Bytes/Encoding.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Bytes/Encoding/Raw.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Date.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Enum.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Float32.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Float64.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Int64.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Int64/Encoding.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Int64/Encoding/BigEndianBytes.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Int64/Encoding/OrderedCodeBytes.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Map.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBArray.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBBool.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBString.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBString/Encoding.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBString/Encoding/Utf8Bytes.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBString/Encoding/Utf8Raw.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Proto.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Encoding.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Encoding/DelimitedBytes.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Encoding/OrderedCodeBytes.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Encoding/Singleton.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Field.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Timestamp.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Timestamp/Encoding.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Value.php create mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ValueRange.php create mode 100644 owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/check_and_mutate_row.php create mode 100644 owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/execute_query.php create mode 100644 owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/generate_initial_change_stream_partitions.php create mode 100644 owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/mutate_row.php create mode 100644 owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/mutate_rows.php create mode 100644 owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/ping_and_warm.php create mode 100644 owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/prepare_query.php create mode 100644 owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/read_change_stream.php create mode 100644 owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/read_modify_write_row.php create mode 100644 owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/read_rows.php create mode 100644 owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/sample_row_keys.php create mode 100644 owl-bot-staging/Bigtable/v2/src/V2/Client/BigtableClient.php create mode 100644 owl-bot-staging/Bigtable/v2/src/V2/gapic_metadata.json create mode 100644 owl-bot-staging/Bigtable/v2/src/V2/resources/bigtable_client_config.json create mode 100644 owl-bot-staging/Bigtable/v2/src/V2/resources/bigtable_descriptor_config.php create mode 100644 owl-bot-staging/Bigtable/v2/src/V2/resources/bigtable_rest_client_config.php create mode 100644 owl-bot-staging/Bigtable/v2/tests/Unit/V2/Client/BigtableClientTest.php diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/BigtableInstanceAdmin.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/BigtableInstanceAdmin.php new file mode 100644 index 000000000000..51a2dba513a4 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/BigtableInstanceAdmin.php @@ -0,0 +1,35 @@ +internalAddGeneratedFile( + "\x0A\xDDp\x0A6google/bigtable/admin/v2/bigtable_instance_admin.proto\x12\x18google.bigtable.admin.v2\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A'google/bigtable/admin/v2/instance.proto\x1A\x1Egoogle/iam/v1/iam_policy.proto\x1A\x1Agoogle/iam/v1/policy.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xDB\x02\x0A\x15CreateInstanceRequest\x12C\x0A\x06parent\x18\x01 \x01(\x09B3\xE0A\x02\xFAA-\x0A+cloudresourcemanager.googleapis.com/Project\x12\x18\x0A\x0Binstance_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x129\x0A\x08instance\x18\x03 \x01(\x0B2\".google.bigtable.admin.v2.InstanceB\x03\xE0A\x02\x12T\x0A\x08clusters\x18\x04 \x03(\x0B2=.google.bigtable.admin.v2.CreateInstanceRequest.ClustersEntryB\x03\xE0A\x02\x1AR\x0A\x0DClustersEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x120\x0A\x05value\x18\x02 \x01(\x0B2!.google.bigtable.admin.v2.Cluster:\x028\x01\"Q\x0A\x12GetInstanceRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%bigtableadmin.googleapis.com/Instance\"o\x0A\x14ListInstancesRequest\x12C\x0A\x06parent\x18\x01 \x01(\x09B3\xE0A\x02\xFAA-\x0A+cloudresourcemanager.googleapis.com/Project\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\"\x81\x01\x0A\x15ListInstancesResponse\x125\x0A\x09instances\x18\x01 \x03(\x0B2\".google.bigtable.admin.v2.Instance\x12\x18\x0A\x10failed_locations\x18\x02 \x03(\x09\x12\x17\x0A\x0Fnext_page_token\x18\x03 \x01(\x09\"\x8F\x01\x0A\x1CPartialUpdateInstanceRequest\x129\x0A\x08instance\x18\x01 \x01(\x0B2\".google.bigtable.admin.v2.InstanceB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\"T\x0A\x15DeleteInstanceRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%bigtableadmin.googleapis.com/Instance\"\xA7\x01\x0A\x14CreateClusterRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%bigtableadmin.googleapis.com/Instance\x12\x17\x0A\x0Acluster_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x127\x0A\x07cluster\x18\x03 \x01(\x0B2!.google.bigtable.admin.v2.ClusterB\x03\xE0A\x02\"O\x0A\x11GetClusterRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$bigtableadmin.googleapis.com/Cluster\"h\x0A\x13ListClustersRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%bigtableadmin.googleapis.com/Instance\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\"~\x0A\x14ListClustersResponse\x123\x0A\x08clusters\x18\x01 \x03(\x0B2!.google.bigtable.admin.v2.Cluster\x12\x18\x0A\x10failed_locations\x18\x02 \x03(\x09\x12\x17\x0A\x0Fnext_page_token\x18\x03 \x01(\x09\"R\x0A\x14DeleteClusterRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$bigtableadmin.googleapis.com/Cluster\"\xC6\x01\x0A\x16CreateInstanceMetadata\x12I\x0A\x10original_request\x18\x01 \x01(\x0B2/.google.bigtable.admin.v2.CreateInstanceRequest\x120\x0A\x0Crequest_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bfinish_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\"\xCD\x01\x0A\x16UpdateInstanceMetadata\x12P\x0A\x10original_request\x18\x01 \x01(\x0B26.google.bigtable.admin.v2.PartialUpdateInstanceRequest\x120\x0A\x0Crequest_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bfinish_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\"\xFB\x04\x0A\x15CreateClusterMetadata\x12H\x0A\x10original_request\x18\x01 \x01(\x0B2..google.bigtable.admin.v2.CreateClusterRequest\x120\x0A\x0Crequest_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bfinish_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12K\x0A\x06tables\x18\x04 \x03(\x0B2;.google.bigtable.admin.v2.CreateClusterMetadata.TablesEntry\x1A\xF9\x01\x0A\x0DTableProgress\x12\x1C\x0A\x14estimated_size_bytes\x18\x02 \x01(\x03\x12\x1E\x0A\x16estimated_copied_bytes\x18\x03 \x01(\x03\x12R\x0A\x05state\x18\x04 \x01(\x0E2C.google.bigtable.admin.v2.CreateClusterMetadata.TableProgress.State\"V\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PENDING\x10\x01\x12\x0B\x0A\x07COPYING\x10\x02\x12\x0D\x0A\x09COMPLETED\x10\x03\x12\x0D\x0A\x09CANCELLED\x10\x04\x1Al\x0A\x0BTablesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12L\x0A\x05value\x18\x02 \x01(\x0B2=.google.bigtable.admin.v2.CreateClusterMetadata.TableProgress:\x028\x01\"\xB7\x01\x0A\x15UpdateClusterMetadata\x12;\x0A\x10original_request\x18\x01 \x01(\x0B2!.google.bigtable.admin.v2.Cluster\x120\x0A\x0Crequest_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bfinish_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\"\xD2\x01\x0A\x1CPartialUpdateClusterMetadata\x120\x0A\x0Crequest_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bfinish_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12O\x0A\x10original_request\x18\x03 \x01(\x0B25.google.bigtable.admin.v2.PartialUpdateClusterRequest\"\x8C\x01\x0A\x1BPartialUpdateClusterRequest\x127\x0A\x07cluster\x18\x01 \x01(\x0B2!.google.bigtable.admin.v2.ClusterB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\"\xCE\x01\x0A\x17CreateAppProfileRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%bigtableadmin.googleapis.com/Instance\x12\x1B\x0A\x0Eapp_profile_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12>\x0A\x0Bapp_profile\x18\x03 \x01(\x0B2\$.google.bigtable.admin.v2.AppProfileB\x03\xE0A\x02\x12\x17\x0A\x0Fignore_warnings\x18\x04 \x01(\x08\"U\x0A\x14GetAppProfileRequest\x12=\x0A\x04name\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x0A'bigtableadmin.googleapis.com/AppProfile\"~\x0A\x16ListAppProfilesRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%bigtableadmin.googleapis.com/Instance\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\"\x88\x01\x0A\x17ListAppProfilesResponse\x12:\x0A\x0Capp_profiles\x18\x01 \x03(\x0B2\$.google.bigtable.admin.v2.AppProfile\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x18\x0A\x10failed_locations\x18\x03 \x03(\x09\"\xA8\x01\x0A\x17UpdateAppProfileRequest\x12>\x0A\x0Bapp_profile\x18\x01 \x01(\x0B2\$.google.bigtable.admin.v2.AppProfileB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x17\x0A\x0Fignore_warnings\x18\x03 \x01(\x08\"v\x0A\x17DeleteAppProfileRequest\x12=\x0A\x04name\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x0A'bigtableadmin.googleapis.com/AppProfile\x12\x1C\x0A\x0Fignore_warnings\x18\x02 \x01(\x08B\x03\xE0A\x02\"\x1A\x0A\x18UpdateAppProfileMetadata\"\xDA\x01\x0A\x15ListHotTabletsRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$bigtableadmin.googleapis.com/Cluster\x12.\x0A\x0Astart_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x11\x0A\x09page_size\x18\x04 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x05 \x01(\x09\"k\x0A\x16ListHotTabletsResponse\x128\x0A\x0Bhot_tablets\x18\x01 \x03(\x0B2#.google.bigtable.admin.v2.HotTablet\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xB9\x01\x0A\x18CreateLogicalViewRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%bigtableadmin.googleapis.com/Instance\x12\x1C\x0A\x0Flogical_view_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12@\x0A\x0Clogical_view\x18\x03 \x01(\x0B2%.google.bigtable.admin.v2.LogicalViewB\x03\xE0A\x02\"\xC7\x01\x0A\x19CreateLogicalViewMetadata\x12L\x0A\x10original_request\x18\x01 \x01(\x0B22.google.bigtable.admin.v2.CreateLogicalViewRequest\x12.\x0A\x0Astart_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\"W\x0A\x15GetLogicalViewRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(bigtableadmin.googleapis.com/LogicalView\"\x8C\x01\x0A\x17ListLogicalViewsRequest\x12@\x0A\x06parent\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x12(bigtableadmin.googleapis.com/LogicalView\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"q\x0A\x18ListLogicalViewsResponse\x12<\x0A\x0Dlogical_views\x18\x01 \x03(\x0B2%.google.bigtable.admin.v2.LogicalView\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x92\x01\x0A\x18UpdateLogicalViewRequest\x12@\x0A\x0Clogical_view\x18\x01 \x01(\x0B2%.google.bigtable.admin.v2.LogicalViewB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"\xC7\x01\x0A\x19UpdateLogicalViewMetadata\x12L\x0A\x10original_request\x18\x01 \x01(\x0B22.google.bigtable.admin.v2.UpdateLogicalViewRequest\x12.\x0A\x0Astart_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\"m\x0A\x18DeleteLogicalViewRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(bigtableadmin.googleapis.com/LogicalView\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\"\xCD\x01\x0A\x1DCreateMaterializedViewRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%bigtableadmin.googleapis.com/Instance\x12!\x0A\x14materialized_view_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12J\x0A\x11materialized_view\x18\x03 \x01(\x0B2*.google.bigtable.admin.v2.MaterializedViewB\x03\xE0A\x02\"\xD1\x01\x0A\x1ECreateMaterializedViewMetadata\x12Q\x0A\x10original_request\x18\x01 \x01(\x0B27.google.bigtable.admin.v2.CreateMaterializedViewRequest\x12.\x0A\x0Astart_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\"a\x0A\x1AGetMaterializedViewRequest\x12C\x0A\x04name\x18\x01 \x01(\x09B5\xE0A\x02\xFAA/\x0A-bigtableadmin.googleapis.com/MaterializedView\"\x96\x01\x0A\x1CListMaterializedViewsRequest\x12E\x0A\x06parent\x18\x01 \x01(\x09B5\xE0A\x02\xFAA/\x12-bigtableadmin.googleapis.com/MaterializedView\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"\x80\x01\x0A\x1DListMaterializedViewsResponse\x12F\x0A\x12materialized_views\x18\x01 \x03(\x0B2*.google.bigtable.admin.v2.MaterializedView\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xA1\x01\x0A\x1DUpdateMaterializedViewRequest\x12J\x0A\x11materialized_view\x18\x01 \x01(\x0B2*.google.bigtable.admin.v2.MaterializedViewB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"\xD1\x01\x0A\x1EUpdateMaterializedViewMetadata\x12Q\x0A\x10original_request\x18\x01 \x01(\x0B27.google.bigtable.admin.v2.UpdateMaterializedViewRequest\x12.\x0A\x0Astart_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\"w\x0A\x1DDeleteMaterializedViewRequest\x12C\x0A\x04name\x18\x01 \x01(\x09B5\xE0A\x02\xFAA/\x0A-bigtableadmin.googleapis.com/MaterializedView\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x012\xE66\x0A\x15BigtableInstanceAdmin\x12\xDA\x01\x0A\x0ECreateInstance\x12/.google.bigtable.admin.v2.CreateInstanceRequest\x1A\x1D.google.longrunning.Operation\"x\xCAA\"\x0A\x08Instance\x12\x16CreateInstanceMetadata\xDAA\$parent,instance_id,instance,clusters\x82\xD3\xE4\x93\x02&\"!/v2/{parent=projects/*}/instances:\x01*\x12\x91\x01\x0A\x0BGetInstance\x12,.google.bigtable.admin.v2.GetInstanceRequest\x1A\".google.bigtable.admin.v2.Instance\"0\xDAA\x04name\x82\xD3\xE4\x93\x02#\x12!/v2/{name=projects/*/instances/*}\x12\xA4\x01\x0A\x0DListInstances\x12..google.bigtable.admin.v2.ListInstancesRequest\x1A/.google.bigtable.admin.v2.ListInstancesResponse\"2\xDAA\x06parent\x82\xD3\xE4\x93\x02#\x12!/v2/{parent=projects/*}/instances\x12\x86\x01\x0A\x0EUpdateInstance\x12\".google.bigtable.admin.v2.Instance\x1A\".google.bigtable.admin.v2.Instance\",\x82\xD3\xE4\x93\x02&\x1A!/v2/{name=projects/*/instances/*}:\x01*\x12\xE8\x01\x0A\x15PartialUpdateInstance\x126.google.bigtable.admin.v2.PartialUpdateInstanceRequest\x1A\x1D.google.longrunning.Operation\"x\xCAA\"\x0A\x08Instance\x12\x16UpdateInstanceMetadata\xDAA\x14instance,update_mask\x82\xD3\xE4\x93\x0262*/v2/{instance.name=projects/*/instances/*}:\x08instance\x12\x8B\x01\x0A\x0EDeleteInstance\x12/.google.bigtable.admin.v2.DeleteInstanceRequest\x1A\x16.google.protobuf.Empty\"0\xDAA\x04name\x82\xD3\xE4\x93\x02#*!/v2/{name=projects/*/instances/*}\x12\xDC\x01\x0A\x0DCreateCluster\x12..google.bigtable.admin.v2.CreateClusterRequest\x1A\x1D.google.longrunning.Operation\"|\xCAA \x0A\x07Cluster\x12\x15CreateClusterMetadata\xDAA\x19parent,cluster_id,cluster\x82\xD3\xE4\x93\x027\",/v2/{parent=projects/*/instances/*}/clusters:\x07cluster\x12\x99\x01\x0A\x0AGetCluster\x12+.google.bigtable.admin.v2.GetClusterRequest\x1A!.google.bigtable.admin.v2.Cluster\";\xDAA\x04name\x82\xD3\xE4\x93\x02.\x12,/v2/{name=projects/*/instances/*/clusters/*}\x12\xAC\x01\x0A\x0CListClusters\x12-.google.bigtable.admin.v2.ListClustersRequest\x1A..google.bigtable.admin.v2.ListClustersResponse\"=\xDAA\x06parent\x82\xD3\xE4\x93\x02.\x12,/v2/{parent=projects/*/instances/*}/clusters\x12\xAD\x01\x0A\x0DUpdateCluster\x12!.google.bigtable.admin.v2.Cluster\x1A\x1D.google.longrunning.Operation\"Z\xCAA \x0A\x07Cluster\x12\x15UpdateClusterMetadata\x82\xD3\xE4\x93\x021\x1A,/v2/{name=projects/*/instances/*/clusters/*}:\x01*\x12\xF4\x01\x0A\x14PartialUpdateCluster\x125.google.bigtable.admin.v2.PartialUpdateClusterRequest\x1A\x1D.google.longrunning.Operation\"\x85\x01\xCAA'\x0A\x07Cluster\x12\x1CPartialUpdateClusterMetadata\xDAA\x13cluster,update_mask\x82\xD3\xE4\x93\x02?24/v2/{cluster.name=projects/*/instances/*/clusters/*}:\x07cluster\x12\x94\x01\x0A\x0DDeleteCluster\x12..google.bigtable.admin.v2.DeleteClusterRequest\x1A\x16.google.protobuf.Empty\";\xDAA\x04name\x82\xD3\xE4\x93\x02.*,/v2/{name=projects/*/instances/*/clusters/*}\x12\xD5\x01\x0A\x10CreateAppProfile\x121.google.bigtable.admin.v2.CreateAppProfileRequest\x1A\$.google.bigtable.admin.v2.AppProfile\"h\xDAA!parent,app_profile_id,app_profile\x82\xD3\xE4\x93\x02>\"//v2/{parent=projects/*/instances/*}/appProfiles:\x0Bapp_profile\x12\xA5\x01\x0A\x0DGetAppProfile\x12..google.bigtable.admin.v2.GetAppProfileRequest\x1A\$.google.bigtable.admin.v2.AppProfile\">\xDAA\x04name\x82\xD3\xE4\x93\x021\x12//v2/{name=projects/*/instances/*/appProfiles/*}\x12\xB8\x01\x0A\x0FListAppProfiles\x120.google.bigtable.admin.v2.ListAppProfilesRequest\x1A1.google.bigtable.admin.v2.ListAppProfilesResponse\"@\xDAA\x06parent\x82\xD3\xE4\x93\x021\x12//v2/{parent=projects/*/instances/*}/appProfiles\x12\xFA\x01\x0A\x10UpdateAppProfile\x121.google.bigtable.admin.v2.UpdateAppProfileRequest\x1A\x1D.google.longrunning.Operation\"\x93\x01\xCAA&\x0A\x0AAppProfile\x12\x18UpdateAppProfileMetadata\xDAA\x17app_profile,update_mask\x82\xD3\xE4\x93\x02J2;/v2/{app_profile.name=projects/*/instances/*/appProfiles/*}:\x0Bapp_profile\x12\xB4\x01\x0A\x10DeleteAppProfile\x121.google.bigtable.admin.v2.DeleteAppProfileRequest\x1A\x16.google.protobuf.Empty\"U\xDAA\x04name\xDAA\x14name,ignore_warnings\x82\xD3\xE4\x93\x021*//v2/{name=projects/*/instances/*/appProfiles/*}\x12\xAA\x02\x0A\x0CGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1A\x15.google.iam.v1.Policy\"\xDE\x01\xDAA\x08resource\x82\xD3\xE4\x93\x02\xCC\x01\"2/v2/{resource=projects/*/instances/*}:getIamPolicy:\x01*ZK\"F/v2/{resource=projects/*/instances/*/materializedViews/*}:getIamPolicy:\x01*ZF\"A/v2/{resource=projects/*/instances/*/logicalViews/*}:getIamPolicy:\x01*\x12\xB1\x02\x0A\x0CSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1A\x15.google.iam.v1.Policy\"\xE5\x01\xDAA\x0Fresource,policy\x82\xD3\xE4\x93\x02\xCC\x01\"2/v2/{resource=projects/*/instances/*}:setIamPolicy:\x01*ZK\"F/v2/{resource=projects/*/instances/*/materializedViews/*}:setIamPolicy:\x01*ZF\"A/v2/{resource=projects/*/instances/*/logicalViews/*}:setIamPolicy:\x01*\x12\xE8\x02\x0A\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1A).google.iam.v1.TestIamPermissionsResponse\"\xFC\x01\xDAA\x14resource,permissions\x82\xD3\xE4\x93\x02\xDE\x01\"8/v2/{resource=projects/*/instances/*}:testIamPermissions:\x01*ZQ\"L/v2/{resource=projects/*/instances/*/materializedViews/*}:testIamPermissions:\x01*ZL\"G/v2/{resource=projects/*/instances/*/logicalViews/*}:testIamPermissions:\x01*\x12\xBF\x01\x0A\x0EListHotTablets\x12/.google.bigtable.admin.v2.ListHotTabletsRequest\x1A0.google.bigtable.admin.v2.ListHotTabletsResponse\"J\xDAA\x06parent\x82\xD3\xE4\x93\x02;\x129/v2/{parent=projects/*/instances/*/clusters/*}/hotTablets\x12\x80\x02\x0A\x11CreateLogicalView\x122.google.bigtable.admin.v2.CreateLogicalViewRequest\x1A\x1D.google.longrunning.Operation\"\x97\x01\xCAA(\x0A\x0BLogicalView\x12\x19CreateLogicalViewMetadata\xDAA#parent,logical_view,logical_view_id\x82\xD3\xE4\x93\x02@\"0/v2/{parent=projects/*/instances/*}/logicalViews:\x0Clogical_view\x12\xA9\x01\x0A\x0EGetLogicalView\x12/.google.bigtable.admin.v2.GetLogicalViewRequest\x1A%.google.bigtable.admin.v2.LogicalView\"?\xDAA\x04name\x82\xD3\xE4\x93\x022\x120/v2/{name=projects/*/instances/*/logicalViews/*}\x12\xBC\x01\x0A\x10ListLogicalViews\x121.google.bigtable.admin.v2.ListLogicalViewsRequest\x1A2.google.bigtable.admin.v2.ListLogicalViewsResponse\"A\xDAA\x06parent\x82\xD3\xE4\x93\x022\x120/v2/{parent=projects/*/instances/*}/logicalViews\x12\x82\x02\x0A\x11UpdateLogicalView\x122.google.bigtable.admin.v2.UpdateLogicalViewRequest\x1A\x1D.google.longrunning.Operation\"\x99\x01\xCAA(\x0A\x0BLogicalView\x12\x19UpdateLogicalViewMetadata\xDAA\x18logical_view,update_mask\x82\xD3\xE4\x93\x02M2=/v2/{logical_view.name=projects/*/instances/*/logicalViews/*}:\x0Clogical_view\x12\xA0\x01\x0A\x11DeleteLogicalView\x122.google.bigtable.admin.v2.DeleteLogicalViewRequest\x1A\x16.google.protobuf.Empty\"?\xDAA\x04name\x82\xD3\xE4\x93\x022*0/v2/{name=projects/*/instances/*/logicalViews/*}\x12\xA8\x02\x0A\x16CreateMaterializedView\x127.google.bigtable.admin.v2.CreateMaterializedViewRequest\x1A\x1D.google.longrunning.Operation\"\xB5\x01\xCAA2\x0A\x10MaterializedView\x12\x1ECreateMaterializedViewMetadata\xDAA-parent,materialized_view,materialized_view_id\x82\xD3\xE4\x93\x02J\"5/v2/{parent=projects/*/instances/*}/materializedViews:\x11materialized_view\x12\xBD\x01\x0A\x13GetMaterializedView\x124.google.bigtable.admin.v2.GetMaterializedViewRequest\x1A*.google.bigtable.admin.v2.MaterializedView\"D\xDAA\x04name\x82\xD3\xE4\x93\x027\x125/v2/{name=projects/*/instances/*/materializedViews/*}\x12\xD0\x01\x0A\x15ListMaterializedViews\x126.google.bigtable.admin.v2.ListMaterializedViewsRequest\x1A7.google.bigtable.admin.v2.ListMaterializedViewsResponse\"F\xDAA\x06parent\x82\xD3\xE4\x93\x027\x125/v2/{parent=projects/*/instances/*}/materializedViews\x12\xAA\x02\x0A\x16UpdateMaterializedView\x127.google.bigtable.admin.v2.UpdateMaterializedViewRequest\x1A\x1D.google.longrunning.Operation\"\xB7\x01\xCAA2\x0A\x10MaterializedView\x12\x1EUpdateMaterializedViewMetadata\xDAA\x1Dmaterialized_view,update_mask\x82\xD3\xE4\x93\x02\\2G/v2/{materialized_view.name=projects/*/instances/*/materializedViews/*}:\x11materialized_view\x12\xAF\x01\x0A\x16DeleteMaterializedView\x127.google.bigtable.admin.v2.DeleteMaterializedViewRequest\x1A\x16.google.protobuf.Empty\"D\xDAA\x04name\x82\xD3\xE4\x93\x027*5/v2/{name=projects/*/instances/*/materializedViews/*}\x1A\x9A\x03\xCAA\x1Cbigtableadmin.googleapis.com\xD2A\xF7\x02https://www.googleapis.com/auth/bigtable.admin,https://www.googleapis.com/auth/bigtable.admin.cluster,https://www.googleapis.com/auth/bigtable.admin.instance,https://www.googleapis.com/auth/cloud-bigtable.admin,https://www.googleapis.com/auth/cloud-bigtable.admin.cluster,https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-onlyB\xDD\x01\x0A\x1Ccom.google.bigtable.admin.v2B\x1ABigtableInstanceAdminProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xAA\x02\x1EGoogle.Cloud.Bigtable.Admin.V2\xCA\x02\x1EGoogle\\Cloud\\Bigtable\\Admin\\V2\xEA\x02\"Google::Cloud::Bigtable::Admin::V2b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/BigtableTableAdmin.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/BigtableTableAdmin.php new file mode 100644 index 000000000000..782e00f9ead5 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/BigtableTableAdmin.php @@ -0,0 +1,37 @@ +internalAddGeneratedFile( + "\x0A\xED\x84\x01\x0A3google/bigtable/admin/v2/bigtable_table_admin.proto\x12\x18google.bigtable.admin.v2\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A%google/bigtable/admin/v2/common.proto\x1A\$google/bigtable/admin/v2/table.proto\x1A\x1Egoogle/iam/v1/iam_policy.proto\x1A\x1Agoogle/iam/v1/policy.proto\x1A#google/longrunning/operations.proto\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xB1\x01\x0A\x13RestoreTableRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%bigtableadmin.googleapis.com/Instance\x12\x15\x0A\x08table_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12:\x0A\x06backup\x18\x03 \x01(\x09B(\xFAA%\x0A#bigtableadmin.googleapis.com/BackupH\x00B\x08\x0A\x06source\"\x98\x02\x0A\x14RestoreTableMetadata\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12@\x0A\x0Bsource_type\x18\x02 \x01(\x0E2+.google.bigtable.admin.v2.RestoreSourceType\x12;\x0A\x0Bbackup_info\x18\x03 \x01(\x0B2\$.google.bigtable.admin.v2.BackupInfoH\x00\x12%\x0A\x1Doptimize_table_operation_name\x18\x04 \x01(\x09\x12=\x0A\x08progress\x18\x05 \x01(\x0B2+.google.bigtable.admin.v2.OperationProgressB\x0D\x0A\x0Bsource_info\"l\x0A\x1DOptimizeRestoredTableMetadata\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12=\x0A\x08progress\x18\x02 \x01(\x0B2+.google.bigtable.admin.v2.OperationProgress\"\x81\x02\x0A\x12CreateTableRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%bigtableadmin.googleapis.com/Instance\x12\x15\x0A\x08table_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x123\x0A\x05table\x18\x03 \x01(\x0B2\x1F.google.bigtable.admin.v2.TableB\x03\xE0A\x02\x12J\x0A\x0Einitial_splits\x18\x04 \x03(\x0B22.google.bigtable.admin.v2.CreateTableRequest.Split\x1A\x14\x0A\x05Split\x12\x0B\x0A\x03key\x18\x01 \x01(\x0C\"\xBE\x01\x0A\x1ECreateTableFromSnapshotRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%bigtableadmin.googleapis.com/Instance\x12\x15\x0A\x08table_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12F\x0A\x0Fsource_snapshot\x18\x03 \x01(\x09B-\xE0A\x02\xFAA'\x0A%bigtableadmin.googleapis.com/Snapshot\"\x99\x01\x0A\x13DropRowRangeRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"bigtableadmin.googleapis.com/Table\x12\x18\x0A\x0Erow_key_prefix\x18\x02 \x01(\x0CH\x00\x12\$\x0A\x1Adelete_all_data_from_table\x18\x03 \x01(\x08H\x00B\x08\x0A\x06target\"\xAD\x01\x0A\x11ListTablesRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%bigtableadmin.googleapis.com/Instance\x122\x0A\x04view\x18\x02 \x01(\x0E2\$.google.bigtable.admin.v2.Table.View\x12\x11\x0A\x09page_size\x18\x04 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\"^\x0A\x12ListTablesResponse\x12/\x0A\x06tables\x18\x01 \x03(\x0B2\x1F.google.bigtable.admin.v2.Table\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x7F\x0A\x0FGetTableRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"bigtableadmin.googleapis.com/Table\x122\x0A\x04view\x18\x02 \x01(\x0E2\$.google.bigtable.admin.v2.Table.View\"\x9D\x01\x0A\x12UpdateTableRequest\x123\x0A\x05table\x18\x01 \x01(\x0B2\x1F.google.bigtable.admin.v2.TableB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1C\x0A\x0Fignore_warnings\x18\x03 \x01(\x08B\x03\xE0A\x01\"\x81\x01\x0A\x13UpdateTableMetadata\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12.\x0A\x0Astart_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\"N\x0A\x12DeleteTableRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"bigtableadmin.googleapis.com/Table\"P\x0A\x14UndeleteTableRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"bigtableadmin.googleapis.com/Table\"\x83\x01\x0A\x15UndeleteTableMetadata\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12.\x0A\x0Astart_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\"\xB3\x03\x0A\x1BModifyColumnFamiliesRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"bigtableadmin.googleapis.com/Table\x12^\x0A\x0Dmodifications\x18\x02 \x03(\x0B2B.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.ModificationB\x03\xE0A\x02\x12\x1C\x0A\x0Fignore_warnings\x18\x03 \x01(\x08B\x03\xE0A\x01\x1A\xDB\x01\x0A\x0CModification\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x128\x0A\x06create\x18\x02 \x01(\x0B2&.google.bigtable.admin.v2.ColumnFamilyH\x00\x128\x0A\x06update\x18\x03 \x01(\x0B2&.google.bigtable.admin.v2.ColumnFamilyH\x00\x12\x0E\x0A\x04drop\x18\x04 \x01(\x08H\x00\x124\x0A\x0Bupdate_mask\x18\x06 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01B\x05\x0A\x03mod\"[\x0A\x1FGenerateConsistencyTokenRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"bigtableadmin.googleapis.com/Table\"=\x0A GenerateConsistencyTokenResponse\x12\x19\x0A\x11consistency_token\x18\x01 \x01(\x09\"\xB2\x02\x0A\x17CheckConsistencyRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"bigtableadmin.googleapis.com/Table\x12\x1E\x0A\x11consistency_token\x18\x02 \x01(\x09B\x03\xE0A\x02\x12Y\x0A\x1Bstandard_read_remote_writes\x18\x03 \x01(\x0B22.google.bigtable.admin.v2.StandardReadRemoteWritesH\x00\x12Z\x0A\x1Cdata_boost_read_local_writes\x18\x04 \x01(\x0B22.google.bigtable.admin.v2.DataBoostReadLocalWritesH\x00B\x06\x0A\x04mode\"\x1A\x0A\x18StandardReadRemoteWrites\"\x1A\x0A\x18DataBoostReadLocalWrites\".\x0A\x18CheckConsistencyResponse\x12\x12\x0A\x0Aconsistent\x18\x01 \x01(\x08\"\xE6\x01\x0A\x14SnapshotTableRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"bigtableadmin.googleapis.com/Table\x12=\x0A\x07cluster\x18\x02 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$bigtableadmin.googleapis.com/Cluster\x12\x18\x0A\x0Bsnapshot_id\x18\x03 \x01(\x09B\x03\xE0A\x02\x12&\x0A\x03ttl\x18\x04 \x01(\x0B2\x19.google.protobuf.Duration\x12\x13\x0A\x0Bdescription\x18\x05 \x01(\x09\"Q\x0A\x12GetSnapshotRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%bigtableadmin.googleapis.com/Snapshot\"{\x0A\x14ListSnapshotsRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$bigtableadmin.googleapis.com/Cluster\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\"g\x0A\x15ListSnapshotsResponse\x125\x0A\x09snapshots\x18\x01 \x03(\x0B2\".google.bigtable.admin.v2.Snapshot\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"T\x0A\x15DeleteSnapshotRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%bigtableadmin.googleapis.com/Snapshot\"\xC4\x01\x0A\x15SnapshotTableMetadata\x12H\x0A\x10original_request\x18\x01 \x01(\x0B2..google.bigtable.admin.v2.SnapshotTableRequest\x120\x0A\x0Crequest_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bfinish_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\"\xD8\x01\x0A\x1FCreateTableFromSnapshotMetadata\x12R\x0A\x10original_request\x18\x01 \x01(\x0B28.google.bigtable.admin.v2.CreateTableFromSnapshotRequest\x120\x0A\x0Crequest_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bfinish_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\"\xA2\x01\x0A\x13CreateBackupRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$bigtableadmin.googleapis.com/Cluster\x12\x16\x0A\x09backup_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x125\x0A\x06backup\x18\x03 \x01(\x0B2 .google.bigtable.admin.v2.BackupB\x03\xE0A\x02\"\x98\x01\x0A\x14CreateBackupMetadata\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x14\x0A\x0Csource_table\x18\x02 \x01(\x09\x12.\x0A\x0Astart_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.Timestamp\"\x82\x01\x0A\x13UpdateBackupRequest\x125\x0A\x06backup\x18\x01 \x01(\x0B2 .google.bigtable.admin.v2.BackupB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\"M\x0A\x10GetBackupRequest\x129\x0A\x04name\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#bigtableadmin.googleapis.com/Backup\"P\x0A\x13DeleteBackupRequest\x129\x0A\x04name\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#bigtableadmin.googleapis.com/Backup\"\x9B\x01\x0A\x12ListBackupsRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$bigtableadmin.googleapis.com/Cluster\x12\x0E\x0A\x06filter\x18\x02 \x01(\x09\x12\x10\x0A\x08order_by\x18\x03 \x01(\x09\x12\x11\x0A\x09page_size\x18\x04 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x05 \x01(\x09\"a\x0A\x13ListBackupsResponse\x121\x0A\x07backups\x18\x01 \x03(\x0B2 .google.bigtable.admin.v2.Backup\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xE3\x01\x0A\x11CopyBackupRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$bigtableadmin.googleapis.com/Cluster\x12\x16\x0A\x09backup_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12B\x0A\x0Dsource_backup\x18\x03 \x01(\x09B+\xE0A\x02\xFAA%\x0A#bigtableadmin.googleapis.com/Backup\x124\x0A\x0Bexpire_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x02\"\xCD\x01\x0A\x12CopyBackupMetadata\x126\x0A\x04name\x18\x01 \x01(\x09B(\xFAA%\x0A#bigtableadmin.googleapis.com/Backup\x12@\x0A\x12source_backup_info\x18\x02 \x01(\x0B2\$.google.bigtable.admin.v2.BackupInfo\x12=\x0A\x08progress\x18\x03 \x01(\x0B2+.google.bigtable.admin.v2.OperationProgress\"\xCB\x01\x0A\x1BCreateAuthorizedViewRequest\x12C\x0A\x06parent\x18\x01 \x01(\x09B3\xE0A\x02\xFAA-\x12+bigtableadmin.googleapis.com/AuthorizedView\x12\x1F\x0A\x12authorized_view_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12F\x0A\x0Fauthorized_view\x18\x03 \x01(\x0B2(.google.bigtable.admin.v2.AuthorizedViewB\x03\xE0A\x02\"\xD2\x01\x0A\x1CCreateAuthorizedViewMetadata\x12O\x0A\x10original_request\x18\x01 \x01(\x0B25.google.bigtable.admin.v2.CreateAuthorizedViewRequest\x120\x0A\x0Crequest_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bfinish_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\"\xDC\x01\x0A\x1AListAuthorizedViewsRequest\x12C\x0A\x06parent\x18\x01 \x01(\x09B3\xE0A\x02\xFAA-\x12+bigtableadmin.googleapis.com/AuthorizedView\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12H\x0A\x04view\x18\x04 \x01(\x0E25.google.bigtable.admin.v2.AuthorizedView.ResponseViewB\x03\xE0A\x01\"z\x0A\x1BListAuthorizedViewsResponse\x12B\x0A\x10authorized_views\x18\x01 \x03(\x0B2(.google.bigtable.admin.v2.AuthorizedView\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xA7\x01\x0A\x18GetAuthorizedViewRequest\x12A\x0A\x04name\x18\x01 \x01(\x09B3\xE0A\x02\xFAA-\x0A+bigtableadmin.googleapis.com/AuthorizedView\x12H\x0A\x04view\x18\x02 \x01(\x0E25.google.bigtable.admin.v2.AuthorizedView.ResponseViewB\x03\xE0A\x01\"\xB9\x01\x0A\x1BUpdateAuthorizedViewRequest\x12F\x0A\x0Fauthorized_view\x18\x01 \x01(\x0B2(.google.bigtable.admin.v2.AuthorizedViewB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12\x1C\x0A\x0Fignore_warnings\x18\x03 \x01(\x08B\x03\xE0A\x01\"\xD2\x01\x0A\x1CUpdateAuthorizedViewMetadata\x12O\x0A\x10original_request\x18\x01 \x01(\x0B25.google.bigtable.admin.v2.UpdateAuthorizedViewRequest\x120\x0A\x0Crequest_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bfinish_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\"s\x0A\x1BDeleteAuthorizedViewRequest\x12A\x0A\x04name\x18\x01 \x01(\x09B3\xE0A\x02\xFAA-\x0A+bigtableadmin.googleapis.com/AuthorizedView\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\"\xBA\x01\x0A\x19CreateSchemaBundleRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"bigtableadmin.googleapis.com/Table\x12\x1D\x0A\x10schema_bundle_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12B\x0A\x0Dschema_bundle\x18\x03 \x01(\x0B2&.google.bigtable.admin.v2.SchemaBundleB\x03\xE0A\x02\"\x88\x01\x0A\x1ACreateSchemaBundleMetadata\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12.\x0A\x0Astart_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\"\xB3\x01\x0A\x19UpdateSchemaBundleRequest\x12B\x0A\x0Dschema_bundle\x18\x01 \x01(\x0B2&.google.bigtable.admin.v2.SchemaBundleB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12\x1C\x0A\x0Fignore_warnings\x18\x03 \x01(\x08B\x03\xE0A\x01\"\x88\x01\x0A\x1AUpdateSchemaBundleMetadata\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12.\x0A\x0Astart_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\"Y\x0A\x16GetSchemaBundleRequest\x12?\x0A\x04name\x18\x01 \x01(\x09B1\xE0A\x02\xFAA+\x0A)bigtableadmin.googleapis.com/SchemaBundle\"\x84\x01\x0A\x18ListSchemaBundlesRequest\x12A\x0A\x06parent\x18\x01 \x01(\x09B1\xE0A\x02\xFAA+\x12)bigtableadmin.googleapis.com/SchemaBundle\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\"t\x0A\x19ListSchemaBundlesResponse\x12>\x0A\x0Eschema_bundles\x18\x01 \x03(\x0B2&.google.bigtable.admin.v2.SchemaBundle\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"o\x0A\x19DeleteSchemaBundleRequest\x12?\x0A\x04name\x18\x01 \x01(\x09B1\xE0A\x02\xFAA+\x0A)bigtableadmin.googleapis.com/SchemaBundle\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x012\x92@\x0A\x12BigtableTableAdmin\x12\xAB\x01\x0A\x0BCreateTable\x12,.google.bigtable.admin.v2.CreateTableRequest\x1A\x1F.google.bigtable.admin.v2.Table\"M\xDAA\x15parent,table_id,table\x82\xD3\xE4\x93\x02/\"*/v2/{parent=projects/*/instances/*}/tables:\x01*\x12\x8A\x02\x0A\x17CreateTableFromSnapshot\x128.google.bigtable.admin.v2.CreateTableFromSnapshotRequest\x1A\x1D.google.longrunning.Operation\"\x95\x01\xCAA(\x0A\x05Table\x12\x1FCreateTableFromSnapshotMetadata\xDAA\x1Fparent,table_id,source_snapshot\x82\xD3\xE4\x93\x02B\"=/v2/{parent=projects/*/instances/*}/tables:createFromSnapshot:\x01*\x12\xA4\x01\x0A\x0AListTables\x12+.google.bigtable.admin.v2.ListTablesRequest\x1A,.google.bigtable.admin.v2.ListTablesResponse\";\xDAA\x06parent\x82\xD3\xE4\x93\x02,\x12*/v2/{parent=projects/*/instances/*}/tables\x12\x91\x01\x0A\x08GetTable\x12).google.bigtable.admin.v2.GetTableRequest\x1A\x1F.google.bigtable.admin.v2.Table\"9\xDAA\x04name\x82\xD3\xE4\x93\x02,\x12*/v2/{name=projects/*/instances/*/tables/*}\x12\xCE\x01\x0A\x0BUpdateTable\x12,.google.bigtable.admin.v2.UpdateTableRequest\x1A\x1D.google.longrunning.Operation\"r\xCAA\x1C\x0A\x05Table\x12\x13UpdateTableMetadata\xDAA\x11table,update_mask\x82\xD3\xE4\x93\x02920/v2/{table.name=projects/*/instances/*/tables/*}:\x05table\x12\x8E\x01\x0A\x0BDeleteTable\x12,.google.bigtable.admin.v2.DeleteTableRequest\x1A\x16.google.protobuf.Empty\"9\xDAA\x04name\x82\xD3\xE4\x93\x02,**/v2/{name=projects/*/instances/*/tables/*}\x12\xC6\x01\x0A\x0DUndeleteTable\x12..google.bigtable.admin.v2.UndeleteTableRequest\x1A\x1D.google.longrunning.Operation\"f\xCAA\x1E\x0A\x05Table\x12\x15UndeleteTableMetadata\xDAA\x04name\x82\xD3\xE4\x93\x028\"3/v2/{name=projects/*/instances/*/tables/*}:undelete:\x01*\x12\xA1\x02\x0A\x14CreateAuthorizedView\x125.google.bigtable.admin.v2.CreateAuthorizedViewRequest\x1A\x1D.google.longrunning.Operation\"\xB2\x01\xCAA.\x0A\x0EAuthorizedView\x12\x1CCreateAuthorizedViewMetadata\xDAA)parent,authorized_view,authorized_view_id\x82\xD3\xE4\x93\x02O\"\x12\x12*internalAddGeneratedFile( + "\x0A\xE7\x03\x0A%google/bigtable/admin/v2/common.proto\x12\x18google.bigtable.admin.v2\"\x8B\x01\x0A\x11OperationProgress\x12\x18\x0A\x10progress_percent\x18\x01 \x01(\x05\x12.\x0A\x0Astart_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp*=\x0A\x0BStorageType\x12\x1C\x0A\x18STORAGE_TYPE_UNSPECIFIED\x10\x00\x12\x07\x0A\x03SSD\x10\x01\x12\x07\x0A\x03HDD\x10\x02B\xCE\x01\x0A\x1Ccom.google.bigtable.admin.v2B\x0BCommonProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xAA\x02\x1EGoogle.Cloud.Bigtable.Admin.V2\xCA\x02\x1EGoogle\\Cloud\\Bigtable\\Admin\\V2\xEA\x02\"Google::Cloud::Bigtable::Admin::V2b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/Instance.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/Instance.php new file mode 100644 index 000000000000..6c968ae0011c --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/Instance.php @@ -0,0 +1,28 @@ +internalAddGeneratedFile( + "\x0A\x92'\x0A'google/bigtable/admin/v2/instance.proto\x12\x18google.bigtable.admin.v2\x1A\x19google/api/resource.proto\x1A%google/bigtable/admin/v2/common.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x87\x06\x0A\x08Instance\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x02\x12<\x0A\x05state\x18\x03 \x01(\x0E2(.google.bigtable.admin.v2.Instance.StateB\x03\xE0A\x03\x125\x0A\x04type\x18\x04 \x01(\x0E2'.google.bigtable.admin.v2.Instance.Type\x12>\x0A\x06labels\x18\x05 \x03(\x0B2..google.bigtable.admin.v2.Instance.LabelsEntry\x124\x0A\x0Bcreate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x1F\x0A\x0Dsatisfies_pzs\x18\x08 \x01(\x08B\x03\xE0A\x03H\x00\x88\x01\x01\x12\x1F\x0A\x0Dsatisfies_pzi\x18\x0B \x01(\x08B\x03\xE0A\x03H\x01\x88\x01\x01\x12E\x0A\x04tags\x18\x0C \x03(\x0B2,.google.bigtable.admin.v2.Instance.TagsEntryB\x09\xE0A\x04\xE0A\x05\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A+\x0A\x09TagsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"5\x0A\x05State\x12\x13\x0A\x0FSTATE_NOT_KNOWN\x10\x00\x12\x09\x0A\x05READY\x10\x01\x12\x0C\x0A\x08CREATING\x10\x02\"=\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0APRODUCTION\x10\x01\x12\x0F\x0A\x0BDEVELOPMENT\x10\x02:h\xEAAe\x0A%bigtableadmin.googleapis.com/Instance\x12'projects/{project}/instances/{instance}*\x09instances2\x08instanceB\x10\x0A\x0E_satisfies_pzsB\x10\x0A\x0E_satisfies_pzi\"_\x0A\x12AutoscalingTargets\x12\x1F\x0A\x17cpu_utilization_percent\x18\x02 \x01(\x05\x12(\x0A storage_utilization_gib_per_node\x18\x03 \x01(\x05\"O\x0A\x11AutoscalingLimits\x12\x1C\x0A\x0Fmin_serve_nodes\x18\x01 \x01(\x05B\x03\xE0A\x02\x12\x1C\x0A\x0Fmax_serve_nodes\x18\x02 \x01(\x05B\x03\xE0A\x02\"\xAD\x09\x0A\x07Cluster\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12;\x0A\x08location\x18\x02 \x01(\x09B)\xE0A\x05\xFAA#\x0A!locations.googleapis.com/Location\x12;\x0A\x05state\x18\x03 \x01(\x0E2'.google.bigtable.admin.v2.Cluster.StateB\x03\xE0A\x03\x12\x13\x0A\x0Bserve_nodes\x18\x04 \x01(\x05\x12U\x0A\x13node_scaling_factor\x18\x09 \x01(\x0E23.google.bigtable.admin.v2.Cluster.NodeScalingFactorB\x03\xE0A\x05\x12I\x0A\x0Ecluster_config\x18\x07 \x01(\x0B2/.google.bigtable.admin.v2.Cluster.ClusterConfigH\x00\x12H\x0A\x14default_storage_type\x18\x05 \x01(\x0E2%.google.bigtable.admin.v2.StorageTypeB\x03\xE0A\x05\x12R\x0A\x11encryption_config\x18\x06 \x01(\x0B22.google.bigtable.admin.v2.Cluster.EncryptionConfigB\x03\xE0A\x05\x1A\xB8\x01\x0A\x18ClusterAutoscalingConfig\x12L\x0A\x12autoscaling_limits\x18\x01 \x01(\x0B2+.google.bigtable.admin.v2.AutoscalingLimitsB\x03\xE0A\x02\x12N\x0A\x13autoscaling_targets\x18\x02 \x01(\x0B2,.google.bigtable.admin.v2.AutoscalingTargetsB\x03\xE0A\x02\x1Ao\x0A\x0DClusterConfig\x12^\x0A\x1Acluster_autoscaling_config\x18\x01 \x01(\x0B2:.google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig\x1AP\x0A\x10EncryptionConfig\x12<\x0A\x0Ckms_key_name\x18\x01 \x01(\x09B&\xFAA#\x0A!cloudkms.googleapis.com/CryptoKey\"Q\x0A\x05State\x12\x13\x0A\x0FSTATE_NOT_KNOWN\x10\x00\x12\x09\x0A\x05READY\x10\x01\x12\x0C\x0A\x08CREATING\x10\x02\x12\x0C\x0A\x08RESIZING\x10\x03\x12\x0C\x0A\x08DISABLED\x10\x04\"p\x0A\x11NodeScalingFactor\x12#\x0A\x1FNODE_SCALING_FACTOR_UNSPECIFIED\x10\x00\x12\x1A\x0A\x16NODE_SCALING_FACTOR_1X\x10\x01\x12\x1A\x0A\x16NODE_SCALING_FACTOR_2X\x10\x02:x\xEAAu\x0A\$bigtableadmin.googleapis.com/Cluster\x12:projects/{project}/instances/{instance}/clusters/{cluster}*\x08clusters2\x07clusterB\x08\x0A\x06config\"\xED\x0A\x0A\x0AAppProfile\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0C\x0A\x04etag\x18\x02 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\x12g\x0A\x1Dmulti_cluster_routing_use_any\x18\x05 \x01(\x0B2>.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAnyH\x00\x12[\x0A\x16single_cluster_routing\x18\x06 \x01(\x0B29.google.bigtable.admin.v2.AppProfile.SingleClusterRoutingH\x00\x12E\x0A\x08priority\x18\x07 \x01(\x0E2-.google.bigtable.admin.v2.AppProfile.PriorityB\x02\x18\x01H\x01\x12T\x0A\x12standard_isolation\x18\x0B \x01(\x0B26.google.bigtable.admin.v2.AppProfile.StandardIsolationH\x01\x12i\x0A\x1Edata_boost_isolation_read_only\x18\x0A \x01(\x0B2?.google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnlyH\x01\x1A\xAF\x01\x0A\x19MultiClusterRoutingUseAny\x12\x13\x0A\x0Bcluster_ids\x18\x01 \x03(\x09\x12b\x0A\x0Crow_affinity\x18\x03 \x01(\x0B2J.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.RowAffinityH\x00\x1A\x0D\x0A\x0BRowAffinityB\x0A\x0A\x08affinity\x1AN\x0A\x14SingleClusterRouting\x12\x12\x0A\x0Acluster_id\x18\x01 \x01(\x09\x12\"\x0A\x1Aallow_transactional_writes\x18\x02 \x01(\x08\x1AT\x0A\x11StandardIsolation\x12?\x0A\x08priority\x18\x01 \x01(\x0E2-.google.bigtable.admin.v2.AppProfile.Priority\x1A\xFC\x01\x0A\x1ADataBoostIsolationReadOnly\x12w\x0A\x15compute_billing_owner\x18\x01 \x01(\x0E2S.google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly.ComputeBillingOwnerH\x00\x88\x01\x01\"K\x0A\x13ComputeBillingOwner\x12%\x0A!COMPUTE_BILLING_OWNER_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09HOST_PAYS\x10\x01B\x18\x0A\x16_compute_billing_owner\"^\x0A\x08Priority\x12\x18\x0A\x14PRIORITY_UNSPECIFIED\x10\x00\x12\x10\x0A\x0CPRIORITY_LOW\x10\x01\x12\x13\x0A\x0FPRIORITY_MEDIUM\x10\x02\x12\x11\x0A\x0DPRIORITY_HIGH\x10\x03:\x89\x01\xEAA\x85\x01\x0A'bigtableadmin.googleapis.com/AppProfile\x12Aprojects/{project}/instances/{instance}/appProfiles/{app_profile}*\x0BappProfiles2\x0AappProfileB\x10\x0A\x0Erouting_policyB\x0B\x0A\x09isolation\"\xA1\x03\x0A\x09HotTablet\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12;\x0A\x0Atable_name\x18\x02 \x01(\x09B'\xFAA\$\x0A\"bigtableadmin.googleapis.com/Table\x123\x0A\x0Astart_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x121\x0A\x08end_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x11\x0A\x09start_key\x18\x05 \x01(\x09\x12\x0F\x0A\x07end_key\x18\x06 \x01(\x09\x12#\x0A\x16node_cpu_usage_percent\x18\x07 \x01(\x02B\x03\xE0A\x03:\x97\x01\xEAA\x93\x01\x0A&bigtableadmin.googleapis.com/HotTablet\x12Rprojects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/{hot_tablet}*\x0AhotTablets2\x09hotTablet\"\xFA\x01\x0A\x0BLogicalView\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x12\x0A\x05query\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x11\x0A\x04etag\x18\x03 \x01(\x09B\x03\xE0A\x01\x12 \x0A\x13deletion_protection\x18\x06 \x01(\x08B\x03\xE0A\x01:\x8E\x01\xEAA\x8A\x01\x0A(bigtableadmin.googleapis.com/LogicalView\x12Cprojects/{project}/instances/{instance}/logicalViews/{logical_view}*\x0ClogicalViews2\x0BlogicalView\"\x96\x02\x0A\x10MaterializedView\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x15\x0A\x05query\x18\x02 \x01(\x09B\x06\xE0A\x02\xE0A\x05\x12\x11\x0A\x04etag\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x1B\x0A\x13deletion_protection\x18\x06 \x01(\x08:\xA7\x01\xEAA\xA3\x01\x0A-bigtableadmin.googleapis.com/MaterializedView\x12Mprojects/{project}/instances/{instance}/materializedViews/{materialized_view}*\x11materializedViews2\x10materializedViewB\xCB\x02\x0A\x1Ccom.google.bigtable.admin.v2B\x0DInstanceProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xAA\x02\x1EGoogle.Cloud.Bigtable.Admin.V2\xCA\x02\x1EGoogle\\Cloud\\Bigtable\\Admin\\V2\xEA\x02\"Google::Cloud::Bigtable::Admin::V2\xEAAx\x0A!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/Table.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/Table.php new file mode 100644 index 000000000000..ff6a09730acf --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/Table.php @@ -0,0 +1,30 @@ +internalAddGeneratedFile( + "\x0A\xE8/\x0A\$google/bigtable/admin/v2/table.proto\x12\x18google.bigtable.admin.v2\x1A\x19google/api/resource.proto\x1A\$google/bigtable/admin/v2/types.proto\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x17google/rpc/status.proto\"\x9B\x01\x0A\x0BRestoreInfo\x12@\x0A\x0Bsource_type\x18\x01 \x01(\x0E2+.google.bigtable.admin.v2.RestoreSourceType\x12;\x0A\x0Bbackup_info\x18\x02 \x01(\x0B2\$.google.bigtable.admin.v2.BackupInfoH\x00B\x0D\x0A\x0Bsource_info\"I\x0A\x12ChangeStreamConfig\x123\x0A\x10retention_period\x18\x01 \x01(\x0B2\x19.google.protobuf.Duration\"\x9C\x0D\x0A\x05Table\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12O\x0A\x0Ecluster_states\x18\x02 \x03(\x0B22.google.bigtable.admin.v2.Table.ClusterStatesEntryB\x03\xE0A\x03\x12L\x0A\x0Fcolumn_families\x18\x03 \x03(\x0B23.google.bigtable.admin.v2.Table.ColumnFamiliesEntry\x12N\x0A\x0Bgranularity\x18\x04 \x01(\x0E24.google.bigtable.admin.v2.Table.TimestampGranularityB\x03\xE0A\x05\x12@\x0A\x0Crestore_info\x18\x06 \x01(\x0B2%.google.bigtable.admin.v2.RestoreInfoB\x03\xE0A\x03\x12J\x0A\x14change_stream_config\x18\x08 \x01(\x0B2,.google.bigtable.admin.v2.ChangeStreamConfig\x12\x1B\x0A\x13deletion_protection\x18\x09 \x01(\x08\x12X\x0A\x17automated_backup_policy\x18\x0D \x01(\x0B25.google.bigtable.admin.v2.Table.AutomatedBackupPolicyH\x00\x12L\x0A\x15tiered_storage_config\x18\x0E \x01(\x0B2-.google.bigtable.admin.v2.TieredStorageConfig\x12=\x0A\x0Erow_key_schema\x18\x0F \x01(\x0B2%.google.bigtable.admin.v2.Type.Struct\x1A\xC6\x02\x0A\x0CClusterState\x12]\x0A\x11replication_state\x18\x01 \x01(\x0E2=.google.bigtable.admin.v2.Table.ClusterState.ReplicationStateB\x03\xE0A\x03\x12F\x0A\x0Fencryption_info\x18\x02 \x03(\x0B2(.google.bigtable.admin.v2.EncryptionInfoB\x03\xE0A\x03\"\x8E\x01\x0A\x10ReplicationState\x12\x13\x0A\x0FSTATE_NOT_KNOWN\x10\x00\x12\x10\x0A\x0CINITIALIZING\x10\x01\x12\x17\x0A\x13PLANNED_MAINTENANCE\x10\x02\x12\x19\x0A\x15UNPLANNED_MAINTENANCE\x10\x03\x12\x09\x0A\x05READY\x10\x04\x12\x14\x0A\x10READY_OPTIMIZING\x10\x05\x1A\xBD\x01\x0A\x15AutomatedBackupPolicy\x128\x0A\x10retention_period\x18\x01 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x02\x12,\x0A\x09frequency\x18\x02 \x01(\x0B2\x19.google.protobuf.Duration\x12<\x0A\x09locations\x18\x03 \x03(\x09B)\xE0A\x01\xFAA#\x0A!locations.googleapis.com/Location\x1Ab\x0A\x12ClusterStatesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12;\x0A\x05value\x18\x02 \x01(\x0B2,.google.bigtable.admin.v2.Table.ClusterState:\x028\x01\x1A]\x0A\x13ColumnFamiliesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x125\x0A\x05value\x18\x02 \x01(\x0B2&.google.bigtable.admin.v2.ColumnFamily:\x028\x01\"I\x0A\x14TimestampGranularity\x12%\x0A!TIMESTAMP_GRANULARITY_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06MILLIS\x10\x01\"q\x0A\x04View\x12\x14\x0A\x10VIEW_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09NAME_ONLY\x10\x01\x12\x0F\x0A\x0BSCHEMA_VIEW\x10\x02\x12\x14\x0A\x10REPLICATION_VIEW\x10\x03\x12\x13\x0A\x0FENCRYPTION_VIEW\x10\x05\x12\x08\x0A\x04FULL\x10\x04:_\xEAA\\\x0A\"bigtableadmin.googleapis.com/Table\x126projects/{project}/instances/{instance}/tables/{table}B\x19\x0A\x17automated_backup_config\"\xE3\x05\x0A\x0EAuthorizedView\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12J\x0A\x0Bsubset_view\x18\x02 \x01(\x0B23.google.bigtable.admin.v2.AuthorizedView.SubsetViewH\x00\x12\x0C\x0A\x04etag\x18\x03 \x01(\x09\x12\x1B\x0A\x13deletion_protection\x18\x04 \x01(\x08\x1A?\x0A\x0DFamilySubsets\x12\x12\x0A\x0Aqualifiers\x18\x01 \x03(\x0C\x12\x1A\x0A\x12qualifier_prefixes\x18\x02 \x03(\x0C\x1A\xF0\x01\x0A\x0ASubsetView\x12\x14\x0A\x0Crow_prefixes\x18\x01 \x03(\x0C\x12^\x0A\x0Efamily_subsets\x18\x02 \x03(\x0B2F.google.bigtable.admin.v2.AuthorizedView.SubsetView.FamilySubsetsEntry\x1Al\x0A\x12FamilySubsetsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12E\x0A\x05value\x18\x02 \x01(\x0B26.google.bigtable.admin.v2.AuthorizedView.FamilySubsets:\x028\x01\"Q\x0A\x0CResponseView\x12\x1D\x0A\x19RESPONSE_VIEW_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09NAME_ONLY\x10\x01\x12\x09\x0A\x05BASIC\x10\x02\x12\x08\x0A\x04FULL\x10\x03:\xAC\x01\xEAA\xA8\x01\x0A+bigtableadmin.googleapis.com/AuthorizedView\x12Xprojects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}*\x0FauthorizedViews2\x0EauthorizedViewB\x11\x0A\x0Fauthorized_view\"u\x0A\x0CColumnFamily\x121\x0A\x07gc_rule\x18\x01 \x01(\x0B2 .google.bigtable.admin.v2.GcRule\x122\x0A\x0Avalue_type\x18\x03 \x01(\x0B2\x1E.google.bigtable.admin.v2.Type\"\xD5\x02\x0A\x06GcRule\x12\x1A\x0A\x10max_num_versions\x18\x01 \x01(\x05H\x00\x12,\x0A\x07max_age\x18\x02 \x01(\x0B2\x19.google.protobuf.DurationH\x00\x12E\x0A\x0Cintersection\x18\x03 \x01(\x0B2-.google.bigtable.admin.v2.GcRule.IntersectionH\x00\x127\x0A\x05union\x18\x04 \x01(\x0B2&.google.bigtable.admin.v2.GcRule.UnionH\x00\x1A?\x0A\x0CIntersection\x12/\x0A\x05rules\x18\x01 \x03(\x0B2 .google.bigtable.admin.v2.GcRule\x1A8\x0A\x05Union\x12/\x0A\x05rules\x18\x01 \x03(\x0B2 .google.bigtable.admin.v2.GcRuleB\x06\x0A\x04rule\"\xD9\x02\x0A\x0EEncryptionInfo\x12U\x0A\x0Fencryption_type\x18\x03 \x01(\x0E27.google.bigtable.admin.v2.EncryptionInfo.EncryptionTypeB\x03\xE0A\x03\x122\x0A\x11encryption_status\x18\x04 \x01(\x0B2\x12.google.rpc.StatusB\x03\xE0A\x03\x12I\x0A\x0Fkms_key_version\x18\x02 \x01(\x09B0\xE0A\x03\xFAA*\x0A(cloudkms.googleapis.com/CryptoKeyVersion\"q\x0A\x0EEncryptionType\x12\x1F\x0A\x1BENCRYPTION_TYPE_UNSPECIFIED\x10\x00\x12\x1D\x0A\x19GOOGLE_DEFAULT_ENCRYPTION\x10\x01\x12\x1F\x0A\x1BCUSTOMER_MANAGED_ENCRYPTION\x10\x02\"\xE0\x03\x0A\x08Snapshot\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12:\x0A\x0Csource_table\x18\x02 \x01(\x0B2\x1F.google.bigtable.admin.v2.TableB\x03\xE0A\x03\x12\x1C\x0A\x0Fdata_size_bytes\x18\x03 \x01(\x03B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12/\x0A\x0Bdelete_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12<\x0A\x05state\x18\x06 \x01(\x0E2(.google.bigtable.admin.v2.Snapshot.StateB\x03\xE0A\x03\x12\x13\x0A\x0Bdescription\x18\x07 \x01(\x09\"5\x0A\x05State\x12\x13\x0A\x0FSTATE_NOT_KNOWN\x10\x00\x12\x09\x0A\x05READY\x10\x01\x12\x0C\x0A\x08CREATING\x10\x02:{\xEAAx\x0A%bigtableadmin.googleapis.com/Snapshot\x12Oprojects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}\"\xF9\x05\x0A\x06Backup\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x1C\x0A\x0Csource_table\x18\x02 \x01(\x09B\x06\xE0A\x05\xE0A\x02\x12\x1A\x0A\x0Dsource_backup\x18\x0A \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bexpire_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x02\x123\x0A\x0Astart_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x121\x0A\x08end_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x17\x0A\x0Asize_bytes\x18\x06 \x01(\x03B\x03\xE0A\x03\x12:\x0A\x05state\x18\x07 \x01(\x0E2&.google.bigtable.admin.v2.Backup.StateB\x03\xE0A\x03\x12F\x0A\x0Fencryption_info\x18\x09 \x01(\x0B2(.google.bigtable.admin.v2.EncryptionInfoB\x03\xE0A\x03\x12@\x0A\x0Bbackup_type\x18\x0B \x01(\x0E2+.google.bigtable.admin.v2.Backup.BackupType\x128\x0A\x14hot_to_standard_time\x18\x0C \x01(\x0B2\x1A.google.protobuf.Timestamp\"7\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08CREATING\x10\x01\x12\x09\x0A\x05READY\x10\x02\"@\x0A\x0ABackupType\x12\x1B\x0A\x17BACKUP_TYPE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08STANDARD\x10\x01\x12\x07\x0A\x03HOT\x10\x02:u\xEAAr\x0A#bigtableadmin.googleapis.com/Backup\x12Kprojects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}\"\xC0\x01\x0A\x0ABackupInfo\x12\x13\x0A\x06backup\x18\x01 \x01(\x09B\x03\xE0A\x03\x123\x0A\x0Astart_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x121\x0A\x08end_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x19\x0A\x0Csource_table\x18\x04 \x01(\x09B\x03\xE0A\x03\x12\x1A\x0A\x0Dsource_backup\x18\x0A \x01(\x09B\x03\xE0A\x03\"]\x0A\x13TieredStorageConfig\x12F\x0A\x11infrequent_access\x18\x01 \x01(\x0B2+.google.bigtable.admin.v2.TieredStorageRule\"W\x0A\x11TieredStorageRule\x12:\x0A\x15include_if_older_than\x18\x01 \x01(\x0B2\x19.google.protobuf.DurationH\x00B\x06\x0A\x04rule\"-\x0A\x0BProtoSchema\x12\x1E\x0A\x11proto_descriptors\x18\x02 \x01(\x0CB\x03\xE0A\x02\"\xA0\x02\x0A\x0CSchemaBundle\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12=\x0A\x0Cproto_schema\x18\x02 \x01(\x0B2%.google.bigtable.admin.v2.ProtoSchemaH\x00\x12\x11\x0A\x04etag\x18\x03 \x01(\x09B\x03\xE0A\x01:\xA2\x01\xEAA\x9E\x01\x0A)bigtableadmin.googleapis.com/SchemaBundle\x12Tprojects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}*\x0DschemaBundles2\x0CschemaBundleB\x06\x0A\x04type*D\x0A\x11RestoreSourceType\x12#\x0A\x1FRESTORE_SOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06BACKUP\x10\x01B\xF7\x02\x0A\x1Ccom.google.bigtable.admin.v2B\x0ATableProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xAA\x02\x1EGoogle.Cloud.Bigtable.Admin.V2\xCA\x02\x1EGoogle\\Cloud\\Bigtable\\Admin\\V2\xEA\x02\"Google::Cloud::Bigtable::Admin::V2\xEAA\xA6\x01\x0A(cloudkms.googleapis.com/CryptoKeyVersion\x12zprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/Types.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/Types.php new file mode 100644 index 000000000000..544c640ab6c3 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/Types.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xE2\x1B\x0A\$google/bigtable/admin/v2/types.proto\x12\x18google.bigtable.admin.v2\"\xC7\x19\x0A\x04Type\x12:\x0A\x0Abytes_type\x18\x01 \x01(\x0B2\$.google.bigtable.admin.v2.Type.BytesH\x00\x12<\x0A\x0Bstring_type\x18\x02 \x01(\x0B2%.google.bigtable.admin.v2.Type.StringH\x00\x12:\x0A\x0Aint64_type\x18\x05 \x01(\x0B2\$.google.bigtable.admin.v2.Type.Int64H\x00\x12>\x0A\x0Cfloat32_type\x18\x0C \x01(\x0B2&.google.bigtable.admin.v2.Type.Float32H\x00\x12>\x0A\x0Cfloat64_type\x18\x09 \x01(\x0B2&.google.bigtable.admin.v2.Type.Float64H\x00\x128\x0A\x09bool_type\x18\x08 \x01(\x0B2#.google.bigtable.admin.v2.Type.BoolH\x00\x12B\x0A\x0Etimestamp_type\x18\x0A \x01(\x0B2(.google.bigtable.admin.v2.Type.TimestampH\x00\x128\x0A\x09date_type\x18\x0B \x01(\x0B2#.google.bigtable.admin.v2.Type.DateH\x00\x12B\x0A\x0Eaggregate_type\x18\x06 \x01(\x0B2(.google.bigtable.admin.v2.Type.AggregateH\x00\x12<\x0A\x0Bstruct_type\x18\x07 \x01(\x0B2%.google.bigtable.admin.v2.Type.StructH\x00\x12:\x0A\x0Aarray_type\x18\x03 \x01(\x0B2\$.google.bigtable.admin.v2.Type.ArrayH\x00\x126\x0A\x08map_type\x18\x04 \x01(\x0B2\".google.bigtable.admin.v2.Type.MapH\x00\x12:\x0A\x0Aproto_type\x18\x0D \x01(\x0B2\$.google.bigtable.admin.v2.Type.ProtoH\x00\x128\x0A\x09enum_type\x18\x0E \x01(\x0B2#.google.bigtable.admin.v2.Type.EnumH\x00\x1A\xA9\x01\x0A\x05Bytes\x12?\x0A\x08encoding\x18\x01 \x01(\x0B2-.google.bigtable.admin.v2.Type.Bytes.Encoding\x1A_\x0A\x08Encoding\x12@\x0A\x03raw\x18\x01 \x01(\x0B21.google.bigtable.admin.v2.Type.Bytes.Encoding.RawH\x00\x1A\x05\x0A\x03RawB\x0A\x0A\x08encoding\x1A\x9F\x02\x0A\x06String\x12@\x0A\x08encoding\x18\x01 \x01(\x0B2..google.bigtable.admin.v2.Type.String.Encoding\x1A\xD2\x01\x0A\x08Encoding\x12N\x0A\x08utf8_raw\x18\x01 \x01(\x0B26.google.bigtable.admin.v2.Type.String.Encoding.Utf8RawB\x02\x18\x01H\x00\x12N\x0A\x0Autf8_bytes\x18\x02 \x01(\x0B28.google.bigtable.admin.v2.Type.String.Encoding.Utf8BytesH\x00\x1A\x0D\x0A\x07Utf8Raw:\x02\x18\x01\x1A\x0B\x0A\x09Utf8BytesB\x0A\x0A\x08encoding\x1A\xFD\x02\x0A\x05Int64\x12?\x0A\x08encoding\x18\x01 \x01(\x0B2-.google.bigtable.admin.v2.Type.Int64.Encoding\x1A\xB2\x02\x0A\x08Encoding\x12X\x0A\x10big_endian_bytes\x18\x01 \x01(\x0B2<.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytesH\x00\x12\\\x0A\x12ordered_code_bytes\x18\x02 \x01(\x0B2>.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytesH\x00\x1AN\x0A\x0EBigEndianBytes\x12<\x0A\x0Abytes_type\x18\x01 \x01(\x0B2\$.google.bigtable.admin.v2.Type.BytesB\x02\x18\x01\x1A\x12\x0A\x10OrderedCodeBytesB\x0A\x0A\x08encoding\x1A\x06\x0A\x04Bool\x1A\x09\x0A\x07Float32\x1A\x09\x0A\x07Float64\x1A\xB4\x01\x0A\x09Timestamp\x12C\x0A\x08encoding\x18\x01 \x01(\x0B21.google.bigtable.admin.v2.Type.Timestamp.Encoding\x1Ab\x0A\x08Encoding\x12J\x0A\x11unix_micros_int64\x18\x01 \x01(\x0B2-.google.bigtable.admin.v2.Type.Int64.EncodingH\x00B\x0A\x0A\x08encoding\x1A\x06\x0A\x04Date\x1A\xB9\x04\x0A\x06Struct\x12;\x0A\x06fields\x18\x01 \x03(\x0B2+.google.bigtable.admin.v2.Type.Struct.Field\x12@\x0A\x08encoding\x18\x02 \x01(\x0B2..google.bigtable.admin.v2.Type.Struct.Encoding\x1AI\x0A\x05Field\x12\x12\x0A\x0Afield_name\x18\x01 \x01(\x09\x12,\x0A\x04type\x18\x02 \x01(\x0B2\x1E.google.bigtable.admin.v2.Type\x1A\xE4\x02\x0A\x08Encoding\x12M\x0A\x09singleton\x18\x01 \x01(\x0B28.google.bigtable.admin.v2.Type.Struct.Encoding.SingletonH\x00\x12X\x0A\x0Fdelimited_bytes\x18\x02 \x01(\x0B2=.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytesH\x00\x12]\x0A\x12ordered_code_bytes\x18\x03 \x01(\x0B2?.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytesH\x00\x1A\x0B\x0A\x09Singleton\x1A#\x0A\x0EDelimitedBytes\x12\x11\x0A\x09delimiter\x18\x01 \x01(\x0C\x1A\x12\x0A\x10OrderedCodeBytesB\x0A\x0A\x08encoding\x1A7\x0A\x05Proto\x12\x18\x0A\x10schema_bundle_id\x18\x01 \x01(\x09\x12\x14\x0A\x0Cmessage_name\x18\x02 \x01(\x09\x1A3\x0A\x04Enum\x12\x18\x0A\x10schema_bundle_id\x18\x01 \x01(\x09\x12\x11\x0A\x09enum_name\x18\x02 \x01(\x09\x1A=\x0A\x05Array\x124\x0A\x0Celement_type\x18\x01 \x01(\x0B2\x1E.google.bigtable.admin.v2.Type\x1Ak\x0A\x03Map\x120\x0A\x08key_type\x18\x01 \x01(\x0B2\x1E.google.bigtable.admin.v2.Type\x122\x0A\x0Avalue_type\x18\x02 \x01(\x0B2\x1E.google.bigtable.admin.v2.Type\x1A\xDB\x03\x0A\x09Aggregate\x122\x0A\x0Ainput_type\x18\x01 \x01(\x0B2\x1E.google.bigtable.admin.v2.Type\x127\x0A\x0Astate_type\x18\x02 \x01(\x0B2\x1E.google.bigtable.admin.v2.TypeB\x03\xE0A\x03\x12;\x0A\x03sum\x18\x04 \x01(\x0B2,.google.bigtable.admin.v2.Type.Aggregate.SumH\x00\x12e\x0A\x12hllpp_unique_count\x18\x05 \x01(\x0B2G.google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCountH\x00\x12;\x0A\x03max\x18\x06 \x01(\x0B2,.google.bigtable.admin.v2.Type.Aggregate.MaxH\x00\x12;\x0A\x03min\x18\x07 \x01(\x0B2,.google.bigtable.admin.v2.Type.Aggregate.MinH\x00\x1A\x05\x0A\x03Sum\x1A\x05\x0A\x03Max\x1A\x05\x0A\x03Min\x1A \x0A\x1EHyperLogLogPlusPlusUniqueCountB\x0C\x0A\x0AaggregatorB\x06\x0A\x04kindB\xCD\x01\x0A\x1Ccom.google.bigtable.admin.v2B\x0ATypesProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xAA\x02\x1EGoogle.Cloud.Bigtable.Admin.V2\xCA\x02\x1EGoogle\\Cloud\\Bigtable\\Admin\\V2\xEA\x02\"Google::Cloud::Bigtable::Admin::V2b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile.php new file mode 100644 index 000000000000..44f8716f61c4 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile.php @@ -0,0 +1,372 @@ +google.bigtable.admin.v2.AppProfile + */ +class AppProfile extends \Google\Protobuf\Internal\Message +{ + /** + * The unique name of the app profile. Values are of the form + * `projects/{project}/instances/{instance}/appProfiles/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Strongly validated etag for optimistic concurrency control. Preserve the + * value returned from `GetAppProfile` when calling `UpdateAppProfile` to + * fail the request if there has been a modification in the mean time. The + * `update_mask` of the request need not include `etag` for this protection + * to apply. + * See [Wikipedia](https://en.wikipedia.org/wiki/HTTP_ETag) and + * [RFC 7232](https://tools.ietf.org/html/rfc7232#section-2.3) for more + * details. + * + * Generated from protobuf field string etag = 2; + */ + protected $etag = ''; + /** + * Long form description of the use case for this AppProfile. + * + * Generated from protobuf field string description = 3; + */ + protected $description = ''; + protected $routing_policy; + protected $isolation; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The unique name of the app profile. Values are of the form + * `projects/{project}/instances/{instance}/appProfiles/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. + * @type string $etag + * Strongly validated etag for optimistic concurrency control. Preserve the + * value returned from `GetAppProfile` when calling `UpdateAppProfile` to + * fail the request if there has been a modification in the mean time. The + * `update_mask` of the request need not include `etag` for this protection + * to apply. + * See [Wikipedia](https://en.wikipedia.org/wiki/HTTP_ETag) and + * [RFC 7232](https://tools.ietf.org/html/rfc7232#section-2.3) for more + * details. + * @type string $description + * Long form description of the use case for this AppProfile. + * @type \Google\Cloud\Bigtable\Admin\V2\AppProfile\MultiClusterRoutingUseAny $multi_cluster_routing_use_any + * Use a multi-cluster routing policy. + * @type \Google\Cloud\Bigtable\Admin\V2\AppProfile\SingleClusterRouting $single_cluster_routing + * Use a single-cluster routing policy. + * @type int $priority + * This field has been deprecated in favor of `standard_isolation.priority`. + * If you set this field, `standard_isolation.priority` will be set instead. + * The priority of requests sent using this app profile. + * @type \Google\Cloud\Bigtable\Admin\V2\AppProfile\StandardIsolation $standard_isolation + * The standard options used for isolating this app profile's traffic from + * other use cases. + * @type \Google\Cloud\Bigtable\Admin\V2\AppProfile\DataBoostIsolationReadOnly $data_boost_isolation_read_only + * Specifies that this app profile is intended for read-only usage via the + * Data Boost feature. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Instance::initOnce(); + parent::__construct($data); + } + + /** + * The unique name of the app profile. Values are of the form + * `projects/{project}/instances/{instance}/appProfiles/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The unique name of the app profile. Values are of the form + * `projects/{project}/instances/{instance}/appProfiles/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Strongly validated etag for optimistic concurrency control. Preserve the + * value returned from `GetAppProfile` when calling `UpdateAppProfile` to + * fail the request if there has been a modification in the mean time. The + * `update_mask` of the request need not include `etag` for this protection + * to apply. + * See [Wikipedia](https://en.wikipedia.org/wiki/HTTP_ETag) and + * [RFC 7232](https://tools.ietf.org/html/rfc7232#section-2.3) for more + * details. + * + * Generated from protobuf field string etag = 2; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Strongly validated etag for optimistic concurrency control. Preserve the + * value returned from `GetAppProfile` when calling `UpdateAppProfile` to + * fail the request if there has been a modification in the mean time. The + * `update_mask` of the request need not include `etag` for this protection + * to apply. + * See [Wikipedia](https://en.wikipedia.org/wiki/HTTP_ETag) and + * [RFC 7232](https://tools.ietf.org/html/rfc7232#section-2.3) for more + * details. + * + * Generated from protobuf field string etag = 2; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Long form description of the use case for this AppProfile. + * + * Generated from protobuf field string description = 3; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Long form description of the use case for this AppProfile. + * + * Generated from protobuf field string description = 3; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Use a multi-cluster routing policy. + * + * Generated from protobuf field .google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny multi_cluster_routing_use_any = 5; + * @return \Google\Cloud\Bigtable\Admin\V2\AppProfile\MultiClusterRoutingUseAny|null + */ + public function getMultiClusterRoutingUseAny() + { + return $this->readOneof(5); + } + + public function hasMultiClusterRoutingUseAny() + { + return $this->hasOneof(5); + } + + /** + * Use a multi-cluster routing policy. + * + * Generated from protobuf field .google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny multi_cluster_routing_use_any = 5; + * @param \Google\Cloud\Bigtable\Admin\V2\AppProfile\MultiClusterRoutingUseAny $var + * @return $this + */ + public function setMultiClusterRoutingUseAny($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\AppProfile\MultiClusterRoutingUseAny::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Use a single-cluster routing policy. + * + * Generated from protobuf field .google.bigtable.admin.v2.AppProfile.SingleClusterRouting single_cluster_routing = 6; + * @return \Google\Cloud\Bigtable\Admin\V2\AppProfile\SingleClusterRouting|null + */ + public function getSingleClusterRouting() + { + return $this->readOneof(6); + } + + public function hasSingleClusterRouting() + { + return $this->hasOneof(6); + } + + /** + * Use a single-cluster routing policy. + * + * Generated from protobuf field .google.bigtable.admin.v2.AppProfile.SingleClusterRouting single_cluster_routing = 6; + * @param \Google\Cloud\Bigtable\Admin\V2\AppProfile\SingleClusterRouting $var + * @return $this + */ + public function setSingleClusterRouting($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\AppProfile\SingleClusterRouting::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * This field has been deprecated in favor of `standard_isolation.priority`. + * If you set this field, `standard_isolation.priority` will be set instead. + * The priority of requests sent using this app profile. + * + * Generated from protobuf field .google.bigtable.admin.v2.AppProfile.Priority priority = 7 [deprecated = true]; + * @return int + * @deprecated + */ + public function getPriority() + { + if ($this->hasOneof(7)) { + @trigger_error('priority is deprecated.', E_USER_DEPRECATED); + } + return $this->readOneof(7); + } + + public function hasPriority() + { + if ($this->hasOneof(7)) { + @trigger_error('priority is deprecated.', E_USER_DEPRECATED); + } + return $this->hasOneof(7); + } + + /** + * This field has been deprecated in favor of `standard_isolation.priority`. + * If you set this field, `standard_isolation.priority` will be set instead. + * The priority of requests sent using this app profile. + * + * Generated from protobuf field .google.bigtable.admin.v2.AppProfile.Priority priority = 7 [deprecated = true]; + * @param int $var + * @return $this + * @deprecated + */ + public function setPriority($var) + { + @trigger_error('priority is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\AppProfile\Priority::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * The standard options used for isolating this app profile's traffic from + * other use cases. + * + * Generated from protobuf field .google.bigtable.admin.v2.AppProfile.StandardIsolation standard_isolation = 11; + * @return \Google\Cloud\Bigtable\Admin\V2\AppProfile\StandardIsolation|null + */ + public function getStandardIsolation() + { + return $this->readOneof(11); + } + + public function hasStandardIsolation() + { + return $this->hasOneof(11); + } + + /** + * The standard options used for isolating this app profile's traffic from + * other use cases. + * + * Generated from protobuf field .google.bigtable.admin.v2.AppProfile.StandardIsolation standard_isolation = 11; + * @param \Google\Cloud\Bigtable\Admin\V2\AppProfile\StandardIsolation $var + * @return $this + */ + public function setStandardIsolation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\AppProfile\StandardIsolation::class); + $this->writeOneof(11, $var); + + return $this; + } + + /** + * Specifies that this app profile is intended for read-only usage via the + * Data Boost feature. + * + * Generated from protobuf field .google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly data_boost_isolation_read_only = 10; + * @return \Google\Cloud\Bigtable\Admin\V2\AppProfile\DataBoostIsolationReadOnly|null + */ + public function getDataBoostIsolationReadOnly() + { + return $this->readOneof(10); + } + + public function hasDataBoostIsolationReadOnly() + { + return $this->hasOneof(10); + } + + /** + * Specifies that this app profile is intended for read-only usage via the + * Data Boost feature. + * + * Generated from protobuf field .google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly data_boost_isolation_read_only = 10; + * @param \Google\Cloud\Bigtable\Admin\V2\AppProfile\DataBoostIsolationReadOnly $var + * @return $this + */ + public function setDataBoostIsolationReadOnly($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\AppProfile\DataBoostIsolationReadOnly::class); + $this->writeOneof(10, $var); + + return $this; + } + + /** + * @return string + */ + public function getRoutingPolicy() + { + return $this->whichOneof("routing_policy"); + } + + /** + * @return string + */ + public function getIsolation() + { + return $this->whichOneof("isolation"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/DataBoostIsolationReadOnly.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/DataBoostIsolationReadOnly.php new file mode 100644 index 000000000000..7649f858de25 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/DataBoostIsolationReadOnly.php @@ -0,0 +1,81 @@ +google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly + */ +class DataBoostIsolationReadOnly extends \Google\Protobuf\Internal\Message +{ + /** + * The Compute Billing Owner for this Data Boost App Profile. + * + * Generated from protobuf field optional .google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly.ComputeBillingOwner compute_billing_owner = 1; + */ + protected $compute_billing_owner = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $compute_billing_owner + * The Compute Billing Owner for this Data Boost App Profile. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Instance::initOnce(); + parent::__construct($data); + } + + /** + * The Compute Billing Owner for this Data Boost App Profile. + * + * Generated from protobuf field optional .google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly.ComputeBillingOwner compute_billing_owner = 1; + * @return int + */ + public function getComputeBillingOwner() + { + return isset($this->compute_billing_owner) ? $this->compute_billing_owner : 0; + } + + public function hasComputeBillingOwner() + { + return isset($this->compute_billing_owner); + } + + public function clearComputeBillingOwner() + { + unset($this->compute_billing_owner); + } + + /** + * The Compute Billing Owner for this Data Boost App Profile. + * + * Generated from protobuf field optional .google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly.ComputeBillingOwner compute_billing_owner = 1; + * @param int $var + * @return $this + */ + public function setComputeBillingOwner($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\AppProfile\DataBoostIsolationReadOnly\ComputeBillingOwner::class); + $this->compute_billing_owner = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/DataBoostIsolationReadOnly/ComputeBillingOwner.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/DataBoostIsolationReadOnly/ComputeBillingOwner.php new file mode 100644 index 000000000000..839958b1b4ec --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/DataBoostIsolationReadOnly/ComputeBillingOwner.php @@ -0,0 +1,57 @@ +google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly.ComputeBillingOwner + */ +class ComputeBillingOwner +{ + /** + * Unspecified value. + * + * Generated from protobuf enum COMPUTE_BILLING_OWNER_UNSPECIFIED = 0; + */ + const COMPUTE_BILLING_OWNER_UNSPECIFIED = 0; + /** + * The host Cloud Project containing the targeted Bigtable Instance / + * Table pays for compute. + * + * Generated from protobuf enum HOST_PAYS = 1; + */ + const HOST_PAYS = 1; + + private static $valueToName = [ + self::COMPUTE_BILLING_OWNER_UNSPECIFIED => 'COMPUTE_BILLING_OWNER_UNSPECIFIED', + self::HOST_PAYS => 'HOST_PAYS', + ]; + + 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/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/MultiClusterRoutingUseAny.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/MultiClusterRoutingUseAny.php new file mode 100644 index 000000000000..da58d84965e7 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/MultiClusterRoutingUseAny.php @@ -0,0 +1,120 @@ +google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny + */ +class MultiClusterRoutingUseAny extends \Google\Protobuf\Internal\Message +{ + /** + * The set of clusters to route to. The order is ignored; clusters will be + * tried in order of distance. If left empty, all clusters are eligible. + * + * Generated from protobuf field repeated string cluster_ids = 1; + */ + private $cluster_ids; + protected $affinity; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $cluster_ids + * The set of clusters to route to. The order is ignored; clusters will be + * tried in order of distance. If left empty, all clusters are eligible. + * @type \Google\Cloud\Bigtable\Admin\V2\AppProfile\MultiClusterRoutingUseAny\RowAffinity $row_affinity + * Row affinity sticky routing based on the row key of the request. + * Requests that span multiple rows are routed non-deterministically. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Instance::initOnce(); + parent::__construct($data); + } + + /** + * The set of clusters to route to. The order is ignored; clusters will be + * tried in order of distance. If left empty, all clusters are eligible. + * + * Generated from protobuf field repeated string cluster_ids = 1; + * @return RepeatedField + */ + public function getClusterIds() + { + return $this->cluster_ids; + } + + /** + * The set of clusters to route to. The order is ignored; clusters will be + * tried in order of distance. If left empty, all clusters are eligible. + * + * Generated from protobuf field repeated string cluster_ids = 1; + * @param string[] $var + * @return $this + */ + public function setClusterIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->cluster_ids = $arr; + + return $this; + } + + /** + * Row affinity sticky routing based on the row key of the request. + * Requests that span multiple rows are routed non-deterministically. + * + * Generated from protobuf field .google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.RowAffinity row_affinity = 3; + * @return \Google\Cloud\Bigtable\Admin\V2\AppProfile\MultiClusterRoutingUseAny\RowAffinity|null + */ + public function getRowAffinity() + { + return $this->readOneof(3); + } + + public function hasRowAffinity() + { + return $this->hasOneof(3); + } + + /** + * Row affinity sticky routing based on the row key of the request. + * Requests that span multiple rows are routed non-deterministically. + * + * Generated from protobuf field .google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.RowAffinity row_affinity = 3; + * @param \Google\Cloud\Bigtable\Admin\V2\AppProfile\MultiClusterRoutingUseAny\RowAffinity $var + * @return $this + */ + public function setRowAffinity($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\AppProfile\MultiClusterRoutingUseAny\RowAffinity::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getAffinity() + { + return $this->whichOneof("affinity"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/MultiClusterRoutingUseAny/RowAffinity.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/MultiClusterRoutingUseAny/RowAffinity.php new file mode 100644 index 000000000000..8204201d7237 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/MultiClusterRoutingUseAny/RowAffinity.php @@ -0,0 +1,41 @@ +google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.RowAffinity + */ +class RowAffinity extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Instance::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/Priority.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/Priority.php new file mode 100644 index 000000000000..fc95d4cbd0eb --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/Priority.php @@ -0,0 +1,64 @@ +google.bigtable.admin.v2.AppProfile.Priority + */ +class Priority +{ + /** + * Default value. Mapped to PRIORITY_HIGH (the legacy behavior) on creation. + * + * Generated from protobuf enum PRIORITY_UNSPECIFIED = 0; + */ + const PRIORITY_UNSPECIFIED = 0; + /** + * Generated from protobuf enum PRIORITY_LOW = 1; + */ + const PRIORITY_LOW = 1; + /** + * Generated from protobuf enum PRIORITY_MEDIUM = 2; + */ + const PRIORITY_MEDIUM = 2; + /** + * Generated from protobuf enum PRIORITY_HIGH = 3; + */ + const PRIORITY_HIGH = 3; + + private static $valueToName = [ + self::PRIORITY_UNSPECIFIED => 'PRIORITY_UNSPECIFIED', + self::PRIORITY_LOW => 'PRIORITY_LOW', + self::PRIORITY_MEDIUM => 'PRIORITY_MEDIUM', + self::PRIORITY_HIGH => 'PRIORITY_HIGH', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/SingleClusterRouting.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/SingleClusterRouting.php new file mode 100644 index 000000000000..12ae6eb0923b --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/SingleClusterRouting.php @@ -0,0 +1,111 @@ +google.bigtable.admin.v2.AppProfile.SingleClusterRouting + */ +class SingleClusterRouting extends \Google\Protobuf\Internal\Message +{ + /** + * The cluster to which read/write requests should be routed. + * + * Generated from protobuf field string cluster_id = 1; + */ + protected $cluster_id = ''; + /** + * Whether or not `CheckAndMutateRow` and `ReadModifyWriteRow` requests are + * allowed by this app profile. It is unsafe to send these requests to + * the same table/row/column in multiple clusters. + * + * Generated from protobuf field bool allow_transactional_writes = 2; + */ + protected $allow_transactional_writes = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $cluster_id + * The cluster to which read/write requests should be routed. + * @type bool $allow_transactional_writes + * Whether or not `CheckAndMutateRow` and `ReadModifyWriteRow` requests are + * allowed by this app profile. It is unsafe to send these requests to + * the same table/row/column in multiple clusters. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Instance::initOnce(); + parent::__construct($data); + } + + /** + * The cluster to which read/write requests should be routed. + * + * Generated from protobuf field string cluster_id = 1; + * @return string + */ + public function getClusterId() + { + return $this->cluster_id; + } + + /** + * The cluster to which read/write requests should be routed. + * + * Generated from protobuf field string cluster_id = 1; + * @param string $var + * @return $this + */ + public function setClusterId($var) + { + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Whether or not `CheckAndMutateRow` and `ReadModifyWriteRow` requests are + * allowed by this app profile. It is unsafe to send these requests to + * the same table/row/column in multiple clusters. + * + * Generated from protobuf field bool allow_transactional_writes = 2; + * @return bool + */ + public function getAllowTransactionalWrites() + { + return $this->allow_transactional_writes; + } + + /** + * Whether or not `CheckAndMutateRow` and `ReadModifyWriteRow` requests are + * allowed by this app profile. It is unsafe to send these requests to + * the same table/row/column in multiple clusters. + * + * Generated from protobuf field bool allow_transactional_writes = 2; + * @param bool $var + * @return $this + */ + public function setAllowTransactionalWrites($var) + { + GPBUtil::checkBool($var); + $this->allow_transactional_writes = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/StandardIsolation.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/StandardIsolation.php new file mode 100644 index 000000000000..f89709f2c423 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/StandardIsolation.php @@ -0,0 +1,68 @@ +google.bigtable.admin.v2.AppProfile.StandardIsolation + */ +class StandardIsolation extends \Google\Protobuf\Internal\Message +{ + /** + * The priority of requests sent using this app profile. + * + * Generated from protobuf field .google.bigtable.admin.v2.AppProfile.Priority priority = 1; + */ + protected $priority = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $priority + * The priority of requests sent using this app profile. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Instance::initOnce(); + parent::__construct($data); + } + + /** + * The priority of requests sent using this app profile. + * + * Generated from protobuf field .google.bigtable.admin.v2.AppProfile.Priority priority = 1; + * @return int + */ + public function getPriority() + { + return $this->priority; + } + + /** + * The priority of requests sent using this app profile. + * + * Generated from protobuf field .google.bigtable.admin.v2.AppProfile.Priority priority = 1; + * @param int $var + * @return $this + */ + public function setPriority($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\AppProfile\Priority::class); + $this->priority = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AuthorizedView.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AuthorizedView.php new file mode 100644 index 000000000000..e0cbcf28c5ad --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AuthorizedView.php @@ -0,0 +1,203 @@ +google.bigtable.admin.v2.AuthorizedView + */ +class AuthorizedView extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The name of this AuthorizedView. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * The etag for this AuthorizedView. + * If this is provided on update, it must match the server's etag. The server + * returns ABORTED error on a mismatched etag. + * + * Generated from protobuf field string etag = 3; + */ + protected $etag = ''; + /** + * Set to true to make the AuthorizedView protected against deletion. + * The parent Table and containing Instance cannot be deleted if an + * AuthorizedView has this bit set. + * + * Generated from protobuf field bool deletion_protection = 4; + */ + protected $deletion_protection = false; + protected $authorized_view; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The name of this AuthorizedView. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}` + * @type \Google\Cloud\Bigtable\Admin\V2\AuthorizedView\SubsetView $subset_view + * An AuthorizedView permitting access to an explicit subset of a Table. + * @type string $etag + * The etag for this AuthorizedView. + * If this is provided on update, it must match the server's etag. The server + * returns ABORTED error on a mismatched etag. + * @type bool $deletion_protection + * Set to true to make the AuthorizedView protected against deletion. + * The parent Table and containing Instance cannot be deleted if an + * AuthorizedView has this bit set. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The name of this AuthorizedView. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The name of this AuthorizedView. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * An AuthorizedView permitting access to an explicit subset of a Table. + * + * Generated from protobuf field .google.bigtable.admin.v2.AuthorizedView.SubsetView subset_view = 2; + * @return \Google\Cloud\Bigtable\Admin\V2\AuthorizedView\SubsetView|null + */ + public function getSubsetView() + { + return $this->readOneof(2); + } + + public function hasSubsetView() + { + return $this->hasOneof(2); + } + + /** + * An AuthorizedView permitting access to an explicit subset of a Table. + * + * Generated from protobuf field .google.bigtable.admin.v2.AuthorizedView.SubsetView subset_view = 2; + * @param \Google\Cloud\Bigtable\Admin\V2\AuthorizedView\SubsetView $var + * @return $this + */ + public function setSubsetView($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\AuthorizedView\SubsetView::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * The etag for this AuthorizedView. + * If this is provided on update, it must match the server's etag. The server + * returns ABORTED error on a mismatched etag. + * + * Generated from protobuf field string etag = 3; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * The etag for this AuthorizedView. + * If this is provided on update, it must match the server's etag. The server + * returns ABORTED error on a mismatched etag. + * + * Generated from protobuf field string etag = 3; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Set to true to make the AuthorizedView protected against deletion. + * The parent Table and containing Instance cannot be deleted if an + * AuthorizedView has this bit set. + * + * Generated from protobuf field bool deletion_protection = 4; + * @return bool + */ + public function getDeletionProtection() + { + return $this->deletion_protection; + } + + /** + * Set to true to make the AuthorizedView protected against deletion. + * The parent Table and containing Instance cannot be deleted if an + * AuthorizedView has this bit set. + * + * Generated from protobuf field bool deletion_protection = 4; + * @param bool $var + * @return $this + */ + public function setDeletionProtection($var) + { + GPBUtil::checkBool($var); + $this->deletion_protection = $var; + + return $this; + } + + /** + * @return string + */ + public function getAuthorizedView() + { + return $this->whichOneof("authorized_view"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AuthorizedView/FamilySubsets.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AuthorizedView/FamilySubsets.php new file mode 100644 index 000000000000..27732e4ca766 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AuthorizedView/FamilySubsets.php @@ -0,0 +1,117 @@ +google.bigtable.admin.v2.AuthorizedView.FamilySubsets + */ +class FamilySubsets extends \Google\Protobuf\Internal\Message +{ + /** + * Individual exact column qualifiers to be included in the AuthorizedView. + * + * Generated from protobuf field repeated bytes qualifiers = 1; + */ + private $qualifiers; + /** + * Prefixes for qualifiers to be included in the AuthorizedView. Every + * qualifier starting with one of these prefixes is included in the + * AuthorizedView. To provide access to all qualifiers, include the empty + * string as a prefix + * (""). + * + * Generated from protobuf field repeated bytes qualifier_prefixes = 2; + */ + private $qualifier_prefixes; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $qualifiers + * Individual exact column qualifiers to be included in the AuthorizedView. + * @type string[] $qualifier_prefixes + * Prefixes for qualifiers to be included in the AuthorizedView. Every + * qualifier starting with one of these prefixes is included in the + * AuthorizedView. To provide access to all qualifiers, include the empty + * string as a prefix + * (""). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); + parent::__construct($data); + } + + /** + * Individual exact column qualifiers to be included in the AuthorizedView. + * + * Generated from protobuf field repeated bytes qualifiers = 1; + * @return RepeatedField + */ + public function getQualifiers() + { + return $this->qualifiers; + } + + /** + * Individual exact column qualifiers to be included in the AuthorizedView. + * + * Generated from protobuf field repeated bytes qualifiers = 1; + * @param string[] $var + * @return $this + */ + public function setQualifiers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::BYTES); + $this->qualifiers = $arr; + + return $this; + } + + /** + * Prefixes for qualifiers to be included in the AuthorizedView. Every + * qualifier starting with one of these prefixes is included in the + * AuthorizedView. To provide access to all qualifiers, include the empty + * string as a prefix + * (""). + * + * Generated from protobuf field repeated bytes qualifier_prefixes = 2; + * @return RepeatedField + */ + public function getQualifierPrefixes() + { + return $this->qualifier_prefixes; + } + + /** + * Prefixes for qualifiers to be included in the AuthorizedView. Every + * qualifier starting with one of these prefixes is included in the + * AuthorizedView. To provide access to all qualifiers, include the empty + * string as a prefix + * (""). + * + * Generated from protobuf field repeated bytes qualifier_prefixes = 2; + * @param string[] $var + * @return $this + */ + public function setQualifierPrefixes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::BYTES); + $this->qualifier_prefixes = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AuthorizedView/ResponseView.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AuthorizedView/ResponseView.php new file mode 100644 index 000000000000..3f695a9ad555 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AuthorizedView/ResponseView.php @@ -0,0 +1,69 @@ +google.bigtable.admin.v2.AuthorizedView.ResponseView + */ +class ResponseView +{ + /** + * Uses the default view for each method as documented in the request. + * + * Generated from protobuf enum RESPONSE_VIEW_UNSPECIFIED = 0; + */ + const RESPONSE_VIEW_UNSPECIFIED = 0; + /** + * Only populates `name`. + * + * Generated from protobuf enum NAME_ONLY = 1; + */ + const NAME_ONLY = 1; + /** + * Only populates the AuthorizedView's basic metadata. This includes: + * name, deletion_protection, etag. + * + * Generated from protobuf enum BASIC = 2; + */ + const BASIC = 2; + /** + * Populates every fields. + * + * Generated from protobuf enum FULL = 3; + */ + const FULL = 3; + + private static $valueToName = [ + self::RESPONSE_VIEW_UNSPECIFIED => 'RESPONSE_VIEW_UNSPECIFIED', + self::NAME_ONLY => 'NAME_ONLY', + self::BASIC => 'BASIC', + self::FULL => 'FULL', + ]; + + 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/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AuthorizedView/SubsetView.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AuthorizedView/SubsetView.php new file mode 100644 index 000000000000..1daea5adaf19 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AuthorizedView/SubsetView.php @@ -0,0 +1,109 @@ +google.bigtable.admin.v2.AuthorizedView.SubsetView + */ +class SubsetView extends \Google\Protobuf\Internal\Message +{ + /** + * Row prefixes to be included in the AuthorizedView. + * To provide access to all rows, include the empty string as a prefix (""). + * + * Generated from protobuf field repeated bytes row_prefixes = 1; + */ + private $row_prefixes; + /** + * Map from column family name to the columns in this family to be included + * in the AuthorizedView. + * + * Generated from protobuf field map family_subsets = 2; + */ + private $family_subsets; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $row_prefixes + * Row prefixes to be included in the AuthorizedView. + * To provide access to all rows, include the empty string as a prefix (""). + * @type array|\Google\Protobuf\Internal\MapField $family_subsets + * Map from column family name to the columns in this family to be included + * in the AuthorizedView. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); + parent::__construct($data); + } + + /** + * Row prefixes to be included in the AuthorizedView. + * To provide access to all rows, include the empty string as a prefix (""). + * + * Generated from protobuf field repeated bytes row_prefixes = 1; + * @return RepeatedField + */ + public function getRowPrefixes() + { + return $this->row_prefixes; + } + + /** + * Row prefixes to be included in the AuthorizedView. + * To provide access to all rows, include the empty string as a prefix (""). + * + * Generated from protobuf field repeated bytes row_prefixes = 1; + * @param string[] $var + * @return $this + */ + public function setRowPrefixes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::BYTES); + $this->row_prefixes = $arr; + + return $this; + } + + /** + * Map from column family name to the columns in this family to be included + * in the AuthorizedView. + * + * Generated from protobuf field map family_subsets = 2; + * @return \Google\Protobuf\Internal\MapField + */ + public function getFamilySubsets() + { + return $this->family_subsets; + } + + /** + * Map from column family name to the columns in this family to be included + * in the AuthorizedView. + * + * Generated from protobuf field map family_subsets = 2; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setFamilySubsets($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\AuthorizedView\FamilySubsets::class); + $this->family_subsets = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AutoscalingLimits.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AutoscalingLimits.php new file mode 100644 index 000000000000..e492e9555856 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AutoscalingLimits.php @@ -0,0 +1,101 @@ +google.bigtable.admin.v2.AutoscalingLimits + */ +class AutoscalingLimits extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Minimum number of nodes to scale down to. + * + * Generated from protobuf field int32 min_serve_nodes = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $min_serve_nodes = 0; + /** + * Required. Maximum number of nodes to scale up to. + * + * Generated from protobuf field int32 max_serve_nodes = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $max_serve_nodes = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $min_serve_nodes + * Required. Minimum number of nodes to scale down to. + * @type int $max_serve_nodes + * Required. Maximum number of nodes to scale up to. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Instance::initOnce(); + parent::__construct($data); + } + + /** + * Required. Minimum number of nodes to scale down to. + * + * Generated from protobuf field int32 min_serve_nodes = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getMinServeNodes() + { + return $this->min_serve_nodes; + } + + /** + * Required. Minimum number of nodes to scale down to. + * + * Generated from protobuf field int32 min_serve_nodes = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setMinServeNodes($var) + { + GPBUtil::checkInt32($var); + $this->min_serve_nodes = $var; + + return $this; + } + + /** + * Required. Maximum number of nodes to scale up to. + * + * Generated from protobuf field int32 max_serve_nodes = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getMaxServeNodes() + { + return $this->max_serve_nodes; + } + + /** + * Required. Maximum number of nodes to scale up to. + * + * Generated from protobuf field int32 max_serve_nodes = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setMaxServeNodes($var) + { + GPBUtil::checkInt32($var); + $this->max_serve_nodes = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AutoscalingTargets.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AutoscalingTargets.php new file mode 100644 index 000000000000..533ef12a6549 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AutoscalingTargets.php @@ -0,0 +1,133 @@ +google.bigtable.admin.v2.AutoscalingTargets + */ +class AutoscalingTargets extends \Google\Protobuf\Internal\Message +{ + /** + * The cpu utilization that the Autoscaler should be trying to achieve. + * This number is on a scale from 0 (no utilization) to + * 100 (total utilization), and is limited between 10 and 80, otherwise it + * will return INVALID_ARGUMENT error. + * + * Generated from protobuf field int32 cpu_utilization_percent = 2; + */ + protected $cpu_utilization_percent = 0; + /** + * The storage utilization that the Autoscaler should be trying to achieve. + * This number is limited between 2560 (2.5TiB) and 5120 (5TiB) for a SSD + * cluster and between 8192 (8TiB) and 16384 (16TiB) for an HDD cluster, + * otherwise it will return INVALID_ARGUMENT error. If this value is set to 0, + * it will be treated as if it were set to the default value: 2560 for SSD, + * 8192 for HDD. + * + * Generated from protobuf field int32 storage_utilization_gib_per_node = 3; + */ + protected $storage_utilization_gib_per_node = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $cpu_utilization_percent + * The cpu utilization that the Autoscaler should be trying to achieve. + * This number is on a scale from 0 (no utilization) to + * 100 (total utilization), and is limited between 10 and 80, otherwise it + * will return INVALID_ARGUMENT error. + * @type int $storage_utilization_gib_per_node + * The storage utilization that the Autoscaler should be trying to achieve. + * This number is limited between 2560 (2.5TiB) and 5120 (5TiB) for a SSD + * cluster and between 8192 (8TiB) and 16384 (16TiB) for an HDD cluster, + * otherwise it will return INVALID_ARGUMENT error. If this value is set to 0, + * it will be treated as if it were set to the default value: 2560 for SSD, + * 8192 for HDD. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Instance::initOnce(); + parent::__construct($data); + } + + /** + * The cpu utilization that the Autoscaler should be trying to achieve. + * This number is on a scale from 0 (no utilization) to + * 100 (total utilization), and is limited between 10 and 80, otherwise it + * will return INVALID_ARGUMENT error. + * + * Generated from protobuf field int32 cpu_utilization_percent = 2; + * @return int + */ + public function getCpuUtilizationPercent() + { + return $this->cpu_utilization_percent; + } + + /** + * The cpu utilization that the Autoscaler should be trying to achieve. + * This number is on a scale from 0 (no utilization) to + * 100 (total utilization), and is limited between 10 and 80, otherwise it + * will return INVALID_ARGUMENT error. + * + * Generated from protobuf field int32 cpu_utilization_percent = 2; + * @param int $var + * @return $this + */ + public function setCpuUtilizationPercent($var) + { + GPBUtil::checkInt32($var); + $this->cpu_utilization_percent = $var; + + return $this; + } + + /** + * The storage utilization that the Autoscaler should be trying to achieve. + * This number is limited between 2560 (2.5TiB) and 5120 (5TiB) for a SSD + * cluster and between 8192 (8TiB) and 16384 (16TiB) for an HDD cluster, + * otherwise it will return INVALID_ARGUMENT error. If this value is set to 0, + * it will be treated as if it were set to the default value: 2560 for SSD, + * 8192 for HDD. + * + * Generated from protobuf field int32 storage_utilization_gib_per_node = 3; + * @return int + */ + public function getStorageUtilizationGibPerNode() + { + return $this->storage_utilization_gib_per_node; + } + + /** + * The storage utilization that the Autoscaler should be trying to achieve. + * This number is limited between 2560 (2.5TiB) and 5120 (5TiB) for a SSD + * cluster and between 8192 (8TiB) and 16384 (16TiB) for an HDD cluster, + * otherwise it will return INVALID_ARGUMENT error. If this value is set to 0, + * it will be treated as if it were set to the default value: 2560 for SSD, + * 8192 for HDD. + * + * Generated from protobuf field int32 storage_utilization_gib_per_node = 3; + * @param int $var + * @return $this + */ + public function setStorageUtilizationGibPerNode($var) + { + GPBUtil::checkInt32($var); + $this->storage_utilization_gib_per_node = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Backup.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Backup.php new file mode 100644 index 000000000000..e615febf1f43 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Backup.php @@ -0,0 +1,573 @@ +google.bigtable.admin.v2.Backup + */ +class Backup extends \Google\Protobuf\Internal\Message +{ + /** + * A globally unique identifier for the backup which cannot be + * changed. Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}/ + * backups/[_a-zA-Z0-9][-_.a-zA-Z0-9]*` + * The final segment of the name must be between 1 and 50 characters + * in length. + * The backup is stored in the cluster identified by the prefix of the backup + * name of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}`. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Required. Immutable. Name of the table from which this backup was created. + * This needs to be in the same instance as the backup. Values are of the form + * `projects/{project}/instances/{instance}/tables/{source_table}`. + * + * Generated from protobuf field string source_table = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + */ + protected $source_table = ''; + /** + * Output only. Name of the backup from which this backup was copied. If a + * backup is not created by copying a backup, this field will be empty. Values + * are of the form: + * projects//instances//clusters//backups/ + * + * Generated from protobuf field string source_backup = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $source_backup = ''; + /** + * Required. The expiration time of the backup. + * When creating a backup or updating its `expire_time`, the value must be + * greater than the backup creation time by: + * - At least 6 hours + * - At most 90 days + * Once the `expire_time` has passed, Cloud Bigtable will delete the backup. + * + * Generated from protobuf field .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $expire_time = null; + /** + * Output only. `start_time` is the time that the backup was started + * (i.e. approximately the time the + * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup] + * request is received). The row data in this backup will be no older than + * this timestamp. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $start_time = null; + /** + * Output only. `end_time` is the time that the backup was finished. The row + * data in the backup will be no newer than this timestamp. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $end_time = null; + /** + * Output only. Size of the backup in bytes. + * + * Generated from protobuf field int64 size_bytes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $size_bytes = 0; + /** + * Output only. The current state of the backup. + * + * Generated from protobuf field .google.bigtable.admin.v2.Backup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. The encryption information for the backup. + * + * Generated from protobuf field .google.bigtable.admin.v2.EncryptionInfo encryption_info = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $encryption_info = null; + /** + * Indicates the backup type of the backup. + * + * Generated from protobuf field .google.bigtable.admin.v2.Backup.BackupType backup_type = 11; + */ + protected $backup_type = 0; + /** + * The time at which the hot backup will be converted to a standard backup. + * Once the `hot_to_standard_time` has passed, Cloud Bigtable will convert the + * hot backup to a standard backup. This value must be greater than the backup + * creation time by: + * - At least 24 hours + * This field only applies for hot backups. When creating or updating a + * standard backup, attempting to set this field will fail the request. + * + * Generated from protobuf field .google.protobuf.Timestamp hot_to_standard_time = 12; + */ + protected $hot_to_standard_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * A globally unique identifier for the backup which cannot be + * changed. Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}/ + * backups/[_a-zA-Z0-9][-_.a-zA-Z0-9]*` + * The final segment of the name must be between 1 and 50 characters + * in length. + * The backup is stored in the cluster identified by the prefix of the backup + * name of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}`. + * @type string $source_table + * Required. Immutable. Name of the table from which this backup was created. + * This needs to be in the same instance as the backup. Values are of the form + * `projects/{project}/instances/{instance}/tables/{source_table}`. + * @type string $source_backup + * Output only. Name of the backup from which this backup was copied. If a + * backup is not created by copying a backup, this field will be empty. Values + * are of the form: + * projects//instances//clusters//backups/ + * @type \Google\Protobuf\Timestamp $expire_time + * Required. The expiration time of the backup. + * When creating a backup or updating its `expire_time`, the value must be + * greater than the backup creation time by: + * - At least 6 hours + * - At most 90 days + * Once the `expire_time` has passed, Cloud Bigtable will delete the backup. + * @type \Google\Protobuf\Timestamp $start_time + * Output only. `start_time` is the time that the backup was started + * (i.e. approximately the time the + * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup] + * request is received). The row data in this backup will be no older than + * this timestamp. + * @type \Google\Protobuf\Timestamp $end_time + * Output only. `end_time` is the time that the backup was finished. The row + * data in the backup will be no newer than this timestamp. + * @type int|string $size_bytes + * Output only. Size of the backup in bytes. + * @type int $state + * Output only. The current state of the backup. + * @type \Google\Cloud\Bigtable\Admin\V2\EncryptionInfo $encryption_info + * Output only. The encryption information for the backup. + * @type int $backup_type + * Indicates the backup type of the backup. + * @type \Google\Protobuf\Timestamp $hot_to_standard_time + * The time at which the hot backup will be converted to a standard backup. + * Once the `hot_to_standard_time` has passed, Cloud Bigtable will convert the + * hot backup to a standard backup. This value must be greater than the backup + * creation time by: + * - At least 24 hours + * This field only applies for hot backups. When creating or updating a + * standard backup, attempting to set this field will fail the request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); + parent::__construct($data); + } + + /** + * A globally unique identifier for the backup which cannot be + * changed. Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}/ + * backups/[_a-zA-Z0-9][-_.a-zA-Z0-9]*` + * The final segment of the name must be between 1 and 50 characters + * in length. + * The backup is stored in the cluster identified by the prefix of the backup + * name of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}`. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * A globally unique identifier for the backup which cannot be + * changed. Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}/ + * backups/[_a-zA-Z0-9][-_.a-zA-Z0-9]*` + * The final segment of the name must be between 1 and 50 characters + * in length. + * The backup is stored in the cluster identified by the prefix of the backup + * name of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}`. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. Immutable. Name of the table from which this backup was created. + * This needs to be in the same instance as the backup. Values are of the form + * `projects/{project}/instances/{instance}/tables/{source_table}`. + * + * Generated from protobuf field string source_table = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getSourceTable() + { + return $this->source_table; + } + + /** + * Required. Immutable. Name of the table from which this backup was created. + * This needs to be in the same instance as the backup. Values are of the form + * `projects/{project}/instances/{instance}/tables/{source_table}`. + * + * Generated from protobuf field string source_table = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setSourceTable($var) + { + GPBUtil::checkString($var, True); + $this->source_table = $var; + + return $this; + } + + /** + * Output only. Name of the backup from which this backup was copied. If a + * backup is not created by copying a backup, this field will be empty. Values + * are of the form: + * projects//instances//clusters//backups/ + * + * Generated from protobuf field string source_backup = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getSourceBackup() + { + return $this->source_backup; + } + + /** + * Output only. Name of the backup from which this backup was copied. If a + * backup is not created by copying a backup, this field will be empty. Values + * are of the form: + * projects//instances//clusters//backups/ + * + * Generated from protobuf field string source_backup = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setSourceBackup($var) + { + GPBUtil::checkString($var, True); + $this->source_backup = $var; + + return $this; + } + + /** + * Required. The expiration time of the backup. + * When creating a backup or updating its `expire_time`, the value must be + * greater than the backup creation time by: + * - At least 6 hours + * - At most 90 days + * Once the `expire_time` has passed, Cloud Bigtable will delete the backup. + * + * Generated from protobuf field .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getExpireTime() + { + return $this->expire_time; + } + + public function hasExpireTime() + { + return isset($this->expire_time); + } + + public function clearExpireTime() + { + unset($this->expire_time); + } + + /** + * Required. The expiration time of the backup. + * When creating a backup or updating its `expire_time`, the value must be + * greater than the backup creation time by: + * - At least 6 hours + * - At most 90 days + * Once the `expire_time` has passed, Cloud Bigtable will delete the backup. + * + * Generated from protobuf field .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setExpireTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->expire_time = $var; + + return $this; + } + + /** + * Output only. `start_time` is the time that the backup was started + * (i.e. approximately the time the + * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup] + * request is received). The row data in this backup will be no older than + * this timestamp. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @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); + } + + /** + * Output only. `start_time` is the time that the backup was started + * (i.e. approximately the time the + * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup] + * request is received). The row data in this backup will be no older than + * this timestamp. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * Output only. `end_time` is the time that the backup was finished. The row + * data in the backup will be no newer than this timestamp. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @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); + } + + /** + * Output only. `end_time` is the time that the backup was finished. The row + * data in the backup will be no newer than this timestamp. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @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. Size of the backup in bytes. + * + * Generated from protobuf field int64 size_bytes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getSizeBytes() + { + return $this->size_bytes; + } + + /** + * Output only. Size of the backup in bytes. + * + * Generated from protobuf field int64 size_bytes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setSizeBytes($var) + { + GPBUtil::checkInt64($var); + $this->size_bytes = $var; + + return $this; + } + + /** + * Output only. The current state of the backup. + * + * Generated from protobuf field .google.bigtable.admin.v2.Backup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. The current state of the backup. + * + * Generated from protobuf field .google.bigtable.admin.v2.Backup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\Backup\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. The encryption information for the backup. + * + * Generated from protobuf field .google.bigtable.admin.v2.EncryptionInfo encryption_info = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Bigtable\Admin\V2\EncryptionInfo|null + */ + public function getEncryptionInfo() + { + return $this->encryption_info; + } + + public function hasEncryptionInfo() + { + return isset($this->encryption_info); + } + + public function clearEncryptionInfo() + { + unset($this->encryption_info); + } + + /** + * Output only. The encryption information for the backup. + * + * Generated from protobuf field .google.bigtable.admin.v2.EncryptionInfo encryption_info = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Bigtable\Admin\V2\EncryptionInfo $var + * @return $this + */ + public function setEncryptionInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\EncryptionInfo::class); + $this->encryption_info = $var; + + return $this; + } + + /** + * Indicates the backup type of the backup. + * + * Generated from protobuf field .google.bigtable.admin.v2.Backup.BackupType backup_type = 11; + * @return int + */ + public function getBackupType() + { + return $this->backup_type; + } + + /** + * Indicates the backup type of the backup. + * + * Generated from protobuf field .google.bigtable.admin.v2.Backup.BackupType backup_type = 11; + * @param int $var + * @return $this + */ + public function setBackupType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\Backup\BackupType::class); + $this->backup_type = $var; + + return $this; + } + + /** + * The time at which the hot backup will be converted to a standard backup. + * Once the `hot_to_standard_time` has passed, Cloud Bigtable will convert the + * hot backup to a standard backup. This value must be greater than the backup + * creation time by: + * - At least 24 hours + * This field only applies for hot backups. When creating or updating a + * standard backup, attempting to set this field will fail the request. + * + * Generated from protobuf field .google.protobuf.Timestamp hot_to_standard_time = 12; + * @return \Google\Protobuf\Timestamp|null + */ + public function getHotToStandardTime() + { + return $this->hot_to_standard_time; + } + + public function hasHotToStandardTime() + { + return isset($this->hot_to_standard_time); + } + + public function clearHotToStandardTime() + { + unset($this->hot_to_standard_time); + } + + /** + * The time at which the hot backup will be converted to a standard backup. + * Once the `hot_to_standard_time` has passed, Cloud Bigtable will convert the + * hot backup to a standard backup. This value must be greater than the backup + * creation time by: + * - At least 24 hours + * This field only applies for hot backups. When creating or updating a + * standard backup, attempting to set this field will fail the request. + * + * Generated from protobuf field .google.protobuf.Timestamp hot_to_standard_time = 12; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setHotToStandardTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->hot_to_standard_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Backup/BackupType.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Backup/BackupType.php new file mode 100644 index 000000000000..667637049b85 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Backup/BackupType.php @@ -0,0 +1,66 @@ +google.bigtable.admin.v2.Backup.BackupType + */ +class BackupType +{ + /** + * Not specified. + * + * Generated from protobuf enum BACKUP_TYPE_UNSPECIFIED = 0; + */ + const BACKUP_TYPE_UNSPECIFIED = 0; + /** + * The default type for Cloud Bigtable managed backups. Supported for + * backups created in both HDD and SSD instances. Requires optimization when + * restored to a table in an SSD instance. + * + * Generated from protobuf enum STANDARD = 1; + */ + const STANDARD = 1; + /** + * A backup type with faster restore to SSD performance. Only supported for + * backups created in SSD instances. A new SSD table restored from a hot + * backup reaches production performance more quickly than a standard + * backup. + * + * Generated from protobuf enum HOT = 2; + */ + const HOT = 2; + + private static $valueToName = [ + self::BACKUP_TYPE_UNSPECIFIED => 'BACKUP_TYPE_UNSPECIFIED', + self::STANDARD => 'STANDARD', + self::HOT => 'HOT', + ]; + + 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/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Backup/State.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Backup/State.php new file mode 100644 index 000000000000..35028722cc23 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Backup/State.php @@ -0,0 +1,62 @@ +google.bigtable.admin.v2.Backup.State + */ +class State +{ + /** + * Not specified. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The pending backup is still being created. Operations on the + * backup may fail with `FAILED_PRECONDITION` in this state. + * + * Generated from protobuf enum CREATING = 1; + */ + const CREATING = 1; + /** + * The backup is complete and ready for use. + * + * Generated from protobuf enum READY = 2; + */ + const READY = 2; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::CREATING => 'CREATING', + self::READY => 'READY', + ]; + + 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/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/BackupInfo.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/BackupInfo.php new file mode 100644 index 000000000000..87930a9c2158 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/BackupInfo.php @@ -0,0 +1,243 @@ +google.bigtable.admin.v2.BackupInfo + */ +class BackupInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Name of the backup. + * + * Generated from protobuf field string backup = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $backup = ''; + /** + * Output only. The time that the backup was started. Row data in the backup + * will be no older than this timestamp. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $start_time = null; + /** + * Output only. This time that the backup was finished. Row data in the + * backup will be no newer than this timestamp. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $end_time = null; + /** + * Output only. Name of the table the backup was created from. + * + * Generated from protobuf field string source_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $source_table = ''; + /** + * Output only. Name of the backup from which this backup was copied. If a + * backup is not created by copying a backup, this field will be empty. Values + * are of the form: + * projects//instances//clusters//backups/ + * + * Generated from protobuf field string source_backup = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $source_backup = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $backup + * Output only. Name of the backup. + * @type \Google\Protobuf\Timestamp $start_time + * Output only. The time that the backup was started. Row data in the backup + * will be no older than this timestamp. + * @type \Google\Protobuf\Timestamp $end_time + * Output only. This time that the backup was finished. Row data in the + * backup will be no newer than this timestamp. + * @type string $source_table + * Output only. Name of the table the backup was created from. + * @type string $source_backup + * Output only. Name of the backup from which this backup was copied. If a + * backup is not created by copying a backup, this field will be empty. Values + * are of the form: + * projects//instances//clusters//backups/ + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Name of the backup. + * + * Generated from protobuf field string backup = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getBackup() + { + return $this->backup; + } + + /** + * Output only. Name of the backup. + * + * Generated from protobuf field string backup = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setBackup($var) + { + GPBUtil::checkString($var, True); + $this->backup = $var; + + return $this; + } + + /** + * Output only. The time that the backup was started. Row data in the backup + * will be no older than this timestamp. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @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); + } + + /** + * Output only. The time that the backup was started. Row data in the backup + * will be no older than this timestamp. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * Output only. This time that the backup was finished. Row data in the + * backup will be no newer than this timestamp. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @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); + } + + /** + * Output only. This time that the backup was finished. Row data in the + * backup will be no newer than this timestamp. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @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. Name of the table the backup was created from. + * + * Generated from protobuf field string source_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getSourceTable() + { + return $this->source_table; + } + + /** + * Output only. Name of the table the backup was created from. + * + * Generated from protobuf field string source_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setSourceTable($var) + { + GPBUtil::checkString($var, True); + $this->source_table = $var; + + return $this; + } + + /** + * Output only. Name of the backup from which this backup was copied. If a + * backup is not created by copying a backup, this field will be empty. Values + * are of the form: + * projects//instances//clusters//backups/ + * + * Generated from protobuf field string source_backup = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getSourceBackup() + { + return $this->source_backup; + } + + /** + * Output only. Name of the backup from which this backup was copied. If a + * backup is not created by copying a backup, this field will be empty. Values + * are of the form: + * projects//instances//clusters//backups/ + * + * Generated from protobuf field string source_backup = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setSourceBackup($var) + { + GPBUtil::checkString($var, True); + $this->source_backup = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ChangeStreamConfig.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ChangeStreamConfig.php new file mode 100644 index 000000000000..c49d0acce35d --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ChangeStreamConfig.php @@ -0,0 +1,93 @@ +google.bigtable.admin.v2.ChangeStreamConfig + */ +class ChangeStreamConfig extends \Google\Protobuf\Internal\Message +{ + /** + * How long the change stream should be retained. Change stream data older + * than the retention period will not be returned when reading the change + * stream from the table. + * Values must be at least 1 day and at most 7 days, and will be truncated to + * microsecond granularity. + * + * Generated from protobuf field .google.protobuf.Duration retention_period = 1; + */ + protected $retention_period = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Duration $retention_period + * How long the change stream should be retained. Change stream data older + * than the retention period will not be returned when reading the change + * stream from the table. + * Values must be at least 1 day and at most 7 days, and will be truncated to + * microsecond granularity. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); + parent::__construct($data); + } + + /** + * How long the change stream should be retained. Change stream data older + * than the retention period will not be returned when reading the change + * stream from the table. + * Values must be at least 1 day and at most 7 days, and will be truncated to + * microsecond granularity. + * + * Generated from protobuf field .google.protobuf.Duration retention_period = 1; + * @return \Google\Protobuf\Duration|null + */ + public function getRetentionPeriod() + { + return $this->retention_period; + } + + public function hasRetentionPeriod() + { + return isset($this->retention_period); + } + + public function clearRetentionPeriod() + { + unset($this->retention_period); + } + + /** + * How long the change stream should be retained. Change stream data older + * than the retention period will not be returned when reading the change + * stream from the table. + * Values must be at least 1 day and at most 7 days, and will be truncated to + * microsecond granularity. + * + * Generated from protobuf field .google.protobuf.Duration retention_period = 1; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setRetentionPeriod($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->retention_period = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CheckConsistencyRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CheckConsistencyRequest.php new file mode 100644 index 000000000000..a0f9e2cc3577 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CheckConsistencyRequest.php @@ -0,0 +1,215 @@ +google.bigtable.admin.v2.CheckConsistencyRequest + */ +class CheckConsistencyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the Table for which to check replication + * consistency. Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. The token created using GenerateConsistencyToken for the Table. + * + * Generated from protobuf field string consistency_token = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $consistency_token = ''; + protected $mode; + + /** + * @param string $name Required. The unique name of the Table for which to check replication + * consistency. Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. Please see + * {@see BigtableTableAdminClient::tableName()} for help formatting this field. + * @param string $consistencyToken Required. The token created using GenerateConsistencyToken for the Table. + * + * @return \Google\Cloud\Bigtable\Admin\V2\CheckConsistencyRequest + * + * @experimental + */ + public static function build(string $name, string $consistencyToken): self + { + return (new self()) + ->setName($name) + ->setConsistencyToken($consistencyToken); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The unique name of the Table for which to check replication + * consistency. Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * @type string $consistency_token + * Required. The token created using GenerateConsistencyToken for the Table. + * @type \Google\Cloud\Bigtable\Admin\V2\StandardReadRemoteWrites $standard_read_remote_writes + * Checks that reads using an app profile with `StandardIsolation` can + * see all writes committed before the token was created, even if the + * read and write target different clusters. + * @type \Google\Cloud\Bigtable\Admin\V2\DataBoostReadLocalWrites $data_boost_read_local_writes + * Checks that reads using an app profile with `DataBoostIsolationReadOnly` + * can see all writes committed before the token was created, but only if + * the read and write target the same cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the Table for which to check replication + * consistency. Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The unique name of the Table for which to check replication + * consistency. Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The token created using GenerateConsistencyToken for the Table. + * + * Generated from protobuf field string consistency_token = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getConsistencyToken() + { + return $this->consistency_token; + } + + /** + * Required. The token created using GenerateConsistencyToken for the Table. + * + * Generated from protobuf field string consistency_token = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setConsistencyToken($var) + { + GPBUtil::checkString($var, True); + $this->consistency_token = $var; + + return $this; + } + + /** + * Checks that reads using an app profile with `StandardIsolation` can + * see all writes committed before the token was created, even if the + * read and write target different clusters. + * + * Generated from protobuf field .google.bigtable.admin.v2.StandardReadRemoteWrites standard_read_remote_writes = 3; + * @return \Google\Cloud\Bigtable\Admin\V2\StandardReadRemoteWrites|null + */ + public function getStandardReadRemoteWrites() + { + return $this->readOneof(3); + } + + public function hasStandardReadRemoteWrites() + { + return $this->hasOneof(3); + } + + /** + * Checks that reads using an app profile with `StandardIsolation` can + * see all writes committed before the token was created, even if the + * read and write target different clusters. + * + * Generated from protobuf field .google.bigtable.admin.v2.StandardReadRemoteWrites standard_read_remote_writes = 3; + * @param \Google\Cloud\Bigtable\Admin\V2\StandardReadRemoteWrites $var + * @return $this + */ + public function setStandardReadRemoteWrites($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\StandardReadRemoteWrites::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Checks that reads using an app profile with `DataBoostIsolationReadOnly` + * can see all writes committed before the token was created, but only if + * the read and write target the same cluster. + * + * Generated from protobuf field .google.bigtable.admin.v2.DataBoostReadLocalWrites data_boost_read_local_writes = 4; + * @return \Google\Cloud\Bigtable\Admin\V2\DataBoostReadLocalWrites|null + */ + public function getDataBoostReadLocalWrites() + { + return $this->readOneof(4); + } + + public function hasDataBoostReadLocalWrites() + { + return $this->hasOneof(4); + } + + /** + * Checks that reads using an app profile with `DataBoostIsolationReadOnly` + * can see all writes committed before the token was created, but only if + * the read and write target the same cluster. + * + * Generated from protobuf field .google.bigtable.admin.v2.DataBoostReadLocalWrites data_boost_read_local_writes = 4; + * @param \Google\Cloud\Bigtable\Admin\V2\DataBoostReadLocalWrites $var + * @return $this + */ + public function setDataBoostReadLocalWrites($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\DataBoostReadLocalWrites::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * @return string + */ + public function getMode() + { + return $this->whichOneof("mode"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CheckConsistencyResponse.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CheckConsistencyResponse.php new file mode 100644 index 000000000000..62e5dd4edf2c --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CheckConsistencyResponse.php @@ -0,0 +1,72 @@ +google.bigtable.admin.v2.CheckConsistencyResponse + */ +class CheckConsistencyResponse extends \Google\Protobuf\Internal\Message +{ + /** + * True only if the token is consistent. A token is consistent if replication + * has caught up with the restrictions specified in the request. + * + * Generated from protobuf field bool consistent = 1; + */ + protected $consistent = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $consistent + * True only if the token is consistent. A token is consistent if replication + * has caught up with the restrictions specified in the request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * True only if the token is consistent. A token is consistent if replication + * has caught up with the restrictions specified in the request. + * + * Generated from protobuf field bool consistent = 1; + * @return bool + */ + public function getConsistent() + { + return $this->consistent; + } + + /** + * True only if the token is consistent. A token is consistent if replication + * has caught up with the restrictions specified in the request. + * + * Generated from protobuf field bool consistent = 1; + * @param bool $var + * @return $this + */ + public function setConsistent($var) + { + GPBUtil::checkBool($var); + $this->consistent = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster.php new file mode 100644 index 000000000000..9f6db5475275 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster.php @@ -0,0 +1,353 @@ +google.bigtable.admin.v2.Cluster + */ +class Cluster extends \Google\Protobuf\Internal\Message +{ + /** + * The unique name of the cluster. Values are of the form + * `projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Immutable. The location where this cluster's nodes and storage reside. For + * best performance, clients should be located as close as possible to this + * cluster. Currently only zones are supported, so values should be of the + * form `projects/{project}/locations/{zone}`. + * + * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + */ + protected $location = ''; + /** + * Output only. The current state of the cluster. + * + * Generated from protobuf field .google.bigtable.admin.v2.Cluster.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * The number of nodes in the cluster. If no value is set, + * Cloud Bigtable automatically allocates nodes based on your data footprint + * and optimized for 50% storage utilization. + * + * Generated from protobuf field int32 serve_nodes = 4; + */ + protected $serve_nodes = 0; + /** + * Immutable. The node scaling factor of this cluster. + * + * Generated from protobuf field .google.bigtable.admin.v2.Cluster.NodeScalingFactor node_scaling_factor = 9 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $node_scaling_factor = 0; + /** + * Immutable. The type of storage used by this cluster to serve its + * parent instance's tables, unless explicitly overridden. + * + * Generated from protobuf field .google.bigtable.admin.v2.StorageType default_storage_type = 5 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $default_storage_type = 0; + /** + * Immutable. The encryption configuration for CMEK-protected clusters. + * + * Generated from protobuf field .google.bigtable.admin.v2.Cluster.EncryptionConfig encryption_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $encryption_config = null; + protected $config; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The unique name of the cluster. Values are of the form + * `projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`. + * @type string $location + * Immutable. The location where this cluster's nodes and storage reside. For + * best performance, clients should be located as close as possible to this + * cluster. Currently only zones are supported, so values should be of the + * form `projects/{project}/locations/{zone}`. + * @type int $state + * Output only. The current state of the cluster. + * @type int $serve_nodes + * The number of nodes in the cluster. If no value is set, + * Cloud Bigtable automatically allocates nodes based on your data footprint + * and optimized for 50% storage utilization. + * @type int $node_scaling_factor + * Immutable. The node scaling factor of this cluster. + * @type \Google\Cloud\Bigtable\Admin\V2\Cluster\ClusterConfig $cluster_config + * Configuration for this cluster. + * @type int $default_storage_type + * Immutable. The type of storage used by this cluster to serve its + * parent instance's tables, unless explicitly overridden. + * @type \Google\Cloud\Bigtable\Admin\V2\Cluster\EncryptionConfig $encryption_config + * Immutable. The encryption configuration for CMEK-protected clusters. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Instance::initOnce(); + parent::__construct($data); + } + + /** + * The unique name of the cluster. Values are of the form + * `projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The unique name of the cluster. Values are of the form + * `projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Immutable. The location where this cluster's nodes and storage reside. For + * best performance, clients should be located as close as possible to this + * cluster. Currently only zones are supported, so values should be of the + * form `projects/{project}/locations/{zone}`. + * + * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @return string + */ + public function getLocation() + { + return $this->location; + } + + /** + * Immutable. The location where this cluster's nodes and storage reside. For + * best performance, clients should be located as close as possible to this + * cluster. Currently only zones are supported, so values should be of the + * form `projects/{project}/locations/{zone}`. + * + * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkString($var, True); + $this->location = $var; + + return $this; + } + + /** + * Output only. The current state of the cluster. + * + * Generated from protobuf field .google.bigtable.admin.v2.Cluster.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. The current state of the cluster. + * + * Generated from protobuf field .google.bigtable.admin.v2.Cluster.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\Cluster\State::class); + $this->state = $var; + + return $this; + } + + /** + * The number of nodes in the cluster. If no value is set, + * Cloud Bigtable automatically allocates nodes based on your data footprint + * and optimized for 50% storage utilization. + * + * Generated from protobuf field int32 serve_nodes = 4; + * @return int + */ + public function getServeNodes() + { + return $this->serve_nodes; + } + + /** + * The number of nodes in the cluster. If no value is set, + * Cloud Bigtable automatically allocates nodes based on your data footprint + * and optimized for 50% storage utilization. + * + * Generated from protobuf field int32 serve_nodes = 4; + * @param int $var + * @return $this + */ + public function setServeNodes($var) + { + GPBUtil::checkInt32($var); + $this->serve_nodes = $var; + + return $this; + } + + /** + * Immutable. The node scaling factor of this cluster. + * + * Generated from protobuf field .google.bigtable.admin.v2.Cluster.NodeScalingFactor node_scaling_factor = 9 [(.google.api.field_behavior) = IMMUTABLE]; + * @return int + */ + public function getNodeScalingFactor() + { + return $this->node_scaling_factor; + } + + /** + * Immutable. The node scaling factor of this cluster. + * + * Generated from protobuf field .google.bigtable.admin.v2.Cluster.NodeScalingFactor node_scaling_factor = 9 [(.google.api.field_behavior) = IMMUTABLE]; + * @param int $var + * @return $this + */ + public function setNodeScalingFactor($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\Cluster\NodeScalingFactor::class); + $this->node_scaling_factor = $var; + + return $this; + } + + /** + * Configuration for this cluster. + * + * Generated from protobuf field .google.bigtable.admin.v2.Cluster.ClusterConfig cluster_config = 7; + * @return \Google\Cloud\Bigtable\Admin\V2\Cluster\ClusterConfig|null + */ + public function getClusterConfig() + { + return $this->readOneof(7); + } + + public function hasClusterConfig() + { + return $this->hasOneof(7); + } + + /** + * Configuration for this cluster. + * + * Generated from protobuf field .google.bigtable.admin.v2.Cluster.ClusterConfig cluster_config = 7; + * @param \Google\Cloud\Bigtable\Admin\V2\Cluster\ClusterConfig $var + * @return $this + */ + public function setClusterConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Cluster\ClusterConfig::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * Immutable. The type of storage used by this cluster to serve its + * parent instance's tables, unless explicitly overridden. + * + * Generated from protobuf field .google.bigtable.admin.v2.StorageType default_storage_type = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * @return int + */ + public function getDefaultStorageType() + { + return $this->default_storage_type; + } + + /** + * Immutable. The type of storage used by this cluster to serve its + * parent instance's tables, unless explicitly overridden. + * + * Generated from protobuf field .google.bigtable.admin.v2.StorageType default_storage_type = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * @param int $var + * @return $this + */ + public function setDefaultStorageType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\StorageType::class); + $this->default_storage_type = $var; + + return $this; + } + + /** + * Immutable. The encryption configuration for CMEK-protected clusters. + * + * Generated from protobuf field .google.bigtable.admin.v2.Cluster.EncryptionConfig encryption_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * @return \Google\Cloud\Bigtable\Admin\V2\Cluster\EncryptionConfig|null + */ + public function getEncryptionConfig() + { + return $this->encryption_config; + } + + public function hasEncryptionConfig() + { + return isset($this->encryption_config); + } + + public function clearEncryptionConfig() + { + unset($this->encryption_config); + } + + /** + * Immutable. The encryption configuration for CMEK-protected clusters. + * + * Generated from protobuf field .google.bigtable.admin.v2.Cluster.EncryptionConfig encryption_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * @param \Google\Cloud\Bigtable\Admin\V2\Cluster\EncryptionConfig $var + * @return $this + */ + public function setEncryptionConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Cluster\EncryptionConfig::class); + $this->encryption_config = $var; + + return $this; + } + + /** + * @return string + */ + public function getConfig() + { + return $this->whichOneof("config"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/ClusterAutoscalingConfig.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/ClusterAutoscalingConfig.php new file mode 100644 index 000000000000..ffdf17e79840 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/ClusterAutoscalingConfig.php @@ -0,0 +1,121 @@ +google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig + */ +class ClusterAutoscalingConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Autoscaling limits for this cluster. + * + * Generated from protobuf field .google.bigtable.admin.v2.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $autoscaling_limits = null; + /** + * Required. Autoscaling targets for this cluster. + * + * Generated from protobuf field .google.bigtable.admin.v2.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $autoscaling_targets = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\AutoscalingLimits $autoscaling_limits + * Required. Autoscaling limits for this cluster. + * @type \Google\Cloud\Bigtable\Admin\V2\AutoscalingTargets $autoscaling_targets + * Required. Autoscaling targets for this cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Instance::initOnce(); + parent::__construct($data); + } + + /** + * Required. Autoscaling limits for this cluster. + * + * Generated from protobuf field .google.bigtable.admin.v2.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Bigtable\Admin\V2\AutoscalingLimits|null + */ + public function getAutoscalingLimits() + { + return $this->autoscaling_limits; + } + + public function hasAutoscalingLimits() + { + return isset($this->autoscaling_limits); + } + + public function clearAutoscalingLimits() + { + unset($this->autoscaling_limits); + } + + /** + * Required. Autoscaling limits for this cluster. + * + * Generated from protobuf field .google.bigtable.admin.v2.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Bigtable\Admin\V2\AutoscalingLimits $var + * @return $this + */ + public function setAutoscalingLimits($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\AutoscalingLimits::class); + $this->autoscaling_limits = $var; + + return $this; + } + + /** + * Required. Autoscaling targets for this cluster. + * + * Generated from protobuf field .google.bigtable.admin.v2.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Bigtable\Admin\V2\AutoscalingTargets|null + */ + public function getAutoscalingTargets() + { + return $this->autoscaling_targets; + } + + public function hasAutoscalingTargets() + { + return isset($this->autoscaling_targets); + } + + public function clearAutoscalingTargets() + { + unset($this->autoscaling_targets); + } + + /** + * Required. Autoscaling targets for this cluster. + * + * Generated from protobuf field .google.bigtable.admin.v2.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Bigtable\Admin\V2\AutoscalingTargets $var + * @return $this + */ + public function setAutoscalingTargets($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\AutoscalingTargets::class); + $this->autoscaling_targets = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/ClusterConfig.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/ClusterConfig.php new file mode 100644 index 000000000000..7f6d38f7e1f8 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/ClusterConfig.php @@ -0,0 +1,77 @@ +google.bigtable.admin.v2.Cluster.ClusterConfig + */ +class ClusterConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Autoscaling configuration for this cluster. + * + * Generated from protobuf field .google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig cluster_autoscaling_config = 1; + */ + protected $cluster_autoscaling_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\Cluster\ClusterAutoscalingConfig $cluster_autoscaling_config + * Autoscaling configuration for this cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Instance::initOnce(); + parent::__construct($data); + } + + /** + * Autoscaling configuration for this cluster. + * + * Generated from protobuf field .google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig cluster_autoscaling_config = 1; + * @return \Google\Cloud\Bigtable\Admin\V2\Cluster\ClusterAutoscalingConfig|null + */ + public function getClusterAutoscalingConfig() + { + return $this->cluster_autoscaling_config; + } + + public function hasClusterAutoscalingConfig() + { + return isset($this->cluster_autoscaling_config); + } + + public function clearClusterAutoscalingConfig() + { + unset($this->cluster_autoscaling_config); + } + + /** + * Autoscaling configuration for this cluster. + * + * Generated from protobuf field .google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig cluster_autoscaling_config = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\Cluster\ClusterAutoscalingConfig $var + * @return $this + */ + public function setClusterAutoscalingConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Cluster\ClusterAutoscalingConfig::class); + $this->cluster_autoscaling_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/EncryptionConfig.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/EncryptionConfig.php new file mode 100644 index 000000000000..c792565f5067 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/EncryptionConfig.php @@ -0,0 +1,100 @@ +google.bigtable.admin.v2.Cluster.EncryptionConfig + */ +class EncryptionConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Describes the Cloud KMS encryption key that will be used to protect the + * destination Bigtable cluster. The requirements for this key are: + * 1) The Cloud Bigtable service account associated with the project that + * contains this cluster must be granted the + * `cloudkms.cryptoKeyEncrypterDecrypter` role on the CMEK key. + * 2) Only regional keys can be used and the region of the CMEK key must + * match the region of the cluster. + * Values are of the form + * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}` + * + * Generated from protobuf field string kms_key_name = 1 [(.google.api.resource_reference) = { + */ + protected $kms_key_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $kms_key_name + * Describes the Cloud KMS encryption key that will be used to protect the + * destination Bigtable cluster. The requirements for this key are: + * 1) The Cloud Bigtable service account associated with the project that + * contains this cluster must be granted the + * `cloudkms.cryptoKeyEncrypterDecrypter` role on the CMEK key. + * 2) Only regional keys can be used and the region of the CMEK key must + * match the region of the cluster. + * Values are of the form + * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Instance::initOnce(); + parent::__construct($data); + } + + /** + * Describes the Cloud KMS encryption key that will be used to protect the + * destination Bigtable cluster. The requirements for this key are: + * 1) The Cloud Bigtable service account associated with the project that + * contains this cluster must be granted the + * `cloudkms.cryptoKeyEncrypterDecrypter` role on the CMEK key. + * 2) Only regional keys can be used and the region of the CMEK key must + * match the region of the cluster. + * Values are of the form + * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}` + * + * Generated from protobuf field string kms_key_name = 1 [(.google.api.resource_reference) = { + * @return string + */ + public function getKmsKeyName() + { + return $this->kms_key_name; + } + + /** + * Describes the Cloud KMS encryption key that will be used to protect the + * destination Bigtable cluster. The requirements for this key are: + * 1) The Cloud Bigtable service account associated with the project that + * contains this cluster must be granted the + * `cloudkms.cryptoKeyEncrypterDecrypter` role on the CMEK key. + * 2) Only regional keys can be used and the region of the CMEK key must + * match the region of the cluster. + * Values are of the form + * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}` + * + * Generated from protobuf field string kms_key_name = 1 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setKmsKeyName($var) + { + GPBUtil::checkString($var, True); + $this->kms_key_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/NodeScalingFactor.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/NodeScalingFactor.php new file mode 100644 index 000000000000..3ba9f0bddb91 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/NodeScalingFactor.php @@ -0,0 +1,64 @@ +google.bigtable.admin.v2.Cluster.NodeScalingFactor + */ +class NodeScalingFactor +{ + /** + * No node scaling specified. Defaults to NODE_SCALING_FACTOR_1X. + * + * Generated from protobuf enum NODE_SCALING_FACTOR_UNSPECIFIED = 0; + */ + const NODE_SCALING_FACTOR_UNSPECIFIED = 0; + /** + * The cluster is running with a scaling factor of 1. + * + * Generated from protobuf enum NODE_SCALING_FACTOR_1X = 1; + */ + const NODE_SCALING_FACTOR_1X = 1; + /** + * The cluster is running with a scaling factor of 2. + * All node count values must be in increments of 2 with this scaling factor + * enabled, otherwise an INVALID_ARGUMENT error will be returned. + * + * Generated from protobuf enum NODE_SCALING_FACTOR_2X = 2; + */ + const NODE_SCALING_FACTOR_2X = 2; + + private static $valueToName = [ + self::NODE_SCALING_FACTOR_UNSPECIFIED => 'NODE_SCALING_FACTOR_UNSPECIFIED', + self::NODE_SCALING_FACTOR_1X => 'NODE_SCALING_FACTOR_1X', + self::NODE_SCALING_FACTOR_2X => 'NODE_SCALING_FACTOR_2X', + ]; + + 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/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/State.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/State.php new file mode 100644 index 000000000000..6ae42297374e --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/State.php @@ -0,0 +1,82 @@ +google.bigtable.admin.v2.Cluster.State + */ +class State +{ + /** + * The state of the cluster could not be determined. + * + * Generated from protobuf enum STATE_NOT_KNOWN = 0; + */ + const STATE_NOT_KNOWN = 0; + /** + * The cluster has been successfully created and is ready to serve requests. + * + * Generated from protobuf enum READY = 1; + */ + const READY = 1; + /** + * The cluster is currently being created, and may be destroyed + * if the creation process encounters an error. + * A cluster may not be able to serve requests while being created. + * + * Generated from protobuf enum CREATING = 2; + */ + const CREATING = 2; + /** + * The cluster is currently being resized, and may revert to its previous + * node count if the process encounters an error. + * A cluster is still capable of serving requests while being resized, + * but may exhibit performance as if its number of allocated nodes is + * between the starting and requested states. + * + * Generated from protobuf enum RESIZING = 3; + */ + const RESIZING = 3; + /** + * The cluster has no backing nodes. The data (tables) still + * exist, but no operations can be performed on the cluster. + * + * Generated from protobuf enum DISABLED = 4; + */ + const DISABLED = 4; + + private static $valueToName = [ + self::STATE_NOT_KNOWN => 'STATE_NOT_KNOWN', + self::READY => 'READY', + self::CREATING => 'CREATING', + self::RESIZING => 'RESIZING', + self::DISABLED => 'DISABLED', + ]; + + 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/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ColumnFamily.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ColumnFamily.php new file mode 100644 index 000000000000..5d75d43506d1 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ColumnFamily.php @@ -0,0 +1,157 @@ +google.bigtable.admin.v2.ColumnFamily + */ +class ColumnFamily extends \Google\Protobuf\Internal\Message +{ + /** + * Garbage collection rule specified as a protobuf. + * Must serialize to at most 500 bytes. + * NOTE: Garbage collection executes opportunistically in the background, and + * so it's possible for reads to return a cell even if it matches the active + * GC expression for its family. + * + * Generated from protobuf field .google.bigtable.admin.v2.GcRule gc_rule = 1; + */ + protected $gc_rule = null; + /** + * The type of data stored in each of this family's cell values, including its + * full encoding. If omitted, the family only serves raw untyped bytes. + * For now, only the `Aggregate` type is supported. + * `Aggregate` can only be set at family creation and is immutable afterwards. + * If `value_type` is `Aggregate`, written data must be compatible with: + * * `value_type.input_type` for `AddInput` mutations + * + * Generated from protobuf field .google.bigtable.admin.v2.Type value_type = 3; + */ + protected $value_type = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\GcRule $gc_rule + * Garbage collection rule specified as a protobuf. + * Must serialize to at most 500 bytes. + * NOTE: Garbage collection executes opportunistically in the background, and + * so it's possible for reads to return a cell even if it matches the active + * GC expression for its family. + * @type \Google\Cloud\Bigtable\Admin\V2\Type $value_type + * The type of data stored in each of this family's cell values, including its + * full encoding. If omitted, the family only serves raw untyped bytes. + * For now, only the `Aggregate` type is supported. + * `Aggregate` can only be set at family creation and is immutable afterwards. + * If `value_type` is `Aggregate`, written data must be compatible with: + * * `value_type.input_type` for `AddInput` mutations + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); + parent::__construct($data); + } + + /** + * Garbage collection rule specified as a protobuf. + * Must serialize to at most 500 bytes. + * NOTE: Garbage collection executes opportunistically in the background, and + * so it's possible for reads to return a cell even if it matches the active + * GC expression for its family. + * + * Generated from protobuf field .google.bigtable.admin.v2.GcRule gc_rule = 1; + * @return \Google\Cloud\Bigtable\Admin\V2\GcRule|null + */ + public function getGcRule() + { + return $this->gc_rule; + } + + public function hasGcRule() + { + return isset($this->gc_rule); + } + + public function clearGcRule() + { + unset($this->gc_rule); + } + + /** + * Garbage collection rule specified as a protobuf. + * Must serialize to at most 500 bytes. + * NOTE: Garbage collection executes opportunistically in the background, and + * so it's possible for reads to return a cell even if it matches the active + * GC expression for its family. + * + * Generated from protobuf field .google.bigtable.admin.v2.GcRule gc_rule = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\GcRule $var + * @return $this + */ + public function setGcRule($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\GcRule::class); + $this->gc_rule = $var; + + return $this; + } + + /** + * The type of data stored in each of this family's cell values, including its + * full encoding. If omitted, the family only serves raw untyped bytes. + * For now, only the `Aggregate` type is supported. + * `Aggregate` can only be set at family creation and is immutable afterwards. + * If `value_type` is `Aggregate`, written data must be compatible with: + * * `value_type.input_type` for `AddInput` mutations + * + * Generated from protobuf field .google.bigtable.admin.v2.Type value_type = 3; + * @return \Google\Cloud\Bigtable\Admin\V2\Type|null + */ + public function getValueType() + { + return $this->value_type; + } + + public function hasValueType() + { + return isset($this->value_type); + } + + public function clearValueType() + { + unset($this->value_type); + } + + /** + * The type of data stored in each of this family's cell values, including its + * full encoding. If omitted, the family only serves raw untyped bytes. + * For now, only the `Aggregate` type is supported. + * `Aggregate` can only be set at family creation and is immutable afterwards. + * If `value_type` is `Aggregate`, written data must be compatible with: + * * `value_type.input_type` for `AddInput` mutations + * + * Generated from protobuf field .google.bigtable.admin.v2.Type value_type = 3; + * @param \Google\Cloud\Bigtable\Admin\V2\Type $var + * @return $this + */ + public function setValueType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type::class); + $this->value_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CopyBackupMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CopyBackupMetadata.php new file mode 100644 index 000000000000..c4c374604f9f --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CopyBackupMetadata.php @@ -0,0 +1,172 @@ +google.bigtable.admin.v2.CopyBackupMetadata + */ +class CopyBackupMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the backup being created through the copy operation. + * Values are of the form + * `projects//instances//clusters//backups/`. + * + * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Information about the source backup that is being copied from. + * + * Generated from protobuf field .google.bigtable.admin.v2.BackupInfo source_backup_info = 2; + */ + protected $source_backup_info = null; + /** + * The progress of the + * [CopyBackup][google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup] + * operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.OperationProgress progress = 3; + */ + protected $progress = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of the backup being created through the copy operation. + * Values are of the form + * `projects//instances//clusters//backups/`. + * @type \Google\Cloud\Bigtable\Admin\V2\BackupInfo $source_backup_info + * Information about the source backup that is being copied from. + * @type \Google\Cloud\Bigtable\Admin\V2\OperationProgress $progress + * The progress of the + * [CopyBackup][google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup] + * operation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The name of the backup being created through the copy operation. + * Values are of the form + * `projects//instances//clusters//backups/`. + * + * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of the backup being created through the copy operation. + * Values are of the form + * `projects//instances//clusters//backups/`. + * + * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Information about the source backup that is being copied from. + * + * Generated from protobuf field .google.bigtable.admin.v2.BackupInfo source_backup_info = 2; + * @return \Google\Cloud\Bigtable\Admin\V2\BackupInfo|null + */ + public function getSourceBackupInfo() + { + return $this->source_backup_info; + } + + public function hasSourceBackupInfo() + { + return isset($this->source_backup_info); + } + + public function clearSourceBackupInfo() + { + unset($this->source_backup_info); + } + + /** + * Information about the source backup that is being copied from. + * + * Generated from protobuf field .google.bigtable.admin.v2.BackupInfo source_backup_info = 2; + * @param \Google\Cloud\Bigtable\Admin\V2\BackupInfo $var + * @return $this + */ + public function setSourceBackupInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\BackupInfo::class); + $this->source_backup_info = $var; + + return $this; + } + + /** + * The progress of the + * [CopyBackup][google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup] + * operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.OperationProgress progress = 3; + * @return \Google\Cloud\Bigtable\Admin\V2\OperationProgress|null + */ + public function getProgress() + { + return $this->progress; + } + + public function hasProgress() + { + return isset($this->progress); + } + + public function clearProgress() + { + unset($this->progress); + } + + /** + * The progress of the + * [CopyBackup][google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup] + * operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.OperationProgress progress = 3; + * @param \Google\Cloud\Bigtable\Admin\V2\OperationProgress $var + * @return $this + */ + public function setProgress($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\OperationProgress::class); + $this->progress = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CopyBackupRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CopyBackupRequest.php new file mode 100644 index 000000000000..7d084fe1c6ad --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CopyBackupRequest.php @@ -0,0 +1,286 @@ +google.bigtable.admin.v2.CopyBackupRequest + */ +class CopyBackupRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the destination cluster that will contain the backup + * copy. The cluster must already exist. Values are of the form: + * `projects/{project}/instances/{instance}/clusters/{cluster}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The id of the new backup. The `backup_id` along with `parent` + * are combined as {parent}/backups/{backup_id} to create the full backup + * name, of the form: + * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. + * This string must be between 1 and 50 characters in length and match the + * regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. + * + * Generated from protobuf field string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $backup_id = ''; + /** + * Required. The source backup to be copied from. + * The source backup needs to be in READY state for it to be copied. + * Copying a copied backup is not allowed. + * Once CopyBackup is in progress, the source backup cannot be deleted or + * cleaned up on expiration until CopyBackup is finished. + * Values are of the form: + * `projects//instances//clusters//backups/`. + * + * Generated from protobuf field string source_backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $source_backup = ''; + /** + * Required. Required. The expiration time of the copied backup with + * microsecond granularity that must be at least 6 hours and at most 30 days + * from the time the request is received. Once the `expire_time` has + * passed, Cloud Bigtable will delete the backup and free the resources used + * by the backup. + * + * Generated from protobuf field .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $expire_time = null; + + /** + * @param string $parent Required. The name of the destination cluster that will contain the backup + * copy. The cluster must already exist. Values are of the form: + * `projects/{project}/instances/{instance}/clusters/{cluster}`. Please see + * {@see BigtableTableAdminClient::clusterName()} for help formatting this field. + * @param string $backupId Required. The id of the new backup. The `backup_id` along with `parent` + * are combined as {parent}/backups/{backup_id} to create the full backup + * name, of the form: + * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. + * This string must be between 1 and 50 characters in length and match the + * regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. + * @param string $sourceBackup Required. The source backup to be copied from. + * The source backup needs to be in READY state for it to be copied. + * Copying a copied backup is not allowed. + * Once CopyBackup is in progress, the source backup cannot be deleted or + * cleaned up on expiration until CopyBackup is finished. + * Values are of the form: + * `projects//instances//clusters//backups/`. Please see + * {@see BigtableTableAdminClient::backupName()} for help formatting this field. + * @param \Google\Protobuf\Timestamp $expireTime Required. Required. The expiration time of the copied backup with + * microsecond granularity that must be at least 6 hours and at most 30 days + * from the time the request is received. Once the `expire_time` has + * passed, Cloud Bigtable will delete the backup and free the resources used + * by the backup. + * + * @return \Google\Cloud\Bigtable\Admin\V2\CopyBackupRequest + * + * @experimental + */ + public static function build(string $parent, string $backupId, string $sourceBackup, \Google\Protobuf\Timestamp $expireTime): self + { + return (new self()) + ->setParent($parent) + ->setBackupId($backupId) + ->setSourceBackup($sourceBackup) + ->setExpireTime($expireTime); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The name of the destination cluster that will contain the backup + * copy. The cluster must already exist. Values are of the form: + * `projects/{project}/instances/{instance}/clusters/{cluster}`. + * @type string $backup_id + * Required. The id of the new backup. The `backup_id` along with `parent` + * are combined as {parent}/backups/{backup_id} to create the full backup + * name, of the form: + * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. + * This string must be between 1 and 50 characters in length and match the + * regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. + * @type string $source_backup + * Required. The source backup to be copied from. + * The source backup needs to be in READY state for it to be copied. + * Copying a copied backup is not allowed. + * Once CopyBackup is in progress, the source backup cannot be deleted or + * cleaned up on expiration until CopyBackup is finished. + * Values are of the form: + * `projects//instances//clusters//backups/`. + * @type \Google\Protobuf\Timestamp $expire_time + * Required. Required. The expiration time of the copied backup with + * microsecond granularity that must be at least 6 hours and at most 30 days + * from the time the request is received. Once the `expire_time` has + * passed, Cloud Bigtable will delete the backup and free the resources used + * by the backup. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the destination cluster that will contain the backup + * copy. The cluster must already exist. Values are of the form: + * `projects/{project}/instances/{instance}/clusters/{cluster}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The name of the destination cluster that will contain the backup + * copy. The cluster must already exist. Values are of the form: + * `projects/{project}/instances/{instance}/clusters/{cluster}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The id of the new backup. The `backup_id` along with `parent` + * are combined as {parent}/backups/{backup_id} to create the full backup + * name, of the form: + * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. + * This string must be between 1 and 50 characters in length and match the + * regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. + * + * Generated from protobuf field string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getBackupId() + { + return $this->backup_id; + } + + /** + * Required. The id of the new backup. The `backup_id` along with `parent` + * are combined as {parent}/backups/{backup_id} to create the full backup + * name, of the form: + * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. + * This string must be between 1 and 50 characters in length and match the + * regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. + * + * Generated from protobuf field string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setBackupId($var) + { + GPBUtil::checkString($var, True); + $this->backup_id = $var; + + return $this; + } + + /** + * Required. The source backup to be copied from. + * The source backup needs to be in READY state for it to be copied. + * Copying a copied backup is not allowed. + * Once CopyBackup is in progress, the source backup cannot be deleted or + * cleaned up on expiration until CopyBackup is finished. + * Values are of the form: + * `projects//instances//clusters//backups/`. + * + * Generated from protobuf field string source_backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getSourceBackup() + { + return $this->source_backup; + } + + /** + * Required. The source backup to be copied from. + * The source backup needs to be in READY state for it to be copied. + * Copying a copied backup is not allowed. + * Once CopyBackup is in progress, the source backup cannot be deleted or + * cleaned up on expiration until CopyBackup is finished. + * Values are of the form: + * `projects//instances//clusters//backups/`. + * + * Generated from protobuf field string source_backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setSourceBackup($var) + { + GPBUtil::checkString($var, True); + $this->source_backup = $var; + + return $this; + } + + /** + * Required. Required. The expiration time of the copied backup with + * microsecond granularity that must be at least 6 hours and at most 30 days + * from the time the request is received. Once the `expire_time` has + * passed, Cloud Bigtable will delete the backup and free the resources used + * by the backup. + * + * Generated from protobuf field .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getExpireTime() + { + return $this->expire_time; + } + + public function hasExpireTime() + { + return isset($this->expire_time); + } + + public function clearExpireTime() + { + unset($this->expire_time); + } + + /** + * Required. Required. The expiration time of the copied backup with + * microsecond granularity that must be at least 6 hours and at most 30 days + * from the time the request is received. Once the `expire_time` has + * passed, Cloud Bigtable will delete the backup and free the resources used + * by the backup. + * + * Generated from protobuf field .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setExpireTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->expire_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateAppProfileRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateAppProfileRequest.php new file mode 100644 index 000000000000..ab2483a1f6b4 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateAppProfileRequest.php @@ -0,0 +1,217 @@ +google.bigtable.admin.v2.CreateAppProfileRequest + */ +class CreateAppProfileRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the instance in which to create the new app + * profile. Values are of the form `projects/{project}/instances/{instance}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The ID to be used when referring to the new app profile within + * its instance, e.g., just `myprofile` rather than + * `projects/myproject/instances/myinstance/appProfiles/myprofile`. + * + * Generated from protobuf field string app_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $app_profile_id = ''; + /** + * Required. The app profile to be created. + * Fields marked `OutputOnly` will be ignored. + * + * Generated from protobuf field .google.bigtable.admin.v2.AppProfile app_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $app_profile = null; + /** + * If true, ignore safety checks when creating the app profile. + * + * Generated from protobuf field bool ignore_warnings = 4; + */ + protected $ignore_warnings = false; + + /** + * @param string $parent Required. The unique name of the instance in which to create the new app + * profile. Values are of the form `projects/{project}/instances/{instance}`. Please see + * {@see BigtableInstanceAdminClient::instanceName()} for help formatting this field. + * @param string $appProfileId Required. The ID to be used when referring to the new app profile within + * its instance, e.g., just `myprofile` rather than + * `projects/myproject/instances/myinstance/appProfiles/myprofile`. + * @param \Google\Cloud\Bigtable\Admin\V2\AppProfile $appProfile Required. The app profile to be created. + * Fields marked `OutputOnly` will be ignored. + * + * @return \Google\Cloud\Bigtable\Admin\V2\CreateAppProfileRequest + * + * @experimental + */ + public static function build(string $parent, string $appProfileId, \Google\Cloud\Bigtable\Admin\V2\AppProfile $appProfile): self + { + return (new self()) + ->setParent($parent) + ->setAppProfileId($appProfileId) + ->setAppProfile($appProfile); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The unique name of the instance in which to create the new app + * profile. Values are of the form `projects/{project}/instances/{instance}`. + * @type string $app_profile_id + * Required. The ID to be used when referring to the new app profile within + * its instance, e.g., just `myprofile` rather than + * `projects/myproject/instances/myinstance/appProfiles/myprofile`. + * @type \Google\Cloud\Bigtable\Admin\V2\AppProfile $app_profile + * Required. The app profile to be created. + * Fields marked `OutputOnly` will be ignored. + * @type bool $ignore_warnings + * If true, ignore safety checks when creating the app profile. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the instance in which to create the new app + * profile. Values are of the form `projects/{project}/instances/{instance}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The unique name of the instance in which to create the new app + * profile. Values are of the form `projects/{project}/instances/{instance}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The ID to be used when referring to the new app profile within + * its instance, e.g., just `myprofile` rather than + * `projects/myproject/instances/myinstance/appProfiles/myprofile`. + * + * Generated from protobuf field string app_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAppProfileId() + { + return $this->app_profile_id; + } + + /** + * Required. The ID to be used when referring to the new app profile within + * its instance, e.g., just `myprofile` rather than + * `projects/myproject/instances/myinstance/appProfiles/myprofile`. + * + * Generated from protobuf field string app_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAppProfileId($var) + { + GPBUtil::checkString($var, True); + $this->app_profile_id = $var; + + return $this; + } + + /** + * Required. The app profile to be created. + * Fields marked `OutputOnly` will be ignored. + * + * Generated from protobuf field .google.bigtable.admin.v2.AppProfile app_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Bigtable\Admin\V2\AppProfile|null + */ + public function getAppProfile() + { + return $this->app_profile; + } + + public function hasAppProfile() + { + return isset($this->app_profile); + } + + public function clearAppProfile() + { + unset($this->app_profile); + } + + /** + * Required. The app profile to be created. + * Fields marked `OutputOnly` will be ignored. + * + * Generated from protobuf field .google.bigtable.admin.v2.AppProfile app_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Bigtable\Admin\V2\AppProfile $var + * @return $this + */ + public function setAppProfile($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\AppProfile::class); + $this->app_profile = $var; + + return $this; + } + + /** + * If true, ignore safety checks when creating the app profile. + * + * Generated from protobuf field bool ignore_warnings = 4; + * @return bool + */ + public function getIgnoreWarnings() + { + return $this->ignore_warnings; + } + + /** + * If true, ignore safety checks when creating the app profile. + * + * Generated from protobuf field bool ignore_warnings = 4; + * @param bool $var + * @return $this + */ + public function setIgnoreWarnings($var) + { + GPBUtil::checkBool($var); + $this->ignore_warnings = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateAuthorizedViewMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateAuthorizedViewMetadata.php new file mode 100644 index 000000000000..84c7ab170a69 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateAuthorizedViewMetadata.php @@ -0,0 +1,169 @@ +google.bigtable.admin.v2.CreateAuthorizedViewMetadata + */ +class CreateAuthorizedViewMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The request that prompted the initiation of this CreateAuthorizedView + * operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.CreateAuthorizedViewRequest original_request = 1; + */ + protected $original_request = null; + /** + * The time at which the original request was received. + * + * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; + */ + protected $request_time = null; + /** + * The time at which the operation failed or was completed successfully. + * + * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; + */ + protected $finish_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\CreateAuthorizedViewRequest $original_request + * The request that prompted the initiation of this CreateAuthorizedView + * operation. + * @type \Google\Protobuf\Timestamp $request_time + * The time at which the original request was received. + * @type \Google\Protobuf\Timestamp $finish_time + * The time at which the operation failed or was completed successfully. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The request that prompted the initiation of this CreateAuthorizedView + * operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.CreateAuthorizedViewRequest original_request = 1; + * @return \Google\Cloud\Bigtable\Admin\V2\CreateAuthorizedViewRequest|null + */ + public function getOriginalRequest() + { + return $this->original_request; + } + + public function hasOriginalRequest() + { + return isset($this->original_request); + } + + public function clearOriginalRequest() + { + unset($this->original_request); + } + + /** + * The request that prompted the initiation of this CreateAuthorizedView + * operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.CreateAuthorizedViewRequest original_request = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\CreateAuthorizedViewRequest $var + * @return $this + */ + public function setOriginalRequest($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\CreateAuthorizedViewRequest::class); + $this->original_request = $var; + + return $this; + } + + /** + * The time at which the original request was received. + * + * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getRequestTime() + { + return $this->request_time; + } + + public function hasRequestTime() + { + return isset($this->request_time); + } + + public function clearRequestTime() + { + unset($this->request_time); + } + + /** + * The time at which the original request was received. + * + * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setRequestTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->request_time = $var; + + return $this; + } + + /** + * The time at which the operation failed or was completed successfully. + * + * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; + * @return \Google\Protobuf\Timestamp|null + */ + public function getFinishTime() + { + return $this->finish_time; + } + + public function hasFinishTime() + { + return isset($this->finish_time); + } + + public function clearFinishTime() + { + unset($this->finish_time); + } + + /** + * The time at which the operation failed or was completed successfully. + * + * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setFinishTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->finish_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateAuthorizedViewRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateAuthorizedViewRequest.php new file mode 100644 index 000000000000..19f1183c2dbb --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateAuthorizedViewRequest.php @@ -0,0 +1,189 @@ +google.bigtable.admin.v2.CreateAuthorizedViewRequest + */ +class CreateAuthorizedViewRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. This is the name of the table the AuthorizedView belongs to. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The id of the AuthorizedView to create. This AuthorizedView must + * not already exist. The `authorized_view_id` appended to `parent` forms the + * full AuthorizedView name of the form + * `projects/{project}/instances/{instance}/tables/{table}/authorizedView/{authorized_view}`. + * + * Generated from protobuf field string authorized_view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $authorized_view_id = ''; + /** + * Required. The AuthorizedView to create. + * + * Generated from protobuf field .google.bigtable.admin.v2.AuthorizedView authorized_view = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $authorized_view = null; + + /** + * @param string $parent Required. This is the name of the table the AuthorizedView belongs to. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. Please see + * {@see BigtableTableAdminClient::tableName()} for help formatting this field. + * @param \Google\Cloud\Bigtable\Admin\V2\AuthorizedView $authorizedView Required. The AuthorizedView to create. + * @param string $authorizedViewId Required. The id of the AuthorizedView to create. This AuthorizedView must + * not already exist. The `authorized_view_id` appended to `parent` forms the + * full AuthorizedView name of the form + * `projects/{project}/instances/{instance}/tables/{table}/authorizedView/{authorized_view}`. + * + * @return \Google\Cloud\Bigtable\Admin\V2\CreateAuthorizedViewRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Bigtable\Admin\V2\AuthorizedView $authorizedView, string $authorizedViewId): self + { + return (new self()) + ->setParent($parent) + ->setAuthorizedView($authorizedView) + ->setAuthorizedViewId($authorizedViewId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. This is the name of the table the AuthorizedView belongs to. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * @type string $authorized_view_id + * Required. The id of the AuthorizedView to create. This AuthorizedView must + * not already exist. The `authorized_view_id` appended to `parent` forms the + * full AuthorizedView name of the form + * `projects/{project}/instances/{instance}/tables/{table}/authorizedView/{authorized_view}`. + * @type \Google\Cloud\Bigtable\Admin\V2\AuthorizedView $authorized_view + * Required. The AuthorizedView to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. This is the name of the table the AuthorizedView belongs to. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. This is the name of the table the AuthorizedView belongs to. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The id of the AuthorizedView to create. This AuthorizedView must + * not already exist. The `authorized_view_id` appended to `parent` forms the + * full AuthorizedView name of the form + * `projects/{project}/instances/{instance}/tables/{table}/authorizedView/{authorized_view}`. + * + * Generated from protobuf field string authorized_view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAuthorizedViewId() + { + return $this->authorized_view_id; + } + + /** + * Required. The id of the AuthorizedView to create. This AuthorizedView must + * not already exist. The `authorized_view_id` appended to `parent` forms the + * full AuthorizedView name of the form + * `projects/{project}/instances/{instance}/tables/{table}/authorizedView/{authorized_view}`. + * + * Generated from protobuf field string authorized_view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAuthorizedViewId($var) + { + GPBUtil::checkString($var, True); + $this->authorized_view_id = $var; + + return $this; + } + + /** + * Required. The AuthorizedView to create. + * + * Generated from protobuf field .google.bigtable.admin.v2.AuthorizedView authorized_view = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Bigtable\Admin\V2\AuthorizedView|null + */ + public function getAuthorizedView() + { + return $this->authorized_view; + } + + public function hasAuthorizedView() + { + return isset($this->authorized_view); + } + + public function clearAuthorizedView() + { + unset($this->authorized_view); + } + + /** + * Required. The AuthorizedView to create. + * + * Generated from protobuf field .google.bigtable.admin.v2.AuthorizedView authorized_view = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Bigtable\Admin\V2\AuthorizedView $var + * @return $this + */ + public function setAuthorizedView($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\AuthorizedView::class); + $this->authorized_view = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateBackupMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateBackupMetadata.php new file mode 100644 index 000000000000..5036db2c1c2a --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateBackupMetadata.php @@ -0,0 +1,190 @@ +google.bigtable.admin.v2.CreateBackupMetadata + */ +class CreateBackupMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the backup being created. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * The name of the table the backup is created from. + * + * Generated from protobuf field string source_table = 2; + */ + protected $source_table = ''; + /** + * The time at which this operation started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 3; + */ + protected $start_time = null; + /** + * If set, the time at which this operation finished or was cancelled. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 4; + */ + protected $end_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of the backup being created. + * @type string $source_table + * The name of the table the backup is created from. + * @type \Google\Protobuf\Timestamp $start_time + * The time at which this operation started. + * @type \Google\Protobuf\Timestamp $end_time + * If set, the time at which this operation finished or was cancelled. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The name of the backup being created. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of the backup being created. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The name of the table the backup is created from. + * + * Generated from protobuf field string source_table = 2; + * @return string + */ + public function getSourceTable() + { + return $this->source_table; + } + + /** + * The name of the table the backup is created from. + * + * Generated from protobuf field string source_table = 2; + * @param string $var + * @return $this + */ + public function setSourceTable($var) + { + GPBUtil::checkString($var, True); + $this->source_table = $var; + + return $this; + } + + /** + * The time at which this operation started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 3; + * @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 at which this operation started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * If set, the time at which this operation finished or was cancelled. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 4; + * @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); + } + + /** + * If set, the time at which this operation finished or was cancelled. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 4; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateBackupRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateBackupRequest.php new file mode 100644 index 000000000000..7f1d41473c51 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateBackupRequest.php @@ -0,0 +1,199 @@ +google.bigtable.admin.v2.CreateBackupRequest + */ +class CreateBackupRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. This must be one of the clusters in the instance in which this + * table is located. The backup will be stored in this cluster. Values are + * of the form `projects/{project}/instances/{instance}/clusters/{cluster}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The id of the backup to be created. The `backup_id` along with + * the parent `parent` are combined as {parent}/backups/{backup_id} to create + * the full backup name, of the form: + * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. + * This string must be between 1 and 50 characters in length and match the + * regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. + * + * Generated from protobuf field string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $backup_id = ''; + /** + * Required. The backup to create. + * + * Generated from protobuf field .google.bigtable.admin.v2.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $backup = null; + + /** + * @param string $parent Required. This must be one of the clusters in the instance in which this + * table is located. The backup will be stored in this cluster. Values are + * of the form `projects/{project}/instances/{instance}/clusters/{cluster}`. Please see + * {@see BigtableTableAdminClient::clusterName()} for help formatting this field. + * @param string $backupId Required. The id of the backup to be created. The `backup_id` along with + * the parent `parent` are combined as {parent}/backups/{backup_id} to create + * the full backup name, of the form: + * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. + * This string must be between 1 and 50 characters in length and match the + * regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. + * @param \Google\Cloud\Bigtable\Admin\V2\Backup $backup Required. The backup to create. + * + * @return \Google\Cloud\Bigtable\Admin\V2\CreateBackupRequest + * + * @experimental + */ + public static function build(string $parent, string $backupId, \Google\Cloud\Bigtable\Admin\V2\Backup $backup): self + { + return (new self()) + ->setParent($parent) + ->setBackupId($backupId) + ->setBackup($backup); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. This must be one of the clusters in the instance in which this + * table is located. The backup will be stored in this cluster. Values are + * of the form `projects/{project}/instances/{instance}/clusters/{cluster}`. + * @type string $backup_id + * Required. The id of the backup to be created. The `backup_id` along with + * the parent `parent` are combined as {parent}/backups/{backup_id} to create + * the full backup name, of the form: + * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. + * This string must be between 1 and 50 characters in length and match the + * regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. + * @type \Google\Cloud\Bigtable\Admin\V2\Backup $backup + * Required. The backup to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. This must be one of the clusters in the instance in which this + * table is located. The backup will be stored in this cluster. Values are + * of the form `projects/{project}/instances/{instance}/clusters/{cluster}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. This must be one of the clusters in the instance in which this + * table is located. The backup will be stored in this cluster. Values are + * of the form `projects/{project}/instances/{instance}/clusters/{cluster}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The id of the backup to be created. The `backup_id` along with + * the parent `parent` are combined as {parent}/backups/{backup_id} to create + * the full backup name, of the form: + * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. + * This string must be between 1 and 50 characters in length and match the + * regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. + * + * Generated from protobuf field string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getBackupId() + { + return $this->backup_id; + } + + /** + * Required. The id of the backup to be created. The `backup_id` along with + * the parent `parent` are combined as {parent}/backups/{backup_id} to create + * the full backup name, of the form: + * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. + * This string must be between 1 and 50 characters in length and match the + * regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. + * + * Generated from protobuf field string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setBackupId($var) + { + GPBUtil::checkString($var, True); + $this->backup_id = $var; + + return $this; + } + + /** + * Required. The backup to create. + * + * Generated from protobuf field .google.bigtable.admin.v2.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Bigtable\Admin\V2\Backup|null + */ + public function getBackup() + { + return $this->backup; + } + + public function hasBackup() + { + return isset($this->backup); + } + + public function clearBackup() + { + unset($this->backup); + } + + /** + * Required. The backup to create. + * + * Generated from protobuf field .google.bigtable.admin.v2.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Bigtable\Admin\V2\Backup $var + * @return $this + */ + public function setBackup($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Backup::class); + $this->backup = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateClusterMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateClusterMetadata.php new file mode 100644 index 000000000000..bd6a207bdf16 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateClusterMetadata.php @@ -0,0 +1,223 @@ +google.bigtable.admin.v2.CreateClusterMetadata + */ +class CreateClusterMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The request that prompted the initiation of this CreateCluster operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.CreateClusterRequest original_request = 1; + */ + protected $original_request = null; + /** + * The time at which the original request was received. + * + * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; + */ + protected $request_time = null; + /** + * The time at which the operation failed or was completed successfully. + * + * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; + */ + protected $finish_time = null; + /** + * Keys: the full `name` of each table that existed in the instance when + * CreateCluster was first called, i.e. + * `projects//instances//tables/`. Any table added + * to the instance by a later API call will be created in the new cluster by + * that API call, not this one. + * Values: information on how much of a table's data has been copied to the + * newly-created cluster so far. + * + * Generated from protobuf field map tables = 4; + */ + private $tables; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\CreateClusterRequest $original_request + * The request that prompted the initiation of this CreateCluster operation. + * @type \Google\Protobuf\Timestamp $request_time + * The time at which the original request was received. + * @type \Google\Protobuf\Timestamp $finish_time + * The time at which the operation failed or was completed successfully. + * @type array|\Google\Protobuf\Internal\MapField $tables + * Keys: the full `name` of each table that existed in the instance when + * CreateCluster was first called, i.e. + * `projects//instances//tables/
`. Any table added + * to the instance by a later API call will be created in the new cluster by + * that API call, not this one. + * Values: information on how much of a table's data has been copied to the + * newly-created cluster so far. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The request that prompted the initiation of this CreateCluster operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.CreateClusterRequest original_request = 1; + * @return \Google\Cloud\Bigtable\Admin\V2\CreateClusterRequest|null + */ + public function getOriginalRequest() + { + return $this->original_request; + } + + public function hasOriginalRequest() + { + return isset($this->original_request); + } + + public function clearOriginalRequest() + { + unset($this->original_request); + } + + /** + * The request that prompted the initiation of this CreateCluster operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.CreateClusterRequest original_request = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\CreateClusterRequest $var + * @return $this + */ + public function setOriginalRequest($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\CreateClusterRequest::class); + $this->original_request = $var; + + return $this; + } + + /** + * The time at which the original request was received. + * + * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getRequestTime() + { + return $this->request_time; + } + + public function hasRequestTime() + { + return isset($this->request_time); + } + + public function clearRequestTime() + { + unset($this->request_time); + } + + /** + * The time at which the original request was received. + * + * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setRequestTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->request_time = $var; + + return $this; + } + + /** + * The time at which the operation failed or was completed successfully. + * + * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; + * @return \Google\Protobuf\Timestamp|null + */ + public function getFinishTime() + { + return $this->finish_time; + } + + public function hasFinishTime() + { + return isset($this->finish_time); + } + + public function clearFinishTime() + { + unset($this->finish_time); + } + + /** + * The time at which the operation failed or was completed successfully. + * + * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setFinishTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->finish_time = $var; + + return $this; + } + + /** + * Keys: the full `name` of each table that existed in the instance when + * CreateCluster was first called, i.e. + * `projects//instances//tables/
`. Any table added + * to the instance by a later API call will be created in the new cluster by + * that API call, not this one. + * Values: information on how much of a table's data has been copied to the + * newly-created cluster so far. + * + * Generated from protobuf field map tables = 4; + * @return \Google\Protobuf\Internal\MapField + */ + public function getTables() + { + return $this->tables; + } + + /** + * Keys: the full `name` of each table that existed in the instance when + * CreateCluster was first called, i.e. + * `projects//instances//tables/
`. Any table added + * to the instance by a later API call will be created in the new cluster by + * that API call, not this one. + * Values: information on how much of a table's data has been copied to the + * newly-created cluster so far. + * + * Generated from protobuf field map tables = 4; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setTables($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\CreateClusterMetadata\TableProgress::class); + $this->tables = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateClusterMetadata/TableProgress.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateClusterMetadata/TableProgress.php new file mode 100644 index 000000000000..1811f46e542c --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateClusterMetadata/TableProgress.php @@ -0,0 +1,136 @@ +google.bigtable.admin.v2.CreateClusterMetadata.TableProgress + */ +class TableProgress extends \Google\Protobuf\Internal\Message +{ + /** + * Estimate of the size of the table to be copied. + * + * Generated from protobuf field int64 estimated_size_bytes = 2; + */ + protected $estimated_size_bytes = 0; + /** + * Estimate of the number of bytes copied so far for this table. + * This will eventually reach 'estimated_size_bytes' unless the table copy + * is CANCELLED. + * + * Generated from protobuf field int64 estimated_copied_bytes = 3; + */ + protected $estimated_copied_bytes = 0; + /** + * Generated from protobuf field .google.bigtable.admin.v2.CreateClusterMetadata.TableProgress.State state = 4; + */ + protected $state = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $estimated_size_bytes + * Estimate of the size of the table to be copied. + * @type int|string $estimated_copied_bytes + * Estimate of the number of bytes copied so far for this table. + * This will eventually reach 'estimated_size_bytes' unless the table copy + * is CANCELLED. + * @type int $state + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Estimate of the size of the table to be copied. + * + * Generated from protobuf field int64 estimated_size_bytes = 2; + * @return int|string + */ + public function getEstimatedSizeBytes() + { + return $this->estimated_size_bytes; + } + + /** + * Estimate of the size of the table to be copied. + * + * Generated from protobuf field int64 estimated_size_bytes = 2; + * @param int|string $var + * @return $this + */ + public function setEstimatedSizeBytes($var) + { + GPBUtil::checkInt64($var); + $this->estimated_size_bytes = $var; + + return $this; + } + + /** + * Estimate of the number of bytes copied so far for this table. + * This will eventually reach 'estimated_size_bytes' unless the table copy + * is CANCELLED. + * + * Generated from protobuf field int64 estimated_copied_bytes = 3; + * @return int|string + */ + public function getEstimatedCopiedBytes() + { + return $this->estimated_copied_bytes; + } + + /** + * Estimate of the number of bytes copied so far for this table. + * This will eventually reach 'estimated_size_bytes' unless the table copy + * is CANCELLED. + * + * Generated from protobuf field int64 estimated_copied_bytes = 3; + * @param int|string $var + * @return $this + */ + public function setEstimatedCopiedBytes($var) + { + GPBUtil::checkInt64($var); + $this->estimated_copied_bytes = $var; + + return $this; + } + + /** + * Generated from protobuf field .google.bigtable.admin.v2.CreateClusterMetadata.TableProgress.State state = 4; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Generated from protobuf field .google.bigtable.admin.v2.CreateClusterMetadata.TableProgress.State state = 4; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\CreateClusterMetadata\TableProgress\State::class); + $this->state = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateClusterMetadata/TableProgress/State.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateClusterMetadata/TableProgress/State.php new file mode 100644 index 000000000000..baf338c6c6d2 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateClusterMetadata/TableProgress/State.php @@ -0,0 +1,73 @@ +google.bigtable.admin.v2.CreateClusterMetadata.TableProgress.State + */ +class State +{ + /** + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The table has not yet begun copying to the new cluster. + * + * Generated from protobuf enum PENDING = 1; + */ + const PENDING = 1; + /** + * The table is actively being copied to the new cluster. + * + * Generated from protobuf enum COPYING = 2; + */ + const COPYING = 2; + /** + * The table has been fully copied to the new cluster. + * + * Generated from protobuf enum COMPLETED = 3; + */ + const COMPLETED = 3; + /** + * The table was deleted before it finished copying to the new cluster. + * Note that tables deleted after completion will stay marked as + * COMPLETED, not CANCELLED. + * + * Generated from protobuf enum CANCELLED = 4; + */ + const CANCELLED = 4; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::PENDING => 'PENDING', + self::COPYING => 'COPYING', + self::COMPLETED => 'COMPLETED', + self::CANCELLED => 'CANCELLED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateClusterRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateClusterRequest.php new file mode 100644 index 000000000000..30b5c3cc9267 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateClusterRequest.php @@ -0,0 +1,183 @@ +google.bigtable.admin.v2.CreateClusterRequest + */ +class CreateClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the instance in which to create the new + * cluster. Values are of the form `projects/{project}/instances/{instance}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The ID to be used when referring to the new cluster within its + * instance, e.g., just `mycluster` rather than + * `projects/myproject/instances/myinstance/clusters/mycluster`. + * + * Generated from protobuf field string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $cluster_id = ''; + /** + * Required. The cluster to be created. + * Fields marked `OutputOnly` must be left blank. + * + * Generated from protobuf field .google.bigtable.admin.v2.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $cluster = null; + + /** + * @param string $parent Required. The unique name of the instance in which to create the new + * cluster. Values are of the form `projects/{project}/instances/{instance}`. Please see + * {@see BigtableInstanceAdminClient::instanceName()} for help formatting this field. + * @param string $clusterId Required. The ID to be used when referring to the new cluster within its + * instance, e.g., just `mycluster` rather than + * `projects/myproject/instances/myinstance/clusters/mycluster`. + * @param \Google\Cloud\Bigtable\Admin\V2\Cluster $cluster Required. The cluster to be created. + * Fields marked `OutputOnly` must be left blank. + * + * @return \Google\Cloud\Bigtable\Admin\V2\CreateClusterRequest + * + * @experimental + */ + public static function build(string $parent, string $clusterId, \Google\Cloud\Bigtable\Admin\V2\Cluster $cluster): self + { + return (new self()) + ->setParent($parent) + ->setClusterId($clusterId) + ->setCluster($cluster); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The unique name of the instance in which to create the new + * cluster. Values are of the form `projects/{project}/instances/{instance}`. + * @type string $cluster_id + * Required. The ID to be used when referring to the new cluster within its + * instance, e.g., just `mycluster` rather than + * `projects/myproject/instances/myinstance/clusters/mycluster`. + * @type \Google\Cloud\Bigtable\Admin\V2\Cluster $cluster + * Required. The cluster to be created. + * Fields marked `OutputOnly` must be left blank. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the instance in which to create the new + * cluster. Values are of the form `projects/{project}/instances/{instance}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The unique name of the instance in which to create the new + * cluster. Values are of the form `projects/{project}/instances/{instance}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The ID to be used when referring to the new cluster within its + * instance, e.g., just `mycluster` rather than + * `projects/myproject/instances/myinstance/clusters/mycluster`. + * + * Generated from protobuf field string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getClusterId() + { + return $this->cluster_id; + } + + /** + * Required. The ID to be used when referring to the new cluster within its + * instance, e.g., just `mycluster` rather than + * `projects/myproject/instances/myinstance/clusters/mycluster`. + * + * Generated from protobuf field string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setClusterId($var) + { + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Required. The cluster to be created. + * Fields marked `OutputOnly` must be left blank. + * + * Generated from protobuf field .google.bigtable.admin.v2.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Bigtable\Admin\V2\Cluster|null + */ + public function getCluster() + { + return $this->cluster; + } + + public function hasCluster() + { + return isset($this->cluster); + } + + public function clearCluster() + { + unset($this->cluster); + } + + /** + * Required. The cluster to be created. + * Fields marked `OutputOnly` must be left blank. + * + * Generated from protobuf field .google.bigtable.admin.v2.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Bigtable\Admin\V2\Cluster $var + * @return $this + */ + public function setCluster($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Cluster::class); + $this->cluster = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateInstanceMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateInstanceMetadata.php new file mode 100644 index 000000000000..2a67465dfe70 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateInstanceMetadata.php @@ -0,0 +1,165 @@ +google.bigtable.admin.v2.CreateInstanceMetadata + */ +class CreateInstanceMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The request that prompted the initiation of this CreateInstance operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.CreateInstanceRequest original_request = 1; + */ + protected $original_request = null; + /** + * The time at which the original request was received. + * + * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; + */ + protected $request_time = null; + /** + * The time at which the operation failed or was completed successfully. + * + * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; + */ + protected $finish_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\CreateInstanceRequest $original_request + * The request that prompted the initiation of this CreateInstance operation. + * @type \Google\Protobuf\Timestamp $request_time + * The time at which the original request was received. + * @type \Google\Protobuf\Timestamp $finish_time + * The time at which the operation failed or was completed successfully. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The request that prompted the initiation of this CreateInstance operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.CreateInstanceRequest original_request = 1; + * @return \Google\Cloud\Bigtable\Admin\V2\CreateInstanceRequest|null + */ + public function getOriginalRequest() + { + return $this->original_request; + } + + public function hasOriginalRequest() + { + return isset($this->original_request); + } + + public function clearOriginalRequest() + { + unset($this->original_request); + } + + /** + * The request that prompted the initiation of this CreateInstance operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.CreateInstanceRequest original_request = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\CreateInstanceRequest $var + * @return $this + */ + public function setOriginalRequest($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\CreateInstanceRequest::class); + $this->original_request = $var; + + return $this; + } + + /** + * The time at which the original request was received. + * + * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getRequestTime() + { + return $this->request_time; + } + + public function hasRequestTime() + { + return isset($this->request_time); + } + + public function clearRequestTime() + { + unset($this->request_time); + } + + /** + * The time at which the original request was received. + * + * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setRequestTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->request_time = $var; + + return $this; + } + + /** + * The time at which the operation failed or was completed successfully. + * + * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; + * @return \Google\Protobuf\Timestamp|null + */ + public function getFinishTime() + { + return $this->finish_time; + } + + public function hasFinishTime() + { + return isset($this->finish_time); + } + + public function clearFinishTime() + { + unset($this->finish_time); + } + + /** + * The time at which the operation failed or was completed successfully. + * + * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setFinishTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->finish_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateInstanceRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateInstanceRequest.php new file mode 100644 index 000000000000..6bf8c1effdc5 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateInstanceRequest.php @@ -0,0 +1,234 @@ +google.bigtable.admin.v2.CreateInstanceRequest + */ +class CreateInstanceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the project in which to create the new + * instance. Values are of the form `projects/{project}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The ID to be used when referring to the new instance within its + * project, e.g., just `myinstance` rather than + * `projects/myproject/instances/myinstance`. + * + * Generated from protobuf field string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $instance_id = ''; + /** + * Required. The instance to create. + * Fields marked `OutputOnly` must be left blank. + * + * Generated from protobuf field .google.bigtable.admin.v2.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $instance = null; + /** + * Required. The clusters to be created within the instance, mapped by desired + * cluster ID, e.g., just `mycluster` rather than + * `projects/myproject/instances/myinstance/clusters/mycluster`. + * Fields marked `OutputOnly` must be left blank. + * + * Generated from protobuf field map clusters = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + private $clusters; + + /** + * @param string $parent Required. The unique name of the project in which to create the new + * instance. Values are of the form `projects/{project}`. Please see + * {@see BigtableInstanceAdminClient::projectName()} for help formatting this field. + * @param string $instanceId Required. The ID to be used when referring to the new instance within its + * project, e.g., just `myinstance` rather than + * `projects/myproject/instances/myinstance`. + * @param \Google\Cloud\Bigtable\Admin\V2\Instance $instance Required. The instance to create. + * Fields marked `OutputOnly` must be left blank. + * @param array $clusters Required. The clusters to be created within the instance, mapped by desired + * cluster ID, e.g., just `mycluster` rather than + * `projects/myproject/instances/myinstance/clusters/mycluster`. + * Fields marked `OutputOnly` must be left blank. + * + * @return \Google\Cloud\Bigtable\Admin\V2\CreateInstanceRequest + * + * @experimental + */ + public static function build(string $parent, string $instanceId, \Google\Cloud\Bigtable\Admin\V2\Instance $instance, array $clusters): self + { + return (new self()) + ->setParent($parent) + ->setInstanceId($instanceId) + ->setInstance($instance) + ->setClusters($clusters); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The unique name of the project in which to create the new + * instance. Values are of the form `projects/{project}`. + * @type string $instance_id + * Required. The ID to be used when referring to the new instance within its + * project, e.g., just `myinstance` rather than + * `projects/myproject/instances/myinstance`. + * @type \Google\Cloud\Bigtable\Admin\V2\Instance $instance + * Required. The instance to create. + * Fields marked `OutputOnly` must be left blank. + * @type array|\Google\Protobuf\Internal\MapField $clusters + * Required. The clusters to be created within the instance, mapped by desired + * cluster ID, e.g., just `mycluster` rather than + * `projects/myproject/instances/myinstance/clusters/mycluster`. + * Fields marked `OutputOnly` must be left blank. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the project in which to create the new + * instance. Values are of the form `projects/{project}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The unique name of the project in which to create the new + * instance. Values are of the form `projects/{project}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The ID to be used when referring to the new instance within its + * project, e.g., just `myinstance` rather than + * `projects/myproject/instances/myinstance`. + * + * Generated from protobuf field string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getInstanceId() + { + return $this->instance_id; + } + + /** + * Required. The ID to be used when referring to the new instance within its + * project, e.g., just `myinstance` rather than + * `projects/myproject/instances/myinstance`. + * + * Generated from protobuf field string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setInstanceId($var) + { + GPBUtil::checkString($var, True); + $this->instance_id = $var; + + return $this; + } + + /** + * Required. The instance to create. + * Fields marked `OutputOnly` must be left blank. + * + * Generated from protobuf field .google.bigtable.admin.v2.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Bigtable\Admin\V2\Instance|null + */ + public function getInstance() + { + return $this->instance; + } + + public function hasInstance() + { + return isset($this->instance); + } + + public function clearInstance() + { + unset($this->instance); + } + + /** + * Required. The instance to create. + * Fields marked `OutputOnly` must be left blank. + * + * Generated from protobuf field .google.bigtable.admin.v2.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Bigtable\Admin\V2\Instance $var + * @return $this + */ + public function setInstance($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Instance::class); + $this->instance = $var; + + return $this; + } + + /** + * Required. The clusters to be created within the instance, mapped by desired + * cluster ID, e.g., just `mycluster` rather than + * `projects/myproject/instances/myinstance/clusters/mycluster`. + * Fields marked `OutputOnly` must be left blank. + * + * Generated from protobuf field map clusters = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getClusters() + { + return $this->clusters; + } + + /** + * Required. The clusters to be created within the instance, mapped by desired + * cluster ID, e.g., just `mycluster` rather than + * `projects/myproject/instances/myinstance/clusters/mycluster`. + * Fields marked `OutputOnly` must be left blank. + * + * Generated from protobuf field map clusters = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setClusters($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\Cluster::class); + $this->clusters = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateLogicalViewMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateLogicalViewMetadata.php new file mode 100644 index 000000000000..d98dff167592 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateLogicalViewMetadata.php @@ -0,0 +1,169 @@ +google.bigtable.admin.v2.CreateLogicalViewMetadata + */ +class CreateLogicalViewMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The request that prompted the initiation of this CreateLogicalView + * operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.CreateLogicalViewRequest original_request = 1; + */ + protected $original_request = null; + /** + * The time at which this operation started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + */ + protected $start_time = null; + /** + * If set, the time at which this operation finished or was canceled. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; + */ + protected $end_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\CreateLogicalViewRequest $original_request + * The request that prompted the initiation of this CreateLogicalView + * operation. + * @type \Google\Protobuf\Timestamp $start_time + * The time at which this operation started. + * @type \Google\Protobuf\Timestamp $end_time + * If set, the time at which this operation finished or was canceled. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The request that prompted the initiation of this CreateLogicalView + * operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.CreateLogicalViewRequest original_request = 1; + * @return \Google\Cloud\Bigtable\Admin\V2\CreateLogicalViewRequest|null + */ + public function getOriginalRequest() + { + return $this->original_request; + } + + public function hasOriginalRequest() + { + return isset($this->original_request); + } + + public function clearOriginalRequest() + { + unset($this->original_request); + } + + /** + * The request that prompted the initiation of this CreateLogicalView + * operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.CreateLogicalViewRequest original_request = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\CreateLogicalViewRequest $var + * @return $this + */ + public function setOriginalRequest($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\CreateLogicalViewRequest::class); + $this->original_request = $var; + + return $this; + } + + /** + * The time at which this operation started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @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 at which this operation started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * If set, the time at which this operation finished or was canceled. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; + * @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); + } + + /** + * If set, the time at which this operation finished or was canceled. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateLogicalViewRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateLogicalViewRequest.php new file mode 100644 index 000000000000..6de5e7a107fb --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateLogicalViewRequest.php @@ -0,0 +1,173 @@ +google.bigtable.admin.v2.CreateLogicalViewRequest + */ +class CreateLogicalViewRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent instance where this logical view will be created. + * Format: `projects/{project}/instances/{instance}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The ID to use for the logical view, which will become the final + * component of the logical view's resource name. + * + * Generated from protobuf field string logical_view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $logical_view_id = ''; + /** + * Required. The logical view to create. + * + * Generated from protobuf field .google.bigtable.admin.v2.LogicalView logical_view = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $logical_view = null; + + /** + * @param string $parent Required. The parent instance where this logical view will be created. + * Format: `projects/{project}/instances/{instance}`. Please see + * {@see BigtableInstanceAdminClient::instanceName()} for help formatting this field. + * @param \Google\Cloud\Bigtable\Admin\V2\LogicalView $logicalView Required. The logical view to create. + * @param string $logicalViewId Required. The ID to use for the logical view, which will become the final + * component of the logical view's resource name. + * + * @return \Google\Cloud\Bigtable\Admin\V2\CreateLogicalViewRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Bigtable\Admin\V2\LogicalView $logicalView, string $logicalViewId): self + { + return (new self()) + ->setParent($parent) + ->setLogicalView($logicalView) + ->setLogicalViewId($logicalViewId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent instance where this logical view will be created. + * Format: `projects/{project}/instances/{instance}`. + * @type string $logical_view_id + * Required. The ID to use for the logical view, which will become the final + * component of the logical view's resource name. + * @type \Google\Cloud\Bigtable\Admin\V2\LogicalView $logical_view + * Required. The logical view to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent instance where this logical view will be created. + * Format: `projects/{project}/instances/{instance}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent instance where this logical view will be created. + * Format: `projects/{project}/instances/{instance}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The ID to use for the logical view, which will become the final + * component of the logical view's resource name. + * + * Generated from protobuf field string logical_view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getLogicalViewId() + { + return $this->logical_view_id; + } + + /** + * Required. The ID to use for the logical view, which will become the final + * component of the logical view's resource name. + * + * Generated from protobuf field string logical_view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setLogicalViewId($var) + { + GPBUtil::checkString($var, True); + $this->logical_view_id = $var; + + return $this; + } + + /** + * Required. The logical view to create. + * + * Generated from protobuf field .google.bigtable.admin.v2.LogicalView logical_view = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Bigtable\Admin\V2\LogicalView|null + */ + public function getLogicalView() + { + return $this->logical_view; + } + + public function hasLogicalView() + { + return isset($this->logical_view); + } + + public function clearLogicalView() + { + unset($this->logical_view); + } + + /** + * Required. The logical view to create. + * + * Generated from protobuf field .google.bigtable.admin.v2.LogicalView logical_view = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Bigtable\Admin\V2\LogicalView $var + * @return $this + */ + public function setLogicalView($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\LogicalView::class); + $this->logical_view = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateMaterializedViewMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateMaterializedViewMetadata.php new file mode 100644 index 000000000000..5a64639d95a0 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateMaterializedViewMetadata.php @@ -0,0 +1,169 @@ +google.bigtable.admin.v2.CreateMaterializedViewMetadata + */ +class CreateMaterializedViewMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The request that prompted the initiation of this CreateMaterializedView + * operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.CreateMaterializedViewRequest original_request = 1; + */ + protected $original_request = null; + /** + * The time at which this operation started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + */ + protected $start_time = null; + /** + * If set, the time at which this operation finished or was canceled. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; + */ + protected $end_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\CreateMaterializedViewRequest $original_request + * The request that prompted the initiation of this CreateMaterializedView + * operation. + * @type \Google\Protobuf\Timestamp $start_time + * The time at which this operation started. + * @type \Google\Protobuf\Timestamp $end_time + * If set, the time at which this operation finished or was canceled. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The request that prompted the initiation of this CreateMaterializedView + * operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.CreateMaterializedViewRequest original_request = 1; + * @return \Google\Cloud\Bigtable\Admin\V2\CreateMaterializedViewRequest|null + */ + public function getOriginalRequest() + { + return $this->original_request; + } + + public function hasOriginalRequest() + { + return isset($this->original_request); + } + + public function clearOriginalRequest() + { + unset($this->original_request); + } + + /** + * The request that prompted the initiation of this CreateMaterializedView + * operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.CreateMaterializedViewRequest original_request = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\CreateMaterializedViewRequest $var + * @return $this + */ + public function setOriginalRequest($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\CreateMaterializedViewRequest::class); + $this->original_request = $var; + + return $this; + } + + /** + * The time at which this operation started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @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 at which this operation started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * If set, the time at which this operation finished or was canceled. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; + * @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); + } + + /** + * If set, the time at which this operation finished or was canceled. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateMaterializedViewRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateMaterializedViewRequest.php new file mode 100644 index 000000000000..06ee6f517c2a --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateMaterializedViewRequest.php @@ -0,0 +1,173 @@ +google.bigtable.admin.v2.CreateMaterializedViewRequest + */ +class CreateMaterializedViewRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent instance where this materialized view will be created. + * Format: `projects/{project}/instances/{instance}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The ID to use for the materialized view, which will become the + * final component of the materialized view's resource name. + * + * Generated from protobuf field string materialized_view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $materialized_view_id = ''; + /** + * Required. The materialized view to create. + * + * Generated from protobuf field .google.bigtable.admin.v2.MaterializedView materialized_view = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $materialized_view = null; + + /** + * @param string $parent Required. The parent instance where this materialized view will be created. + * Format: `projects/{project}/instances/{instance}`. Please see + * {@see BigtableInstanceAdminClient::instanceName()} for help formatting this field. + * @param \Google\Cloud\Bigtable\Admin\V2\MaterializedView $materializedView Required. The materialized view to create. + * @param string $materializedViewId Required. The ID to use for the materialized view, which will become the + * final component of the materialized view's resource name. + * + * @return \Google\Cloud\Bigtable\Admin\V2\CreateMaterializedViewRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Bigtable\Admin\V2\MaterializedView $materializedView, string $materializedViewId): self + { + return (new self()) + ->setParent($parent) + ->setMaterializedView($materializedView) + ->setMaterializedViewId($materializedViewId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent instance where this materialized view will be created. + * Format: `projects/{project}/instances/{instance}`. + * @type string $materialized_view_id + * Required. The ID to use for the materialized view, which will become the + * final component of the materialized view's resource name. + * @type \Google\Cloud\Bigtable\Admin\V2\MaterializedView $materialized_view + * Required. The materialized view to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent instance where this materialized view will be created. + * Format: `projects/{project}/instances/{instance}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent instance where this materialized view will be created. + * Format: `projects/{project}/instances/{instance}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The ID to use for the materialized view, which will become the + * final component of the materialized view's resource name. + * + * Generated from protobuf field string materialized_view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getMaterializedViewId() + { + return $this->materialized_view_id; + } + + /** + * Required. The ID to use for the materialized view, which will become the + * final component of the materialized view's resource name. + * + * Generated from protobuf field string materialized_view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setMaterializedViewId($var) + { + GPBUtil::checkString($var, True); + $this->materialized_view_id = $var; + + return $this; + } + + /** + * Required. The materialized view to create. + * + * Generated from protobuf field .google.bigtable.admin.v2.MaterializedView materialized_view = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Bigtable\Admin\V2\MaterializedView|null + */ + public function getMaterializedView() + { + return $this->materialized_view; + } + + public function hasMaterializedView() + { + return isset($this->materialized_view); + } + + public function clearMaterializedView() + { + unset($this->materialized_view); + } + + /** + * Required. The materialized view to create. + * + * Generated from protobuf field .google.bigtable.admin.v2.MaterializedView materialized_view = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Bigtable\Admin\V2\MaterializedView $var + * @return $this + */ + public function setMaterializedView($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\MaterializedView::class); + $this->materialized_view = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateSchemaBundleMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateSchemaBundleMetadata.php new file mode 100644 index 000000000000..490ce8feb5bb --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateSchemaBundleMetadata.php @@ -0,0 +1,164 @@ +google.bigtable.admin.v2.CreateSchemaBundleMetadata + */ +class CreateSchemaBundleMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The unique name identifying this schema bundle. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * The time at which this operation started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + */ + protected $start_time = null; + /** + * If set, the time at which this operation finished or was canceled. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; + */ + protected $end_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The unique name identifying this schema bundle. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + * @type \Google\Protobuf\Timestamp $start_time + * The time at which this operation started. + * @type \Google\Protobuf\Timestamp $end_time + * If set, the time at which this operation finished or was canceled. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The unique name identifying this schema bundle. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The unique name identifying this schema bundle. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The time at which this operation started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @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 at which this operation started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * If set, the time at which this operation finished or was canceled. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; + * @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); + } + + /** + * If set, the time at which this operation finished or was canceled. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateSchemaBundleRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateSchemaBundleRequest.php new file mode 100644 index 000000000000..1616b339f81b --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateSchemaBundleRequest.php @@ -0,0 +1,179 @@ +google.bigtable.admin.v2.CreateSchemaBundleRequest + */ +class CreateSchemaBundleRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this schema bundle will be created. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The unique ID to use for the schema bundle, which will become the + * final component of the schema bundle's resource name. + * + * Generated from protobuf field string schema_bundle_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $schema_bundle_id = ''; + /** + * Required. The schema bundle to create. + * + * Generated from protobuf field .google.bigtable.admin.v2.SchemaBundle schema_bundle = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $schema_bundle = null; + + /** + * @param string $parent Required. The parent resource where this schema bundle will be created. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. Please see + * {@see BigtableTableAdminClient::tableName()} for help formatting this field. + * @param string $schemaBundleId Required. The unique ID to use for the schema bundle, which will become the + * final component of the schema bundle's resource name. + * @param \Google\Cloud\Bigtable\Admin\V2\SchemaBundle $schemaBundle Required. The schema bundle to create. + * + * @return \Google\Cloud\Bigtable\Admin\V2\CreateSchemaBundleRequest + * + * @experimental + */ + public static function build(string $parent, string $schemaBundleId, \Google\Cloud\Bigtable\Admin\V2\SchemaBundle $schemaBundle): self + { + return (new self()) + ->setParent($parent) + ->setSchemaBundleId($schemaBundleId) + ->setSchemaBundle($schemaBundle); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this schema bundle will be created. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * @type string $schema_bundle_id + * Required. The unique ID to use for the schema bundle, which will become the + * final component of the schema bundle's resource name. + * @type \Google\Cloud\Bigtable\Admin\V2\SchemaBundle $schema_bundle + * Required. The schema bundle to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this schema bundle will be created. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this schema bundle will be created. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The unique ID to use for the schema bundle, which will become the + * final component of the schema bundle's resource name. + * + * Generated from protobuf field string schema_bundle_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getSchemaBundleId() + { + return $this->schema_bundle_id; + } + + /** + * Required. The unique ID to use for the schema bundle, which will become the + * final component of the schema bundle's resource name. + * + * Generated from protobuf field string schema_bundle_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setSchemaBundleId($var) + { + GPBUtil::checkString($var, True); + $this->schema_bundle_id = $var; + + return $this; + } + + /** + * Required. The schema bundle to create. + * + * Generated from protobuf field .google.bigtable.admin.v2.SchemaBundle schema_bundle = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Bigtable\Admin\V2\SchemaBundle|null + */ + public function getSchemaBundle() + { + return $this->schema_bundle; + } + + public function hasSchemaBundle() + { + return isset($this->schema_bundle); + } + + public function clearSchemaBundle() + { + unset($this->schema_bundle); + } + + /** + * Required. The schema bundle to create. + * + * Generated from protobuf field .google.bigtable.admin.v2.SchemaBundle schema_bundle = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Bigtable\Admin\V2\SchemaBundle $var + * @return $this + */ + public function setSchemaBundle($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\SchemaBundle::class); + $this->schema_bundle = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateTableFromSnapshotMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateTableFromSnapshotMetadata.php new file mode 100644 index 000000000000..ed5fef6e7fc3 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateTableFromSnapshotMetadata.php @@ -0,0 +1,173 @@ +google.bigtable.admin.v2.CreateTableFromSnapshotMetadata + */ +class CreateTableFromSnapshotMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The request that prompted the initiation of this CreateTableFromSnapshot + * operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.CreateTableFromSnapshotRequest original_request = 1; + */ + protected $original_request = null; + /** + * The time at which the original request was received. + * + * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; + */ + protected $request_time = null; + /** + * The time at which the operation failed or was completed successfully. + * + * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; + */ + protected $finish_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\CreateTableFromSnapshotRequest $original_request + * The request that prompted the initiation of this CreateTableFromSnapshot + * operation. + * @type \Google\Protobuf\Timestamp $request_time + * The time at which the original request was received. + * @type \Google\Protobuf\Timestamp $finish_time + * The time at which the operation failed or was completed successfully. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The request that prompted the initiation of this CreateTableFromSnapshot + * operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.CreateTableFromSnapshotRequest original_request = 1; + * @return \Google\Cloud\Bigtable\Admin\V2\CreateTableFromSnapshotRequest|null + */ + public function getOriginalRequest() + { + return $this->original_request; + } + + public function hasOriginalRequest() + { + return isset($this->original_request); + } + + public function clearOriginalRequest() + { + unset($this->original_request); + } + + /** + * The request that prompted the initiation of this CreateTableFromSnapshot + * operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.CreateTableFromSnapshotRequest original_request = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\CreateTableFromSnapshotRequest $var + * @return $this + */ + public function setOriginalRequest($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\CreateTableFromSnapshotRequest::class); + $this->original_request = $var; + + return $this; + } + + /** + * The time at which the original request was received. + * + * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getRequestTime() + { + return $this->request_time; + } + + public function hasRequestTime() + { + return isset($this->request_time); + } + + public function clearRequestTime() + { + unset($this->request_time); + } + + /** + * The time at which the original request was received. + * + * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setRequestTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->request_time = $var; + + return $this; + } + + /** + * The time at which the operation failed or was completed successfully. + * + * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; + * @return \Google\Protobuf\Timestamp|null + */ + public function getFinishTime() + { + return $this->finish_time; + } + + public function hasFinishTime() + { + return isset($this->finish_time); + } + + public function clearFinishTime() + { + unset($this->finish_time); + } + + /** + * The time at which the operation failed or was completed successfully. + * + * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setFinishTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->finish_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateTableFromSnapshotRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateTableFromSnapshotRequest.php new file mode 100644 index 000000000000..bf89301d7cc3 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateTableFromSnapshotRequest.php @@ -0,0 +1,184 @@ +google.bigtable.admin.v2.CreateTableFromSnapshotRequest + */ +class CreateTableFromSnapshotRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the instance in which to create the table. + * Values are of the form `projects/{project}/instances/{instance}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The name by which the new table should be referred to within the + * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + * + * Generated from protobuf field string table_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $table_id = ''; + /** + * Required. The unique name of the snapshot from which to restore the table. + * The snapshot and the table must be in the same instance. Values are of the + * form + * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + * + * Generated from protobuf field string source_snapshot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $source_snapshot = ''; + + /** + * @param string $parent Required. The unique name of the instance in which to create the table. + * Values are of the form `projects/{project}/instances/{instance}`. Please see + * {@see BigtableTableAdminClient::instanceName()} for help formatting this field. + * @param string $tableId Required. The name by which the new table should be referred to within the + * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + * @param string $sourceSnapshot Required. The unique name of the snapshot from which to restore the table. + * The snapshot and the table must be in the same instance. Values are of the + * form + * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. Please see + * {@see BigtableTableAdminClient::snapshotName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\Admin\V2\CreateTableFromSnapshotRequest + * + * @experimental + */ + public static function build(string $parent, string $tableId, string $sourceSnapshot): self + { + return (new self()) + ->setParent($parent) + ->setTableId($tableId) + ->setSourceSnapshot($sourceSnapshot); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The unique name of the instance in which to create the table. + * Values are of the form `projects/{project}/instances/{instance}`. + * @type string $table_id + * Required. The name by which the new table should be referred to within the + * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + * @type string $source_snapshot + * Required. The unique name of the snapshot from which to restore the table. + * The snapshot and the table must be in the same instance. Values are of the + * form + * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the instance in which to create the table. + * Values are of the form `projects/{project}/instances/{instance}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The unique name of the instance in which to create the table. + * Values are of the form `projects/{project}/instances/{instance}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The name by which the new table should be referred to within the + * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + * + * Generated from protobuf field string table_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getTableId() + { + return $this->table_id; + } + + /** + * Required. The name by which the new table should be referred to within the + * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + * + * Generated from protobuf field string table_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setTableId($var) + { + GPBUtil::checkString($var, True); + $this->table_id = $var; + + return $this; + } + + /** + * Required. The unique name of the snapshot from which to restore the table. + * The snapshot and the table must be in the same instance. Values are of the + * form + * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + * + * Generated from protobuf field string source_snapshot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getSourceSnapshot() + { + return $this->source_snapshot; + } + + /** + * Required. The unique name of the snapshot from which to restore the table. + * The snapshot and the table must be in the same instance. Values are of the + * form + * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + * + * Generated from protobuf field string source_snapshot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setSourceSnapshot($var) + { + GPBUtil::checkString($var, True); + $this->source_snapshot = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateTableRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateTableRequest.php new file mode 100644 index 000000000000..d9362cf910bc --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateTableRequest.php @@ -0,0 +1,265 @@ +google.bigtable.admin.v2.CreateTableRequest + */ +class CreateTableRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the instance in which to create the table. + * Values are of the form `projects/{project}/instances/{instance}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The name by which the new table should be referred to within the + * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + * Maximum 50 characters. + * + * Generated from protobuf field string table_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $table_id = ''; + /** + * Required. The Table to create. + * + * Generated from protobuf field .google.bigtable.admin.v2.Table table = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $table = null; + /** + * The optional list of row keys that will be used to initially split the + * table into several tablets (tablets are similar to HBase regions). + * Given two split keys, `s1` and `s2`, three tablets will be created, + * spanning the key ranges: `[, s1), [s1, s2), [s2, )`. + * Example: + * * Row keys := `["a", "apple", "custom", "customer_1", "customer_2",` + * `"other", "zz"]` + * * initial_split_keys := `["apple", "customer_1", "customer_2", "other"]` + * * Key assignment: + * - Tablet 1 `[, apple) => {"a"}.` + * - Tablet 2 `[apple, customer_1) => {"apple", "custom"}.` + * - Tablet 3 `[customer_1, customer_2) => {"customer_1"}.` + * - Tablet 4 `[customer_2, other) => {"customer_2"}.` + * - Tablet 5 `[other, ) => {"other", "zz"}.` + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.CreateTableRequest.Split initial_splits = 4; + */ + private $initial_splits; + + /** + * @param string $parent Required. The unique name of the instance in which to create the table. + * Values are of the form `projects/{project}/instances/{instance}`. Please see + * {@see BigtableTableAdminClient::instanceName()} for help formatting this field. + * @param string $tableId Required. The name by which the new table should be referred to within the + * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + * Maximum 50 characters. + * @param \Google\Cloud\Bigtable\Admin\V2\Table $table Required. The Table to create. + * + * @return \Google\Cloud\Bigtable\Admin\V2\CreateTableRequest + * + * @experimental + */ + public static function build(string $parent, string $tableId, \Google\Cloud\Bigtable\Admin\V2\Table $table): self + { + return (new self()) + ->setParent($parent) + ->setTableId($tableId) + ->setTable($table); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The unique name of the instance in which to create the table. + * Values are of the form `projects/{project}/instances/{instance}`. + * @type string $table_id + * Required. The name by which the new table should be referred to within the + * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + * Maximum 50 characters. + * @type \Google\Cloud\Bigtable\Admin\V2\Table $table + * Required. The Table to create. + * @type \Google\Cloud\Bigtable\Admin\V2\CreateTableRequest\Split[] $initial_splits + * The optional list of row keys that will be used to initially split the + * table into several tablets (tablets are similar to HBase regions). + * Given two split keys, `s1` and `s2`, three tablets will be created, + * spanning the key ranges: `[, s1), [s1, s2), [s2, )`. + * Example: + * * Row keys := `["a", "apple", "custom", "customer_1", "customer_2",` + * `"other", "zz"]` + * * initial_split_keys := `["apple", "customer_1", "customer_2", "other"]` + * * Key assignment: + * - Tablet 1 `[, apple) => {"a"}.` + * - Tablet 2 `[apple, customer_1) => {"apple", "custom"}.` + * - Tablet 3 `[customer_1, customer_2) => {"customer_1"}.` + * - Tablet 4 `[customer_2, other) => {"customer_2"}.` + * - Tablet 5 `[other, ) => {"other", "zz"}.` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the instance in which to create the table. + * Values are of the form `projects/{project}/instances/{instance}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The unique name of the instance in which to create the table. + * Values are of the form `projects/{project}/instances/{instance}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The name by which the new table should be referred to within the + * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + * Maximum 50 characters. + * + * Generated from protobuf field string table_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getTableId() + { + return $this->table_id; + } + + /** + * Required. The name by which the new table should be referred to within the + * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + * Maximum 50 characters. + * + * Generated from protobuf field string table_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setTableId($var) + { + GPBUtil::checkString($var, True); + $this->table_id = $var; + + return $this; + } + + /** + * Required. The Table to create. + * + * Generated from protobuf field .google.bigtable.admin.v2.Table table = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Bigtable\Admin\V2\Table|null + */ + public function getTable() + { + return $this->table; + } + + public function hasTable() + { + return isset($this->table); + } + + public function clearTable() + { + unset($this->table); + } + + /** + * Required. The Table to create. + * + * Generated from protobuf field .google.bigtable.admin.v2.Table table = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Bigtable\Admin\V2\Table $var + * @return $this + */ + public function setTable($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Table::class); + $this->table = $var; + + return $this; + } + + /** + * The optional list of row keys that will be used to initially split the + * table into several tablets (tablets are similar to HBase regions). + * Given two split keys, `s1` and `s2`, three tablets will be created, + * spanning the key ranges: `[, s1), [s1, s2), [s2, )`. + * Example: + * * Row keys := `["a", "apple", "custom", "customer_1", "customer_2",` + * `"other", "zz"]` + * * initial_split_keys := `["apple", "customer_1", "customer_2", "other"]` + * * Key assignment: + * - Tablet 1 `[, apple) => {"a"}.` + * - Tablet 2 `[apple, customer_1) => {"apple", "custom"}.` + * - Tablet 3 `[customer_1, customer_2) => {"customer_1"}.` + * - Tablet 4 `[customer_2, other) => {"customer_2"}.` + * - Tablet 5 `[other, ) => {"other", "zz"}.` + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.CreateTableRequest.Split initial_splits = 4; + * @return RepeatedField<\Google\Cloud\Bigtable\Admin\V2\CreateTableRequest\Split> + */ + public function getInitialSplits() + { + return $this->initial_splits; + } + + /** + * The optional list of row keys that will be used to initially split the + * table into several tablets (tablets are similar to HBase regions). + * Given two split keys, `s1` and `s2`, three tablets will be created, + * spanning the key ranges: `[, s1), [s1, s2), [s2, )`. + * Example: + * * Row keys := `["a", "apple", "custom", "customer_1", "customer_2",` + * `"other", "zz"]` + * * initial_split_keys := `["apple", "customer_1", "customer_2", "other"]` + * * Key assignment: + * - Tablet 1 `[, apple) => {"a"}.` + * - Tablet 2 `[apple, customer_1) => {"apple", "custom"}.` + * - Tablet 3 `[customer_1, customer_2) => {"customer_1"}.` + * - Tablet 4 `[customer_2, other) => {"customer_2"}.` + * - Tablet 5 `[other, ) => {"other", "zz"}.` + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.CreateTableRequest.Split initial_splits = 4; + * @param \Google\Cloud\Bigtable\Admin\V2\CreateTableRequest\Split[] $var + * @return $this + */ + public function setInitialSplits($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\CreateTableRequest\Split::class); + $this->initial_splits = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateTableRequest/Split.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateTableRequest/Split.php new file mode 100644 index 000000000000..f7577a6c5764 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateTableRequest/Split.php @@ -0,0 +1,67 @@ +google.bigtable.admin.v2.CreateTableRequest.Split + */ +class Split extends \Google\Protobuf\Internal\Message +{ + /** + * Row key to use as an initial tablet boundary. + * + * Generated from protobuf field bytes key = 1; + */ + protected $key = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $key + * Row key to use as an initial tablet boundary. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Row key to use as an initial tablet boundary. + * + * Generated from protobuf field bytes key = 1; + * @return string + */ + public function getKey() + { + return $this->key; + } + + /** + * Row key to use as an initial tablet boundary. + * + * Generated from protobuf field bytes key = 1; + * @param string $var + * @return $this + */ + public function setKey($var) + { + GPBUtil::checkString($var, False); + $this->key = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DataBoostReadLocalWrites.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DataBoostReadLocalWrites.php new file mode 100644 index 000000000000..afe11e54aba3 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DataBoostReadLocalWrites.php @@ -0,0 +1,34 @@ +google.bigtable.admin.v2.DataBoostReadLocalWrites + */ +class DataBoostReadLocalWrites extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteAppProfileRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteAppProfileRequest.php new file mode 100644 index 000000000000..ea908e1f44c8 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteAppProfileRequest.php @@ -0,0 +1,143 @@ +google.bigtable.admin.v2.DeleteAppProfileRequest + */ +class DeleteAppProfileRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the app profile to be deleted. Values are of + * the form + * `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. If true, ignore safety checks when deleting the app profile. + * + * Generated from protobuf field bool ignore_warnings = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $ignore_warnings = false; + + /** + * @param string $name Required. The unique name of the app profile to be deleted. Values are of + * the form + * `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. Please see + * {@see BigtableInstanceAdminClient::appProfileName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\Admin\V2\DeleteAppProfileRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * @param string $name Required. The unique name of the app profile to be deleted. Values are of + * the form + * `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. Please see + * {@see BigtableInstanceAdminClient::appProfileName()} for help formatting this field. + * @param bool $ignoreWarnings Required. If true, ignore safety checks when deleting the app profile. + * + * @return \Google\Cloud\Bigtable\Admin\V2\DeleteAppProfileRequest + * + * @experimental + */ + public static function buildFromNameIgnoreWarnings(string $name, bool $ignoreWarnings): self + { + return (new self()) + ->setName($name) + ->setIgnoreWarnings($ignoreWarnings); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The unique name of the app profile to be deleted. Values are of + * the form + * `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + * @type bool $ignore_warnings + * Required. If true, ignore safety checks when deleting the app profile. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the app profile to be deleted. Values are of + * the form + * `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The unique name of the app profile to be deleted. Values are of + * the form + * `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. If true, ignore safety checks when deleting the app profile. + * + * Generated from protobuf field bool ignore_warnings = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return bool + */ + public function getIgnoreWarnings() + { + return $this->ignore_warnings; + } + + /** + * Required. If true, ignore safety checks when deleting the app profile. + * + * Generated from protobuf field bool ignore_warnings = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param bool $var + * @return $this + */ + public function setIgnoreWarnings($var) + { + GPBUtil::checkBool($var); + $this->ignore_warnings = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteAuthorizedViewRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteAuthorizedViewRequest.php new file mode 100644 index 000000000000..6a87ddb9e3ef --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteAuthorizedViewRequest.php @@ -0,0 +1,138 @@ +google.bigtable.admin.v2.DeleteAuthorizedViewRequest + */ +class DeleteAuthorizedViewRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the AuthorizedView to be deleted. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. The current etag of the AuthorizedView. + * If an etag is provided and does not match the current etag of the + * AuthorizedView, deletion will be blocked and an ABORTED error will be + * returned. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + + /** + * @param string $name Required. The unique name of the AuthorizedView to be deleted. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. Please see + * {@see BigtableTableAdminClient::authorizedViewName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\Admin\V2\DeleteAuthorizedViewRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The unique name of the AuthorizedView to be deleted. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + * @type string $etag + * Optional. The current etag of the AuthorizedView. + * If an etag is provided and does not match the current etag of the + * AuthorizedView, deletion will be blocked and an ABORTED error will be + * returned. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the AuthorizedView to be deleted. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The unique name of the AuthorizedView to be deleted. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. The current etag of the AuthorizedView. + * If an etag is provided and does not match the current etag of the + * AuthorizedView, deletion will be blocked and an ABORTED error will be + * returned. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. The current etag of the AuthorizedView. + * If an etag is provided and does not match the current etag of the + * AuthorizedView, deletion will be blocked and an ABORTED error will be + * returned. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteBackupRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteBackupRequest.php new file mode 100644 index 000000000000..c5907898439e --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteBackupRequest.php @@ -0,0 +1,92 @@ +google.bigtable.admin.v2.DeleteBackupRequest + */ +class DeleteBackupRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the backup to delete. + * Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Name of the backup to delete. + * Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. Please see + * {@see BigtableTableAdminClient::backupName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\Admin\V2\DeleteBackupRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Name of the backup to delete. + * Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the backup to delete. + * Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Name of the backup to delete. + * Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteClusterRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteClusterRequest.php new file mode 100644 index 000000000000..6b61df42324d --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteClusterRequest.php @@ -0,0 +1,86 @@ +google.bigtable.admin.v2.DeleteClusterRequest + */ +class DeleteClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the cluster to be deleted. Values are of the + * form `projects/{project}/instances/{instance}/clusters/{cluster}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The unique name of the cluster to be deleted. Values are of the + * form `projects/{project}/instances/{instance}/clusters/{cluster}`. Please see + * {@see BigtableInstanceAdminClient::clusterName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\Admin\V2\DeleteClusterRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The unique name of the cluster to be deleted. Values are of the + * form `projects/{project}/instances/{instance}/clusters/{cluster}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the cluster to be deleted. Values are of the + * form `projects/{project}/instances/{instance}/clusters/{cluster}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The unique name of the cluster to be deleted. Values are of the + * form `projects/{project}/instances/{instance}/clusters/{cluster}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteInstanceRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteInstanceRequest.php new file mode 100644 index 000000000000..c1fd6d506afa --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteInstanceRequest.php @@ -0,0 +1,86 @@ +google.bigtable.admin.v2.DeleteInstanceRequest + */ +class DeleteInstanceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the instance to be deleted. + * Values are of the form `projects/{project}/instances/{instance}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The unique name of the instance to be deleted. + * Values are of the form `projects/{project}/instances/{instance}`. Please see + * {@see BigtableInstanceAdminClient::instanceName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\Admin\V2\DeleteInstanceRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The unique name of the instance to be deleted. + * Values are of the form `projects/{project}/instances/{instance}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the instance to be deleted. + * Values are of the form `projects/{project}/instances/{instance}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The unique name of the instance to be deleted. + * Values are of the form `projects/{project}/instances/{instance}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteLogicalViewRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteLogicalViewRequest.php new file mode 100644 index 000000000000..19e81cd4cbe3 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteLogicalViewRequest.php @@ -0,0 +1,137 @@ +google.bigtable.admin.v2.DeleteLogicalViewRequest + */ +class DeleteLogicalViewRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the logical view to be deleted. + * Format: + * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. The current etag of the logical view. + * If an etag is provided and does not match the current etag of the + * logical view, deletion will be blocked and an ABORTED error will be + * returned. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + + /** + * @param string $name Required. The unique name of the logical view to be deleted. + * Format: + * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. Please see + * {@see BigtableInstanceAdminClient::logicalViewName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\Admin\V2\DeleteLogicalViewRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The unique name of the logical view to be deleted. + * Format: + * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + * @type string $etag + * Optional. The current etag of the logical view. + * If an etag is provided and does not match the current etag of the + * logical view, deletion will be blocked and an ABORTED error will be + * returned. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the logical view to be deleted. + * Format: + * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The unique name of the logical view to be deleted. + * Format: + * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. The current etag of the logical view. + * If an etag is provided and does not match the current etag of the + * logical view, deletion will be blocked and an ABORTED error will be + * returned. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. The current etag of the logical view. + * If an etag is provided and does not match the current etag of the + * logical view, deletion will be blocked and an ABORTED error will be + * returned. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteMaterializedViewRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteMaterializedViewRequest.php new file mode 100644 index 000000000000..18c611d3dcbb --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteMaterializedViewRequest.php @@ -0,0 +1,137 @@ +google.bigtable.admin.v2.DeleteMaterializedViewRequest + */ +class DeleteMaterializedViewRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the materialized view to be deleted. + * Format: + * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. The current etag of the materialized view. + * If an etag is provided and does not match the current etag of the + * materialized view, deletion will be blocked and an ABORTED error will be + * returned. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + + /** + * @param string $name Required. The unique name of the materialized view to be deleted. + * Format: + * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. Please see + * {@see BigtableInstanceAdminClient::materializedViewName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\Admin\V2\DeleteMaterializedViewRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The unique name of the materialized view to be deleted. + * Format: + * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + * @type string $etag + * Optional. The current etag of the materialized view. + * If an etag is provided and does not match the current etag of the + * materialized view, deletion will be blocked and an ABORTED error will be + * returned. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the materialized view to be deleted. + * Format: + * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The unique name of the materialized view to be deleted. + * Format: + * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. The current etag of the materialized view. + * If an etag is provided and does not match the current etag of the + * materialized view, deletion will be blocked and an ABORTED error will be + * returned. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. The current etag of the materialized view. + * If an etag is provided and does not match the current etag of the + * materialized view, deletion will be blocked and an ABORTED error will be + * returned. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteSchemaBundleRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteSchemaBundleRequest.php new file mode 100644 index 000000000000..08ee99e2647f --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteSchemaBundleRequest.php @@ -0,0 +1,134 @@ +google.bigtable.admin.v2.DeleteSchemaBundleRequest + */ +class DeleteSchemaBundleRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the schema bundle to delete. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. The etag of the schema bundle. + * If this is provided, it must match the server's etag. The server + * returns an ABORTED error on a mismatched etag. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + + /** + * @param string $name Required. The unique name of the schema bundle to delete. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + * Please see {@see BigtableTableAdminClient::schemaBundleName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\Admin\V2\DeleteSchemaBundleRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The unique name of the schema bundle to delete. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + * @type string $etag + * Optional. The etag of the schema bundle. + * If this is provided, it must match the server's etag. The server + * returns an ABORTED error on a mismatched etag. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the schema bundle to delete. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The unique name of the schema bundle to delete. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. The etag of the schema bundle. + * If this is provided, it must match the server's etag. The server + * returns an ABORTED error on a mismatched etag. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. The etag of the schema bundle. + * If this is provided, it must match the server's etag. The server + * returns an ABORTED error on a mismatched etag. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteSnapshotRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteSnapshotRequest.php new file mode 100644 index 000000000000..570368330898 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteSnapshotRequest.php @@ -0,0 +1,96 @@ +google.bigtable.admin.v2.DeleteSnapshotRequest + */ +class DeleteSnapshotRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the snapshot to be deleted. + * Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The unique name of the snapshot to be deleted. + * Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. Please see + * {@see BigtableTableAdminClient::snapshotName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\Admin\V2\DeleteSnapshotRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The unique name of the snapshot to be deleted. + * Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the snapshot to be deleted. + * Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The unique name of the snapshot to be deleted. + * Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteTableRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteTableRequest.php new file mode 100644 index 000000000000..31bb5546fd8f --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteTableRequest.php @@ -0,0 +1,92 @@ +google.bigtable.admin.v2.DeleteTableRequest + */ +class DeleteTableRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the table to be deleted. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The unique name of the table to be deleted. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. Please see + * {@see BigtableTableAdminClient::tableName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\Admin\V2\DeleteTableRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The unique name of the table to be deleted. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the table to be deleted. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The unique name of the table to be deleted. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DropRowRangeRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DropRowRangeRequest.php new file mode 100644 index 000000000000..3671ae8b79c6 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DropRowRangeRequest.php @@ -0,0 +1,154 @@ +google.bigtable.admin.v2.DropRowRangeRequest + */ +class DropRowRangeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the table on which to drop a range of rows. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + protected $target; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The unique name of the table on which to drop a range of rows. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * @type string $row_key_prefix + * Delete all rows that start with this row key prefix. Prefix cannot be + * zero length. + * @type bool $delete_all_data_from_table + * Delete all rows in the table. Setting this to false is a no-op. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the table on which to drop a range of rows. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The unique name of the table on which to drop a range of rows. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Delete all rows that start with this row key prefix. Prefix cannot be + * zero length. + * + * Generated from protobuf field bytes row_key_prefix = 2; + * @return string + */ + public function getRowKeyPrefix() + { + return $this->readOneof(2); + } + + public function hasRowKeyPrefix() + { + return $this->hasOneof(2); + } + + /** + * Delete all rows that start with this row key prefix. Prefix cannot be + * zero length. + * + * Generated from protobuf field bytes row_key_prefix = 2; + * @param string $var + * @return $this + */ + public function setRowKeyPrefix($var) + { + GPBUtil::checkString($var, False); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Delete all rows in the table. Setting this to false is a no-op. + * + * Generated from protobuf field bool delete_all_data_from_table = 3; + * @return bool + */ + public function getDeleteAllDataFromTable() + { + return $this->readOneof(3); + } + + public function hasDeleteAllDataFromTable() + { + return $this->hasOneof(3); + } + + /** + * Delete all rows in the table. Setting this to false is a no-op. + * + * Generated from protobuf field bool delete_all_data_from_table = 3; + * @param bool $var + * @return $this + */ + public function setDeleteAllDataFromTable($var) + { + GPBUtil::checkBool($var); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getTarget() + { + return $this->whichOneof("target"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/EncryptionInfo.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/EncryptionInfo.php new file mode 100644 index 000000000000..418c19e2c0ef --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/EncryptionInfo.php @@ -0,0 +1,160 @@ +google.bigtable.admin.v2.EncryptionInfo + */ +class EncryptionInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The type of encryption used to protect this resource. + * + * Generated from protobuf field .google.bigtable.admin.v2.EncryptionInfo.EncryptionType encryption_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $encryption_type = 0; + /** + * Output only. The status of encrypt/decrypt calls on underlying data for + * this resource. Regardless of status, the existing data is always encrypted + * at rest. + * + * Generated from protobuf field .google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $encryption_status = null; + /** + * Output only. The version of the Cloud KMS key specified in the parent + * cluster that is in use for the data underlying this table. + * + * Generated from protobuf field string kms_key_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $kms_key_version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $encryption_type + * Output only. The type of encryption used to protect this resource. + * @type \Google\Rpc\Status $encryption_status + * Output only. The status of encrypt/decrypt calls on underlying data for + * this resource. Regardless of status, the existing data is always encrypted + * at rest. + * @type string $kms_key_version + * Output only. The version of the Cloud KMS key specified in the parent + * cluster that is in use for the data underlying this table. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The type of encryption used to protect this resource. + * + * Generated from protobuf field .google.bigtable.admin.v2.EncryptionInfo.EncryptionType encryption_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getEncryptionType() + { + return $this->encryption_type; + } + + /** + * Output only. The type of encryption used to protect this resource. + * + * Generated from protobuf field .google.bigtable.admin.v2.EncryptionInfo.EncryptionType encryption_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setEncryptionType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\EncryptionInfo\EncryptionType::class); + $this->encryption_type = $var; + + return $this; + } + + /** + * Output only. The status of encrypt/decrypt calls on underlying data for + * this resource. Regardless of status, the existing data is always encrypted + * at rest. + * + * Generated from protobuf field .google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Rpc\Status|null + */ + public function getEncryptionStatus() + { + return $this->encryption_status; + } + + public function hasEncryptionStatus() + { + return isset($this->encryption_status); + } + + public function clearEncryptionStatus() + { + unset($this->encryption_status); + } + + /** + * Output only. The status of encrypt/decrypt calls on underlying data for + * this resource. Regardless of status, the existing data is always encrypted + * at rest. + * + * Generated from protobuf field .google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Rpc\Status $var + * @return $this + */ + public function setEncryptionStatus($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Status::class); + $this->encryption_status = $var; + + return $this; + } + + /** + * Output only. The version of the Cloud KMS key specified in the parent + * cluster that is in use for the data underlying this table. + * + * Generated from protobuf field string kms_key_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getKmsKeyVersion() + { + return $this->kms_key_version; + } + + /** + * Output only. The version of the Cloud KMS key specified in the parent + * cluster that is in use for the data underlying this table. + * + * Generated from protobuf field string kms_key_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setKmsKeyVersion($var) + { + GPBUtil::checkString($var, True); + $this->kms_key_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/EncryptionInfo/EncryptionType.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/EncryptionInfo/EncryptionType.php new file mode 100644 index 000000000000..8a6ea595fdf2 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/EncryptionInfo/EncryptionType.php @@ -0,0 +1,69 @@ +google.bigtable.admin.v2.EncryptionInfo.EncryptionType + */ +class EncryptionType +{ + /** + * Encryption type was not specified, though data at rest remains encrypted. + * + * Generated from protobuf enum ENCRYPTION_TYPE_UNSPECIFIED = 0; + */ + const ENCRYPTION_TYPE_UNSPECIFIED = 0; + /** + * The data backing this resource is encrypted at rest with a key that is + * fully managed by Google. No key version or status will be populated. + * This is the default state. + * + * Generated from protobuf enum GOOGLE_DEFAULT_ENCRYPTION = 1; + */ + const GOOGLE_DEFAULT_ENCRYPTION = 1; + /** + * The data backing this resource is encrypted at rest with a key that is + * managed by the customer. + * The in-use version of the key and its status are populated for + * CMEK-protected tables. + * CMEK-protected backups are pinned to the key version that was in use at + * the time the backup was taken. This key version is populated but its + * status is not tracked and is reported as `UNKNOWN`. + * + * Generated from protobuf enum CUSTOMER_MANAGED_ENCRYPTION = 2; + */ + const CUSTOMER_MANAGED_ENCRYPTION = 2; + + private static $valueToName = [ + self::ENCRYPTION_TYPE_UNSPECIFIED => 'ENCRYPTION_TYPE_UNSPECIFIED', + self::GOOGLE_DEFAULT_ENCRYPTION => 'GOOGLE_DEFAULT_ENCRYPTION', + self::CUSTOMER_MANAGED_ENCRYPTION => 'CUSTOMER_MANAGED_ENCRYPTION', + ]; + + 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/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GcRule.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GcRule.php new file mode 100644 index 000000000000..3158524db68b --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GcRule.php @@ -0,0 +1,180 @@ +google.bigtable.admin.v2.GcRule + */ +class GcRule extends \Google\Protobuf\Internal\Message +{ + protected $rule; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $max_num_versions + * Delete all cells in a column except the most recent N. + * @type \Google\Protobuf\Duration $max_age + * Delete cells in a column older than the given age. + * Values must be at least one millisecond, and will be truncated to + * microsecond granularity. + * @type \Google\Cloud\Bigtable\Admin\V2\GcRule\Intersection $intersection + * Delete cells that would be deleted by every nested rule. + * @type \Google\Cloud\Bigtable\Admin\V2\GcRule\Union $union + * Delete cells that would be deleted by any nested rule. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); + parent::__construct($data); + } + + /** + * Delete all cells in a column except the most recent N. + * + * Generated from protobuf field int32 max_num_versions = 1; + * @return int + */ + public function getMaxNumVersions() + { + return $this->readOneof(1); + } + + public function hasMaxNumVersions() + { + return $this->hasOneof(1); + } + + /** + * Delete all cells in a column except the most recent N. + * + * Generated from protobuf field int32 max_num_versions = 1; + * @param int $var + * @return $this + */ + public function setMaxNumVersions($var) + { + GPBUtil::checkInt32($var); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Delete cells in a column older than the given age. + * Values must be at least one millisecond, and will be truncated to + * microsecond granularity. + * + * Generated from protobuf field .google.protobuf.Duration max_age = 2; + * @return \Google\Protobuf\Duration|null + */ + public function getMaxAge() + { + return $this->readOneof(2); + } + + public function hasMaxAge() + { + return $this->hasOneof(2); + } + + /** + * Delete cells in a column older than the given age. + * Values must be at least one millisecond, and will be truncated to + * microsecond granularity. + * + * Generated from protobuf field .google.protobuf.Duration max_age = 2; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setMaxAge($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Delete cells that would be deleted by every nested rule. + * + * Generated from protobuf field .google.bigtable.admin.v2.GcRule.Intersection intersection = 3; + * @return \Google\Cloud\Bigtable\Admin\V2\GcRule\Intersection|null + */ + public function getIntersection() + { + return $this->readOneof(3); + } + + public function hasIntersection() + { + return $this->hasOneof(3); + } + + /** + * Delete cells that would be deleted by every nested rule. + * + * Generated from protobuf field .google.bigtable.admin.v2.GcRule.Intersection intersection = 3; + * @param \Google\Cloud\Bigtable\Admin\V2\GcRule\Intersection $var + * @return $this + */ + public function setIntersection($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\GcRule\Intersection::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Delete cells that would be deleted by any nested rule. + * + * Generated from protobuf field .google.bigtable.admin.v2.GcRule.Union union = 4; + * @return \Google\Cloud\Bigtable\Admin\V2\GcRule\Union|null + */ + public function getUnion() + { + return $this->readOneof(4); + } + + public function hasUnion() + { + return $this->hasOneof(4); + } + + /** + * Delete cells that would be deleted by any nested rule. + * + * Generated from protobuf field .google.bigtable.admin.v2.GcRule.Union union = 4; + * @param \Google\Cloud\Bigtable\Admin\V2\GcRule\Union $var + * @return $this + */ + public function setUnion($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\GcRule\Union::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * @return string + */ + public function getRule() + { + return $this->whichOneof("rule"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GcRule/Intersection.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GcRule/Intersection.php new file mode 100644 index 000000000000..9b5476e44bc8 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GcRule/Intersection.php @@ -0,0 +1,67 @@ +google.bigtable.admin.v2.GcRule.Intersection + */ +class Intersection extends \Google\Protobuf\Internal\Message +{ + /** + * Only delete cells which would be deleted by every element of `rules`. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.GcRule rules = 1; + */ + private $rules; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\GcRule[] $rules + * Only delete cells which would be deleted by every element of `rules`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); + parent::__construct($data); + } + + /** + * Only delete cells which would be deleted by every element of `rules`. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.GcRule rules = 1; + * @return RepeatedField<\Google\Cloud\Bigtable\Admin\V2\GcRule> + */ + public function getRules() + { + return $this->rules; + } + + /** + * Only delete cells which would be deleted by every element of `rules`. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.GcRule rules = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\GcRule[] $var + * @return $this + */ + public function setRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\GcRule::class); + $this->rules = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GcRule/Union.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GcRule/Union.php new file mode 100644 index 000000000000..737923812851 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GcRule/Union.php @@ -0,0 +1,67 @@ +google.bigtable.admin.v2.GcRule.Union + */ +class Union extends \Google\Protobuf\Internal\Message +{ + /** + * Delete cells which would be deleted by any element of `rules`. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.GcRule rules = 1; + */ + private $rules; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\GcRule[] $rules + * Delete cells which would be deleted by any element of `rules`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); + parent::__construct($data); + } + + /** + * Delete cells which would be deleted by any element of `rules`. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.GcRule rules = 1; + * @return RepeatedField<\Google\Cloud\Bigtable\Admin\V2\GcRule> + */ + public function getRules() + { + return $this->rules; + } + + /** + * Delete cells which would be deleted by any element of `rules`. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.GcRule rules = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\GcRule[] $var + * @return $this + */ + public function setRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\GcRule::class); + $this->rules = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GenerateConsistencyTokenRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GenerateConsistencyTokenRequest.php new file mode 100644 index 000000000000..d228f07dea14 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GenerateConsistencyTokenRequest.php @@ -0,0 +1,92 @@ +google.bigtable.admin.v2.GenerateConsistencyTokenRequest + */ +class GenerateConsistencyTokenRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the Table for which to create a consistency + * token. Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The unique name of the Table for which to create a consistency + * token. Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. Please see + * {@see BigtableTableAdminClient::tableName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\Admin\V2\GenerateConsistencyTokenRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The unique name of the Table for which to create a consistency + * token. Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the Table for which to create a consistency + * token. Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The unique name of the Table for which to create a consistency + * token. Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GenerateConsistencyTokenResponse.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GenerateConsistencyTokenResponse.php new file mode 100644 index 000000000000..770033e3fb6a --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GenerateConsistencyTokenResponse.php @@ -0,0 +1,68 @@ +google.bigtable.admin.v2.GenerateConsistencyTokenResponse + */ +class GenerateConsistencyTokenResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The generated consistency token. + * + * Generated from protobuf field string consistency_token = 1; + */ + protected $consistency_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $consistency_token + * The generated consistency token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The generated consistency token. + * + * Generated from protobuf field string consistency_token = 1; + * @return string + */ + public function getConsistencyToken() + { + return $this->consistency_token; + } + + /** + * The generated consistency token. + * + * Generated from protobuf field string consistency_token = 1; + * @param string $var + * @return $this + */ + public function setConsistencyToken($var) + { + GPBUtil::checkString($var, True); + $this->consistency_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetAppProfileRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetAppProfileRequest.php new file mode 100644 index 000000000000..3cf6bf079212 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetAppProfileRequest.php @@ -0,0 +1,86 @@ +google.bigtable.admin.v2.GetAppProfileRequest + */ +class GetAppProfileRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the requested app profile. Values are of the + * form `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The unique name of the requested app profile. Values are of the + * form `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. Please see + * {@see BigtableInstanceAdminClient::appProfileName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\Admin\V2\GetAppProfileRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The unique name of the requested app profile. Values are of the + * form `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the requested app profile. Values are of the + * form `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The unique name of the requested app profile. Values are of the + * form `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetAuthorizedViewRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetAuthorizedViewRequest.php new file mode 100644 index 000000000000..4f9ebb278f01 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetAuthorizedViewRequest.php @@ -0,0 +1,130 @@ +google.bigtable.admin.v2.GetAuthorizedViewRequest + */ +class GetAuthorizedViewRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the requested AuthorizedView. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. The resource_view to be applied to the returned AuthorizedView's + * fields. Default to BASIC. + * + * Generated from protobuf field .google.bigtable.admin.v2.AuthorizedView.ResponseView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $view = 0; + + /** + * @param string $name Required. The unique name of the requested AuthorizedView. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. Please see + * {@see BigtableTableAdminClient::authorizedViewName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\Admin\V2\GetAuthorizedViewRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The unique name of the requested AuthorizedView. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + * @type int $view + * Optional. The resource_view to be applied to the returned AuthorizedView's + * fields. Default to BASIC. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the requested AuthorizedView. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The unique name of the requested AuthorizedView. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. The resource_view to be applied to the returned AuthorizedView's + * fields. Default to BASIC. + * + * Generated from protobuf field .google.bigtable.admin.v2.AuthorizedView.ResponseView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getView() + { + return $this->view; + } + + /** + * Optional. The resource_view to be applied to the returned AuthorizedView's + * fields. Default to BASIC. + * + * Generated from protobuf field .google.bigtable.admin.v2.AuthorizedView.ResponseView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\AuthorizedView\ResponseView::class); + $this->view = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetBackupRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetBackupRequest.php new file mode 100644 index 000000000000..55594fbcbd8d --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetBackupRequest.php @@ -0,0 +1,92 @@ +google.bigtable.admin.v2.GetBackupRequest + */ +class GetBackupRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the backup. + * Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Name of the backup. + * Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. Please see + * {@see BigtableTableAdminClient::backupName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\Admin\V2\GetBackupRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Name of the backup. + * Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the backup. + * Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Name of the backup. + * Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetClusterRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetClusterRequest.php new file mode 100644 index 000000000000..5fcb4c52f7a2 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetClusterRequest.php @@ -0,0 +1,86 @@ +google.bigtable.admin.v2.GetClusterRequest + */ +class GetClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the requested cluster. Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The unique name of the requested cluster. Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}`. Please see + * {@see BigtableInstanceAdminClient::clusterName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\Admin\V2\GetClusterRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The unique name of the requested cluster. Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the requested cluster. Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The unique name of the requested cluster. Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetInstanceRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetInstanceRequest.php new file mode 100644 index 000000000000..03a2189b6abb --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetInstanceRequest.php @@ -0,0 +1,86 @@ +google.bigtable.admin.v2.GetInstanceRequest + */ +class GetInstanceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the requested instance. Values are of the form + * `projects/{project}/instances/{instance}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The unique name of the requested instance. Values are of the form + * `projects/{project}/instances/{instance}`. Please see + * {@see BigtableInstanceAdminClient::instanceName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\Admin\V2\GetInstanceRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The unique name of the requested instance. Values are of the form + * `projects/{project}/instances/{instance}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the requested instance. Values are of the form + * `projects/{project}/instances/{instance}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The unique name of the requested instance. Values are of the form + * `projects/{project}/instances/{instance}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetLogicalViewRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetLogicalViewRequest.php new file mode 100644 index 000000000000..0a301028ac35 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetLogicalViewRequest.php @@ -0,0 +1,86 @@ +google.bigtable.admin.v2.GetLogicalViewRequest + */ +class GetLogicalViewRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the requested logical view. Values are of the + * form `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The unique name of the requested logical view. Values are of the + * form `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. Please see + * {@see BigtableInstanceAdminClient::logicalViewName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\Admin\V2\GetLogicalViewRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The unique name of the requested logical view. Values are of the + * form `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the requested logical view. Values are of the + * form `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The unique name of the requested logical view. Values are of the + * form `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetMaterializedViewRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetMaterializedViewRequest.php new file mode 100644 index 000000000000..068bd86b7207 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetMaterializedViewRequest.php @@ -0,0 +1,91 @@ +google.bigtable.admin.v2.GetMaterializedViewRequest + */ +class GetMaterializedViewRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the requested materialized view. Values are of + * the form + * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The unique name of the requested materialized view. Values are of + * the form + * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. Please see + * {@see BigtableInstanceAdminClient::materializedViewName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\Admin\V2\GetMaterializedViewRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The unique name of the requested materialized view. Values are of + * the form + * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the requested materialized view. Values are of + * the form + * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The unique name of the requested materialized view. Values are of + * the form + * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetSchemaBundleRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetSchemaBundleRequest.php new file mode 100644 index 000000000000..4552a19e304b --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetSchemaBundleRequest.php @@ -0,0 +1,92 @@ +google.bigtable.admin.v2.GetSchemaBundleRequest + */ +class GetSchemaBundleRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the schema bundle to retrieve. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The unique name of the schema bundle to retrieve. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + * Please see {@see BigtableTableAdminClient::schemaBundleName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\Admin\V2\GetSchemaBundleRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The unique name of the schema bundle to retrieve. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the schema bundle to retrieve. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The unique name of the schema bundle to retrieve. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetSnapshotRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetSnapshotRequest.php new file mode 100644 index 000000000000..f6b7e6309cbf --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetSnapshotRequest.php @@ -0,0 +1,96 @@ +google.bigtable.admin.v2.GetSnapshotRequest + */ +class GetSnapshotRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the requested snapshot. + * Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The unique name of the requested snapshot. + * Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. Please see + * {@see BigtableTableAdminClient::snapshotName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\Admin\V2\GetSnapshotRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The unique name of the requested snapshot. + * Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the requested snapshot. + * Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The unique name of the requested snapshot. + * Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetTableRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetTableRequest.php new file mode 100644 index 000000000000..f462d8b10c8f --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetTableRequest.php @@ -0,0 +1,130 @@ +google.bigtable.admin.v2.GetTableRequest + */ +class GetTableRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the requested table. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * The view to be applied to the returned table's fields. + * Defaults to `SCHEMA_VIEW` if unspecified. + * + * Generated from protobuf field .google.bigtable.admin.v2.Table.View view = 2; + */ + protected $view = 0; + + /** + * @param string $name Required. The unique name of the requested table. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. Please see + * {@see BigtableTableAdminClient::tableName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\Admin\V2\GetTableRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The unique name of the requested table. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * @type int $view + * The view to be applied to the returned table's fields. + * Defaults to `SCHEMA_VIEW` if unspecified. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the requested table. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The unique name of the requested table. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The view to be applied to the returned table's fields. + * Defaults to `SCHEMA_VIEW` if unspecified. + * + * Generated from protobuf field .google.bigtable.admin.v2.Table.View view = 2; + * @return int + */ + public function getView() + { + return $this->view; + } + + /** + * The view to be applied to the returned table's fields. + * Defaults to `SCHEMA_VIEW` if unspecified. + * + * Generated from protobuf field .google.bigtable.admin.v2.Table.View view = 2; + * @param int $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\Table\View::class); + $this->view = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/HotTablet.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/HotTablet.php new file mode 100644 index 000000000000..6d8f6493e7ac --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/HotTablet.php @@ -0,0 +1,315 @@ +google.bigtable.admin.v2.HotTablet + */ +class HotTablet extends \Google\Protobuf\Internal\Message +{ + /** + * The unique name of the hot tablet. Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/[a-zA-Z0-9_-]*`. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Name of the table that contains the tablet. Values are of the form + * `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. + * + * Generated from protobuf field string table_name = 2 [(.google.api.resource_reference) = { + */ + protected $table_name = ''; + /** + * Output only. The start time of the hot tablet. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $start_time = null; + /** + * Output only. The end time of the hot tablet. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $end_time = null; + /** + * Tablet Start Key (inclusive). + * + * Generated from protobuf field string start_key = 5; + */ + protected $start_key = ''; + /** + * Tablet End Key (inclusive). + * + * Generated from protobuf field string end_key = 6; + */ + protected $end_key = ''; + /** + * Output only. The average CPU usage spent by a node on this tablet over the + * start_time to end_time time range. The percentage is the amount of CPU used + * by the node to serve the tablet, from 0% (tablet was not interacted with) + * to 100% (the node spent all cycles serving the hot tablet). + * + * Generated from protobuf field float node_cpu_usage_percent = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $node_cpu_usage_percent = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The unique name of the hot tablet. Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/[a-zA-Z0-9_-]*`. + * @type string $table_name + * Name of the table that contains the tablet. Values are of the form + * `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. + * @type \Google\Protobuf\Timestamp $start_time + * Output only. The start time of the hot tablet. + * @type \Google\Protobuf\Timestamp $end_time + * Output only. The end time of the hot tablet. + * @type string $start_key + * Tablet Start Key (inclusive). + * @type string $end_key + * Tablet End Key (inclusive). + * @type float $node_cpu_usage_percent + * Output only. The average CPU usage spent by a node on this tablet over the + * start_time to end_time time range. The percentage is the amount of CPU used + * by the node to serve the tablet, from 0% (tablet was not interacted with) + * to 100% (the node spent all cycles serving the hot tablet). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Instance::initOnce(); + parent::__construct($data); + } + + /** + * The unique name of the hot tablet. Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/[a-zA-Z0-9_-]*`. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The unique name of the hot tablet. Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/[a-zA-Z0-9_-]*`. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Name of the table that contains the tablet. Values are of the form + * `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. + * + * Generated from protobuf field string table_name = 2 [(.google.api.resource_reference) = { + * @return string + */ + public function getTableName() + { + return $this->table_name; + } + + /** + * Name of the table that contains the tablet. Values are of the form + * `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. + * + * Generated from protobuf field string table_name = 2 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setTableName($var) + { + GPBUtil::checkString($var, True); + $this->table_name = $var; + + return $this; + } + + /** + * Output only. The start time of the hot tablet. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @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); + } + + /** + * Output only. The start time of the hot tablet. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * Output only. The end time of the hot tablet. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @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); + } + + /** + * Output only. The end time of the hot tablet. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + + /** + * Tablet Start Key (inclusive). + * + * Generated from protobuf field string start_key = 5; + * @return string + */ + public function getStartKey() + { + return $this->start_key; + } + + /** + * Tablet Start Key (inclusive). + * + * Generated from protobuf field string start_key = 5; + * @param string $var + * @return $this + */ + public function setStartKey($var) + { + GPBUtil::checkString($var, True); + $this->start_key = $var; + + return $this; + } + + /** + * Tablet End Key (inclusive). + * + * Generated from protobuf field string end_key = 6; + * @return string + */ + public function getEndKey() + { + return $this->end_key; + } + + /** + * Tablet End Key (inclusive). + * + * Generated from protobuf field string end_key = 6; + * @param string $var + * @return $this + */ + public function setEndKey($var) + { + GPBUtil::checkString($var, True); + $this->end_key = $var; + + return $this; + } + + /** + * Output only. The average CPU usage spent by a node on this tablet over the + * start_time to end_time time range. The percentage is the amount of CPU used + * by the node to serve the tablet, from 0% (tablet was not interacted with) + * to 100% (the node spent all cycles serving the hot tablet). + * + * Generated from protobuf field float node_cpu_usage_percent = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getNodeCpuUsagePercent() + { + return $this->node_cpu_usage_percent; + } + + /** + * Output only. The average CPU usage spent by a node on this tablet over the + * start_time to end_time time range. The percentage is the amount of CPU used + * by the node to serve the tablet, from 0% (tablet was not interacted with) + * to 100% (the node spent all cycles serving the hot tablet). + * + * Generated from protobuf field float node_cpu_usage_percent = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setNodeCpuUsagePercent($var) + { + GPBUtil::checkFloat($var); + $this->node_cpu_usage_percent = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Instance.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Instance.php new file mode 100644 index 000000000000..3dce09935b67 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Instance.php @@ -0,0 +1,456 @@ +google.bigtable.admin.v2.Instance + */ +class Instance extends \Google\Protobuf\Internal\Message +{ + /** + * The unique name of the instance. Values are of the form + * `projects/{project}/instances/[a-z][a-z0-9\\-]+[a-z0-9]`. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Required. The descriptive name for this instance as it appears in UIs. + * Can be changed at any time, but should be kept globally unique + * to avoid confusion. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Output only. The current state of the instance. + * + * Generated from protobuf field .google.bigtable.admin.v2.Instance.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * The type of the instance. Defaults to `PRODUCTION`. + * + * Generated from protobuf field .google.bigtable.admin.v2.Instance.Type type = 4; + */ + protected $type = 0; + /** + * Labels are a flexible and lightweight mechanism for organizing cloud + * resources into groups that reflect a customer's organizational needs and + * deployment strategies. They can be used to filter resources and aggregate + * metrics. + * * Label keys must be between 1 and 63 characters long and must conform to + * the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`. + * * Label values must be between 0 and 63 characters long and must conform to + * the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`. + * * No more than 64 labels can be associated with a given resource. + * * Keys and values must both be under 128 bytes. + * + * Generated from protobuf field map labels = 5; + */ + private $labels; + /** + * Output only. A commit timestamp representing when this Instance was + * created. For instances created before this field was added (August 2021), + * this value is `seconds: 0, nanos: 1`. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Reserved for future use. + * + * Generated from protobuf field optional bool satisfies_pzs = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $satisfies_pzs = null; + /** + * Output only. Reserved for future use. + * + * Generated from protobuf field optional bool satisfies_pzi = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $satisfies_pzi = null; + /** + * Optional. Input only. Immutable. Tag keys/values directly bound to this + * resource. For example: + * - "123/environment": "production", + * - "123/costCenter": "marketing" + * Tags and Labels (above) are both used to bind metadata to resources, with + * different use-cases. See + * https://cloud.google.com/resource-manager/docs/tags/tags-overview for an + * in-depth overview on the difference between tags and labels. + * + * Generated from protobuf field map tags = 12 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + */ + private $tags; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The unique name of the instance. Values are of the form + * `projects/{project}/instances/[a-z][a-z0-9\\-]+[a-z0-9]`. + * @type string $display_name + * Required. The descriptive name for this instance as it appears in UIs. + * Can be changed at any time, but should be kept globally unique + * to avoid confusion. + * @type int $state + * Output only. The current state of the instance. + * @type int $type + * The type of the instance. Defaults to `PRODUCTION`. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Labels are a flexible and lightweight mechanism for organizing cloud + * resources into groups that reflect a customer's organizational needs and + * deployment strategies. They can be used to filter resources and aggregate + * metrics. + * * Label keys must be between 1 and 63 characters long and must conform to + * the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`. + * * Label values must be between 0 and 63 characters long and must conform to + * the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`. + * * No more than 64 labels can be associated with a given resource. + * * Keys and values must both be under 128 bytes. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. A commit timestamp representing when this Instance was + * created. For instances created before this field was added (August 2021), + * this value is `seconds: 0, nanos: 1`. + * @type bool $satisfies_pzs + * Output only. Reserved for future use. + * @type bool $satisfies_pzi + * Output only. Reserved for future use. + * @type array|\Google\Protobuf\Internal\MapField $tags + * Optional. Input only. Immutable. Tag keys/values directly bound to this + * resource. For example: + * - "123/environment": "production", + * - "123/costCenter": "marketing" + * Tags and Labels (above) are both used to bind metadata to resources, with + * different use-cases. See + * https://cloud.google.com/resource-manager/docs/tags/tags-overview for an + * in-depth overview on the difference between tags and labels. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Instance::initOnce(); + parent::__construct($data); + } + + /** + * The unique name of the instance. Values are of the form + * `projects/{project}/instances/[a-z][a-z0-9\\-]+[a-z0-9]`. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The unique name of the instance. Values are of the form + * `projects/{project}/instances/[a-z][a-z0-9\\-]+[a-z0-9]`. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The descriptive name for this instance as it appears in UIs. + * Can be changed at any time, but should be kept globally unique + * to avoid confusion. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. The descriptive name for this instance as it appears in UIs. + * Can be changed at any time, but should be kept globally unique + * to avoid confusion. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. The current state of the instance. + * + * Generated from protobuf field .google.bigtable.admin.v2.Instance.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. The current state of the instance. + * + * Generated from protobuf field .google.bigtable.admin.v2.Instance.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\Instance\State::class); + $this->state = $var; + + return $this; + } + + /** + * The type of the instance. Defaults to `PRODUCTION`. + * + * Generated from protobuf field .google.bigtable.admin.v2.Instance.Type type = 4; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * The type of the instance. Defaults to `PRODUCTION`. + * + * Generated from protobuf field .google.bigtable.admin.v2.Instance.Type type = 4; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\Instance\Type::class); + $this->type = $var; + + return $this; + } + + /** + * Labels are a flexible and lightweight mechanism for organizing cloud + * resources into groups that reflect a customer's organizational needs and + * deployment strategies. They can be used to filter resources and aggregate + * metrics. + * * Label keys must be between 1 and 63 characters long and must conform to + * the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`. + * * Label values must be between 0 and 63 characters long and must conform to + * the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`. + * * No more than 64 labels can be associated with a given resource. + * * Keys and values must both be under 128 bytes. + * + * Generated from protobuf field map labels = 5; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Labels are a flexible and lightweight mechanism for organizing cloud + * resources into groups that reflect a customer's organizational needs and + * deployment strategies. They can be used to filter resources and aggregate + * metrics. + * * Label keys must be between 1 and 63 characters long and must conform to + * the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`. + * * Label values must be between 0 and 63 characters long and must conform to + * the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`. + * * No more than 64 labels can be associated with a given resource. + * * Keys and values must both be under 128 bytes. + * + * Generated from protobuf field map labels = 5; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Output only. A commit timestamp representing when this Instance was + * created. For instances created before this field was added (August 2021), + * this value is `seconds: 0, nanos: 1`. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. A commit timestamp representing when this Instance was + * created. For instances created before this field was added (August 2021), + * this value is `seconds: 0, nanos: 1`. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Reserved for future use. + * + * Generated from protobuf field optional bool satisfies_pzs = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getSatisfiesPzs() + { + return isset($this->satisfies_pzs) ? $this->satisfies_pzs : false; + } + + public function hasSatisfiesPzs() + { + return isset($this->satisfies_pzs); + } + + public function clearSatisfiesPzs() + { + unset($this->satisfies_pzs); + } + + /** + * Output only. Reserved for future use. + * + * Generated from protobuf field optional bool satisfies_pzs = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setSatisfiesPzs($var) + { + GPBUtil::checkBool($var); + $this->satisfies_pzs = $var; + + return $this; + } + + /** + * Output only. Reserved for future use. + * + * Generated from protobuf field optional bool satisfies_pzi = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getSatisfiesPzi() + { + return isset($this->satisfies_pzi) ? $this->satisfies_pzi : false; + } + + public function hasSatisfiesPzi() + { + return isset($this->satisfies_pzi); + } + + public function clearSatisfiesPzi() + { + unset($this->satisfies_pzi); + } + + /** + * Output only. Reserved for future use. + * + * Generated from protobuf field optional bool satisfies_pzi = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setSatisfiesPzi($var) + { + GPBUtil::checkBool($var); + $this->satisfies_pzi = $var; + + return $this; + } + + /** + * Optional. Input only. Immutable. Tag keys/values directly bound to this + * resource. For example: + * - "123/environment": "production", + * - "123/costCenter": "marketing" + * Tags and Labels (above) are both used to bind metadata to resources, with + * different use-cases. See + * https://cloud.google.com/resource-manager/docs/tags/tags-overview for an + * in-depth overview on the difference between tags and labels. + * + * Generated from protobuf field map tags = 12 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getTags() + { + return $this->tags; + } + + /** + * Optional. Input only. Immutable. Tag keys/values directly bound to this + * resource. For example: + * - "123/environment": "production", + * - "123/costCenter": "marketing" + * Tags and Labels (above) are both used to bind metadata to resources, with + * different use-cases. See + * https://cloud.google.com/resource-manager/docs/tags/tags-overview for an + * in-depth overview on the difference between tags and labels. + * + * Generated from protobuf field map tags = 12 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setTags($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->tags = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Instance/State.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Instance/State.php new file mode 100644 index 000000000000..15676479aa98 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Instance/State.php @@ -0,0 +1,63 @@ +google.bigtable.admin.v2.Instance.State + */ +class State +{ + /** + * The state of the instance could not be determined. + * + * Generated from protobuf enum STATE_NOT_KNOWN = 0; + */ + const STATE_NOT_KNOWN = 0; + /** + * The instance has been successfully created and can serve requests + * to its tables. + * + * Generated from protobuf enum READY = 1; + */ + const READY = 1; + /** + * The instance is currently being created, and may be destroyed + * if the creation process encounters an error. + * + * Generated from protobuf enum CREATING = 2; + */ + const CREATING = 2; + + private static $valueToName = [ + self::STATE_NOT_KNOWN => 'STATE_NOT_KNOWN', + self::READY => 'READY', + self::CREATING => 'CREATING', + ]; + + 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/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Instance/Type.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Instance/Type.php new file mode 100644 index 000000000000..95f13f349b5e --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Instance/Type.php @@ -0,0 +1,65 @@ +google.bigtable.admin.v2.Instance.Type + */ +class Type +{ + /** + * The type of the instance is unspecified. If set when creating an + * instance, a `PRODUCTION` instance will be created. If set when updating + * an instance, the type will be left unchanged. + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * An instance meant for production use. `serve_nodes` must be set + * on the cluster. + * + * Generated from protobuf enum PRODUCTION = 1; + */ + const PRODUCTION = 1; + /** + * DEPRECATED: Prefer PRODUCTION for all use cases, as it no longer enforces + * a higher minimum node count than DEVELOPMENT. + * + * Generated from protobuf enum DEVELOPMENT = 2; + */ + const DEVELOPMENT = 2; + + private static $valueToName = [ + self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', + self::PRODUCTION => 'PRODUCTION', + self::DEVELOPMENT => 'DEVELOPMENT', + ]; + + 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/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListAppProfilesRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListAppProfilesRequest.php new file mode 100644 index 000000000000..16285157945e --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListAppProfilesRequest.php @@ -0,0 +1,193 @@ +google.bigtable.admin.v2.ListAppProfilesRequest + */ +class ListAppProfilesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the instance for which a list of app profiles + * is requested. Values are of the form + * `projects/{project}/instances/{instance}`. + * Use `{instance} = '-'` to list AppProfiles for all Instances in a project, + * e.g., `projects/myproject/instances/-`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Maximum number of results per page. + * A page_size of zero lets the server choose the number of items to return. + * A page_size which is strictly positive will return at most that many items. + * A negative page_size will cause an error. + * Following the first request, subsequent paginated calls are not required + * to pass a page_size. If a page_size is set in subsequent calls, it must + * match the page_size given in the first request. + * + * Generated from protobuf field int32 page_size = 3; + */ + protected $page_size = 0; + /** + * The value of `next_page_token` returned by a previous call. + * + * Generated from protobuf field string page_token = 2; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. The unique name of the instance for which a list of app profiles + * is requested. Values are of the form + * `projects/{project}/instances/{instance}`. + * Use `{instance} = '-'` to list AppProfiles for all Instances in a project, + * e.g., `projects/myproject/instances/-`. Please see + * {@see BigtableInstanceAdminClient::instanceName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\Admin\V2\ListAppProfilesRequest + * + * @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. The unique name of the instance for which a list of app profiles + * is requested. Values are of the form + * `projects/{project}/instances/{instance}`. + * Use `{instance} = '-'` to list AppProfiles for all Instances in a project, + * e.g., `projects/myproject/instances/-`. + * @type int $page_size + * Maximum number of results per page. + * A page_size of zero lets the server choose the number of items to return. + * A page_size which is strictly positive will return at most that many items. + * A negative page_size will cause an error. + * Following the first request, subsequent paginated calls are not required + * to pass a page_size. If a page_size is set in subsequent calls, it must + * match the page_size given in the first request. + * @type string $page_token + * The value of `next_page_token` returned by a previous call. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the instance for which a list of app profiles + * is requested. Values are of the form + * `projects/{project}/instances/{instance}`. + * Use `{instance} = '-'` to list AppProfiles for all Instances in a project, + * e.g., `projects/myproject/instances/-`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The unique name of the instance for which a list of app profiles + * is requested. Values are of the form + * `projects/{project}/instances/{instance}`. + * Use `{instance} = '-'` to list AppProfiles for all Instances in a project, + * e.g., `projects/myproject/instances/-`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Maximum number of results per page. + * A page_size of zero lets the server choose the number of items to return. + * A page_size which is strictly positive will return at most that many items. + * A negative page_size will cause an error. + * Following the first request, subsequent paginated calls are not required + * to pass a page_size. If a page_size is set in subsequent calls, it must + * match the page_size given in the first request. + * + * Generated from protobuf field int32 page_size = 3; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Maximum number of results per page. + * A page_size of zero lets the server choose the number of items to return. + * A page_size which is strictly positive will return at most that many items. + * A negative page_size will cause an error. + * Following the first request, subsequent paginated calls are not required + * to pass a page_size. If a page_size is set in subsequent calls, it must + * match the page_size given in the first request. + * + * Generated from protobuf field int32 page_size = 3; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * The value of `next_page_token` returned by a previous call. + * + * Generated from protobuf field string page_token = 2; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * The value of `next_page_token` returned by a previous call. + * + * Generated from protobuf field string page_token = 2; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListAppProfilesResponse.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListAppProfilesResponse.php new file mode 100644 index 000000000000..d015c975a483 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListAppProfilesResponse.php @@ -0,0 +1,155 @@ +google.bigtable.admin.v2.ListAppProfilesResponse + */ +class ListAppProfilesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of requested app profiles. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.AppProfile app_profiles = 1; + */ + private $app_profiles; + /** + * Set if not all app profiles could be returned in a single response. + * Pass this value to `page_token` in another request to get the next + * page of results. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations from which AppProfile information could not be retrieved, + * due to an outage or some other transient condition. + * AppProfiles from these locations may be missing from `app_profiles`. + * Values are of the form `projects//locations/` + * + * Generated from protobuf field repeated string failed_locations = 3; + */ + private $failed_locations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\AppProfile[] $app_profiles + * The list of requested app profiles. + * @type string $next_page_token + * Set if not all app profiles could be returned in a single response. + * Pass this value to `page_token` in another request to get the next + * page of results. + * @type string[] $failed_locations + * Locations from which AppProfile information could not be retrieved, + * due to an outage or some other transient condition. + * AppProfiles from these locations may be missing from `app_profiles`. + * Values are of the form `projects//locations/` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The list of requested app profiles. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.AppProfile app_profiles = 1; + * @return RepeatedField<\Google\Cloud\Bigtable\Admin\V2\AppProfile> + */ + public function getAppProfiles() + { + return $this->app_profiles; + } + + /** + * The list of requested app profiles. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.AppProfile app_profiles = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\AppProfile[] $var + * @return $this + */ + public function setAppProfiles($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\AppProfile::class); + $this->app_profiles = $arr; + + return $this; + } + + /** + * Set if not all app profiles could be returned in a single response. + * Pass this value to `page_token` in another request to get the next + * page of results. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Set if not all app profiles could be returned in a single response. + * Pass this value to `page_token` in another request to get the next + * page of results. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations from which AppProfile information could not be retrieved, + * due to an outage or some other transient condition. + * AppProfiles from these locations may be missing from `app_profiles`. + * Values are of the form `projects//locations/` + * + * Generated from protobuf field repeated string failed_locations = 3; + * @return RepeatedField + */ + public function getFailedLocations() + { + return $this->failed_locations; + } + + /** + * Locations from which AppProfile information could not be retrieved, + * due to an outage or some other transient condition. + * AppProfiles from these locations may be missing from `app_profiles`. + * Values are of the form `projects//locations/` + * + * Generated from protobuf field repeated string failed_locations = 3; + * @param string[] $var + * @return $this + */ + public function setFailedLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->failed_locations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListAuthorizedViewsRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListAuthorizedViewsRequest.php new file mode 100644 index 000000000000..bfdd8117a160 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListAuthorizedViewsRequest.php @@ -0,0 +1,222 @@ +google.bigtable.admin.v2.ListAuthorizedViewsRequest + */ +class ListAuthorizedViewsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the table for which AuthorizedViews should be + * listed. Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Maximum number of results per page. + * A page_size of zero lets the server choose the number of items to return. + * A page_size which is strictly positive will return at most that many items. + * A negative page_size will cause an error. + * Following the first request, subsequent paginated calls are not required + * to pass a page_size. If a page_size is set in subsequent calls, it must + * match the page_size given in the first request. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. The value of `next_page_token` returned by a previous call. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. The resource_view to be applied to the returned AuthorizedViews' + * fields. Default to NAME_ONLY. + * + * Generated from protobuf field .google.bigtable.admin.v2.AuthorizedView.ResponseView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $view = 0; + + /** + * @param string $parent Required. The unique name of the table for which AuthorizedViews should be + * listed. Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. Please see + * {@see BigtableTableAdminClient::tableName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\Admin\V2\ListAuthorizedViewsRequest + * + * @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. The unique name of the table for which AuthorizedViews should be + * listed. Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * @type int $page_size + * Optional. Maximum number of results per page. + * A page_size of zero lets the server choose the number of items to return. + * A page_size which is strictly positive will return at most that many items. + * A negative page_size will cause an error. + * Following the first request, subsequent paginated calls are not required + * to pass a page_size. If a page_size is set in subsequent calls, it must + * match the page_size given in the first request. + * @type string $page_token + * Optional. The value of `next_page_token` returned by a previous call. + * @type int $view + * Optional. The resource_view to be applied to the returned AuthorizedViews' + * fields. Default to NAME_ONLY. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the table for which AuthorizedViews should be + * listed. Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The unique name of the table for which AuthorizedViews should be + * listed. Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. Maximum number of results per page. + * A page_size of zero lets the server choose the number of items to return. + * A page_size which is strictly positive will return at most that many items. + * A negative page_size will cause an error. + * Following the first request, subsequent paginated calls are not required + * to pass a page_size. If a page_size is set in subsequent calls, it must + * match the page_size given in the first request. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of results per page. + * A page_size of zero lets the server choose the number of items to return. + * A page_size which is strictly positive will return at most that many items. + * A negative page_size will cause an error. + * Following the first request, subsequent paginated calls are not required + * to pass a page_size. If a page_size is set in subsequent calls, it must + * match the page_size given in the first request. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. The value of `next_page_token` returned by a previous call. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. The value of `next_page_token` returned by a previous call. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. The resource_view to be applied to the returned AuthorizedViews' + * fields. Default to NAME_ONLY. + * + * Generated from protobuf field .google.bigtable.admin.v2.AuthorizedView.ResponseView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getView() + { + return $this->view; + } + + /** + * Optional. The resource_view to be applied to the returned AuthorizedViews' + * fields. Default to NAME_ONLY. + * + * Generated from protobuf field .google.bigtable.admin.v2.AuthorizedView.ResponseView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\AuthorizedView\ResponseView::class); + $this->view = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListAuthorizedViewsResponse.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListAuthorizedViewsResponse.php new file mode 100644 index 000000000000..620aada6530a --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListAuthorizedViewsResponse.php @@ -0,0 +1,110 @@ +google.bigtable.admin.v2.ListAuthorizedViewsResponse + */ +class ListAuthorizedViewsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The AuthorizedViews present in the requested table. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.AuthorizedView authorized_views = 1; + */ + private $authorized_views; + /** + * Set if not all tables could be returned in a single response. + * Pass this value to `page_token` in another request to get the next + * page of results. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\AuthorizedView[] $authorized_views + * The AuthorizedViews present in the requested table. + * @type string $next_page_token + * Set if not all tables could be returned in a single response. + * Pass this value to `page_token` in another request to get the next + * page of results. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The AuthorizedViews present in the requested table. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.AuthorizedView authorized_views = 1; + * @return RepeatedField<\Google\Cloud\Bigtable\Admin\V2\AuthorizedView> + */ + public function getAuthorizedViews() + { + return $this->authorized_views; + } + + /** + * The AuthorizedViews present in the requested table. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.AuthorizedView authorized_views = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\AuthorizedView[] $var + * @return $this + */ + public function setAuthorizedViews($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\AuthorizedView::class); + $this->authorized_views = $arr; + + return $this; + } + + /** + * Set if not all tables could be returned in a single response. + * Pass this value to `page_token` in another request to get the next + * page of results. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Set if not all tables could be returned in a single response. + * Pass this value to `page_token` in another request to get the next + * page of results. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListBackupsRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListBackupsRequest.php new file mode 100644 index 000000000000..c9aa5b59aaec --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListBackupsRequest.php @@ -0,0 +1,429 @@ +google.bigtable.admin.v2.ListBackupsRequest + */ +class ListBackupsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The cluster to list backups from. Values are of the + * form `projects/{project}/instances/{instance}/clusters/{cluster}`. + * Use `{cluster} = '-'` to list backups for all clusters in an instance, + * e.g., `projects/{project}/instances/{instance}/clusters/-`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * A filter expression that filters backups listed in the response. + * The expression must specify the field name, a comparison operator, + * and the value that you want to use for filtering. The value must be a + * string, a number, or a boolean. The comparison operator must be + * <, >, <=, >=, !=, =, or :. Colon ':' represents a HAS operator which is + * roughly synonymous with equality. Filter rules are case insensitive. + * The fields eligible for filtering are: + * * `name` + * * `source_table` + * * `state` + * * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `size_bytes` + * To filter on multiple expressions, provide each separate expression within + * parentheses. By default, each expression is an AND expression. However, + * you can include AND, OR, and NOT expressions explicitly. + * Some examples of using filters are: + * * `name:"exact"` --> The backup's name is the string "exact". + * * `name:howl` --> The backup's name contains the string "howl". + * * `source_table:prod` + * --> The source_table's name contains the string "prod". + * * `state:CREATING` --> The backup is pending creation. + * * `state:READY` --> The backup is fully created and ready for use. + * * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` + * --> The backup name contains the string "howl" and start_time + * of the backup is before 2018-03-28T14:50:00Z. + * * `size_bytes > 10000000000` --> The backup's size is greater than 10GB + * + * Generated from protobuf field string filter = 2; + */ + protected $filter = ''; + /** + * An expression for specifying the sort order of the results of the request. + * The string value should specify one or more fields in + * [Backup][google.bigtable.admin.v2.Backup]. The full syntax is described at + * https://aip.dev/132#ordering. + * Fields supported are: + * * name + * * source_table + * * expire_time + * * start_time + * * end_time + * * size_bytes + * * state + * For example, "start_time". The default sorting order is ascending. + * To specify descending order for the field, a suffix " desc" should + * be appended to the field name. For example, "start_time desc". + * Redundant space characters in the syntax are insigificant. + * If order_by is empty, results will be sorted by `start_time` in descending + * order starting from the most recently created backup. + * + * Generated from protobuf field string order_by = 3; + */ + protected $order_by = ''; + /** + * Number of backups to be returned in the response. If 0 or + * less, defaults to the server's maximum allowed page size. + * + * Generated from protobuf field int32 page_size = 4; + */ + protected $page_size = 0; + /** + * If non-empty, `page_token` should contain a + * [next_page_token][google.bigtable.admin.v2.ListBackupsResponse.next_page_token] + * from a previous + * [ListBackupsResponse][google.bigtable.admin.v2.ListBackupsResponse] to the + * same `parent` and with the same `filter`. + * + * Generated from protobuf field string page_token = 5; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. The cluster to list backups from. Values are of the + * form `projects/{project}/instances/{instance}/clusters/{cluster}`. + * Use `{cluster} = '-'` to list backups for all clusters in an instance, + * e.g., `projects/{project}/instances/{instance}/clusters/-`. Please see + * {@see BigtableTableAdminClient::clusterName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\Admin\V2\ListBackupsRequest + * + * @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. The cluster to list backups from. Values are of the + * form `projects/{project}/instances/{instance}/clusters/{cluster}`. + * Use `{cluster} = '-'` to list backups for all clusters in an instance, + * e.g., `projects/{project}/instances/{instance}/clusters/-`. + * @type string $filter + * A filter expression that filters backups listed in the response. + * The expression must specify the field name, a comparison operator, + * and the value that you want to use for filtering. The value must be a + * string, a number, or a boolean. The comparison operator must be + * <, >, <=, >=, !=, =, or :. Colon ':' represents a HAS operator which is + * roughly synonymous with equality. Filter rules are case insensitive. + * The fields eligible for filtering are: + * * `name` + * * `source_table` + * * `state` + * * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `size_bytes` + * To filter on multiple expressions, provide each separate expression within + * parentheses. By default, each expression is an AND expression. However, + * you can include AND, OR, and NOT expressions explicitly. + * Some examples of using filters are: + * * `name:"exact"` --> The backup's name is the string "exact". + * * `name:howl` --> The backup's name contains the string "howl". + * * `source_table:prod` + * --> The source_table's name contains the string "prod". + * * `state:CREATING` --> The backup is pending creation. + * * `state:READY` --> The backup is fully created and ready for use. + * * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` + * --> The backup name contains the string "howl" and start_time + * of the backup is before 2018-03-28T14:50:00Z. + * * `size_bytes > 10000000000` --> The backup's size is greater than 10GB + * @type string $order_by + * An expression for specifying the sort order of the results of the request. + * The string value should specify one or more fields in + * [Backup][google.bigtable.admin.v2.Backup]. The full syntax is described at + * https://aip.dev/132#ordering. + * Fields supported are: + * * name + * * source_table + * * expire_time + * * start_time + * * end_time + * * size_bytes + * * state + * For example, "start_time". The default sorting order is ascending. + * To specify descending order for the field, a suffix " desc" should + * be appended to the field name. For example, "start_time desc". + * Redundant space characters in the syntax are insigificant. + * If order_by is empty, results will be sorted by `start_time` in descending + * order starting from the most recently created backup. + * @type int $page_size + * Number of backups to be returned in the response. If 0 or + * less, defaults to the server's maximum allowed page size. + * @type string $page_token + * If non-empty, `page_token` should contain a + * [next_page_token][google.bigtable.admin.v2.ListBackupsResponse.next_page_token] + * from a previous + * [ListBackupsResponse][google.bigtable.admin.v2.ListBackupsResponse] to the + * same `parent` and with the same `filter`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The cluster to list backups from. Values are of the + * form `projects/{project}/instances/{instance}/clusters/{cluster}`. + * Use `{cluster} = '-'` to list backups for all clusters in an instance, + * e.g., `projects/{project}/instances/{instance}/clusters/-`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The cluster to list backups from. Values are of the + * form `projects/{project}/instances/{instance}/clusters/{cluster}`. + * Use `{cluster} = '-'` to list backups for all clusters in an instance, + * e.g., `projects/{project}/instances/{instance}/clusters/-`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * A filter expression that filters backups listed in the response. + * The expression must specify the field name, a comparison operator, + * and the value that you want to use for filtering. The value must be a + * string, a number, or a boolean. The comparison operator must be + * <, >, <=, >=, !=, =, or :. Colon ':' represents a HAS operator which is + * roughly synonymous with equality. Filter rules are case insensitive. + * The fields eligible for filtering are: + * * `name` + * * `source_table` + * * `state` + * * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `size_bytes` + * To filter on multiple expressions, provide each separate expression within + * parentheses. By default, each expression is an AND expression. However, + * you can include AND, OR, and NOT expressions explicitly. + * Some examples of using filters are: + * * `name:"exact"` --> The backup's name is the string "exact". + * * `name:howl` --> The backup's name contains the string "howl". + * * `source_table:prod` + * --> The source_table's name contains the string "prod". + * * `state:CREATING` --> The backup is pending creation. + * * `state:READY` --> The backup is fully created and ready for use. + * * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` + * --> The backup name contains the string "howl" and start_time + * of the backup is before 2018-03-28T14:50:00Z. + * * `size_bytes > 10000000000` --> The backup's size is greater than 10GB + * + * Generated from protobuf field string filter = 2; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * A filter expression that filters backups listed in the response. + * The expression must specify the field name, a comparison operator, + * and the value that you want to use for filtering. The value must be a + * string, a number, or a boolean. The comparison operator must be + * <, >, <=, >=, !=, =, or :. Colon ':' represents a HAS operator which is + * roughly synonymous with equality. Filter rules are case insensitive. + * The fields eligible for filtering are: + * * `name` + * * `source_table` + * * `state` + * * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `size_bytes` + * To filter on multiple expressions, provide each separate expression within + * parentheses. By default, each expression is an AND expression. However, + * you can include AND, OR, and NOT expressions explicitly. + * Some examples of using filters are: + * * `name:"exact"` --> The backup's name is the string "exact". + * * `name:howl` --> The backup's name contains the string "howl". + * * `source_table:prod` + * --> The source_table's name contains the string "prod". + * * `state:CREATING` --> The backup is pending creation. + * * `state:READY` --> The backup is fully created and ready for use. + * * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` + * --> The backup name contains the string "howl" and start_time + * of the backup is before 2018-03-28T14:50:00Z. + * * `size_bytes > 10000000000` --> The backup's size is greater than 10GB + * + * Generated from protobuf field string filter = 2; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * An expression for specifying the sort order of the results of the request. + * The string value should specify one or more fields in + * [Backup][google.bigtable.admin.v2.Backup]. The full syntax is described at + * https://aip.dev/132#ordering. + * Fields supported are: + * * name + * * source_table + * * expire_time + * * start_time + * * end_time + * * size_bytes + * * state + * For example, "start_time". The default sorting order is ascending. + * To specify descending order for the field, a suffix " desc" should + * be appended to the field name. For example, "start_time desc". + * Redundant space characters in the syntax are insigificant. + * If order_by is empty, results will be sorted by `start_time` in descending + * order starting from the most recently created backup. + * + * Generated from protobuf field string order_by = 3; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * An expression for specifying the sort order of the results of the request. + * The string value should specify one or more fields in + * [Backup][google.bigtable.admin.v2.Backup]. The full syntax is described at + * https://aip.dev/132#ordering. + * Fields supported are: + * * name + * * source_table + * * expire_time + * * start_time + * * end_time + * * size_bytes + * * state + * For example, "start_time". The default sorting order is ascending. + * To specify descending order for the field, a suffix " desc" should + * be appended to the field name. For example, "start_time desc". + * Redundant space characters in the syntax are insigificant. + * If order_by is empty, results will be sorted by `start_time` in descending + * order starting from the most recently created backup. + * + * Generated from protobuf field string order_by = 3; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Number of backups to be returned in the response. If 0 or + * less, defaults to the server's maximum allowed page size. + * + * Generated from protobuf field int32 page_size = 4; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Number of backups to be returned in the response. If 0 or + * less, defaults to the server's maximum allowed page size. + * + * Generated from protobuf field int32 page_size = 4; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * If non-empty, `page_token` should contain a + * [next_page_token][google.bigtable.admin.v2.ListBackupsResponse.next_page_token] + * from a previous + * [ListBackupsResponse][google.bigtable.admin.v2.ListBackupsResponse] to the + * same `parent` and with the same `filter`. + * + * Generated from protobuf field string page_token = 5; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * If non-empty, `page_token` should contain a + * [next_page_token][google.bigtable.admin.v2.ListBackupsResponse.next_page_token] + * from a previous + * [ListBackupsResponse][google.bigtable.admin.v2.ListBackupsResponse] to the + * same `parent` and with the same `filter`. + * + * Generated from protobuf field string page_token = 5; + * @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/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListBackupsResponse.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListBackupsResponse.php new file mode 100644 index 000000000000..8f1bb0929254 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListBackupsResponse.php @@ -0,0 +1,110 @@ +google.bigtable.admin.v2.ListBackupsResponse + */ +class ListBackupsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of matching backups. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.Backup backups = 1; + */ + private $backups; + /** + * `next_page_token` can be sent in a subsequent + * [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups] call + * to fetch more of the matching backups. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\Backup[] $backups + * The list of matching backups. + * @type string $next_page_token + * `next_page_token` can be sent in a subsequent + * [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups] call + * to fetch more of the matching backups. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The list of matching backups. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.Backup backups = 1; + * @return RepeatedField<\Google\Cloud\Bigtable\Admin\V2\Backup> + */ + public function getBackups() + { + return $this->backups; + } + + /** + * The list of matching backups. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.Backup backups = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\Backup[] $var + * @return $this + */ + public function setBackups($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\Backup::class); + $this->backups = $arr; + + return $this; + } + + /** + * `next_page_token` can be sent in a subsequent + * [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups] call + * to fetch more of the matching backups. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * `next_page_token` can be sent in a subsequent + * [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups] call + * to fetch more of the matching backups. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListClustersRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListClustersRequest.php new file mode 100644 index 000000000000..ce37dfa00e0c --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListClustersRequest.php @@ -0,0 +1,135 @@ +google.bigtable.admin.v2.ListClustersRequest + */ +class ListClustersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the instance for which a list of clusters is + * requested. Values are of the form + * `projects/{project}/instances/{instance}`. Use `{instance} = '-'` to list + * Clusters for all Instances in a project, e.g., + * `projects/myproject/instances/-`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * DEPRECATED: This field is unused and ignored. + * + * Generated from protobuf field string page_token = 2; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. The unique name of the instance for which a list of clusters is + * requested. Values are of the form + * `projects/{project}/instances/{instance}`. Use `{instance} = '-'` to list + * Clusters for all Instances in a project, e.g., + * `projects/myproject/instances/-`. Please see + * {@see BigtableInstanceAdminClient::instanceName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\Admin\V2\ListClustersRequest + * + * @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. The unique name of the instance for which a list of clusters is + * requested. Values are of the form + * `projects/{project}/instances/{instance}`. Use `{instance} = '-'` to list + * Clusters for all Instances in a project, e.g., + * `projects/myproject/instances/-`. + * @type string $page_token + * DEPRECATED: This field is unused and ignored. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the instance for which a list of clusters is + * requested. Values are of the form + * `projects/{project}/instances/{instance}`. Use `{instance} = '-'` to list + * Clusters for all Instances in a project, e.g., + * `projects/myproject/instances/-`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The unique name of the instance for which a list of clusters is + * requested. Values are of the form + * `projects/{project}/instances/{instance}`. Use `{instance} = '-'` to list + * Clusters for all Instances in a project, e.g., + * `projects/myproject/instances/-`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * DEPRECATED: This field is unused and ignored. + * + * Generated from protobuf field string page_token = 2; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * DEPRECATED: This field is unused and ignored. + * + * Generated from protobuf field string page_token = 2; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListClustersResponse.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListClustersResponse.php new file mode 100644 index 000000000000..22820a8317a2 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListClustersResponse.php @@ -0,0 +1,151 @@ +google.bigtable.admin.v2.ListClustersResponse + */ +class ListClustersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of requested clusters. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.Cluster clusters = 1; + */ + private $clusters; + /** + * Locations from which Cluster information could not be retrieved, + * due to an outage or some other transient condition. + * Clusters from these locations may be missing from `clusters`, + * or may only have partial information returned. + * Values are of the form `projects//locations/` + * + * Generated from protobuf field repeated string failed_locations = 2; + */ + private $failed_locations; + /** + * DEPRECATED: This field is unused and ignored. + * + * Generated from protobuf field string next_page_token = 3; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\Cluster[] $clusters + * The list of requested clusters. + * @type string[] $failed_locations + * Locations from which Cluster information could not be retrieved, + * due to an outage or some other transient condition. + * Clusters from these locations may be missing from `clusters`, + * or may only have partial information returned. + * Values are of the form `projects//locations/` + * @type string $next_page_token + * DEPRECATED: This field is unused and ignored. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The list of requested clusters. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.Cluster clusters = 1; + * @return RepeatedField<\Google\Cloud\Bigtable\Admin\V2\Cluster> + */ + public function getClusters() + { + return $this->clusters; + } + + /** + * The list of requested clusters. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.Cluster clusters = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\Cluster[] $var + * @return $this + */ + public function setClusters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\Cluster::class); + $this->clusters = $arr; + + return $this; + } + + /** + * Locations from which Cluster information could not be retrieved, + * due to an outage or some other transient condition. + * Clusters from these locations may be missing from `clusters`, + * or may only have partial information returned. + * Values are of the form `projects//locations/` + * + * Generated from protobuf field repeated string failed_locations = 2; + * @return RepeatedField + */ + public function getFailedLocations() + { + return $this->failed_locations; + } + + /** + * Locations from which Cluster information could not be retrieved, + * due to an outage or some other transient condition. + * Clusters from these locations may be missing from `clusters`, + * or may only have partial information returned. + * Values are of the form `projects//locations/` + * + * Generated from protobuf field repeated string failed_locations = 2; + * @param string[] $var + * @return $this + */ + public function setFailedLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->failed_locations = $arr; + + return $this; + } + + /** + * DEPRECATED: This field is unused and ignored. + * + * Generated from protobuf field string next_page_token = 3; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * DEPRECATED: This field is unused and ignored. + * + * Generated from protobuf field string next_page_token = 3; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListHotTabletsRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListHotTabletsRequest.php new file mode 100644 index 000000000000..9ef12b38a811 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListHotTabletsRequest.php @@ -0,0 +1,291 @@ +google.bigtable.admin.v2.ListHotTabletsRequest + */ +class ListHotTabletsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The cluster name to list hot tablets. + * Value is in the following form: + * `projects/{project}/instances/{instance}/clusters/{cluster}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The start time to list hot tablets. The hot tablets in the response will + * have start times between the requested start time and end time. Start time + * defaults to Now if it is unset, and end time defaults to Now - 24 hours if + * it is unset. The start time should be less than the end time, and the + * maximum allowed time range between start time and end time is 48 hours. + * Start time and end time should have values between Now and Now - 14 days. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + */ + protected $start_time = null; + /** + * The end time to list hot tablets. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; + */ + protected $end_time = null; + /** + * Maximum number of results per page. + * A page_size that is empty or zero lets the server choose the number of + * items to return. A page_size which is strictly positive will return at most + * that many items. A negative page_size will cause an error. + * Following the first request, subsequent paginated calls do not need a + * page_size field. If a page_size is set in subsequent calls, it must match + * the page_size given in the first request. + * + * Generated from protobuf field int32 page_size = 4; + */ + protected $page_size = 0; + /** + * The value of `next_page_token` returned by a previous call. + * + * Generated from protobuf field string page_token = 5; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. The cluster name to list hot tablets. + * Value is in the following form: + * `projects/{project}/instances/{instance}/clusters/{cluster}`. Please see + * {@see BigtableInstanceAdminClient::clusterName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\Admin\V2\ListHotTabletsRequest + * + * @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. The cluster name to list hot tablets. + * Value is in the following form: + * `projects/{project}/instances/{instance}/clusters/{cluster}`. + * @type \Google\Protobuf\Timestamp $start_time + * The start time to list hot tablets. The hot tablets in the response will + * have start times between the requested start time and end time. Start time + * defaults to Now if it is unset, and end time defaults to Now - 24 hours if + * it is unset. The start time should be less than the end time, and the + * maximum allowed time range between start time and end time is 48 hours. + * Start time and end time should have values between Now and Now - 14 days. + * @type \Google\Protobuf\Timestamp $end_time + * The end time to list hot tablets. + * @type int $page_size + * Maximum number of results per page. + * A page_size that is empty or zero lets the server choose the number of + * items to return. A page_size which is strictly positive will return at most + * that many items. A negative page_size will cause an error. + * Following the first request, subsequent paginated calls do not need a + * page_size field. If a page_size is set in subsequent calls, it must match + * the page_size given in the first request. + * @type string $page_token + * The value of `next_page_token` returned by a previous call. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The cluster name to list hot tablets. + * Value is in the following form: + * `projects/{project}/instances/{instance}/clusters/{cluster}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The cluster name to list hot tablets. + * Value is in the following form: + * `projects/{project}/instances/{instance}/clusters/{cluster}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The start time to list hot tablets. The hot tablets in the response will + * have start times between the requested start time and end time. Start time + * defaults to Now if it is unset, and end time defaults to Now - 24 hours if + * it is unset. The start time should be less than the end time, and the + * maximum allowed time range between start time and end time is 48 hours. + * Start time and end time should have values between Now and Now - 14 days. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @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 start time to list hot tablets. The hot tablets in the response will + * have start times between the requested start time and end time. Start time + * defaults to Now if it is unset, and end time defaults to Now - 24 hours if + * it is unset. The start time should be less than the end time, and the + * maximum allowed time range between start time and end time is 48 hours. + * Start time and end time should have values between Now and Now - 14 days. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @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 end time to list hot tablets. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; + * @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 end time to list hot tablets. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + + /** + * Maximum number of results per page. + * A page_size that is empty or zero lets the server choose the number of + * items to return. A page_size which is strictly positive will return at most + * that many items. A negative page_size will cause an error. + * Following the first request, subsequent paginated calls do not need a + * page_size field. If a page_size is set in subsequent calls, it must match + * the page_size given in the first request. + * + * Generated from protobuf field int32 page_size = 4; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Maximum number of results per page. + * A page_size that is empty or zero lets the server choose the number of + * items to return. A page_size which is strictly positive will return at most + * that many items. A negative page_size will cause an error. + * Following the first request, subsequent paginated calls do not need a + * page_size field. If a page_size is set in subsequent calls, it must match + * the page_size given in the first request. + * + * Generated from protobuf field int32 page_size = 4; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * The value of `next_page_token` returned by a previous call. + * + * Generated from protobuf field string page_token = 5; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * The value of `next_page_token` returned by a previous call. + * + * Generated from protobuf field string page_token = 5; + * @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/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListHotTabletsResponse.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListHotTabletsResponse.php new file mode 100644 index 000000000000..5dcee9d36b53 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListHotTabletsResponse.php @@ -0,0 +1,125 @@ +google.bigtable.admin.v2.ListHotTabletsResponse + */ +class ListHotTabletsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of hot tablets in the tables of the requested cluster that fall + * within the requested time range. Hot tablets are ordered by node cpu usage + * percent. If there are multiple hot tablets that correspond to the same + * tablet within a 15-minute interval, only the hot tablet with the highest + * node cpu usage will be included in the response. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.HotTablet hot_tablets = 1; + */ + private $hot_tablets; + /** + * Set if not all hot tablets could be returned in a single response. + * Pass this value to `page_token` in another request to get the next + * page of results. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\HotTablet[] $hot_tablets + * List of hot tablets in the tables of the requested cluster that fall + * within the requested time range. Hot tablets are ordered by node cpu usage + * percent. If there are multiple hot tablets that correspond to the same + * tablet within a 15-minute interval, only the hot tablet with the highest + * node cpu usage will be included in the response. + * @type string $next_page_token + * Set if not all hot tablets could be returned in a single response. + * Pass this value to `page_token` in another request to get the next + * page of results. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * List of hot tablets in the tables of the requested cluster that fall + * within the requested time range. Hot tablets are ordered by node cpu usage + * percent. If there are multiple hot tablets that correspond to the same + * tablet within a 15-minute interval, only the hot tablet with the highest + * node cpu usage will be included in the response. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.HotTablet hot_tablets = 1; + * @return RepeatedField<\Google\Cloud\Bigtable\Admin\V2\HotTablet> + */ + public function getHotTablets() + { + return $this->hot_tablets; + } + + /** + * List of hot tablets in the tables of the requested cluster that fall + * within the requested time range. Hot tablets are ordered by node cpu usage + * percent. If there are multiple hot tablets that correspond to the same + * tablet within a 15-minute interval, only the hot tablet with the highest + * node cpu usage will be included in the response. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.HotTablet hot_tablets = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\HotTablet[] $var + * @return $this + */ + public function setHotTablets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\HotTablet::class); + $this->hot_tablets = $arr; + + return $this; + } + + /** + * Set if not all hot tablets could be returned in a single response. + * Pass this value to `page_token` in another request to get the next + * page of results. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Set if not all hot tablets could be returned in a single response. + * Pass this value to `page_token` in another request to get the next + * page of results. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListInstancesRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListInstancesRequest.php new file mode 100644 index 000000000000..45ef9cd53fa6 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListInstancesRequest.php @@ -0,0 +1,120 @@ +google.bigtable.admin.v2.ListInstancesRequest + */ +class ListInstancesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the project for which a list of instances is + * requested. Values are of the form `projects/{project}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * DEPRECATED: This field is unused and ignored. + * + * Generated from protobuf field string page_token = 2; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. The unique name of the project for which a list of instances is + * requested. Values are of the form `projects/{project}`. Please see + * {@see BigtableInstanceAdminClient::projectName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\Admin\V2\ListInstancesRequest + * + * @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. The unique name of the project for which a list of instances is + * requested. Values are of the form `projects/{project}`. + * @type string $page_token + * DEPRECATED: This field is unused and ignored. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the project for which a list of instances is + * requested. Values are of the form `projects/{project}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The unique name of the project for which a list of instances is + * requested. Values are of the form `projects/{project}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * DEPRECATED: This field is unused and ignored. + * + * Generated from protobuf field string page_token = 2; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * DEPRECATED: This field is unused and ignored. + * + * Generated from protobuf field string page_token = 2; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListInstancesResponse.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListInstancesResponse.php new file mode 100644 index 000000000000..dfdc3cab1ffe --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListInstancesResponse.php @@ -0,0 +1,155 @@ +google.bigtable.admin.v2.ListInstancesResponse + */ +class ListInstancesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of requested instances. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.Instance instances = 1; + */ + private $instances; + /** + * Locations from which Instance information could not be retrieved, + * due to an outage or some other transient condition. + * Instances whose Clusters are all in one of the failed locations + * may be missing from `instances`, and Instances with at least one + * Cluster in a failed location may only have partial information returned. + * Values are of the form `projects//locations/` + * + * Generated from protobuf field repeated string failed_locations = 2; + */ + private $failed_locations; + /** + * DEPRECATED: This field is unused and ignored. + * + * Generated from protobuf field string next_page_token = 3; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\Instance[] $instances + * The list of requested instances. + * @type string[] $failed_locations + * Locations from which Instance information could not be retrieved, + * due to an outage or some other transient condition. + * Instances whose Clusters are all in one of the failed locations + * may be missing from `instances`, and Instances with at least one + * Cluster in a failed location may only have partial information returned. + * Values are of the form `projects//locations/` + * @type string $next_page_token + * DEPRECATED: This field is unused and ignored. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The list of requested instances. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.Instance instances = 1; + * @return RepeatedField<\Google\Cloud\Bigtable\Admin\V2\Instance> + */ + public function getInstances() + { + return $this->instances; + } + + /** + * The list of requested instances. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.Instance instances = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\Instance[] $var + * @return $this + */ + public function setInstances($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\Instance::class); + $this->instances = $arr; + + return $this; + } + + /** + * Locations from which Instance information could not be retrieved, + * due to an outage or some other transient condition. + * Instances whose Clusters are all in one of the failed locations + * may be missing from `instances`, and Instances with at least one + * Cluster in a failed location may only have partial information returned. + * Values are of the form `projects//locations/` + * + * Generated from protobuf field repeated string failed_locations = 2; + * @return RepeatedField + */ + public function getFailedLocations() + { + return $this->failed_locations; + } + + /** + * Locations from which Instance information could not be retrieved, + * due to an outage or some other transient condition. + * Instances whose Clusters are all in one of the failed locations + * may be missing from `instances`, and Instances with at least one + * Cluster in a failed location may only have partial information returned. + * Values are of the form `projects//locations/` + * + * Generated from protobuf field repeated string failed_locations = 2; + * @param string[] $var + * @return $this + */ + public function setFailedLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->failed_locations = $arr; + + return $this; + } + + /** + * DEPRECATED: This field is unused and ignored. + * + * Generated from protobuf field string next_page_token = 3; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * DEPRECATED: This field is unused and ignored. + * + * Generated from protobuf field string next_page_token = 3; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListLogicalViewsRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListLogicalViewsRequest.php new file mode 100644 index 000000000000..f4bf5a310f50 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListLogicalViewsRequest.php @@ -0,0 +1,175 @@ +google.bigtable.admin.v2.ListLogicalViewsRequest + */ +class ListLogicalViewsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the instance for which the list of logical + * views is requested. Values are of the form + * `projects/{project}/instances/{instance}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of logical views to return. The service may + * return fewer than this value + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListLogicalViews` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListLogicalViews` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. The unique name of the instance for which the list of logical + * views is requested. Values are of the form + * `projects/{project}/instances/{instance}`. Please see + * {@see BigtableInstanceAdminClient::instanceName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\Admin\V2\ListLogicalViewsRequest + * + * @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. The unique name of the instance for which the list of logical + * views is requested. Values are of the form + * `projects/{project}/instances/{instance}`. + * @type int $page_size + * Optional. The maximum number of logical views to return. The service may + * return fewer than this value + * @type string $page_token + * Optional. A page token, received from a previous `ListLogicalViews` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListLogicalViews` must + * match the call that provided the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the instance for which the list of logical + * views is requested. Values are of the form + * `projects/{project}/instances/{instance}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The unique name of the instance for which the list of logical + * views is requested. Values are of the form + * `projects/{project}/instances/{instance}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of logical views to return. The service may + * return fewer than this value + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of logical views to return. The service may + * return fewer than this value + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListLogicalViews` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListLogicalViews` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListLogicalViews` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListLogicalViews` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListLogicalViewsResponse.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListLogicalViewsResponse.php new file mode 100644 index 000000000000..70a363bfd0a9 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListLogicalViewsResponse.php @@ -0,0 +1,105 @@ +google.bigtable.admin.v2.ListLogicalViewsResponse + */ +class ListLogicalViewsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of requested logical views. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.LogicalView logical_views = 1; + */ + private $logical_views; + /** + * A token, which 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 = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\LogicalView[] $logical_views + * The list of requested logical views. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The list of requested logical views. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.LogicalView logical_views = 1; + * @return RepeatedField<\Google\Cloud\Bigtable\Admin\V2\LogicalView> + */ + public function getLogicalViews() + { + return $this->logical_views; + } + + /** + * The list of requested logical views. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.LogicalView logical_views = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\LogicalView[] $var + * @return $this + */ + public function setLogicalViews($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\LogicalView::class); + $this->logical_views = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which 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; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListMaterializedViewsRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListMaterializedViewsRequest.php new file mode 100644 index 000000000000..341056cfb7d0 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListMaterializedViewsRequest.php @@ -0,0 +1,175 @@ +google.bigtable.admin.v2.ListMaterializedViewsRequest + */ +class ListMaterializedViewsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the instance for which the list of + * materialized views is requested. Values are of the form + * `projects/{project}/instances/{instance}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of materialized views to return. The service + * may return fewer than this value + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListMaterializedViews` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListMaterializedViews` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. The unique name of the instance for which the list of + * materialized views is requested. Values are of the form + * `projects/{project}/instances/{instance}`. Please see + * {@see BigtableInstanceAdminClient::instanceName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\Admin\V2\ListMaterializedViewsRequest + * + * @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. The unique name of the instance for which the list of + * materialized views is requested. Values are of the form + * `projects/{project}/instances/{instance}`. + * @type int $page_size + * Optional. The maximum number of materialized views to return. The service + * may return fewer than this value + * @type string $page_token + * Optional. A page token, received from a previous `ListMaterializedViews` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListMaterializedViews` + * must match the call that provided the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the instance for which the list of + * materialized views is requested. Values are of the form + * `projects/{project}/instances/{instance}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The unique name of the instance for which the list of + * materialized views is requested. Values are of the form + * `projects/{project}/instances/{instance}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of materialized views to return. The service + * may return fewer than this value + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of materialized views to return. The service + * may return fewer than this value + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListMaterializedViews` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListMaterializedViews` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListMaterializedViews` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListMaterializedViews` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListMaterializedViewsResponse.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListMaterializedViewsResponse.php new file mode 100644 index 000000000000..d368245f002d --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListMaterializedViewsResponse.php @@ -0,0 +1,105 @@ +google.bigtable.admin.v2.ListMaterializedViewsResponse + */ +class ListMaterializedViewsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of requested materialized views. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.MaterializedView materialized_views = 1; + */ + private $materialized_views; + /** + * A token, which 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 = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\MaterializedView[] $materialized_views + * The list of requested materialized views. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The list of requested materialized views. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.MaterializedView materialized_views = 1; + * @return RepeatedField<\Google\Cloud\Bigtable\Admin\V2\MaterializedView> + */ + public function getMaterializedViews() + { + return $this->materialized_views; + } + + /** + * The list of requested materialized views. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.MaterializedView materialized_views = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\MaterializedView[] $var + * @return $this + */ + public function setMaterializedViews($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\MaterializedView::class); + $this->materialized_views = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which 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; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListSchemaBundlesRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListSchemaBundlesRequest.php new file mode 100644 index 000000000000..00eb8c83d2d1 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListSchemaBundlesRequest.php @@ -0,0 +1,180 @@ +google.bigtable.admin.v2.ListSchemaBundlesRequest + */ +class ListSchemaBundlesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of schema bundles. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of schema bundles to return. If the value is positive, + * the server may return at most this value. If unspecified, the server will + * return the maximum allowed page size. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListSchemaBundles` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListSchemaBundles` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. The parent, which owns this collection of schema bundles. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. Please see + * {@see BigtableTableAdminClient::tableName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\Admin\V2\ListSchemaBundlesRequest + * + * @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. The parent, which owns this collection of schema bundles. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * @type int $page_size + * The maximum number of schema bundles to return. If the value is positive, + * the server may return at most this value. If unspecified, the server will + * return the maximum allowed page size. + * @type string $page_token + * A page token, received from a previous `ListSchemaBundles` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListSchemaBundles` must + * match the call that provided the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of schema bundles. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of schema bundles. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of schema bundles to return. If the value is positive, + * the server may return at most this value. If unspecified, the server will + * return the maximum allowed page size. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of schema bundles to return. If the value is positive, + * the server may return at most this value. If unspecified, the server will + * return the maximum allowed page size. + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListSchemaBundles` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListSchemaBundles` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListSchemaBundles` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListSchemaBundles` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListSchemaBundlesResponse.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListSchemaBundlesResponse.php new file mode 100644 index 000000000000..f2b0c9ba0bc8 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListSchemaBundlesResponse.php @@ -0,0 +1,106 @@ +google.bigtable.admin.v2.ListSchemaBundlesResponse + */ +class ListSchemaBundlesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The schema bundles from the specified table. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.SchemaBundle schema_bundles = 1; + */ + private $schema_bundles; + /** + * A token, which 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 = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\SchemaBundle[] $schema_bundles + * The schema bundles from the specified table. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The schema bundles from the specified table. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.SchemaBundle schema_bundles = 1; + * @return RepeatedField<\Google\Cloud\Bigtable\Admin\V2\SchemaBundle> + */ + public function getSchemaBundles() + { + return $this->schema_bundles; + } + + /** + * The schema bundles from the specified table. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.SchemaBundle schema_bundles = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\SchemaBundle[] $var + * @return $this + */ + public function setSchemaBundles($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\SchemaBundle::class); + $this->schema_bundles = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which 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; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListSnapshotsRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListSnapshotsRequest.php new file mode 100644 index 000000000000..31c292781dba --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListSnapshotsRequest.php @@ -0,0 +1,178 @@ +google.bigtable.admin.v2.ListSnapshotsRequest + */ +class ListSnapshotsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the cluster for which snapshots should be + * listed. Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}`. + * Use `{cluster} = '-'` to list snapshots for all clusters in an instance, + * e.g., `projects/{project}/instances/{instance}/clusters/-`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of snapshots to return per page. + * CURRENTLY UNIMPLEMENTED AND IGNORED. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * The value of `next_page_token` returned by a previous call. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. The unique name of the cluster for which snapshots should be + * listed. Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}`. + * Use `{cluster} = '-'` to list snapshots for all clusters in an instance, + * e.g., `projects/{project}/instances/{instance}/clusters/-`. Please see + * {@see BigtableTableAdminClient::clusterName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\Admin\V2\ListSnapshotsRequest + * + * @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. The unique name of the cluster for which snapshots should be + * listed. Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}`. + * Use `{cluster} = '-'` to list snapshots for all clusters in an instance, + * e.g., `projects/{project}/instances/{instance}/clusters/-`. + * @type int $page_size + * The maximum number of snapshots to return per page. + * CURRENTLY UNIMPLEMENTED AND IGNORED. + * @type string $page_token + * The value of `next_page_token` returned by a previous call. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the cluster for which snapshots should be + * listed. Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}`. + * Use `{cluster} = '-'` to list snapshots for all clusters in an instance, + * e.g., `projects/{project}/instances/{instance}/clusters/-`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The unique name of the cluster for which snapshots should be + * listed. Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}`. + * Use `{cluster} = '-'` to list snapshots for all clusters in an instance, + * e.g., `projects/{project}/instances/{instance}/clusters/-`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of snapshots to return per page. + * CURRENTLY UNIMPLEMENTED AND IGNORED. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of snapshots to return per page. + * CURRENTLY UNIMPLEMENTED AND IGNORED. + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * The value of `next_page_token` returned by a previous call. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * The value of `next_page_token` returned by a previous call. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListSnapshotsResponse.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListSnapshotsResponse.php new file mode 100644 index 000000000000..bdad986caa78 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListSnapshotsResponse.php @@ -0,0 +1,114 @@ +google.bigtable.admin.v2.ListSnapshotsResponse + */ +class ListSnapshotsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The snapshots present in the requested cluster. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.Snapshot snapshots = 1; + */ + private $snapshots; + /** + * Set if not all snapshots could be returned in a single response. + * Pass this value to `page_token` in another request to get the next + * page of results. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\Snapshot[] $snapshots + * The snapshots present in the requested cluster. + * @type string $next_page_token + * Set if not all snapshots could be returned in a single response. + * Pass this value to `page_token` in another request to get the next + * page of results. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The snapshots present in the requested cluster. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.Snapshot snapshots = 1; + * @return RepeatedField<\Google\Cloud\Bigtable\Admin\V2\Snapshot> + */ + public function getSnapshots() + { + return $this->snapshots; + } + + /** + * The snapshots present in the requested cluster. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.Snapshot snapshots = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\Snapshot[] $var + * @return $this + */ + public function setSnapshots($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\Snapshot::class); + $this->snapshots = $arr; + + return $this; + } + + /** + * Set if not all snapshots could be returned in a single response. + * Pass this value to `page_token` in another request to get the next + * page of results. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Set if not all snapshots could be returned in a single response. + * Pass this value to `page_token` in another request to get the next + * page of results. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListTablesRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListTablesRequest.php new file mode 100644 index 000000000000..875f87394fee --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListTablesRequest.php @@ -0,0 +1,217 @@ +google.bigtable.admin.v2.ListTablesRequest + */ +class ListTablesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the instance for which tables should be + * listed. Values are of the form `projects/{project}/instances/{instance}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The view to be applied to the returned tables' fields. + * NAME_ONLY view (default) and REPLICATION_VIEW are supported. + * + * Generated from protobuf field .google.bigtable.admin.v2.Table.View view = 2; + */ + protected $view = 0; + /** + * Maximum number of results per page. + * A page_size of zero lets the server choose the number of items to return. + * A page_size which is strictly positive will return at most that many items. + * A negative page_size will cause an error. + * Following the first request, subsequent paginated calls are not required + * to pass a page_size. If a page_size is set in subsequent calls, it must + * match the page_size given in the first request. + * + * Generated from protobuf field int32 page_size = 4; + */ + protected $page_size = 0; + /** + * The value of `next_page_token` returned by a previous call. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. The unique name of the instance for which tables should be + * listed. Values are of the form `projects/{project}/instances/{instance}`. Please see + * {@see BigtableTableAdminClient::instanceName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\Admin\V2\ListTablesRequest + * + * @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. The unique name of the instance for which tables should be + * listed. Values are of the form `projects/{project}/instances/{instance}`. + * @type int $view + * The view to be applied to the returned tables' fields. + * NAME_ONLY view (default) and REPLICATION_VIEW are supported. + * @type int $page_size + * Maximum number of results per page. + * A page_size of zero lets the server choose the number of items to return. + * A page_size which is strictly positive will return at most that many items. + * A negative page_size will cause an error. + * Following the first request, subsequent paginated calls are not required + * to pass a page_size. If a page_size is set in subsequent calls, it must + * match the page_size given in the first request. + * @type string $page_token + * The value of `next_page_token` returned by a previous call. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the instance for which tables should be + * listed. Values are of the form `projects/{project}/instances/{instance}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The unique name of the instance for which tables should be + * listed. Values are of the form `projects/{project}/instances/{instance}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The view to be applied to the returned tables' fields. + * NAME_ONLY view (default) and REPLICATION_VIEW are supported. + * + * Generated from protobuf field .google.bigtable.admin.v2.Table.View view = 2; + * @return int + */ + public function getView() + { + return $this->view; + } + + /** + * The view to be applied to the returned tables' fields. + * NAME_ONLY view (default) and REPLICATION_VIEW are supported. + * + * Generated from protobuf field .google.bigtable.admin.v2.Table.View view = 2; + * @param int $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\Table\View::class); + $this->view = $var; + + return $this; + } + + /** + * Maximum number of results per page. + * A page_size of zero lets the server choose the number of items to return. + * A page_size which is strictly positive will return at most that many items. + * A negative page_size will cause an error. + * Following the first request, subsequent paginated calls are not required + * to pass a page_size. If a page_size is set in subsequent calls, it must + * match the page_size given in the first request. + * + * Generated from protobuf field int32 page_size = 4; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Maximum number of results per page. + * A page_size of zero lets the server choose the number of items to return. + * A page_size which is strictly positive will return at most that many items. + * A negative page_size will cause an error. + * Following the first request, subsequent paginated calls are not required + * to pass a page_size. If a page_size is set in subsequent calls, it must + * match the page_size given in the first request. + * + * Generated from protobuf field int32 page_size = 4; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * The value of `next_page_token` returned by a previous call. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * The value of `next_page_token` returned by a previous call. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListTablesResponse.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListTablesResponse.php new file mode 100644 index 000000000000..c1127dfeb520 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListTablesResponse.php @@ -0,0 +1,110 @@ +google.bigtable.admin.v2.ListTablesResponse + */ +class ListTablesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The tables present in the requested instance. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.Table tables = 1; + */ + private $tables; + /** + * Set if not all tables could be returned in a single response. + * Pass this value to `page_token` in another request to get the next + * page of results. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\Table[] $tables + * The tables present in the requested instance. + * @type string $next_page_token + * Set if not all tables could be returned in a single response. + * Pass this value to `page_token` in another request to get the next + * page of results. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The tables present in the requested instance. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.Table tables = 1; + * @return RepeatedField<\Google\Cloud\Bigtable\Admin\V2\Table> + */ + public function getTables() + { + return $this->tables; + } + + /** + * The tables present in the requested instance. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.Table tables = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\Table[] $var + * @return $this + */ + public function setTables($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\Table::class); + $this->tables = $arr; + + return $this; + } + + /** + * Set if not all tables could be returned in a single response. + * Pass this value to `page_token` in another request to get the next + * page of results. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Set if not all tables could be returned in a single response. + * Pass this value to `page_token` in another request to get the next + * page of results. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/LogicalView.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/LogicalView.php new file mode 100644 index 000000000000..5e5b780bfaf6 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/LogicalView.php @@ -0,0 +1,189 @@ +google.bigtable.admin.v2.LogicalView + */ +class LogicalView extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The unique name of the logical view. + * Format: + * `projects/{project}/instances/{instance}/logicalViews/{logical_view}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Required. The logical view's select query. + * + * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $query = ''; + /** + * Optional. The etag for this logical view. + * This may be sent on update requests to ensure that the client has an + * up-to-date value before proceeding. The server returns an ABORTED error on + * a mismatched etag. + * + * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + /** + * Optional. Set to true to make the LogicalView protected against deletion. + * + * Generated from protobuf field bool deletion_protection = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $deletion_protection = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The unique name of the logical view. + * Format: + * `projects/{project}/instances/{instance}/logicalViews/{logical_view}` + * @type string $query + * Required. The logical view's select query. + * @type string $etag + * Optional. The etag for this logical view. + * This may be sent on update requests to ensure that the client has an + * up-to-date value before proceeding. The server returns an ABORTED error on + * a mismatched etag. + * @type bool $deletion_protection + * Optional. Set to true to make the LogicalView protected against deletion. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Instance::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The unique name of the logical view. + * Format: + * `projects/{project}/instances/{instance}/logicalViews/{logical_view}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The unique name of the logical view. + * Format: + * `projects/{project}/instances/{instance}/logicalViews/{logical_view}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The logical view's select query. + * + * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getQuery() + { + return $this->query; + } + + /** + * Required. The logical view's select query. + * + * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkString($var, True); + $this->query = $var; + + return $this; + } + + /** + * Optional. The etag for this logical view. + * This may be sent on update requests to ensure that the client has an + * up-to-date value before proceeding. The server returns an ABORTED error on + * a mismatched etag. + * + * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. The etag for this logical view. + * This may be sent on update requests to ensure that the client has an + * up-to-date value before proceeding. The server returns an ABORTED error on + * a mismatched etag. + * + * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Optional. Set to true to make the LogicalView protected against deletion. + * + * Generated from protobuf field bool deletion_protection = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getDeletionProtection() + { + return $this->deletion_protection; + } + + /** + * Optional. Set to true to make the LogicalView protected against deletion. + * + * Generated from protobuf field bool deletion_protection = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setDeletionProtection($var) + { + GPBUtil::checkBool($var); + $this->deletion_protection = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/MaterializedView.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/MaterializedView.php new file mode 100644 index 000000000000..424ccf0c098e --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/MaterializedView.php @@ -0,0 +1,189 @@ +google.bigtable.admin.v2.MaterializedView + */ +class MaterializedView extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The unique name of the materialized view. + * Format: + * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Required. Immutable. The materialized view's select query. + * + * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $query = ''; + /** + * Optional. The etag for this materialized view. + * This may be sent on update requests to ensure that the client has an + * up-to-date value before proceeding. The server returns an ABORTED error on + * a mismatched etag. + * + * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + /** + * Set to true to make the MaterializedView protected against deletion. + * + * Generated from protobuf field bool deletion_protection = 6; + */ + protected $deletion_protection = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The unique name of the materialized view. + * Format: + * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}` + * @type string $query + * Required. Immutable. The materialized view's select query. + * @type string $etag + * Optional. The etag for this materialized view. + * This may be sent on update requests to ensure that the client has an + * up-to-date value before proceeding. The server returns an ABORTED error on + * a mismatched etag. + * @type bool $deletion_protection + * Set to true to make the MaterializedView protected against deletion. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Instance::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The unique name of the materialized view. + * Format: + * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The unique name of the materialized view. + * Format: + * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. Immutable. The materialized view's select query. + * + * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getQuery() + { + return $this->query; + } + + /** + * Required. Immutable. The materialized view's select query. + * + * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkString($var, True); + $this->query = $var; + + return $this; + } + + /** + * Optional. The etag for this materialized view. + * This may be sent on update requests to ensure that the client has an + * up-to-date value before proceeding. The server returns an ABORTED error on + * a mismatched etag. + * + * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. The etag for this materialized view. + * This may be sent on update requests to ensure that the client has an + * up-to-date value before proceeding. The server returns an ABORTED error on + * a mismatched etag. + * + * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Set to true to make the MaterializedView protected against deletion. + * + * Generated from protobuf field bool deletion_protection = 6; + * @return bool + */ + public function getDeletionProtection() + { + return $this->deletion_protection; + } + + /** + * Set to true to make the MaterializedView protected against deletion. + * + * Generated from protobuf field bool deletion_protection = 6; + * @param bool $var + * @return $this + */ + public function setDeletionProtection($var) + { + GPBUtil::checkBool($var); + $this->deletion_protection = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ModifyColumnFamiliesRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ModifyColumnFamiliesRequest.php new file mode 100644 index 000000000000..45a0468fc18e --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ModifyColumnFamiliesRequest.php @@ -0,0 +1,177 @@ +google.bigtable.admin.v2.ModifyColumnFamiliesRequest + */ +class ModifyColumnFamiliesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the table whose families should be modified. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. Modifications to be atomically applied to the specified table's + * families. Entries are applied in order, meaning that earlier modifications + * can be masked by later ones (in the case of repeated updates to the same + * family, for example). + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification modifications = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $modifications; + /** + * Optional. If true, ignore safety checks when modifying the column families. + * + * Generated from protobuf field bool ignore_warnings = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $ignore_warnings = false; + + /** + * @param string $name Required. The unique name of the table whose families should be modified. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. Please see + * {@see BigtableTableAdminClient::tableName()} for help formatting this field. + * @param \Google\Cloud\Bigtable\Admin\V2\ModifyColumnFamiliesRequest\Modification[] $modifications Required. Modifications to be atomically applied to the specified table's + * families. Entries are applied in order, meaning that earlier modifications + * can be masked by later ones (in the case of repeated updates to the same + * family, for example). + * + * @return \Google\Cloud\Bigtable\Admin\V2\ModifyColumnFamiliesRequest + * + * @experimental + */ + public static function build(string $name, array $modifications): self + { + return (new self()) + ->setName($name) + ->setModifications($modifications); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The unique name of the table whose families should be modified. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * @type \Google\Cloud\Bigtable\Admin\V2\ModifyColumnFamiliesRequest\Modification[] $modifications + * Required. Modifications to be atomically applied to the specified table's + * families. Entries are applied in order, meaning that earlier modifications + * can be masked by later ones (in the case of repeated updates to the same + * family, for example). + * @type bool $ignore_warnings + * Optional. If true, ignore safety checks when modifying the column families. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the table whose families should be modified. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The unique name of the table whose families should be modified. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. Modifications to be atomically applied to the specified table's + * families. Entries are applied in order, meaning that earlier modifications + * can be masked by later ones (in the case of repeated updates to the same + * family, for example). + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification modifications = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\Bigtable\Admin\V2\ModifyColumnFamiliesRequest\Modification> + */ + public function getModifications() + { + return $this->modifications; + } + + /** + * Required. Modifications to be atomically applied to the specified table's + * families. Entries are applied in order, meaning that earlier modifications + * can be masked by later ones (in the case of repeated updates to the same + * family, for example). + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification modifications = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Bigtable\Admin\V2\ModifyColumnFamiliesRequest\Modification[] $var + * @return $this + */ + public function setModifications($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\ModifyColumnFamiliesRequest\Modification::class); + $this->modifications = $arr; + + return $this; + } + + /** + * Optional. If true, ignore safety checks when modifying the column families. + * + * Generated from protobuf field bool ignore_warnings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getIgnoreWarnings() + { + return $this->ignore_warnings; + } + + /** + * Optional. If true, ignore safety checks when modifying the column families. + * + * Generated from protobuf field bool ignore_warnings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setIgnoreWarnings($var) + { + GPBUtil::checkBool($var); + $this->ignore_warnings = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ModifyColumnFamiliesRequest/Modification.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ModifyColumnFamiliesRequest/Modification.php new file mode 100644 index 000000000000..7ff496a85e7b --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ModifyColumnFamiliesRequest/Modification.php @@ -0,0 +1,236 @@ +google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification + */ +class Modification extends \Google\Protobuf\Internal\Message +{ + /** + * The ID of the column family to be modified. + * + * Generated from protobuf field string id = 1; + */ + protected $id = ''; + /** + * Optional. A mask specifying which fields (e.g. `gc_rule`) in the `update` + * mod should be updated, ignored for other modification types. If unset or + * empty, we treat it as updating `gc_rule` to be backward compatible. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + protected $mod; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * The ID of the column family to be modified. + * @type \Google\Cloud\Bigtable\Admin\V2\ColumnFamily $create + * Create a new column family with the specified schema, or fail if + * one already exists with the given ID. + * @type \Google\Cloud\Bigtable\Admin\V2\ColumnFamily $update + * Update an existing column family to the specified schema, or fail + * if no column family exists with the given ID. + * @type bool $drop + * Drop (delete) the column family with the given ID, or fail if no such + * family exists. + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. A mask specifying which fields (e.g. `gc_rule`) in the `update` + * mod should be updated, ignored for other modification types. If unset or + * empty, we treat it as updating `gc_rule` to be backward compatible. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The ID of the column family to be modified. + * + * Generated from protobuf field string id = 1; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * The ID of the column family to be modified. + * + * Generated from protobuf field string id = 1; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Create a new column family with the specified schema, or fail if + * one already exists with the given ID. + * + * Generated from protobuf field .google.bigtable.admin.v2.ColumnFamily create = 2; + * @return \Google\Cloud\Bigtable\Admin\V2\ColumnFamily|null + */ + public function getCreate() + { + return $this->readOneof(2); + } + + public function hasCreate() + { + return $this->hasOneof(2); + } + + /** + * Create a new column family with the specified schema, or fail if + * one already exists with the given ID. + * + * Generated from protobuf field .google.bigtable.admin.v2.ColumnFamily create = 2; + * @param \Google\Cloud\Bigtable\Admin\V2\ColumnFamily $var + * @return $this + */ + public function setCreate($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\ColumnFamily::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Update an existing column family to the specified schema, or fail + * if no column family exists with the given ID. + * + * Generated from protobuf field .google.bigtable.admin.v2.ColumnFamily update = 3; + * @return \Google\Cloud\Bigtable\Admin\V2\ColumnFamily|null + */ + public function getUpdate() + { + return $this->readOneof(3); + } + + public function hasUpdate() + { + return $this->hasOneof(3); + } + + /** + * Update an existing column family to the specified schema, or fail + * if no column family exists with the given ID. + * + * Generated from protobuf field .google.bigtable.admin.v2.ColumnFamily update = 3; + * @param \Google\Cloud\Bigtable\Admin\V2\ColumnFamily $var + * @return $this + */ + public function setUpdate($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\ColumnFamily::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Drop (delete) the column family with the given ID, or fail if no such + * family exists. + * + * Generated from protobuf field bool drop = 4; + * @return bool + */ + public function getDrop() + { + return $this->readOneof(4); + } + + public function hasDrop() + { + return $this->hasOneof(4); + } + + /** + * Drop (delete) the column family with the given ID, or fail if no such + * family exists. + * + * Generated from protobuf field bool drop = 4; + * @param bool $var + * @return $this + */ + public function setDrop($var) + { + GPBUtil::checkBool($var); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Optional. A mask specifying which fields (e.g. `gc_rule`) in the `update` + * mod should be updated, ignored for other modification types. If unset or + * empty, we treat it as updating `gc_rule` to be backward compatible. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Optional. A mask specifying which fields (e.g. `gc_rule`) in the `update` + * mod should be updated, ignored for other modification types. If unset or + * empty, we treat it as updating `gc_rule` to be backward compatible. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * @return string + */ + public function getMod() + { + return $this->whichOneof("mod"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/OperationProgress.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/OperationProgress.php new file mode 100644 index 000000000000..48a295008362 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/OperationProgress.php @@ -0,0 +1,164 @@ +google.bigtable.admin.v2.OperationProgress + */ +class OperationProgress extends \Google\Protobuf\Internal\Message +{ + /** + * Percent completion of the operation. + * Values are between 0 and 100 inclusive. + * + * Generated from protobuf field int32 progress_percent = 1; + */ + protected $progress_percent = 0; + /** + * Time the request was received. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + */ + protected $start_time = null; + /** + * If set, the time at which this operation failed or was completed + * successfully. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; + */ + protected $end_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $progress_percent + * Percent completion of the operation. + * Values are between 0 and 100 inclusive. + * @type \Google\Protobuf\Timestamp $start_time + * Time the request was received. + * @type \Google\Protobuf\Timestamp $end_time + * If set, the time at which this operation failed or was completed + * successfully. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Common::initOnce(); + parent::__construct($data); + } + + /** + * Percent completion of the operation. + * Values are between 0 and 100 inclusive. + * + * Generated from protobuf field int32 progress_percent = 1; + * @return int + */ + public function getProgressPercent() + { + return $this->progress_percent; + } + + /** + * Percent completion of the operation. + * Values are between 0 and 100 inclusive. + * + * Generated from protobuf field int32 progress_percent = 1; + * @param int $var + * @return $this + */ + public function setProgressPercent($var) + { + GPBUtil::checkInt32($var); + $this->progress_percent = $var; + + return $this; + } + + /** + * Time the request was received. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getStartTime() + { + return $this->start_time; + } + + public function hasStartTime() + { + return isset($this->start_time); + } + + public function clearStartTime() + { + unset($this->start_time); + } + + /** + * Time the request was received. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * If set, the time at which this operation failed or was completed + * successfully. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; + * @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); + } + + /** + * If set, the time at which this operation failed or was completed + * successfully. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/OptimizeRestoredTableMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/OptimizeRestoredTableMetadata.php new file mode 100644 index 000000000000..f3a663ffebe4 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/OptimizeRestoredTableMetadata.php @@ -0,0 +1,114 @@ +google.bigtable.admin.v2.OptimizeRestoredTableMetadata + */ +class OptimizeRestoredTableMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Name of the restored table being optimized. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * The progress of the post-restore optimizations. + * + * Generated from protobuf field .google.bigtable.admin.v2.OperationProgress progress = 2; + */ + protected $progress = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Name of the restored table being optimized. + * @type \Google\Cloud\Bigtable\Admin\V2\OperationProgress $progress + * The progress of the post-restore optimizations. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Name of the restored table being optimized. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Name of the restored table being optimized. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The progress of the post-restore optimizations. + * + * Generated from protobuf field .google.bigtable.admin.v2.OperationProgress progress = 2; + * @return \Google\Cloud\Bigtable\Admin\V2\OperationProgress|null + */ + public function getProgress() + { + return $this->progress; + } + + public function hasProgress() + { + return isset($this->progress); + } + + public function clearProgress() + { + unset($this->progress); + } + + /** + * The progress of the post-restore optimizations. + * + * Generated from protobuf field .google.bigtable.admin.v2.OperationProgress progress = 2; + * @param \Google\Cloud\Bigtable\Admin\V2\OperationProgress $var + * @return $this + */ + public function setProgress($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\OperationProgress::class); + $this->progress = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/PartialUpdateClusterMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/PartialUpdateClusterMetadata.php new file mode 100644 index 000000000000..f789f773a9c8 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/PartialUpdateClusterMetadata.php @@ -0,0 +1,165 @@ +google.bigtable.admin.v2.PartialUpdateClusterMetadata + */ +class PartialUpdateClusterMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The time at which the original request was received. + * + * Generated from protobuf field .google.protobuf.Timestamp request_time = 1; + */ + protected $request_time = null; + /** + * The time at which the operation failed or was completed successfully. + * + * Generated from protobuf field .google.protobuf.Timestamp finish_time = 2; + */ + protected $finish_time = null; + /** + * The original request for PartialUpdateCluster. + * + * Generated from protobuf field .google.bigtable.admin.v2.PartialUpdateClusterRequest original_request = 3; + */ + protected $original_request = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $request_time + * The time at which the original request was received. + * @type \Google\Protobuf\Timestamp $finish_time + * The time at which the operation failed or was completed successfully. + * @type \Google\Cloud\Bigtable\Admin\V2\PartialUpdateClusterRequest $original_request + * The original request for PartialUpdateCluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The time at which the original request was received. + * + * Generated from protobuf field .google.protobuf.Timestamp request_time = 1; + * @return \Google\Protobuf\Timestamp|null + */ + public function getRequestTime() + { + return $this->request_time; + } + + public function hasRequestTime() + { + return isset($this->request_time); + } + + public function clearRequestTime() + { + unset($this->request_time); + } + + /** + * The time at which the original request was received. + * + * Generated from protobuf field .google.protobuf.Timestamp request_time = 1; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setRequestTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->request_time = $var; + + return $this; + } + + /** + * The time at which the operation failed or was completed successfully. + * + * Generated from protobuf field .google.protobuf.Timestamp finish_time = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getFinishTime() + { + return $this->finish_time; + } + + public function hasFinishTime() + { + return isset($this->finish_time); + } + + public function clearFinishTime() + { + unset($this->finish_time); + } + + /** + * The time at which the operation failed or was completed successfully. + * + * Generated from protobuf field .google.protobuf.Timestamp finish_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setFinishTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->finish_time = $var; + + return $this; + } + + /** + * The original request for PartialUpdateCluster. + * + * Generated from protobuf field .google.bigtable.admin.v2.PartialUpdateClusterRequest original_request = 3; + * @return \Google\Cloud\Bigtable\Admin\V2\PartialUpdateClusterRequest|null + */ + public function getOriginalRequest() + { + return $this->original_request; + } + + public function hasOriginalRequest() + { + return isset($this->original_request); + } + + public function clearOriginalRequest() + { + unset($this->original_request); + } + + /** + * The original request for PartialUpdateCluster. + * + * Generated from protobuf field .google.bigtable.admin.v2.PartialUpdateClusterRequest original_request = 3; + * @param \Google\Cloud\Bigtable\Admin\V2\PartialUpdateClusterRequest $var + * @return $this + */ + public function setOriginalRequest($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\PartialUpdateClusterRequest::class); + $this->original_request = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/PartialUpdateClusterRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/PartialUpdateClusterRequest.php new file mode 100644 index 000000000000..53d6441df8fb --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/PartialUpdateClusterRequest.php @@ -0,0 +1,141 @@ +google.bigtable.admin.v2.PartialUpdateClusterRequest + */ +class PartialUpdateClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The Cluster which contains the partial updates to be applied, + * subject to the update_mask. + * + * Generated from protobuf field .google.bigtable.admin.v2.Cluster cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $cluster = null; + /** + * Required. The subset of Cluster fields which should be replaced. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\Bigtable\Admin\V2\Cluster $cluster Required. The Cluster which contains the partial updates to be applied, + * subject to the update_mask. + * @param \Google\Protobuf\FieldMask $updateMask Required. The subset of Cluster fields which should be replaced. + * + * @return \Google\Cloud\Bigtable\Admin\V2\PartialUpdateClusterRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Bigtable\Admin\V2\Cluster $cluster, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setCluster($cluster) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\Cluster $cluster + * Required. The Cluster which contains the partial updates to be applied, + * subject to the update_mask. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The subset of Cluster fields which should be replaced. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The Cluster which contains the partial updates to be applied, + * subject to the update_mask. + * + * Generated from protobuf field .google.bigtable.admin.v2.Cluster cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Bigtable\Admin\V2\Cluster|null + */ + public function getCluster() + { + return $this->cluster; + } + + public function hasCluster() + { + return isset($this->cluster); + } + + public function clearCluster() + { + unset($this->cluster); + } + + /** + * Required. The Cluster which contains the partial updates to be applied, + * subject to the update_mask. + * + * Generated from protobuf field .google.bigtable.admin.v2.Cluster cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Bigtable\Admin\V2\Cluster $var + * @return $this + */ + public function setCluster($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Cluster::class); + $this->cluster = $var; + + return $this; + } + + /** + * Required. The subset of Cluster fields which should be replaced. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The subset of Cluster fields which should be replaced. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/PartialUpdateInstanceRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/PartialUpdateInstanceRequest.php new file mode 100644 index 000000000000..cbfedfdd991b --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/PartialUpdateInstanceRequest.php @@ -0,0 +1,141 @@ +google.bigtable.admin.v2.PartialUpdateInstanceRequest + */ +class PartialUpdateInstanceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The Instance which will (partially) replace the current value. + * + * Generated from protobuf field .google.bigtable.admin.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $instance = null; + /** + * Required. The subset of Instance fields which should be replaced. + * Must be explicitly set. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\Bigtable\Admin\V2\Instance $instance Required. The Instance which will (partially) replace the current value. + * @param \Google\Protobuf\FieldMask $updateMask Required. The subset of Instance fields which should be replaced. + * Must be explicitly set. + * + * @return \Google\Cloud\Bigtable\Admin\V2\PartialUpdateInstanceRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Bigtable\Admin\V2\Instance $instance, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setInstance($instance) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\Instance $instance + * Required. The Instance which will (partially) replace the current value. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The subset of Instance fields which should be replaced. + * Must be explicitly set. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The Instance which will (partially) replace the current value. + * + * Generated from protobuf field .google.bigtable.admin.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Bigtable\Admin\V2\Instance|null + */ + public function getInstance() + { + return $this->instance; + } + + public function hasInstance() + { + return isset($this->instance); + } + + public function clearInstance() + { + unset($this->instance); + } + + /** + * Required. The Instance which will (partially) replace the current value. + * + * Generated from protobuf field .google.bigtable.admin.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Bigtable\Admin\V2\Instance $var + * @return $this + */ + public function setInstance($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Instance::class); + $this->instance = $var; + + return $this; + } + + /** + * Required. The subset of Instance fields which should be replaced. + * Must be explicitly set. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The subset of Instance fields which should be replaced. + * Must be explicitly set. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ProtoSchema.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ProtoSchema.php new file mode 100644 index 000000000000..1a0c279fa73c --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ProtoSchema.php @@ -0,0 +1,123 @@ +google.bigtable.admin.v2.ProtoSchema + */ +class ProtoSchema extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Contains a protobuf-serialized + * [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto), + * which could include multiple proto files. + * To generate it, [install](https://grpc.io/docs/protoc-installation/) and + * run `protoc` with + * `--include_imports` and `--descriptor_set_out`. For example, to generate + * for moon/shot/app.proto, run + * ``` + * $protoc --proto_path=/app_path --proto_path=/lib_path \ + * --include_imports \ + * --descriptor_set_out=descriptors.pb \ + * moon/shot/app.proto + * ``` + * For more details, see protobuffer [self + * description](https://developers.google.com/protocol-buffers/docs/techniques#self-description). + * + * Generated from protobuf field bytes proto_descriptors = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $proto_descriptors = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $proto_descriptors + * Required. Contains a protobuf-serialized + * [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto), + * which could include multiple proto files. + * To generate it, [install](https://grpc.io/docs/protoc-installation/) and + * run `protoc` with + * `--include_imports` and `--descriptor_set_out`. For example, to generate + * for moon/shot/app.proto, run + * ``` + * $protoc --proto_path=/app_path --proto_path=/lib_path \ + * --include_imports \ + * --descriptor_set_out=descriptors.pb \ + * moon/shot/app.proto + * ``` + * For more details, see protobuffer [self + * description](https://developers.google.com/protocol-buffers/docs/techniques#self-description). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); + parent::__construct($data); + } + + /** + * Required. Contains a protobuf-serialized + * [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto), + * which could include multiple proto files. + * To generate it, [install](https://grpc.io/docs/protoc-installation/) and + * run `protoc` with + * `--include_imports` and `--descriptor_set_out`. For example, to generate + * for moon/shot/app.proto, run + * ``` + * $protoc --proto_path=/app_path --proto_path=/lib_path \ + * --include_imports \ + * --descriptor_set_out=descriptors.pb \ + * moon/shot/app.proto + * ``` + * For more details, see protobuffer [self + * description](https://developers.google.com/protocol-buffers/docs/techniques#self-description). + * + * Generated from protobuf field bytes proto_descriptors = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getProtoDescriptors() + { + return $this->proto_descriptors; + } + + /** + * Required. Contains a protobuf-serialized + * [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto), + * which could include multiple proto files. + * To generate it, [install](https://grpc.io/docs/protoc-installation/) and + * run `protoc` with + * `--include_imports` and `--descriptor_set_out`. For example, to generate + * for moon/shot/app.proto, run + * ``` + * $protoc --proto_path=/app_path --proto_path=/lib_path \ + * --include_imports \ + * --descriptor_set_out=descriptors.pb \ + * moon/shot/app.proto + * ``` + * For more details, see protobuffer [self + * description](https://developers.google.com/protocol-buffers/docs/techniques#self-description). + * + * Generated from protobuf field bytes proto_descriptors = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setProtoDescriptors($var) + { + GPBUtil::checkString($var, False); + $this->proto_descriptors = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/RestoreInfo.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/RestoreInfo.php new file mode 100644 index 000000000000..2eb860b8226b --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/RestoreInfo.php @@ -0,0 +1,112 @@ +google.bigtable.admin.v2.RestoreInfo + */ +class RestoreInfo extends \Google\Protobuf\Internal\Message +{ + /** + * The type of the restore source. + * + * Generated from protobuf field .google.bigtable.admin.v2.RestoreSourceType source_type = 1; + */ + protected $source_type = 0; + protected $source_info; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $source_type + * The type of the restore source. + * @type \Google\Cloud\Bigtable\Admin\V2\BackupInfo $backup_info + * Information about the backup used to restore the table. The backup + * may no longer exist. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); + parent::__construct($data); + } + + /** + * The type of the restore source. + * + * Generated from protobuf field .google.bigtable.admin.v2.RestoreSourceType source_type = 1; + * @return int + */ + public function getSourceType() + { + return $this->source_type; + } + + /** + * The type of the restore source. + * + * Generated from protobuf field .google.bigtable.admin.v2.RestoreSourceType source_type = 1; + * @param int $var + * @return $this + */ + public function setSourceType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\RestoreSourceType::class); + $this->source_type = $var; + + return $this; + } + + /** + * Information about the backup used to restore the table. The backup + * may no longer exist. + * + * Generated from protobuf field .google.bigtable.admin.v2.BackupInfo backup_info = 2; + * @return \Google\Cloud\Bigtable\Admin\V2\BackupInfo|null + */ + public function getBackupInfo() + { + return $this->readOneof(2); + } + + public function hasBackupInfo() + { + return $this->hasOneof(2); + } + + /** + * Information about the backup used to restore the table. The backup + * may no longer exist. + * + * Generated from protobuf field .google.bigtable.admin.v2.BackupInfo backup_info = 2; + * @param \Google\Cloud\Bigtable\Admin\V2\BackupInfo $var + * @return $this + */ + public function setBackupInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\BackupInfo::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getSourceInfo() + { + return $this->whichOneof("source_info"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/RestoreSourceType.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/RestoreSourceType.php new file mode 100644 index 000000000000..f69bc82f8d8a --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/RestoreSourceType.php @@ -0,0 +1,54 @@ +google.bigtable.admin.v2.RestoreSourceType + */ +class RestoreSourceType +{ + /** + * No restore associated. + * + * Generated from protobuf enum RESTORE_SOURCE_TYPE_UNSPECIFIED = 0; + */ + const RESTORE_SOURCE_TYPE_UNSPECIFIED = 0; + /** + * A backup was used as the source of the restore. + * + * Generated from protobuf enum BACKUP = 1; + */ + const BACKUP = 1; + + private static $valueToName = [ + self::RESTORE_SOURCE_TYPE_UNSPECIFIED => 'RESTORE_SOURCE_TYPE_UNSPECIFIED', + self::BACKUP => 'BACKUP', + ]; + + 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/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/RestoreTableMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/RestoreTableMetadata.php new file mode 100644 index 000000000000..7f28a6913149 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/RestoreTableMetadata.php @@ -0,0 +1,257 @@ +google.bigtable.admin.v2.RestoreTableMetadata + */ +class RestoreTableMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Name of the table being created and restored to. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * The type of the restore source. + * + * Generated from protobuf field .google.bigtable.admin.v2.RestoreSourceType source_type = 2; + */ + protected $source_type = 0; + /** + * If exists, the name of the long-running operation that will be used to + * track the post-restore optimization process to optimize the performance of + * the restored table. The metadata type of the long-running operation is + * [OptimizeRestoreTableMetadata][]. The response type is + * [Empty][google.protobuf.Empty]. This long-running operation may be + * automatically created by the system if applicable after the + * RestoreTable long-running operation completes successfully. This operation + * may not be created if the table is already optimized or the restore was + * not successful. + * + * Generated from protobuf field string optimize_table_operation_name = 4; + */ + protected $optimize_table_operation_name = ''; + /** + * The progress of the + * [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable] + * operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.OperationProgress progress = 5; + */ + protected $progress = null; + protected $source_info; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Name of the table being created and restored to. + * @type int $source_type + * The type of the restore source. + * @type \Google\Cloud\Bigtable\Admin\V2\BackupInfo $backup_info + * @type string $optimize_table_operation_name + * If exists, the name of the long-running operation that will be used to + * track the post-restore optimization process to optimize the performance of + * the restored table. The metadata type of the long-running operation is + * [OptimizeRestoreTableMetadata][]. The response type is + * [Empty][google.protobuf.Empty]. This long-running operation may be + * automatically created by the system if applicable after the + * RestoreTable long-running operation completes successfully. This operation + * may not be created if the table is already optimized or the restore was + * not successful. + * @type \Google\Cloud\Bigtable\Admin\V2\OperationProgress $progress + * The progress of the + * [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable] + * operation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Name of the table being created and restored to. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Name of the table being created and restored to. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The type of the restore source. + * + * Generated from protobuf field .google.bigtable.admin.v2.RestoreSourceType source_type = 2; + * @return int + */ + public function getSourceType() + { + return $this->source_type; + } + + /** + * The type of the restore source. + * + * Generated from protobuf field .google.bigtable.admin.v2.RestoreSourceType source_type = 2; + * @param int $var + * @return $this + */ + public function setSourceType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\RestoreSourceType::class); + $this->source_type = $var; + + return $this; + } + + /** + * Generated from protobuf field .google.bigtable.admin.v2.BackupInfo backup_info = 3; + * @return \Google\Cloud\Bigtable\Admin\V2\BackupInfo|null + */ + public function getBackupInfo() + { + return $this->readOneof(3); + } + + public function hasBackupInfo() + { + return $this->hasOneof(3); + } + + /** + * Generated from protobuf field .google.bigtable.admin.v2.BackupInfo backup_info = 3; + * @param \Google\Cloud\Bigtable\Admin\V2\BackupInfo $var + * @return $this + */ + public function setBackupInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\BackupInfo::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * If exists, the name of the long-running operation that will be used to + * track the post-restore optimization process to optimize the performance of + * the restored table. The metadata type of the long-running operation is + * [OptimizeRestoreTableMetadata][]. The response type is + * [Empty][google.protobuf.Empty]. This long-running operation may be + * automatically created by the system if applicable after the + * RestoreTable long-running operation completes successfully. This operation + * may not be created if the table is already optimized or the restore was + * not successful. + * + * Generated from protobuf field string optimize_table_operation_name = 4; + * @return string + */ + public function getOptimizeTableOperationName() + { + return $this->optimize_table_operation_name; + } + + /** + * If exists, the name of the long-running operation that will be used to + * track the post-restore optimization process to optimize the performance of + * the restored table. The metadata type of the long-running operation is + * [OptimizeRestoreTableMetadata][]. The response type is + * [Empty][google.protobuf.Empty]. This long-running operation may be + * automatically created by the system if applicable after the + * RestoreTable long-running operation completes successfully. This operation + * may not be created if the table is already optimized or the restore was + * not successful. + * + * Generated from protobuf field string optimize_table_operation_name = 4; + * @param string $var + * @return $this + */ + public function setOptimizeTableOperationName($var) + { + GPBUtil::checkString($var, True); + $this->optimize_table_operation_name = $var; + + return $this; + } + + /** + * The progress of the + * [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable] + * operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.OperationProgress progress = 5; + * @return \Google\Cloud\Bigtable\Admin\V2\OperationProgress|null + */ + public function getProgress() + { + return $this->progress; + } + + public function hasProgress() + { + return isset($this->progress); + } + + public function clearProgress() + { + unset($this->progress); + } + + /** + * The progress of the + * [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable] + * operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.OperationProgress progress = 5; + * @param \Google\Cloud\Bigtable\Admin\V2\OperationProgress $var + * @return $this + */ + public function setProgress($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\OperationProgress::class); + $this->progress = $var; + + return $this; + } + + /** + * @return string + */ + public function getSourceInfo() + { + return $this->whichOneof("source_info"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/RestoreTableRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/RestoreTableRequest.php new file mode 100644 index 000000000000..47beb2eedce4 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/RestoreTableRequest.php @@ -0,0 +1,163 @@ +google.bigtable.admin.v2.RestoreTableRequest + */ +class RestoreTableRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the instance in which to create the restored + * table. Values are of the form `projects//instances/`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The id of the table to create and restore to. This + * table must not already exist. The `table_id` appended to + * `parent` forms the full table name of the form + * `projects//instances//tables/`. + * + * Generated from protobuf field string table_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $table_id = ''; + protected $source; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The name of the instance in which to create the restored + * table. Values are of the form `projects//instances/`. + * @type string $table_id + * Required. The id of the table to create and restore to. This + * table must not already exist. The `table_id` appended to + * `parent` forms the full table name of the form + * `projects//instances//tables/`. + * @type string $backup + * Name of the backup from which to restore. Values are of the form + * `projects//instances//clusters//backups/`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the instance in which to create the restored + * table. Values are of the form `projects//instances/`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The name of the instance in which to create the restored + * table. Values are of the form `projects//instances/`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The id of the table to create and restore to. This + * table must not already exist. The `table_id` appended to + * `parent` forms the full table name of the form + * `projects//instances//tables/`. + * + * Generated from protobuf field string table_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getTableId() + { + return $this->table_id; + } + + /** + * Required. The id of the table to create and restore to. This + * table must not already exist. The `table_id` appended to + * `parent` forms the full table name of the form + * `projects//instances//tables/`. + * + * Generated from protobuf field string table_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setTableId($var) + { + GPBUtil::checkString($var, True); + $this->table_id = $var; + + return $this; + } + + /** + * Name of the backup from which to restore. Values are of the form + * `projects//instances//clusters//backups/`. + * + * Generated from protobuf field string backup = 3 [(.google.api.resource_reference) = { + * @return string + */ + public function getBackup() + { + return $this->readOneof(3); + } + + public function hasBackup() + { + return $this->hasOneof(3); + } + + /** + * Name of the backup from which to restore. Values are of the form + * `projects//instances//clusters//backups/`. + * + * Generated from protobuf field string backup = 3 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setBackup($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getSource() + { + return $this->whichOneof("source"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/SchemaBundle.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/SchemaBundle.php new file mode 100644 index 000000000000..b728233c5d62 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/SchemaBundle.php @@ -0,0 +1,163 @@ +google.bigtable.admin.v2.SchemaBundle + */ +class SchemaBundle extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The unique name identifying this schema bundle. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Optional. The etag for this schema bundle. + * This may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. The server + * returns an ABORTED error on a mismatched etag. + * + * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + protected $type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The unique name identifying this schema bundle. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + * @type \Google\Cloud\Bigtable\Admin\V2\ProtoSchema $proto_schema + * Schema for Protobufs. + * @type string $etag + * Optional. The etag for this schema bundle. + * This may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. The server + * returns an ABORTED error on a mismatched etag. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The unique name identifying this schema bundle. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The unique name identifying this schema bundle. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Schema for Protobufs. + * + * Generated from protobuf field .google.bigtable.admin.v2.ProtoSchema proto_schema = 2; + * @return \Google\Cloud\Bigtable\Admin\V2\ProtoSchema|null + */ + public function getProtoSchema() + { + return $this->readOneof(2); + } + + public function hasProtoSchema() + { + return $this->hasOneof(2); + } + + /** + * Schema for Protobufs. + * + * Generated from protobuf field .google.bigtable.admin.v2.ProtoSchema proto_schema = 2; + * @param \Google\Cloud\Bigtable\Admin\V2\ProtoSchema $var + * @return $this + */ + public function setProtoSchema($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\ProtoSchema::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Optional. The etag for this schema bundle. + * This may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. The server + * returns an ABORTED error on a mismatched etag. + * + * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. The etag for this schema bundle. + * This may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. The server + * returns an ABORTED error on a mismatched etag. + * + * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * @return string + */ + public function getType() + { + return $this->whichOneof("type"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Snapshot.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Snapshot.php new file mode 100644 index 000000000000..a83c939824bf --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Snapshot.php @@ -0,0 +1,334 @@ +google.bigtable.admin.v2.Snapshot + */ +class Snapshot extends \Google\Protobuf\Internal\Message +{ + /** + * The unique name of the snapshot. + * Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Output only. The source table at the time the snapshot was taken. + * + * Generated from protobuf field .google.bigtable.admin.v2.Table source_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $source_table = null; + /** + * Output only. The size of the data in the source table at the time the + * snapshot was taken. In some cases, this value may be computed + * asynchronously via a background process and a placeholder of 0 will be used + * in the meantime. + * + * Generated from protobuf field int64 data_size_bytes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $data_size_bytes = 0; + /** + * Output only. The time when the snapshot is created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * The time when the snapshot will be deleted. The maximum amount of time a + * snapshot can stay active is 365 days. If 'ttl' is not specified, + * the default maximum of 365 days will be used. + * + * Generated from protobuf field .google.protobuf.Timestamp delete_time = 5; + */ + protected $delete_time = null; + /** + * Output only. The current state of the snapshot. + * + * Generated from protobuf field .google.bigtable.admin.v2.Snapshot.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Description of the snapshot. + * + * Generated from protobuf field string description = 7; + */ + protected $description = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The unique name of the snapshot. + * Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + * @type \Google\Cloud\Bigtable\Admin\V2\Table $source_table + * Output only. The source table at the time the snapshot was taken. + * @type int|string $data_size_bytes + * Output only. The size of the data in the source table at the time the + * snapshot was taken. In some cases, this value may be computed + * asynchronously via a background process and a placeholder of 0 will be used + * in the meantime. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time when the snapshot is created. + * @type \Google\Protobuf\Timestamp $delete_time + * The time when the snapshot will be deleted. The maximum amount of time a + * snapshot can stay active is 365 days. If 'ttl' is not specified, + * the default maximum of 365 days will be used. + * @type int $state + * Output only. The current state of the snapshot. + * @type string $description + * Description of the snapshot. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); + parent::__construct($data); + } + + /** + * The unique name of the snapshot. + * Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The unique name of the snapshot. + * Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The source table at the time the snapshot was taken. + * + * Generated from protobuf field .google.bigtable.admin.v2.Table source_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Bigtable\Admin\V2\Table|null + */ + public function getSourceTable() + { + return $this->source_table; + } + + public function hasSourceTable() + { + return isset($this->source_table); + } + + public function clearSourceTable() + { + unset($this->source_table); + } + + /** + * Output only. The source table at the time the snapshot was taken. + * + * Generated from protobuf field .google.bigtable.admin.v2.Table source_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Bigtable\Admin\V2\Table $var + * @return $this + */ + public function setSourceTable($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Table::class); + $this->source_table = $var; + + return $this; + } + + /** + * Output only. The size of the data in the source table at the time the + * snapshot was taken. In some cases, this value may be computed + * asynchronously via a background process and a placeholder of 0 will be used + * in the meantime. + * + * Generated from protobuf field int64 data_size_bytes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getDataSizeBytes() + { + return $this->data_size_bytes; + } + + /** + * Output only. The size of the data in the source table at the time the + * snapshot was taken. In some cases, this value may be computed + * asynchronously via a background process and a placeholder of 0 will be used + * in the meantime. + * + * Generated from protobuf field int64 data_size_bytes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setDataSizeBytes($var) + { + GPBUtil::checkInt64($var); + $this->data_size_bytes = $var; + + return $this; + } + + /** + * Output only. The time when the snapshot is created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The time when the snapshot is created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * The time when the snapshot will be deleted. The maximum amount of time a + * snapshot can stay active is 365 days. If 'ttl' is not specified, + * the default maximum of 365 days will be used. + * + * Generated from protobuf field .google.protobuf.Timestamp delete_time = 5; + * @return \Google\Protobuf\Timestamp|null + */ + public function getDeleteTime() + { + return $this->delete_time; + } + + public function hasDeleteTime() + { + return isset($this->delete_time); + } + + public function clearDeleteTime() + { + unset($this->delete_time); + } + + /** + * The time when the snapshot will be deleted. The maximum amount of time a + * snapshot can stay active is 365 days. If 'ttl' is not specified, + * the default maximum of 365 days will be used. + * + * Generated from protobuf field .google.protobuf.Timestamp delete_time = 5; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setDeleteTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->delete_time = $var; + + return $this; + } + + /** + * Output only. The current state of the snapshot. + * + * Generated from protobuf field .google.bigtable.admin.v2.Snapshot.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. The current state of the snapshot. + * + * Generated from protobuf field .google.bigtable.admin.v2.Snapshot.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\Snapshot\State::class); + $this->state = $var; + + return $this; + } + + /** + * Description of the snapshot. + * + * Generated from protobuf field string description = 7; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Description of the snapshot. + * + * Generated from protobuf field string description = 7; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Snapshot/State.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Snapshot/State.php new file mode 100644 index 000000000000..e7cabe4033f7 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Snapshot/State.php @@ -0,0 +1,63 @@ +google.bigtable.admin.v2.Snapshot.State + */ +class State +{ + /** + * The state of the snapshot could not be determined. + * + * Generated from protobuf enum STATE_NOT_KNOWN = 0; + */ + const STATE_NOT_KNOWN = 0; + /** + * The snapshot has been successfully created and can serve all requests. + * + * Generated from protobuf enum READY = 1; + */ + const READY = 1; + /** + * The snapshot is currently being created, and may be destroyed if the + * creation process encounters an error. A snapshot may not be restored to a + * table while it is being created. + * + * Generated from protobuf enum CREATING = 2; + */ + const CREATING = 2; + + private static $valueToName = [ + self::STATE_NOT_KNOWN => 'STATE_NOT_KNOWN', + self::READY => 'READY', + self::CREATING => 'CREATING', + ]; + + 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/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/SnapshotTableMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/SnapshotTableMetadata.php new file mode 100644 index 000000000000..b8b0646de448 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/SnapshotTableMetadata.php @@ -0,0 +1,169 @@ +google.bigtable.admin.v2.SnapshotTableMetadata + */ +class SnapshotTableMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The request that prompted the initiation of this SnapshotTable operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.SnapshotTableRequest original_request = 1; + */ + protected $original_request = null; + /** + * The time at which the original request was received. + * + * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; + */ + protected $request_time = null; + /** + * The time at which the operation failed or was completed successfully. + * + * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; + */ + protected $finish_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\SnapshotTableRequest $original_request + * The request that prompted the initiation of this SnapshotTable operation. + * @type \Google\Protobuf\Timestamp $request_time + * The time at which the original request was received. + * @type \Google\Protobuf\Timestamp $finish_time + * The time at which the operation failed or was completed successfully. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The request that prompted the initiation of this SnapshotTable operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.SnapshotTableRequest original_request = 1; + * @return \Google\Cloud\Bigtable\Admin\V2\SnapshotTableRequest|null + */ + public function getOriginalRequest() + { + return $this->original_request; + } + + public function hasOriginalRequest() + { + return isset($this->original_request); + } + + public function clearOriginalRequest() + { + unset($this->original_request); + } + + /** + * The request that prompted the initiation of this SnapshotTable operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.SnapshotTableRequest original_request = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\SnapshotTableRequest $var + * @return $this + */ + public function setOriginalRequest($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\SnapshotTableRequest::class); + $this->original_request = $var; + + return $this; + } + + /** + * The time at which the original request was received. + * + * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getRequestTime() + { + return $this->request_time; + } + + public function hasRequestTime() + { + return isset($this->request_time); + } + + public function clearRequestTime() + { + unset($this->request_time); + } + + /** + * The time at which the original request was received. + * + * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setRequestTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->request_time = $var; + + return $this; + } + + /** + * The time at which the operation failed or was completed successfully. + * + * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; + * @return \Google\Protobuf\Timestamp|null + */ + public function getFinishTime() + { + return $this->finish_time; + } + + public function hasFinishTime() + { + return isset($this->finish_time); + } + + public function clearFinishTime() + { + unset($this->finish_time); + } + + /** + * The time at which the operation failed or was completed successfully. + * + * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setFinishTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->finish_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/SnapshotTableRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/SnapshotTableRequest.php new file mode 100644 index 000000000000..c5adaf5bbb40 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/SnapshotTableRequest.php @@ -0,0 +1,286 @@ +google.bigtable.admin.v2.SnapshotTableRequest + */ +class SnapshotTableRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the table to have the snapshot taken. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. The name of the cluster where the snapshot will be created in. + * Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}`. + * + * Generated from protobuf field string cluster = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $cluster = ''; + /** + * Required. The ID by which the new snapshot should be referred to within the + * parent cluster, e.g., `mysnapshot` of the form: + * `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than + * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`. + * + * Generated from protobuf field string snapshot_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $snapshot_id = ''; + /** + * The amount of time that the new snapshot can stay active after it is + * created. Once 'ttl' expires, the snapshot will get deleted. The maximum + * amount of time a snapshot can stay active is 7 days. If 'ttl' is not + * specified, the default value of 24 hours will be used. + * + * Generated from protobuf field .google.protobuf.Duration ttl = 4; + */ + protected $ttl = null; + /** + * Description of the snapshot. + * + * Generated from protobuf field string description = 5; + */ + protected $description = ''; + + /** + * @param string $name Required. The unique name of the table to have the snapshot taken. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. Please see + * {@see BigtableTableAdminClient::tableName()} for help formatting this field. + * @param string $cluster Required. The name of the cluster where the snapshot will be created in. + * Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}`. Please see + * {@see BigtableTableAdminClient::clusterName()} for help formatting this field. + * @param string $snapshotId Required. The ID by which the new snapshot should be referred to within the + * parent cluster, e.g., `mysnapshot` of the form: + * `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than + * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`. + * @param string $description Description of the snapshot. + * + * @return \Google\Cloud\Bigtable\Admin\V2\SnapshotTableRequest + * + * @experimental + */ + public static function build(string $name, string $cluster, string $snapshotId, string $description): self + { + return (new self()) + ->setName($name) + ->setCluster($cluster) + ->setSnapshotId($snapshotId) + ->setDescription($description); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The unique name of the table to have the snapshot taken. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * @type string $cluster + * Required. The name of the cluster where the snapshot will be created in. + * Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}`. + * @type string $snapshot_id + * Required. The ID by which the new snapshot should be referred to within the + * parent cluster, e.g., `mysnapshot` of the form: + * `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than + * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`. + * @type \Google\Protobuf\Duration $ttl + * The amount of time that the new snapshot can stay active after it is + * created. Once 'ttl' expires, the snapshot will get deleted. The maximum + * amount of time a snapshot can stay active is 7 days. If 'ttl' is not + * specified, the default value of 24 hours will be used. + * @type string $description + * Description of the snapshot. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the table to have the snapshot taken. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The unique name of the table to have the snapshot taken. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The name of the cluster where the snapshot will be created in. + * Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}`. + * + * Generated from protobuf field string cluster = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getCluster() + { + return $this->cluster; + } + + /** + * Required. The name of the cluster where the snapshot will be created in. + * Values are of the form + * `projects/{project}/instances/{instance}/clusters/{cluster}`. + * + * Generated from protobuf field string cluster = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setCluster($var) + { + GPBUtil::checkString($var, True); + $this->cluster = $var; + + return $this; + } + + /** + * Required. The ID by which the new snapshot should be referred to within the + * parent cluster, e.g., `mysnapshot` of the form: + * `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than + * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`. + * + * Generated from protobuf field string snapshot_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getSnapshotId() + { + return $this->snapshot_id; + } + + /** + * Required. The ID by which the new snapshot should be referred to within the + * parent cluster, e.g., `mysnapshot` of the form: + * `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than + * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`. + * + * Generated from protobuf field string snapshot_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setSnapshotId($var) + { + GPBUtil::checkString($var, True); + $this->snapshot_id = $var; + + return $this; + } + + /** + * The amount of time that the new snapshot can stay active after it is + * created. Once 'ttl' expires, the snapshot will get deleted. The maximum + * amount of time a snapshot can stay active is 7 days. If 'ttl' is not + * specified, the default value of 24 hours will be used. + * + * Generated from protobuf field .google.protobuf.Duration ttl = 4; + * @return \Google\Protobuf\Duration|null + */ + public function getTtl() + { + return $this->ttl; + } + + public function hasTtl() + { + return isset($this->ttl); + } + + public function clearTtl() + { + unset($this->ttl); + } + + /** + * The amount of time that the new snapshot can stay active after it is + * created. Once 'ttl' expires, the snapshot will get deleted. The maximum + * amount of time a snapshot can stay active is 7 days. If 'ttl' is not + * specified, the default value of 24 hours will be used. + * + * Generated from protobuf field .google.protobuf.Duration ttl = 4; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setTtl($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->ttl = $var; + + return $this; + } + + /** + * Description of the snapshot. + * + * Generated from protobuf field string description = 5; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Description of the snapshot. + * + * Generated from protobuf field string description = 5; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/StandardReadRemoteWrites.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/StandardReadRemoteWrites.php new file mode 100644 index 000000000000..76fcfbeb6c69 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/StandardReadRemoteWrites.php @@ -0,0 +1,34 @@ +google.bigtable.admin.v2.StandardReadRemoteWrites + */ +class StandardReadRemoteWrites extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/StorageType.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/StorageType.php new file mode 100644 index 000000000000..9bc95b2df390 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/StorageType.php @@ -0,0 +1,61 @@ +google.bigtable.admin.v2.StorageType + */ +class StorageType +{ + /** + * The user did not specify a storage type. + * + * Generated from protobuf enum STORAGE_TYPE_UNSPECIFIED = 0; + */ + const STORAGE_TYPE_UNSPECIFIED = 0; + /** + * Flash (SSD) storage should be used. + * + * Generated from protobuf enum SSD = 1; + */ + const SSD = 1; + /** + * Magnetic drive (HDD) storage should be used. + * + * Generated from protobuf enum HDD = 2; + */ + const HDD = 2; + + private static $valueToName = [ + self::STORAGE_TYPE_UNSPECIFIED => 'STORAGE_TYPE_UNSPECIFIED', + self::SSD => 'SSD', + self::HDD => 'HDD', + ]; + + 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/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table.php new file mode 100644 index 000000000000..65881a8be02d --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table.php @@ -0,0 +1,721 @@ +google.bigtable.admin.v2.Table + */ +class Table extends \Google\Protobuf\Internal\Message +{ + /** + * The unique name of the table. Values are of the form + * `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. + * Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL` + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Output only. Map from cluster ID to per-cluster table state. + * If it could not be determined whether or not the table has data in a + * particular cluster (for example, if its zone is unavailable), then + * there will be an entry for the cluster with UNKNOWN `replication_status`. + * Views: `REPLICATION_VIEW`, `ENCRYPTION_VIEW`, `FULL` + * + * Generated from protobuf field map cluster_states = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $cluster_states; + /** + * The column families configured for this table, mapped by column family ID. + * Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL` + * + * Generated from protobuf field map column_families = 3; + */ + private $column_families; + /** + * Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored + * in this table. Timestamps not matching the granularity will be rejected. If + * unspecified at creation time, the value will be set to `MILLIS`. Views: + * `SCHEMA_VIEW`, `FULL`. + * + * Generated from protobuf field .google.bigtable.admin.v2.Table.TimestampGranularity granularity = 4 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $granularity = 0; + /** + * Output only. If this table was restored from another data source (e.g. a + * backup), this field will be populated with information about the restore. + * + * Generated from protobuf field .google.bigtable.admin.v2.RestoreInfo restore_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $restore_info = null; + /** + * If specified, enable the change stream on this table. + * Otherwise, the change stream is disabled and the change stream is not + * retained. + * + * Generated from protobuf field .google.bigtable.admin.v2.ChangeStreamConfig change_stream_config = 8; + */ + protected $change_stream_config = null; + /** + * Set to true to make the table protected against data loss. i.e. deleting + * the following resources through Admin APIs are prohibited: + * * The table. + * * The column families in the table. + * * The instance containing the table. + * Note one can still delete the data stored in the table through Data APIs. + * + * Generated from protobuf field bool deletion_protection = 9; + */ + protected $deletion_protection = false; + /** + * Rules to specify what data is stored in each storage tier. + * Different tiers store data differently, providing different trade-offs + * between cost and performance. Different parts of a table can be stored + * separately on different tiers. + * If a config is specified, tiered storage is enabled for this table. + * Otherwise, tiered storage is disabled. + * Only SSD instances can configure tiered storage. + * + * Generated from protobuf field .google.bigtable.admin.v2.TieredStorageConfig tiered_storage_config = 14; + */ + protected $tiered_storage_config = null; + /** + * The row key schema for this table. The schema is used to decode the raw row + * key bytes into a structured format. The order of field declarations in this + * schema is important, as it reflects how the raw row key bytes are + * structured. Currently, this only affects how the key is read via a + * GoogleSQL query from the ExecuteQuery API. + * For a SQL query, the _key column is still read as raw bytes. But queries + * can reference the key fields by name, which will be decoded from _key using + * provided type and encoding. Queries that reference key fields will fail if + * they encounter an invalid row key. + * For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the + * following schema: + * { + * fields { + * field_name: "id" + * type { string { encoding: utf8_bytes {} } } + * } + * fields { + * field_name: "date" + * type { string { encoding: utf8_bytes {} } } + * } + * fields { + * field_name: "product_code" + * type { int64 { encoding: big_endian_bytes {} } } + * } + * encoding { delimited_bytes { delimiter: "#" } } + * } + * The decoded key parts would be: + * id = "some_id", date = "2024-04-30", product_code = 1245427 + * The query "SELECT _key, product_code FROM table" will return two columns: + * /------------------------------------------------------\ + * | _key | product_code | + * | --------------------------------------|--------------| + * | "some_id#2024-04-30#\x00\x13\x00\xf3" | 1245427 | + * \------------------------------------------------------/ + * The schema has the following invariants: + * (1) The decoded field values are order-preserved. For read, the field + * values will be decoded in sorted mode from the raw bytes. + * (2) Every field in the schema must specify a non-empty name. + * (3) Every field must specify a type with an associated encoding. The type + * is limited to scalar types only: Array, Map, Aggregate, and Struct are not + * allowed. + * (4) The field names must not collide with existing column family + * names and reserved keywords "_key" and "_timestamp". + * The following update operations are allowed for row_key_schema: + * - Update from an empty schema to a new schema. + * - Remove the existing schema. This operation requires setting the + * `ignore_warnings` flag to `true`, since it might be a backward + * incompatible change. Without the flag, the update request will fail with + * an INVALID_ARGUMENT error. + * Any other row key schema update operation (e.g. update existing schema + * columns names or types) is currently unsupported. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Struct row_key_schema = 15; + */ + protected $row_key_schema = null; + protected $automated_backup_config; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The unique name of the table. Values are of the form + * `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. + * Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL` + * @type array|\Google\Protobuf\Internal\MapField $cluster_states + * Output only. Map from cluster ID to per-cluster table state. + * If it could not be determined whether or not the table has data in a + * particular cluster (for example, if its zone is unavailable), then + * there will be an entry for the cluster with UNKNOWN `replication_status`. + * Views: `REPLICATION_VIEW`, `ENCRYPTION_VIEW`, `FULL` + * @type array|\Google\Protobuf\Internal\MapField $column_families + * The column families configured for this table, mapped by column family ID. + * Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL` + * @type int $granularity + * Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored + * in this table. Timestamps not matching the granularity will be rejected. If + * unspecified at creation time, the value will be set to `MILLIS`. Views: + * `SCHEMA_VIEW`, `FULL`. + * @type \Google\Cloud\Bigtable\Admin\V2\RestoreInfo $restore_info + * Output only. If this table was restored from another data source (e.g. a + * backup), this field will be populated with information about the restore. + * @type \Google\Cloud\Bigtable\Admin\V2\ChangeStreamConfig $change_stream_config + * If specified, enable the change stream on this table. + * Otherwise, the change stream is disabled and the change stream is not + * retained. + * @type bool $deletion_protection + * Set to true to make the table protected against data loss. i.e. deleting + * the following resources through Admin APIs are prohibited: + * * The table. + * * The column families in the table. + * * The instance containing the table. + * Note one can still delete the data stored in the table through Data APIs. + * @type \Google\Cloud\Bigtable\Admin\V2\Table\AutomatedBackupPolicy $automated_backup_policy + * If specified, automated backups are enabled for this table. + * Otherwise, automated backups are disabled. + * @type \Google\Cloud\Bigtable\Admin\V2\TieredStorageConfig $tiered_storage_config + * Rules to specify what data is stored in each storage tier. + * Different tiers store data differently, providing different trade-offs + * between cost and performance. Different parts of a table can be stored + * separately on different tiers. + * If a config is specified, tiered storage is enabled for this table. + * Otherwise, tiered storage is disabled. + * Only SSD instances can configure tiered storage. + * @type \Google\Cloud\Bigtable\Admin\V2\Type\Struct $row_key_schema + * The row key schema for this table. The schema is used to decode the raw row + * key bytes into a structured format. The order of field declarations in this + * schema is important, as it reflects how the raw row key bytes are + * structured. Currently, this only affects how the key is read via a + * GoogleSQL query from the ExecuteQuery API. + * For a SQL query, the _key column is still read as raw bytes. But queries + * can reference the key fields by name, which will be decoded from _key using + * provided type and encoding. Queries that reference key fields will fail if + * they encounter an invalid row key. + * For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the + * following schema: + * { + * fields { + * field_name: "id" + * type { string { encoding: utf8_bytes {} } } + * } + * fields { + * field_name: "date" + * type { string { encoding: utf8_bytes {} } } + * } + * fields { + * field_name: "product_code" + * type { int64 { encoding: big_endian_bytes {} } } + * } + * encoding { delimited_bytes { delimiter: "#" } } + * } + * The decoded key parts would be: + * id = "some_id", date = "2024-04-30", product_code = 1245427 + * The query "SELECT _key, product_code FROM table" will return two columns: + * /------------------------------------------------------\ + * | _key | product_code | + * | --------------------------------------|--------------| + * | "some_id#2024-04-30#\x00\x13\x00\xf3" | 1245427 | + * \------------------------------------------------------/ + * The schema has the following invariants: + * (1) The decoded field values are order-preserved. For read, the field + * values will be decoded in sorted mode from the raw bytes. + * (2) Every field in the schema must specify a non-empty name. + * (3) Every field must specify a type with an associated encoding. The type + * is limited to scalar types only: Array, Map, Aggregate, and Struct are not + * allowed. + * (4) The field names must not collide with existing column family + * names and reserved keywords "_key" and "_timestamp". + * The following update operations are allowed for row_key_schema: + * - Update from an empty schema to a new schema. + * - Remove the existing schema. This operation requires setting the + * `ignore_warnings` flag to `true`, since it might be a backward + * incompatible change. Without the flag, the update request will fail with + * an INVALID_ARGUMENT error. + * Any other row key schema update operation (e.g. update existing schema + * columns names or types) is currently unsupported. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); + parent::__construct($data); + } + + /** + * The unique name of the table. Values are of the form + * `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. + * Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL` + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The unique name of the table. Values are of the form + * `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. + * Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL` + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. Map from cluster ID to per-cluster table state. + * If it could not be determined whether or not the table has data in a + * particular cluster (for example, if its zone is unavailable), then + * there will be an entry for the cluster with UNKNOWN `replication_status`. + * Views: `REPLICATION_VIEW`, `ENCRYPTION_VIEW`, `FULL` + * + * Generated from protobuf field map cluster_states = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getClusterStates() + { + return $this->cluster_states; + } + + /** + * Output only. Map from cluster ID to per-cluster table state. + * If it could not be determined whether or not the table has data in a + * particular cluster (for example, if its zone is unavailable), then + * there will be an entry for the cluster with UNKNOWN `replication_status`. + * Views: `REPLICATION_VIEW`, `ENCRYPTION_VIEW`, `FULL` + * + * Generated from protobuf field map cluster_states = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setClusterStates($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\Table\ClusterState::class); + $this->cluster_states = $arr; + + return $this; + } + + /** + * The column families configured for this table, mapped by column family ID. + * Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL` + * + * Generated from protobuf field map column_families = 3; + * @return \Google\Protobuf\Internal\MapField + */ + public function getColumnFamilies() + { + return $this->column_families; + } + + /** + * The column families configured for this table, mapped by column family ID. + * Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL` + * + * Generated from protobuf field map column_families = 3; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setColumnFamilies($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\ColumnFamily::class); + $this->column_families = $arr; + + return $this; + } + + /** + * Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored + * in this table. Timestamps not matching the granularity will be rejected. If + * unspecified at creation time, the value will be set to `MILLIS`. Views: + * `SCHEMA_VIEW`, `FULL`. + * + * Generated from protobuf field .google.bigtable.admin.v2.Table.TimestampGranularity granularity = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * @return int + */ + public function getGranularity() + { + return $this->granularity; + } + + /** + * Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored + * in this table. Timestamps not matching the granularity will be rejected. If + * unspecified at creation time, the value will be set to `MILLIS`. Views: + * `SCHEMA_VIEW`, `FULL`. + * + * Generated from protobuf field .google.bigtable.admin.v2.Table.TimestampGranularity granularity = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * @param int $var + * @return $this + */ + public function setGranularity($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\Table\TimestampGranularity::class); + $this->granularity = $var; + + return $this; + } + + /** + * Output only. If this table was restored from another data source (e.g. a + * backup), this field will be populated with information about the restore. + * + * Generated from protobuf field .google.bigtable.admin.v2.RestoreInfo restore_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Bigtable\Admin\V2\RestoreInfo|null + */ + public function getRestoreInfo() + { + return $this->restore_info; + } + + public function hasRestoreInfo() + { + return isset($this->restore_info); + } + + public function clearRestoreInfo() + { + unset($this->restore_info); + } + + /** + * Output only. If this table was restored from another data source (e.g. a + * backup), this field will be populated with information about the restore. + * + * Generated from protobuf field .google.bigtable.admin.v2.RestoreInfo restore_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Bigtable\Admin\V2\RestoreInfo $var + * @return $this + */ + public function setRestoreInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\RestoreInfo::class); + $this->restore_info = $var; + + return $this; + } + + /** + * If specified, enable the change stream on this table. + * Otherwise, the change stream is disabled and the change stream is not + * retained. + * + * Generated from protobuf field .google.bigtable.admin.v2.ChangeStreamConfig change_stream_config = 8; + * @return \Google\Cloud\Bigtable\Admin\V2\ChangeStreamConfig|null + */ + public function getChangeStreamConfig() + { + return $this->change_stream_config; + } + + public function hasChangeStreamConfig() + { + return isset($this->change_stream_config); + } + + public function clearChangeStreamConfig() + { + unset($this->change_stream_config); + } + + /** + * If specified, enable the change stream on this table. + * Otherwise, the change stream is disabled and the change stream is not + * retained. + * + * Generated from protobuf field .google.bigtable.admin.v2.ChangeStreamConfig change_stream_config = 8; + * @param \Google\Cloud\Bigtable\Admin\V2\ChangeStreamConfig $var + * @return $this + */ + public function setChangeStreamConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\ChangeStreamConfig::class); + $this->change_stream_config = $var; + + return $this; + } + + /** + * Set to true to make the table protected against data loss. i.e. deleting + * the following resources through Admin APIs are prohibited: + * * The table. + * * The column families in the table. + * * The instance containing the table. + * Note one can still delete the data stored in the table through Data APIs. + * + * Generated from protobuf field bool deletion_protection = 9; + * @return bool + */ + public function getDeletionProtection() + { + return $this->deletion_protection; + } + + /** + * Set to true to make the table protected against data loss. i.e. deleting + * the following resources through Admin APIs are prohibited: + * * The table. + * * The column families in the table. + * * The instance containing the table. + * Note one can still delete the data stored in the table through Data APIs. + * + * Generated from protobuf field bool deletion_protection = 9; + * @param bool $var + * @return $this + */ + public function setDeletionProtection($var) + { + GPBUtil::checkBool($var); + $this->deletion_protection = $var; + + return $this; + } + + /** + * If specified, automated backups are enabled for this table. + * Otherwise, automated backups are disabled. + * + * Generated from protobuf field .google.bigtable.admin.v2.Table.AutomatedBackupPolicy automated_backup_policy = 13; + * @return \Google\Cloud\Bigtable\Admin\V2\Table\AutomatedBackupPolicy|null + */ + public function getAutomatedBackupPolicy() + { + return $this->readOneof(13); + } + + public function hasAutomatedBackupPolicy() + { + return $this->hasOneof(13); + } + + /** + * If specified, automated backups are enabled for this table. + * Otherwise, automated backups are disabled. + * + * Generated from protobuf field .google.bigtable.admin.v2.Table.AutomatedBackupPolicy automated_backup_policy = 13; + * @param \Google\Cloud\Bigtable\Admin\V2\Table\AutomatedBackupPolicy $var + * @return $this + */ + public function setAutomatedBackupPolicy($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Table\AutomatedBackupPolicy::class); + $this->writeOneof(13, $var); + + return $this; + } + + /** + * Rules to specify what data is stored in each storage tier. + * Different tiers store data differently, providing different trade-offs + * between cost and performance. Different parts of a table can be stored + * separately on different tiers. + * If a config is specified, tiered storage is enabled for this table. + * Otherwise, tiered storage is disabled. + * Only SSD instances can configure tiered storage. + * + * Generated from protobuf field .google.bigtable.admin.v2.TieredStorageConfig tiered_storage_config = 14; + * @return \Google\Cloud\Bigtable\Admin\V2\TieredStorageConfig|null + */ + public function getTieredStorageConfig() + { + return $this->tiered_storage_config; + } + + public function hasTieredStorageConfig() + { + return isset($this->tiered_storage_config); + } + + public function clearTieredStorageConfig() + { + unset($this->tiered_storage_config); + } + + /** + * Rules to specify what data is stored in each storage tier. + * Different tiers store data differently, providing different trade-offs + * between cost and performance. Different parts of a table can be stored + * separately on different tiers. + * If a config is specified, tiered storage is enabled for this table. + * Otherwise, tiered storage is disabled. + * Only SSD instances can configure tiered storage. + * + * Generated from protobuf field .google.bigtable.admin.v2.TieredStorageConfig tiered_storage_config = 14; + * @param \Google\Cloud\Bigtable\Admin\V2\TieredStorageConfig $var + * @return $this + */ + public function setTieredStorageConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\TieredStorageConfig::class); + $this->tiered_storage_config = $var; + + return $this; + } + + /** + * The row key schema for this table. The schema is used to decode the raw row + * key bytes into a structured format. The order of field declarations in this + * schema is important, as it reflects how the raw row key bytes are + * structured. Currently, this only affects how the key is read via a + * GoogleSQL query from the ExecuteQuery API. + * For a SQL query, the _key column is still read as raw bytes. But queries + * can reference the key fields by name, which will be decoded from _key using + * provided type and encoding. Queries that reference key fields will fail if + * they encounter an invalid row key. + * For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the + * following schema: + * { + * fields { + * field_name: "id" + * type { string { encoding: utf8_bytes {} } } + * } + * fields { + * field_name: "date" + * type { string { encoding: utf8_bytes {} } } + * } + * fields { + * field_name: "product_code" + * type { int64 { encoding: big_endian_bytes {} } } + * } + * encoding { delimited_bytes { delimiter: "#" } } + * } + * The decoded key parts would be: + * id = "some_id", date = "2024-04-30", product_code = 1245427 + * The query "SELECT _key, product_code FROM table" will return two columns: + * /------------------------------------------------------\ + * | _key | product_code | + * | --------------------------------------|--------------| + * | "some_id#2024-04-30#\x00\x13\x00\xf3" | 1245427 | + * \------------------------------------------------------/ + * The schema has the following invariants: + * (1) The decoded field values are order-preserved. For read, the field + * values will be decoded in sorted mode from the raw bytes. + * (2) Every field in the schema must specify a non-empty name. + * (3) Every field must specify a type with an associated encoding. The type + * is limited to scalar types only: Array, Map, Aggregate, and Struct are not + * allowed. + * (4) The field names must not collide with existing column family + * names and reserved keywords "_key" and "_timestamp". + * The following update operations are allowed for row_key_schema: + * - Update from an empty schema to a new schema. + * - Remove the existing schema. This operation requires setting the + * `ignore_warnings` flag to `true`, since it might be a backward + * incompatible change. Without the flag, the update request will fail with + * an INVALID_ARGUMENT error. + * Any other row key schema update operation (e.g. update existing schema + * columns names or types) is currently unsupported. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Struct row_key_schema = 15; + * @return \Google\Cloud\Bigtable\Admin\V2\Type\Struct|null + */ + public function getRowKeySchema() + { + return $this->row_key_schema; + } + + public function hasRowKeySchema() + { + return isset($this->row_key_schema); + } + + public function clearRowKeySchema() + { + unset($this->row_key_schema); + } + + /** + * The row key schema for this table. The schema is used to decode the raw row + * key bytes into a structured format. The order of field declarations in this + * schema is important, as it reflects how the raw row key bytes are + * structured. Currently, this only affects how the key is read via a + * GoogleSQL query from the ExecuteQuery API. + * For a SQL query, the _key column is still read as raw bytes. But queries + * can reference the key fields by name, which will be decoded from _key using + * provided type and encoding. Queries that reference key fields will fail if + * they encounter an invalid row key. + * For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the + * following schema: + * { + * fields { + * field_name: "id" + * type { string { encoding: utf8_bytes {} } } + * } + * fields { + * field_name: "date" + * type { string { encoding: utf8_bytes {} } } + * } + * fields { + * field_name: "product_code" + * type { int64 { encoding: big_endian_bytes {} } } + * } + * encoding { delimited_bytes { delimiter: "#" } } + * } + * The decoded key parts would be: + * id = "some_id", date = "2024-04-30", product_code = 1245427 + * The query "SELECT _key, product_code FROM table" will return two columns: + * /------------------------------------------------------\ + * | _key | product_code | + * | --------------------------------------|--------------| + * | "some_id#2024-04-30#\x00\x13\x00\xf3" | 1245427 | + * \------------------------------------------------------/ + * The schema has the following invariants: + * (1) The decoded field values are order-preserved. For read, the field + * values will be decoded in sorted mode from the raw bytes. + * (2) Every field in the schema must specify a non-empty name. + * (3) Every field must specify a type with an associated encoding. The type + * is limited to scalar types only: Array, Map, Aggregate, and Struct are not + * allowed. + * (4) The field names must not collide with existing column family + * names and reserved keywords "_key" and "_timestamp". + * The following update operations are allowed for row_key_schema: + * - Update from an empty schema to a new schema. + * - Remove the existing schema. This operation requires setting the + * `ignore_warnings` flag to `true`, since it might be a backward + * incompatible change. Without the flag, the update request will fail with + * an INVALID_ARGUMENT error. + * Any other row key schema update operation (e.g. update existing schema + * columns names or types) is currently unsupported. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Struct row_key_schema = 15; + * @param \Google\Cloud\Bigtable\Admin\V2\Type\Struct $var + * @return $this + */ + public function setRowKeySchema($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Struct::class); + $this->row_key_schema = $var; + + return $this; + } + + /** + * @return string + */ + public function getAutomatedBackupConfig() + { + return $this->whichOneof("automated_backup_config"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/AutomatedBackupPolicy.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/AutomatedBackupPolicy.php new file mode 100644 index 000000000000..991c00e9a126 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/AutomatedBackupPolicy.php @@ -0,0 +1,179 @@ +google.bigtable.admin.v2.Table.AutomatedBackupPolicy + */ +class AutomatedBackupPolicy extends \Google\Protobuf\Internal\Message +{ + /** + * Required. How long the automated backups should be retained. Values must + * be at least 3 days and at most 90 days. + * + * Generated from protobuf field .google.protobuf.Duration retention_period = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $retention_period = null; + /** + * How frequently automated backups should occur. The only supported value + * at this time is 24 hours. An undefined frequency is treated as 24 hours. + * + * Generated from protobuf field .google.protobuf.Duration frequency = 2; + */ + protected $frequency = null; + /** + * Optional. A list of Cloud Bigtable zones where automated backups are + * allowed to be created. If empty, automated backups will be created in all + * zones of the instance. Locations are in the format + * `projects/{project}/locations/{zone}`. + * This field can only set for tables in Enterprise Plus instances. + * + * Generated from protobuf field repeated string locations = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $locations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Duration $retention_period + * Required. How long the automated backups should be retained. Values must + * be at least 3 days and at most 90 days. + * @type \Google\Protobuf\Duration $frequency + * How frequently automated backups should occur. The only supported value + * at this time is 24 hours. An undefined frequency is treated as 24 hours. + * @type string[] $locations + * Optional. A list of Cloud Bigtable zones where automated backups are + * allowed to be created. If empty, automated backups will be created in all + * zones of the instance. Locations are in the format + * `projects/{project}/locations/{zone}`. + * This field can only set for tables in Enterprise Plus instances. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); + parent::__construct($data); + } + + /** + * Required. How long the automated backups should be retained. Values must + * be at least 3 days and at most 90 days. + * + * Generated from protobuf field .google.protobuf.Duration retention_period = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Duration|null + */ + public function getRetentionPeriod() + { + return $this->retention_period; + } + + public function hasRetentionPeriod() + { + return isset($this->retention_period); + } + + public function clearRetentionPeriod() + { + unset($this->retention_period); + } + + /** + * Required. How long the automated backups should be retained. Values must + * be at least 3 days and at most 90 days. + * + * Generated from protobuf field .google.protobuf.Duration retention_period = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setRetentionPeriod($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->retention_period = $var; + + return $this; + } + + /** + * How frequently automated backups should occur. The only supported value + * at this time is 24 hours. An undefined frequency is treated as 24 hours. + * + * Generated from protobuf field .google.protobuf.Duration frequency = 2; + * @return \Google\Protobuf\Duration|null + */ + public function getFrequency() + { + return $this->frequency; + } + + public function hasFrequency() + { + return isset($this->frequency); + } + + public function clearFrequency() + { + unset($this->frequency); + } + + /** + * How frequently automated backups should occur. The only supported value + * at this time is 24 hours. An undefined frequency is treated as 24 hours. + * + * Generated from protobuf field .google.protobuf.Duration frequency = 2; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setFrequency($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->frequency = $var; + + return $this; + } + + /** + * Optional. A list of Cloud Bigtable zones where automated backups are + * allowed to be created. If empty, automated backups will be created in all + * zones of the instance. Locations are in the format + * `projects/{project}/locations/{zone}`. + * This field can only set for tables in Enterprise Plus instances. + * + * Generated from protobuf field repeated string locations = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getLocations() + { + return $this->locations; + } + + /** + * Optional. A list of Cloud Bigtable zones where automated backups are + * allowed to be created. If empty, automated backups will be created in all + * zones of the instance. Locations are in the format + * `projects/{project}/locations/{zone}`. + * This field can only set for tables in Enterprise Plus instances. + * + * Generated from protobuf field repeated string locations = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->locations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/ClusterState.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/ClusterState.php new file mode 100644 index 000000000000..e98702103c8c --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/ClusterState.php @@ -0,0 +1,117 @@ +google.bigtable.admin.v2.Table.ClusterState + */ +class ClusterState extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The state of replication for the table in this cluster. + * + * Generated from protobuf field .google.bigtable.admin.v2.Table.ClusterState.ReplicationState replication_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $replication_state = 0; + /** + * Output only. The encryption information for the table in this cluster. + * If the encryption key protecting this resource is customer managed, then + * its version can be rotated in Cloud Key Management Service (Cloud KMS). + * The primary version of the key and its status will be reflected here when + * changes propagate from Cloud KMS. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $encryption_info; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $replication_state + * Output only. The state of replication for the table in this cluster. + * @type \Google\Cloud\Bigtable\Admin\V2\EncryptionInfo[] $encryption_info + * Output only. The encryption information for the table in this cluster. + * If the encryption key protecting this resource is customer managed, then + * its version can be rotated in Cloud Key Management Service (Cloud KMS). + * The primary version of the key and its status will be reflected here when + * changes propagate from Cloud KMS. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The state of replication for the table in this cluster. + * + * Generated from protobuf field .google.bigtable.admin.v2.Table.ClusterState.ReplicationState replication_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getReplicationState() + { + return $this->replication_state; + } + + /** + * Output only. The state of replication for the table in this cluster. + * + * Generated from protobuf field .google.bigtable.admin.v2.Table.ClusterState.ReplicationState replication_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setReplicationState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\Table\ClusterState\ReplicationState::class); + $this->replication_state = $var; + + return $this; + } + + /** + * Output only. The encryption information for the table in this cluster. + * If the encryption key protecting this resource is customer managed, then + * its version can be rotated in Cloud Key Management Service (Cloud KMS). + * The primary version of the key and its status will be reflected here when + * changes propagate from Cloud KMS. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\Bigtable\Admin\V2\EncryptionInfo> + */ + public function getEncryptionInfo() + { + return $this->encryption_info; + } + + /** + * Output only. The encryption information for the table in this cluster. + * If the encryption key protecting this resource is customer managed, then + * its version can be rotated in Cloud Key Management Service (Cloud KMS). + * The primary version of the key and its status will be reflected here when + * changes propagate from Cloud KMS. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Bigtable\Admin\V2\EncryptionInfo[] $var + * @return $this + */ + public function setEncryptionInfo($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\EncryptionInfo::class); + $this->encryption_info = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/ClusterState/ReplicationState.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/ClusterState/ReplicationState.php new file mode 100644 index 000000000000..1ce574fd5312 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/ClusterState/ReplicationState.php @@ -0,0 +1,90 @@ +google.bigtable.admin.v2.Table.ClusterState.ReplicationState + */ +class ReplicationState +{ + /** + * The replication state of the table is unknown in this cluster. + * + * Generated from protobuf enum STATE_NOT_KNOWN = 0; + */ + const STATE_NOT_KNOWN = 0; + /** + * The cluster was recently created, and the table must finish copying + * over pre-existing data from other clusters before it can begin + * receiving live replication updates and serving Data API requests. + * + * Generated from protobuf enum INITIALIZING = 1; + */ + const INITIALIZING = 1; + /** + * The table is temporarily unable to serve Data API requests from this + * cluster due to planned internal maintenance. + * + * Generated from protobuf enum PLANNED_MAINTENANCE = 2; + */ + const PLANNED_MAINTENANCE = 2; + /** + * The table is temporarily unable to serve Data API requests from this + * cluster due to unplanned or emergency maintenance. + * + * Generated from protobuf enum UNPLANNED_MAINTENANCE = 3; + */ + const UNPLANNED_MAINTENANCE = 3; + /** + * The table can serve Data API requests from this cluster. Depending on + * replication delay, reads may not immediately reflect the state of the + * table in other clusters. + * + * Generated from protobuf enum READY = 4; + */ + const READY = 4; + /** + * The table is fully created and ready for use after a restore, and is + * being optimized for performance. When optimizations are complete, the + * table will transition to `READY` state. + * + * Generated from protobuf enum READY_OPTIMIZING = 5; + */ + const READY_OPTIMIZING = 5; + + private static $valueToName = [ + self::STATE_NOT_KNOWN => 'STATE_NOT_KNOWN', + self::INITIALIZING => 'INITIALIZING', + self::PLANNED_MAINTENANCE => 'PLANNED_MAINTENANCE', + self::UNPLANNED_MAINTENANCE => 'UNPLANNED_MAINTENANCE', + self::READY => 'READY', + self::READY_OPTIMIZING => 'READY_OPTIMIZING', + ]; + + 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/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/TimestampGranularity.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/TimestampGranularity.php new file mode 100644 index 000000000000..df2edb453322 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/TimestampGranularity.php @@ -0,0 +1,56 @@ +google.bigtable.admin.v2.Table.TimestampGranularity + */ +class TimestampGranularity +{ + /** + * The user did not specify a granularity. Should not be returned. + * When specified during table creation, MILLIS will be used. + * + * Generated from protobuf enum TIMESTAMP_GRANULARITY_UNSPECIFIED = 0; + */ + const TIMESTAMP_GRANULARITY_UNSPECIFIED = 0; + /** + * The table keeps data versioned at a granularity of 1ms. + * + * Generated from protobuf enum MILLIS = 1; + */ + const MILLIS = 1; + + private static $valueToName = [ + self::TIMESTAMP_GRANULARITY_UNSPECIFIED => 'TIMESTAMP_GRANULARITY_UNSPECIFIED', + self::MILLIS => 'MILLIS', + ]; + + 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/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/View.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/View.php new file mode 100644 index 000000000000..57306a4bc7bd --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/View.php @@ -0,0 +1,83 @@ +google.bigtable.admin.v2.Table.View + */ +class View +{ + /** + * Uses the default view for each method as documented in its request. + * + * Generated from protobuf enum VIEW_UNSPECIFIED = 0; + */ + const VIEW_UNSPECIFIED = 0; + /** + * Only populates `name`. + * + * Generated from protobuf enum NAME_ONLY = 1; + */ + const NAME_ONLY = 1; + /** + * Only populates `name` and fields related to the table's schema. + * + * Generated from protobuf enum SCHEMA_VIEW = 2; + */ + const SCHEMA_VIEW = 2; + /** + * Only populates `name` and fields related to the table's replication + * state. + * + * Generated from protobuf enum REPLICATION_VIEW = 3; + */ + const REPLICATION_VIEW = 3; + /** + * Only populates `name` and fields related to the table's encryption state. + * + * Generated from protobuf enum ENCRYPTION_VIEW = 5; + */ + const ENCRYPTION_VIEW = 5; + /** + * Populates all fields. + * + * Generated from protobuf enum FULL = 4; + */ + const FULL = 4; + + private static $valueToName = [ + self::VIEW_UNSPECIFIED => 'VIEW_UNSPECIFIED', + self::NAME_ONLY => 'NAME_ONLY', + self::SCHEMA_VIEW => 'SCHEMA_VIEW', + self::REPLICATION_VIEW => 'REPLICATION_VIEW', + self::ENCRYPTION_VIEW => 'ENCRYPTION_VIEW', + self::FULL => 'FULL', + ]; + + 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/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/TieredStorageConfig.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/TieredStorageConfig.php new file mode 100644 index 000000000000..8eb26bc0e1dd --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/TieredStorageConfig.php @@ -0,0 +1,85 @@ +google.bigtable.admin.v2.TieredStorageConfig + */ +class TieredStorageConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Rule to specify what data is stored in the infrequent access(IA) tier. + * The IA tier allows storing more data per node with reduced performance. + * + * Generated from protobuf field .google.bigtable.admin.v2.TieredStorageRule infrequent_access = 1; + */ + protected $infrequent_access = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\TieredStorageRule $infrequent_access + * Rule to specify what data is stored in the infrequent access(IA) tier. + * The IA tier allows storing more data per node with reduced performance. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); + parent::__construct($data); + } + + /** + * Rule to specify what data is stored in the infrequent access(IA) tier. + * The IA tier allows storing more data per node with reduced performance. + * + * Generated from protobuf field .google.bigtable.admin.v2.TieredStorageRule infrequent_access = 1; + * @return \Google\Cloud\Bigtable\Admin\V2\TieredStorageRule|null + */ + public function getInfrequentAccess() + { + return $this->infrequent_access; + } + + public function hasInfrequentAccess() + { + return isset($this->infrequent_access); + } + + public function clearInfrequentAccess() + { + unset($this->infrequent_access); + } + + /** + * Rule to specify what data is stored in the infrequent access(IA) tier. + * The IA tier allows storing more data per node with reduced performance. + * + * Generated from protobuf field .google.bigtable.admin.v2.TieredStorageRule infrequent_access = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\TieredStorageRule $var + * @return $this + */ + public function setInfrequentAccess($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\TieredStorageRule::class); + $this->infrequent_access = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/TieredStorageRule.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/TieredStorageRule.php new file mode 100644 index 000000000000..b3e999dd98cf --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/TieredStorageRule.php @@ -0,0 +1,78 @@ +google.bigtable.admin.v2.TieredStorageRule + */ +class TieredStorageRule extends \Google\Protobuf\Internal\Message +{ + protected $rule; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Duration $include_if_older_than + * Include cells older than the given age. + * For the infrequent access tier, this value must be at least 30 days. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); + parent::__construct($data); + } + + /** + * Include cells older than the given age. + * For the infrequent access tier, this value must be at least 30 days. + * + * Generated from protobuf field .google.protobuf.Duration include_if_older_than = 1; + * @return \Google\Protobuf\Duration|null + */ + public function getIncludeIfOlderThan() + { + return $this->readOneof(1); + } + + public function hasIncludeIfOlderThan() + { + return $this->hasOneof(1); + } + + /** + * Include cells older than the given age. + * For the infrequent access tier, this value must be at least 30 days. + * + * Generated from protobuf field .google.protobuf.Duration include_if_older_than = 1; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setIncludeIfOlderThan($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getRule() + { + return $this->whichOneof("rule"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type.php new file mode 100644 index 000000000000..d39384a88b57 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type.php @@ -0,0 +1,521 @@ + INT64(-1)`, but + * `STRING("-00001") > STRING("00001")`. + * + * Generated from protobuf message google.bigtable.admin.v2.Type + */ +class Type extends \Google\Protobuf\Internal\Message +{ + protected $kind; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\Type\Bytes $bytes_type + * Bytes + * @type \Google\Cloud\Bigtable\Admin\V2\Type\PBString $string_type + * String + * @type \Google\Cloud\Bigtable\Admin\V2\Type\Int64 $int64_type + * Int64 + * @type \Google\Cloud\Bigtable\Admin\V2\Type\Float32 $float32_type + * Float32 + * @type \Google\Cloud\Bigtable\Admin\V2\Type\Float64 $float64_type + * Float64 + * @type \Google\Cloud\Bigtable\Admin\V2\Type\PBBool $bool_type + * Bool + * @type \Google\Cloud\Bigtable\Admin\V2\Type\Timestamp $timestamp_type + * Timestamp + * @type \Google\Cloud\Bigtable\Admin\V2\Type\Date $date_type + * Date + * @type \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate $aggregate_type + * Aggregate + * @type \Google\Cloud\Bigtable\Admin\V2\Type\Struct $struct_type + * Struct + * @type \Google\Cloud\Bigtable\Admin\V2\Type\PBArray $array_type + * Array + * @type \Google\Cloud\Bigtable\Admin\V2\Type\Map $map_type + * Map + * @type \Google\Cloud\Bigtable\Admin\V2\Type\Proto $proto_type + * Proto + * @type \Google\Cloud\Bigtable\Admin\V2\Type\Enum $enum_type + * Enum + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * Bytes + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Bytes bytes_type = 1; + * @return \Google\Cloud\Bigtable\Admin\V2\Type\Bytes|null + */ + public function getBytesType() + { + return $this->readOneof(1); + } + + public function hasBytesType() + { + return $this->hasOneof(1); + } + + /** + * Bytes + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Bytes bytes_type = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\Type\Bytes $var + * @return $this + */ + public function setBytesType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Bytes::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * String + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.String string_type = 2; + * @return \Google\Cloud\Bigtable\Admin\V2\Type\PBString|null + */ + public function getStringType() + { + return $this->readOneof(2); + } + + public function hasStringType() + { + return $this->hasOneof(2); + } + + /** + * String + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.String string_type = 2; + * @param \Google\Cloud\Bigtable\Admin\V2\Type\PBString $var + * @return $this + */ + public function setStringType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\PBString::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Int64 + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Int64 int64_type = 5; + * @return \Google\Cloud\Bigtable\Admin\V2\Type\Int64|null + */ + public function getInt64Type() + { + return $this->readOneof(5); + } + + public function hasInt64Type() + { + return $this->hasOneof(5); + } + + /** + * Int64 + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Int64 int64_type = 5; + * @param \Google\Cloud\Bigtable\Admin\V2\Type\Int64 $var + * @return $this + */ + public function setInt64Type($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Int64::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Float32 + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Float32 float32_type = 12; + * @return \Google\Cloud\Bigtable\Admin\V2\Type\Float32|null + */ + public function getFloat32Type() + { + return $this->readOneof(12); + } + + public function hasFloat32Type() + { + return $this->hasOneof(12); + } + + /** + * Float32 + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Float32 float32_type = 12; + * @param \Google\Cloud\Bigtable\Admin\V2\Type\Float32 $var + * @return $this + */ + public function setFloat32Type($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Float32::class); + $this->writeOneof(12, $var); + + return $this; + } + + /** + * Float64 + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Float64 float64_type = 9; + * @return \Google\Cloud\Bigtable\Admin\V2\Type\Float64|null + */ + public function getFloat64Type() + { + return $this->readOneof(9); + } + + public function hasFloat64Type() + { + return $this->hasOneof(9); + } + + /** + * Float64 + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Float64 float64_type = 9; + * @param \Google\Cloud\Bigtable\Admin\V2\Type\Float64 $var + * @return $this + */ + public function setFloat64Type($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Float64::class); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * Bool + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Bool bool_type = 8; + * @return \Google\Cloud\Bigtable\Admin\V2\Type\PBBool|null + */ + public function getBoolType() + { + return $this->readOneof(8); + } + + public function hasBoolType() + { + return $this->hasOneof(8); + } + + /** + * Bool + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Bool bool_type = 8; + * @param \Google\Cloud\Bigtable\Admin\V2\Type\PBBool $var + * @return $this + */ + public function setBoolType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\PBBool::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * Timestamp + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Timestamp timestamp_type = 10; + * @return \Google\Cloud\Bigtable\Admin\V2\Type\Timestamp|null + */ + public function getTimestampType() + { + return $this->readOneof(10); + } + + public function hasTimestampType() + { + return $this->hasOneof(10); + } + + /** + * Timestamp + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Timestamp timestamp_type = 10; + * @param \Google\Cloud\Bigtable\Admin\V2\Type\Timestamp $var + * @return $this + */ + public function setTimestampType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Timestamp::class); + $this->writeOneof(10, $var); + + return $this; + } + + /** + * Date + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Date date_type = 11; + * @return \Google\Cloud\Bigtable\Admin\V2\Type\Date|null + */ + public function getDateType() + { + return $this->readOneof(11); + } + + public function hasDateType() + { + return $this->hasOneof(11); + } + + /** + * Date + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Date date_type = 11; + * @param \Google\Cloud\Bigtable\Admin\V2\Type\Date $var + * @return $this + */ + public function setDateType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Date::class); + $this->writeOneof(11, $var); + + return $this; + } + + /** + * Aggregate + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Aggregate aggregate_type = 6; + * @return \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate|null + */ + public function getAggregateType() + { + return $this->readOneof(6); + } + + public function hasAggregateType() + { + return $this->hasOneof(6); + } + + /** + * Aggregate + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Aggregate aggregate_type = 6; + * @param \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate $var + * @return $this + */ + public function setAggregateType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Struct + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Struct struct_type = 7; + * @return \Google\Cloud\Bigtable\Admin\V2\Type\Struct|null + */ + public function getStructType() + { + return $this->readOneof(7); + } + + public function hasStructType() + { + return $this->hasOneof(7); + } + + /** + * Struct + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Struct struct_type = 7; + * @param \Google\Cloud\Bigtable\Admin\V2\Type\Struct $var + * @return $this + */ + public function setStructType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Struct::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * Array + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Array array_type = 3; + * @return \Google\Cloud\Bigtable\Admin\V2\Type\PBArray|null + */ + public function getArrayType() + { + return $this->readOneof(3); + } + + public function hasArrayType() + { + return $this->hasOneof(3); + } + + /** + * Array + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Array array_type = 3; + * @param \Google\Cloud\Bigtable\Admin\V2\Type\PBArray $var + * @return $this + */ + public function setArrayType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\PBArray::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Map + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Map map_type = 4; + * @return \Google\Cloud\Bigtable\Admin\V2\Type\Map|null + */ + public function getMapType() + { + return $this->readOneof(4); + } + + public function hasMapType() + { + return $this->hasOneof(4); + } + + /** + * Map + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Map map_type = 4; + * @param \Google\Cloud\Bigtable\Admin\V2\Type\Map $var + * @return $this + */ + public function setMapType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Map::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Proto + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Proto proto_type = 13; + * @return \Google\Cloud\Bigtable\Admin\V2\Type\Proto|null + */ + public function getProtoType() + { + return $this->readOneof(13); + } + + public function hasProtoType() + { + return $this->hasOneof(13); + } + + /** + * Proto + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Proto proto_type = 13; + * @param \Google\Cloud\Bigtable\Admin\V2\Type\Proto $var + * @return $this + */ + public function setProtoType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Proto::class); + $this->writeOneof(13, $var); + + return $this; + } + + /** + * Enum + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Enum enum_type = 14; + * @return \Google\Cloud\Bigtable\Admin\V2\Type\Enum|null + */ + public function getEnumType() + { + return $this->readOneof(14); + } + + public function hasEnumType() + { + return $this->hasOneof(14); + } + + /** + * Enum + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Enum enum_type = 14; + * @param \Google\Cloud\Bigtable\Admin\V2\Type\Enum $var + * @return $this + */ + public function setEnumType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Enum::class); + $this->writeOneof(14, $var); + + return $this; + } + + /** + * @return string + */ + public function getKind() + { + return $this->whichOneof("kind"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate.php new file mode 100644 index 000000000000..7304bbfc22f6 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate.php @@ -0,0 +1,281 @@ +google.bigtable.admin.v2.Type.Aggregate + */ +class Aggregate extends \Google\Protobuf\Internal\Message +{ + /** + * Type of the inputs that are accumulated by this `Aggregate`, which must + * specify a full encoding. + * Use `AddInput` mutations to accumulate new inputs. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type input_type = 1; + */ + protected $input_type = null; + /** + * Output only. Type that holds the internal accumulator state for the + * `Aggregate`. This is a function of the `input_type` and `aggregator` + * chosen, and will always specify a full encoding. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type state_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state_type = null; + protected $aggregator; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\Type $input_type + * Type of the inputs that are accumulated by this `Aggregate`, which must + * specify a full encoding. + * Use `AddInput` mutations to accumulate new inputs. + * @type \Google\Cloud\Bigtable\Admin\V2\Type $state_type + * Output only. Type that holds the internal accumulator state for the + * `Aggregate`. This is a function of the `input_type` and `aggregator` + * chosen, and will always specify a full encoding. + * @type \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate\Sum $sum + * Sum aggregator. + * @type \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate\HyperLogLogPlusPlusUniqueCount $hllpp_unique_count + * HyperLogLogPlusPlusUniqueCount aggregator. + * @type \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate\Max $max + * Max aggregator. + * @type \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate\Min $min + * Min aggregator. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * Type of the inputs that are accumulated by this `Aggregate`, which must + * specify a full encoding. + * Use `AddInput` mutations to accumulate new inputs. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type input_type = 1; + * @return \Google\Cloud\Bigtable\Admin\V2\Type|null + */ + public function getInputType() + { + return $this->input_type; + } + + public function hasInputType() + { + return isset($this->input_type); + } + + public function clearInputType() + { + unset($this->input_type); + } + + /** + * Type of the inputs that are accumulated by this `Aggregate`, which must + * specify a full encoding. + * Use `AddInput` mutations to accumulate new inputs. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type input_type = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\Type $var + * @return $this + */ + public function setInputType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type::class); + $this->input_type = $var; + + return $this; + } + + /** + * Output only. Type that holds the internal accumulator state for the + * `Aggregate`. This is a function of the `input_type` and `aggregator` + * chosen, and will always specify a full encoding. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type state_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Bigtable\Admin\V2\Type|null + */ + public function getStateType() + { + return $this->state_type; + } + + public function hasStateType() + { + return isset($this->state_type); + } + + public function clearStateType() + { + unset($this->state_type); + } + + /** + * Output only. Type that holds the internal accumulator state for the + * `Aggregate`. This is a function of the `input_type` and `aggregator` + * chosen, and will always specify a full encoding. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type state_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Bigtable\Admin\V2\Type $var + * @return $this + */ + public function setStateType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type::class); + $this->state_type = $var; + + return $this; + } + + /** + * Sum aggregator. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Aggregate.Sum sum = 4; + * @return \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate\Sum|null + */ + public function getSum() + { + return $this->readOneof(4); + } + + public function hasSum() + { + return $this->hasOneof(4); + } + + /** + * Sum aggregator. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Aggregate.Sum sum = 4; + * @param \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate\Sum $var + * @return $this + */ + public function setSum($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate\Sum::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * HyperLogLogPlusPlusUniqueCount aggregator. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount hllpp_unique_count = 5; + * @return \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate\HyperLogLogPlusPlusUniqueCount|null + */ + public function getHllppUniqueCount() + { + return $this->readOneof(5); + } + + public function hasHllppUniqueCount() + { + return $this->hasOneof(5); + } + + /** + * HyperLogLogPlusPlusUniqueCount aggregator. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount hllpp_unique_count = 5; + * @param \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate\HyperLogLogPlusPlusUniqueCount $var + * @return $this + */ + public function setHllppUniqueCount($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate\HyperLogLogPlusPlusUniqueCount::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Max aggregator. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Aggregate.Max max = 6; + * @return \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate\Max|null + */ + public function getMax() + { + return $this->readOneof(6); + } + + public function hasMax() + { + return $this->hasOneof(6); + } + + /** + * Max aggregator. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Aggregate.Max max = 6; + * @param \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate\Max $var + * @return $this + */ + public function setMax($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate\Max::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Min aggregator. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Aggregate.Min min = 7; + * @return \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate\Min|null + */ + public function getMin() + { + return $this->readOneof(7); + } + + public function hasMin() + { + return $this->hasOneof(7); + } + + /** + * Min aggregator. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Aggregate.Min min = 7; + * @param \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate\Min $var + * @return $this + */ + public function setMin($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate\Min::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * @return string + */ + public function getAggregator() + { + return $this->whichOneof("aggregator"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate/HyperLogLogPlusPlusUniqueCount.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate/HyperLogLogPlusPlusUniqueCount.php new file mode 100644 index 000000000000..9766958b1027 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate/HyperLogLogPlusPlusUniqueCount.php @@ -0,0 +1,39 @@ +google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount + */ +class HyperLogLogPlusPlusUniqueCount extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate/Max.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate/Max.php new file mode 100644 index 000000000000..c48a536e3b91 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate/Max.php @@ -0,0 +1,35 @@ +google.bigtable.admin.v2.Type.Aggregate.Max + */ +class Max extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate/Min.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate/Min.php new file mode 100644 index 000000000000..45ebd904bf52 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate/Min.php @@ -0,0 +1,35 @@ +google.bigtable.admin.v2.Type.Aggregate.Min + */ +class Min extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate/Sum.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate/Sum.php new file mode 100644 index 000000000000..0d316912f3a0 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate/Sum.php @@ -0,0 +1,35 @@ +google.bigtable.admin.v2.Type.Aggregate.Sum + */ +class Sum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Bytes.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Bytes.php new file mode 100644 index 000000000000..3cc75aa0d6a3 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Bytes.php @@ -0,0 +1,78 @@ +google.bigtable.admin.v2.Type.Bytes + */ +class Bytes extends \Google\Protobuf\Internal\Message +{ + /** + * The encoding to use when converting to or from lower level types. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Bytes.Encoding encoding = 1; + */ + protected $encoding = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\Type\Bytes\Encoding $encoding + * The encoding to use when converting to or from lower level types. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * The encoding to use when converting to or from lower level types. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Bytes.Encoding encoding = 1; + * @return \Google\Cloud\Bigtable\Admin\V2\Type\Bytes\Encoding|null + */ + public function getEncoding() + { + return $this->encoding; + } + + public function hasEncoding() + { + return isset($this->encoding); + } + + public function clearEncoding() + { + unset($this->encoding); + } + + /** + * The encoding to use when converting to or from lower level types. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Bytes.Encoding encoding = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\Type\Bytes\Encoding $var + * @return $this + */ + public function setEncoding($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Bytes\Encoding::class); + $this->encoding = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Bytes/Encoding.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Bytes/Encoding.php new file mode 100644 index 000000000000..993b209ddf23 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Bytes/Encoding.php @@ -0,0 +1,75 @@ +google.bigtable.admin.v2.Type.Bytes.Encoding + */ +class Encoding extends \Google\Protobuf\Internal\Message +{ + protected $encoding; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\Type\Bytes\Encoding\Raw $raw + * Use `Raw` encoding. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * Use `Raw` encoding. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Bytes.Encoding.Raw raw = 1; + * @return \Google\Cloud\Bigtable\Admin\V2\Type\Bytes\Encoding\Raw|null + */ + public function getRaw() + { + return $this->readOneof(1); + } + + public function hasRaw() + { + return $this->hasOneof(1); + } + + /** + * Use `Raw` encoding. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Bytes.Encoding.Raw raw = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\Type\Bytes\Encoding\Raw $var + * @return $this + */ + public function setRaw($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Bytes\Encoding\Raw::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getEncoding() + { + return $this->whichOneof("encoding"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Bytes/Encoding/Raw.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Bytes/Encoding/Raw.php new file mode 100644 index 000000000000..d41d5e8c76e2 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Bytes/Encoding/Raw.php @@ -0,0 +1,35 @@ +google.bigtable.admin.v2.Type.Bytes.Encoding.Raw + */ +class Raw extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Date.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Date.php new file mode 100644 index 000000000000..15dd64a0eecc --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Date.php @@ -0,0 +1,34 @@ +google.bigtable.admin.v2.Type.Date + */ +class Date extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Enum.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Enum.php new file mode 100644 index 000000000000..c062b81ea28c --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Enum.php @@ -0,0 +1,106 @@ +google.bigtable.admin.v2.Type.Enum + */ +class Enum extends \Google\Protobuf\Internal\Message +{ + /** + * The ID of the schema bundle that this enum is defined in. + * + * Generated from protobuf field string schema_bundle_id = 1; + */ + protected $schema_bundle_id = ''; + /** + * The fully qualified name of the protobuf enum message, including package. + * In the format of "foo.bar.EnumMessage". + * + * Generated from protobuf field string enum_name = 2; + */ + protected $enum_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $schema_bundle_id + * The ID of the schema bundle that this enum is defined in. + * @type string $enum_name + * The fully qualified name of the protobuf enum message, including package. + * In the format of "foo.bar.EnumMessage". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * The ID of the schema bundle that this enum is defined in. + * + * Generated from protobuf field string schema_bundle_id = 1; + * @return string + */ + public function getSchemaBundleId() + { + return $this->schema_bundle_id; + } + + /** + * The ID of the schema bundle that this enum is defined in. + * + * Generated from protobuf field string schema_bundle_id = 1; + * @param string $var + * @return $this + */ + public function setSchemaBundleId($var) + { + GPBUtil::checkString($var, True); + $this->schema_bundle_id = $var; + + return $this; + } + + /** + * The fully qualified name of the protobuf enum message, including package. + * In the format of "foo.bar.EnumMessage". + * + * Generated from protobuf field string enum_name = 2; + * @return string + */ + public function getEnumName() + { + return $this->enum_name; + } + + /** + * The fully qualified name of the protobuf enum message, including package. + * In the format of "foo.bar.EnumMessage". + * + * Generated from protobuf field string enum_name = 2; + * @param string $var + * @return $this + */ + public function setEnumName($var) + { + GPBUtil::checkString($var, True); + $this->enum_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Float32.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Float32.php new file mode 100644 index 000000000000..5f49aa029d66 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Float32.php @@ -0,0 +1,34 @@ +google.bigtable.admin.v2.Type.Float32 + */ +class Float32 extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Float64.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Float64.php new file mode 100644 index 000000000000..3b6811a39598 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Float64.php @@ -0,0 +1,34 @@ +google.bigtable.admin.v2.Type.Float64 + */ +class Float64 extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Int64.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Int64.php new file mode 100644 index 000000000000..325abee6f69d --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Int64.php @@ -0,0 +1,78 @@ +google.bigtable.admin.v2.Type.Int64 + */ +class Int64 extends \Google\Protobuf\Internal\Message +{ + /** + * The encoding to use when converting to or from lower level types. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Int64.Encoding encoding = 1; + */ + protected $encoding = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\Type\Int64\Encoding $encoding + * The encoding to use when converting to or from lower level types. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * The encoding to use when converting to or from lower level types. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Int64.Encoding encoding = 1; + * @return \Google\Cloud\Bigtable\Admin\V2\Type\Int64\Encoding|null + */ + public function getEncoding() + { + return $this->encoding; + } + + public function hasEncoding() + { + return isset($this->encoding); + } + + public function clearEncoding() + { + unset($this->encoding); + } + + /** + * The encoding to use when converting to or from lower level types. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Int64.Encoding encoding = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\Type\Int64\Encoding $var + * @return $this + */ + public function setEncoding($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Int64\Encoding::class); + $this->encoding = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Int64/Encoding.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Int64/Encoding.php new file mode 100644 index 000000000000..7fbd0d44ea0f --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Int64/Encoding.php @@ -0,0 +1,108 @@ +google.bigtable.admin.v2.Type.Int64.Encoding + */ +class Encoding extends \Google\Protobuf\Internal\Message +{ + protected $encoding; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\Type\Int64\Encoding\BigEndianBytes $big_endian_bytes + * Use `BigEndianBytes` encoding. + * @type \Google\Cloud\Bigtable\Admin\V2\Type\Int64\Encoding\OrderedCodeBytes $ordered_code_bytes + * Use `OrderedCodeBytes` encoding. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * Use `BigEndianBytes` encoding. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes big_endian_bytes = 1; + * @return \Google\Cloud\Bigtable\Admin\V2\Type\Int64\Encoding\BigEndianBytes|null + */ + public function getBigEndianBytes() + { + return $this->readOneof(1); + } + + public function hasBigEndianBytes() + { + return $this->hasOneof(1); + } + + /** + * Use `BigEndianBytes` encoding. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes big_endian_bytes = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\Type\Int64\Encoding\BigEndianBytes $var + * @return $this + */ + public function setBigEndianBytes($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Int64\Encoding\BigEndianBytes::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Use `OrderedCodeBytes` encoding. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes ordered_code_bytes = 2; + * @return \Google\Cloud\Bigtable\Admin\V2\Type\Int64\Encoding\OrderedCodeBytes|null + */ + public function getOrderedCodeBytes() + { + return $this->readOneof(2); + } + + public function hasOrderedCodeBytes() + { + return $this->hasOneof(2); + } + + /** + * Use `OrderedCodeBytes` encoding. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes ordered_code_bytes = 2; + * @param \Google\Cloud\Bigtable\Admin\V2\Type\Int64\Encoding\OrderedCodeBytes $var + * @return $this + */ + public function setOrderedCodeBytes($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Int64\Encoding\OrderedCodeBytes::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getEncoding() + { + return $this->whichOneof("encoding"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Int64/Encoding/BigEndianBytes.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Int64/Encoding/BigEndianBytes.php new file mode 100644 index 000000000000..736c307b55a2 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Int64/Encoding/BigEndianBytes.php @@ -0,0 +1,94 @@ +google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes + */ +class BigEndianBytes extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated: ignored if set. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Bytes bytes_type = 1 [deprecated = true]; + * @deprecated + */ + protected $bytes_type = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\Type\Bytes $bytes_type + * Deprecated: ignored if set. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated: ignored if set. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Bytes bytes_type = 1 [deprecated = true]; + * @return \Google\Cloud\Bigtable\Admin\V2\Type\Bytes|null + * @deprecated + */ + public function getBytesType() + { + if (isset($this->bytes_type)) { + @trigger_error('bytes_type is deprecated.', E_USER_DEPRECATED); + } + return $this->bytes_type; + } + + public function hasBytesType() + { + if (isset($this->bytes_type)) { + @trigger_error('bytes_type is deprecated.', E_USER_DEPRECATED); + } + return isset($this->bytes_type); + } + + public function clearBytesType() + { + @trigger_error('bytes_type is deprecated.', E_USER_DEPRECATED); + unset($this->bytes_type); + } + + /** + * Deprecated: ignored if set. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Bytes bytes_type = 1 [deprecated = true]; + * @param \Google\Cloud\Bigtable\Admin\V2\Type\Bytes $var + * @return $this + * @deprecated + */ + public function setBytesType($var) + { + @trigger_error('bytes_type is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Bytes::class); + $this->bytes_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Int64/Encoding/OrderedCodeBytes.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Int64/Encoding/OrderedCodeBytes.php new file mode 100644 index 000000000000..18c29960fa3f --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Int64/Encoding/OrderedCodeBytes.php @@ -0,0 +1,36 @@ +google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes + */ +class OrderedCodeBytes extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Map.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Map.php new file mode 100644 index 000000000000..191950d5cbfd --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Map.php @@ -0,0 +1,131 @@ +google.bigtable.admin.v2.Type.Map + */ +class Map extends \Google\Protobuf\Internal\Message +{ + /** + * The type of a map key. + * Only `Bytes`, `String`, and `Int64` are allowed as key types. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type key_type = 1; + */ + protected $key_type = null; + /** + * The type of the values in a map. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type value_type = 2; + */ + protected $value_type = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\Type $key_type + * The type of a map key. + * Only `Bytes`, `String`, and `Int64` are allowed as key types. + * @type \Google\Cloud\Bigtable\Admin\V2\Type $value_type + * The type of the values in a map. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * The type of a map key. + * Only `Bytes`, `String`, and `Int64` are allowed as key types. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type key_type = 1; + * @return \Google\Cloud\Bigtable\Admin\V2\Type|null + */ + public function getKeyType() + { + return $this->key_type; + } + + public function hasKeyType() + { + return isset($this->key_type); + } + + public function clearKeyType() + { + unset($this->key_type); + } + + /** + * The type of a map key. + * Only `Bytes`, `String`, and `Int64` are allowed as key types. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type key_type = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\Type $var + * @return $this + */ + public function setKeyType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type::class); + $this->key_type = $var; + + return $this; + } + + /** + * The type of the values in a map. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type value_type = 2; + * @return \Google\Cloud\Bigtable\Admin\V2\Type|null + */ + public function getValueType() + { + return $this->value_type; + } + + public function hasValueType() + { + return isset($this->value_type); + } + + public function clearValueType() + { + unset($this->value_type); + } + + /** + * The type of the values in a map. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type value_type = 2; + * @param \Google\Cloud\Bigtable\Admin\V2\Type $var + * @return $this + */ + public function setValueType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type::class); + $this->value_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBArray.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBArray.php new file mode 100644 index 000000000000..8001121d0488 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBArray.php @@ -0,0 +1,78 @@ +google.bigtable.admin.v2.Type.Array + */ +class PBArray extends \Google\Protobuf\Internal\Message +{ + /** + * The type of the elements in the array. This must not be `Array`. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type element_type = 1; + */ + protected $element_type = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\Type $element_type + * The type of the elements in the array. This must not be `Array`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * The type of the elements in the array. This must not be `Array`. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type element_type = 1; + * @return \Google\Cloud\Bigtable\Admin\V2\Type|null + */ + public function getElementType() + { + return $this->element_type; + } + + public function hasElementType() + { + return isset($this->element_type); + } + + public function clearElementType() + { + unset($this->element_type); + } + + /** + * The type of the elements in the array. This must not be `Array`. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type element_type = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\Type $var + * @return $this + */ + public function setElementType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type::class); + $this->element_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBBool.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBBool.php new file mode 100644 index 000000000000..29daecdd3e86 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBBool.php @@ -0,0 +1,34 @@ +google.bigtable.admin.v2.Type.Bool + */ +class PBBool extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBString.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBString.php new file mode 100644 index 000000000000..4583cc1ce63f --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBString.php @@ -0,0 +1,78 @@ +google.bigtable.admin.v2.Type.String + */ +class PBString extends \Google\Protobuf\Internal\Message +{ + /** + * The encoding to use when converting to or from lower level types. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.String.Encoding encoding = 1; + */ + protected $encoding = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\Type\PBString\Encoding $encoding + * The encoding to use when converting to or from lower level types. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * The encoding to use when converting to or from lower level types. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.String.Encoding encoding = 1; + * @return \Google\Cloud\Bigtable\Admin\V2\Type\PBString\Encoding|null + */ + public function getEncoding() + { + return $this->encoding; + } + + public function hasEncoding() + { + return isset($this->encoding); + } + + public function clearEncoding() + { + unset($this->encoding); + } + + /** + * The encoding to use when converting to or from lower level types. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.String.Encoding encoding = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\Type\PBString\Encoding $var + * @return $this + */ + public function setEncoding($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\PBString\Encoding::class); + $this->encoding = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBString/Encoding.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBString/Encoding.php new file mode 100644 index 000000000000..3fd433f39874 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBString/Encoding.php @@ -0,0 +1,117 @@ +google.bigtable.admin.v2.Type.String.Encoding + */ +class Encoding extends \Google\Protobuf\Internal\Message +{ + protected $encoding; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\Type\PBString\Encoding\Utf8Raw $utf8_raw + * Deprecated: if set, converts to an empty `utf8_bytes`. + * @type \Google\Cloud\Bigtable\Admin\V2\Type\PBString\Encoding\Utf8Bytes $utf8_bytes + * Use `Utf8Bytes` encoding. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated: if set, converts to an empty `utf8_bytes`. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw utf8_raw = 1 [deprecated = true]; + * @return \Google\Cloud\Bigtable\Admin\V2\Type\PBString\Encoding\Utf8Raw|null + * @deprecated + */ + public function getUtf8Raw() + { + if ($this->hasOneof(1)) { + @trigger_error('utf8_raw is deprecated.', E_USER_DEPRECATED); + } + return $this->readOneof(1); + } + + public function hasUtf8Raw() + { + if ($this->hasOneof(1)) { + @trigger_error('utf8_raw is deprecated.', E_USER_DEPRECATED); + } + return $this->hasOneof(1); + } + + /** + * Deprecated: if set, converts to an empty `utf8_bytes`. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw utf8_raw = 1 [deprecated = true]; + * @param \Google\Cloud\Bigtable\Admin\V2\Type\PBString\Encoding\Utf8Raw $var + * @return $this + * @deprecated + */ + public function setUtf8Raw($var) + { + @trigger_error('utf8_raw is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\PBString\Encoding\Utf8Raw::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Use `Utf8Bytes` encoding. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes utf8_bytes = 2; + * @return \Google\Cloud\Bigtable\Admin\V2\Type\PBString\Encoding\Utf8Bytes|null + */ + public function getUtf8Bytes() + { + return $this->readOneof(2); + } + + public function hasUtf8Bytes() + { + return $this->hasOneof(2); + } + + /** + * Use `Utf8Bytes` encoding. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes utf8_bytes = 2; + * @param \Google\Cloud\Bigtable\Admin\V2\Type\PBString\Encoding\Utf8Bytes $var + * @return $this + */ + public function setUtf8Bytes($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\PBString\Encoding\Utf8Bytes::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getEncoding() + { + return $this->whichOneof("encoding"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBString/Encoding/Utf8Bytes.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBString/Encoding/Utf8Bytes.php new file mode 100644 index 000000000000..ab79a1b9eeb4 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBString/Encoding/Utf8Bytes.php @@ -0,0 +1,41 @@ +google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes + */ +class Utf8Bytes extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBString/Encoding/Utf8Raw.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBString/Encoding/Utf8Raw.php new file mode 100644 index 000000000000..f292bc602c83 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBString/Encoding/Utf8Raw.php @@ -0,0 +1,34 @@ +google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw + */ +class Utf8Raw extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Proto.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Proto.php new file mode 100644 index 000000000000..08adcf4ba2c1 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Proto.php @@ -0,0 +1,106 @@ +google.bigtable.admin.v2.Type.Proto + */ +class Proto extends \Google\Protobuf\Internal\Message +{ + /** + * The ID of the schema bundle that this proto is defined in. + * + * Generated from protobuf field string schema_bundle_id = 1; + */ + protected $schema_bundle_id = ''; + /** + * The fully qualified name of the protobuf message, including package. In + * the format of "foo.bar.Message". + * + * Generated from protobuf field string message_name = 2; + */ + protected $message_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $schema_bundle_id + * The ID of the schema bundle that this proto is defined in. + * @type string $message_name + * The fully qualified name of the protobuf message, including package. In + * the format of "foo.bar.Message". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * The ID of the schema bundle that this proto is defined in. + * + * Generated from protobuf field string schema_bundle_id = 1; + * @return string + */ + public function getSchemaBundleId() + { + return $this->schema_bundle_id; + } + + /** + * The ID of the schema bundle that this proto is defined in. + * + * Generated from protobuf field string schema_bundle_id = 1; + * @param string $var + * @return $this + */ + public function setSchemaBundleId($var) + { + GPBUtil::checkString($var, True); + $this->schema_bundle_id = $var; + + return $this; + } + + /** + * The fully qualified name of the protobuf message, including package. In + * the format of "foo.bar.Message". + * + * Generated from protobuf field string message_name = 2; + * @return string + */ + public function getMessageName() + { + return $this->message_name; + } + + /** + * The fully qualified name of the protobuf message, including package. In + * the format of "foo.bar.Message". + * + * Generated from protobuf field string message_name = 2; + * @param string $var + * @return $this + */ + public function setMessageName($var) + { + GPBUtil::checkString($var, True); + $this->message_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct.php new file mode 100644 index 000000000000..2975abb23717 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct.php @@ -0,0 +1,114 @@ +google.bigtable.admin.v2.Type.Struct + */ +class Struct extends \Google\Protobuf\Internal\Message +{ + /** + * The names and types of the fields in this struct. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.Type.Struct.Field fields = 1; + */ + private $fields; + /** + * The encoding to use when converting to or from lower level types. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Struct.Encoding encoding = 2; + */ + protected $encoding = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Field[] $fields + * The names and types of the fields in this struct. + * @type \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Encoding $encoding + * The encoding to use when converting to or from lower level types. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * The names and types of the fields in this struct. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.Type.Struct.Field fields = 1; + * @return RepeatedField<\Google\Cloud\Bigtable\Admin\V2\Type\Struct\Field> + */ + public function getFields() + { + return $this->fields; + } + + /** + * The names and types of the fields in this struct. + * + * Generated from protobuf field repeated .google.bigtable.admin.v2.Type.Struct.Field fields = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Field[] $var + * @return $this + */ + public function setFields($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Field::class); + $this->fields = $arr; + + return $this; + } + + /** + * The encoding to use when converting to or from lower level types. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Struct.Encoding encoding = 2; + * @return \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Encoding|null + */ + public function getEncoding() + { + return $this->encoding; + } + + public function hasEncoding() + { + return isset($this->encoding); + } + + public function clearEncoding() + { + unset($this->encoding); + } + + /** + * The encoding to use when converting to or from lower level types. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Struct.Encoding encoding = 2; + * @param \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Encoding $var + * @return $this + */ + public function setEncoding($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Encoding::class); + $this->encoding = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Encoding.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Encoding.php new file mode 100644 index 000000000000..3830c5205d0e --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Encoding.php @@ -0,0 +1,141 @@ +google.bigtable.admin.v2.Type.Struct.Encoding + */ +class Encoding extends \Google\Protobuf\Internal\Message +{ + protected $encoding; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Encoding\Singleton $singleton + * Use `Singleton` encoding. + * @type \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Encoding\DelimitedBytes $delimited_bytes + * Use `DelimitedBytes` encoding. + * @type \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Encoding\OrderedCodeBytes $ordered_code_bytes + * User `OrderedCodeBytes` encoding. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * Use `Singleton` encoding. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Struct.Encoding.Singleton singleton = 1; + * @return \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Encoding\Singleton|null + */ + public function getSingleton() + { + return $this->readOneof(1); + } + + public function hasSingleton() + { + return $this->hasOneof(1); + } + + /** + * Use `Singleton` encoding. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Struct.Encoding.Singleton singleton = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Encoding\Singleton $var + * @return $this + */ + public function setSingleton($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Encoding\Singleton::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Use `DelimitedBytes` encoding. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes delimited_bytes = 2; + * @return \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Encoding\DelimitedBytes|null + */ + public function getDelimitedBytes() + { + return $this->readOneof(2); + } + + public function hasDelimitedBytes() + { + return $this->hasOneof(2); + } + + /** + * Use `DelimitedBytes` encoding. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes delimited_bytes = 2; + * @param \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Encoding\DelimitedBytes $var + * @return $this + */ + public function setDelimitedBytes($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Encoding\DelimitedBytes::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * User `OrderedCodeBytes` encoding. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes ordered_code_bytes = 3; + * @return \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Encoding\OrderedCodeBytes|null + */ + public function getOrderedCodeBytes() + { + return $this->readOneof(3); + } + + public function hasOrderedCodeBytes() + { + return $this->hasOneof(3); + } + + /** + * User `OrderedCodeBytes` encoding. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes ordered_code_bytes = 3; + * @param \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Encoding\OrderedCodeBytes $var + * @return $this + */ + public function setOrderedCodeBytes($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Encoding\OrderedCodeBytes::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getEncoding() + { + return $this->whichOneof("encoding"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Encoding/DelimitedBytes.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Encoding/DelimitedBytes.php new file mode 100644 index 000000000000..9e787b1699ac --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Encoding/DelimitedBytes.php @@ -0,0 +1,81 @@ +google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes + */ +class DelimitedBytes extends \Google\Protobuf\Internal\Message +{ + /** + * Byte sequence used to delimit concatenated fields. The delimiter must + * contain at least 1 character and at most 50 characters. + * + * Generated from protobuf field bytes delimiter = 1; + */ + protected $delimiter = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $delimiter + * Byte sequence used to delimit concatenated fields. The delimiter must + * contain at least 1 character and at most 50 characters. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * Byte sequence used to delimit concatenated fields. The delimiter must + * contain at least 1 character and at most 50 characters. + * + * Generated from protobuf field bytes delimiter = 1; + * @return string + */ + public function getDelimiter() + { + return $this->delimiter; + } + + /** + * Byte sequence used to delimit concatenated fields. The delimiter must + * contain at least 1 character and at most 50 characters. + * + * Generated from protobuf field bytes delimiter = 1; + * @param string $var + * @return $this + */ + public function setDelimiter($var) + { + GPBUtil::checkString($var, False); + $this->delimiter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Encoding/OrderedCodeBytes.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Encoding/OrderedCodeBytes.php new file mode 100644 index 000000000000..ffecbff176e8 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Encoding/OrderedCodeBytes.php @@ -0,0 +1,62 @@ + "\00\00" + * - STRUCT("") -> "\00\00" + * - STRUCT("", "") -> "\00\00" + * - STRUCT("", "B") -> "\00\00" + "\00\01" + "B" + * - STRUCT("A", "") -> "A" + * - STRUCT("", "B", "") -> "\00\00" + "\00\01" + "B" + * - STRUCT("A", "", "C") -> "A" + "\00\01" + "\00\00" + "\00\01" + "C" + * Since null bytes are always escaped, this encoding can cause size + * blowup for encodings like `Int64.BigEndianBytes` that are likely to + * produce many such bytes. + * Sorted mode: + * - Fields are encoded in sorted mode. + * - All values supported by the field encodings are allowed + * - Element-wise order is preserved: `A < B` if `A[0] < B[0]`, or if + * `A[0] == B[0] && A[1] < B[1]`, etc. Strict prefixes sort first. + * Distinct mode: + * - Fields are encoded in distinct mode. + * - All values supported by the field encodings are allowed. + * + * Generated from protobuf message google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes + */ +class OrderedCodeBytes extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Encoding/Singleton.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Encoding/Singleton.php new file mode 100644 index 000000000000..c1632a6b60f6 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Encoding/Singleton.php @@ -0,0 +1,34 @@ +google.bigtable.admin.v2.Type.Struct.Encoding.Singleton + */ +class Singleton extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Field.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Field.php new file mode 100644 index 000000000000..8dbc5e0d4c50 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Field.php @@ -0,0 +1,115 @@ +google.bigtable.admin.v2.Type.Struct.Field + */ +class Field extends \Google\Protobuf\Internal\Message +{ + /** + * The field name (optional). Fields without a `field_name` are considered + * anonymous and cannot be referenced by name. + * + * Generated from protobuf field string field_name = 1; + */ + protected $field_name = ''; + /** + * The type of values in this field. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type type = 2; + */ + protected $type = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $field_name + * The field name (optional). Fields without a `field_name` are considered + * anonymous and cannot be referenced by name. + * @type \Google\Cloud\Bigtable\Admin\V2\Type $type + * The type of values in this field. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * The field name (optional). Fields without a `field_name` are considered + * anonymous and cannot be referenced by name. + * + * Generated from protobuf field string field_name = 1; + * @return string + */ + public function getFieldName() + { + return $this->field_name; + } + + /** + * The field name (optional). Fields without a `field_name` are considered + * anonymous and cannot be referenced by name. + * + * Generated from protobuf field string field_name = 1; + * @param string $var + * @return $this + */ + public function setFieldName($var) + { + GPBUtil::checkString($var, True); + $this->field_name = $var; + + return $this; + } + + /** + * The type of values in this field. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type type = 2; + * @return \Google\Cloud\Bigtable\Admin\V2\Type|null + */ + public function getType() + { + return $this->type; + } + + public function hasType() + { + return isset($this->type); + } + + public function clearType() + { + unset($this->type); + } + + /** + * The type of values in this field. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type type = 2; + * @param \Google\Cloud\Bigtable\Admin\V2\Type $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type::class); + $this->type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Timestamp.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Timestamp.php new file mode 100644 index 000000000000..b1e2a22ec9fe --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Timestamp.php @@ -0,0 +1,78 @@ +google.bigtable.admin.v2.Type.Timestamp + */ +class Timestamp extends \Google\Protobuf\Internal\Message +{ + /** + * The encoding to use when converting to or from lower level types. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Timestamp.Encoding encoding = 1; + */ + protected $encoding = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\Type\Timestamp\Encoding $encoding + * The encoding to use when converting to or from lower level types. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * The encoding to use when converting to or from lower level types. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Timestamp.Encoding encoding = 1; + * @return \Google\Cloud\Bigtable\Admin\V2\Type\Timestamp\Encoding|null + */ + public function getEncoding() + { + return $this->encoding; + } + + public function hasEncoding() + { + return isset($this->encoding); + } + + public function clearEncoding() + { + unset($this->encoding); + } + + /** + * The encoding to use when converting to or from lower level types. + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Timestamp.Encoding encoding = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\Type\Timestamp\Encoding $var + * @return $this + */ + public function setEncoding($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Timestamp\Encoding::class); + $this->encoding = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Timestamp/Encoding.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Timestamp/Encoding.php new file mode 100644 index 000000000000..09f3d6eeaf5e --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Timestamp/Encoding.php @@ -0,0 +1,84 @@ +google.bigtable.admin.v2.Type.Timestamp.Encoding + */ +class Encoding extends \Google\Protobuf\Internal\Message +{ + protected $encoding; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\Type\Int64\Encoding $unix_micros_int64 + * Encodes the number of microseconds since the Unix epoch using the + * given `Int64` encoding. Values must be microsecond-aligned. + * Compatible with: + * - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * Encodes the number of microseconds since the Unix epoch using the + * given `Int64` encoding. Values must be microsecond-aligned. + * Compatible with: + * - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS` + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Int64.Encoding unix_micros_int64 = 1; + * @return \Google\Cloud\Bigtable\Admin\V2\Type\Int64\Encoding|null + */ + public function getUnixMicrosInt64() + { + return $this->readOneof(1); + } + + public function hasUnixMicrosInt64() + { + return $this->hasOneof(1); + } + + /** + * Encodes the number of microseconds since the Unix epoch using the + * given `Int64` encoding. Values must be microsecond-aligned. + * Compatible with: + * - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS` + * + * Generated from protobuf field .google.bigtable.admin.v2.Type.Int64.Encoding unix_micros_int64 = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\Type\Int64\Encoding $var + * @return $this + */ + public function setUnixMicrosInt64($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Int64\Encoding::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getEncoding() + { + return $this->whichOneof("encoding"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UndeleteTableMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UndeleteTableMetadata.php new file mode 100644 index 000000000000..843a9e86df51 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UndeleteTableMetadata.php @@ -0,0 +1,156 @@ +google.bigtable.admin.v2.UndeleteTableMetadata + */ +class UndeleteTableMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the table being restored. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * The time at which this operation started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + */ + protected $start_time = null; + /** + * If set, the time at which this operation finished or was cancelled. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; + */ + protected $end_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of the table being restored. + * @type \Google\Protobuf\Timestamp $start_time + * The time at which this operation started. + * @type \Google\Protobuf\Timestamp $end_time + * If set, the time at which this operation finished or was cancelled. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The name of the table being restored. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of the table being restored. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The time at which this operation started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @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 at which this operation started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * If set, the time at which this operation finished or was cancelled. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; + * @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); + } + + /** + * If set, the time at which this operation finished or was cancelled. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UndeleteTableRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UndeleteTableRequest.php new file mode 100644 index 000000000000..e177268e6c75 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UndeleteTableRequest.php @@ -0,0 +1,92 @@ +google.bigtable.admin.v2.UndeleteTableRequest + */ +class UndeleteTableRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the table to be restored. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The unique name of the table to be restored. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. Please see + * {@see BigtableTableAdminClient::tableName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\Admin\V2\UndeleteTableRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The unique name of the table to be restored. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the table to be restored. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The unique name of the table to be restored. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateAppProfileMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateAppProfileMetadata.php new file mode 100644 index 000000000000..b9f8cc371bae --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateAppProfileMetadata.php @@ -0,0 +1,33 @@ +google.bigtable.admin.v2.UpdateAppProfileMetadata + */ +class UpdateAppProfileMetadata extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateAppProfileRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateAppProfileRequest.php new file mode 100644 index 000000000000..4b567f7c1c26 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateAppProfileRequest.php @@ -0,0 +1,175 @@ +google.bigtable.admin.v2.UpdateAppProfileRequest + */ +class UpdateAppProfileRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The app profile which will (partially) replace the current value. + * + * Generated from protobuf field .google.bigtable.admin.v2.AppProfile app_profile = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $app_profile = null; + /** + * Required. The subset of app profile fields which should be replaced. + * If unset, all fields will be replaced. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + /** + * If true, ignore safety checks when updating the app profile. + * + * Generated from protobuf field bool ignore_warnings = 3; + */ + protected $ignore_warnings = false; + + /** + * @param \Google\Cloud\Bigtable\Admin\V2\AppProfile $appProfile Required. The app profile which will (partially) replace the current value. + * @param \Google\Protobuf\FieldMask $updateMask Required. The subset of app profile fields which should be replaced. + * If unset, all fields will be replaced. + * + * @return \Google\Cloud\Bigtable\Admin\V2\UpdateAppProfileRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Bigtable\Admin\V2\AppProfile $appProfile, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setAppProfile($appProfile) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\AppProfile $app_profile + * Required. The app profile which will (partially) replace the current value. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The subset of app profile fields which should be replaced. + * If unset, all fields will be replaced. + * @type bool $ignore_warnings + * If true, ignore safety checks when updating the app profile. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The app profile which will (partially) replace the current value. + * + * Generated from protobuf field .google.bigtable.admin.v2.AppProfile app_profile = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Bigtable\Admin\V2\AppProfile|null + */ + public function getAppProfile() + { + return $this->app_profile; + } + + public function hasAppProfile() + { + return isset($this->app_profile); + } + + public function clearAppProfile() + { + unset($this->app_profile); + } + + /** + * Required. The app profile which will (partially) replace the current value. + * + * Generated from protobuf field .google.bigtable.admin.v2.AppProfile app_profile = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Bigtable\Admin\V2\AppProfile $var + * @return $this + */ + public function setAppProfile($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\AppProfile::class); + $this->app_profile = $var; + + return $this; + } + + /** + * Required. The subset of app profile fields which should be replaced. + * If unset, all fields will be replaced. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The subset of app profile fields which should be replaced. + * If unset, all fields will be replaced. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * If true, ignore safety checks when updating the app profile. + * + * Generated from protobuf field bool ignore_warnings = 3; + * @return bool + */ + public function getIgnoreWarnings() + { + return $this->ignore_warnings; + } + + /** + * If true, ignore safety checks when updating the app profile. + * + * Generated from protobuf field bool ignore_warnings = 3; + * @param bool $var + * @return $this + */ + public function setIgnoreWarnings($var) + { + GPBUtil::checkBool($var); + $this->ignore_warnings = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateAuthorizedViewMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateAuthorizedViewMetadata.php new file mode 100644 index 000000000000..4d78c94037b6 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateAuthorizedViewMetadata.php @@ -0,0 +1,170 @@ +google.bigtable.admin.v2.UpdateAuthorizedViewMetadata + */ +class UpdateAuthorizedViewMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The request that prompted the initiation of this UpdateAuthorizedView + * operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.UpdateAuthorizedViewRequest original_request = 1; + */ + protected $original_request = null; + /** + * The time at which the original request was received. + * + * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; + */ + protected $request_time = null; + /** + * The time at which the operation failed or was completed successfully. + * + * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; + */ + protected $finish_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\UpdateAuthorizedViewRequest $original_request + * The request that prompted the initiation of this UpdateAuthorizedView + * operation. + * @type \Google\Protobuf\Timestamp $request_time + * The time at which the original request was received. + * @type \Google\Protobuf\Timestamp $finish_time + * The time at which the operation failed or was completed successfully. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The request that prompted the initiation of this UpdateAuthorizedView + * operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.UpdateAuthorizedViewRequest original_request = 1; + * @return \Google\Cloud\Bigtable\Admin\V2\UpdateAuthorizedViewRequest|null + */ + public function getOriginalRequest() + { + return $this->original_request; + } + + public function hasOriginalRequest() + { + return isset($this->original_request); + } + + public function clearOriginalRequest() + { + unset($this->original_request); + } + + /** + * The request that prompted the initiation of this UpdateAuthorizedView + * operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.UpdateAuthorizedViewRequest original_request = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\UpdateAuthorizedViewRequest $var + * @return $this + */ + public function setOriginalRequest($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\UpdateAuthorizedViewRequest::class); + $this->original_request = $var; + + return $this; + } + + /** + * The time at which the original request was received. + * + * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getRequestTime() + { + return $this->request_time; + } + + public function hasRequestTime() + { + return isset($this->request_time); + } + + public function clearRequestTime() + { + unset($this->request_time); + } + + /** + * The time at which the original request was received. + * + * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setRequestTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->request_time = $var; + + return $this; + } + + /** + * The time at which the operation failed or was completed successfully. + * + * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; + * @return \Google\Protobuf\Timestamp|null + */ + public function getFinishTime() + { + return $this->finish_time; + } + + public function hasFinishTime() + { + return isset($this->finish_time); + } + + public function clearFinishTime() + { + unset($this->finish_time); + } + + /** + * The time at which the operation failed or was completed successfully. + * + * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setFinishTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->finish_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateAuthorizedViewRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateAuthorizedViewRequest.php new file mode 100644 index 000000000000..f53334143f16 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateAuthorizedViewRequest.php @@ -0,0 +1,220 @@ +google.bigtable.admin.v2.UpdateAuthorizedViewRequest + */ +class UpdateAuthorizedViewRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The AuthorizedView to update. The `name` in `authorized_view` is + * used to identify the AuthorizedView. AuthorizedView name must in this + * format: + * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + * + * Generated from protobuf field .google.bigtable.admin.v2.AuthorizedView authorized_view = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $authorized_view = null; + /** + * Optional. The list of fields to update. + * A mask specifying which fields in the AuthorizedView resource should be + * updated. This mask is relative to the AuthorizedView resource, not to the + * request message. A field will be overwritten if it is in the mask. If + * empty, all fields set in the request will be overwritten. A special value + * `*` means to overwrite all fields (including fields not set in the + * request). + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + /** + * Optional. If true, ignore the safety checks when updating the + * AuthorizedView. + * + * Generated from protobuf field bool ignore_warnings = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $ignore_warnings = false; + + /** + * @param \Google\Cloud\Bigtable\Admin\V2\AuthorizedView $authorizedView Required. The AuthorizedView to update. The `name` in `authorized_view` is + * used to identify the AuthorizedView. AuthorizedView name must in this + * format: + * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + * @param \Google\Protobuf\FieldMask $updateMask Optional. The list of fields to update. + * A mask specifying which fields in the AuthorizedView resource should be + * updated. This mask is relative to the AuthorizedView resource, not to the + * request message. A field will be overwritten if it is in the mask. If + * empty, all fields set in the request will be overwritten. A special value + * `*` means to overwrite all fields (including fields not set in the + * request). + * + * @return \Google\Cloud\Bigtable\Admin\V2\UpdateAuthorizedViewRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Bigtable\Admin\V2\AuthorizedView $authorizedView, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setAuthorizedView($authorizedView) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\AuthorizedView $authorized_view + * Required. The AuthorizedView to update. The `name` in `authorized_view` is + * used to identify the AuthorizedView. AuthorizedView name must in this + * format: + * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. The list of fields to update. + * A mask specifying which fields in the AuthorizedView resource should be + * updated. This mask is relative to the AuthorizedView resource, not to the + * request message. A field will be overwritten if it is in the mask. If + * empty, all fields set in the request will be overwritten. A special value + * `*` means to overwrite all fields (including fields not set in the + * request). + * @type bool $ignore_warnings + * Optional. If true, ignore the safety checks when updating the + * AuthorizedView. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The AuthorizedView to update. The `name` in `authorized_view` is + * used to identify the AuthorizedView. AuthorizedView name must in this + * format: + * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + * + * Generated from protobuf field .google.bigtable.admin.v2.AuthorizedView authorized_view = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Bigtable\Admin\V2\AuthorizedView|null + */ + public function getAuthorizedView() + { + return $this->authorized_view; + } + + public function hasAuthorizedView() + { + return isset($this->authorized_view); + } + + public function clearAuthorizedView() + { + unset($this->authorized_view); + } + + /** + * Required. The AuthorizedView to update. The `name` in `authorized_view` is + * used to identify the AuthorizedView. AuthorizedView name must in this + * format: + * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + * + * Generated from protobuf field .google.bigtable.admin.v2.AuthorizedView authorized_view = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Bigtable\Admin\V2\AuthorizedView $var + * @return $this + */ + public function setAuthorizedView($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\AuthorizedView::class); + $this->authorized_view = $var; + + return $this; + } + + /** + * Optional. The list of fields to update. + * A mask specifying which fields in the AuthorizedView resource should be + * updated. This mask is relative to the AuthorizedView resource, not to the + * request message. A field will be overwritten if it is in the mask. If + * empty, all fields set in the request will be overwritten. A special value + * `*` means to overwrite all fields (including fields not set in the + * request). + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Optional. The list of fields to update. + * A mask specifying which fields in the AuthorizedView resource should be + * updated. This mask is relative to the AuthorizedView resource, not to the + * request message. A field will be overwritten if it is in the mask. If + * empty, all fields set in the request will be overwritten. A special value + * `*` means to overwrite all fields (including fields not set in the + * request). + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * Optional. If true, ignore the safety checks when updating the + * AuthorizedView. + * + * Generated from protobuf field bool ignore_warnings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getIgnoreWarnings() + { + return $this->ignore_warnings; + } + + /** + * Optional. If true, ignore the safety checks when updating the + * AuthorizedView. + * + * Generated from protobuf field bool ignore_warnings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setIgnoreWarnings($var) + { + GPBUtil::checkBool($var); + $this->ignore_warnings = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateBackupRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateBackupRequest.php new file mode 100644 index 000000000000..9edda2e6eb45 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateBackupRequest.php @@ -0,0 +1,173 @@ +google.bigtable.admin.v2.UpdateBackupRequest + */ +class UpdateBackupRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The backup to update. `backup.name`, and the fields to be updated + * as specified by `update_mask` are required. Other fields are ignored. + * Update is only supported for the following fields: + * * `backup.expire_time`. + * + * Generated from protobuf field .google.bigtable.admin.v2.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $backup = null; + /** + * Required. A mask specifying which fields (e.g. `expire_time`) in the + * Backup resource should be updated. This mask is relative to the Backup + * resource, not to the request message. The field mask must always be + * specified; this prevents any future fields from being erased accidentally + * by clients that do not know about them. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\Bigtable\Admin\V2\Backup $backup Required. The backup to update. `backup.name`, and the fields to be updated + * as specified by `update_mask` are required. Other fields are ignored. + * Update is only supported for the following fields: + * + * * `backup.expire_time`. + * @param \Google\Protobuf\FieldMask $updateMask Required. A mask specifying which fields (e.g. `expire_time`) in the + * Backup resource should be updated. This mask is relative to the Backup + * resource, not to the request message. The field mask must always be + * specified; this prevents any future fields from being erased accidentally + * by clients that do not know about them. + * + * @return \Google\Cloud\Bigtable\Admin\V2\UpdateBackupRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Bigtable\Admin\V2\Backup $backup, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setBackup($backup) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\Backup $backup + * Required. The backup to update. `backup.name`, and the fields to be updated + * as specified by `update_mask` are required. Other fields are ignored. + * Update is only supported for the following fields: + * * `backup.expire_time`. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. A mask specifying which fields (e.g. `expire_time`) in the + * Backup resource should be updated. This mask is relative to the Backup + * resource, not to the request message. The field mask must always be + * specified; this prevents any future fields from being erased accidentally + * by clients that do not know about them. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The backup to update. `backup.name`, and the fields to be updated + * as specified by `update_mask` are required. Other fields are ignored. + * Update is only supported for the following fields: + * * `backup.expire_time`. + * + * Generated from protobuf field .google.bigtable.admin.v2.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Bigtable\Admin\V2\Backup|null + */ + public function getBackup() + { + return $this->backup; + } + + public function hasBackup() + { + return isset($this->backup); + } + + public function clearBackup() + { + unset($this->backup); + } + + /** + * Required. The backup to update. `backup.name`, and the fields to be updated + * as specified by `update_mask` are required. Other fields are ignored. + * Update is only supported for the following fields: + * * `backup.expire_time`. + * + * Generated from protobuf field .google.bigtable.admin.v2.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Bigtable\Admin\V2\Backup $var + * @return $this + */ + public function setBackup($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Backup::class); + $this->backup = $var; + + return $this; + } + + /** + * Required. A mask specifying which fields (e.g. `expire_time`) in the + * Backup resource should be updated. This mask is relative to the Backup + * resource, not to the request message. The field mask must always be + * specified; this prevents any future fields from being erased accidentally + * by clients that do not know about them. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. A mask specifying which fields (e.g. `expire_time`) in the + * Backup resource should be updated. This mask is relative to the Backup + * resource, not to the request message. The field mask must always be + * specified; this prevents any future fields from being erased accidentally + * by clients that do not know about them. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateClusterMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateClusterMetadata.php new file mode 100644 index 000000000000..d7139cf84ced --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateClusterMetadata.php @@ -0,0 +1,165 @@ +google.bigtable.admin.v2.UpdateClusterMetadata + */ +class UpdateClusterMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The request that prompted the initiation of this UpdateCluster operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.Cluster original_request = 1; + */ + protected $original_request = null; + /** + * The time at which the original request was received. + * + * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; + */ + protected $request_time = null; + /** + * The time at which the operation failed or was completed successfully. + * + * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; + */ + protected $finish_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\Cluster $original_request + * The request that prompted the initiation of this UpdateCluster operation. + * @type \Google\Protobuf\Timestamp $request_time + * The time at which the original request was received. + * @type \Google\Protobuf\Timestamp $finish_time + * The time at which the operation failed or was completed successfully. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The request that prompted the initiation of this UpdateCluster operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.Cluster original_request = 1; + * @return \Google\Cloud\Bigtable\Admin\V2\Cluster|null + */ + public function getOriginalRequest() + { + return $this->original_request; + } + + public function hasOriginalRequest() + { + return isset($this->original_request); + } + + public function clearOriginalRequest() + { + unset($this->original_request); + } + + /** + * The request that prompted the initiation of this UpdateCluster operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.Cluster original_request = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\Cluster $var + * @return $this + */ + public function setOriginalRequest($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Cluster::class); + $this->original_request = $var; + + return $this; + } + + /** + * The time at which the original request was received. + * + * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getRequestTime() + { + return $this->request_time; + } + + public function hasRequestTime() + { + return isset($this->request_time); + } + + public function clearRequestTime() + { + unset($this->request_time); + } + + /** + * The time at which the original request was received. + * + * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setRequestTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->request_time = $var; + + return $this; + } + + /** + * The time at which the operation failed or was completed successfully. + * + * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; + * @return \Google\Protobuf\Timestamp|null + */ + public function getFinishTime() + { + return $this->finish_time; + } + + public function hasFinishTime() + { + return isset($this->finish_time); + } + + public function clearFinishTime() + { + unset($this->finish_time); + } + + /** + * The time at which the operation failed or was completed successfully. + * + * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setFinishTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->finish_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateInstanceMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateInstanceMetadata.php new file mode 100644 index 000000000000..7fcdbe7516d3 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateInstanceMetadata.php @@ -0,0 +1,165 @@ +google.bigtable.admin.v2.UpdateInstanceMetadata + */ +class UpdateInstanceMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The request that prompted the initiation of this UpdateInstance operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.PartialUpdateInstanceRequest original_request = 1; + */ + protected $original_request = null; + /** + * The time at which the original request was received. + * + * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; + */ + protected $request_time = null; + /** + * The time at which the operation failed or was completed successfully. + * + * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; + */ + protected $finish_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\PartialUpdateInstanceRequest $original_request + * The request that prompted the initiation of this UpdateInstance operation. + * @type \Google\Protobuf\Timestamp $request_time + * The time at which the original request was received. + * @type \Google\Protobuf\Timestamp $finish_time + * The time at which the operation failed or was completed successfully. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The request that prompted the initiation of this UpdateInstance operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.PartialUpdateInstanceRequest original_request = 1; + * @return \Google\Cloud\Bigtable\Admin\V2\PartialUpdateInstanceRequest|null + */ + public function getOriginalRequest() + { + return $this->original_request; + } + + public function hasOriginalRequest() + { + return isset($this->original_request); + } + + public function clearOriginalRequest() + { + unset($this->original_request); + } + + /** + * The request that prompted the initiation of this UpdateInstance operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.PartialUpdateInstanceRequest original_request = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\PartialUpdateInstanceRequest $var + * @return $this + */ + public function setOriginalRequest($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\PartialUpdateInstanceRequest::class); + $this->original_request = $var; + + return $this; + } + + /** + * The time at which the original request was received. + * + * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getRequestTime() + { + return $this->request_time; + } + + public function hasRequestTime() + { + return isset($this->request_time); + } + + public function clearRequestTime() + { + unset($this->request_time); + } + + /** + * The time at which the original request was received. + * + * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setRequestTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->request_time = $var; + + return $this; + } + + /** + * The time at which the operation failed or was completed successfully. + * + * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; + * @return \Google\Protobuf\Timestamp|null + */ + public function getFinishTime() + { + return $this->finish_time; + } + + public function hasFinishTime() + { + return isset($this->finish_time); + } + + public function clearFinishTime() + { + unset($this->finish_time); + } + + /** + * The time at which the operation failed or was completed successfully. + * + * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setFinishTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->finish_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateLogicalViewMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateLogicalViewMetadata.php new file mode 100644 index 000000000000..876b577a1c09 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateLogicalViewMetadata.php @@ -0,0 +1,169 @@ +google.bigtable.admin.v2.UpdateLogicalViewMetadata + */ +class UpdateLogicalViewMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The request that prompted the initiation of this UpdateLogicalView + * operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.UpdateLogicalViewRequest original_request = 1; + */ + protected $original_request = null; + /** + * The time at which this operation was started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + */ + protected $start_time = null; + /** + * If set, the time at which this operation finished or was canceled. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; + */ + protected $end_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\UpdateLogicalViewRequest $original_request + * The request that prompted the initiation of this UpdateLogicalView + * operation. + * @type \Google\Protobuf\Timestamp $start_time + * The time at which this operation was started. + * @type \Google\Protobuf\Timestamp $end_time + * If set, the time at which this operation finished or was canceled. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The request that prompted the initiation of this UpdateLogicalView + * operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.UpdateLogicalViewRequest original_request = 1; + * @return \Google\Cloud\Bigtable\Admin\V2\UpdateLogicalViewRequest|null + */ + public function getOriginalRequest() + { + return $this->original_request; + } + + public function hasOriginalRequest() + { + return isset($this->original_request); + } + + public function clearOriginalRequest() + { + unset($this->original_request); + } + + /** + * The request that prompted the initiation of this UpdateLogicalView + * operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.UpdateLogicalViewRequest original_request = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\UpdateLogicalViewRequest $var + * @return $this + */ + public function setOriginalRequest($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\UpdateLogicalViewRequest::class); + $this->original_request = $var; + + return $this; + } + + /** + * The time at which this operation was started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @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 at which this operation was started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * If set, the time at which this operation finished or was canceled. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; + * @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); + } + + /** + * If set, the time at which this operation finished or was canceled. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateLogicalViewRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateLogicalViewRequest.php new file mode 100644 index 000000000000..8bd3742a86ee --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateLogicalViewRequest.php @@ -0,0 +1,152 @@ +google.bigtable.admin.v2.UpdateLogicalViewRequest + */ +class UpdateLogicalViewRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The logical view to update. + * The logical view's `name` field is used to identify the view to update. + * Format: + * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + * + * Generated from protobuf field .google.bigtable.admin.v2.LogicalView logical_view = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $logical_view = null; + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\Bigtable\Admin\V2\LogicalView $logicalView Required. The logical view to update. + * + * The logical view's `name` field is used to identify the view to update. + * Format: + * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + * @param \Google\Protobuf\FieldMask $updateMask Optional. The list of fields to update. + * + * @return \Google\Cloud\Bigtable\Admin\V2\UpdateLogicalViewRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Bigtable\Admin\V2\LogicalView $logicalView, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setLogicalView($logicalView) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\LogicalView $logical_view + * Required. The logical view to update. + * The logical view's `name` field is used to identify the view to update. + * Format: + * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. The list of fields to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The logical view to update. + * The logical view's `name` field is used to identify the view to update. + * Format: + * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + * + * Generated from protobuf field .google.bigtable.admin.v2.LogicalView logical_view = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Bigtable\Admin\V2\LogicalView|null + */ + public function getLogicalView() + { + return $this->logical_view; + } + + public function hasLogicalView() + { + return isset($this->logical_view); + } + + public function clearLogicalView() + { + unset($this->logical_view); + } + + /** + * Required. The logical view to update. + * The logical view's `name` field is used to identify the view to update. + * Format: + * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. + * + * Generated from protobuf field .google.bigtable.admin.v2.LogicalView logical_view = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Bigtable\Admin\V2\LogicalView $var + * @return $this + */ + public function setLogicalView($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\LogicalView::class); + $this->logical_view = $var; + + return $this; + } + + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateMaterializedViewMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateMaterializedViewMetadata.php new file mode 100644 index 000000000000..8251e78e78af --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateMaterializedViewMetadata.php @@ -0,0 +1,169 @@ +google.bigtable.admin.v2.UpdateMaterializedViewMetadata + */ +class UpdateMaterializedViewMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The request that prompted the initiation of this UpdateMaterializedView + * operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.UpdateMaterializedViewRequest original_request = 1; + */ + protected $original_request = null; + /** + * The time at which this operation was started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + */ + protected $start_time = null; + /** + * If set, the time at which this operation finished or was canceled. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; + */ + protected $end_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\UpdateMaterializedViewRequest $original_request + * The request that prompted the initiation of this UpdateMaterializedView + * operation. + * @type \Google\Protobuf\Timestamp $start_time + * The time at which this operation was started. + * @type \Google\Protobuf\Timestamp $end_time + * If set, the time at which this operation finished or was canceled. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The request that prompted the initiation of this UpdateMaterializedView + * operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.UpdateMaterializedViewRequest original_request = 1; + * @return \Google\Cloud\Bigtable\Admin\V2\UpdateMaterializedViewRequest|null + */ + public function getOriginalRequest() + { + return $this->original_request; + } + + public function hasOriginalRequest() + { + return isset($this->original_request); + } + + public function clearOriginalRequest() + { + unset($this->original_request); + } + + /** + * The request that prompted the initiation of this UpdateMaterializedView + * operation. + * + * Generated from protobuf field .google.bigtable.admin.v2.UpdateMaterializedViewRequest original_request = 1; + * @param \Google\Cloud\Bigtable\Admin\V2\UpdateMaterializedViewRequest $var + * @return $this + */ + public function setOriginalRequest($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\UpdateMaterializedViewRequest::class); + $this->original_request = $var; + + return $this; + } + + /** + * The time at which this operation was started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @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 at which this operation was started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * If set, the time at which this operation finished or was canceled. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; + * @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); + } + + /** + * If set, the time at which this operation finished or was canceled. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateMaterializedViewRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateMaterializedViewRequest.php new file mode 100644 index 000000000000..7bca5a110f88 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateMaterializedViewRequest.php @@ -0,0 +1,152 @@ +google.bigtable.admin.v2.UpdateMaterializedViewRequest + */ +class UpdateMaterializedViewRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The materialized view to update. + * The materialized view's `name` field is used to identify the view to + * update. Format: + * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + * + * Generated from protobuf field .google.bigtable.admin.v2.MaterializedView materialized_view = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $materialized_view = null; + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\Bigtable\Admin\V2\MaterializedView $materializedView Required. The materialized view to update. + * + * The materialized view's `name` field is used to identify the view to + * update. Format: + * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + * @param \Google\Protobuf\FieldMask $updateMask Optional. The list of fields to update. + * + * @return \Google\Cloud\Bigtable\Admin\V2\UpdateMaterializedViewRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Bigtable\Admin\V2\MaterializedView $materializedView, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setMaterializedView($materializedView) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\MaterializedView $materialized_view + * Required. The materialized view to update. + * The materialized view's `name` field is used to identify the view to + * update. Format: + * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. The list of fields to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The materialized view to update. + * The materialized view's `name` field is used to identify the view to + * update. Format: + * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + * + * Generated from protobuf field .google.bigtable.admin.v2.MaterializedView materialized_view = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Bigtable\Admin\V2\MaterializedView|null + */ + public function getMaterializedView() + { + return $this->materialized_view; + } + + public function hasMaterializedView() + { + return isset($this->materialized_view); + } + + public function clearMaterializedView() + { + unset($this->materialized_view); + } + + /** + * Required. The materialized view to update. + * The materialized view's `name` field is used to identify the view to + * update. Format: + * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. + * + * Generated from protobuf field .google.bigtable.admin.v2.MaterializedView materialized_view = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Bigtable\Admin\V2\MaterializedView $var + * @return $this + */ + public function setMaterializedView($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\MaterializedView::class); + $this->materialized_view = $var; + + return $this; + } + + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateSchemaBundleMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateSchemaBundleMetadata.php new file mode 100644 index 000000000000..efbbafae3700 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateSchemaBundleMetadata.php @@ -0,0 +1,164 @@ +google.bigtable.admin.v2.UpdateSchemaBundleMetadata + */ +class UpdateSchemaBundleMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The unique name identifying this schema bundle. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * The time at which this operation started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + */ + protected $start_time = null; + /** + * If set, the time at which this operation finished or was canceled. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; + */ + protected $end_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The unique name identifying this schema bundle. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + * @type \Google\Protobuf\Timestamp $start_time + * The time at which this operation started. + * @type \Google\Protobuf\Timestamp $end_time + * If set, the time at which this operation finished or was canceled. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The unique name identifying this schema bundle. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The unique name identifying this schema bundle. + * Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The time at which this operation started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @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 at which this operation started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * If set, the time at which this operation finished or was canceled. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; + * @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); + } + + /** + * If set, the time at which this operation finished or was canceled. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateSchemaBundleRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateSchemaBundleRequest.php new file mode 100644 index 000000000000..44e9ca35100e --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateSchemaBundleRequest.php @@ -0,0 +1,199 @@ +google.bigtable.admin.v2.UpdateSchemaBundleRequest + */ +class UpdateSchemaBundleRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The schema bundle to update. + * The schema bundle's `name` field is used to identify the schema bundle to + * update. Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + * + * Generated from protobuf field .google.bigtable.admin.v2.SchemaBundle schema_bundle = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $schema_bundle = null; + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + /** + * Optional. If set, ignore the safety checks when updating the Schema Bundle. + * The safety checks are: + * - The new Schema Bundle is backwards compatible with the existing Schema + * Bundle. + * + * Generated from protobuf field bool ignore_warnings = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $ignore_warnings = false; + + /** + * @param \Google\Cloud\Bigtable\Admin\V2\SchemaBundle $schemaBundle Required. The schema bundle to update. + * + * The schema bundle's `name` field is used to identify the schema bundle to + * update. Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + * @param \Google\Protobuf\FieldMask $updateMask Optional. The list of fields to update. + * + * @return \Google\Cloud\Bigtable\Admin\V2\UpdateSchemaBundleRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Bigtable\Admin\V2\SchemaBundle $schemaBundle, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setSchemaBundle($schemaBundle) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\SchemaBundle $schema_bundle + * Required. The schema bundle to update. + * The schema bundle's `name` field is used to identify the schema bundle to + * update. Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. The list of fields to update. + * @type bool $ignore_warnings + * Optional. If set, ignore the safety checks when updating the Schema Bundle. + * The safety checks are: + * - The new Schema Bundle is backwards compatible with the existing Schema + * Bundle. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The schema bundle to update. + * The schema bundle's `name` field is used to identify the schema bundle to + * update. Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + * + * Generated from protobuf field .google.bigtable.admin.v2.SchemaBundle schema_bundle = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Bigtable\Admin\V2\SchemaBundle|null + */ + public function getSchemaBundle() + { + return $this->schema_bundle; + } + + public function hasSchemaBundle() + { + return isset($this->schema_bundle); + } + + public function clearSchemaBundle() + { + unset($this->schema_bundle); + } + + /** + * Required. The schema bundle to update. + * The schema bundle's `name` field is used to identify the schema bundle to + * update. Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` + * + * Generated from protobuf field .google.bigtable.admin.v2.SchemaBundle schema_bundle = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Bigtable\Admin\V2\SchemaBundle $var + * @return $this + */ + public function setSchemaBundle($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\SchemaBundle::class); + $this->schema_bundle = $var; + + return $this; + } + + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * Optional. If set, ignore the safety checks when updating the Schema Bundle. + * The safety checks are: + * - The new Schema Bundle is backwards compatible with the existing Schema + * Bundle. + * + * Generated from protobuf field bool ignore_warnings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getIgnoreWarnings() + { + return $this->ignore_warnings; + } + + /** + * Optional. If set, ignore the safety checks when updating the Schema Bundle. + * The safety checks are: + * - The new Schema Bundle is backwards compatible with the existing Schema + * Bundle. + * + * Generated from protobuf field bool ignore_warnings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setIgnoreWarnings($var) + { + GPBUtil::checkBool($var); + $this->ignore_warnings = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateTableMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateTableMetadata.php new file mode 100644 index 000000000000..37698ff4ff7f --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateTableMetadata.php @@ -0,0 +1,156 @@ +google.bigtable.admin.v2.UpdateTableMetadata + */ +class UpdateTableMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the table being updated. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * The time at which this operation started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + */ + protected $start_time = null; + /** + * If set, the time at which this operation finished or was canceled. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; + */ + protected $end_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of the table being updated. + * @type \Google\Protobuf\Timestamp $start_time + * The time at which this operation started. + * @type \Google\Protobuf\Timestamp $end_time + * If set, the time at which this operation finished or was canceled. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The name of the table being updated. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of the table being updated. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The time at which this operation started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @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 at which this operation started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * If set, the time at which this operation finished or was canceled. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; + * @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); + } + + /** + * If set, the time at which this operation finished or was canceled. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateTableRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateTableRequest.php new file mode 100644 index 000000000000..e79976c2d793 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateTableRequest.php @@ -0,0 +1,228 @@ +google.bigtable.admin.v2.UpdateTableRequest + */ +class UpdateTableRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The table to update. + * The table's `name` field is used to identify the table to update. + * + * Generated from protobuf field .google.bigtable.admin.v2.Table table = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $table = null; + /** + * Required. The list of fields to update. + * A mask specifying which fields (e.g. `change_stream_config`) in the `table` + * field should be updated. This mask is relative to the `table` field, not to + * the request message. The wildcard (*) path is currently not supported. + * Currently UpdateTable is only supported for the following fields: + * * `change_stream_config` + * * `change_stream_config.retention_period` + * * `deletion_protection` + * * `row_key_schema` + * If `column_families` is set in `update_mask`, it will return an + * UNIMPLEMENTED error. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + /** + * Optional. If true, ignore safety checks when updating the table. + * + * Generated from protobuf field bool ignore_warnings = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $ignore_warnings = false; + + /** + * @param \Google\Cloud\Bigtable\Admin\V2\Table $table Required. The table to update. + * The table's `name` field is used to identify the table to update. + * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. + * A mask specifying which fields (e.g. `change_stream_config`) in the `table` + * field should be updated. This mask is relative to the `table` field, not to + * the request message. The wildcard (*) path is currently not supported. + * Currently UpdateTable is only supported for the following fields: + * + * * `change_stream_config` + * * `change_stream_config.retention_period` + * * `deletion_protection` + * * `row_key_schema` + * + * If `column_families` is set in `update_mask`, it will return an + * UNIMPLEMENTED error. + * + * @return \Google\Cloud\Bigtable\Admin\V2\UpdateTableRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Bigtable\Admin\V2\Table $table, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setTable($table) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\Admin\V2\Table $table + * Required. The table to update. + * The table's `name` field is used to identify the table to update. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to update. + * A mask specifying which fields (e.g. `change_stream_config`) in the `table` + * field should be updated. This mask is relative to the `table` field, not to + * the request message. The wildcard (*) path is currently not supported. + * Currently UpdateTable is only supported for the following fields: + * * `change_stream_config` + * * `change_stream_config.retention_period` + * * `deletion_protection` + * * `row_key_schema` + * If `column_families` is set in `update_mask`, it will return an + * UNIMPLEMENTED error. + * @type bool $ignore_warnings + * Optional. If true, ignore safety checks when updating the table. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The table to update. + * The table's `name` field is used to identify the table to update. + * + * Generated from protobuf field .google.bigtable.admin.v2.Table table = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Bigtable\Admin\V2\Table|null + */ + public function getTable() + { + return $this->table; + } + + public function hasTable() + { + return isset($this->table); + } + + public function clearTable() + { + unset($this->table); + } + + /** + * Required. The table to update. + * The table's `name` field is used to identify the table to update. + * + * Generated from protobuf field .google.bigtable.admin.v2.Table table = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Bigtable\Admin\V2\Table $var + * @return $this + */ + public function setTable($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Table::class); + $this->table = $var; + + return $this; + } + + /** + * Required. The list of fields to update. + * A mask specifying which fields (e.g. `change_stream_config`) in the `table` + * field should be updated. This mask is relative to the `table` field, not to + * the request message. The wildcard (*) path is currently not supported. + * Currently UpdateTable is only supported for the following fields: + * * `change_stream_config` + * * `change_stream_config.retention_period` + * * `deletion_protection` + * * `row_key_schema` + * If `column_families` is set in `update_mask`, it will return an + * UNIMPLEMENTED error. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. The list of fields to update. + * A mask specifying which fields (e.g. `change_stream_config`) in the `table` + * field should be updated. This mask is relative to the `table` field, not to + * the request message. The wildcard (*) path is currently not supported. + * Currently UpdateTable is only supported for the following fields: + * * `change_stream_config` + * * `change_stream_config.retention_period` + * * `deletion_protection` + * * `row_key_schema` + * If `column_families` is set in `update_mask`, it will return an + * UNIMPLEMENTED error. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * Optional. If true, ignore safety checks when updating the table. + * + * Generated from protobuf field bool ignore_warnings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getIgnoreWarnings() + { + return $this->ignore_warnings; + } + + /** + * Optional. If true, ignore safety checks when updating the table. + * + * Generated from protobuf field bool ignore_warnings = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setIgnoreWarnings($var) + { + GPBUtil::checkBool($var); + $this->ignore_warnings = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_app_profile.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_app_profile.php new file mode 100644 index 000000000000..744a7cb0bf2b --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_app_profile.php @@ -0,0 +1,79 @@ +setParent($formattedParent) + ->setAppProfileId($appProfileId) + ->setAppProfile($appProfile); + + // Call the API and handle any network failures. + try { + /** @var AppProfile $response */ + $response = $bigtableInstanceAdminClient->createAppProfile($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = BigtableInstanceAdminClient::instanceName('[PROJECT]', '[INSTANCE]'); + $appProfileId = '[APP_PROFILE_ID]'; + + create_app_profile_sample($formattedParent, $appProfileId); +} +// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_cluster.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_cluster.php new file mode 100644 index 000000000000..1d27410e8d63 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_cluster.php @@ -0,0 +1,97 @@ +setParent($formattedParent) + ->setClusterId($clusterId) + ->setCluster($cluster); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $bigtableInstanceAdminClient->createCluster($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Cluster $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = BigtableInstanceAdminClient::instanceName('[PROJECT]', '[INSTANCE]'); + $clusterId = '[CLUSTER_ID]'; + + create_cluster_sample($formattedParent, $clusterId); +} +// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_instance.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_instance.php new file mode 100644 index 000000000000..62082d3b982c --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_instance.php @@ -0,0 +1,107 @@ +setDisplayName($instanceDisplayName); + $clusters = []; + $request = (new CreateInstanceRequest()) + ->setParent($formattedParent) + ->setInstanceId($instanceId) + ->setInstance($instance) + ->setClusters($clusters); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $bigtableInstanceAdminClient->createInstance($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Instance $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = BigtableInstanceAdminClient::projectName('[PROJECT]'); + $instanceId = '[INSTANCE_ID]'; + $instanceDisplayName = '[DISPLAY_NAME]'; + + create_instance_sample($formattedParent, $instanceId, $instanceDisplayName); +} +// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_logical_view.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_logical_view.php new file mode 100644 index 000000000000..d31695d623b6 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_logical_view.php @@ -0,0 +1,96 @@ +setQuery($logicalViewQuery); + $request = (new CreateLogicalViewRequest()) + ->setParent($formattedParent) + ->setLogicalViewId($logicalViewId) + ->setLogicalView($logicalView); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $bigtableInstanceAdminClient->createLogicalView($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var LogicalView $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = BigtableInstanceAdminClient::instanceName('[PROJECT]', '[INSTANCE]'); + $logicalViewId = '[LOGICAL_VIEW_ID]'; + $logicalViewQuery = '[QUERY]'; + + create_logical_view_sample($formattedParent, $logicalViewId, $logicalViewQuery); +} +// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateLogicalView_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_materialized_view.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_materialized_view.php new file mode 100644 index 000000000000..468f68efd44e --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_materialized_view.php @@ -0,0 +1,96 @@ +setQuery($materializedViewQuery); + $request = (new CreateMaterializedViewRequest()) + ->setParent($formattedParent) + ->setMaterializedViewId($materializedViewId) + ->setMaterializedView($materializedView); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $bigtableInstanceAdminClient->createMaterializedView($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var MaterializedView $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = BigtableInstanceAdminClient::instanceName('[PROJECT]', '[INSTANCE]'); + $materializedViewId = '[MATERIALIZED_VIEW_ID]'; + $materializedViewQuery = '[QUERY]'; + + create_materialized_view_sample($formattedParent, $materializedViewId, $materializedViewQuery); +} +// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateMaterializedView_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_app_profile.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_app_profile.php new file mode 100644 index 000000000000..b16f879f7d8f --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_app_profile.php @@ -0,0 +1,78 @@ +setName($formattedName) + ->setIgnoreWarnings($ignoreWarnings); + + // Call the API and handle any network failures. + try { + $bigtableInstanceAdminClient->deleteAppProfile($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = BigtableInstanceAdminClient::appProfileName( + '[PROJECT]', + '[INSTANCE]', + '[APP_PROFILE]' + ); + $ignoreWarnings = false; + + delete_app_profile_sample($formattedName, $ignoreWarnings); +} +// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_cluster.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_cluster.php new file mode 100644 index 000000000000..7f2ee487f57e --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_cluster.php @@ -0,0 +1,70 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $bigtableInstanceAdminClient->deleteCluster($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = BigtableInstanceAdminClient::clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); + + delete_cluster_sample($formattedName); +} +// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_instance.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_instance.php new file mode 100644 index 000000000000..d203cfce54fa --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_instance.php @@ -0,0 +1,70 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $bigtableInstanceAdminClient->deleteInstance($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = BigtableInstanceAdminClient::instanceName('[PROJECT]', '[INSTANCE]'); + + delete_instance_sample($formattedName); +} +// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_logical_view.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_logical_view.php new file mode 100644 index 000000000000..a5853c1a1e2b --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_logical_view.php @@ -0,0 +1,75 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $bigtableInstanceAdminClient->deleteLogicalView($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = BigtableInstanceAdminClient::logicalViewName( + '[PROJECT]', + '[INSTANCE]', + '[LOGICAL_VIEW]' + ); + + delete_logical_view_sample($formattedName); +} +// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteLogicalView_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_materialized_view.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_materialized_view.php new file mode 100644 index 000000000000..e861dbdad22c --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_materialized_view.php @@ -0,0 +1,75 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $bigtableInstanceAdminClient->deleteMaterializedView($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = BigtableInstanceAdminClient::materializedViewName( + '[PROJECT]', + '[INSTANCE]', + '[MATERIALIZED_VIEW]' + ); + + delete_materialized_view_sample($formattedName); +} +// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteMaterializedView_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_app_profile.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_app_profile.php new file mode 100644 index 000000000000..a2887eef350a --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_app_profile.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var AppProfile $response */ + $response = $bigtableInstanceAdminClient->getAppProfile($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = BigtableInstanceAdminClient::appProfileName( + '[PROJECT]', + '[INSTANCE]', + '[APP_PROFILE]' + ); + + get_app_profile_sample($formattedName); +} +// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_cluster.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_cluster.php new file mode 100644 index 000000000000..96097273c073 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_cluster.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Cluster $response */ + $response = $bigtableInstanceAdminClient->getCluster($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = BigtableInstanceAdminClient::clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); + + get_cluster_sample($formattedName); +} +// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_iam_policy.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_iam_policy.php new file mode 100644 index 000000000000..17ca22f1ea7f --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_iam_policy.php @@ -0,0 +1,72 @@ +setResource($resource); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $bigtableInstanceAdminClient->getIamPolicy($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 +{ + $resource = '[RESOURCE]'; + + get_iam_policy_sample($resource); +} +// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_instance.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_instance.php new file mode 100644 index 000000000000..c309298fac75 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_instance.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Instance $response */ + $response = $bigtableInstanceAdminClient->getInstance($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = BigtableInstanceAdminClient::instanceName('[PROJECT]', '[INSTANCE]'); + + get_instance_sample($formattedName); +} +// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_logical_view.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_logical_view.php new file mode 100644 index 000000000000..e5e8383687ff --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_logical_view.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var LogicalView $response */ + $response = $bigtableInstanceAdminClient->getLogicalView($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = BigtableInstanceAdminClient::logicalViewName( + '[PROJECT]', + '[INSTANCE]', + '[LOGICAL_VIEW]' + ); + + get_logical_view_sample($formattedName); +} +// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetLogicalView_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_materialized_view.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_materialized_view.php new file mode 100644 index 000000000000..97636f2e4935 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_materialized_view.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var MaterializedView $response */ + $response = $bigtableInstanceAdminClient->getMaterializedView($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = BigtableInstanceAdminClient::materializedViewName( + '[PROJECT]', + '[INSTANCE]', + '[MATERIALIZED_VIEW]' + ); + + get_materialized_view_sample($formattedName); +} +// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetMaterializedView_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_app_profiles.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_app_profiles.php new file mode 100644 index 000000000000..50ec536ac823 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_app_profiles.php @@ -0,0 +1,80 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $bigtableInstanceAdminClient->listAppProfiles($request); + + /** @var AppProfile $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = BigtableInstanceAdminClient::instanceName('[PROJECT]', '[INSTANCE]'); + + list_app_profiles_sample($formattedParent); +} +// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_clusters.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_clusters.php new file mode 100644 index 000000000000..2a14a470e2fa --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_clusters.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var ListClustersResponse $response */ + $response = $bigtableInstanceAdminClient->listClusters($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = BigtableInstanceAdminClient::instanceName('[PROJECT]', '[INSTANCE]'); + + list_clusters_sample($formattedParent); +} +// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_hot_tablets.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_hot_tablets.php new file mode 100644 index 000000000000..fc16cd170564 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_hot_tablets.php @@ -0,0 +1,79 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $bigtableInstanceAdminClient->listHotTablets($request); + + /** @var HotTablet $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = BigtableInstanceAdminClient::clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); + + list_hot_tablets_sample($formattedParent); +} +// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_instances.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_instances.php new file mode 100644 index 000000000000..3282496dfc9d --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_instances.php @@ -0,0 +1,72 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var ListInstancesResponse $response */ + $response = $bigtableInstanceAdminClient->listInstances($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = BigtableInstanceAdminClient::projectName('[PROJECT]'); + + list_instances_sample($formattedParent); +} +// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_logical_views.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_logical_views.php new file mode 100644 index 000000000000..901240be505c --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_logical_views.php @@ -0,0 +1,78 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $bigtableInstanceAdminClient->listLogicalViews($request); + + /** @var LogicalView $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = BigtableInstanceAdminClient::instanceName('[PROJECT]', '[INSTANCE]'); + + list_logical_views_sample($formattedParent); +} +// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListLogicalViews_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_materialized_views.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_materialized_views.php new file mode 100644 index 000000000000..5ad8dad74387 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_materialized_views.php @@ -0,0 +1,78 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $bigtableInstanceAdminClient->listMaterializedViews($request); + + /** @var MaterializedView $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = BigtableInstanceAdminClient::instanceName('[PROJECT]', '[INSTANCE]'); + + list_materialized_views_sample($formattedParent); +} +// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListMaterializedViews_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/partial_update_cluster.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/partial_update_cluster.php new file mode 100644 index 000000000000..ad0be3d66ea9 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/partial_update_cluster.php @@ -0,0 +1,85 @@ +setCluster($cluster) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $bigtableInstanceAdminClient->partialUpdateCluster($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Cluster $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/partial_update_instance.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/partial_update_instance.php new file mode 100644 index 000000000000..9f5a6d5303d6 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/partial_update_instance.php @@ -0,0 +1,90 @@ +setDisplayName($instanceDisplayName); + $updateMask = new FieldMask(); + $request = (new PartialUpdateInstanceRequest()) + ->setInstance($instance) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $bigtableInstanceAdminClient->partialUpdateInstance($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Instance $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->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 +{ + $instanceDisplayName = '[DISPLAY_NAME]'; + + partial_update_instance_sample($instanceDisplayName); +} +// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/set_iam_policy.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/set_iam_policy.php new file mode 100644 index 000000000000..da536e9b47f9 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/set_iam_policy.php @@ -0,0 +1,74 @@ +setResource($resource) + ->setPolicy($policy); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $bigtableInstanceAdminClient->setIamPolicy($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 +{ + $resource = '[RESOURCE]'; + + set_iam_policy_sample($resource); +} +// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/test_iam_permissions.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/test_iam_permissions.php new file mode 100644 index 000000000000..7edfde9e90ef --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/test_iam_permissions.php @@ -0,0 +1,78 @@ +setResource($resource) + ->setPermissions($permissions); + + // Call the API and handle any network failures. + try { + /** @var TestIamPermissionsResponse $response */ + $response = $bigtableInstanceAdminClient->testIamPermissions($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 +{ + $resource = '[RESOURCE]'; + $permissionsElement = '[PERMISSIONS]'; + + test_iam_permissions_sample($resource, $permissionsElement); +} +// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_app_profile.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_app_profile.php new file mode 100644 index 000000000000..f028673d8c8c --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_app_profile.php @@ -0,0 +1,74 @@ +setAppProfile($appProfile) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $bigtableInstanceAdminClient->updateAppProfile($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var AppProfile $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_cluster.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_cluster.php new file mode 100644 index 000000000000..4db75150127e --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_cluster.php @@ -0,0 +1,91 @@ +setName($name) + ->setServeNodes($serveNodes); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $bigtableInstanceAdminClient->updateCluster($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Cluster $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->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 +{ + $name = '[NAME]'; + $serveNodes = 0; + + update_cluster_sample($name, $serveNodes); +} +// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateCluster_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_instance.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_instance.php new file mode 100644 index 000000000000..65a8127b9b4d --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_instance.php @@ -0,0 +1,83 @@ +setName($name) + ->setDisplayName($displayName) + ->setType($type) + ->setLabels($labels); + + // Call the API and handle any network failures. + try { + /** @var Instance $response */ + $response = $bigtableInstanceAdminClient->updateInstance($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 +{ + $name = '[NAME]'; + $displayName = '[DISPLAY_NAME]'; + $type = Type::TYPE_UNSPECIFIED; + + update_instance_sample($name, $displayName, $type); +} +// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateInstance_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_logical_view.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_logical_view.php new file mode 100644 index 000000000000..49ea82c9532a --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_logical_view.php @@ -0,0 +1,84 @@ +setQuery($logicalViewQuery); + $request = (new UpdateLogicalViewRequest()) + ->setLogicalView($logicalView); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $bigtableInstanceAdminClient->updateLogicalView($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var LogicalView $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->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 +{ + $logicalViewQuery = '[QUERY]'; + + update_logical_view_sample($logicalViewQuery); +} +// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateLogicalView_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_materialized_view.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_materialized_view.php new file mode 100644 index 000000000000..205f4dc4804a --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_materialized_view.php @@ -0,0 +1,84 @@ +setQuery($materializedViewQuery); + $request = (new UpdateMaterializedViewRequest()) + ->setMaterializedView($materializedView); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $bigtableInstanceAdminClient->updateMaterializedView($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var MaterializedView $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->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 +{ + $materializedViewQuery = '[QUERY]'; + + update_materialized_view_sample($materializedViewQuery); +} +// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateMaterializedView_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/check_consistency.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/check_consistency.php new file mode 100644 index 000000000000..989cc64c0167 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/check_consistency.php @@ -0,0 +1,78 @@ +setName($formattedName) + ->setConsistencyToken($consistencyToken); + + // Call the API and handle any network failures. + try { + /** @var CheckConsistencyResponse $response */ + $response = $bigtableTableAdminClient->checkConsistency($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = BigtableTableAdminClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $consistencyToken = '[CONSISTENCY_TOKEN]'; + + check_consistency_sample($formattedName, $consistencyToken); +} +// [END bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/copy_backup.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/copy_backup.php new file mode 100644 index 000000000000..984cef9fa2cf --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/copy_backup.php @@ -0,0 +1,115 @@ +/instances//clusters//backups/`. Please see + * {@see BigtableTableAdminClient::backupName()} for help formatting this field. + */ +function copy_backup_sample( + string $formattedParent, + string $backupId, + string $formattedSourceBackup +): void { + // Create a client. + $bigtableTableAdminClient = new BigtableTableAdminClient(); + + // Prepare the request message. + $expireTime = new Timestamp(); + $request = (new CopyBackupRequest()) + ->setParent($formattedParent) + ->setBackupId($backupId) + ->setSourceBackup($formattedSourceBackup) + ->setExpireTime($expireTime); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $bigtableTableAdminClient->copyBackup($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Backup $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = BigtableTableAdminClient::clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); + $backupId = '[BACKUP_ID]'; + $formattedSourceBackup = BigtableTableAdminClient::backupName( + '[PROJECT]', + '[INSTANCE]', + '[CLUSTER]', + '[BACKUP]' + ); + + copy_backup_sample($formattedParent, $backupId, $formattedSourceBackup); +} +// [END bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_authorized_view.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_authorized_view.php new file mode 100644 index 000000000000..fdf560b122c0 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_authorized_view.php @@ -0,0 +1,93 @@ +setParent($formattedParent) + ->setAuthorizedViewId($authorizedViewId) + ->setAuthorizedView($authorizedView); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $bigtableTableAdminClient->createAuthorizedView($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var AuthorizedView $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = BigtableTableAdminClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $authorizedViewId = '[AUTHORIZED_VIEW_ID]'; + + create_authorized_view_sample($formattedParent, $authorizedViewId); +} +// [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_backup.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_backup.php new file mode 100644 index 000000000000..e72b3f58b9e4 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_backup.php @@ -0,0 +1,113 @@ +setSourceTable($backupSourceTable) + ->setExpireTime($backupExpireTime); + $request = (new CreateBackupRequest()) + ->setParent($formattedParent) + ->setBackupId($backupId) + ->setBackup($backup); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $bigtableTableAdminClient->createBackup($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Backup $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = BigtableTableAdminClient::clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); + $backupId = '[BACKUP_ID]'; + $backupSourceTable = '[SOURCE_TABLE]'; + + create_backup_sample($formattedParent, $backupId, $backupSourceTable); +} +// [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_schema_bundle.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_schema_bundle.php new file mode 100644 index 000000000000..91d252913315 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_schema_bundle.php @@ -0,0 +1,91 @@ +setParent($formattedParent) + ->setSchemaBundleId($schemaBundleId) + ->setSchemaBundle($schemaBundle); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $bigtableTableAdminClient->createSchemaBundle($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var SchemaBundle $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = BigtableTableAdminClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $schemaBundleId = '[SCHEMA_BUNDLE_ID]'; + + create_schema_bundle_sample($formattedParent, $schemaBundleId); +} +// [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateSchemaBundle_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_table.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_table.php new file mode 100644 index 000000000000..f027483edc1c --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_table.php @@ -0,0 +1,81 @@ +setParent($formattedParent) + ->setTableId($tableId) + ->setTable($table); + + // Call the API and handle any network failures. + try { + /** @var Table $response */ + $response = $bigtableTableAdminClient->createTable($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = BigtableTableAdminClient::instanceName('[PROJECT]', '[INSTANCE]'); + $tableId = '[TABLE_ID]'; + + create_table_sample($formattedParent, $tableId); +} +// [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_table_from_snapshot.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_table_from_snapshot.php new file mode 100644 index 000000000000..1f091cff8e36 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_table_from_snapshot.php @@ -0,0 +1,110 @@ +setParent($formattedParent) + ->setTableId($tableId) + ->setSourceSnapshot($formattedSourceSnapshot); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $bigtableTableAdminClient->createTableFromSnapshot($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Table $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = BigtableTableAdminClient::instanceName('[PROJECT]', '[INSTANCE]'); + $tableId = '[TABLE_ID]'; + $formattedSourceSnapshot = BigtableTableAdminClient::snapshotName( + '[PROJECT]', + '[INSTANCE]', + '[CLUSTER]', + '[SNAPSHOT]' + ); + + create_table_from_snapshot_sample($formattedParent, $tableId, $formattedSourceSnapshot); +} +// [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_authorized_view.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_authorized_view.php new file mode 100644 index 000000000000..00af6cc8371f --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_authorized_view.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $bigtableTableAdminClient->deleteAuthorizedView($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = BigtableTableAdminClient::authorizedViewName( + '[PROJECT]', + '[INSTANCE]', + '[TABLE]', + '[AUTHORIZED_VIEW]' + ); + + delete_authorized_view_sample($formattedName); +} +// [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_backup.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_backup.php new file mode 100644 index 000000000000..1295399b40d4 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_backup.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $bigtableTableAdminClient->deleteBackup($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = BigtableTableAdminClient::backupName( + '[PROJECT]', + '[INSTANCE]', + '[CLUSTER]', + '[BACKUP]' + ); + + delete_backup_sample($formattedName); +} +// [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_schema_bundle.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_schema_bundle.php new file mode 100644 index 000000000000..4036441c18c4 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_schema_bundle.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $bigtableTableAdminClient->deleteSchemaBundle($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = BigtableTableAdminClient::schemaBundleName( + '[PROJECT]', + '[INSTANCE]', + '[TABLE]', + '[SCHEMA_BUNDLE]' + ); + + delete_schema_bundle_sample($formattedName); +} +// [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSchemaBundle_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_snapshot.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_snapshot.php new file mode 100644 index 000000000000..b72e1aba3e28 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_snapshot.php @@ -0,0 +1,82 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $bigtableTableAdminClient->deleteSnapshot($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = BigtableTableAdminClient::snapshotName( + '[PROJECT]', + '[INSTANCE]', + '[CLUSTER]', + '[SNAPSHOT]' + ); + + delete_snapshot_sample($formattedName); +} +// [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_table.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_table.php new file mode 100644 index 000000000000..39413f4935b7 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_table.php @@ -0,0 +1,71 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $bigtableTableAdminClient->deleteTable($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = BigtableTableAdminClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + + delete_table_sample($formattedName); +} +// [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/drop_row_range.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/drop_row_range.php new file mode 100644 index 000000000000..a10f821ec8b2 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/drop_row_range.php @@ -0,0 +1,73 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $bigtableTableAdminClient->dropRowRange($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = BigtableTableAdminClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + + drop_row_range_sample($formattedName); +} +// [END bigtableadmin_v2_generated_BigtableTableAdmin_DropRowRange_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/generate_consistency_token.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/generate_consistency_token.php new file mode 100644 index 000000000000..a20dd630f22f --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/generate_consistency_token.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var GenerateConsistencyTokenResponse $response */ + $response = $bigtableTableAdminClient->generateConsistencyToken($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = BigtableTableAdminClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + + generate_consistency_token_sample($formattedName); +} +// [END bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_authorized_view.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_authorized_view.php new file mode 100644 index 000000000000..47c3aab01f0f --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_authorized_view.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var AuthorizedView $response */ + $response = $bigtableTableAdminClient->getAuthorizedView($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = BigtableTableAdminClient::authorizedViewName( + '[PROJECT]', + '[INSTANCE]', + '[TABLE]', + '[AUTHORIZED_VIEW]' + ); + + get_authorized_view_sample($formattedName); +} +// [END bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_backup.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_backup.php new file mode 100644 index 000000000000..410abe345856 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_backup.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Backup $response */ + $response = $bigtableTableAdminClient->getBackup($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = BigtableTableAdminClient::backupName( + '[PROJECT]', + '[INSTANCE]', + '[CLUSTER]', + '[BACKUP]' + ); + + get_backup_sample($formattedName); +} +// [END bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_iam_policy.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_iam_policy.php new file mode 100644 index 000000000000..d6af14bcb52e --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_iam_policy.php @@ -0,0 +1,73 @@ +setResource($resource); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $bigtableTableAdminClient->getIamPolicy($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 +{ + $resource = '[RESOURCE]'; + + get_iam_policy_sample($resource); +} +// [END bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_schema_bundle.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_schema_bundle.php new file mode 100644 index 000000000000..fa8a213c2844 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_schema_bundle.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var SchemaBundle $response */ + $response = $bigtableTableAdminClient->getSchemaBundle($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = BigtableTableAdminClient::schemaBundleName( + '[PROJECT]', + '[INSTANCE]', + '[TABLE]', + '[SCHEMA_BUNDLE]' + ); + + get_schema_bundle_sample($formattedName); +} +// [END bigtableadmin_v2_generated_BigtableTableAdmin_GetSchemaBundle_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_snapshot.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_snapshot.php new file mode 100644 index 000000000000..1735de5824a2 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_snapshot.php @@ -0,0 +1,84 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Snapshot $response */ + $response = $bigtableTableAdminClient->getSnapshot($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = BigtableTableAdminClient::snapshotName( + '[PROJECT]', + '[INSTANCE]', + '[CLUSTER]', + '[SNAPSHOT]' + ); + + get_snapshot_sample($formattedName); +} +// [END bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_table.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_table.php new file mode 100644 index 000000000000..48308955b255 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_table.php @@ -0,0 +1,73 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Table $response */ + $response = $bigtableTableAdminClient->getTable($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = BigtableTableAdminClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + + get_table_sample($formattedName); +} +// [END bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_authorized_views.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_authorized_views.php new file mode 100644 index 000000000000..825af93b1d1d --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_authorized_views.php @@ -0,0 +1,78 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $bigtableTableAdminClient->listAuthorizedViews($request); + + /** @var AuthorizedView $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = BigtableTableAdminClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + + list_authorized_views_sample($formattedParent); +} +// [END bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_backups.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_backups.php new file mode 100644 index 000000000000..0e95887d9886 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_backups.php @@ -0,0 +1,80 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $bigtableTableAdminClient->listBackups($request); + + /** @var Backup $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = BigtableTableAdminClient::clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); + + list_backups_sample($formattedParent); +} +// [END bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_schema_bundles.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_schema_bundles.php new file mode 100644 index 000000000000..172546d31a27 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_schema_bundles.php @@ -0,0 +1,78 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $bigtableTableAdminClient->listSchemaBundles($request); + + /** @var SchemaBundle $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = BigtableTableAdminClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + + list_schema_bundles_sample($formattedParent); +} +// [END bigtableadmin_v2_generated_BigtableTableAdmin_ListSchemaBundles_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_snapshots.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_snapshots.php new file mode 100644 index 000000000000..f82d2f9a1803 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_snapshots.php @@ -0,0 +1,86 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $bigtableTableAdminClient->listSnapshots($request); + + /** @var Snapshot $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = BigtableTableAdminClient::clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); + + list_snapshots_sample($formattedParent); +} +// [END bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_tables.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_tables.php new file mode 100644 index 000000000000..dbc5a9dc47c4 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_tables.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $bigtableTableAdminClient->listTables($request); + + /** @var Table $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = BigtableTableAdminClient::instanceName('[PROJECT]', '[INSTANCE]'); + + list_tables_sample($formattedParent); +} +// [END bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/modify_column_families.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/modify_column_families.php new file mode 100644 index 000000000000..f66169868020 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/modify_column_families.php @@ -0,0 +1,79 @@ +setName($formattedName) + ->setModifications($modifications); + + // Call the API and handle any network failures. + try { + /** @var Table $response */ + $response = $bigtableTableAdminClient->modifyColumnFamilies($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = BigtableTableAdminClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + + modify_column_families_sample($formattedName); +} +// [END bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/restore_table.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/restore_table.php new file mode 100644 index 000000000000..47790c3eba5a --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/restore_table.php @@ -0,0 +1,96 @@ +/instances/`. Please see + * {@see BigtableTableAdminClient::instanceName()} for help formatting this field. + * @param string $tableId The id of the table to create and restore to. This + * table must not already exist. The `table_id` appended to + * `parent` forms the full table name of the form + * `projects//instances//tables/`. + */ +function restore_table_sample(string $formattedParent, string $tableId): void +{ + // Create a client. + $bigtableTableAdminClient = new BigtableTableAdminClient(); + + // Prepare the request message. + $request = (new RestoreTableRequest()) + ->setParent($formattedParent) + ->setTableId($tableId); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $bigtableTableAdminClient->restoreTable($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Table $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = BigtableTableAdminClient::instanceName('[PROJECT]', '[INSTANCE]'); + $tableId = '[TABLE_ID]'; + + restore_table_sample($formattedParent, $tableId); +} +// [END bigtableadmin_v2_generated_BigtableTableAdmin_RestoreTable_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/set_iam_policy.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/set_iam_policy.php new file mode 100644 index 000000000000..41733ffdbca2 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/set_iam_policy.php @@ -0,0 +1,74 @@ +setResource($resource) + ->setPolicy($policy); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $bigtableTableAdminClient->setIamPolicy($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 +{ + $resource = '[RESOURCE]'; + + set_iam_policy_sample($resource); +} +// [END bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/snapshot_table.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/snapshot_table.php new file mode 100644 index 000000000000..31c25bd486db --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/snapshot_table.php @@ -0,0 +1,107 @@ +setName($formattedName) + ->setCluster($formattedCluster) + ->setSnapshotId($snapshotId); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $bigtableTableAdminClient->snapshotTable($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Snapshot $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = BigtableTableAdminClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $formattedCluster = BigtableTableAdminClient::clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); + $snapshotId = '[SNAPSHOT_ID]'; + + snapshot_table_sample($formattedName, $formattedCluster, $snapshotId); +} +// [END bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/test_iam_permissions.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/test_iam_permissions.php new file mode 100644 index 000000000000..2e9c42b62f0d --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/test_iam_permissions.php @@ -0,0 +1,79 @@ +setResource($resource) + ->setPermissions($permissions); + + // Call the API and handle any network failures. + try { + /** @var TestIamPermissionsResponse $response */ + $response = $bigtableTableAdminClient->testIamPermissions($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 +{ + $resource = '[RESOURCE]'; + $permissionsElement = '[PERMISSIONS]'; + + test_iam_permissions_sample($resource, $permissionsElement); +} +// [END bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/undelete_table.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/undelete_table.php new file mode 100644 index 000000000000..c57255e7f00e --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/undelete_table.php @@ -0,0 +1,85 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $bigtableTableAdminClient->undeleteTable($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Table $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = BigtableTableAdminClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + + undelete_table_sample($formattedName); +} +// [END bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/update_authorized_view.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/update_authorized_view.php new file mode 100644 index 000000000000..bca462c4d0ae --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/update_authorized_view.php @@ -0,0 +1,71 @@ +setAuthorizedView($authorizedView); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $bigtableTableAdminClient->updateAuthorizedView($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var AuthorizedView $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/update_backup.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/update_backup.php new file mode 100644 index 000000000000..d2aad9eaa9bf --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/update_backup.php @@ -0,0 +1,80 @@ +setSourceTable($backupSourceTable) + ->setExpireTime($backupExpireTime); + $updateMask = new FieldMask(); + $request = (new UpdateBackupRequest()) + ->setBackup($backup) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var Backup $response */ + $response = $bigtableTableAdminClient->updateBackup($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 +{ + $backupSourceTable = '[SOURCE_TABLE]'; + + update_backup_sample($backupSourceTable); +} +// [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/update_schema_bundle.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/update_schema_bundle.php new file mode 100644 index 000000000000..5e79ced2a810 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/update_schema_bundle.php @@ -0,0 +1,71 @@ +setSchemaBundle($schemaBundle); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $bigtableTableAdminClient->updateSchemaBundle($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var SchemaBundle $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateSchemaBundle_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/update_table.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/update_table.php new file mode 100644 index 000000000000..c3af7971cf8c --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/update_table.php @@ -0,0 +1,74 @@ +setTable($table) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $bigtableTableAdminClient->updateTable($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Table $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/src/V2/Client/BigtableInstanceAdminClient.php b/owl-bot-staging/Bigtable/v2/Admin/src/V2/Client/BigtableInstanceAdminClient.php new file mode 100644 index 000000000000..2a63b634c358 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/src/V2/Client/BigtableInstanceAdminClient.php @@ -0,0 +1,1366 @@ + createAppProfileAsync(CreateAppProfileRequest $request, array $optionalArgs = []) + * @method PromiseInterface createClusterAsync(CreateClusterRequest $request, array $optionalArgs = []) + * @method PromiseInterface createInstanceAsync(CreateInstanceRequest $request, array $optionalArgs = []) + * @method PromiseInterface createLogicalViewAsync(CreateLogicalViewRequest $request, array $optionalArgs = []) + * @method PromiseInterface createMaterializedViewAsync(CreateMaterializedViewRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteAppProfileAsync(DeleteAppProfileRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteClusterAsync(DeleteClusterRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteInstanceAsync(DeleteInstanceRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteLogicalViewAsync(DeleteLogicalViewRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteMaterializedViewAsync(DeleteMaterializedViewRequest $request, array $optionalArgs = []) + * @method PromiseInterface getAppProfileAsync(GetAppProfileRequest $request, array $optionalArgs = []) + * @method PromiseInterface getClusterAsync(GetClusterRequest $request, array $optionalArgs = []) + * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface getInstanceAsync(GetInstanceRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLogicalViewAsync(GetLogicalViewRequest $request, array $optionalArgs = []) + * @method PromiseInterface getMaterializedViewAsync(GetMaterializedViewRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAppProfilesAsync(ListAppProfilesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listClustersAsync(ListClustersRequest $request, array $optionalArgs = []) + * @method PromiseInterface listHotTabletsAsync(ListHotTabletsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listInstancesAsync(ListInstancesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLogicalViewsAsync(ListLogicalViewsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listMaterializedViewsAsync(ListMaterializedViewsRequest $request, array $optionalArgs = []) + * @method PromiseInterface partialUpdateClusterAsync(PartialUpdateClusterRequest $request, array $optionalArgs = []) + * @method PromiseInterface partialUpdateInstanceAsync(PartialUpdateInstanceRequest $request, array $optionalArgs = []) + * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateAppProfileAsync(UpdateAppProfileRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateClusterAsync(Cluster $request, array $optionalArgs = []) + * @method PromiseInterface updateInstanceAsync(Instance $request, array $optionalArgs = []) + * @method PromiseInterface updateLogicalViewAsync(UpdateLogicalViewRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateMaterializedViewAsync(UpdateMaterializedViewRequest $request, array $optionalArgs = []) + */ +final class BigtableInstanceAdminClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.bigtable.admin.v2.BigtableInstanceAdmin'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'bigtableadmin.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'bigtableadmin.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/bigtable.admin', + 'https://www.googleapis.com/auth/bigtable.admin.cluster', + 'https://www.googleapis.com/auth/bigtable.admin.instance', + 'https://www.googleapis.com/auth/cloud-bigtable.admin', + 'https://www.googleapis.com/auth/cloud-bigtable.admin.cluster', + 'https://www.googleapis.com/auth/cloud-platform', + 'https://www.googleapis.com/auth/cloud-platform.read-only', + ]; + + private $operationsClient; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/bigtable_instance_admin_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/bigtable_instance_admin_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/bigtable_instance_admin_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/bigtable_instance_admin_rest_client_config.php', + ], + ], + ]; + } + + /** + * Return an OperationsClient object with the same endpoint as $this. + * + * @return OperationsClient + */ + public function getOperationsClient() + { + return $this->operationsClient; + } + + /** + * Resume an existing long running operation that was previously started by a long + * running API method. If $methodName is not provided, or does not match a long + * running API method, then the operation can still be resumed, but the + * OperationResponse object will not deserialize the final response. + * + * @param string $operationName The name of the long running operation + * @param string $methodName The name of the method used to start the operation + * + * @return OperationResponse + */ + public function resumeOperation($operationName, $methodName = null) + { + $options = $this->descriptors[$methodName]['longRunning'] ?? []; + $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); + $operation->reload(); + return $operation; + } + + /** + * Create the default operation client for the service. + * + * @param array $options ClientOptions for the client. + * + * @return OperationsClient + */ + private function createOperationsClient(array $options) + { + // Unset client-specific configuration options + unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); + + if (isset($options['operationsClient'])) { + return $options['operationsClient']; + } + + return new OperationsClient($options); + } + + /** + * Formats a string containing the fully-qualified path to represent a app_profile + * resource. + * + * @param string $project + * @param string $instance + * @param string $appProfile + * + * @return string The formatted app_profile resource. + */ + public static function appProfileName(string $project, string $instance, string $appProfile): string + { + return self::getPathTemplate('appProfile')->render([ + 'project' => $project, + 'instance' => $instance, + 'app_profile' => $appProfile, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a cluster + * resource. + * + * @param string $project + * @param string $instance + * @param string $cluster + * + * @return string The formatted cluster resource. + */ + public static function clusterName(string $project, string $instance, string $cluster): string + { + return self::getPathTemplate('cluster')->render([ + 'project' => $project, + 'instance' => $instance, + 'cluster' => $cluster, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a crypto_key + * resource. + * + * @param string $project + * @param string $location + * @param string $keyRing + * @param string $cryptoKey + * + * @return string The formatted crypto_key resource. + */ + public static function cryptoKeyName(string $project, string $location, string $keyRing, string $cryptoKey): string + { + return self::getPathTemplate('cryptoKey')->render([ + 'project' => $project, + 'location' => $location, + 'key_ring' => $keyRing, + 'crypto_key' => $cryptoKey, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a instance + * resource. + * + * @param string $project + * @param string $instance + * + * @return string The formatted instance resource. + */ + public static function instanceName(string $project, string $instance): string + { + return self::getPathTemplate('instance')->render([ + 'project' => $project, + 'instance' => $instance, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a location + * resource. + * + * @param string $project + * @param string $location + * + * @return string The formatted location resource. + */ + public static function locationName(string $project, string $location): string + { + return self::getPathTemplate('location')->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a logical_view + * resource. + * + * @param string $project + * @param string $instance + * @param string $logicalView + * + * @return string The formatted logical_view resource. + */ + public static function logicalViewName(string $project, string $instance, string $logicalView): string + { + return self::getPathTemplate('logicalView')->render([ + 'project' => $project, + 'instance' => $instance, + 'logical_view' => $logicalView, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * materialized_view resource. + * + * @param string $project + * @param string $instance + * @param string $materializedView + * + * @return string The formatted materialized_view resource. + */ + public static function materializedViewName(string $project, string $instance, string $materializedView): string + { + return self::getPathTemplate('materializedView')->render([ + 'project' => $project, + 'instance' => $instance, + 'materialized_view' => $materializedView, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a project + * resource. + * + * @param string $project + * + * @return string The formatted project resource. + */ + public static function projectName(string $project): string + { + return self::getPathTemplate('project')->render([ + 'project' => $project, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - appProfile: projects/{project}/instances/{instance}/appProfiles/{app_profile} + * - cluster: projects/{project}/instances/{instance}/clusters/{cluster} + * - cryptoKey: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key} + * - instance: projects/{project}/instances/{instance} + * - location: projects/{project}/locations/{location} + * - logicalView: projects/{project}/instances/{instance}/logicalViews/{logical_view} + * - materializedView: projects/{project}/instances/{instance}/materializedViews/{materialized_view} + * - project: projects/{project} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * Setting the "BIGTABLE_EMULATOR_HOST" environment variable will automatically set + * the API Endpoint to the value specified in the variable, as well as ensure that + * empty credentials are used in the transport layer. + * + * @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 'bigtableadmin.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\Bigtable\Admin\V2\BigtableInstanceAdminClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new BigtableInstanceAdminClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $options = $this->setDefaultEmulatorConfig($options); + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + $this->operationsClient = $this->createOperationsClient($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); + } + + /** + * Creates an app profile within an instance. + * + * The async variant is {@see BigtableInstanceAdminClient::createAppProfileAsync()} + * . + * + * @example samples/V2/BigtableInstanceAdminClient/create_app_profile.php + * + * @param CreateAppProfileRequest $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 AppProfile + * + * @throws ApiException Thrown if the API call fails. + */ + public function createAppProfile(CreateAppProfileRequest $request, array $callOptions = []): AppProfile + { + return $this->startApiCall('CreateAppProfile', $request, $callOptions)->wait(); + } + + /** + * Creates a cluster within an instance. + * + * Note that exactly one of Cluster.serve_nodes and + * Cluster.cluster_config.cluster_autoscaling_config can be set. If + * serve_nodes is set to non-zero, then the cluster is manually scaled. If + * cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is + * enabled. + * + * The async variant is {@see BigtableInstanceAdminClient::createClusterAsync()} . + * + * @example samples/V2/BigtableInstanceAdminClient/create_cluster.php + * + * @param CreateClusterRequest $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 OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function createCluster(CreateClusterRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateCluster', $request, $callOptions)->wait(); + } + + /** + * Create an instance within a project. + * + * Note that exactly one of Cluster.serve_nodes and + * Cluster.cluster_config.cluster_autoscaling_config can be set. If + * serve_nodes is set to non-zero, then the cluster is manually scaled. If + * cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is + * enabled. + * + * The async variant is {@see BigtableInstanceAdminClient::createInstanceAsync()} . + * + * @example samples/V2/BigtableInstanceAdminClient/create_instance.php + * + * @param CreateInstanceRequest $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 OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function createInstance(CreateInstanceRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateInstance', $request, $callOptions)->wait(); + } + + /** + * Creates a logical view within an instance. + * + * The async variant is + * {@see BigtableInstanceAdminClient::createLogicalViewAsync()} . + * + * @example samples/V2/BigtableInstanceAdminClient/create_logical_view.php + * + * @param CreateLogicalViewRequest $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 OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function createLogicalView(CreateLogicalViewRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateLogicalView', $request, $callOptions)->wait(); + } + + /** + * Creates a materialized view within an instance. + * + * The async variant is + * {@see BigtableInstanceAdminClient::createMaterializedViewAsync()} . + * + * @example samples/V2/BigtableInstanceAdminClient/create_materialized_view.php + * + * @param CreateMaterializedViewRequest $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 OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function createMaterializedView(CreateMaterializedViewRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateMaterializedView', $request, $callOptions)->wait(); + } + + /** + * Deletes an app profile from an instance. + * + * The async variant is {@see BigtableInstanceAdminClient::deleteAppProfileAsync()} + * . + * + * @example samples/V2/BigtableInstanceAdminClient/delete_app_profile.php + * + * @param DeleteAppProfileRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteAppProfile(DeleteAppProfileRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteAppProfile', $request, $callOptions)->wait(); + } + + /** + * Deletes a cluster from an instance. + * + * The async variant is {@see BigtableInstanceAdminClient::deleteClusterAsync()} . + * + * @example samples/V2/BigtableInstanceAdminClient/delete_cluster.php + * + * @param DeleteClusterRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteCluster(DeleteClusterRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteCluster', $request, $callOptions)->wait(); + } + + /** + * Delete an instance from a project. + * + * The async variant is {@see BigtableInstanceAdminClient::deleteInstanceAsync()} . + * + * @example samples/V2/BigtableInstanceAdminClient/delete_instance.php + * + * @param DeleteInstanceRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteInstance(DeleteInstanceRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteInstance', $request, $callOptions)->wait(); + } + + /** + * Deletes a logical view from an instance. + * + * The async variant is + * {@see BigtableInstanceAdminClient::deleteLogicalViewAsync()} . + * + * @example samples/V2/BigtableInstanceAdminClient/delete_logical_view.php + * + * @param DeleteLogicalViewRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteLogicalView(DeleteLogicalViewRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteLogicalView', $request, $callOptions)->wait(); + } + + /** + * Deletes a materialized view from an instance. + * + * The async variant is + * {@see BigtableInstanceAdminClient::deleteMaterializedViewAsync()} . + * + * @example samples/V2/BigtableInstanceAdminClient/delete_materialized_view.php + * + * @param DeleteMaterializedViewRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteMaterializedView(DeleteMaterializedViewRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteMaterializedView', $request, $callOptions)->wait(); + } + + /** + * Gets information about an app profile. + * + * The async variant is {@see BigtableInstanceAdminClient::getAppProfileAsync()} . + * + * @example samples/V2/BigtableInstanceAdminClient/get_app_profile.php + * + * @param GetAppProfileRequest $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 AppProfile + * + * @throws ApiException Thrown if the API call fails. + */ + public function getAppProfile(GetAppProfileRequest $request, array $callOptions = []): AppProfile + { + return $this->startApiCall('GetAppProfile', $request, $callOptions)->wait(); + } + + /** + * Gets information about a cluster. + * + * The async variant is {@see BigtableInstanceAdminClient::getClusterAsync()} . + * + * @example samples/V2/BigtableInstanceAdminClient/get_cluster.php + * + * @param GetClusterRequest $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 Cluster + * + * @throws ApiException Thrown if the API call fails. + */ + public function getCluster(GetClusterRequest $request, array $callOptions = []): Cluster + { + return $this->startApiCall('GetCluster', $request, $callOptions)->wait(); + } + + /** + * Gets the access control policy for an instance resource. Returns an empty + * policy if an instance exists but does not have a policy set. + * + * The async variant is {@see BigtableInstanceAdminClient::getIamPolicyAsync()} . + * + * @example samples/V2/BigtableInstanceAdminClient/get_iam_policy.php + * + * @param GetIamPolicyRequest $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 Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Gets information about an instance. + * + * The async variant is {@see BigtableInstanceAdminClient::getInstanceAsync()} . + * + * @example samples/V2/BigtableInstanceAdminClient/get_instance.php + * + * @param GetInstanceRequest $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 Instance + * + * @throws ApiException Thrown if the API call fails. + */ + public function getInstance(GetInstanceRequest $request, array $callOptions = []): Instance + { + return $this->startApiCall('GetInstance', $request, $callOptions)->wait(); + } + + /** + * Gets information about a logical view. + * + * The async variant is {@see BigtableInstanceAdminClient::getLogicalViewAsync()} . + * + * @example samples/V2/BigtableInstanceAdminClient/get_logical_view.php + * + * @param GetLogicalViewRequest $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 LogicalView + * + * @throws ApiException Thrown if the API call fails. + */ + public function getLogicalView(GetLogicalViewRequest $request, array $callOptions = []): LogicalView + { + return $this->startApiCall('GetLogicalView', $request, $callOptions)->wait(); + } + + /** + * Gets information about a materialized view. + * + * The async variant is + * {@see BigtableInstanceAdminClient::getMaterializedViewAsync()} . + * + * @example samples/V2/BigtableInstanceAdminClient/get_materialized_view.php + * + * @param GetMaterializedViewRequest $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 MaterializedView + * + * @throws ApiException Thrown if the API call fails. + */ + public function getMaterializedView(GetMaterializedViewRequest $request, array $callOptions = []): MaterializedView + { + return $this->startApiCall('GetMaterializedView', $request, $callOptions)->wait(); + } + + /** + * Lists information about app profiles in an instance. + * + * The async variant is {@see BigtableInstanceAdminClient::listAppProfilesAsync()} + * . + * + * @example samples/V2/BigtableInstanceAdminClient/list_app_profiles.php + * + * @param ListAppProfilesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listAppProfiles(ListAppProfilesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListAppProfiles', $request, $callOptions); + } + + /** + * Lists information about clusters in an instance. + * + * The async variant is {@see BigtableInstanceAdminClient::listClustersAsync()} . + * + * @example samples/V2/BigtableInstanceAdminClient/list_clusters.php + * + * @param ListClustersRequest $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 ListClustersResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listClusters(ListClustersRequest $request, array $callOptions = []): ListClustersResponse + { + return $this->startApiCall('ListClusters', $request, $callOptions)->wait(); + } + + /** + * Lists hot tablets in a cluster, within the time range provided. Hot + * tablets are ordered based on CPU usage. + * + * The async variant is {@see BigtableInstanceAdminClient::listHotTabletsAsync()} . + * + * @example samples/V2/BigtableInstanceAdminClient/list_hot_tablets.php + * + * @param ListHotTabletsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listHotTablets(ListHotTabletsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListHotTablets', $request, $callOptions); + } + + /** + * Lists information about instances in a project. + * + * The async variant is {@see BigtableInstanceAdminClient::listInstancesAsync()} . + * + * @example samples/V2/BigtableInstanceAdminClient/list_instances.php + * + * @param ListInstancesRequest $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 ListInstancesResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listInstances(ListInstancesRequest $request, array $callOptions = []): ListInstancesResponse + { + return $this->startApiCall('ListInstances', $request, $callOptions)->wait(); + } + + /** + * Lists information about logical views in an instance. + * + * The async variant is {@see BigtableInstanceAdminClient::listLogicalViewsAsync()} + * . + * + * @example samples/V2/BigtableInstanceAdminClient/list_logical_views.php + * + * @param ListLogicalViewsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listLogicalViews(ListLogicalViewsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListLogicalViews', $request, $callOptions); + } + + /** + * Lists information about materialized views in an instance. + * + * The async variant is + * {@see BigtableInstanceAdminClient::listMaterializedViewsAsync()} . + * + * @example samples/V2/BigtableInstanceAdminClient/list_materialized_views.php + * + * @param ListMaterializedViewsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listMaterializedViews(ListMaterializedViewsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListMaterializedViews', $request, $callOptions); + } + + /** + * Partially updates a cluster within a project. This method is the preferred + * way to update a Cluster. + * + * To enable and update autoscaling, set + * cluster_config.cluster_autoscaling_config. When autoscaling is enabled, + * serve_nodes is treated as an OUTPUT_ONLY field, meaning that updates to it + * are ignored. Note that an update cannot simultaneously set serve_nodes to + * non-zero and cluster_config.cluster_autoscaling_config to non-empty, and + * also specify both in the update_mask. + * + * To disable autoscaling, clear cluster_config.cluster_autoscaling_config, + * and explicitly set a serve_node count via the update_mask. + * + * The async variant is + * {@see BigtableInstanceAdminClient::partialUpdateClusterAsync()} . + * + * @example samples/V2/BigtableInstanceAdminClient/partial_update_cluster.php + * + * @param PartialUpdateClusterRequest $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 OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function partialUpdateCluster(PartialUpdateClusterRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('PartialUpdateCluster', $request, $callOptions)->wait(); + } + + /** + * Partially updates an instance within a project. This method can modify all + * fields of an Instance and is the preferred way to update an Instance. + * + * The async variant is + * {@see BigtableInstanceAdminClient::partialUpdateInstanceAsync()} . + * + * @example samples/V2/BigtableInstanceAdminClient/partial_update_instance.php + * + * @param PartialUpdateInstanceRequest $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 OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function partialUpdateInstance(PartialUpdateInstanceRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('PartialUpdateInstance', $request, $callOptions)->wait(); + } + + /** + * Sets the access control policy on an instance resource. Replaces any + * existing policy. + * + * The async variant is {@see BigtableInstanceAdminClient::setIamPolicyAsync()} . + * + * @example samples/V2/BigtableInstanceAdminClient/set_iam_policy.php + * + * @param SetIamPolicyRequest $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 Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Returns permissions that the caller has on the specified instance resource. + * + * The async variant is + * {@see BigtableInstanceAdminClient::testIamPermissionsAsync()} . + * + * @example samples/V2/BigtableInstanceAdminClient/test_iam_permissions.php + * + * @param TestIamPermissionsRequest $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 TestIamPermissionsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse + { + return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); + } + + /** + * Updates an app profile within an instance. + * + * The async variant is {@see BigtableInstanceAdminClient::updateAppProfileAsync()} + * . + * + * @example samples/V2/BigtableInstanceAdminClient/update_app_profile.php + * + * @param UpdateAppProfileRequest $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 OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateAppProfile(UpdateAppProfileRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateAppProfile', $request, $callOptions)->wait(); + } + + /** + * Updates a cluster within an instance. + * + * Note that UpdateCluster does not support updating + * cluster_config.cluster_autoscaling_config. In order to update it, you + * must use PartialUpdateCluster. + * + * The async variant is {@see BigtableInstanceAdminClient::updateClusterAsync()} . + * + * @example samples/V2/BigtableInstanceAdminClient/update_cluster.php + * + * @param Cluster $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 OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateCluster(Cluster $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateCluster', $request, $callOptions)->wait(); + } + + /** + * Updates an instance within a project. This method updates only the display + * name and type for an Instance. To update other Instance properties, such as + * labels, use PartialUpdateInstance. + * + * The async variant is {@see BigtableInstanceAdminClient::updateInstanceAsync()} . + * + * @example samples/V2/BigtableInstanceAdminClient/update_instance.php + * + * @param Instance $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 Instance + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateInstance(Instance $request, array $callOptions = []): Instance + { + return $this->startApiCall('UpdateInstance', $request, $callOptions)->wait(); + } + + /** + * Updates a logical view within an instance. + * + * The async variant is + * {@see BigtableInstanceAdminClient::updateLogicalViewAsync()} . + * + * @example samples/V2/BigtableInstanceAdminClient/update_logical_view.php + * + * @param UpdateLogicalViewRequest $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 OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateLogicalView(UpdateLogicalViewRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateLogicalView', $request, $callOptions)->wait(); + } + + /** + * Updates a materialized view within an instance. + * + * The async variant is + * {@see BigtableInstanceAdminClient::updateMaterializedViewAsync()} . + * + * @example samples/V2/BigtableInstanceAdminClient/update_materialized_view.php + * + * @param UpdateMaterializedViewRequest $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 OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateMaterializedView(UpdateMaterializedViewRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateMaterializedView', $request, $callOptions)->wait(); + } + + /** Configure the gapic configuration to use a service emulator. */ + private function setDefaultEmulatorConfig(array $options): array + { + $emulatorHost = getenv('BIGTABLE_EMULATOR_HOST'); + if (empty($emulatorHost)) { + return $options; + } + + if ($scheme = parse_url($emulatorHost, PHP_URL_SCHEME)) { + $search = $scheme . '://'; + $emulatorHost = str_replace($search, '', $emulatorHost); + } + + $options['apiEndpoint'] ??= $emulatorHost; + if (class_exists(ChannelCredentials::class)) { + $options['transportConfig']['grpc']['stubOpts']['credentials'] ??= ChannelCredentials::createInsecure(); + } + + $options['credentials'] ??= new InsecureCredentialsWrapper(); + return $options; + } +} diff --git a/owl-bot-staging/Bigtable/v2/Admin/src/V2/Client/BigtableTableAdminClient.php b/owl-bot-staging/Bigtable/v2/Admin/src/V2/Client/BigtableTableAdminClient.php new file mode 100644 index 000000000000..732192f8fc91 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/src/V2/Client/BigtableTableAdminClient.php @@ -0,0 +1,1540 @@ + checkConsistencyAsync(CheckConsistencyRequest $request, array $optionalArgs = []) + * @method PromiseInterface copyBackupAsync(CopyBackupRequest $request, array $optionalArgs = []) + * @method PromiseInterface createAuthorizedViewAsync(CreateAuthorizedViewRequest $request, array $optionalArgs = []) + * @method PromiseInterface createBackupAsync(CreateBackupRequest $request, array $optionalArgs = []) + * @method PromiseInterface createSchemaBundleAsync(CreateSchemaBundleRequest $request, array $optionalArgs = []) + * @method PromiseInterface
createTableAsync(CreateTableRequest $request, array $optionalArgs = []) + * @method PromiseInterface createTableFromSnapshotAsync(CreateTableFromSnapshotRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteAuthorizedViewAsync(DeleteAuthorizedViewRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteBackupAsync(DeleteBackupRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteSchemaBundleAsync(DeleteSchemaBundleRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteSnapshotAsync(DeleteSnapshotRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteTableAsync(DeleteTableRequest $request, array $optionalArgs = []) + * @method PromiseInterface dropRowRangeAsync(DropRowRangeRequest $request, array $optionalArgs = []) + * @method PromiseInterface generateConsistencyTokenAsync(GenerateConsistencyTokenRequest $request, array $optionalArgs = []) + * @method PromiseInterface getAuthorizedViewAsync(GetAuthorizedViewRequest $request, array $optionalArgs = []) + * @method PromiseInterface getBackupAsync(GetBackupRequest $request, array $optionalArgs = []) + * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface getSchemaBundleAsync(GetSchemaBundleRequest $request, array $optionalArgs = []) + * @method PromiseInterface getSnapshotAsync(GetSnapshotRequest $request, array $optionalArgs = []) + * @method PromiseInterface
getTableAsync(GetTableRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAuthorizedViewsAsync(ListAuthorizedViewsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listBackupsAsync(ListBackupsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listSchemaBundlesAsync(ListSchemaBundlesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listSnapshotsAsync(ListSnapshotsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listTablesAsync(ListTablesRequest $request, array $optionalArgs = []) + * @method PromiseInterface
modifyColumnFamiliesAsync(ModifyColumnFamiliesRequest $request, array $optionalArgs = []) + * @method PromiseInterface restoreTableAsync(RestoreTableRequest $request, array $optionalArgs = []) + * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface snapshotTableAsync(SnapshotTableRequest $request, array $optionalArgs = []) + * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface undeleteTableAsync(UndeleteTableRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateAuthorizedViewAsync(UpdateAuthorizedViewRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateBackupAsync(UpdateBackupRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateSchemaBundleAsync(UpdateSchemaBundleRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateTableAsync(UpdateTableRequest $request, array $optionalArgs = []) + */ +final class BigtableTableAdminClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.bigtable.admin.v2.BigtableTableAdmin'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'bigtableadmin.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'bigtableadmin.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/bigtable.admin', + 'https://www.googleapis.com/auth/bigtable.admin.table', + 'https://www.googleapis.com/auth/cloud-bigtable.admin', + 'https://www.googleapis.com/auth/cloud-bigtable.admin.table', + 'https://www.googleapis.com/auth/cloud-platform', + 'https://www.googleapis.com/auth/cloud-platform.read-only', + ]; + + private $operationsClient; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/bigtable_table_admin_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/bigtable_table_admin_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/bigtable_table_admin_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/bigtable_table_admin_rest_client_config.php', + ], + ], + ]; + } + + /** + * Return an OperationsClient object with the same endpoint as $this. + * + * @return OperationsClient + */ + public function getOperationsClient() + { + return $this->operationsClient; + } + + /** + * Resume an existing long running operation that was previously started by a long + * running API method. If $methodName is not provided, or does not match a long + * running API method, then the operation can still be resumed, but the + * OperationResponse object will not deserialize the final response. + * + * @param string $operationName The name of the long running operation + * @param string $methodName The name of the method used to start the operation + * + * @return OperationResponse + */ + public function resumeOperation($operationName, $methodName = null) + { + $options = $this->descriptors[$methodName]['longRunning'] ?? []; + $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); + $operation->reload(); + return $operation; + } + + /** + * Create the default operation client for the service. + * + * @param array $options ClientOptions for the client. + * + * @return OperationsClient + */ + private function createOperationsClient(array $options) + { + // Unset client-specific configuration options + unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); + + if (isset($options['operationsClient'])) { + return $options['operationsClient']; + } + + return new OperationsClient($options); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * authorized_view resource. + * + * @param string $project + * @param string $instance + * @param string $table + * @param string $authorizedView + * + * @return string The formatted authorized_view resource. + */ + public static function authorizedViewName(string $project, string $instance, string $table, string $authorizedView): string + { + return self::getPathTemplate('authorizedView')->render([ + 'project' => $project, + 'instance' => $instance, + 'table' => $table, + 'authorized_view' => $authorizedView, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a backup + * resource. + * + * @param string $project + * @param string $instance + * @param string $cluster + * @param string $backup + * + * @return string The formatted backup resource. + */ + public static function backupName(string $project, string $instance, string $cluster, string $backup): string + { + return self::getPathTemplate('backup')->render([ + 'project' => $project, + 'instance' => $instance, + 'cluster' => $cluster, + 'backup' => $backup, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a cluster + * resource. + * + * @param string $project + * @param string $instance + * @param string $cluster + * + * @return string The formatted cluster resource. + */ + public static function clusterName(string $project, string $instance, string $cluster): string + { + return self::getPathTemplate('cluster')->render([ + 'project' => $project, + 'instance' => $instance, + 'cluster' => $cluster, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * crypto_key_version resource. + * + * @param string $project + * @param string $location + * @param string $keyRing + * @param string $cryptoKey + * @param string $cryptoKeyVersion + * + * @return string The formatted crypto_key_version resource. + */ + public static function cryptoKeyVersionName(string $project, string $location, string $keyRing, string $cryptoKey, string $cryptoKeyVersion): string + { + return self::getPathTemplate('cryptoKeyVersion')->render([ + 'project' => $project, + 'location' => $location, + 'key_ring' => $keyRing, + 'crypto_key' => $cryptoKey, + 'crypto_key_version' => $cryptoKeyVersion, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a instance + * resource. + * + * @param string $project + * @param string $instance + * + * @return string The formatted instance resource. + */ + public static function instanceName(string $project, string $instance): string + { + return self::getPathTemplate('instance')->render([ + 'project' => $project, + 'instance' => $instance, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a location + * resource. + * + * @param string $project + * @param string $location + * + * @return string The formatted location resource. + */ + public static function locationName(string $project, string $location): string + { + return self::getPathTemplate('location')->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * schema_bundle resource. + * + * @param string $project + * @param string $instance + * @param string $table + * @param string $schemaBundle + * + * @return string The formatted schema_bundle resource. + */ + public static function schemaBundleName(string $project, string $instance, string $table, string $schemaBundle): string + { + return self::getPathTemplate('schemaBundle')->render([ + 'project' => $project, + 'instance' => $instance, + 'table' => $table, + 'schema_bundle' => $schemaBundle, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a snapshot + * resource. + * + * @param string $project + * @param string $instance + * @param string $cluster + * @param string $snapshot + * + * @return string The formatted snapshot resource. + */ + public static function snapshotName(string $project, string $instance, string $cluster, string $snapshot): string + { + return self::getPathTemplate('snapshot')->render([ + 'project' => $project, + 'instance' => $instance, + 'cluster' => $cluster, + 'snapshot' => $snapshot, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a table + * resource. + * + * @param string $project + * @param string $instance + * @param string $table + * + * @return string The formatted table resource. + */ + public static function tableName(string $project, string $instance, string $table): string + { + return self::getPathTemplate('table')->render([ + 'project' => $project, + 'instance' => $instance, + 'table' => $table, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - authorizedView: projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view} + * - backup: projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup} + * - cluster: projects/{project}/instances/{instance}/clusters/{cluster} + * - cryptoKeyVersion: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version} + * - instance: projects/{project}/instances/{instance} + * - location: projects/{project}/locations/{location} + * - schemaBundle: projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle} + * - snapshot: projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot} + * - table: projects/{project}/instances/{instance}/tables/{table} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * Setting the "BIGTABLE_EMULATOR_HOST" environment variable will automatically set + * the API Endpoint to the value specified in the variable, as well as ensure that + * empty credentials are used in the transport layer. + * + * @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 'bigtableadmin.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\Bigtable\Admin\V2\BigtableTableAdminClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new BigtableTableAdminClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $options = $this->setDefaultEmulatorConfig($options); + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + $this->operationsClient = $this->createOperationsClient($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); + } + + /** + * Checks replication consistency based on a consistency token, that is, if + * replication has caught up based on the conditions specified in the token + * and the check request. + * + * The async variant is {@see BigtableTableAdminClient::checkConsistencyAsync()} . + * + * @example samples/V2/BigtableTableAdminClient/check_consistency.php + * + * @param CheckConsistencyRequest $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 CheckConsistencyResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function checkConsistency(CheckConsistencyRequest $request, array $callOptions = []): CheckConsistencyResponse + { + return $this->startApiCall('CheckConsistency', $request, $callOptions)->wait(); + } + + /** + * Copy a Cloud Bigtable backup to a new backup in the destination cluster + * located in the destination instance and project. + * + * The async variant is {@see BigtableTableAdminClient::copyBackupAsync()} . + * + * @example samples/V2/BigtableTableAdminClient/copy_backup.php + * + * @param CopyBackupRequest $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 OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function copyBackup(CopyBackupRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CopyBackup', $request, $callOptions)->wait(); + } + + /** + * Creates a new AuthorizedView in a table. + * + * The async variant is + * {@see BigtableTableAdminClient::createAuthorizedViewAsync()} . + * + * @example samples/V2/BigtableTableAdminClient/create_authorized_view.php + * + * @param CreateAuthorizedViewRequest $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 OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function createAuthorizedView(CreateAuthorizedViewRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateAuthorizedView', $request, $callOptions)->wait(); + } + + /** + * Starts creating a new Cloud Bigtable Backup. The returned backup + * [long-running operation][google.longrunning.Operation] can be used to + * track creation of the backup. The + * [metadata][google.longrunning.Operation.metadata] field type is + * [CreateBackupMetadata][google.bigtable.admin.v2.CreateBackupMetadata]. The + * [response][google.longrunning.Operation.response] field type is + * [Backup][google.bigtable.admin.v2.Backup], if successful. Cancelling the + * returned operation will stop the creation and delete the backup. + * + * The async variant is {@see BigtableTableAdminClient::createBackupAsync()} . + * + * @example samples/V2/BigtableTableAdminClient/create_backup.php + * + * @param CreateBackupRequest $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 OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function createBackup(CreateBackupRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateBackup', $request, $callOptions)->wait(); + } + + /** + * Creates a new schema bundle in the specified table. + * + * The async variant is {@see BigtableTableAdminClient::createSchemaBundleAsync()} + * . + * + * @example samples/V2/BigtableTableAdminClient/create_schema_bundle.php + * + * @param CreateSchemaBundleRequest $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 OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function createSchemaBundle(CreateSchemaBundleRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateSchemaBundle', $request, $callOptions)->wait(); + } + + /** + * Creates a new table in the specified instance. + * The table can be created with a full set of initial column families, + * specified in the request. + * + * The async variant is {@see BigtableTableAdminClient::createTableAsync()} . + * + * @example samples/V2/BigtableTableAdminClient/create_table.php + * + * @param CreateTableRequest $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 Table + * + * @throws ApiException Thrown if the API call fails. + */ + public function createTable(CreateTableRequest $request, array $callOptions = []): Table + { + return $this->startApiCall('CreateTable', $request, $callOptions)->wait(); + } + + /** + * Creates a new table from the specified snapshot. The target table must + * not exist. The snapshot and the table must be in the same instance. + * + * Note: This is a private alpha release of Cloud Bigtable snapshots. This + * feature is not currently available to most Cloud Bigtable customers. This + * feature might be changed in backward-incompatible ways and is not + * recommended for production use. It is not subject to any SLA or deprecation + * policy. + * + * The async variant is + * {@see BigtableTableAdminClient::createTableFromSnapshotAsync()} . + * + * @example samples/V2/BigtableTableAdminClient/create_table_from_snapshot.php + * + * @param CreateTableFromSnapshotRequest $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 OperationResponse
+ * + * @throws ApiException Thrown if the API call fails. + */ + public function createTableFromSnapshot(CreateTableFromSnapshotRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateTableFromSnapshot', $request, $callOptions)->wait(); + } + + /** + * Permanently deletes a specified AuthorizedView. + * + * The async variant is + * {@see BigtableTableAdminClient::deleteAuthorizedViewAsync()} . + * + * @example samples/V2/BigtableTableAdminClient/delete_authorized_view.php + * + * @param DeleteAuthorizedViewRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteAuthorizedView(DeleteAuthorizedViewRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteAuthorizedView', $request, $callOptions)->wait(); + } + + /** + * Deletes a pending or completed Cloud Bigtable backup. + * + * The async variant is {@see BigtableTableAdminClient::deleteBackupAsync()} . + * + * @example samples/V2/BigtableTableAdminClient/delete_backup.php + * + * @param DeleteBackupRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteBackup(DeleteBackupRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteBackup', $request, $callOptions)->wait(); + } + + /** + * Deletes a schema bundle in the specified table. + * + * The async variant is {@see BigtableTableAdminClient::deleteSchemaBundleAsync()} + * . + * + * @example samples/V2/BigtableTableAdminClient/delete_schema_bundle.php + * + * @param DeleteSchemaBundleRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteSchemaBundle(DeleteSchemaBundleRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteSchemaBundle', $request, $callOptions)->wait(); + } + + /** + * Permanently deletes the specified snapshot. + * + * Note: This is a private alpha release of Cloud Bigtable snapshots. This + * feature is not currently available to most Cloud Bigtable customers. This + * feature might be changed in backward-incompatible ways and is not + * recommended for production use. It is not subject to any SLA or deprecation + * policy. + * + * The async variant is {@see BigtableTableAdminClient::deleteSnapshotAsync()} . + * + * @example samples/V2/BigtableTableAdminClient/delete_snapshot.php + * + * @param DeleteSnapshotRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteSnapshot(DeleteSnapshotRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteSnapshot', $request, $callOptions)->wait(); + } + + /** + * Permanently deletes a specified table and all of its data. + * + * The async variant is {@see BigtableTableAdminClient::deleteTableAsync()} . + * + * @example samples/V2/BigtableTableAdminClient/delete_table.php + * + * @param DeleteTableRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteTable(DeleteTableRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteTable', $request, $callOptions)->wait(); + } + + /** + * Permanently drop/delete a row range from a specified table. The request can + * specify whether to delete all rows in a table, or only those that match a + * particular prefix. + * + * The async variant is {@see BigtableTableAdminClient::dropRowRangeAsync()} . + * + * @example samples/V2/BigtableTableAdminClient/drop_row_range.php + * + * @param DropRowRangeRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function dropRowRange(DropRowRangeRequest $request, array $callOptions = []): void + { + $this->startApiCall('DropRowRange', $request, $callOptions)->wait(); + } + + /** + * Generates a consistency token for a Table, which can be used in + * CheckConsistency to check whether mutations to the table that finished + * before this call started have been replicated. The tokens will be available + * for 90 days. + * + * The async variant is + * {@see BigtableTableAdminClient::generateConsistencyTokenAsync()} . + * + * @example samples/V2/BigtableTableAdminClient/generate_consistency_token.php + * + * @param GenerateConsistencyTokenRequest $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 GenerateConsistencyTokenResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function generateConsistencyToken(GenerateConsistencyTokenRequest $request, array $callOptions = []): GenerateConsistencyTokenResponse + { + return $this->startApiCall('GenerateConsistencyToken', $request, $callOptions)->wait(); + } + + /** + * Gets information from a specified AuthorizedView. + * + * The async variant is {@see BigtableTableAdminClient::getAuthorizedViewAsync()} . + * + * @example samples/V2/BigtableTableAdminClient/get_authorized_view.php + * + * @param GetAuthorizedViewRequest $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 AuthorizedView + * + * @throws ApiException Thrown if the API call fails. + */ + public function getAuthorizedView(GetAuthorizedViewRequest $request, array $callOptions = []): AuthorizedView + { + return $this->startApiCall('GetAuthorizedView', $request, $callOptions)->wait(); + } + + /** + * Gets metadata on a pending or completed Cloud Bigtable Backup. + * + * The async variant is {@see BigtableTableAdminClient::getBackupAsync()} . + * + * @example samples/V2/BigtableTableAdminClient/get_backup.php + * + * @param GetBackupRequest $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 Backup + * + * @throws ApiException Thrown if the API call fails. + */ + public function getBackup(GetBackupRequest $request, array $callOptions = []): Backup + { + return $this->startApiCall('GetBackup', $request, $callOptions)->wait(); + } + + /** + * Gets the access control policy for a Bigtable resource. + * Returns an empty policy if the resource exists but does not have a policy + * set. + * + * The async variant is {@see BigtableTableAdminClient::getIamPolicyAsync()} . + * + * @example samples/V2/BigtableTableAdminClient/get_iam_policy.php + * + * @param GetIamPolicyRequest $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 Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Gets metadata information about the specified schema bundle. + * + * The async variant is {@see BigtableTableAdminClient::getSchemaBundleAsync()} . + * + * @example samples/V2/BigtableTableAdminClient/get_schema_bundle.php + * + * @param GetSchemaBundleRequest $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 SchemaBundle + * + * @throws ApiException Thrown if the API call fails. + */ + public function getSchemaBundle(GetSchemaBundleRequest $request, array $callOptions = []): SchemaBundle + { + return $this->startApiCall('GetSchemaBundle', $request, $callOptions)->wait(); + } + + /** + * Gets metadata information about the specified snapshot. + * + * Note: This is a private alpha release of Cloud Bigtable snapshots. This + * feature is not currently available to most Cloud Bigtable customers. This + * feature might be changed in backward-incompatible ways and is not + * recommended for production use. It is not subject to any SLA or deprecation + * policy. + * + * The async variant is {@see BigtableTableAdminClient::getSnapshotAsync()} . + * + * @example samples/V2/BigtableTableAdminClient/get_snapshot.php + * + * @param GetSnapshotRequest $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 Snapshot + * + * @throws ApiException Thrown if the API call fails. + */ + public function getSnapshot(GetSnapshotRequest $request, array $callOptions = []): Snapshot + { + return $this->startApiCall('GetSnapshot', $request, $callOptions)->wait(); + } + + /** + * Gets metadata information about the specified table. + * + * The async variant is {@see BigtableTableAdminClient::getTableAsync()} . + * + * @example samples/V2/BigtableTableAdminClient/get_table.php + * + * @param GetTableRequest $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 Table + * + * @throws ApiException Thrown if the API call fails. + */ + public function getTable(GetTableRequest $request, array $callOptions = []): Table + { + return $this->startApiCall('GetTable', $request, $callOptions)->wait(); + } + + /** + * Lists all AuthorizedViews from a specific table. + * + * The async variant is {@see BigtableTableAdminClient::listAuthorizedViewsAsync()} + * . + * + * @example samples/V2/BigtableTableAdminClient/list_authorized_views.php + * + * @param ListAuthorizedViewsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listAuthorizedViews(ListAuthorizedViewsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListAuthorizedViews', $request, $callOptions); + } + + /** + * Lists Cloud Bigtable backups. Returns both completed and pending + * backups. + * + * The async variant is {@see BigtableTableAdminClient::listBackupsAsync()} . + * + * @example samples/V2/BigtableTableAdminClient/list_backups.php + * + * @param ListBackupsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listBackups(ListBackupsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListBackups', $request, $callOptions); + } + + /** + * Lists all schema bundles associated with the specified table. + * + * The async variant is {@see BigtableTableAdminClient::listSchemaBundlesAsync()} . + * + * @example samples/V2/BigtableTableAdminClient/list_schema_bundles.php + * + * @param ListSchemaBundlesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listSchemaBundles(ListSchemaBundlesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListSchemaBundles', $request, $callOptions); + } + + /** + * Lists all snapshots associated with the specified cluster. + * + * Note: This is a private alpha release of Cloud Bigtable snapshots. This + * feature is not currently available to most Cloud Bigtable customers. This + * feature might be changed in backward-incompatible ways and is not + * recommended for production use. It is not subject to any SLA or deprecation + * policy. + * + * The async variant is {@see BigtableTableAdminClient::listSnapshotsAsync()} . + * + * @example samples/V2/BigtableTableAdminClient/list_snapshots.php + * + * @param ListSnapshotsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listSnapshots(ListSnapshotsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListSnapshots', $request, $callOptions); + } + + /** + * Lists all tables served from a specified instance. + * + * The async variant is {@see BigtableTableAdminClient::listTablesAsync()} . + * + * @example samples/V2/BigtableTableAdminClient/list_tables.php + * + * @param ListTablesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listTables(ListTablesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListTables', $request, $callOptions); + } + + /** + * Performs a series of column family modifications on the specified table. + * Either all or none of the modifications will occur before this method + * returns, but data requests received prior to that point may see a table + * where only some modifications have taken effect. + * + * The async variant is + * {@see BigtableTableAdminClient::modifyColumnFamiliesAsync()} . + * + * @example samples/V2/BigtableTableAdminClient/modify_column_families.php + * + * @param ModifyColumnFamiliesRequest $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 Table + * + * @throws ApiException Thrown if the API call fails. + */ + public function modifyColumnFamilies(ModifyColumnFamiliesRequest $request, array $callOptions = []): Table + { + return $this->startApiCall('ModifyColumnFamilies', $request, $callOptions)->wait(); + } + + /** + * Create a new table by restoring from a completed backup. The + * returned table [long-running operation][google.longrunning.Operation] can + * be used to track the progress of the operation, and to cancel it. The + * [metadata][google.longrunning.Operation.metadata] field type is + * [RestoreTableMetadata][google.bigtable.admin.v2.RestoreTableMetadata]. The + * [response][google.longrunning.Operation.response] type is + * [Table][google.bigtable.admin.v2.Table], if successful. + * + * The async variant is {@see BigtableTableAdminClient::restoreTableAsync()} . + * + * @example samples/V2/BigtableTableAdminClient/restore_table.php + * + * @param RestoreTableRequest $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 OperationResponse
+ * + * @throws ApiException Thrown if the API call fails. + */ + public function restoreTable(RestoreTableRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('RestoreTable', $request, $callOptions)->wait(); + } + + /** + * Sets the access control policy on a Bigtable resource. + * Replaces any existing policy. + * + * The async variant is {@see BigtableTableAdminClient::setIamPolicyAsync()} . + * + * @example samples/V2/BigtableTableAdminClient/set_iam_policy.php + * + * @param SetIamPolicyRequest $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 Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Creates a new snapshot in the specified cluster from the specified + * source table. The cluster and the table must be in the same instance. + * + * Note: This is a private alpha release of Cloud Bigtable snapshots. This + * feature is not currently available to most Cloud Bigtable customers. This + * feature might be changed in backward-incompatible ways and is not + * recommended for production use. It is not subject to any SLA or deprecation + * policy. + * + * The async variant is {@see BigtableTableAdminClient::snapshotTableAsync()} . + * + * @example samples/V2/BigtableTableAdminClient/snapshot_table.php + * + * @param SnapshotTableRequest $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 OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function snapshotTable(SnapshotTableRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('SnapshotTable', $request, $callOptions)->wait(); + } + + /** + * Returns permissions that the caller has on the specified Bigtable + * resource. + * + * The async variant is {@see BigtableTableAdminClient::testIamPermissionsAsync()} + * . + * + * @example samples/V2/BigtableTableAdminClient/test_iam_permissions.php + * + * @param TestIamPermissionsRequest $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 TestIamPermissionsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse + { + return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); + } + + /** + * Restores a specified table which was accidentally deleted. + * + * The async variant is {@see BigtableTableAdminClient::undeleteTableAsync()} . + * + * @example samples/V2/BigtableTableAdminClient/undelete_table.php + * + * @param UndeleteTableRequest $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 OperationResponse
+ * + * @throws ApiException Thrown if the API call fails. + */ + public function undeleteTable(UndeleteTableRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UndeleteTable', $request, $callOptions)->wait(); + } + + /** + * Updates an AuthorizedView in a table. + * + * The async variant is + * {@see BigtableTableAdminClient::updateAuthorizedViewAsync()} . + * + * @example samples/V2/BigtableTableAdminClient/update_authorized_view.php + * + * @param UpdateAuthorizedViewRequest $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 OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateAuthorizedView(UpdateAuthorizedViewRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateAuthorizedView', $request, $callOptions)->wait(); + } + + /** + * Updates a pending or completed Cloud Bigtable Backup. + * + * The async variant is {@see BigtableTableAdminClient::updateBackupAsync()} . + * + * @example samples/V2/BigtableTableAdminClient/update_backup.php + * + * @param UpdateBackupRequest $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 Backup + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateBackup(UpdateBackupRequest $request, array $callOptions = []): Backup + { + return $this->startApiCall('UpdateBackup', $request, $callOptions)->wait(); + } + + /** + * Updates a schema bundle in the specified table. + * + * The async variant is {@see BigtableTableAdminClient::updateSchemaBundleAsync()} + * . + * + * @example samples/V2/BigtableTableAdminClient/update_schema_bundle.php + * + * @param UpdateSchemaBundleRequest $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 OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateSchemaBundle(UpdateSchemaBundleRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateSchemaBundle', $request, $callOptions)->wait(); + } + + /** + * Updates a specified table. + * + * The async variant is {@see BigtableTableAdminClient::updateTableAsync()} . + * + * @example samples/V2/BigtableTableAdminClient/update_table.php + * + * @param UpdateTableRequest $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 OperationResponse
+ * + * @throws ApiException Thrown if the API call fails. + */ + public function updateTable(UpdateTableRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateTable', $request, $callOptions)->wait(); + } + + /** Configure the gapic configuration to use a service emulator. */ + private function setDefaultEmulatorConfig(array $options): array + { + $emulatorHost = getenv('BIGTABLE_EMULATOR_HOST'); + if (empty($emulatorHost)) { + return $options; + } + + if ($scheme = parse_url($emulatorHost, PHP_URL_SCHEME)) { + $search = $scheme . '://'; + $emulatorHost = str_replace($search, '', $emulatorHost); + } + + $options['apiEndpoint'] ??= $emulatorHost; + if (class_exists(ChannelCredentials::class)) { + $options['transportConfig']['grpc']['stubOpts']['credentials'] ??= ChannelCredentials::createInsecure(); + } + + $options['credentials'] ??= new InsecureCredentialsWrapper(); + return $options; + } +} diff --git a/owl-bot-staging/Bigtable/v2/Admin/src/V2/gapic_metadata.json b/owl-bot-staging/Bigtable/v2/Admin/src/V2/gapic_metadata.json new file mode 100644 index 000000000000..20a64eaa6612 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/src/V2/gapic_metadata.json @@ -0,0 +1,357 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "google.bigtable.admin.v2", + "libraryPackage": "Google\\Cloud\\Bigtable\\Admin\\V2", + "services": { + "BigtableInstanceAdmin": { + "clients": { + "grpc": { + "libraryClient": "BigtableInstanceAdminGapicClient", + "rpcs": { + "CreateAppProfile": { + "methods": [ + "createAppProfile" + ] + }, + "CreateCluster": { + "methods": [ + "createCluster" + ] + }, + "CreateInstance": { + "methods": [ + "createInstance" + ] + }, + "CreateLogicalView": { + "methods": [ + "createLogicalView" + ] + }, + "CreateMaterializedView": { + "methods": [ + "createMaterializedView" + ] + }, + "DeleteAppProfile": { + "methods": [ + "deleteAppProfile" + ] + }, + "DeleteCluster": { + "methods": [ + "deleteCluster" + ] + }, + "DeleteInstance": { + "methods": [ + "deleteInstance" + ] + }, + "DeleteLogicalView": { + "methods": [ + "deleteLogicalView" + ] + }, + "DeleteMaterializedView": { + "methods": [ + "deleteMaterializedView" + ] + }, + "GetAppProfile": { + "methods": [ + "getAppProfile" + ] + }, + "GetCluster": { + "methods": [ + "getCluster" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "GetInstance": { + "methods": [ + "getInstance" + ] + }, + "GetLogicalView": { + "methods": [ + "getLogicalView" + ] + }, + "GetMaterializedView": { + "methods": [ + "getMaterializedView" + ] + }, + "ListAppProfiles": { + "methods": [ + "listAppProfiles" + ] + }, + "ListClusters": { + "methods": [ + "listClusters" + ] + }, + "ListHotTablets": { + "methods": [ + "listHotTablets" + ] + }, + "ListInstances": { + "methods": [ + "listInstances" + ] + }, + "ListLogicalViews": { + "methods": [ + "listLogicalViews" + ] + }, + "ListMaterializedViews": { + "methods": [ + "listMaterializedViews" + ] + }, + "PartialUpdateCluster": { + "methods": [ + "partialUpdateCluster" + ] + }, + "PartialUpdateInstance": { + "methods": [ + "partialUpdateInstance" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "UpdateAppProfile": { + "methods": [ + "updateAppProfile" + ] + }, + "UpdateCluster": { + "methods": [ + "updateCluster" + ] + }, + "UpdateInstance": { + "methods": [ + "updateInstance" + ] + }, + "UpdateLogicalView": { + "methods": [ + "updateLogicalView" + ] + }, + "UpdateMaterializedView": { + "methods": [ + "updateMaterializedView" + ] + } + } + } + } + }, + "BigtableTableAdmin": { + "clients": { + "grpc": { + "libraryClient": "BigtableTableAdminGapicClient", + "rpcs": { + "CheckConsistency": { + "methods": [ + "checkConsistency" + ] + }, + "CopyBackup": { + "methods": [ + "copyBackup" + ] + }, + "CreateAuthorizedView": { + "methods": [ + "createAuthorizedView" + ] + }, + "CreateBackup": { + "methods": [ + "createBackup" + ] + }, + "CreateSchemaBundle": { + "methods": [ + "createSchemaBundle" + ] + }, + "CreateTable": { + "methods": [ + "createTable" + ] + }, + "CreateTableFromSnapshot": { + "methods": [ + "createTableFromSnapshot" + ] + }, + "DeleteAuthorizedView": { + "methods": [ + "deleteAuthorizedView" + ] + }, + "DeleteBackup": { + "methods": [ + "deleteBackup" + ] + }, + "DeleteSchemaBundle": { + "methods": [ + "deleteSchemaBundle" + ] + }, + "DeleteSnapshot": { + "methods": [ + "deleteSnapshot" + ] + }, + "DeleteTable": { + "methods": [ + "deleteTable" + ] + }, + "DropRowRange": { + "methods": [ + "dropRowRange" + ] + }, + "GenerateConsistencyToken": { + "methods": [ + "generateConsistencyToken" + ] + }, + "GetAuthorizedView": { + "methods": [ + "getAuthorizedView" + ] + }, + "GetBackup": { + "methods": [ + "getBackup" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "GetSchemaBundle": { + "methods": [ + "getSchemaBundle" + ] + }, + "GetSnapshot": { + "methods": [ + "getSnapshot" + ] + }, + "GetTable": { + "methods": [ + "getTable" + ] + }, + "ListAuthorizedViews": { + "methods": [ + "listAuthorizedViews" + ] + }, + "ListBackups": { + "methods": [ + "listBackups" + ] + }, + "ListSchemaBundles": { + "methods": [ + "listSchemaBundles" + ] + }, + "ListSnapshots": { + "methods": [ + "listSnapshots" + ] + }, + "ListTables": { + "methods": [ + "listTables" + ] + }, + "ModifyColumnFamilies": { + "methods": [ + "modifyColumnFamilies" + ] + }, + "RestoreTable": { + "methods": [ + "restoreTable" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "SnapshotTable": { + "methods": [ + "snapshotTable" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "UndeleteTable": { + "methods": [ + "undeleteTable" + ] + }, + "UpdateAuthorizedView": { + "methods": [ + "updateAuthorizedView" + ] + }, + "UpdateBackup": { + "methods": [ + "updateBackup" + ] + }, + "UpdateSchemaBundle": { + "methods": [ + "updateSchemaBundle" + ] + }, + "UpdateTable": { + "methods": [ + "updateTable" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_instance_admin_client_config.json b/owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_instance_admin_client_config.json new file mode 100644 index 000000000000..47e1b111a246 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_instance_admin_client_config.json @@ -0,0 +1,181 @@ +{ + "interfaces": { + "google.bigtable.admin.v2.BigtableInstanceAdmin": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "CreateAppProfile": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CreateCluster": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CreateInstance": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CreateLogicalView": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CreateMaterializedView": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteAppProfile": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteCluster": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteInstance": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteLogicalView": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteMaterializedView": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetAppProfile": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "GetCluster": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "GetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetInstance": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "GetLogicalView": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "GetMaterializedView": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "ListAppProfiles": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "ListClusters": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "ListHotTablets": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "ListInstances": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "ListLogicalViews": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "ListMaterializedViews": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "PartialUpdateCluster": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "PartialUpdateInstance": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "SetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "TestIamPermissions": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateAppProfile": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateCluster": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateInstance": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateLogicalView": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateMaterializedView": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_instance_admin_descriptor_config.php b/owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_instance_admin_descriptor_config.php new file mode 100644 index 000000000000..a0a46eb0dc78 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_instance_admin_descriptor_config.php @@ -0,0 +1,517 @@ + [ + 'google.bigtable.admin.v2.BigtableInstanceAdmin' => [ + 'CreateCluster' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\Cluster', + 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\CreateClusterMetadata', + 'initialPollDelayMillis' => '5000', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '60000', + 'totalPollTimeoutMillis' => '21600000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateInstance' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\Instance', + 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\CreateInstanceMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '600000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateLogicalView' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\LogicalView', + 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\CreateLogicalViewMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateMaterializedView' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\MaterializedView', + 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\CreateMaterializedViewMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'PartialUpdateCluster' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\Cluster', + 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\PartialUpdateClusterMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '600000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'cluster.name', + 'fieldAccessors' => [ + 'getCluster', + 'getName', + ], + ], + ], + ], + 'PartialUpdateInstance' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\Instance', + 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\UpdateInstanceMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '600000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'instance.name', + 'fieldAccessors' => [ + 'getInstance', + 'getName', + ], + ], + ], + ], + 'UpdateAppProfile' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\AppProfile', + 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\UpdateAppProfileMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '600000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'app_profile.name', + 'fieldAccessors' => [ + 'getAppProfile', + 'getName', + ], + ], + ], + ], + 'UpdateCluster' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\Cluster', + 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\UpdateClusterMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '600000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'UpdateLogicalView' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\LogicalView', + 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\UpdateLogicalViewMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'logical_view.name', + 'fieldAccessors' => [ + 'getLogicalView', + 'getName', + ], + ], + ], + ], + 'UpdateMaterializedView' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\MaterializedView', + 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\UpdateMaterializedViewMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'materialized_view.name', + 'fieldAccessors' => [ + 'getMaterializedView', + 'getName', + ], + ], + ], + ], + 'CreateAppProfile' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\AppProfile', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteAppProfile' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteCluster' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteInstance' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteLogicalView' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteMaterializedView' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetAppProfile' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\AppProfile', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetCluster' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\Cluster', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + ], + 'GetInstance' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\Instance', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetLogicalView' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\LogicalView', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetMaterializedView' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\MaterializedView', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListAppProfiles' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAppProfiles', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\ListAppProfilesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListClusters' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\ListClustersResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListHotTablets' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getHotTablets', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\ListHotTabletsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListInstances' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\ListInstancesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListLogicalViews' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getLogicalViews', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\ListLogicalViewsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListMaterializedViews' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getMaterializedViews', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\ListMaterializedViewsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'SetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + ], + 'TestIamPermissions' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + ], + 'UpdateInstance' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\Instance', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'appProfile' => 'projects/{project}/instances/{instance}/appProfiles/{app_profile}', + 'cluster' => 'projects/{project}/instances/{instance}/clusters/{cluster}', + 'cryptoKey' => 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}', + 'instance' => 'projects/{project}/instances/{instance}', + 'location' => 'projects/{project}/locations/{location}', + 'logicalView' => 'projects/{project}/instances/{instance}/logicalViews/{logical_view}', + 'materializedView' => 'projects/{project}/instances/{instance}/materializedViews/{materialized_view}', + 'project' => 'projects/{project}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_instance_admin_rest_client_config.php b/owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_instance_admin_rest_client_config.php new file mode 100644 index 000000000000..2527f6ccfbc2 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_instance_admin_rest_client_config.php @@ -0,0 +1,496 @@ + [ + 'google.bigtable.admin.v2.BigtableInstanceAdmin' => [ + 'CreateAppProfile' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=projects/*/instances/*}/appProfiles', + 'body' => 'app_profile', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'app_profile_id', + ], + ], + 'CreateCluster' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=projects/*/instances/*}/clusters', + 'body' => 'cluster', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'cluster_id', + ], + ], + 'CreateInstance' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=projects/*}/instances', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateLogicalView' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=projects/*/instances/*}/logicalViews', + 'body' => 'logical_view', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'logical_view_id', + ], + ], + 'CreateMaterializedView' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=projects/*/instances/*}/materializedViews', + 'body' => 'materialized_view', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'materialized_view_id', + ], + ], + 'DeleteAppProfile' => [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=projects/*/instances/*/appProfiles/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + 'queryParams' => [ + 'ignore_warnings', + ], + ], + 'DeleteCluster' => [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=projects/*/instances/*/clusters/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteInstance' => [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=projects/*/instances/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteLogicalView' => [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=projects/*/instances/*/logicalViews/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteMaterializedView' => [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=projects/*/instances/*/materializedViews/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetAppProfile' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=projects/*/instances/*/appProfiles/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetCluster' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=projects/*/instances/*/clusters/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetIamPolicy' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{resource=projects/*/instances/*}:getIamPolicy', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{resource=projects/*/instances/*/materializedViews/*}:getIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{resource=projects/*/instances/*/logicalViews/*}:getIamPolicy', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'GetInstance' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=projects/*/instances/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetLogicalView' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=projects/*/instances/*/logicalViews/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetMaterializedView' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=projects/*/instances/*/materializedViews/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListAppProfiles' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=projects/*/instances/*}/appProfiles', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListClusters' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=projects/*/instances/*}/clusters', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListHotTablets' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=projects/*/instances/*/clusters/*}/hotTablets', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListInstances' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=projects/*}/instances', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListLogicalViews' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=projects/*/instances/*}/logicalViews', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListMaterializedViews' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=projects/*/instances/*}/materializedViews', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'PartialUpdateCluster' => [ + 'method' => 'patch', + 'uriTemplate' => '/v2/{cluster.name=projects/*/instances/*/clusters/*}', + 'body' => 'cluster', + 'placeholders' => [ + 'cluster.name' => [ + 'getters' => [ + 'getCluster', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'PartialUpdateInstance' => [ + 'method' => 'patch', + 'uriTemplate' => '/v2/{instance.name=projects/*/instances/*}', + 'body' => 'instance', + 'placeholders' => [ + 'instance.name' => [ + 'getters' => [ + 'getInstance', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'SetIamPolicy' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{resource=projects/*/instances/*}:setIamPolicy', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{resource=projects/*/instances/*/materializedViews/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{resource=projects/*/instances/*/logicalViews/*}:setIamPolicy', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'TestIamPermissions' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{resource=projects/*/instances/*}:testIamPermissions', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{resource=projects/*/instances/*/materializedViews/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{resource=projects/*/instances/*/logicalViews/*}:testIamPermissions', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'UpdateAppProfile' => [ + 'method' => 'patch', + 'uriTemplate' => '/v2/{app_profile.name=projects/*/instances/*/appProfiles/*}', + 'body' => 'app_profile', + 'placeholders' => [ + 'app_profile.name' => [ + 'getters' => [ + 'getAppProfile', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateCluster' => [ + 'method' => 'put', + 'uriTemplate' => '/v2/{name=projects/*/instances/*/clusters/*}', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'UpdateInstance' => [ + 'method' => 'put', + 'uriTemplate' => '/v2/{name=projects/*/instances/*}', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'UpdateLogicalView' => [ + 'method' => 'patch', + 'uriTemplate' => '/v2/{logical_view.name=projects/*/instances/*/logicalViews/*}', + 'body' => 'logical_view', + 'placeholders' => [ + 'logical_view.name' => [ + 'getters' => [ + 'getLogicalView', + 'getName', + ], + ], + ], + ], + 'UpdateMaterializedView' => [ + 'method' => 'patch', + 'uriTemplate' => '/v2/{materialized_view.name=projects/*/instances/*/materializedViews/*}', + 'body' => 'materialized_view', + 'placeholders' => [ + 'materialized_view.name' => [ + 'getters' => [ + 'getMaterializedView', + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{name=operations/**}:cancel', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=operations/**}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=operations/**}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=operations/projects/**}/operations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_table_admin_client_config.json b/owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_table_admin_client_config.json new file mode 100644 index 000000000000..e92f3cdcbf41 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_table_admin_client_config.json @@ -0,0 +1,201 @@ +{ + "interfaces": { + "google.bigtable.admin.v2.BigtableTableAdmin": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "CheckConsistency": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CopyBackup": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CreateAuthorizedView": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CreateBackup": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CreateSchemaBundle": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CreateTable": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CreateTableFromSnapshot": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteAuthorizedView": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteBackup": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteSchemaBundle": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteSnapshot": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteTable": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DropRowRange": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GenerateConsistencyToken": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetAuthorizedView": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "GetBackup": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "GetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetSchemaBundle": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "GetSnapshot": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "GetTable": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "ListAuthorizedViews": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "ListBackups": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "ListSchemaBundles": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "ListSnapshots": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "ListTables": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "ModifyColumnFamilies": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "RestoreTable": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "SetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "SnapshotTable": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "TestIamPermissions": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UndeleteTable": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateAuthorizedView": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateBackup": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateSchemaBundle": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateTable": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_table_admin_descriptor_config.php b/owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_table_admin_descriptor_config.php new file mode 100644 index 000000000000..0a9a06511f7d --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_table_admin_descriptor_config.php @@ -0,0 +1,580 @@ + [ + 'google.bigtable.admin.v2.BigtableTableAdmin' => [ + 'CopyBackup' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\Backup', + 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\CopyBackupMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateAuthorizedView' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\AuthorizedView', + 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\CreateAuthorizedViewMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateBackup' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\Backup', + 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\CreateBackupMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '600000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateSchemaBundle' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\SchemaBundle', + 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\CreateSchemaBundleMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateTableFromSnapshot' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\Table', + 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\CreateTableFromSnapshotMetadata', + 'initialPollDelayMillis' => '5000', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '60000', + 'totalPollTimeoutMillis' => '3600000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'RestoreTable' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\Table', + 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\RestoreTableMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '600000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'SnapshotTable' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\Snapshot', + 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\SnapshotTableMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '600000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'UndeleteTable' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\Table', + 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\UndeleteTableMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'UpdateAuthorizedView' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\AuthorizedView', + 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\UpdateAuthorizedViewMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'authorized_view.name', + 'fieldAccessors' => [ + 'getAuthorizedView', + 'getName', + ], + ], + ], + ], + 'UpdateSchemaBundle' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\SchemaBundle', + 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\UpdateSchemaBundleMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'schema_bundle.name', + 'fieldAccessors' => [ + 'getSchemaBundle', + 'getName', + ], + ], + ], + ], + 'UpdateTable' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\Table', + 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\UpdateTableMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'table.name', + 'fieldAccessors' => [ + 'getTable', + 'getName', + ], + ], + ], + ], + 'CheckConsistency' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\CheckConsistencyResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'CreateTable' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\Table', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteAuthorizedView' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteBackup' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteSchemaBundle' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteSnapshot' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteTable' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DropRowRange' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GenerateConsistencyToken' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\GenerateConsistencyTokenResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetAuthorizedView' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\AuthorizedView', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetBackup' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\Backup', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + ], + 'GetSchemaBundle' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\SchemaBundle', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetSnapshot' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\Snapshot', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetTable' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\Table', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListAuthorizedViews' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAuthorizedViews', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\ListAuthorizedViewsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListBackups' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getBackups', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\ListBackupsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListSchemaBundles' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getSchemaBundles', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\ListSchemaBundlesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListSnapshots' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getSnapshots', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\ListSnapshotsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListTables' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getTables', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\ListTablesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ModifyColumnFamilies' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\Table', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'SetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + ], + 'TestIamPermissions' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + ], + 'UpdateBackup' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\Backup', + 'headerParams' => [ + [ + 'keyName' => 'backup.name', + 'fieldAccessors' => [ + 'getBackup', + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'authorizedView' => 'projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}', + 'backup' => 'projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}', + 'cluster' => 'projects/{project}/instances/{instance}/clusters/{cluster}', + 'cryptoKeyVersion' => 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}', + 'instance' => 'projects/{project}/instances/{instance}', + 'location' => 'projects/{project}/locations/{location}', + 'schemaBundle' => 'projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}', + 'snapshot' => 'projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}', + 'table' => 'projects/{project}/instances/{instance}/tables/{table}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_table_admin_rest_client_config.php b/owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_table_admin_rest_client_config.php new file mode 100644 index 000000000000..7a822ae06cd6 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_table_admin_rest_client_config.php @@ -0,0 +1,550 @@ + [ + 'google.bigtable.admin.v2.BigtableTableAdmin' => [ + 'CheckConsistency' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{name=projects/*/instances/*/tables/*}:checkConsistency', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'CopyBackup' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=projects/*/instances/*/clusters/*}/backups:copy', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateAuthorizedView' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=projects/*/instances/*/tables/*}/authorizedViews', + 'body' => 'authorized_view', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'authorized_view_id', + ], + ], + 'CreateBackup' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=projects/*/instances/*/clusters/*}/backups', + 'body' => 'backup', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'backup_id', + ], + ], + 'CreateSchemaBundle' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=projects/*/instances/*/tables/*}/schemaBundles', + 'body' => 'schema_bundle', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'schema_bundle_id', + ], + ], + 'CreateTable' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=projects/*/instances/*}/tables', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateTableFromSnapshot' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=projects/*/instances/*}/tables:createFromSnapshot', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteAuthorizedView' => [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=projects/*/instances/*/tables/*/authorizedViews/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteBackup' => [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=projects/*/instances/*/clusters/*/backups/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteSchemaBundle' => [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=projects/*/instances/*/tables/*/schemaBundles/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteSnapshot' => [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=projects/*/instances/*/clusters/*/snapshots/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteTable' => [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=projects/*/instances/*/tables/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DropRowRange' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{name=projects/*/instances/*/tables/*}:dropRowRange', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GenerateConsistencyToken' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{name=projects/*/instances/*/tables/*}:generateConsistencyToken', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetAuthorizedView' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=projects/*/instances/*/tables/*/authorizedViews/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetBackup' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=projects/*/instances/*/clusters/*/backups/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetIamPolicy' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{resource=projects/*/instances/*/tables/*}:getIamPolicy', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{resource=projects/*/instances/*/clusters/*/backups/*}:getIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{resource=projects/*/instances/*/tables/*/authorizedViews/*}:getIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{resource=projects/*/instances/*/tables/*/schemaBundles/*}:getIamPolicy', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'GetSchemaBundle' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=projects/*/instances/*/tables/*/schemaBundles/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetSnapshot' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=projects/*/instances/*/clusters/*/snapshots/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetTable' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=projects/*/instances/*/tables/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListAuthorizedViews' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=projects/*/instances/*/tables/*}/authorizedViews', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListBackups' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=projects/*/instances/*/clusters/*}/backups', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListSchemaBundles' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=projects/*/instances/*/tables/*}/schemaBundles', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListSnapshots' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=projects/*/instances/*/clusters/*}/snapshots', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListTables' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=projects/*/instances/*}/tables', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ModifyColumnFamilies' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{name=projects/*/instances/*/tables/*}:modifyColumnFamilies', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'RestoreTable' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=projects/*/instances/*}/tables:restore', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'SetIamPolicy' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{resource=projects/*/instances/*/tables/*}:setIamPolicy', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{resource=projects/*/instances/*/clusters/*/backups/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{resource=projects/*/instances/*/tables/*/authorizedViews/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{resource=projects/*/instances/*/tables/*/schemaBundles/*}:setIamPolicy', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'SnapshotTable' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{name=projects/*/instances/*/tables/*}:snapshot', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'TestIamPermissions' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{resource=projects/*/instances/*/tables/*}:testIamPermissions', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{resource=projects/*/instances/*/clusters/*/backups/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{resource=projects/*/instances/*/tables/*/authorizedViews/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{resource=projects/*/instances/*/tables/*/schemaBundles/*}:testIamPermissions', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'UndeleteTable' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{name=projects/*/instances/*/tables/*}:undelete', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'UpdateAuthorizedView' => [ + 'method' => 'patch', + 'uriTemplate' => '/v2/{authorized_view.name=projects/*/instances/*/tables/*/authorizedViews/*}', + 'body' => 'authorized_view', + 'placeholders' => [ + 'authorized_view.name' => [ + 'getters' => [ + 'getAuthorizedView', + 'getName', + ], + ], + ], + ], + 'UpdateBackup' => [ + 'method' => 'patch', + 'uriTemplate' => '/v2/{backup.name=projects/*/instances/*/clusters/*/backups/*}', + 'body' => 'backup', + 'placeholders' => [ + 'backup.name' => [ + 'getters' => [ + 'getBackup', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateSchemaBundle' => [ + 'method' => 'patch', + 'uriTemplate' => '/v2/{schema_bundle.name=projects/*/instances/*/tables/*/schemaBundles/*}', + 'body' => 'schema_bundle', + 'placeholders' => [ + 'schema_bundle.name' => [ + 'getters' => [ + 'getSchemaBundle', + 'getName', + ], + ], + ], + ], + 'UpdateTable' => [ + 'method' => 'patch', + 'uriTemplate' => '/v2/{table.name=projects/*/instances/*/tables/*}', + 'body' => 'table', + 'placeholders' => [ + 'table.name' => [ + 'getters' => [ + 'getTable', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{name=operations/**}:cancel', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=operations/**}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=operations/**}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=operations/projects/**}/operations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Bigtable/v2/Admin/tests/Unit/V2/Client/BigtableInstanceAdminClientTest.php b/owl-bot-staging/Bigtable/v2/Admin/tests/Unit/V2/Client/BigtableInstanceAdminClientTest.php new file mode 100644 index 000000000000..3ed1fb08e4f2 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/tests/Unit/V2/Client/BigtableInstanceAdminClientTest.php @@ -0,0 +1,3054 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return BigtableInstanceAdminClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new BigtableInstanceAdminClient($options); + } + + /** @test */ + public function createAppProfileTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $etag = 'etag3123477'; + $description = 'description-1724546052'; + $expectedResponse = new AppProfile(); + $expectedResponse->setName($name); + $expectedResponse->setEtag($etag); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); + $appProfileId = 'appProfileId1262094415'; + $appProfile = new AppProfile(); + $request = (new CreateAppProfileRequest()) + ->setParent($formattedParent) + ->setAppProfileId($appProfileId) + ->setAppProfile($appProfile); + $response = $gapicClient->createAppProfile($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/CreateAppProfile', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getAppProfileId(); + $this->assertProtobufEquals($appProfileId, $actualValue); + $actualValue = $actualRequestObject->getAppProfile(); + $this->assertProtobufEquals($appProfile, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createAppProfileExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); + $appProfileId = 'appProfileId1262094415'; + $appProfile = new AppProfile(); + $request = (new CreateAppProfileRequest()) + ->setParent($formattedParent) + ->setAppProfileId($appProfileId) + ->setAppProfile($appProfile); + try { + $gapicClient->createAppProfile($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 createClusterTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createClusterTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $location = 'location1901043637'; + $serveNodes = 1288838783; + $expectedResponse = new Cluster(); + $expectedResponse->setName($name); + $expectedResponse->setLocation($location); + $expectedResponse->setServeNodes($serveNodes); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createClusterTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); + $clusterId = 'clusterId240280960'; + $cluster = new Cluster(); + $clusterName = 'clusterName-1141738587'; + $cluster->setName($clusterName); + $clusterServeNodes = 1434304124; + $cluster->setServeNodes($clusterServeNodes); + $request = (new CreateClusterRequest()) + ->setParent($formattedParent) + ->setClusterId($clusterId) + ->setCluster($cluster); + $response = $gapicClient->createCluster($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/CreateCluster', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getClusterId(); + $this->assertProtobufEquals($clusterId, $actualValue); + $actualValue = $actualApiRequestObject->getCluster(); + $this->assertProtobufEquals($cluster, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createClusterTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createClusterExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createClusterTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $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); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); + $clusterId = 'clusterId240280960'; + $cluster = new Cluster(); + $clusterName = 'clusterName-1141738587'; + $cluster->setName($clusterName); + $clusterServeNodes = 1434304124; + $cluster->setServeNodes($clusterServeNodes); + $request = (new CreateClusterRequest()) + ->setParent($formattedParent) + ->setClusterId($clusterId) + ->setCluster($cluster); + $response = $gapicClient->createCluster($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createClusterTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() 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 stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createInstanceTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createInstanceTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $satisfiesPzs = false; + $satisfiesPzi = false; + $expectedResponse = new Instance(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setSatisfiesPzs($satisfiesPzs); + $expectedResponse->setSatisfiesPzi($satisfiesPzi); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createInstanceTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->projectName('[PROJECT]'); + $instanceId = 'instanceId-2101995259'; + $instance = new Instance(); + $instanceName = 'instanceName-737857344'; + $instance->setName($instanceName); + $instanceDisplayName = 'instanceDisplayName1824500376'; + $instance->setDisplayName($instanceDisplayName); + $instanceType = Type::TYPE_UNSPECIFIED; + $instance->setType($instanceType); + $labelsValue = 'labelsValue950036658'; + $instanceLabels = [ + 'labelsKey' => $labelsValue, + ]; + $instance->setLabels($instanceLabels); + $clustersValue = new Cluster(); + $valueName = 'valueName-765894756'; + $clustersValue->setName($valueName); + $valueServeNodes = 370436813; + $clustersValue->setServeNodes($valueServeNodes); + $clusters = [ + 'clustersKey' => $clustersValue, + ]; + $request = (new CreateInstanceRequest()) + ->setParent($formattedParent) + ->setInstanceId($instanceId) + ->setInstance($instance) + ->setClusters($clusters); + $response = $gapicClient->createInstance($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/CreateInstance', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getInstanceId(); + $this->assertProtobufEquals($instanceId, $actualValue); + $actualValue = $actualApiRequestObject->getInstance(); + $this->assertProtobufEquals($instance, $actualValue); + $actualValue = $actualApiRequestObject->getClusters(); + $this->assertProtobufEquals($clusters, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createInstanceTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createInstanceExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createInstanceTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $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); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->projectName('[PROJECT]'); + $instanceId = 'instanceId-2101995259'; + $instance = new Instance(); + $instanceName = 'instanceName-737857344'; + $instance->setName($instanceName); + $instanceDisplayName = 'instanceDisplayName1824500376'; + $instance->setDisplayName($instanceDisplayName); + $instanceType = Type::TYPE_UNSPECIFIED; + $instance->setType($instanceType); + $labelsValue = 'labelsValue950036658'; + $instanceLabels = [ + 'labelsKey' => $labelsValue, + ]; + $instance->setLabels($instanceLabels); + $clustersValue = new Cluster(); + $valueName = 'valueName-765894756'; + $clustersValue->setName($valueName); + $valueServeNodes = 370436813; + $clustersValue->setServeNodes($valueServeNodes); + $clusters = [ + 'clustersKey' => $clustersValue, + ]; + $request = (new CreateInstanceRequest()) + ->setParent($formattedParent) + ->setInstanceId($instanceId) + ->setInstance($instance) + ->setClusters($clusters); + $response = $gapicClient->createInstance($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createInstanceTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() 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 stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createLogicalViewTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createLogicalViewTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $query = 'query107944136'; + $etag = 'etag3123477'; + $deletionProtection = true; + $expectedResponse = new LogicalView(); + $expectedResponse->setName($name); + $expectedResponse->setQuery($query); + $expectedResponse->setEtag($etag); + $expectedResponse->setDeletionProtection($deletionProtection); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createLogicalViewTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); + $logicalViewId = 'logicalViewId1326850751'; + $logicalView = new LogicalView(); + $logicalViewQuery = 'logicalViewQuery1609026330'; + $logicalView->setQuery($logicalViewQuery); + $request = (new CreateLogicalViewRequest()) + ->setParent($formattedParent) + ->setLogicalViewId($logicalViewId) + ->setLogicalView($logicalView); + $response = $gapicClient->createLogicalView($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/CreateLogicalView', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getLogicalViewId(); + $this->assertProtobufEquals($logicalViewId, $actualValue); + $actualValue = $actualApiRequestObject->getLogicalView(); + $this->assertProtobufEquals($logicalView, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createLogicalViewTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createLogicalViewExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createLogicalViewTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $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); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); + $logicalViewId = 'logicalViewId1326850751'; + $logicalView = new LogicalView(); + $logicalViewQuery = 'logicalViewQuery1609026330'; + $logicalView->setQuery($logicalViewQuery); + $request = (new CreateLogicalViewRequest()) + ->setParent($formattedParent) + ->setLogicalViewId($logicalViewId) + ->setLogicalView($logicalView); + $response = $gapicClient->createLogicalView($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createLogicalViewTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() 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 stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createMaterializedViewTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createMaterializedViewTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $query = 'query107944136'; + $etag = 'etag3123477'; + $deletionProtection = true; + $expectedResponse = new MaterializedView(); + $expectedResponse->setName($name); + $expectedResponse->setQuery($query); + $expectedResponse->setEtag($etag); + $expectedResponse->setDeletionProtection($deletionProtection); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createMaterializedViewTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); + $materializedViewId = 'materializedViewId84640749'; + $materializedView = new MaterializedView(); + $materializedViewQuery = 'materializedViewQuery1755221932'; + $materializedView->setQuery($materializedViewQuery); + $request = (new CreateMaterializedViewRequest()) + ->setParent($formattedParent) + ->setMaterializedViewId($materializedViewId) + ->setMaterializedView($materializedView); + $response = $gapicClient->createMaterializedView($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/CreateMaterializedView', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getMaterializedViewId(); + $this->assertProtobufEquals($materializedViewId, $actualValue); + $actualValue = $actualApiRequestObject->getMaterializedView(); + $this->assertProtobufEquals($materializedView, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createMaterializedViewTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createMaterializedViewExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createMaterializedViewTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $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); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); + $materializedViewId = 'materializedViewId84640749'; + $materializedView = new MaterializedView(); + $materializedViewQuery = 'materializedViewQuery1755221932'; + $materializedView->setQuery($materializedViewQuery); + $request = (new CreateMaterializedViewRequest()) + ->setParent($formattedParent) + ->setMaterializedViewId($materializedViewId) + ->setMaterializedView($materializedView); + $response = $gapicClient->createMaterializedView($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createMaterializedViewTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() 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 stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function deleteAppProfileTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->appProfileName('[PROJECT]', '[INSTANCE]', '[APP_PROFILE]'); + $ignoreWarnings = true; + $request = (new DeleteAppProfileRequest()) + ->setName($formattedName) + ->setIgnoreWarnings($ignoreWarnings); + $gapicClient->deleteAppProfile($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/DeleteAppProfile', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getIgnoreWarnings(); + $this->assertProtobufEquals($ignoreWarnings, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteAppProfileExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->appProfileName('[PROJECT]', '[INSTANCE]', '[APP_PROFILE]'); + $ignoreWarnings = true; + $request = (new DeleteAppProfileRequest()) + ->setName($formattedName) + ->setIgnoreWarnings($ignoreWarnings); + try { + $gapicClient->deleteAppProfile($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 deleteClusterTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); + $request = (new DeleteClusterRequest()) + ->setName($formattedName); + $gapicClient->deleteCluster($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/DeleteCluster', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteClusterExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); + $request = (new DeleteClusterRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteCluster($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 deleteInstanceTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); + $request = (new DeleteInstanceRequest()) + ->setName($formattedName); + $gapicClient->deleteInstance($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/DeleteInstance', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteInstanceExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); + $request = (new DeleteInstanceRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteInstance($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 deleteLogicalViewTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->logicalViewName('[PROJECT]', '[INSTANCE]', '[LOGICAL_VIEW]'); + $request = (new DeleteLogicalViewRequest()) + ->setName($formattedName); + $gapicClient->deleteLogicalView($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/DeleteLogicalView', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteLogicalViewExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->logicalViewName('[PROJECT]', '[INSTANCE]', '[LOGICAL_VIEW]'); + $request = (new DeleteLogicalViewRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteLogicalView($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 deleteMaterializedViewTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->materializedViewName('[PROJECT]', '[INSTANCE]', '[MATERIALIZED_VIEW]'); + $request = (new DeleteMaterializedViewRequest()) + ->setName($formattedName); + $gapicClient->deleteMaterializedView($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/DeleteMaterializedView', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteMaterializedViewExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->materializedViewName('[PROJECT]', '[INSTANCE]', '[MATERIALIZED_VIEW]'); + $request = (new DeleteMaterializedViewRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteMaterializedView($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 getAppProfileTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $etag = 'etag3123477'; + $description = 'description-1724546052'; + $expectedResponse = new AppProfile(); + $expectedResponse->setName($name2); + $expectedResponse->setEtag($etag); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->appProfileName('[PROJECT]', '[INSTANCE]', '[APP_PROFILE]'); + $request = (new GetAppProfileRequest()) + ->setName($formattedName); + $response = $gapicClient->getAppProfile($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/GetAppProfile', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAppProfileExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->appProfileName('[PROJECT]', '[INSTANCE]', '[APP_PROFILE]'); + $request = (new GetAppProfileRequest()) + ->setName($formattedName); + try { + $gapicClient->getAppProfile($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 getClusterTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $location = 'location1901043637'; + $serveNodes = 1288838783; + $expectedResponse = new Cluster(); + $expectedResponse->setName($name2); + $expectedResponse->setLocation($location); + $expectedResponse->setServeNodes($serveNodes); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); + $request = (new GetClusterRequest()) + ->setName($formattedName); + $response = $gapicClient->getCluster($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/GetCluster', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getClusterExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); + $request = (new GetClusterRequest()) + ->setName($formattedName); + try { + $gapicClient->getCluster($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 getIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + $response = $gapicClient->getIamPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/GetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getIamPolicyExceptionTest() + { + $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 + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + try { + $gapicClient->getIamPolicy($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 getInstanceTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $satisfiesPzs = false; + $satisfiesPzi = false; + $expectedResponse = new Instance(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setSatisfiesPzs($satisfiesPzs); + $expectedResponse->setSatisfiesPzi($satisfiesPzi); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); + $request = (new GetInstanceRequest()) + ->setName($formattedName); + $response = $gapicClient->getInstance($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/GetInstance', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getInstanceExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); + $request = (new GetInstanceRequest()) + ->setName($formattedName); + try { + $gapicClient->getInstance($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 getLogicalViewTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $query = 'query107944136'; + $etag = 'etag3123477'; + $deletionProtection = true; + $expectedResponse = new LogicalView(); + $expectedResponse->setName($name2); + $expectedResponse->setQuery($query); + $expectedResponse->setEtag($etag); + $expectedResponse->setDeletionProtection($deletionProtection); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->logicalViewName('[PROJECT]', '[INSTANCE]', '[LOGICAL_VIEW]'); + $request = (new GetLogicalViewRequest()) + ->setName($formattedName); + $response = $gapicClient->getLogicalView($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/GetLogicalView', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getLogicalViewExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->logicalViewName('[PROJECT]', '[INSTANCE]', '[LOGICAL_VIEW]'); + $request = (new GetLogicalViewRequest()) + ->setName($formattedName); + try { + $gapicClient->getLogicalView($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 getMaterializedViewTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $query = 'query107944136'; + $etag = 'etag3123477'; + $deletionProtection = true; + $expectedResponse = new MaterializedView(); + $expectedResponse->setName($name2); + $expectedResponse->setQuery($query); + $expectedResponse->setEtag($etag); + $expectedResponse->setDeletionProtection($deletionProtection); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->materializedViewName('[PROJECT]', '[INSTANCE]', '[MATERIALIZED_VIEW]'); + $request = (new GetMaterializedViewRequest()) + ->setName($formattedName); + $response = $gapicClient->getMaterializedView($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/GetMaterializedView', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getMaterializedViewExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->materializedViewName('[PROJECT]', '[INSTANCE]', '[MATERIALIZED_VIEW]'); + $request = (new GetMaterializedViewRequest()) + ->setName($formattedName); + try { + $gapicClient->getMaterializedView($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 listAppProfilesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $appProfilesElement = new AppProfile(); + $appProfiles = [ + $appProfilesElement, + ]; + $expectedResponse = new ListAppProfilesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setAppProfiles($appProfiles); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); + $request = (new ListAppProfilesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listAppProfiles($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAppProfiles()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/ListAppProfiles', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAppProfilesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); + $request = (new ListAppProfilesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listAppProfiles($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 listClustersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = 'nextPageToken-1530815211'; + $expectedResponse = new ListClustersResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); + $request = (new ListClustersRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listClusters($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/ListClusters', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listClustersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); + $request = (new ListClustersRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listClusters($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 listHotTabletsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $hotTabletsElement = new HotTablet(); + $hotTablets = [ + $hotTabletsElement, + ]; + $expectedResponse = new ListHotTabletsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setHotTablets($hotTablets); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); + $request = (new ListHotTabletsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listHotTablets($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getHotTablets()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/ListHotTablets', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listHotTabletsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); + $request = (new ListHotTabletsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listHotTablets($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 listInstancesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = 'nextPageToken-1530815211'; + $expectedResponse = new ListInstancesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->projectName('[PROJECT]'); + $request = (new ListInstancesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listInstances($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/ListInstances', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listInstancesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->projectName('[PROJECT]'); + $request = (new ListInstancesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listInstances($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 listLogicalViewsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $logicalViewsElement = new LogicalView(); + $logicalViews = [ + $logicalViewsElement, + ]; + $expectedResponse = new ListLogicalViewsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setLogicalViews($logicalViews); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); + $request = (new ListLogicalViewsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listLogicalViews($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getLogicalViews()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/ListLogicalViews', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listLogicalViewsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); + $request = (new ListLogicalViewsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listLogicalViews($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 listMaterializedViewsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $materializedViewsElement = new MaterializedView(); + $materializedViews = [ + $materializedViewsElement, + ]; + $expectedResponse = new ListMaterializedViewsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setMaterializedViews($materializedViews); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); + $request = (new ListMaterializedViewsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listMaterializedViews($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getMaterializedViews()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/ListMaterializedViews', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listMaterializedViewsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); + $request = (new ListMaterializedViewsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listMaterializedViews($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 partialUpdateClusterTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/partialUpdateClusterTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $location = 'location1901043637'; + $serveNodes = 1288838783; + $expectedResponse = new Cluster(); + $expectedResponse->setName($name); + $expectedResponse->setLocation($location); + $expectedResponse->setServeNodes($serveNodes); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/partialUpdateClusterTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $cluster = new Cluster(); + $clusterName = 'clusterName-1141738587'; + $cluster->setName($clusterName); + $clusterServeNodes = 1434304124; + $cluster->setServeNodes($clusterServeNodes); + $updateMask = new FieldMask(); + $request = (new PartialUpdateClusterRequest()) + ->setCluster($cluster) + ->setUpdateMask($updateMask); + $response = $gapicClient->partialUpdateCluster($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/PartialUpdateCluster', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getCluster(); + $this->assertProtobufEquals($cluster, $actualValue); + $actualValue = $actualApiRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/partialUpdateClusterTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function partialUpdateClusterExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/partialUpdateClusterTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $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); + $operationsTransport->addResponse(null, $status); + // Mock request + $cluster = new Cluster(); + $clusterName = 'clusterName-1141738587'; + $cluster->setName($clusterName); + $clusterServeNodes = 1434304124; + $cluster->setServeNodes($clusterServeNodes); + $updateMask = new FieldMask(); + $request = (new PartialUpdateClusterRequest()) + ->setCluster($cluster) + ->setUpdateMask($updateMask); + $response = $gapicClient->partialUpdateCluster($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/partialUpdateClusterTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() 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 stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function partialUpdateInstanceTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/partialUpdateInstanceTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $satisfiesPzs = false; + $satisfiesPzi = false; + $expectedResponse = new Instance(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setSatisfiesPzs($satisfiesPzs); + $expectedResponse->setSatisfiesPzi($satisfiesPzi); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/partialUpdateInstanceTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $instance = new Instance(); + $instanceName = 'instanceName-737857344'; + $instance->setName($instanceName); + $instanceDisplayName = 'instanceDisplayName1824500376'; + $instance->setDisplayName($instanceDisplayName); + $instanceType = Type::TYPE_UNSPECIFIED; + $instance->setType($instanceType); + $labelsValue = 'labelsValue950036658'; + $instanceLabels = [ + 'labelsKey' => $labelsValue, + ]; + $instance->setLabels($instanceLabels); + $updateMask = new FieldMask(); + $request = (new PartialUpdateInstanceRequest()) + ->setInstance($instance) + ->setUpdateMask($updateMask); + $response = $gapicClient->partialUpdateInstance($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/PartialUpdateInstance', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getInstance(); + $this->assertProtobufEquals($instance, $actualValue); + $actualValue = $actualApiRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/partialUpdateInstanceTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function partialUpdateInstanceExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/partialUpdateInstanceTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $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); + $operationsTransport->addResponse(null, $status); + // Mock request + $instance = new Instance(); + $instanceName = 'instanceName-737857344'; + $instance->setName($instanceName); + $instanceDisplayName = 'instanceDisplayName1824500376'; + $instance->setDisplayName($instanceDisplayName); + $instanceType = Type::TYPE_UNSPECIFIED; + $instance->setType($instanceType); + $labelsValue = 'labelsValue950036658'; + $instanceLabels = [ + 'labelsKey' => $labelsValue, + ]; + $instance->setLabels($instanceLabels); + $updateMask = new FieldMask(); + $request = (new PartialUpdateInstanceRequest()) + ->setInstance($instance) + ->setUpdateMask($updateMask); + $response = $gapicClient->partialUpdateInstance($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/partialUpdateInstanceTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() 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 stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function setIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + $response = $gapicClient->setIamPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/SetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPolicy(); + $this->assertProtobufEquals($policy, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setIamPolicyExceptionTest() + { + $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 + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + try { + $gapicClient->setIamPolicy($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 testIamPermissionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new TestIamPermissionsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest()) + ->setResource($resource) + ->setPermissions($permissions); + $response = $gapicClient->testIamPermissions($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/TestIamPermissions', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPermissions(); + $this->assertProtobufEquals($permissions, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function testIamPermissionsExceptionTest() + { + $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 + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest()) + ->setResource($resource) + ->setPermissions($permissions); + try { + $gapicClient->testIamPermissions($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 updateAppProfileTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/updateAppProfileTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $etag = 'etag3123477'; + $description = 'description-1724546052'; + $expectedResponse = new AppProfile(); + $expectedResponse->setName($name); + $expectedResponse->setEtag($etag); + $expectedResponse->setDescription($description); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateAppProfileTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $appProfile = new AppProfile(); + $updateMask = new FieldMask(); + $request = (new UpdateAppProfileRequest()) + ->setAppProfile($appProfile) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateAppProfile($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/UpdateAppProfile', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getAppProfile(); + $this->assertProtobufEquals($appProfile, $actualValue); + $actualValue = $actualApiRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateAppProfileTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function updateAppProfileExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/updateAppProfileTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $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); + $operationsTransport->addResponse(null, $status); + // Mock request + $appProfile = new AppProfile(); + $updateMask = new FieldMask(); + $request = (new UpdateAppProfileRequest()) + ->setAppProfile($appProfile) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateAppProfile($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateAppProfileTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() 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 stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function updateClusterTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/updateClusterTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name2 = 'name2-1052831874'; + $location2 = 'location21541837352'; + $serveNodes2 = 1623486220; + $expectedResponse = new Cluster(); + $expectedResponse->setName($name2); + $expectedResponse->setLocation($location2); + $expectedResponse->setServeNodes($serveNodes2); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateClusterTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $name = 'name3373707'; + $serveNodes = 1288838783; + $request = (new Cluster()) + ->setName($name) + ->setServeNodes($serveNodes); + $response = $gapicClient->updateCluster($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/UpdateCluster', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $actualValue = $actualApiRequestObject->getServeNodes(); + $this->assertProtobufEquals($serveNodes, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateClusterTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function updateClusterExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/updateClusterTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $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); + $operationsTransport->addResponse(null, $status); + // Mock request + $name = 'name3373707'; + $serveNodes = 1288838783; + $request = (new Cluster()) + ->setName($name) + ->setServeNodes($serveNodes); + $response = $gapicClient->updateCluster($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateClusterTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() 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 stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function updateInstanceTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName2 = 'displayName21615000987'; + $satisfiesPzs2 = true; + $satisfiesPzi2 = true; + $expectedResponse = new Instance(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName2); + $expectedResponse->setSatisfiesPzs($satisfiesPzs2); + $expectedResponse->setSatisfiesPzi($satisfiesPzi2); + $transport->addResponse($expectedResponse); + // Mock request + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $type = Type::TYPE_UNSPECIFIED; + $labelsValue = 'labelsValue950036658'; + $labels = [ + 'labelsKey' => $labelsValue, + ]; + $request = (new Instance()) + ->setName($name) + ->setDisplayName($displayName) + ->setType($type) + ->setLabels($labels); + $response = $gapicClient->updateInstance($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/UpdateInstance', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $actualValue = $actualRequestObject->getDisplayName(); + $this->assertProtobufEquals($displayName, $actualValue); + $actualValue = $actualRequestObject->getType(); + $this->assertProtobufEquals($type, $actualValue); + $actualValue = $actualRequestObject->getLabels(); + $this->assertProtobufEquals($labels, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateInstanceExceptionTest() + { + $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 + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $type = Type::TYPE_UNSPECIFIED; + $labelsValue = 'labelsValue950036658'; + $labels = [ + 'labelsKey' => $labelsValue, + ]; + $request = (new Instance()) + ->setName($name) + ->setDisplayName($displayName) + ->setType($type) + ->setLabels($labels); + try { + $gapicClient->updateInstance($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 updateLogicalViewTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/updateLogicalViewTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $query = 'query107944136'; + $etag = 'etag3123477'; + $deletionProtection = true; + $expectedResponse = new LogicalView(); + $expectedResponse->setName($name); + $expectedResponse->setQuery($query); + $expectedResponse->setEtag($etag); + $expectedResponse->setDeletionProtection($deletionProtection); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateLogicalViewTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $logicalView = new LogicalView(); + $logicalViewQuery = 'logicalViewQuery1609026330'; + $logicalView->setQuery($logicalViewQuery); + $request = (new UpdateLogicalViewRequest()) + ->setLogicalView($logicalView); + $response = $gapicClient->updateLogicalView($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/UpdateLogicalView', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getLogicalView(); + $this->assertProtobufEquals($logicalView, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateLogicalViewTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function updateLogicalViewExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/updateLogicalViewTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $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); + $operationsTransport->addResponse(null, $status); + // Mock request + $logicalView = new LogicalView(); + $logicalViewQuery = 'logicalViewQuery1609026330'; + $logicalView->setQuery($logicalViewQuery); + $request = (new UpdateLogicalViewRequest()) + ->setLogicalView($logicalView); + $response = $gapicClient->updateLogicalView($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateLogicalViewTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() 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 stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function updateMaterializedViewTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/updateMaterializedViewTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $query = 'query107944136'; + $etag = 'etag3123477'; + $deletionProtection = true; + $expectedResponse = new MaterializedView(); + $expectedResponse->setName($name); + $expectedResponse->setQuery($query); + $expectedResponse->setEtag($etag); + $expectedResponse->setDeletionProtection($deletionProtection); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateMaterializedViewTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $materializedView = new MaterializedView(); + $materializedViewQuery = 'materializedViewQuery1755221932'; + $materializedView->setQuery($materializedViewQuery); + $request = (new UpdateMaterializedViewRequest()) + ->setMaterializedView($materializedView); + $response = $gapicClient->updateMaterializedView($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/UpdateMaterializedView', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getMaterializedView(); + $this->assertProtobufEquals($materializedView, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateMaterializedViewTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function updateMaterializedViewExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/updateMaterializedViewTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $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); + $operationsTransport->addResponse(null, $status); + // Mock request + $materializedView = new MaterializedView(); + $materializedViewQuery = 'materializedViewQuery1755221932'; + $materializedView->setQuery($materializedViewQuery); + $request = (new UpdateMaterializedViewRequest()) + ->setMaterializedView($materializedView); + $response = $gapicClient->updateMaterializedView($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateMaterializedViewTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() 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 stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createAppProfileAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $etag = 'etag3123477'; + $description = 'description-1724546052'; + $expectedResponse = new AppProfile(); + $expectedResponse->setName($name); + $expectedResponse->setEtag($etag); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); + $appProfileId = 'appProfileId1262094415'; + $appProfile = new AppProfile(); + $request = (new CreateAppProfileRequest()) + ->setParent($formattedParent) + ->setAppProfileId($appProfileId) + ->setAppProfile($appProfile); + $response = $gapicClient->createAppProfileAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/CreateAppProfile', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getAppProfileId(); + $this->assertProtobufEquals($appProfileId, $actualValue); + $actualValue = $actualRequestObject->getAppProfile(); + $this->assertProtobufEquals($appProfile, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/Bigtable/v2/Admin/tests/Unit/V2/Client/BigtableTableAdminClientTest.php b/owl-bot-staging/Bigtable/v2/Admin/tests/Unit/V2/Client/BigtableTableAdminClientTest.php new file mode 100644 index 000000000000..6f3c02b3e241 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/Admin/tests/Unit/V2/Client/BigtableTableAdminClientTest.php @@ -0,0 +1,3274 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return BigtableTableAdminClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new BigtableTableAdminClient($options); + } + + /** @test */ + public function checkConsistencyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $consistent = true; + $expectedResponse = new CheckConsistencyResponse(); + $expectedResponse->setConsistent($consistent); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $consistencyToken = 'consistencyToken-1090516718'; + $request = (new CheckConsistencyRequest()) + ->setName($formattedName) + ->setConsistencyToken($consistencyToken); + $response = $gapicClient->checkConsistency($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/CheckConsistency', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getConsistencyToken(); + $this->assertProtobufEquals($consistencyToken, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function checkConsistencyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $consistencyToken = 'consistencyToken-1090516718'; + $request = (new CheckConsistencyRequest()) + ->setName($formattedName) + ->setConsistencyToken($consistencyToken); + try { + $gapicClient->checkConsistency($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 copyBackupTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/copyBackupTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $sourceTable = 'sourceTable1670858410'; + $sourceBackup2 = 'sourceBackup2889376921'; + $sizeBytes = 1796325715; + $expectedResponse = new Backup(); + $expectedResponse->setName($name); + $expectedResponse->setSourceTable($sourceTable); + $expectedResponse->setSourceBackup($sourceBackup2); + $expectedResponse->setSizeBytes($sizeBytes); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/copyBackupTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); + $backupId = 'backupId1355353272'; + $formattedSourceBackup = $gapicClient->backupName('[PROJECT]', '[INSTANCE]', '[CLUSTER]', '[BACKUP]'); + $expireTime = new Timestamp(); + $request = (new CopyBackupRequest()) + ->setParent($formattedParent) + ->setBackupId($backupId) + ->setSourceBackup($formattedSourceBackup) + ->setExpireTime($expireTime); + $response = $gapicClient->copyBackup($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/CopyBackup', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getBackupId(); + $this->assertProtobufEquals($backupId, $actualValue); + $actualValue = $actualApiRequestObject->getSourceBackup(); + $this->assertProtobufEquals($formattedSourceBackup, $actualValue); + $actualValue = $actualApiRequestObject->getExpireTime(); + $this->assertProtobufEquals($expireTime, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/copyBackupTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function copyBackupExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/copyBackupTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $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); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); + $backupId = 'backupId1355353272'; + $formattedSourceBackup = $gapicClient->backupName('[PROJECT]', '[INSTANCE]', '[CLUSTER]', '[BACKUP]'); + $expireTime = new Timestamp(); + $request = (new CopyBackupRequest()) + ->setParent($formattedParent) + ->setBackupId($backupId) + ->setSourceBackup($formattedSourceBackup) + ->setExpireTime($expireTime); + $response = $gapicClient->copyBackup($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/copyBackupTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() 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 stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createAuthorizedViewTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createAuthorizedViewTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $etag = 'etag3123477'; + $deletionProtection = true; + $expectedResponse = new AuthorizedView(); + $expectedResponse->setName($name); + $expectedResponse->setEtag($etag); + $expectedResponse->setDeletionProtection($deletionProtection); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createAuthorizedViewTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $authorizedViewId = 'authorizedViewId1171901009'; + $authorizedView = new AuthorizedView(); + $request = (new CreateAuthorizedViewRequest()) + ->setParent($formattedParent) + ->setAuthorizedViewId($authorizedViewId) + ->setAuthorizedView($authorizedView); + $response = $gapicClient->createAuthorizedView($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/CreateAuthorizedView', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getAuthorizedViewId(); + $this->assertProtobufEquals($authorizedViewId, $actualValue); + $actualValue = $actualApiRequestObject->getAuthorizedView(); + $this->assertProtobufEquals($authorizedView, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAuthorizedViewTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createAuthorizedViewExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createAuthorizedViewTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $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); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $authorizedViewId = 'authorizedViewId1171901009'; + $authorizedView = new AuthorizedView(); + $request = (new CreateAuthorizedViewRequest()) + ->setParent($formattedParent) + ->setAuthorizedViewId($authorizedViewId) + ->setAuthorizedView($authorizedView); + $response = $gapicClient->createAuthorizedView($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAuthorizedViewTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() 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 stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createBackupTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createBackupTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $sourceTable = 'sourceTable1670858410'; + $sourceBackup = 'sourceBackup-258292122'; + $sizeBytes = 1796325715; + $expectedResponse = new Backup(); + $expectedResponse->setName($name); + $expectedResponse->setSourceTable($sourceTable); + $expectedResponse->setSourceBackup($sourceBackup); + $expectedResponse->setSizeBytes($sizeBytes); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createBackupTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); + $backupId = 'backupId1355353272'; + $backup = new Backup(); + $backupSourceTable = 'backupSourceTable1043210577'; + $backup->setSourceTable($backupSourceTable); + $backupExpireTime = new Timestamp(); + $backup->setExpireTime($backupExpireTime); + $request = (new CreateBackupRequest()) + ->setParent($formattedParent) + ->setBackupId($backupId) + ->setBackup($backup); + $response = $gapicClient->createBackup($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/CreateBackup', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getBackupId(); + $this->assertProtobufEquals($backupId, $actualValue); + $actualValue = $actualApiRequestObject->getBackup(); + $this->assertProtobufEquals($backup, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createBackupTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createBackupExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createBackupTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $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); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); + $backupId = 'backupId1355353272'; + $backup = new Backup(); + $backupSourceTable = 'backupSourceTable1043210577'; + $backup->setSourceTable($backupSourceTable); + $backupExpireTime = new Timestamp(); + $backup->setExpireTime($backupExpireTime); + $request = (new CreateBackupRequest()) + ->setParent($formattedParent) + ->setBackupId($backupId) + ->setBackup($backup); + $response = $gapicClient->createBackup($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createBackupTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() 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 stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createSchemaBundleTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createSchemaBundleTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $etag = 'etag3123477'; + $expectedResponse = new SchemaBundle(); + $expectedResponse->setName($name); + $expectedResponse->setEtag($etag); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createSchemaBundleTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $schemaBundleId = 'schemaBundleId-259541798'; + $schemaBundle = new SchemaBundle(); + $request = (new CreateSchemaBundleRequest()) + ->setParent($formattedParent) + ->setSchemaBundleId($schemaBundleId) + ->setSchemaBundle($schemaBundle); + $response = $gapicClient->createSchemaBundle($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/CreateSchemaBundle', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getSchemaBundleId(); + $this->assertProtobufEquals($schemaBundleId, $actualValue); + $actualValue = $actualApiRequestObject->getSchemaBundle(); + $this->assertProtobufEquals($schemaBundle, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createSchemaBundleTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createSchemaBundleExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createSchemaBundleTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $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); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $schemaBundleId = 'schemaBundleId-259541798'; + $schemaBundle = new SchemaBundle(); + $request = (new CreateSchemaBundleRequest()) + ->setParent($formattedParent) + ->setSchemaBundleId($schemaBundleId) + ->setSchemaBundle($schemaBundle); + $response = $gapicClient->createSchemaBundle($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createSchemaBundleTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() 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 stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createTableTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $deletionProtection = true; + $expectedResponse = new Table(); + $expectedResponse->setName($name); + $expectedResponse->setDeletionProtection($deletionProtection); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); + $tableId = 'tableId-895419604'; + $table = new Table(); + $request = (new CreateTableRequest()) + ->setParent($formattedParent) + ->setTableId($tableId) + ->setTable($table); + $response = $gapicClient->createTable($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/CreateTable', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getTableId(); + $this->assertProtobufEquals($tableId, $actualValue); + $actualValue = $actualRequestObject->getTable(); + $this->assertProtobufEquals($table, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createTableExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); + $tableId = 'tableId-895419604'; + $table = new Table(); + $request = (new CreateTableRequest()) + ->setParent($formattedParent) + ->setTableId($tableId) + ->setTable($table); + try { + $gapicClient->createTable($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 createTableFromSnapshotTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createTableFromSnapshotTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $deletionProtection = true; + $expectedResponse = new Table(); + $expectedResponse->setName($name); + $expectedResponse->setDeletionProtection($deletionProtection); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createTableFromSnapshotTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); + $tableId = 'tableId-895419604'; + $formattedSourceSnapshot = $gapicClient->snapshotName('[PROJECT]', '[INSTANCE]', '[CLUSTER]', '[SNAPSHOT]'); + $request = (new CreateTableFromSnapshotRequest()) + ->setParent($formattedParent) + ->setTableId($tableId) + ->setSourceSnapshot($formattedSourceSnapshot); + $response = $gapicClient->createTableFromSnapshot($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/CreateTableFromSnapshot', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getTableId(); + $this->assertProtobufEquals($tableId, $actualValue); + $actualValue = $actualApiRequestObject->getSourceSnapshot(); + $this->assertProtobufEquals($formattedSourceSnapshot, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createTableFromSnapshotTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createTableFromSnapshotExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createTableFromSnapshotTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $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); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); + $tableId = 'tableId-895419604'; + $formattedSourceSnapshot = $gapicClient->snapshotName('[PROJECT]', '[INSTANCE]', '[CLUSTER]', '[SNAPSHOT]'); + $request = (new CreateTableFromSnapshotRequest()) + ->setParent($formattedParent) + ->setTableId($tableId) + ->setSourceSnapshot($formattedSourceSnapshot); + $response = $gapicClient->createTableFromSnapshot($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createTableFromSnapshotTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() 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 stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function deleteAuthorizedViewTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->authorizedViewName('[PROJECT]', '[INSTANCE]', '[TABLE]', '[AUTHORIZED_VIEW]'); + $request = (new DeleteAuthorizedViewRequest()) + ->setName($formattedName); + $gapicClient->deleteAuthorizedView($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/DeleteAuthorizedView', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteAuthorizedViewExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->authorizedViewName('[PROJECT]', '[INSTANCE]', '[TABLE]', '[AUTHORIZED_VIEW]'); + $request = (new DeleteAuthorizedViewRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteAuthorizedView($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 deleteBackupTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->backupName('[PROJECT]', '[INSTANCE]', '[CLUSTER]', '[BACKUP]'); + $request = (new DeleteBackupRequest()) + ->setName($formattedName); + $gapicClient->deleteBackup($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/DeleteBackup', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteBackupExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->backupName('[PROJECT]', '[INSTANCE]', '[CLUSTER]', '[BACKUP]'); + $request = (new DeleteBackupRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteBackup($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 deleteSchemaBundleTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->schemaBundleName('[PROJECT]', '[INSTANCE]', '[TABLE]', '[SCHEMA_BUNDLE]'); + $request = (new DeleteSchemaBundleRequest()) + ->setName($formattedName); + $gapicClient->deleteSchemaBundle($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/DeleteSchemaBundle', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteSchemaBundleExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->schemaBundleName('[PROJECT]', '[INSTANCE]', '[TABLE]', '[SCHEMA_BUNDLE]'); + $request = (new DeleteSchemaBundleRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteSchemaBundle($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 deleteSnapshotTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->snapshotName('[PROJECT]', '[INSTANCE]', '[CLUSTER]', '[SNAPSHOT]'); + $request = (new DeleteSnapshotRequest()) + ->setName($formattedName); + $gapicClient->deleteSnapshot($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/DeleteSnapshot', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteSnapshotExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->snapshotName('[PROJECT]', '[INSTANCE]', '[CLUSTER]', '[SNAPSHOT]'); + $request = (new DeleteSnapshotRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteSnapshot($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 deleteTableTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $request = (new DeleteTableRequest()) + ->setName($formattedName); + $gapicClient->deleteTable($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/DeleteTable', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteTableExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $request = (new DeleteTableRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteTable($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 dropRowRangeTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $request = (new DropRowRangeRequest()) + ->setName($formattedName); + $gapicClient->dropRowRange($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/DropRowRange', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function dropRowRangeExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $request = (new DropRowRangeRequest()) + ->setName($formattedName); + try { + $gapicClient->dropRowRange($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 generateConsistencyTokenTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $consistencyToken = 'consistencyToken-1090516718'; + $expectedResponse = new GenerateConsistencyTokenResponse(); + $expectedResponse->setConsistencyToken($consistencyToken); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $request = (new GenerateConsistencyTokenRequest()) + ->setName($formattedName); + $response = $gapicClient->generateConsistencyToken($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/GenerateConsistencyToken', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function generateConsistencyTokenExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $request = (new GenerateConsistencyTokenRequest()) + ->setName($formattedName); + try { + $gapicClient->generateConsistencyToken($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 getAuthorizedViewTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $etag = 'etag3123477'; + $deletionProtection = true; + $expectedResponse = new AuthorizedView(); + $expectedResponse->setName($name2); + $expectedResponse->setEtag($etag); + $expectedResponse->setDeletionProtection($deletionProtection); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->authorizedViewName('[PROJECT]', '[INSTANCE]', '[TABLE]', '[AUTHORIZED_VIEW]'); + $request = (new GetAuthorizedViewRequest()) + ->setName($formattedName); + $response = $gapicClient->getAuthorizedView($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/GetAuthorizedView', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAuthorizedViewExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->authorizedViewName('[PROJECT]', '[INSTANCE]', '[TABLE]', '[AUTHORIZED_VIEW]'); + $request = (new GetAuthorizedViewRequest()) + ->setName($formattedName); + try { + $gapicClient->getAuthorizedView($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 getBackupTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $sourceTable = 'sourceTable1670858410'; + $sourceBackup = 'sourceBackup-258292122'; + $sizeBytes = 1796325715; + $expectedResponse = new Backup(); + $expectedResponse->setName($name2); + $expectedResponse->setSourceTable($sourceTable); + $expectedResponse->setSourceBackup($sourceBackup); + $expectedResponse->setSizeBytes($sizeBytes); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->backupName('[PROJECT]', '[INSTANCE]', '[CLUSTER]', '[BACKUP]'); + $request = (new GetBackupRequest()) + ->setName($formattedName); + $response = $gapicClient->getBackup($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/GetBackup', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getBackupExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->backupName('[PROJECT]', '[INSTANCE]', '[CLUSTER]', '[BACKUP]'); + $request = (new GetBackupRequest()) + ->setName($formattedName); + try { + $gapicClient->getBackup($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 getIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + $response = $gapicClient->getIamPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/GetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getIamPolicyExceptionTest() + { + $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 + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + try { + $gapicClient->getIamPolicy($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 getSchemaBundleTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $etag = 'etag3123477'; + $expectedResponse = new SchemaBundle(); + $expectedResponse->setName($name2); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->schemaBundleName('[PROJECT]', '[INSTANCE]', '[TABLE]', '[SCHEMA_BUNDLE]'); + $request = (new GetSchemaBundleRequest()) + ->setName($formattedName); + $response = $gapicClient->getSchemaBundle($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/GetSchemaBundle', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getSchemaBundleExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->schemaBundleName('[PROJECT]', '[INSTANCE]', '[TABLE]', '[SCHEMA_BUNDLE]'); + $request = (new GetSchemaBundleRequest()) + ->setName($formattedName); + try { + $gapicClient->getSchemaBundle($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 getSnapshotTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $dataSizeBytes = 2110122398; + $description = 'description-1724546052'; + $expectedResponse = new Snapshot(); + $expectedResponse->setName($name2); + $expectedResponse->setDataSizeBytes($dataSizeBytes); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->snapshotName('[PROJECT]', '[INSTANCE]', '[CLUSTER]', '[SNAPSHOT]'); + $request = (new GetSnapshotRequest()) + ->setName($formattedName); + $response = $gapicClient->getSnapshot($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/GetSnapshot', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getSnapshotExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->snapshotName('[PROJECT]', '[INSTANCE]', '[CLUSTER]', '[SNAPSHOT]'); + $request = (new GetSnapshotRequest()) + ->setName($formattedName); + try { + $gapicClient->getSnapshot($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 getTableTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $deletionProtection = true; + $expectedResponse = new Table(); + $expectedResponse->setName($name2); + $expectedResponse->setDeletionProtection($deletionProtection); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $request = (new GetTableRequest()) + ->setName($formattedName); + $response = $gapicClient->getTable($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/GetTable', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getTableExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $request = (new GetTableRequest()) + ->setName($formattedName); + try { + $gapicClient->getTable($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 listAuthorizedViewsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $authorizedViewsElement = new AuthorizedView(); + $authorizedViews = [ + $authorizedViewsElement, + ]; + $expectedResponse = new ListAuthorizedViewsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setAuthorizedViews($authorizedViews); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $request = (new ListAuthorizedViewsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listAuthorizedViews($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAuthorizedViews()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/ListAuthorizedViews', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAuthorizedViewsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $request = (new ListAuthorizedViewsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listAuthorizedViews($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 listBackupsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $backupsElement = new Backup(); + $backups = [ + $backupsElement, + ]; + $expectedResponse = new ListBackupsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setBackups($backups); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); + $request = (new ListBackupsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listBackups($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getBackups()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/ListBackups', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listBackupsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); + $request = (new ListBackupsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listBackups($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 listSchemaBundlesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $schemaBundlesElement = new SchemaBundle(); + $schemaBundles = [ + $schemaBundlesElement, + ]; + $expectedResponse = new ListSchemaBundlesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setSchemaBundles($schemaBundles); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $request = (new ListSchemaBundlesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listSchemaBundles($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getSchemaBundles()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/ListSchemaBundles', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listSchemaBundlesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $request = (new ListSchemaBundlesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listSchemaBundles($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 listSnapshotsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $snapshotsElement = new Snapshot(); + $snapshots = [ + $snapshotsElement, + ]; + $expectedResponse = new ListSnapshotsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setSnapshots($snapshots); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); + $request = (new ListSnapshotsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listSnapshots($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getSnapshots()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/ListSnapshots', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listSnapshotsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); + $request = (new ListSnapshotsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listSnapshots($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 listTablesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $tablesElement = new Table(); + $tables = [ + $tablesElement, + ]; + $expectedResponse = new ListTablesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTables($tables); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); + $request = (new ListTablesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listTables($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getTables()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/ListTables', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listTablesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); + $request = (new ListTablesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listTables($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 modifyColumnFamiliesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $deletionProtection = true; + $expectedResponse = new Table(); + $expectedResponse->setName($name2); + $expectedResponse->setDeletionProtection($deletionProtection); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $modifications = []; + $request = (new ModifyColumnFamiliesRequest()) + ->setName($formattedName) + ->setModifications($modifications); + $response = $gapicClient->modifyColumnFamilies($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/ModifyColumnFamilies', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getModifications(); + $this->assertProtobufEquals($modifications, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function modifyColumnFamiliesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $modifications = []; + $request = (new ModifyColumnFamiliesRequest()) + ->setName($formattedName) + ->setModifications($modifications); + try { + $gapicClient->modifyColumnFamilies($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 restoreTableTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/restoreTableTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $deletionProtection = true; + $expectedResponse = new Table(); + $expectedResponse->setName($name); + $expectedResponse->setDeletionProtection($deletionProtection); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/restoreTableTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); + $tableId = 'tableId-895419604'; + $request = (new RestoreTableRequest()) + ->setParent($formattedParent) + ->setTableId($tableId); + $response = $gapicClient->restoreTable($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/RestoreTable', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getTableId(); + $this->assertProtobufEquals($tableId, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/restoreTableTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function restoreTableExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/restoreTableTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $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); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); + $tableId = 'tableId-895419604'; + $request = (new RestoreTableRequest()) + ->setParent($formattedParent) + ->setTableId($tableId); + $response = $gapicClient->restoreTable($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/restoreTableTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() 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 stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function setIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + $response = $gapicClient->setIamPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/SetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPolicy(); + $this->assertProtobufEquals($policy, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setIamPolicyExceptionTest() + { + $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 + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + try { + $gapicClient->setIamPolicy($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 snapshotTableTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/snapshotTableTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name2 = 'name2-1052831874'; + $dataSizeBytes = 2110122398; + $description2 = 'description2568623279'; + $expectedResponse = new Snapshot(); + $expectedResponse->setName($name2); + $expectedResponse->setDataSizeBytes($dataSizeBytes); + $expectedResponse->setDescription($description2); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/snapshotTableTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $formattedCluster = $gapicClient->clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); + $snapshotId = 'snapshotId-168585866'; + $request = (new SnapshotTableRequest()) + ->setName($formattedName) + ->setCluster($formattedCluster) + ->setSnapshotId($snapshotId); + $response = $gapicClient->snapshotTable($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/SnapshotTable', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualApiRequestObject->getCluster(); + $this->assertProtobufEquals($formattedCluster, $actualValue); + $actualValue = $actualApiRequestObject->getSnapshotId(); + $this->assertProtobufEquals($snapshotId, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/snapshotTableTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function snapshotTableExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/snapshotTableTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $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); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $formattedCluster = $gapicClient->clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); + $snapshotId = 'snapshotId-168585866'; + $request = (new SnapshotTableRequest()) + ->setName($formattedName) + ->setCluster($formattedCluster) + ->setSnapshotId($snapshotId); + $response = $gapicClient->snapshotTable($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/snapshotTableTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() 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 stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function testIamPermissionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new TestIamPermissionsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest()) + ->setResource($resource) + ->setPermissions($permissions); + $response = $gapicClient->testIamPermissions($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/TestIamPermissions', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPermissions(); + $this->assertProtobufEquals($permissions, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function testIamPermissionsExceptionTest() + { + $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 + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest()) + ->setResource($resource) + ->setPermissions($permissions); + try { + $gapicClient->testIamPermissions($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 undeleteTableTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/undeleteTableTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name2 = 'name2-1052831874'; + $deletionProtection = true; + $expectedResponse = new Table(); + $expectedResponse->setName($name2); + $expectedResponse->setDeletionProtection($deletionProtection); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/undeleteTableTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $request = (new UndeleteTableRequest()) + ->setName($formattedName); + $response = $gapicClient->undeleteTable($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/UndeleteTable', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/undeleteTableTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function undeleteTableExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/undeleteTableTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $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); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $request = (new UndeleteTableRequest()) + ->setName($formattedName); + $response = $gapicClient->undeleteTable($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/undeleteTableTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() 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 stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function updateAuthorizedViewTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/updateAuthorizedViewTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $etag = 'etag3123477'; + $deletionProtection = true; + $expectedResponse = new AuthorizedView(); + $expectedResponse->setName($name); + $expectedResponse->setEtag($etag); + $expectedResponse->setDeletionProtection($deletionProtection); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateAuthorizedViewTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $authorizedView = new AuthorizedView(); + $request = (new UpdateAuthorizedViewRequest()) + ->setAuthorizedView($authorizedView); + $response = $gapicClient->updateAuthorizedView($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/UpdateAuthorizedView', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getAuthorizedView(); + $this->assertProtobufEquals($authorizedView, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateAuthorizedViewTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function updateAuthorizedViewExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/updateAuthorizedViewTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $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); + $operationsTransport->addResponse(null, $status); + // Mock request + $authorizedView = new AuthorizedView(); + $request = (new UpdateAuthorizedViewRequest()) + ->setAuthorizedView($authorizedView); + $response = $gapicClient->updateAuthorizedView($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateAuthorizedViewTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() 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 stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function updateBackupTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $sourceTable = 'sourceTable1670858410'; + $sourceBackup = 'sourceBackup-258292122'; + $sizeBytes = 1796325715; + $expectedResponse = new Backup(); + $expectedResponse->setName($name); + $expectedResponse->setSourceTable($sourceTable); + $expectedResponse->setSourceBackup($sourceBackup); + $expectedResponse->setSizeBytes($sizeBytes); + $transport->addResponse($expectedResponse); + // Mock request + $backup = new Backup(); + $backupSourceTable = 'backupSourceTable1043210577'; + $backup->setSourceTable($backupSourceTable); + $backupExpireTime = new Timestamp(); + $backup->setExpireTime($backupExpireTime); + $updateMask = new FieldMask(); + $request = (new UpdateBackupRequest()) + ->setBackup($backup) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateBackup($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/UpdateBackup', $actualFuncCall); + $actualValue = $actualRequestObject->getBackup(); + $this->assertProtobufEquals($backup, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateBackupExceptionTest() + { + $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 + $backup = new Backup(); + $backupSourceTable = 'backupSourceTable1043210577'; + $backup->setSourceTable($backupSourceTable); + $backupExpireTime = new Timestamp(); + $backup->setExpireTime($backupExpireTime); + $updateMask = new FieldMask(); + $request = (new UpdateBackupRequest()) + ->setBackup($backup) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateBackup($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 updateSchemaBundleTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/updateSchemaBundleTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $etag = 'etag3123477'; + $expectedResponse = new SchemaBundle(); + $expectedResponse->setName($name); + $expectedResponse->setEtag($etag); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateSchemaBundleTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $schemaBundle = new SchemaBundle(); + $request = (new UpdateSchemaBundleRequest()) + ->setSchemaBundle($schemaBundle); + $response = $gapicClient->updateSchemaBundle($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/UpdateSchemaBundle', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getSchemaBundle(); + $this->assertProtobufEquals($schemaBundle, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateSchemaBundleTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function updateSchemaBundleExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/updateSchemaBundleTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $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); + $operationsTransport->addResponse(null, $status); + // Mock request + $schemaBundle = new SchemaBundle(); + $request = (new UpdateSchemaBundleRequest()) + ->setSchemaBundle($schemaBundle); + $response = $gapicClient->updateSchemaBundle($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateSchemaBundleTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() 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 stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function updateTableTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/updateTableTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $deletionProtection = true; + $expectedResponse = new Table(); + $expectedResponse->setName($name); + $expectedResponse->setDeletionProtection($deletionProtection); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateTableTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $table = new Table(); + $updateMask = new FieldMask(); + $request = (new UpdateTableRequest()) + ->setTable($table) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateTable($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/UpdateTable', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getTable(); + $this->assertProtobufEquals($table, $actualValue); + $actualValue = $actualApiRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateTableTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function updateTableExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/updateTableTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $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); + $operationsTransport->addResponse(null, $status); + // Mock request + $table = new Table(); + $updateMask = new FieldMask(); + $request = (new UpdateTableRequest()) + ->setTable($table) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateTable($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateTableTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() 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 stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function checkConsistencyAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $consistent = true; + $expectedResponse = new CheckConsistencyResponse(); + $expectedResponse->setConsistent($consistent); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $consistencyToken = 'consistencyToken-1090516718'; + $request = (new CheckConsistencyRequest()) + ->setName($formattedName) + ->setConsistencyToken($consistencyToken); + $response = $gapicClient->checkConsistencyAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/CheckConsistency', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getConsistencyToken(); + $this->assertProtobufEquals($consistencyToken, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/Bigtable.php b/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/Bigtable.php new file mode 100644 index 000000000000..eff71ec7cc0b --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/Bigtable.php @@ -0,0 +1,36 @@ +internalAddGeneratedFile( + "\x0A\x81b\x0A!google/bigtable/v2/bigtable.proto\x12\x12google.bigtable.v2\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A\x18google/api/routing.proto\x1A\x1Dgoogle/bigtable/v2/data.proto\x1A&google/bigtable/v2/request_stats.proto\x1A\x1Egoogle/bigtable/v2/types.proto\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x1Egoogle/protobuf/wrappers.proto\x1A\x17google/rpc/status.proto\"\xCC\x04\x0A\x0FReadRowsRequest\x12>\x0A\x0Atable_name\x18\x01 \x01(\x09B*\xE0A\x01\xFAA\$\x0A\"bigtableadmin.googleapis.com/Table\x12Q\x0A\x14authorized_view_name\x18\x09 \x01(\x09B3\xE0A\x01\xFAA-\x0A+bigtableadmin.googleapis.com/AuthorizedView\x12U\x0A\x16materialized_view_name\x18\x0B \x01(\x09B5\xE0A\x01\xFAA/\x0A-bigtableadmin.googleapis.com/MaterializedView\x12\x16\x0A\x0Eapp_profile_id\x18\x05 \x01(\x09\x12(\x0A\x04rows\x18\x02 \x01(\x0B2\x1A.google.bigtable.v2.RowSet\x12-\x0A\x06filter\x18\x03 \x01(\x0B2\x1D.google.bigtable.v2.RowFilter\x12\x12\x0A\x0Arows_limit\x18\x04 \x01(\x03\x12P\x0A\x12request_stats_view\x18\x06 \x01(\x0E24.google.bigtable.v2.ReadRowsRequest.RequestStatsView\x12\x10\x0A\x08reversed\x18\x07 \x01(\x08\"f\x0A\x10RequestStatsView\x12\"\x0A\x1EREQUEST_STATS_VIEW_UNSPECIFIED\x10\x00\x12\x16\x0A\x12REQUEST_STATS_NONE\x10\x01\x12\x16\x0A\x12REQUEST_STATS_FULL\x10\x02\"\xB1\x03\x0A\x10ReadRowsResponse\x12>\x0A\x06chunks\x18\x01 \x03(\x0B2..google.bigtable.v2.ReadRowsResponse.CellChunk\x12\x1C\x0A\x14last_scanned_row_key\x18\x02 \x01(\x0C\x127\x0A\x0Drequest_stats\x18\x03 \x01(\x0B2 .google.bigtable.v2.RequestStats\x1A\x85\x02\x0A\x09CellChunk\x12\x0F\x0A\x07row_key\x18\x01 \x01(\x0C\x121\x0A\x0Bfamily_name\x18\x02 \x01(\x0B2\x1C.google.protobuf.StringValue\x12.\x0A\x09qualifier\x18\x03 \x01(\x0B2\x1B.google.protobuf.BytesValue\x12\x18\x0A\x10timestamp_micros\x18\x04 \x01(\x03\x12\x0E\x0A\x06labels\x18\x05 \x03(\x09\x12\x0D\x0A\x05value\x18\x06 \x01(\x0C\x12\x12\x0A\x0Avalue_size\x18\x07 \x01(\x05\x12\x13\x0A\x09reset_row\x18\x08 \x01(\x08H\x00\x12\x14\x0A\x0Acommit_row\x18\x09 \x01(\x08H\x00B\x0C\x0A\x0Arow_status\"\x98\x02\x0A\x14SampleRowKeysRequest\x12>\x0A\x0Atable_name\x18\x01 \x01(\x09B*\xE0A\x01\xFAA\$\x0A\"bigtableadmin.googleapis.com/Table\x12Q\x0A\x14authorized_view_name\x18\x04 \x01(\x09B3\xE0A\x01\xFAA-\x0A+bigtableadmin.googleapis.com/AuthorizedView\x12U\x0A\x16materialized_view_name\x18\x05 \x01(\x09B5\xE0A\x01\xFAA/\x0A-bigtableadmin.googleapis.com/MaterializedView\x12\x16\x0A\x0Eapp_profile_id\x18\x02 \x01(\x09\">\x0A\x15SampleRowKeysResponse\x12\x0F\x0A\x07row_key\x18\x01 \x01(\x0C\x12\x14\x0A\x0Coffset_bytes\x18\x02 \x01(\x03\"\xBF\x02\x0A\x10MutateRowRequest\x12>\x0A\x0Atable_name\x18\x01 \x01(\x09B*\xE0A\x01\xFAA\$\x0A\"bigtableadmin.googleapis.com/Table\x12Q\x0A\x14authorized_view_name\x18\x06 \x01(\x09B3\xE0A\x01\xFAA-\x0A+bigtableadmin.googleapis.com/AuthorizedView\x12\x16\x0A\x0Eapp_profile_id\x18\x04 \x01(\x09\x12\x14\x0A\x07row_key\x18\x02 \x01(\x0CB\x03\xE0A\x02\x124\x0A\x09mutations\x18\x03 \x03(\x0B2\x1C.google.bigtable.v2.MutationB\x03\xE0A\x02\x124\x0A\x0Bidempotency\x18\x08 \x01(\x0B2\x1F.google.bigtable.v2.Idempotency\"\x13\x0A\x11MutateRowResponse\"\x88\x03\x0A\x11MutateRowsRequest\x12>\x0A\x0Atable_name\x18\x01 \x01(\x09B*\xE0A\x01\xFAA\$\x0A\"bigtableadmin.googleapis.com/Table\x12Q\x0A\x14authorized_view_name\x18\x05 \x01(\x09B3\xE0A\x01\xFAA-\x0A+bigtableadmin.googleapis.com/AuthorizedView\x12\x16\x0A\x0Eapp_profile_id\x18\x03 \x01(\x09\x12A\x0A\x07entries\x18\x02 \x03(\x0B2+.google.bigtable.v2.MutateRowsRequest.EntryB\x03\xE0A\x02\x1A\x84\x01\x0A\x05Entry\x12\x0F\x0A\x07row_key\x18\x01 \x01(\x0C\x124\x0A\x09mutations\x18\x02 \x03(\x0B2\x1C.google.bigtable.v2.MutationB\x03\xE0A\x02\x124\x0A\x0Bidempotency\x18\x03 \x01(\x0B2\x1F.google.bigtable.v2.Idempotency\"\xE4\x01\x0A\x12MutateRowsResponse\x12=\x0A\x07entries\x18\x01 \x03(\x0B2,.google.bigtable.v2.MutateRowsResponse.Entry\x12?\x0A\x0Frate_limit_info\x18\x03 \x01(\x0B2!.google.bigtable.v2.RateLimitInfoH\x00\x88\x01\x01\x1A:\x0A\x05Entry\x12\x0D\x0A\x05index\x18\x01 \x01(\x03\x12\"\x0A\x06status\x18\x02 \x01(\x0B2\x12.google.rpc.StatusB\x12\x0A\x10_rate_limit_info\"J\x0A\x0DRateLimitInfo\x12)\x0A\x06period\x18\x01 \x01(\x0B2\x19.google.protobuf.Duration\x12\x0E\x0A\x06factor\x18\x02 \x01(\x01\"\x81\x03\x0A\x18CheckAndMutateRowRequest\x12>\x0A\x0Atable_name\x18\x01 \x01(\x09B*\xE0A\x01\xFAA\$\x0A\"bigtableadmin.googleapis.com/Table\x12Q\x0A\x14authorized_view_name\x18\x09 \x01(\x09B3\xE0A\x01\xFAA-\x0A+bigtableadmin.googleapis.com/AuthorizedView\x12\x16\x0A\x0Eapp_profile_id\x18\x07 \x01(\x09\x12\x14\x0A\x07row_key\x18\x02 \x01(\x0CB\x03\xE0A\x02\x127\x0A\x10predicate_filter\x18\x06 \x01(\x0B2\x1D.google.bigtable.v2.RowFilter\x124\x0A\x0Etrue_mutations\x18\x04 \x03(\x0B2\x1C.google.bigtable.v2.Mutation\x125\x0A\x0Ffalse_mutations\x18\x05 \x03(\x0B2\x1C.google.bigtable.v2.Mutation\"6\x0A\x19CheckAndMutateRowResponse\x12\x19\x0A\x11predicate_matched\x18\x01 \x01(\x08\"i\x0A\x12PingAndWarmRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%bigtableadmin.googleapis.com/Instance\x12\x16\x0A\x0Eapp_profile_id\x18\x02 \x01(\x09\"\x15\x0A\x13PingAndWarmResponse\"\x99\x02\x0A\x19ReadModifyWriteRowRequest\x12>\x0A\x0Atable_name\x18\x01 \x01(\x09B*\xE0A\x01\xFAA\$\x0A\"bigtableadmin.googleapis.com/Table\x12Q\x0A\x14authorized_view_name\x18\x06 \x01(\x09B3\xE0A\x01\xFAA-\x0A+bigtableadmin.googleapis.com/AuthorizedView\x12\x16\x0A\x0Eapp_profile_id\x18\x04 \x01(\x09\x12\x14\x0A\x07row_key\x18\x02 \x01(\x0CB\x03\xE0A\x02\x12;\x0A\x05rules\x18\x03 \x03(\x0B2'.google.bigtable.v2.ReadModifyWriteRuleB\x03\xE0A\x02\"B\x0A\x1AReadModifyWriteRowResponse\x12\$\x0A\x03row\x18\x01 \x01(\x0B2\x17.google.bigtable.v2.Row\"\x86\x01\x0A,GenerateInitialChangeStreamPartitionsRequest\x12>\x0A\x0Atable_name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"bigtableadmin.googleapis.com/Table\x12\x16\x0A\x0Eapp_profile_id\x18\x02 \x01(\x09\"g\x0A-GenerateInitialChangeStreamPartitionsResponse\x126\x0A\x09partition\x18\x01 \x01(\x0B2#.google.bigtable.v2.StreamPartition\"\x9B\x03\x0A\x17ReadChangeStreamRequest\x12>\x0A\x0Atable_name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"bigtableadmin.googleapis.com/Table\x12\x16\x0A\x0Eapp_profile_id\x18\x02 \x01(\x09\x126\x0A\x09partition\x18\x03 \x01(\x0B2#.google.bigtable.v2.StreamPartition\x120\x0A\x0Astart_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampH\x00\x12K\x0A\x13continuation_tokens\x18\x06 \x01(\x0B2,.google.bigtable.v2.StreamContinuationTokensH\x00\x12,\x0A\x08end_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.Timestamp\x125\x0A\x12heartbeat_duration\x18\x07 \x01(\x0B2\x19.google.protobuf.DurationB\x0C\x0A\x0Astart_from\"\xA9\x0A\x0A\x18ReadChangeStreamResponse\x12N\x0A\x0Bdata_change\x18\x01 \x01(\x0B27.google.bigtable.v2.ReadChangeStreamResponse.DataChangeH\x00\x12K\x0A\x09heartbeat\x18\x02 \x01(\x0B26.google.bigtable.v2.ReadChangeStreamResponse.HeartbeatH\x00\x12P\x0A\x0Cclose_stream\x18\x03 \x01(\x0B28.google.bigtable.v2.ReadChangeStreamResponse.CloseStreamH\x00\x1A\xF4\x01\x0A\x0DMutationChunk\x12X\x0A\x0Achunk_info\x18\x01 \x01(\x0B2D.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo\x12.\x0A\x08mutation\x18\x02 \x01(\x0B2\x1C.google.bigtable.v2.Mutation\x1AY\x0A\x09ChunkInfo\x12\x1A\x0A\x12chunked_value_size\x18\x01 \x01(\x05\x12\x1C\x0A\x14chunked_value_offset\x18\x02 \x01(\x05\x12\x12\x0A\x0Alast_chunk\x18\x03 \x01(\x08\x1A\xC6\x03\x0A\x0ADataChange\x12J\x0A\x04type\x18\x01 \x01(\x0E2<.google.bigtable.v2.ReadChangeStreamResponse.DataChange.Type\x12\x19\x0A\x11source_cluster_id\x18\x02 \x01(\x09\x12\x0F\x0A\x07row_key\x18\x03 \x01(\x0C\x124\x0A\x10commit_timestamp\x18\x04 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x12\x0A\x0Atiebreaker\x18\x05 \x01(\x05\x12J\x0A\x06chunks\x18\x06 \x03(\x0B2:.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk\x12\x0C\x0A\x04done\x18\x08 \x01(\x08\x12\x0D\x0A\x05token\x18\x09 \x01(\x09\x12;\x0A\x17estimated_low_watermark\x18\x0A \x01(\x0B2\x1A.google.protobuf.Timestamp\"P\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04USER\x10\x01\x12\x16\x0A\x12GARBAGE_COLLECTION\x10\x02\x12\x10\x0A\x0CCONTINUATION\x10\x03\x1A\x91\x01\x0A\x09Heartbeat\x12G\x0A\x12continuation_token\x18\x01 \x01(\x0B2+.google.bigtable.v2.StreamContinuationToken\x12;\x0A\x17estimated_low_watermark\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x1A\xB8\x01\x0A\x0BCloseStream\x12\"\x0A\x06status\x18\x01 \x01(\x0B2\x12.google.rpc.Status\x12H\x0A\x13continuation_tokens\x18\x02 \x03(\x0B2+.google.bigtable.v2.StreamContinuationToken\x12;\x0A\x0Enew_partitions\x18\x03 \x03(\x0B2#.google.bigtable.v2.StreamPartitionB\x0F\x0A\x0Dstream_record\"\xA1\x03\x0A\x13ExecuteQueryRequest\x12D\x0A\x0Dinstance_name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%bigtableadmin.googleapis.com/Instance\x12\x1B\x0A\x0Eapp_profile_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x14\x0A\x05query\x18\x03 \x01(\x09B\x05\x18\x01\xE0A\x02\x12\x16\x0A\x0Eprepared_query\x18\x09 \x01(\x0C\x12;\x0A\x0Cproto_format\x18\x04 \x01(\x0B2\x1F.google.bigtable.v2.ProtoFormatB\x02\x18\x01H\x00\x12\x19\x0A\x0Cresume_token\x18\x08 \x01(\x0CB\x03\xE0A\x01\x12H\x0A\x06params\x18\x07 \x03(\x0B23.google.bigtable.v2.ExecuteQueryRequest.ParamsEntryB\x03\xE0A\x02\x1AH\x0A\x0BParamsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12(\x0A\x05value\x18\x02 \x01(\x0B2\x19.google.bigtable.v2.Value:\x028\x01B\x0D\x0A\x0Bdata_format\"\x96\x01\x0A\x14ExecuteQueryResponse\x129\x0A\x08metadata\x18\x01 \x01(\x0B2%.google.bigtable.v2.ResultSetMetadataH\x00\x127\x0A\x07results\x18\x02 \x01(\x0B2\$.google.bigtable.v2.PartialResultSetH\x00B\x0A\x0A\x08response\"\xF4\x02\x0A\x13PrepareQueryRequest\x12D\x0A\x0Dinstance_name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%bigtableadmin.googleapis.com/Instance\x12\x1B\x0A\x0Eapp_profile_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x12\x0A\x05query\x18\x03 \x01(\x09B\x03\xE0A\x02\x127\x0A\x0Cproto_format\x18\x04 \x01(\x0B2\x1F.google.bigtable.v2.ProtoFormatH\x00\x12Q\x0A\x0Bparam_types\x18\x06 \x03(\x0B27.google.bigtable.v2.PrepareQueryRequest.ParamTypesEntryB\x03\xE0A\x02\x1AK\x0A\x0FParamTypesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12'\x0A\x05value\x18\x02 \x01(\x0B2\x18.google.bigtable.v2.Type:\x028\x01B\x0D\x0A\x0Bdata_format\"\x98\x01\x0A\x14PrepareQueryResponse\x127\x0A\x08metadata\x18\x01 \x01(\x0B2%.google.bigtable.v2.ResultSetMetadata\x12\x16\x0A\x0Eprepared_query\x18\x02 \x01(\x0C\x12/\x0A\x0Bvalid_until\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp2\xDB'\x0A\x08Bigtable\x12\xD5\x04\x0A\x08ReadRows\x12#.google.bigtable.v2.ReadRowsRequest\x1A\$.google.bigtable.v2.ReadRowsResponse\"\xFB\x03\xDAA\x0Atable_name\xDAA\x19table_name,app_profile_id\x82\xD3\xE4\x93\x02\xF1\x01\"9/v2/{table_name=projects/*/instances/*/tables/*}:readRows:\x01*ZZ\"U/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:readRows:\x01*ZU\"P/v2/{materialized_view_name=projects/*/instances/*/materializedViews/*}:readRows:\x01*\x8A\xD3\xE4\x93\x02\xD3\x01\x12:\x0A\x0Atable_name\x12,{table_name=projects/*/instances/*/tables/*}\x12\x10\x0A\x0Eapp_profile_id\x12G\x0A\x14authorized_view_name\x12/{table_name=projects/*/instances/*/tables/*}/**\x12:\x0A\x16materialized_view_name\x12 {name=projects/*/instances/*}/**0\x01\x12\xEA\x04\x0A\x0DSampleRowKeys\x12(.google.bigtable.v2.SampleRowKeysRequest\x1A).google.bigtable.v2.SampleRowKeysResponse\"\x81\x04\xDAA\x0Atable_name\xDAA\x19table_name,app_profile_id\x82\xD3\xE4\x93\x02\xF7\x01\x12>/v2/{table_name=projects/*/instances/*/tables/*}:sampleRowKeysZ\\\x12Z/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:sampleRowKeysZW\x12U/v2/{materialized_view_name=projects/*/instances/*/materializedViews/*}:sampleRowKeys\x8A\xD3\xE4\x93\x02\xD3\x01\x12:\x0A\x0Atable_name\x12,{table_name=projects/*/instances/*/tables/*}\x12\x10\x0A\x0Eapp_profile_id\x12G\x0A\x14authorized_view_name\x12/{table_name=projects/*/instances/*/tables/*}/**\x12:\x0A\x16materialized_view_name\x12 {name=projects/*/instances/*}/**0\x01\x12\xE9\x03\x0A\x09MutateRow\x12\$.google.bigtable.v2.MutateRowRequest\x1A%.google.bigtable.v2.MutateRowResponse\"\x8E\x03\xDAA\x1Ctable_name,row_key,mutations\xDAA+table_name,row_key,mutations,app_profile_id\x82\xD3\xE4\x93\x02\x9C\x01\":/v2/{table_name=projects/*/instances/*/tables/*}:mutateRow:\x01*Z[\"V/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:mutateRow:\x01*\x8A\xD3\xE4\x93\x02\x97\x01\x12:\x0A\x0Atable_name\x12,{table_name=projects/*/instances/*/tables/*}\x12\x10\x0A\x0Eapp_profile_id\x12G\x0A\x14authorized_view_name\x12/{table_name=projects/*/instances/*/tables/*}/**\x12\xDC\x03\x0A\x0AMutateRows\x12%.google.bigtable.v2.MutateRowsRequest\x1A&.google.bigtable.v2.MutateRowsResponse\"\xFC\x02\xDAA\x12table_name,entries\xDAA!table_name,entries,app_profile_id\x82\xD3\xE4\x93\x02\x9E\x01\";/v2/{table_name=projects/*/instances/*/tables/*}:mutateRows:\x01*Z\\\"W/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:mutateRows:\x01*\x8A\xD3\xE4\x93\x02\x97\x01\x12:\x0A\x0Atable_name\x12,{table_name=projects/*/instances/*/tables/*}\x12\x10\x0A\x0Eapp_profile_id\x12G\x0A\x14authorized_view_name\x12/{table_name=projects/*/instances/*/tables/*}/**0\x01\x12\xDD\x04\x0A\x11CheckAndMutateRow\x12,.google.bigtable.v2.CheckAndMutateRowRequest\x1A-.google.bigtable.v2.CheckAndMutateRowResponse\"\xEA\x03\xDAABtable_name,row_key,predicate_filter,true_mutations,false_mutations\xDAAQtable_name,row_key,predicate_filter,true_mutations,false_mutations,app_profile_id\x82\xD3\xE4\x93\x02\xAC\x01\"B/v2/{table_name=projects/*/instances/*/tables/*}:checkAndMutateRow:\x01*Zc\"^/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:checkAndMutateRow:\x01*\x8A\xD3\xE4\x93\x02\x97\x01\x12:\x0A\x0Atable_name\x12,{table_name=projects/*/instances/*/tables/*}\x12\x10\x0A\x0Eapp_profile_id\x12G\x0A\x14authorized_view_name\x12/{table_name=projects/*/instances/*/tables/*}/**\x12\xEE\x01\x0A\x0BPingAndWarm\x12&.google.bigtable.v2.PingAndWarmRequest\x1A'.google.bigtable.v2.PingAndWarmResponse\"\x8D\x01\xDAA\x04name\xDAA\x13name,app_profile_id\x82\xD3\xE4\x93\x02+\"&/v2/{name=projects/*/instances/*}:ping:\x01*\x8A\xD3\xE4\x93\x029\x12%\x0A\x04name\x12\x1D{name=projects/*/instances/*}\x12\x10\x0A\x0Eapp_profile_id\x12\x8E\x04\x0A\x12ReadModifyWriteRow\x12-.google.bigtable.v2.ReadModifyWriteRowRequest\x1A..google.bigtable.v2.ReadModifyWriteRowResponse\"\x98\x03\xDAA\x18table_name,row_key,rules\xDAA'table_name,row_key,rules,app_profile_id\x82\xD3\xE4\x93\x02\xAE\x01\"C/v2/{table_name=projects/*/instances/*/tables/*}:readModifyWriteRow:\x01*Zd\"_/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:readModifyWriteRow:\x01*\x8A\xD3\xE4\x93\x02\x97\x01\x12:\x0A\x0Atable_name\x12,{table_name=projects/*/instances/*/tables/*}\x12\x10\x0A\x0Eapp_profile_id\x12G\x0A\x14authorized_view_name\x12/{table_name=projects/*/instances/*/tables/*}/**\x12\xBB\x02\x0A%GenerateInitialChangeStreamPartitions\x12@.google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest\x1AA.google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse\"\x8A\x01\xDAA\x0Atable_name\xDAA\x19table_name,app_profile_id\x82\xD3\xE4\x93\x02[\"V/v2/{table_name=projects/*/instances/*/tables/*}:generateInitialChangeStreamPartitions:\x01*0\x01\x12\xE6\x01\x0A\x10ReadChangeStream\x12+.google.bigtable.v2.ReadChangeStreamRequest\x1A,.google.bigtable.v2.ReadChangeStreamResponse\"u\xDAA\x0Atable_name\xDAA\x19table_name,app_profile_id\x82\xD3\xE4\x93\x02F\"A/v2/{table_name=projects/*/instances/*/tables/*}:readChangeStream:\x01*0\x01\x12\xA9\x02\x0A\x0CPrepareQuery\x12'.google.bigtable.v2.PrepareQueryRequest\x1A(.google.bigtable.v2.PrepareQueryResponse\"\xC5\x01\xDAA\x13instance_name,query\xDAA\"instance_name,query,app_profile_id\x82\xD3\xE4\x93\x02<\"7/v2/{instance_name=projects/*/instances/*}:prepareQuery:\x01*\x8A\xD3\xE4\x93\x02B\x12.\x0A\x0Dinstance_name\x12\x1D{name=projects/*/instances/*}\x12\x10\x0A\x0Eapp_profile_id\x12\xAB\x02\x0A\x0CExecuteQuery\x12'.google.bigtable.v2.ExecuteQueryRequest\x1A(.google.bigtable.v2.ExecuteQueryResponse\"\xC5\x01\xDAA\x13instance_name,query\xDAA\"instance_name,query,app_profile_id\x82\xD3\xE4\x93\x02<\"7/v2/{instance_name=projects/*/instances/*}:executeQuery:\x01*\x8A\xD3\xE4\x93\x02B\x12.\x0A\x0Dinstance_name\x12\x1D{name=projects/*/instances/*}\x12\x10\x0A\x0Eapp_profile_id0\x01\x1A\xDB\x02\xCAA\x17bigtable.googleapis.com\xD2A\xBD\x02https://www.googleapis.com/auth/bigtable.data,https://www.googleapis.com/auth/bigtable.data.readonly,https://www.googleapis.com/auth/cloud-bigtable.data,https://www.googleapis.com/auth/cloud-bigtable.data.readonly,https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-onlyB\xF5\x04\x0A\x16com.google.bigtable.v2B\x0DBigtableProtoP\x01Z8cloud.google.com/go/bigtable/apiv2/bigtablepb;bigtablepb\xAA\x02\x18Google.Cloud.Bigtable.V2\xCA\x02\x18Google\\Cloud\\Bigtable\\V2\xEA\x02\x1BGoogle::Cloud::Bigtable::V2\xEAAP\x0A%bigtableadmin.googleapis.com/Instance\x12'projects/{project}/instances/{instance}\xEAA\\\x0A\"bigtableadmin.googleapis.com/Table\x126projects/{project}/instances/{instance}/tables/{table}\xEAA\x87\x01\x0A+bigtableadmin.googleapis.com/AuthorizedView\x12Xprojects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}\xEAA~\x0A-bigtableadmin.googleapis.com/MaterializedView\x12Mprojects/{project}/instances/{instance}/materializedViews/{materialized_view}b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/Data.php b/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/Data.php new file mode 100644 index 000000000000..f717d8f3ddbb --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/Data.php @@ -0,0 +1,28 @@ +internalAddGeneratedFile( + "\x0A\xA2&\x0A\x1Dgoogle/bigtable/v2/data.proto\x12\x12google.bigtable.v2\x1A\x1Egoogle/bigtable/v2/types.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x16google/type/date.proto\"@\x0A\x03Row\x12\x0B\x0A\x03key\x18\x01 \x01(\x0C\x12,\x0A\x08families\x18\x02 \x03(\x0B2\x1A.google.bigtable.v2.Family\"C\x0A\x06Family\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12+\x0A\x07columns\x18\x02 \x03(\x0B2\x1A.google.bigtable.v2.Column\"D\x0A\x06Column\x12\x11\x0A\x09qualifier\x18\x01 \x01(\x0C\x12'\x0A\x05cells\x18\x02 \x03(\x0B2\x18.google.bigtable.v2.Cell\"?\x0A\x04Cell\x12\x18\x0A\x10timestamp_micros\x18\x01 \x01(\x03\x12\x0D\x0A\x05value\x18\x02 \x01(\x0C\x12\x0E\x0A\x06labels\x18\x03 \x03(\x09\"\xF4\x02\x0A\x05Value\x12&\x0A\x04type\x18\x07 \x01(\x0B2\x18.google.bigtable.v2.Type\x12\x13\x0A\x09raw_value\x18\x08 \x01(\x0CH\x00\x12\x1E\x0A\x14raw_timestamp_micros\x18\x09 \x01(\x03H\x00\x12\x15\x0A\x0Bbytes_value\x18\x02 \x01(\x0CH\x00\x12\x16\x0A\x0Cstring_value\x18\x03 \x01(\x09H\x00\x12\x13\x0A\x09int_value\x18\x06 \x01(\x03H\x00\x12\x14\x0A\x0Abool_value\x18\x0A \x01(\x08H\x00\x12\x15\x0A\x0Bfloat_value\x18\x0B \x01(\x01H\x00\x125\x0A\x0Ftimestamp_value\x18\x0C \x01(\x0B2\x1A.google.protobuf.TimestampH\x00\x12'\x0A\x0Adate_value\x18\x0D \x01(\x0B2\x11.google.type.DateH\x00\x125\x0A\x0Barray_value\x18\x04 \x01(\x0B2\x1E.google.bigtable.v2.ArrayValueH\x00B\x06\x0A\x04kind\"7\x0A\x0AArrayValue\x12)\x0A\x06values\x18\x01 \x03(\x0B2\x19.google.bigtable.v2.Value\"\x8A\x01\x0A\x08RowRange\x12\x1A\x0A\x10start_key_closed\x18\x01 \x01(\x0CH\x00\x12\x18\x0A\x0Estart_key_open\x18\x02 \x01(\x0CH\x00\x12\x16\x0A\x0Cend_key_open\x18\x03 \x01(\x0CH\x01\x12\x18\x0A\x0Eend_key_closed\x18\x04 \x01(\x0CH\x01B\x0B\x0A\x09start_keyB\x09\x0A\x07end_key\"L\x0A\x06RowSet\x12\x10\x0A\x08row_keys\x18\x01 \x03(\x0C\x120\x0A\x0Arow_ranges\x18\x02 \x03(\x0B2\x1C.google.bigtable.v2.RowRange\"\xC6\x01\x0A\x0BColumnRange\x12\x13\x0A\x0Bfamily_name\x18\x01 \x01(\x09\x12 \x0A\x16start_qualifier_closed\x18\x02 \x01(\x0CH\x00\x12\x1E\x0A\x14start_qualifier_open\x18\x03 \x01(\x0CH\x00\x12\x1E\x0A\x14end_qualifier_closed\x18\x04 \x01(\x0CH\x01\x12\x1C\x0A\x12end_qualifier_open\x18\x05 \x01(\x0CH\x01B\x11\x0A\x0Fstart_qualifierB\x0F\x0A\x0Dend_qualifier\"N\x0A\x0ETimestampRange\x12\x1E\x0A\x16start_timestamp_micros\x18\x01 \x01(\x03\x12\x1C\x0A\x14end_timestamp_micros\x18\x02 \x01(\x03\"\x98\x01\x0A\x0AValueRange\x12\x1C\x0A\x12start_value_closed\x18\x01 \x01(\x0CH\x00\x12\x1A\x0A\x10start_value_open\x18\x02 \x01(\x0CH\x00\x12\x1A\x0A\x10end_value_closed\x18\x03 \x01(\x0CH\x01\x12\x18\x0A\x0Eend_value_open\x18\x04 \x01(\x0CH\x01B\x0D\x0A\x0Bstart_valueB\x0B\x0A\x09end_value\"\xDF\x08\x0A\x09RowFilter\x124\x0A\x05chain\x18\x01 \x01(\x0B2#.google.bigtable.v2.RowFilter.ChainH\x00\x12>\x0A\x0Ainterleave\x18\x02 \x01(\x0B2(.google.bigtable.v2.RowFilter.InterleaveH\x00\x12<\x0A\x09condition\x18\x03 \x01(\x0B2'.google.bigtable.v2.RowFilter.ConditionH\x00\x12\x0E\x0A\x04sink\x18\x10 \x01(\x08H\x00\x12\x19\x0A\x0Fpass_all_filter\x18\x11 \x01(\x08H\x00\x12\x1A\x0A\x10block_all_filter\x18\x12 \x01(\x08H\x00\x12\x1E\x0A\x14row_key_regex_filter\x18\x04 \x01(\x0CH\x00\x12\x1B\x0A\x11row_sample_filter\x18\x0E \x01(\x01H\x00\x12\"\x0A\x18family_name_regex_filter\x18\x05 \x01(\x09H\x00\x12'\x0A\x1Dcolumn_qualifier_regex_filter\x18\x06 \x01(\x0CH\x00\x12>\x0A\x13column_range_filter\x18\x07 \x01(\x0B2\x1F.google.bigtable.v2.ColumnRangeH\x00\x12D\x0A\x16timestamp_range_filter\x18\x08 \x01(\x0B2\".google.bigtable.v2.TimestampRangeH\x00\x12\x1C\x0A\x12value_regex_filter\x18\x09 \x01(\x0CH\x00\x12<\x0A\x12value_range_filter\x18\x0F \x01(\x0B2\x1E.google.bigtable.v2.ValueRangeH\x00\x12%\x0A\x1Bcells_per_row_offset_filter\x18\x0A \x01(\x05H\x00\x12\$\x0A\x1Acells_per_row_limit_filter\x18\x0B \x01(\x05H\x00\x12'\x0A\x1Dcells_per_column_limit_filter\x18\x0C \x01(\x05H\x00\x12!\x0A\x17strip_value_transformer\x18\x0D \x01(\x08H\x00\x12!\x0A\x17apply_label_transformer\x18\x13 \x01(\x09H\x00\x1A7\x0A\x05Chain\x12.\x0A\x07filters\x18\x01 \x03(\x0B2\x1D.google.bigtable.v2.RowFilter\x1A<\x0A\x0AInterleave\x12.\x0A\x07filters\x18\x01 \x03(\x0B2\x1D.google.bigtable.v2.RowFilter\x1A\xAD\x01\x0A\x09Condition\x127\x0A\x10predicate_filter\x18\x01 \x01(\x0B2\x1D.google.bigtable.v2.RowFilter\x122\x0A\x0Btrue_filter\x18\x02 \x01(\x0B2\x1D.google.bigtable.v2.RowFilter\x123\x0A\x0Cfalse_filter\x18\x03 \x01(\x0B2\x1D.google.bigtable.v2.RowFilterB\x08\x0A\x06filter\"\xAD\x08\x0A\x08Mutation\x128\x0A\x08set_cell\x18\x01 \x01(\x0B2\$.google.bigtable.v2.Mutation.SetCellH\x00\x12=\x0A\x0Badd_to_cell\x18\x05 \x01(\x0B2&.google.bigtable.v2.Mutation.AddToCellH\x00\x12A\x0A\x0Dmerge_to_cell\x18\x06 \x01(\x0B2(.google.bigtable.v2.Mutation.MergeToCellH\x00\x12K\x0A\x12delete_from_column\x18\x02 \x01(\x0B2-.google.bigtable.v2.Mutation.DeleteFromColumnH\x00\x12K\x0A\x12delete_from_family\x18\x03 \x01(\x0B2-.google.bigtable.v2.Mutation.DeleteFromFamilyH\x00\x12E\x0A\x0Fdelete_from_row\x18\x04 \x01(\x0B2*.google.bigtable.v2.Mutation.DeleteFromRowH\x00\x1Aa\x0A\x07SetCell\x12\x13\x0A\x0Bfamily_name\x18\x01 \x01(\x09\x12\x18\x0A\x10column_qualifier\x18\x02 \x01(\x0C\x12\x18\x0A\x10timestamp_micros\x18\x03 \x01(\x03\x12\x0D\x0A\x05value\x18\x04 \x01(\x0C\x1A\xAD\x01\x0A\x09AddToCell\x12\x13\x0A\x0Bfamily_name\x18\x01 \x01(\x09\x123\x0A\x10column_qualifier\x18\x02 \x01(\x0B2\x19.google.bigtable.v2.Value\x12,\x0A\x09timestamp\x18\x03 \x01(\x0B2\x19.google.bigtable.v2.Value\x12(\x0A\x05input\x18\x04 \x01(\x0B2\x19.google.bigtable.v2.Value\x1A\xAF\x01\x0A\x0BMergeToCell\x12\x13\x0A\x0Bfamily_name\x18\x01 \x01(\x09\x123\x0A\x10column_qualifier\x18\x02 \x01(\x0B2\x19.google.bigtable.v2.Value\x12,\x0A\x09timestamp\x18\x03 \x01(\x0B2\x19.google.bigtable.v2.Value\x12(\x0A\x05input\x18\x04 \x01(\x0B2\x19.google.bigtable.v2.Value\x1Ay\x0A\x10DeleteFromColumn\x12\x13\x0A\x0Bfamily_name\x18\x01 \x01(\x09\x12\x18\x0A\x10column_qualifier\x18\x02 \x01(\x0C\x126\x0A\x0Atime_range\x18\x03 \x01(\x0B2\".google.bigtable.v2.TimestampRange\x1A'\x0A\x10DeleteFromFamily\x12\x13\x0A\x0Bfamily_name\x18\x01 \x01(\x09\x1A\x0F\x0A\x0DDeleteFromRowB\x0A\x0A\x08mutation\"\x80\x01\x0A\x13ReadModifyWriteRule\x12\x13\x0A\x0Bfamily_name\x18\x01 \x01(\x09\x12\x18\x0A\x10column_qualifier\x18\x02 \x01(\x0C\x12\x16\x0A\x0Cappend_value\x18\x03 \x01(\x0CH\x00\x12\x1A\x0A\x10increment_amount\x18\x04 \x01(\x03H\x00B\x06\x0A\x04rule\"B\x0A\x0FStreamPartition\x12/\x0A\x09row_range\x18\x01 \x01(\x0B2\x1C.google.bigtable.v2.RowRange\"W\x0A\x18StreamContinuationTokens\x12;\x0A\x06tokens\x18\x01 \x03(\x0B2+.google.bigtable.v2.StreamContinuationToken\"`\x0A\x17StreamContinuationToken\x126\x0A\x09partition\x18\x01 \x01(\x0B2#.google.bigtable.v2.StreamPartition\x12\x0D\x0A\x05token\x18\x02 \x01(\x09\"\x0D\x0A\x0BProtoFormat\"F\x0A\x0EColumnMetadata\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12&\x0A\x04type\x18\x02 \x01(\x0B2\x18.google.bigtable.v2.Type\"B\x0A\x0BProtoSchema\x123\x0A\x07columns\x18\x01 \x03(\x0B2\".google.bigtable.v2.ColumnMetadata\"V\x0A\x11ResultSetMetadata\x127\x0A\x0Cproto_schema\x18\x01 \x01(\x0B2\x1F.google.bigtable.v2.ProtoSchemaH\x00B\x08\x0A\x06schema\"6\x0A\x09ProtoRows\x12)\x0A\x06values\x18\x02 \x03(\x0B2\x19.google.bigtable.v2.Value\"\$\x0A\x0EProtoRowsBatch\x12\x12\x0A\x0Abatch_data\x18\x01 \x01(\x0C\"\xD5\x01\x0A\x10PartialResultSet\x12>\x0A\x10proto_rows_batch\x18\x03 \x01(\x0B2\".google.bigtable.v2.ProtoRowsBatchH\x00\x12\x1B\x0A\x0Ebatch_checksum\x18\x06 \x01(\x0DH\x01\x88\x01\x01\x12\x14\x0A\x0Cresume_token\x18\x05 \x01(\x0C\x12\x0D\x0A\x05reset\x18\x07 \x01(\x08\x12\x1C\x0A\x14estimated_batch_size\x18\x04 \x01(\x05B\x0E\x0A\x0Cpartial_rowsB\x11\x0A\x0F_batch_checksum\"L\x0A\x0BIdempotency\x12\x0D\x0A\x05token\x18\x01 \x01(\x0C\x12.\x0A\x0Astart_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\xB3\x01\x0A\x16com.google.bigtable.v2B\x09DataProtoP\x01Z8cloud.google.com/go/bigtable/apiv2/bigtablepb;bigtablepb\xAA\x02\x18Google.Cloud.Bigtable.V2\xCA\x02\x18Google\\Cloud\\Bigtable\\V2\xEA\x02\x1BGoogle::Cloud::Bigtable::V2b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/FeatureFlags.php b/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/FeatureFlags.php new file mode 100644 index 000000000000..e61f0dfaca92 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/FeatureFlags.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xB6\x04\x0A&google/bigtable/v2/feature_flags.proto\x12\x12google.bigtable.v2\"\xB1\x02\x0A\x0CFeatureFlags\x12\x15\x0A\x0Dreverse_scans\x18\x01 \x01(\x08\x12\x1E\x0A\x16mutate_rows_rate_limit\x18\x03 \x01(\x08\x12\x1F\x0A\x17mutate_rows_rate_limit2\x18\x05 \x01(\x08\x12\"\x0A\x1Alast_scanned_row_responses\x18\x04 \x01(\x08\x12\x16\x0A\x0Erouting_cookie\x18\x06 \x01(\x08\x12\x12\x0A\x0Aretry_info\x18\x07 \x01(\x08\x12#\x0A\x1Bclient_side_metrics_enabled\x18\x08 \x01(\x08\x12 \x0A\x18traffic_director_enabled\x18\x09 \x01(\x08\x12\x1F\x0A\x17direct_access_requested\x18\x0A \x01(\x08\x12\x11\x0A\x09peer_info\x18\x0B \x01(\x08B\xBB\x01\x0A\x16com.google.bigtable.v2B\x11FeatureFlagsProtoP\x01Z8cloud.google.com/go/bigtable/apiv2/bigtablepb;bigtablepb\xAA\x02\x18Google.Cloud.Bigtable.V2\xCA\x02\x18Google\\Cloud\\Bigtable\\V2\xEA\x02\x1BGoogle::Cloud::Bigtable::V2b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/PeerInfo.php b/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/PeerInfo.php new file mode 100644 index 000000000000..87f25f93fd89 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/PeerInfo.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xF7\x05\x0A\"google/bigtable/v2/peer_info.proto\x12\x12google.bigtable.v2\"\xFA\x03\x0A\x08PeerInfo\x12\x1A\x0A\x12google_frontend_id\x18\x01 \x01(\x03\x12\x1F\x0A\x17application_frontend_id\x18\x02 \x01(\x03\x12!\x0A\x19application_frontend_zone\x18\x03 \x01(\x09\x12\$\x0A\x1Capplication_frontend_subzone\x18\x04 \x01(\x09\x12B\x0A\x0Etransport_type\x18\x05 \x01(\x0E2*.google.bigtable.v2.PeerInfo.TransportType\"\xA3\x02\x0A\x0DTransportType\x12\x1A\x0A\x16TRANSPORT_TYPE_UNKNOWN\x10\x00\x12\x1B\x0A\x17TRANSPORT_TYPE_EXTERNAL\x10\x01\x12\x1D\x0A\x19TRANSPORT_TYPE_CLOUD_PATH\x10\x02\x12 \x0A\x1CTRANSPORT_TYPE_DIRECT_ACCESS\x10\x03\x12\"\x0A\x1ETRANSPORT_TYPE_SESSION_UNKNOWN\x10\x04\x12#\x0A\x1FTRANSPORT_TYPE_SESSION_EXTERNAL\x10\x05\x12%\x0A!TRANSPORT_TYPE_SESSION_CLOUD_PATH\x10\x06\x12(\x0A\$TRANSPORT_TYPE_SESSION_DIRECT_ACCESS\x10\x07B\xB7\x01\x0A\x16com.google.bigtable.v2B\x0DPeerInfoProtoP\x01Z8cloud.google.com/go/bigtable/apiv2/bigtablepb;bigtablepb\xAA\x02\x18Google.Cloud.Bigtable.V2\xCA\x02\x18Google\\Cloud\\Bigtable\\V2\xEA\x02\x1BGoogle::Cloud::Bigtable::V2b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/RequestStats.php b/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/RequestStats.php new file mode 100644 index 000000000000..861dbd204c88 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/RequestStats.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xE3\x05\x0A&google/bigtable/v2/request_stats.proto\x12\x12google.bigtable.v2\"\x82\x01\x0A\x12ReadIterationStats\x12\x17\x0A\x0Frows_seen_count\x18\x01 \x01(\x03\x12\x1B\x0A\x13rows_returned_count\x18\x02 \x01(\x03\x12\x18\x0A\x10cells_seen_count\x18\x03 \x01(\x03\x12\x1C\x0A\x14cells_returned_count\x18\x04 \x01(\x03\"Q\x0A\x13RequestLatencyStats\x12:\x0A\x17frontend_server_latency\x18\x01 \x01(\x0B2\x19.google.protobuf.Duration\"\xA1\x01\x0A\x11FullReadStatsView\x12D\x0A\x14read_iteration_stats\x18\x01 \x01(\x0B2&.google.bigtable.v2.ReadIterationStats\x12F\x0A\x15request_latency_stats\x18\x02 \x01(\x0B2'.google.bigtable.v2.RequestLatencyStats\"c\x0A\x0CRequestStats\x12E\x0A\x14full_read_stats_view\x18\x01 \x01(\x0B2%.google.bigtable.v2.FullReadStatsViewH\x00B\x0C\x0A\x0Astats_viewB\xBB\x01\x0A\x16com.google.bigtable.v2B\x11RequestStatsProtoP\x01Z8cloud.google.com/go/bigtable/apiv2/bigtablepb;bigtablepb\xAA\x02\x18Google.Cloud.Bigtable.V2\xCA\x02\x18Google\\Cloud\\Bigtable\\V2\xEA\x02\x1BGoogle::Cloud::Bigtable::V2b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/ResponseParams.php b/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/ResponseParams.php new file mode 100644 index 000000000000..3aa59f156669 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/ResponseParams.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\x82\x03\x0A(google/bigtable/v2/response_params.proto\x12\x12google.bigtable.v2\"z\x0A\x0EResponseParams\x12\x14\x0A\x07zone_id\x18\x01 \x01(\x09H\x00\x88\x01\x01\x12\x17\x0A\x0Acluster_id\x18\x02 \x01(\x09H\x01\x88\x01\x01\x12\x13\x0A\x06afe_id\x18\x03 \x01(\x03H\x02\x88\x01\x01B\x0A\x0A\x08_zone_idB\x0D\x0A\x0B_cluster_idB\x09\x0A\x07_afe_idB\xBD\x01\x0A\x16com.google.bigtable.v2B\x13ResponseParamsProtoP\x01Z8cloud.google.com/go/bigtable/apiv2/bigtablepb;bigtablepb\xAA\x02\x18Google.Cloud.Bigtable.V2\xCA\x02\x18Google\\Cloud\\Bigtable\\V2\xEA\x02\x1BGoogle::Cloud::Bigtable::V2b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/Types.php b/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/Types.php new file mode 100644 index 000000000000..22732f7abedd --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/Types.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xFD\x19\x0A\x1Egoogle/bigtable/v2/types.proto\x12\x12google.bigtable.v2\"\x87\x18\x0A\x04Type\x124\x0A\x0Abytes_type\x18\x01 \x01(\x0B2\x1E.google.bigtable.v2.Type.BytesH\x00\x126\x0A\x0Bstring_type\x18\x02 \x01(\x0B2\x1F.google.bigtable.v2.Type.StringH\x00\x124\x0A\x0Aint64_type\x18\x05 \x01(\x0B2\x1E.google.bigtable.v2.Type.Int64H\x00\x128\x0A\x0Cfloat32_type\x18\x0C \x01(\x0B2 .google.bigtable.v2.Type.Float32H\x00\x128\x0A\x0Cfloat64_type\x18\x09 \x01(\x0B2 .google.bigtable.v2.Type.Float64H\x00\x122\x0A\x09bool_type\x18\x08 \x01(\x0B2\x1D.google.bigtable.v2.Type.BoolH\x00\x12<\x0A\x0Etimestamp_type\x18\x0A \x01(\x0B2\".google.bigtable.v2.Type.TimestampH\x00\x122\x0A\x09date_type\x18\x0B \x01(\x0B2\x1D.google.bigtable.v2.Type.DateH\x00\x12<\x0A\x0Eaggregate_type\x18\x06 \x01(\x0B2\".google.bigtable.v2.Type.AggregateH\x00\x126\x0A\x0Bstruct_type\x18\x07 \x01(\x0B2\x1F.google.bigtable.v2.Type.StructH\x00\x124\x0A\x0Aarray_type\x18\x03 \x01(\x0B2\x1E.google.bigtable.v2.Type.ArrayH\x00\x120\x0A\x08map_type\x18\x04 \x01(\x0B2\x1C.google.bigtable.v2.Type.MapH\x00\x124\x0A\x0Aproto_type\x18\x0D \x01(\x0B2\x1E.google.bigtable.v2.Type.ProtoH\x00\x122\x0A\x09enum_type\x18\x0E \x01(\x0B2\x1D.google.bigtable.v2.Type.EnumH\x00\x1A\xB3\x01\x0A\x05Bytes\x129\x0A\x08encoding\x18\x01 \x01(\x0B2'.google.bigtable.v2.Type.Bytes.Encoding\x1Ao\x0A\x08Encoding\x12:\x0A\x03raw\x18\x01 \x01(\x0B2+.google.bigtable.v2.Type.Bytes.Encoding.RawH\x00\x1A\x1B\x0A\x03Raw\x12\x14\x0A\x0Cescape_nulls\x18\x01 \x01(\x08B\x0A\x0A\x08encoding\x1A\xA7\x02\x0A\x06String\x12:\x0A\x08encoding\x18\x01 \x01(\x0B2(.google.bigtable.v2.Type.String.Encoding\x1A\xE0\x01\x0A\x08Encoding\x12H\x0A\x08utf8_raw\x18\x01 \x01(\x0B20.google.bigtable.v2.Type.String.Encoding.Utf8RawB\x02\x18\x01H\x00\x12H\x0A\x0Autf8_bytes\x18\x02 \x01(\x0B22.google.bigtable.v2.Type.String.Encoding.Utf8BytesH\x00\x1A\x0D\x0A\x07Utf8Raw:\x02\x18\x01\x1A%\x0A\x09Utf8Bytes\x12\x18\x0A\x10null_escape_char\x18\x01 \x01(\x09B\x0A\x0A\x08encoding\x1A\xE5\x02\x0A\x05Int64\x129\x0A\x08encoding\x18\x01 \x01(\x0B2'.google.bigtable.v2.Type.Int64.Encoding\x1A\xA0\x02\x0A\x08Encoding\x12R\x0A\x10big_endian_bytes\x18\x01 \x01(\x0B26.google.bigtable.v2.Type.Int64.Encoding.BigEndianBytesH\x00\x12V\x0A\x12ordered_code_bytes\x18\x02 \x01(\x0B28.google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytesH\x00\x1AH\x0A\x0EBigEndianBytes\x126\x0A\x0Abytes_type\x18\x01 \x01(\x0B2\x1E.google.bigtable.v2.Type.BytesB\x02\x18\x01\x1A\x12\x0A\x10OrderedCodeBytesB\x0A\x0A\x08encoding\x1A\x06\x0A\x04Bool\x1A\x09\x0A\x07Float32\x1A\x09\x0A\x07Float64\x1A\xA8\x01\x0A\x09Timestamp\x12=\x0A\x08encoding\x18\x01 \x01(\x0B2+.google.bigtable.v2.Type.Timestamp.Encoding\x1A\\\x0A\x08Encoding\x12D\x0A\x11unix_micros_int64\x18\x01 \x01(\x0B2'.google.bigtable.v2.Type.Int64.EncodingH\x00B\x0A\x0A\x08encoding\x1A\x06\x0A\x04Date\x1A\x95\x04\x0A\x06Struct\x125\x0A\x06fields\x18\x01 \x03(\x0B2%.google.bigtable.v2.Type.Struct.Field\x12:\x0A\x08encoding\x18\x02 \x01(\x0B2(.google.bigtable.v2.Type.Struct.Encoding\x1AC\x0A\x05Field\x12\x12\x0A\x0Afield_name\x18\x01 \x01(\x09\x12&\x0A\x04type\x18\x02 \x01(\x0B2\x18.google.bigtable.v2.Type\x1A\xD2\x02\x0A\x08Encoding\x12G\x0A\x09singleton\x18\x01 \x01(\x0B22.google.bigtable.v2.Type.Struct.Encoding.SingletonH\x00\x12R\x0A\x0Fdelimited_bytes\x18\x02 \x01(\x0B27.google.bigtable.v2.Type.Struct.Encoding.DelimitedBytesH\x00\x12W\x0A\x12ordered_code_bytes\x18\x03 \x01(\x0B29.google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytesH\x00\x1A\x0B\x0A\x09Singleton\x1A#\x0A\x0EDelimitedBytes\x12\x11\x0A\x09delimiter\x18\x01 \x01(\x0C\x1A\x12\x0A\x10OrderedCodeBytesB\x0A\x0A\x08encoding\x1A7\x0A\x05Proto\x12\x18\x0A\x10schema_bundle_id\x18\x01 \x01(\x09\x12\x14\x0A\x0Cmessage_name\x18\x02 \x01(\x09\x1A3\x0A\x04Enum\x12\x18\x0A\x10schema_bundle_id\x18\x01 \x01(\x09\x12\x11\x0A\x09enum_name\x18\x02 \x01(\x09\x1A7\x0A\x05Array\x12.\x0A\x0Celement_type\x18\x01 \x01(\x0B2\x18.google.bigtable.v2.Type\x1A_\x0A\x03Map\x12*\x0A\x08key_type\x18\x01 \x01(\x0B2\x18.google.bigtable.v2.Type\x12,\x0A\x0Avalue_type\x18\x02 \x01(\x0B2\x18.google.bigtable.v2.Type\x1A\xB7\x03\x0A\x09Aggregate\x12,\x0A\x0Ainput_type\x18\x01 \x01(\x0B2\x18.google.bigtable.v2.Type\x121\x0A\x0Astate_type\x18\x02 \x01(\x0B2\x18.google.bigtable.v2.TypeB\x03\xE0A\x03\x125\x0A\x03sum\x18\x04 \x01(\x0B2&.google.bigtable.v2.Type.Aggregate.SumH\x00\x12_\x0A\x12hllpp_unique_count\x18\x05 \x01(\x0B2A.google.bigtable.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCountH\x00\x125\x0A\x03max\x18\x06 \x01(\x0B2&.google.bigtable.v2.Type.Aggregate.MaxH\x00\x125\x0A\x03min\x18\x07 \x01(\x0B2&.google.bigtable.v2.Type.Aggregate.MinH\x00\x1A\x05\x0A\x03Sum\x1A\x05\x0A\x03Max\x1A\x05\x0A\x03Min\x1A \x0A\x1EHyperLogLogPlusPlusUniqueCountB\x0C\x0A\x0AaggregatorB\x06\x0A\x04kindB\xB4\x01\x0A\x16com.google.bigtable.v2B\x0ATypesProtoP\x01Z8cloud.google.com/go/bigtable/apiv2/bigtablepb;bigtablepb\xAA\x02\x18Google.Cloud.Bigtable.V2\xCA\x02\x18Google\\Cloud\\Bigtable\\V2\xEA\x02\x1BGoogle::Cloud::Bigtable::V2b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ArrayValue.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ArrayValue.php new file mode 100644 index 000000000000..88a88072bdd3 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ArrayValue.php @@ -0,0 +1,67 @@ +google.bigtable.v2.ArrayValue + */ +class ArrayValue extends \Google\Protobuf\Internal\Message +{ + /** + * The ordered elements in the array. + * + * Generated from protobuf field repeated .google.bigtable.v2.Value values = 1; + */ + private $values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\Value[] $values + * The ordered elements in the array. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); + parent::__construct($data); + } + + /** + * The ordered elements in the array. + * + * Generated from protobuf field repeated .google.bigtable.v2.Value values = 1; + * @return RepeatedField<\Google\Cloud\Bigtable\V2\Value> + */ + public function getValues() + { + return $this->values; + } + + /** + * The ordered elements in the array. + * + * Generated from protobuf field repeated .google.bigtable.v2.Value values = 1; + * @param \Google\Cloud\Bigtable\V2\Value[] $var + * @return $this + */ + public function setValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\Value::class); + $this->values = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Cell.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Cell.php new file mode 100644 index 000000000000..d3d11ad27e82 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Cell.php @@ -0,0 +1,163 @@ +google.bigtable.v2.Cell + */ +class Cell extends \Google\Protobuf\Internal\Message +{ + /** + * The cell's stored timestamp, which also uniquely identifies it within + * its column. + * Values are always expressed in microseconds, but individual tables may set + * a coarser granularity to further restrict the allowed values. For + * example, a table which specifies millisecond granularity will only allow + * values of `timestamp_micros` which are multiples of 1000. + * + * Generated from protobuf field int64 timestamp_micros = 1; + */ + protected $timestamp_micros = 0; + /** + * The value stored in the cell. + * May contain any byte string, including the empty string, up to 100MiB in + * length. + * + * Generated from protobuf field bytes value = 2; + */ + protected $value = ''; + /** + * Labels applied to the cell by a [RowFilter][google.bigtable.v2.RowFilter]. + * + * Generated from protobuf field repeated string labels = 3; + */ + private $labels; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $timestamp_micros + * The cell's stored timestamp, which also uniquely identifies it within + * its column. + * Values are always expressed in microseconds, but individual tables may set + * a coarser granularity to further restrict the allowed values. For + * example, a table which specifies millisecond granularity will only allow + * values of `timestamp_micros` which are multiples of 1000. + * @type string $value + * The value stored in the cell. + * May contain any byte string, including the empty string, up to 100MiB in + * length. + * @type string[] $labels + * Labels applied to the cell by a [RowFilter][google.bigtable.v2.RowFilter]. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); + parent::__construct($data); + } + + /** + * The cell's stored timestamp, which also uniquely identifies it within + * its column. + * Values are always expressed in microseconds, but individual tables may set + * a coarser granularity to further restrict the allowed values. For + * example, a table which specifies millisecond granularity will only allow + * values of `timestamp_micros` which are multiples of 1000. + * + * Generated from protobuf field int64 timestamp_micros = 1; + * @return int|string + */ + public function getTimestampMicros() + { + return $this->timestamp_micros; + } + + /** + * The cell's stored timestamp, which also uniquely identifies it within + * its column. + * Values are always expressed in microseconds, but individual tables may set + * a coarser granularity to further restrict the allowed values. For + * example, a table which specifies millisecond granularity will only allow + * values of `timestamp_micros` which are multiples of 1000. + * + * Generated from protobuf field int64 timestamp_micros = 1; + * @param int|string $var + * @return $this + */ + public function setTimestampMicros($var) + { + GPBUtil::checkInt64($var); + $this->timestamp_micros = $var; + + return $this; + } + + /** + * The value stored in the cell. + * May contain any byte string, including the empty string, up to 100MiB in + * length. + * + * Generated from protobuf field bytes value = 2; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * The value stored in the cell. + * May contain any byte string, including the empty string, up to 100MiB in + * length. + * + * Generated from protobuf field bytes value = 2; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, False); + $this->value = $var; + + return $this; + } + + /** + * Labels applied to the cell by a [RowFilter][google.bigtable.v2.RowFilter]. + * + * Generated from protobuf field repeated string labels = 3; + * @return RepeatedField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Labels applied to the cell by a [RowFilter][google.bigtable.v2.RowFilter]. + * + * Generated from protobuf field repeated string labels = 3; + * @param string[] $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/CheckAndMutateRowRequest.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/CheckAndMutateRowRequest.php new file mode 100644 index 000000000000..6a2e215f8b0b --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/CheckAndMutateRowRequest.php @@ -0,0 +1,436 @@ +google.bigtable.v2.CheckAndMutateRowRequest + */ +class CheckAndMutateRowRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The unique name of the table to which the conditional mutation + * should be applied. + * Values are of the form + * `projects//instances//tables/
`. + * + * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $table_name = ''; + /** + * Optional. The unique name of the AuthorizedView to which the conditional + * mutation should be applied. + * Values are of the form + * `projects//instances//tables/
/authorizedViews/`. + * + * Generated from protobuf field string authorized_view_name = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $authorized_view_name = ''; + /** + * This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * + * Generated from protobuf field string app_profile_id = 7; + */ + protected $app_profile_id = ''; + /** + * Required. The key of the row to which the conditional mutation should be + * applied. + * + * Generated from protobuf field bytes row_key = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $row_key = ''; + /** + * The filter to be applied to the contents of the specified row. Depending + * on whether or not any results are yielded, either `true_mutations` or + * `false_mutations` will be executed. If unset, checks that the row contains + * any values at all. + * + * Generated from protobuf field .google.bigtable.v2.RowFilter predicate_filter = 6; + */ + protected $predicate_filter = null; + /** + * Changes to be atomically applied to the specified row if `predicate_filter` + * yields at least one cell when applied to `row_key`. Entries are applied in + * order, meaning that earlier mutations can be masked by later ones. + * Must contain at least one entry if `false_mutations` is empty, and at most + * 100000. + * + * Generated from protobuf field repeated .google.bigtable.v2.Mutation true_mutations = 4; + */ + private $true_mutations; + /** + * Changes to be atomically applied to the specified row if `predicate_filter` + * does not yield any cells when applied to `row_key`. Entries are applied in + * order, meaning that earlier mutations can be masked by later ones. + * Must contain at least one entry if `true_mutations` is empty, and at most + * 100000. + * + * Generated from protobuf field repeated .google.bigtable.v2.Mutation false_mutations = 5; + */ + private $false_mutations; + + /** + * @param string $tableName Optional. The unique name of the table to which the conditional mutation + * should be applied. + * + * Values are of the form + * `projects//instances//tables/
`. Please see + * {@see BigtableClient::tableName()} for help formatting this field. + * @param string $rowKey Required. The key of the row to which the conditional mutation should be + * applied. + * @param \Google\Cloud\Bigtable\V2\RowFilter $predicateFilter The filter to be applied to the contents of the specified row. Depending + * on whether or not any results are yielded, either `true_mutations` or + * `false_mutations` will be executed. If unset, checks that the row contains + * any values at all. + * @param \Google\Cloud\Bigtable\V2\Mutation[] $trueMutations Changes to be atomically applied to the specified row if `predicate_filter` + * yields at least one cell when applied to `row_key`. Entries are applied in + * order, meaning that earlier mutations can be masked by later ones. + * Must contain at least one entry if `false_mutations` is empty, and at most + * 100000. + * @param \Google\Cloud\Bigtable\V2\Mutation[] $falseMutations Changes to be atomically applied to the specified row if `predicate_filter` + * does not yield any cells when applied to `row_key`. Entries are applied in + * order, meaning that earlier mutations can be masked by later ones. + * Must contain at least one entry if `true_mutations` is empty, and at most + * 100000. + * + * @return \Google\Cloud\Bigtable\V2\CheckAndMutateRowRequest + * + * @experimental + */ + public static function build(string $tableName, string $rowKey, \Google\Cloud\Bigtable\V2\RowFilter $predicateFilter, array $trueMutations, array $falseMutations): self + { + return (new self()) + ->setTableName($tableName) + ->setRowKey($rowKey) + ->setPredicateFilter($predicateFilter) + ->setTrueMutations($trueMutations) + ->setFalseMutations($falseMutations); + } + + /** + * @param string $tableName Optional. The unique name of the table to which the conditional mutation + * should be applied. + * + * Values are of the form + * `projects//instances//tables/
`. Please see + * {@see BigtableClient::tableName()} for help formatting this field. + * @param string $rowKey Required. The key of the row to which the conditional mutation should be + * applied. + * @param \Google\Cloud\Bigtable\V2\RowFilter $predicateFilter The filter to be applied to the contents of the specified row. Depending + * on whether or not any results are yielded, either `true_mutations` or + * `false_mutations` will be executed. If unset, checks that the row contains + * any values at all. + * @param \Google\Cloud\Bigtable\V2\Mutation[] $trueMutations Changes to be atomically applied to the specified row if `predicate_filter` + * yields at least one cell when applied to `row_key`. Entries are applied in + * order, meaning that earlier mutations can be masked by later ones. + * Must contain at least one entry if `false_mutations` is empty, and at most + * 100000. + * @param \Google\Cloud\Bigtable\V2\Mutation[] $falseMutations Changes to be atomically applied to the specified row if `predicate_filter` + * does not yield any cells when applied to `row_key`. Entries are applied in + * order, meaning that earlier mutations can be masked by later ones. + * Must contain at least one entry if `true_mutations` is empty, and at most + * 100000. + * @param string $appProfileId This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * + * @return \Google\Cloud\Bigtable\V2\CheckAndMutateRowRequest + * + * @experimental + */ + public static function buildFromTableNameRowKeyPredicateFilterTrueMutationsFalseMutationsAppProfileId(string $tableName, string $rowKey, \Google\Cloud\Bigtable\V2\RowFilter $predicateFilter, array $trueMutations, array $falseMutations, string $appProfileId): self + { + return (new self()) + ->setTableName($tableName) + ->setRowKey($rowKey) + ->setPredicateFilter($predicateFilter) + ->setTrueMutations($trueMutations) + ->setFalseMutations($falseMutations) + ->setAppProfileId($appProfileId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $table_name + * Optional. The unique name of the table to which the conditional mutation + * should be applied. + * Values are of the form + * `projects//instances//tables/
`. + * @type string $authorized_view_name + * Optional. The unique name of the AuthorizedView to which the conditional + * mutation should be applied. + * Values are of the form + * `projects//instances//tables/
/authorizedViews/`. + * @type string $app_profile_id + * This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * @type string $row_key + * Required. The key of the row to which the conditional mutation should be + * applied. + * @type \Google\Cloud\Bigtable\V2\RowFilter $predicate_filter + * The filter to be applied to the contents of the specified row. Depending + * on whether or not any results are yielded, either `true_mutations` or + * `false_mutations` will be executed. If unset, checks that the row contains + * any values at all. + * @type \Google\Cloud\Bigtable\V2\Mutation[] $true_mutations + * Changes to be atomically applied to the specified row if `predicate_filter` + * yields at least one cell when applied to `row_key`. Entries are applied in + * order, meaning that earlier mutations can be masked by later ones. + * Must contain at least one entry if `false_mutations` is empty, and at most + * 100000. + * @type \Google\Cloud\Bigtable\V2\Mutation[] $false_mutations + * Changes to be atomically applied to the specified row if `predicate_filter` + * does not yield any cells when applied to `row_key`. Entries are applied in + * order, meaning that earlier mutations can be masked by later ones. + * Must contain at least one entry if `true_mutations` is empty, and at most + * 100000. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The unique name of the table to which the conditional mutation + * should be applied. + * Values are of the form + * `projects//instances//tables/
`. + * + * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getTableName() + { + return $this->table_name; + } + + /** + * Optional. The unique name of the table to which the conditional mutation + * should be applied. + * Values are of the form + * `projects//instances//tables/
`. + * + * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setTableName($var) + { + GPBUtil::checkString($var, True); + $this->table_name = $var; + + return $this; + } + + /** + * Optional. The unique name of the AuthorizedView to which the conditional + * mutation should be applied. + * Values are of the form + * `projects//instances//tables/
/authorizedViews/`. + * + * Generated from protobuf field string authorized_view_name = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getAuthorizedViewName() + { + return $this->authorized_view_name; + } + + /** + * Optional. The unique name of the AuthorizedView to which the conditional + * mutation should be applied. + * Values are of the form + * `projects//instances//tables/
/authorizedViews/`. + * + * Generated from protobuf field string authorized_view_name = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setAuthorizedViewName($var) + { + GPBUtil::checkString($var, True); + $this->authorized_view_name = $var; + + return $this; + } + + /** + * This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * + * Generated from protobuf field string app_profile_id = 7; + * @return string + */ + public function getAppProfileId() + { + return $this->app_profile_id; + } + + /** + * This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * + * Generated from protobuf field string app_profile_id = 7; + * @param string $var + * @return $this + */ + public function setAppProfileId($var) + { + GPBUtil::checkString($var, True); + $this->app_profile_id = $var; + + return $this; + } + + /** + * Required. The key of the row to which the conditional mutation should be + * applied. + * + * Generated from protobuf field bytes row_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getRowKey() + { + return $this->row_key; + } + + /** + * Required. The key of the row to which the conditional mutation should be + * applied. + * + * Generated from protobuf field bytes row_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setRowKey($var) + { + GPBUtil::checkString($var, False); + $this->row_key = $var; + + return $this; + } + + /** + * The filter to be applied to the contents of the specified row. Depending + * on whether or not any results are yielded, either `true_mutations` or + * `false_mutations` will be executed. If unset, checks that the row contains + * any values at all. + * + * Generated from protobuf field .google.bigtable.v2.RowFilter predicate_filter = 6; + * @return \Google\Cloud\Bigtable\V2\RowFilter|null + */ + public function getPredicateFilter() + { + return $this->predicate_filter; + } + + public function hasPredicateFilter() + { + return isset($this->predicate_filter); + } + + public function clearPredicateFilter() + { + unset($this->predicate_filter); + } + + /** + * The filter to be applied to the contents of the specified row. Depending + * on whether or not any results are yielded, either `true_mutations` or + * `false_mutations` will be executed. If unset, checks that the row contains + * any values at all. + * + * Generated from protobuf field .google.bigtable.v2.RowFilter predicate_filter = 6; + * @param \Google\Cloud\Bigtable\V2\RowFilter $var + * @return $this + */ + public function setPredicateFilter($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\RowFilter::class); + $this->predicate_filter = $var; + + return $this; + } + + /** + * Changes to be atomically applied to the specified row if `predicate_filter` + * yields at least one cell when applied to `row_key`. Entries are applied in + * order, meaning that earlier mutations can be masked by later ones. + * Must contain at least one entry if `false_mutations` is empty, and at most + * 100000. + * + * Generated from protobuf field repeated .google.bigtable.v2.Mutation true_mutations = 4; + * @return RepeatedField<\Google\Cloud\Bigtable\V2\Mutation> + */ + public function getTrueMutations() + { + return $this->true_mutations; + } + + /** + * Changes to be atomically applied to the specified row if `predicate_filter` + * yields at least one cell when applied to `row_key`. Entries are applied in + * order, meaning that earlier mutations can be masked by later ones. + * Must contain at least one entry if `false_mutations` is empty, and at most + * 100000. + * + * Generated from protobuf field repeated .google.bigtable.v2.Mutation true_mutations = 4; + * @param \Google\Cloud\Bigtable\V2\Mutation[] $var + * @return $this + */ + public function setTrueMutations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\Mutation::class); + $this->true_mutations = $arr; + + return $this; + } + + /** + * Changes to be atomically applied to the specified row if `predicate_filter` + * does not yield any cells when applied to `row_key`. Entries are applied in + * order, meaning that earlier mutations can be masked by later ones. + * Must contain at least one entry if `true_mutations` is empty, and at most + * 100000. + * + * Generated from protobuf field repeated .google.bigtable.v2.Mutation false_mutations = 5; + * @return RepeatedField<\Google\Cloud\Bigtable\V2\Mutation> + */ + public function getFalseMutations() + { + return $this->false_mutations; + } + + /** + * Changes to be atomically applied to the specified row if `predicate_filter` + * does not yield any cells when applied to `row_key`. Entries are applied in + * order, meaning that earlier mutations can be masked by later ones. + * Must contain at least one entry if `true_mutations` is empty, and at most + * 100000. + * + * Generated from protobuf field repeated .google.bigtable.v2.Mutation false_mutations = 5; + * @param \Google\Cloud\Bigtable\V2\Mutation[] $var + * @return $this + */ + public function setFalseMutations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\Mutation::class); + $this->false_mutations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/CheckAndMutateRowResponse.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/CheckAndMutateRowResponse.php new file mode 100644 index 000000000000..4efd11f80ffa --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/CheckAndMutateRowResponse.php @@ -0,0 +1,71 @@ +google.bigtable.v2.CheckAndMutateRowResponse + */ +class CheckAndMutateRowResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Whether or not the request's `predicate_filter` yielded any results for + * the specified row. + * + * Generated from protobuf field bool predicate_matched = 1; + */ + protected $predicate_matched = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $predicate_matched + * Whether or not the request's `predicate_filter` yielded any results for + * the specified row. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); + parent::__construct($data); + } + + /** + * Whether or not the request's `predicate_filter` yielded any results for + * the specified row. + * + * Generated from protobuf field bool predicate_matched = 1; + * @return bool + */ + public function getPredicateMatched() + { + return $this->predicate_matched; + } + + /** + * Whether or not the request's `predicate_filter` yielded any results for + * the specified row. + * + * Generated from protobuf field bool predicate_matched = 1; + * @param bool $var + * @return $this + */ + public function setPredicateMatched($var) + { + GPBUtil::checkBool($var); + $this->predicate_matched = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Column.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Column.php new file mode 100644 index 000000000000..8bcede78d40e --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Column.php @@ -0,0 +1,118 @@ +google.bigtable.v2.Column + */ +class Column extends \Google\Protobuf\Internal\Message +{ + /** + * The unique key which identifies this column within its family. This is the + * same key that's used to identify the column in, for example, a RowFilter + * which sets its `column_qualifier_regex_filter` field. + * May contain any byte string, including the empty string, up to 16kiB in + * length. + * + * Generated from protobuf field bytes qualifier = 1; + */ + protected $qualifier = ''; + /** + * Must not be empty. Sorted in order of decreasing "timestamp_micros". + * + * Generated from protobuf field repeated .google.bigtable.v2.Cell cells = 2; + */ + private $cells; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $qualifier + * The unique key which identifies this column within its family. This is the + * same key that's used to identify the column in, for example, a RowFilter + * which sets its `column_qualifier_regex_filter` field. + * May contain any byte string, including the empty string, up to 16kiB in + * length. + * @type \Google\Cloud\Bigtable\V2\Cell[] $cells + * Must not be empty. Sorted in order of decreasing "timestamp_micros". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); + parent::__construct($data); + } + + /** + * The unique key which identifies this column within its family. This is the + * same key that's used to identify the column in, for example, a RowFilter + * which sets its `column_qualifier_regex_filter` field. + * May contain any byte string, including the empty string, up to 16kiB in + * length. + * + * Generated from protobuf field bytes qualifier = 1; + * @return string + */ + public function getQualifier() + { + return $this->qualifier; + } + + /** + * The unique key which identifies this column within its family. This is the + * same key that's used to identify the column in, for example, a RowFilter + * which sets its `column_qualifier_regex_filter` field. + * May contain any byte string, including the empty string, up to 16kiB in + * length. + * + * Generated from protobuf field bytes qualifier = 1; + * @param string $var + * @return $this + */ + public function setQualifier($var) + { + GPBUtil::checkString($var, False); + $this->qualifier = $var; + + return $this; + } + + /** + * Must not be empty. Sorted in order of decreasing "timestamp_micros". + * + * Generated from protobuf field repeated .google.bigtable.v2.Cell cells = 2; + * @return RepeatedField<\Google\Cloud\Bigtable\V2\Cell> + */ + public function getCells() + { + return $this->cells; + } + + /** + * Must not be empty. Sorted in order of decreasing "timestamp_micros". + * + * Generated from protobuf field repeated .google.bigtable.v2.Cell cells = 2; + * @param \Google\Cloud\Bigtable\V2\Cell[] $var + * @return $this + */ + public function setCells($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\Cell::class); + $this->cells = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ColumnMetadata.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ColumnMetadata.php new file mode 100644 index 000000000000..4738addc9a74 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ColumnMetadata.php @@ -0,0 +1,111 @@ +google.bigtable.v2.ColumnMetadata + */ +class ColumnMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the column. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * The type of the column. + * + * Generated from protobuf field .google.bigtable.v2.Type type = 2; + */ + protected $type = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of the column. + * @type \Google\Cloud\Bigtable\V2\Type $type + * The type of the column. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); + parent::__construct($data); + } + + /** + * The name of the column. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of the column. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The type of the column. + * + * Generated from protobuf field .google.bigtable.v2.Type type = 2; + * @return \Google\Cloud\Bigtable\V2\Type|null + */ + public function getType() + { + return $this->type; + } + + public function hasType() + { + return isset($this->type); + } + + public function clearType() + { + unset($this->type); + } + + /** + * The type of the column. + * + * Generated from protobuf field .google.bigtable.v2.Type type = 2; + * @param \Google\Cloud\Bigtable\V2\Type $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type::class); + $this->type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ColumnRange.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ColumnRange.php new file mode 100644 index 000000000000..5a7c43ac4185 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ColumnRange.php @@ -0,0 +1,220 @@ +google.bigtable.v2.ColumnRange + */ +class ColumnRange extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the column family within which this range falls. + * + * Generated from protobuf field string family_name = 1; + */ + protected $family_name = ''; + protected $start_qualifier; + protected $end_qualifier; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $family_name + * The name of the column family within which this range falls. + * @type string $start_qualifier_closed + * Used when giving an inclusive lower bound for the range. + * @type string $start_qualifier_open + * Used when giving an exclusive lower bound for the range. + * @type string $end_qualifier_closed + * Used when giving an inclusive upper bound for the range. + * @type string $end_qualifier_open + * Used when giving an exclusive upper bound for the range. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); + parent::__construct($data); + } + + /** + * The name of the column family within which this range falls. + * + * Generated from protobuf field string family_name = 1; + * @return string + */ + public function getFamilyName() + { + return $this->family_name; + } + + /** + * The name of the column family within which this range falls. + * + * Generated from protobuf field string family_name = 1; + * @param string $var + * @return $this + */ + public function setFamilyName($var) + { + GPBUtil::checkString($var, True); + $this->family_name = $var; + + return $this; + } + + /** + * Used when giving an inclusive lower bound for the range. + * + * Generated from protobuf field bytes start_qualifier_closed = 2; + * @return string + */ + public function getStartQualifierClosed() + { + return $this->readOneof(2); + } + + public function hasStartQualifierClosed() + { + return $this->hasOneof(2); + } + + /** + * Used when giving an inclusive lower bound for the range. + * + * Generated from protobuf field bytes start_qualifier_closed = 2; + * @param string $var + * @return $this + */ + public function setStartQualifierClosed($var) + { + GPBUtil::checkString($var, False); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Used when giving an exclusive lower bound for the range. + * + * Generated from protobuf field bytes start_qualifier_open = 3; + * @return string + */ + public function getStartQualifierOpen() + { + return $this->readOneof(3); + } + + public function hasStartQualifierOpen() + { + return $this->hasOneof(3); + } + + /** + * Used when giving an exclusive lower bound for the range. + * + * Generated from protobuf field bytes start_qualifier_open = 3; + * @param string $var + * @return $this + */ + public function setStartQualifierOpen($var) + { + GPBUtil::checkString($var, False); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Used when giving an inclusive upper bound for the range. + * + * Generated from protobuf field bytes end_qualifier_closed = 4; + * @return string + */ + public function getEndQualifierClosed() + { + return $this->readOneof(4); + } + + public function hasEndQualifierClosed() + { + return $this->hasOneof(4); + } + + /** + * Used when giving an inclusive upper bound for the range. + * + * Generated from protobuf field bytes end_qualifier_closed = 4; + * @param string $var + * @return $this + */ + public function setEndQualifierClosed($var) + { + GPBUtil::checkString($var, False); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Used when giving an exclusive upper bound for the range. + * + * Generated from protobuf field bytes end_qualifier_open = 5; + * @return string + */ + public function getEndQualifierOpen() + { + return $this->readOneof(5); + } + + public function hasEndQualifierOpen() + { + return $this->hasOneof(5); + } + + /** + * Used when giving an exclusive upper bound for the range. + * + * Generated from protobuf field bytes end_qualifier_open = 5; + * @param string $var + * @return $this + */ + public function setEndQualifierOpen($var) + { + GPBUtil::checkString($var, False); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * @return string + */ + public function getStartQualifier() + { + return $this->whichOneof("start_qualifier"); + } + + /** + * @return string + */ + public function getEndQualifier() + { + return $this->whichOneof("end_qualifier"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ExecuteQueryRequest.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ExecuteQueryRequest.php new file mode 100644 index 000000000000..5885a4f8debd --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ExecuteQueryRequest.php @@ -0,0 +1,483 @@ +google.bigtable.v2.ExecuteQueryRequest + */ +class ExecuteQueryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the instance against which the query should be + * executed. + * Values are of the form `projects//instances/` + * + * Generated from protobuf field string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $instance_name = ''; + /** + * Optional. This value specifies routing for replication. If not specified, + * the `default` application profile will be used. + * + * Generated from protobuf field string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $app_profile_id = ''; + /** + * Required. The query string. + * Exactly one of `query` and `prepared_query` is required. Setting both + * or neither is an `INVALID_ARGUMENT`. + * + * Generated from protobuf field string query = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated + */ + protected $query = ''; + /** + * A prepared query that was returned from `PrepareQueryResponse`. + * Exactly one of `query` and `prepared_query` is required. Setting both + * or neither is an `INVALID_ARGUMENT`. + * Setting this field also places restrictions on several other fields: + * - `data_format` must be empty. + * - `validate_only` must be false. + * - `params` must match the `param_types` set in the `PrepareQueryRequest`. + * + * Generated from protobuf field bytes prepared_query = 9; + */ + protected $prepared_query = ''; + /** + * Optional. If this request is resuming a previously interrupted query + * execution, `resume_token` should be copied from the last + * PartialResultSet yielded before the interruption. Doing this + * enables the query execution to resume where the last one left + * off. + * The rest of the request parameters must exactly match the + * request that yielded this token. Otherwise the request will fail. + * + * Generated from protobuf field bytes resume_token = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $resume_token = ''; + /** + * Required. params contains string type keys and Bigtable type values that + * bind to placeholders in the query string. In query string, a parameter + * placeholder consists of the + * `\@` character followed by the parameter name (for example, `\@firstName`) in + * the query string. + * For example, if + * `params["firstName"] = bytes_value: "foo" type {bytes_type {}}` + * then `\@firstName` will be replaced with googlesql bytes value "foo" in the + * query string during query evaluation. + * If `Value.kind` is not set, the value is treated as a NULL value of the + * given type. For example, if + * `params["firstName"] = type {string_type {}}` + * then `\@firstName` will be replaced with googlesql null string. + * If `query` is set, any empty `Value.type` in the map will be rejected with + * `INVALID_ARGUMENT`. + * If `prepared_query` is set, any empty `Value.type` in the map will be + * inferred from the `param_types` in the `PrepareQueryRequest`. Any non-empty + * `Value.type` must match the corresponding `param_types` entry, or be + * rejected with `INVALID_ARGUMENT`. + * + * Generated from protobuf field map params = 7 [(.google.api.field_behavior) = REQUIRED]; + */ + private $params; + protected $data_format; + + /** + * @param string $instanceName Required. The unique name of the instance against which the query should be + * executed. + * Values are of the form `projects//instances/` + * Please see {@see BigtableClient::instanceName()} for help formatting this field. + * @param string $query Required. The query string. + * + * Exactly one of `query` and `prepared_query` is required. Setting both + * or neither is an `INVALID_ARGUMENT`. + * + * @return \Google\Cloud\Bigtable\V2\ExecuteQueryRequest + * + * @experimental + */ + public static function build(string $instanceName, string $query): self + { + return (new self()) + ->setInstanceName($instanceName) + ->setQuery($query); + } + + /** + * @param string $instanceName Required. The unique name of the instance against which the query should be + * executed. + * Values are of the form `projects//instances/` + * Please see {@see BigtableClient::instanceName()} for help formatting this field. + * @param string $query Required. The query string. + * + * Exactly one of `query` and `prepared_query` is required. Setting both + * or neither is an `INVALID_ARGUMENT`. + * @param string $appProfileId Optional. This value specifies routing for replication. If not specified, + * the `default` application profile will be used. + * + * @return \Google\Cloud\Bigtable\V2\ExecuteQueryRequest + * + * @experimental + */ + public static function buildFromInstanceNameQueryAppProfileId(string $instanceName, string $query, string $appProfileId): self + { + return (new self()) + ->setInstanceName($instanceName) + ->setQuery($query) + ->setAppProfileId($appProfileId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $instance_name + * Required. The unique name of the instance against which the query should be + * executed. + * Values are of the form `projects//instances/` + * @type string $app_profile_id + * Optional. This value specifies routing for replication. If not specified, + * the `default` application profile will be used. + * @type string $query + * Required. The query string. + * Exactly one of `query` and `prepared_query` is required. Setting both + * or neither is an `INVALID_ARGUMENT`. + * @type string $prepared_query + * A prepared query that was returned from `PrepareQueryResponse`. + * Exactly one of `query` and `prepared_query` is required. Setting both + * or neither is an `INVALID_ARGUMENT`. + * Setting this field also places restrictions on several other fields: + * - `data_format` must be empty. + * - `validate_only` must be false. + * - `params` must match the `param_types` set in the `PrepareQueryRequest`. + * @type \Google\Cloud\Bigtable\V2\ProtoFormat $proto_format + * Protocol buffer format as described by ProtoSchema and ProtoRows + * messages. + * @type string $resume_token + * Optional. If this request is resuming a previously interrupted query + * execution, `resume_token` should be copied from the last + * PartialResultSet yielded before the interruption. Doing this + * enables the query execution to resume where the last one left + * off. + * The rest of the request parameters must exactly match the + * request that yielded this token. Otherwise the request will fail. + * @type array|\Google\Protobuf\Internal\MapField $params + * Required. params contains string type keys and Bigtable type values that + * bind to placeholders in the query string. In query string, a parameter + * placeholder consists of the + * `\@` character followed by the parameter name (for example, `\@firstName`) in + * the query string. + * For example, if + * `params["firstName"] = bytes_value: "foo" type {bytes_type {}}` + * then `\@firstName` will be replaced with googlesql bytes value "foo" in the + * query string during query evaluation. + * If `Value.kind` is not set, the value is treated as a NULL value of the + * given type. For example, if + * `params["firstName"] = type {string_type {}}` + * then `\@firstName` will be replaced with googlesql null string. + * If `query` is set, any empty `Value.type` in the map will be rejected with + * `INVALID_ARGUMENT`. + * If `prepared_query` is set, any empty `Value.type` in the map will be + * inferred from the `param_types` in the `PrepareQueryRequest`. Any non-empty + * `Value.type` must match the corresponding `param_types` entry, or be + * rejected with `INVALID_ARGUMENT`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the instance against which the query should be + * executed. + * Values are of the form `projects//instances/` + * + * Generated from protobuf field string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getInstanceName() + { + return $this->instance_name; + } + + /** + * Required. The unique name of the instance against which the query should be + * executed. + * Values are of the form `projects//instances/` + * + * Generated from protobuf field string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setInstanceName($var) + { + GPBUtil::checkString($var, True); + $this->instance_name = $var; + + return $this; + } + + /** + * Optional. This value specifies routing for replication. If not specified, + * the `default` application profile will be used. + * + * Generated from protobuf field string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getAppProfileId() + { + return $this->app_profile_id; + } + + /** + * Optional. This value specifies routing for replication. If not specified, + * the `default` application profile will be used. + * + * Generated from protobuf field string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setAppProfileId($var) + { + GPBUtil::checkString($var, True); + $this->app_profile_id = $var; + + return $this; + } + + /** + * Required. The query string. + * Exactly one of `query` and `prepared_query` is required. Setting both + * or neither is an `INVALID_ARGUMENT`. + * + * Generated from protobuf field string query = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @return string + * @deprecated + */ + public function getQuery() + { + if ($this->query !== '') { + @trigger_error('query is deprecated.', E_USER_DEPRECATED); + } + return $this->query; + } + + /** + * Required. The query string. + * Exactly one of `query` and `prepared_query` is required. Setting both + * or neither is an `INVALID_ARGUMENT`. + * + * Generated from protobuf field string query = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + * @deprecated + */ + public function setQuery($var) + { + @trigger_error('query is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->query = $var; + + return $this; + } + + /** + * A prepared query that was returned from `PrepareQueryResponse`. + * Exactly one of `query` and `prepared_query` is required. Setting both + * or neither is an `INVALID_ARGUMENT`. + * Setting this field also places restrictions on several other fields: + * - `data_format` must be empty. + * - `validate_only` must be false. + * - `params` must match the `param_types` set in the `PrepareQueryRequest`. + * + * Generated from protobuf field bytes prepared_query = 9; + * @return string + */ + public function getPreparedQuery() + { + return $this->prepared_query; + } + + /** + * A prepared query that was returned from `PrepareQueryResponse`. + * Exactly one of `query` and `prepared_query` is required. Setting both + * or neither is an `INVALID_ARGUMENT`. + * Setting this field also places restrictions on several other fields: + * - `data_format` must be empty. + * - `validate_only` must be false. + * - `params` must match the `param_types` set in the `PrepareQueryRequest`. + * + * Generated from protobuf field bytes prepared_query = 9; + * @param string $var + * @return $this + */ + public function setPreparedQuery($var) + { + GPBUtil::checkString($var, False); + $this->prepared_query = $var; + + return $this; + } + + /** + * Protocol buffer format as described by ProtoSchema and ProtoRows + * messages. + * + * Generated from protobuf field .google.bigtable.v2.ProtoFormat proto_format = 4 [deprecated = true]; + * @return \Google\Cloud\Bigtable\V2\ProtoFormat|null + * @deprecated + */ + public function getProtoFormat() + { + if ($this->hasOneof(4)) { + @trigger_error('proto_format is deprecated.', E_USER_DEPRECATED); + } + return $this->readOneof(4); + } + + public function hasProtoFormat() + { + if ($this->hasOneof(4)) { + @trigger_error('proto_format is deprecated.', E_USER_DEPRECATED); + } + return $this->hasOneof(4); + } + + /** + * Protocol buffer format as described by ProtoSchema and ProtoRows + * messages. + * + * Generated from protobuf field .google.bigtable.v2.ProtoFormat proto_format = 4 [deprecated = true]; + * @param \Google\Cloud\Bigtable\V2\ProtoFormat $var + * @return $this + * @deprecated + */ + public function setProtoFormat($var) + { + @trigger_error('proto_format is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\ProtoFormat::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Optional. If this request is resuming a previously interrupted query + * execution, `resume_token` should be copied from the last + * PartialResultSet yielded before the interruption. Doing this + * enables the query execution to resume where the last one left + * off. + * The rest of the request parameters must exactly match the + * request that yielded this token. Otherwise the request will fail. + * + * Generated from protobuf field bytes resume_token = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getResumeToken() + { + return $this->resume_token; + } + + /** + * Optional. If this request is resuming a previously interrupted query + * execution, `resume_token` should be copied from the last + * PartialResultSet yielded before the interruption. Doing this + * enables the query execution to resume where the last one left + * off. + * The rest of the request parameters must exactly match the + * request that yielded this token. Otherwise the request will fail. + * + * Generated from protobuf field bytes resume_token = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setResumeToken($var) + { + GPBUtil::checkString($var, False); + $this->resume_token = $var; + + return $this; + } + + /** + * Required. params contains string type keys and Bigtable type values that + * bind to placeholders in the query string. In query string, a parameter + * placeholder consists of the + * `\@` character followed by the parameter name (for example, `\@firstName`) in + * the query string. + * For example, if + * `params["firstName"] = bytes_value: "foo" type {bytes_type {}}` + * then `\@firstName` will be replaced with googlesql bytes value "foo" in the + * query string during query evaluation. + * If `Value.kind` is not set, the value is treated as a NULL value of the + * given type. For example, if + * `params["firstName"] = type {string_type {}}` + * then `\@firstName` will be replaced with googlesql null string. + * If `query` is set, any empty `Value.type` in the map will be rejected with + * `INVALID_ARGUMENT`. + * If `prepared_query` is set, any empty `Value.type` in the map will be + * inferred from the `param_types` in the `PrepareQueryRequest`. Any non-empty + * `Value.type` must match the corresponding `param_types` entry, or be + * rejected with `INVALID_ARGUMENT`. + * + * Generated from protobuf field map params = 7 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getParams() + { + return $this->params; + } + + /** + * Required. params contains string type keys and Bigtable type values that + * bind to placeholders in the query string. In query string, a parameter + * placeholder consists of the + * `\@` character followed by the parameter name (for example, `\@firstName`) in + * the query string. + * For example, if + * `params["firstName"] = bytes_value: "foo" type {bytes_type {}}` + * then `\@firstName` will be replaced with googlesql bytes value "foo" in the + * query string during query evaluation. + * If `Value.kind` is not set, the value is treated as a NULL value of the + * given type. For example, if + * `params["firstName"] = type {string_type {}}` + * then `\@firstName` will be replaced with googlesql null string. + * If `query` is set, any empty `Value.type` in the map will be rejected with + * `INVALID_ARGUMENT`. + * If `prepared_query` is set, any empty `Value.type` in the map will be + * inferred from the `param_types` in the `PrepareQueryRequest`. Any non-empty + * `Value.type` must match the corresponding `param_types` entry, or be + * rejected with `INVALID_ARGUMENT`. + * + * Generated from protobuf field map params = 7 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setParams($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\Value::class); + $this->params = $arr; + + return $this; + } + + /** + * @return string + */ + public function getDataFormat() + { + return $this->whichOneof("data_format"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ExecuteQueryResponse.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ExecuteQueryResponse.php new file mode 100644 index 000000000000..ceb7b1d23857 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ExecuteQueryResponse.php @@ -0,0 +1,117 @@ +google.bigtable.v2.ExecuteQueryResponse + */ +class ExecuteQueryResponse extends \Google\Protobuf\Internal\Message +{ + protected $response; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\ResultSetMetadata $metadata + * Structure of rows in this response stream. The first (and only the first) + * response streamed from the server will be of this type. + * @type \Google\Cloud\Bigtable\V2\PartialResultSet $results + * A partial result set with row data potentially including additional + * instructions on how recent past and future partial responses should be + * interpreted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); + parent::__construct($data); + } + + /** + * Structure of rows in this response stream. The first (and only the first) + * response streamed from the server will be of this type. + * + * Generated from protobuf field .google.bigtable.v2.ResultSetMetadata metadata = 1; + * @return \Google\Cloud\Bigtable\V2\ResultSetMetadata|null + */ + public function getMetadata() + { + return $this->readOneof(1); + } + + public function hasMetadata() + { + return $this->hasOneof(1); + } + + /** + * Structure of rows in this response stream. The first (and only the first) + * response streamed from the server will be of this type. + * + * Generated from protobuf field .google.bigtable.v2.ResultSetMetadata metadata = 1; + * @param \Google\Cloud\Bigtable\V2\ResultSetMetadata $var + * @return $this + */ + public function setMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\ResultSetMetadata::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * A partial result set with row data potentially including additional + * instructions on how recent past and future partial responses should be + * interpreted. + * + * Generated from protobuf field .google.bigtable.v2.PartialResultSet results = 2; + * @return \Google\Cloud\Bigtable\V2\PartialResultSet|null + */ + public function getResults() + { + return $this->readOneof(2); + } + + public function hasResults() + { + return $this->hasOneof(2); + } + + /** + * A partial result set with row data potentially including additional + * instructions on how recent past and future partial responses should be + * interpreted. + * + * Generated from protobuf field .google.bigtable.v2.PartialResultSet results = 2; + * @param \Google\Cloud\Bigtable\V2\PartialResultSet $var + * @return $this + */ + public function setResults($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\PartialResultSet::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getResponse() + { + return $this->whichOneof("response"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Family.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Family.php new file mode 100644 index 000000000000..eac2d588ee54 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Family.php @@ -0,0 +1,122 @@ +google.bigtable.v2.Family + */ +class Family extends \Google\Protobuf\Internal\Message +{ + /** + * The unique key which identifies this family within its row. This is the + * same key that's used to identify the family in, for example, a RowFilter + * which sets its "family_name_regex_filter" field. + * Must match `[-_.a-zA-Z0-9]+`, except that AggregatingRowProcessors may + * produce cells in a sentinel family with an empty name. + * Must be no greater than 64 characters in length. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Must not be empty. Sorted in order of increasing "qualifier". + * + * Generated from protobuf field repeated .google.bigtable.v2.Column columns = 2; + */ + private $columns; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The unique key which identifies this family within its row. This is the + * same key that's used to identify the family in, for example, a RowFilter + * which sets its "family_name_regex_filter" field. + * Must match `[-_.a-zA-Z0-9]+`, except that AggregatingRowProcessors may + * produce cells in a sentinel family with an empty name. + * Must be no greater than 64 characters in length. + * @type \Google\Cloud\Bigtable\V2\Column[] $columns + * Must not be empty. Sorted in order of increasing "qualifier". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); + parent::__construct($data); + } + + /** + * The unique key which identifies this family within its row. This is the + * same key that's used to identify the family in, for example, a RowFilter + * which sets its "family_name_regex_filter" field. + * Must match `[-_.a-zA-Z0-9]+`, except that AggregatingRowProcessors may + * produce cells in a sentinel family with an empty name. + * Must be no greater than 64 characters in length. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The unique key which identifies this family within its row. This is the + * same key that's used to identify the family in, for example, a RowFilter + * which sets its "family_name_regex_filter" field. + * Must match `[-_.a-zA-Z0-9]+`, except that AggregatingRowProcessors may + * produce cells in a sentinel family with an empty name. + * Must be no greater than 64 characters in length. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Must not be empty. Sorted in order of increasing "qualifier". + * + * Generated from protobuf field repeated .google.bigtable.v2.Column columns = 2; + * @return RepeatedField<\Google\Cloud\Bigtable\V2\Column> + */ + public function getColumns() + { + return $this->columns; + } + + /** + * Must not be empty. Sorted in order of increasing "qualifier". + * + * Generated from protobuf field repeated .google.bigtable.v2.Column columns = 2; + * @param \Google\Cloud\Bigtable\V2\Column[] $var + * @return $this + */ + public function setColumns($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\Column::class); + $this->columns = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/FeatureFlags.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/FeatureFlags.php new file mode 100644 index 000000000000..b70fa1d23e87 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/FeatureFlags.php @@ -0,0 +1,412 @@ +google.bigtable.v2.FeatureFlags + */ +class FeatureFlags extends \Google\Protobuf\Internal\Message +{ + /** + * Notify the server that the client supports reverse scans. The server will + * reject ReadRowsRequests with the reverse bit set when this is absent. + * + * Generated from protobuf field bool reverse_scans = 1; + */ + protected $reverse_scans = false; + /** + * Notify the server that the client enables batch write flow control by + * requesting RateLimitInfo from MutateRowsResponse. Due to technical reasons, + * this disables partial retries. + * + * Generated from protobuf field bool mutate_rows_rate_limit = 3; + */ + protected $mutate_rows_rate_limit = false; + /** + * Notify the server that the client enables batch write flow control by + * requesting RateLimitInfo from MutateRowsResponse. With partial retries + * enabled. + * + * Generated from protobuf field bool mutate_rows_rate_limit2 = 5; + */ + protected $mutate_rows_rate_limit2 = false; + /** + * Notify the server that the client supports the last_scanned_row field + * in ReadRowsResponse for long-running scans. + * + * Generated from protobuf field bool last_scanned_row_responses = 4; + */ + protected $last_scanned_row_responses = false; + /** + * Notify the server that the client supports using encoded routing cookie + * strings to retry requests with. + * + * Generated from protobuf field bool routing_cookie = 6; + */ + protected $routing_cookie = false; + /** + * Notify the server that the client supports using retry info back off + * durations to retry requests with. + * + * Generated from protobuf field bool retry_info = 7; + */ + protected $retry_info = false; + /** + * Notify the server that the client has client side metrics enabled. + * + * Generated from protobuf field bool client_side_metrics_enabled = 8; + */ + protected $client_side_metrics_enabled = false; + /** + * Notify the server that the client using Traffic Director endpoint. + * + * Generated from protobuf field bool traffic_director_enabled = 9; + */ + protected $traffic_director_enabled = false; + /** + * Notify the server that the client explicitly opted in for Direct Access. + * + * Generated from protobuf field bool direct_access_requested = 10; + */ + protected $direct_access_requested = false; + /** + * If the client can support using BigtablePeerInfo. + * + * Generated from protobuf field bool peer_info = 11; + */ + protected $peer_info = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $reverse_scans + * Notify the server that the client supports reverse scans. The server will + * reject ReadRowsRequests with the reverse bit set when this is absent. + * @type bool $mutate_rows_rate_limit + * Notify the server that the client enables batch write flow control by + * requesting RateLimitInfo from MutateRowsResponse. Due to technical reasons, + * this disables partial retries. + * @type bool $mutate_rows_rate_limit2 + * Notify the server that the client enables batch write flow control by + * requesting RateLimitInfo from MutateRowsResponse. With partial retries + * enabled. + * @type bool $last_scanned_row_responses + * Notify the server that the client supports the last_scanned_row field + * in ReadRowsResponse for long-running scans. + * @type bool $routing_cookie + * Notify the server that the client supports using encoded routing cookie + * strings to retry requests with. + * @type bool $retry_info + * Notify the server that the client supports using retry info back off + * durations to retry requests with. + * @type bool $client_side_metrics_enabled + * Notify the server that the client has client side metrics enabled. + * @type bool $traffic_director_enabled + * Notify the server that the client using Traffic Director endpoint. + * @type bool $direct_access_requested + * Notify the server that the client explicitly opted in for Direct Access. + * @type bool $peer_info + * If the client can support using BigtablePeerInfo. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\FeatureFlags::initOnce(); + parent::__construct($data); + } + + /** + * Notify the server that the client supports reverse scans. The server will + * reject ReadRowsRequests with the reverse bit set when this is absent. + * + * Generated from protobuf field bool reverse_scans = 1; + * @return bool + */ + public function getReverseScans() + { + return $this->reverse_scans; + } + + /** + * Notify the server that the client supports reverse scans. The server will + * reject ReadRowsRequests with the reverse bit set when this is absent. + * + * Generated from protobuf field bool reverse_scans = 1; + * @param bool $var + * @return $this + */ + public function setReverseScans($var) + { + GPBUtil::checkBool($var); + $this->reverse_scans = $var; + + return $this; + } + + /** + * Notify the server that the client enables batch write flow control by + * requesting RateLimitInfo from MutateRowsResponse. Due to technical reasons, + * this disables partial retries. + * + * Generated from protobuf field bool mutate_rows_rate_limit = 3; + * @return bool + */ + public function getMutateRowsRateLimit() + { + return $this->mutate_rows_rate_limit; + } + + /** + * Notify the server that the client enables batch write flow control by + * requesting RateLimitInfo from MutateRowsResponse. Due to technical reasons, + * this disables partial retries. + * + * Generated from protobuf field bool mutate_rows_rate_limit = 3; + * @param bool $var + * @return $this + */ + public function setMutateRowsRateLimit($var) + { + GPBUtil::checkBool($var); + $this->mutate_rows_rate_limit = $var; + + return $this; + } + + /** + * Notify the server that the client enables batch write flow control by + * requesting RateLimitInfo from MutateRowsResponse. With partial retries + * enabled. + * + * Generated from protobuf field bool mutate_rows_rate_limit2 = 5; + * @return bool + */ + public function getMutateRowsRateLimit2() + { + return $this->mutate_rows_rate_limit2; + } + + /** + * Notify the server that the client enables batch write flow control by + * requesting RateLimitInfo from MutateRowsResponse. With partial retries + * enabled. + * + * Generated from protobuf field bool mutate_rows_rate_limit2 = 5; + * @param bool $var + * @return $this + */ + public function setMutateRowsRateLimit2($var) + { + GPBUtil::checkBool($var); + $this->mutate_rows_rate_limit2 = $var; + + return $this; + } + + /** + * Notify the server that the client supports the last_scanned_row field + * in ReadRowsResponse for long-running scans. + * + * Generated from protobuf field bool last_scanned_row_responses = 4; + * @return bool + */ + public function getLastScannedRowResponses() + { + return $this->last_scanned_row_responses; + } + + /** + * Notify the server that the client supports the last_scanned_row field + * in ReadRowsResponse for long-running scans. + * + * Generated from protobuf field bool last_scanned_row_responses = 4; + * @param bool $var + * @return $this + */ + public function setLastScannedRowResponses($var) + { + GPBUtil::checkBool($var); + $this->last_scanned_row_responses = $var; + + return $this; + } + + /** + * Notify the server that the client supports using encoded routing cookie + * strings to retry requests with. + * + * Generated from protobuf field bool routing_cookie = 6; + * @return bool + */ + public function getRoutingCookie() + { + return $this->routing_cookie; + } + + /** + * Notify the server that the client supports using encoded routing cookie + * strings to retry requests with. + * + * Generated from protobuf field bool routing_cookie = 6; + * @param bool $var + * @return $this + */ + public function setRoutingCookie($var) + { + GPBUtil::checkBool($var); + $this->routing_cookie = $var; + + return $this; + } + + /** + * Notify the server that the client supports using retry info back off + * durations to retry requests with. + * + * Generated from protobuf field bool retry_info = 7; + * @return bool + */ + public function getRetryInfo() + { + return $this->retry_info; + } + + /** + * Notify the server that the client supports using retry info back off + * durations to retry requests with. + * + * Generated from protobuf field bool retry_info = 7; + * @param bool $var + * @return $this + */ + public function setRetryInfo($var) + { + GPBUtil::checkBool($var); + $this->retry_info = $var; + + return $this; + } + + /** + * Notify the server that the client has client side metrics enabled. + * + * Generated from protobuf field bool client_side_metrics_enabled = 8; + * @return bool + */ + public function getClientSideMetricsEnabled() + { + return $this->client_side_metrics_enabled; + } + + /** + * Notify the server that the client has client side metrics enabled. + * + * Generated from protobuf field bool client_side_metrics_enabled = 8; + * @param bool $var + * @return $this + */ + public function setClientSideMetricsEnabled($var) + { + GPBUtil::checkBool($var); + $this->client_side_metrics_enabled = $var; + + return $this; + } + + /** + * Notify the server that the client using Traffic Director endpoint. + * + * Generated from protobuf field bool traffic_director_enabled = 9; + * @return bool + */ + public function getTrafficDirectorEnabled() + { + return $this->traffic_director_enabled; + } + + /** + * Notify the server that the client using Traffic Director endpoint. + * + * Generated from protobuf field bool traffic_director_enabled = 9; + * @param bool $var + * @return $this + */ + public function setTrafficDirectorEnabled($var) + { + GPBUtil::checkBool($var); + $this->traffic_director_enabled = $var; + + return $this; + } + + /** + * Notify the server that the client explicitly opted in for Direct Access. + * + * Generated from protobuf field bool direct_access_requested = 10; + * @return bool + */ + public function getDirectAccessRequested() + { + return $this->direct_access_requested; + } + + /** + * Notify the server that the client explicitly opted in for Direct Access. + * + * Generated from protobuf field bool direct_access_requested = 10; + * @param bool $var + * @return $this + */ + public function setDirectAccessRequested($var) + { + GPBUtil::checkBool($var); + $this->direct_access_requested = $var; + + return $this; + } + + /** + * If the client can support using BigtablePeerInfo. + * + * Generated from protobuf field bool peer_info = 11; + * @return bool + */ + public function getPeerInfo() + { + return $this->peer_info; + } + + /** + * If the client can support using BigtablePeerInfo. + * + * Generated from protobuf field bool peer_info = 11; + * @param bool $var + * @return $this + */ + public function setPeerInfo($var) + { + GPBUtil::checkBool($var); + $this->peer_info = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/FullReadStatsView.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/FullReadStatsView.php new file mode 100644 index 000000000000..f1e5d5e430ca --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/FullReadStatsView.php @@ -0,0 +1,137 @@ +google.bigtable.v2.FullReadStatsView + */ +class FullReadStatsView extends \Google\Protobuf\Internal\Message +{ + /** + * Iteration stats describe how efficient the read is, e.g. comparing + * rows seen vs. rows returned or cells seen vs cells returned can provide an + * indication of read efficiency (the higher the ratio of seen to retuned the + * better). + * + * Generated from protobuf field .google.bigtable.v2.ReadIterationStats read_iteration_stats = 1; + */ + protected $read_iteration_stats = null; + /** + * Request latency stats describe the time taken to complete a request, from + * the server side. + * + * Generated from protobuf field .google.bigtable.v2.RequestLatencyStats request_latency_stats = 2; + */ + protected $request_latency_stats = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\ReadIterationStats $read_iteration_stats + * Iteration stats describe how efficient the read is, e.g. comparing + * rows seen vs. rows returned or cells seen vs cells returned can provide an + * indication of read efficiency (the higher the ratio of seen to retuned the + * better). + * @type \Google\Cloud\Bigtable\V2\RequestLatencyStats $request_latency_stats + * Request latency stats describe the time taken to complete a request, from + * the server side. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\RequestStats::initOnce(); + parent::__construct($data); + } + + /** + * Iteration stats describe how efficient the read is, e.g. comparing + * rows seen vs. rows returned or cells seen vs cells returned can provide an + * indication of read efficiency (the higher the ratio of seen to retuned the + * better). + * + * Generated from protobuf field .google.bigtable.v2.ReadIterationStats read_iteration_stats = 1; + * @return \Google\Cloud\Bigtable\V2\ReadIterationStats|null + */ + public function getReadIterationStats() + { + return $this->read_iteration_stats; + } + + public function hasReadIterationStats() + { + return isset($this->read_iteration_stats); + } + + public function clearReadIterationStats() + { + unset($this->read_iteration_stats); + } + + /** + * Iteration stats describe how efficient the read is, e.g. comparing + * rows seen vs. rows returned or cells seen vs cells returned can provide an + * indication of read efficiency (the higher the ratio of seen to retuned the + * better). + * + * Generated from protobuf field .google.bigtable.v2.ReadIterationStats read_iteration_stats = 1; + * @param \Google\Cloud\Bigtable\V2\ReadIterationStats $var + * @return $this + */ + public function setReadIterationStats($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\ReadIterationStats::class); + $this->read_iteration_stats = $var; + + return $this; + } + + /** + * Request latency stats describe the time taken to complete a request, from + * the server side. + * + * Generated from protobuf field .google.bigtable.v2.RequestLatencyStats request_latency_stats = 2; + * @return \Google\Cloud\Bigtable\V2\RequestLatencyStats|null + */ + public function getRequestLatencyStats() + { + return $this->request_latency_stats; + } + + public function hasRequestLatencyStats() + { + return isset($this->request_latency_stats); + } + + public function clearRequestLatencyStats() + { + unset($this->request_latency_stats); + } + + /** + * Request latency stats describe the time taken to complete a request, from + * the server side. + * + * Generated from protobuf field .google.bigtable.v2.RequestLatencyStats request_latency_stats = 2; + * @param \Google\Cloud\Bigtable\V2\RequestLatencyStats $var + * @return $this + */ + public function setRequestLatencyStats($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\RequestLatencyStats::class); + $this->request_latency_stats = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/GenerateInitialChangeStreamPartitionsRequest.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/GenerateInitialChangeStreamPartitionsRequest.php new file mode 100644 index 000000000000..674d75fbcac1 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/GenerateInitialChangeStreamPartitionsRequest.php @@ -0,0 +1,160 @@ +google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest + */ +class GenerateInitialChangeStreamPartitionsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the table from which to get change stream + * partitions. Values are of the form + * `projects//instances//tables/
`. + * Change streaming must be enabled on the table. + * + * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $table_name = ''; + /** + * This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * Single cluster routing must be configured on the profile. + * + * Generated from protobuf field string app_profile_id = 2; + */ + protected $app_profile_id = ''; + + /** + * @param string $tableName Required. The unique name of the table from which to get change stream + * partitions. Values are of the form + * `projects//instances//tables/
`. + * Change streaming must be enabled on the table. Please see + * {@see BigtableClient::tableName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\V2\GenerateInitialChangeStreamPartitionsRequest + * + * @experimental + */ + public static function build(string $tableName): self + { + return (new self()) + ->setTableName($tableName); + } + + /** + * @param string $tableName Required. The unique name of the table from which to get change stream + * partitions. Values are of the form + * `projects//instances//tables/
`. + * Change streaming must be enabled on the table. Please see + * {@see BigtableClient::tableName()} for help formatting this field. + * @param string $appProfileId This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * Single cluster routing must be configured on the profile. + * + * @return \Google\Cloud\Bigtable\V2\GenerateInitialChangeStreamPartitionsRequest + * + * @experimental + */ + public static function buildFromTableNameAppProfileId(string $tableName, string $appProfileId): self + { + return (new self()) + ->setTableName($tableName) + ->setAppProfileId($appProfileId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $table_name + * Required. The unique name of the table from which to get change stream + * partitions. Values are of the form + * `projects//instances//tables/
`. + * Change streaming must be enabled on the table. + * @type string $app_profile_id + * This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * Single cluster routing must be configured on the profile. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the table from which to get change stream + * partitions. Values are of the form + * `projects//instances//tables/
`. + * Change streaming must be enabled on the table. + * + * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getTableName() + { + return $this->table_name; + } + + /** + * Required. The unique name of the table from which to get change stream + * partitions. Values are of the form + * `projects//instances//tables/
`. + * Change streaming must be enabled on the table. + * + * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setTableName($var) + { + GPBUtil::checkString($var, True); + $this->table_name = $var; + + return $this; + } + + /** + * This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * Single cluster routing must be configured on the profile. + * + * Generated from protobuf field string app_profile_id = 2; + * @return string + */ + public function getAppProfileId() + { + return $this->app_profile_id; + } + + /** + * This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * Single cluster routing must be configured on the profile. + * + * Generated from protobuf field string app_profile_id = 2; + * @param string $var + * @return $this + */ + public function setAppProfileId($var) + { + GPBUtil::checkString($var, True); + $this->app_profile_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/GenerateInitialChangeStreamPartitionsResponse.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/GenerateInitialChangeStreamPartitionsResponse.php new file mode 100644 index 000000000000..9fe28a539fbd --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/GenerateInitialChangeStreamPartitionsResponse.php @@ -0,0 +1,78 @@ +google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse + */ +class GenerateInitialChangeStreamPartitionsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * A partition of the change stream. + * + * Generated from protobuf field .google.bigtable.v2.StreamPartition partition = 1; + */ + protected $partition = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\StreamPartition $partition + * A partition of the change stream. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); + parent::__construct($data); + } + + /** + * A partition of the change stream. + * + * Generated from protobuf field .google.bigtable.v2.StreamPartition partition = 1; + * @return \Google\Cloud\Bigtable\V2\StreamPartition|null + */ + public function getPartition() + { + return $this->partition; + } + + public function hasPartition() + { + return isset($this->partition); + } + + public function clearPartition() + { + unset($this->partition); + } + + /** + * A partition of the change stream. + * + * Generated from protobuf field .google.bigtable.v2.StreamPartition partition = 1; + * @param \Google\Cloud\Bigtable\V2\StreamPartition $var + * @return $this + */ + public function setPartition($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\StreamPartition::class); + $this->partition = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Idempotency.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Idempotency.php new file mode 100644 index 000000000000..82c4c421096a --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Idempotency.php @@ -0,0 +1,133 @@ +google.bigtable.v2.Idempotency + */ +class Idempotency extends \Google\Protobuf\Internal\Message +{ + /** + * Unique token used to identify replays of this mutation. + * Must be at least 8 bytes long. + * + * Generated from protobuf field bytes token = 1; + */ + protected $token = ''; + /** + * Client-assigned timestamp when the mutation's first attempt was sent. + * Used to reject mutations that arrive after idempotency protection may + * have expired. May cause spurious rejections if clock skew is too high. + * Leave unset or zero to always accept the mutation, at the risk of + * double counting if the protection for previous attempts has expired. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + */ + protected $start_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $token + * Unique token used to identify replays of this mutation. + * Must be at least 8 bytes long. + * @type \Google\Protobuf\Timestamp $start_time + * Client-assigned timestamp when the mutation's first attempt was sent. + * Used to reject mutations that arrive after idempotency protection may + * have expired. May cause spurious rejections if clock skew is too high. + * Leave unset or zero to always accept the mutation, at the risk of + * double counting if the protection for previous attempts has expired. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); + parent::__construct($data); + } + + /** + * Unique token used to identify replays of this mutation. + * Must be at least 8 bytes long. + * + * Generated from protobuf field bytes token = 1; + * @return string + */ + public function getToken() + { + return $this->token; + } + + /** + * Unique token used to identify replays of this mutation. + * Must be at least 8 bytes long. + * + * Generated from protobuf field bytes token = 1; + * @param string $var + * @return $this + */ + public function setToken($var) + { + GPBUtil::checkString($var, False); + $this->token = $var; + + return $this; + } + + /** + * Client-assigned timestamp when the mutation's first attempt was sent. + * Used to reject mutations that arrive after idempotency protection may + * have expired. May cause spurious rejections if clock skew is too high. + * Leave unset or zero to always accept the mutation, at the risk of + * double counting if the protection for previous attempts has expired. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @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); + } + + /** + * Client-assigned timestamp when the mutation's first attempt was sent. + * Used to reject mutations that arrive after idempotency protection may + * have expired. May cause spurious rejections if clock skew is too high. + * Leave unset or zero to always accept the mutation, at the risk of + * double counting if the protection for previous attempts has expired. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowRequest.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowRequest.php new file mode 100644 index 000000000000..34179938a13f --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowRequest.php @@ -0,0 +1,338 @@ +google.bigtable.v2.MutateRowRequest + */ +class MutateRowRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The unique name of the table to which the mutation should be + * applied. + * Values are of the form + * `projects//instances//tables/
`. + * + * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $table_name = ''; + /** + * Optional. The unique name of the AuthorizedView to which the mutation + * should be applied. + * Values are of the form + * `projects//instances//tables/
/authorizedViews/`. + * + * Generated from protobuf field string authorized_view_name = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $authorized_view_name = ''; + /** + * This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * + * Generated from protobuf field string app_profile_id = 4; + */ + protected $app_profile_id = ''; + /** + * Required. The key of the row to which the mutation should be applied. + * + * Generated from protobuf field bytes row_key = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $row_key = ''; + /** + * Required. Changes to be atomically applied to the specified row. Entries + * are applied in order, meaning that earlier mutations can be masked by later + * ones. Must contain at least one entry and at most 100000. + * + * Generated from protobuf field repeated .google.bigtable.v2.Mutation mutations = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + private $mutations; + /** + * If set consistently across retries, prevents this mutation from being + * double applied to aggregate column families within a 15m window. + * + * Generated from protobuf field .google.bigtable.v2.Idempotency idempotency = 8; + */ + protected $idempotency = null; + + /** + * @param string $tableName Optional. The unique name of the table to which the mutation should be + * applied. + * + * Values are of the form + * `projects//instances//tables/
`. Please see + * {@see BigtableClient::tableName()} for help formatting this field. + * @param string $rowKey Required. The key of the row to which the mutation should be applied. + * @param \Google\Cloud\Bigtable\V2\Mutation[] $mutations Required. Changes to be atomically applied to the specified row. Entries + * are applied in order, meaning that earlier mutations can be masked by later + * ones. Must contain at least one entry and at most 100000. + * + * @return \Google\Cloud\Bigtable\V2\MutateRowRequest + * + * @experimental + */ + public static function build(string $tableName, string $rowKey, array $mutations): self + { + return (new self()) + ->setTableName($tableName) + ->setRowKey($rowKey) + ->setMutations($mutations); + } + + /** + * @param string $tableName Optional. The unique name of the table to which the mutation should be + * applied. + * + * Values are of the form + * `projects//instances//tables/
`. Please see + * {@see BigtableClient::tableName()} for help formatting this field. + * @param string $rowKey Required. The key of the row to which the mutation should be applied. + * @param \Google\Cloud\Bigtable\V2\Mutation[] $mutations Required. Changes to be atomically applied to the specified row. Entries + * are applied in order, meaning that earlier mutations can be masked by later + * ones. Must contain at least one entry and at most 100000. + * @param string $appProfileId This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * + * @return \Google\Cloud\Bigtable\V2\MutateRowRequest + * + * @experimental + */ + public static function buildFromTableNameRowKeyMutationsAppProfileId(string $tableName, string $rowKey, array $mutations, string $appProfileId): self + { + return (new self()) + ->setTableName($tableName) + ->setRowKey($rowKey) + ->setMutations($mutations) + ->setAppProfileId($appProfileId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $table_name + * Optional. The unique name of the table to which the mutation should be + * applied. + * Values are of the form + * `projects//instances//tables/
`. + * @type string $authorized_view_name + * Optional. The unique name of the AuthorizedView to which the mutation + * should be applied. + * Values are of the form + * `projects//instances//tables/
/authorizedViews/`. + * @type string $app_profile_id + * This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * @type string $row_key + * Required. The key of the row to which the mutation should be applied. + * @type \Google\Cloud\Bigtable\V2\Mutation[] $mutations + * Required. Changes to be atomically applied to the specified row. Entries + * are applied in order, meaning that earlier mutations can be masked by later + * ones. Must contain at least one entry and at most 100000. + * @type \Google\Cloud\Bigtable\V2\Idempotency $idempotency + * If set consistently across retries, prevents this mutation from being + * double applied to aggregate column families within a 15m window. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The unique name of the table to which the mutation should be + * applied. + * Values are of the form + * `projects//instances//tables/
`. + * + * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getTableName() + { + return $this->table_name; + } + + /** + * Optional. The unique name of the table to which the mutation should be + * applied. + * Values are of the form + * `projects//instances//tables/
`. + * + * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setTableName($var) + { + GPBUtil::checkString($var, True); + $this->table_name = $var; + + return $this; + } + + /** + * Optional. The unique name of the AuthorizedView to which the mutation + * should be applied. + * Values are of the form + * `projects//instances//tables/
/authorizedViews/`. + * + * Generated from protobuf field string authorized_view_name = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getAuthorizedViewName() + { + return $this->authorized_view_name; + } + + /** + * Optional. The unique name of the AuthorizedView to which the mutation + * should be applied. + * Values are of the form + * `projects//instances//tables/
/authorizedViews/`. + * + * Generated from protobuf field string authorized_view_name = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setAuthorizedViewName($var) + { + GPBUtil::checkString($var, True); + $this->authorized_view_name = $var; + + return $this; + } + + /** + * This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * + * Generated from protobuf field string app_profile_id = 4; + * @return string + */ + public function getAppProfileId() + { + return $this->app_profile_id; + } + + /** + * This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * + * Generated from protobuf field string app_profile_id = 4; + * @param string $var + * @return $this + */ + public function setAppProfileId($var) + { + GPBUtil::checkString($var, True); + $this->app_profile_id = $var; + + return $this; + } + + /** + * Required. The key of the row to which the mutation should be applied. + * + * Generated from protobuf field bytes row_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getRowKey() + { + return $this->row_key; + } + + /** + * Required. The key of the row to which the mutation should be applied. + * + * Generated from protobuf field bytes row_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setRowKey($var) + { + GPBUtil::checkString($var, False); + $this->row_key = $var; + + return $this; + } + + /** + * Required. Changes to be atomically applied to the specified row. Entries + * are applied in order, meaning that earlier mutations can be masked by later + * ones. Must contain at least one entry and at most 100000. + * + * Generated from protobuf field repeated .google.bigtable.v2.Mutation mutations = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\Bigtable\V2\Mutation> + */ + public function getMutations() + { + return $this->mutations; + } + + /** + * Required. Changes to be atomically applied to the specified row. Entries + * are applied in order, meaning that earlier mutations can be masked by later + * ones. Must contain at least one entry and at most 100000. + * + * Generated from protobuf field repeated .google.bigtable.v2.Mutation mutations = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Bigtable\V2\Mutation[] $var + * @return $this + */ + public function setMutations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\Mutation::class); + $this->mutations = $arr; + + return $this; + } + + /** + * If set consistently across retries, prevents this mutation from being + * double applied to aggregate column families within a 15m window. + * + * Generated from protobuf field .google.bigtable.v2.Idempotency idempotency = 8; + * @return \Google\Cloud\Bigtable\V2\Idempotency|null + */ + public function getIdempotency() + { + return $this->idempotency; + } + + public function hasIdempotency() + { + return isset($this->idempotency); + } + + public function clearIdempotency() + { + unset($this->idempotency); + } + + /** + * If set consistently across retries, prevents this mutation from being + * double applied to aggregate column families within a 15m window. + * + * Generated from protobuf field .google.bigtable.v2.Idempotency idempotency = 8; + * @param \Google\Cloud\Bigtable\V2\Idempotency $var + * @return $this + */ + public function setIdempotency($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Idempotency::class); + $this->idempotency = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowResponse.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowResponse.php new file mode 100644 index 000000000000..3430a3917d03 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowResponse.php @@ -0,0 +1,33 @@ +google.bigtable.v2.MutateRowResponse + */ +class MutateRowResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowsRequest.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowsRequest.php new file mode 100644 index 000000000000..c01b0bb6feae --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowsRequest.php @@ -0,0 +1,264 @@ +google.bigtable.v2.MutateRowsRequest + */ +class MutateRowsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The unique name of the table to which the mutations should be + * applied. + * Values are of the form + * `projects//instances//tables/
`. + * + * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $table_name = ''; + /** + * Optional. The unique name of the AuthorizedView to which the mutations + * should be applied. + * Values are of the form + * `projects//instances//tables/
/authorizedViews/`. + * + * Generated from protobuf field string authorized_view_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $authorized_view_name = ''; + /** + * This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * + * Generated from protobuf field string app_profile_id = 3; + */ + protected $app_profile_id = ''; + /** + * Required. The row keys and corresponding mutations to be applied in bulk. + * Each entry is applied as an atomic mutation, but the entries may be + * applied in arbitrary order (even between entries for the same row). + * At least one entry must be specified, and in total the entries can + * contain at most 100000 mutations. + * + * Generated from protobuf field repeated .google.bigtable.v2.MutateRowsRequest.Entry entries = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $entries; + + /** + * @param string $tableName Optional. The unique name of the table to which the mutations should be + * applied. + * + * Values are of the form + * `projects//instances//tables/
`. Please see + * {@see BigtableClient::tableName()} for help formatting this field. + * @param \Google\Cloud\Bigtable\V2\MutateRowsRequest\Entry[] $entries Required. The row keys and corresponding mutations to be applied in bulk. + * Each entry is applied as an atomic mutation, but the entries may be + * applied in arbitrary order (even between entries for the same row). + * At least one entry must be specified, and in total the entries can + * contain at most 100000 mutations. + * + * @return \Google\Cloud\Bigtable\V2\MutateRowsRequest + * + * @experimental + */ + public static function build(string $tableName, array $entries): self + { + return (new self()) + ->setTableName($tableName) + ->setEntries($entries); + } + + /** + * @param string $tableName Optional. The unique name of the table to which the mutations should be + * applied. + * + * Values are of the form + * `projects//instances//tables/
`. Please see + * {@see BigtableClient::tableName()} for help formatting this field. + * @param \Google\Cloud\Bigtable\V2\MutateRowsRequest\Entry[] $entries Required. The row keys and corresponding mutations to be applied in bulk. + * Each entry is applied as an atomic mutation, but the entries may be + * applied in arbitrary order (even between entries for the same row). + * At least one entry must be specified, and in total the entries can + * contain at most 100000 mutations. + * @param string $appProfileId This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * + * @return \Google\Cloud\Bigtable\V2\MutateRowsRequest + * + * @experimental + */ + public static function buildFromTableNameEntriesAppProfileId(string $tableName, array $entries, string $appProfileId): self + { + return (new self()) + ->setTableName($tableName) + ->setEntries($entries) + ->setAppProfileId($appProfileId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $table_name + * Optional. The unique name of the table to which the mutations should be + * applied. + * Values are of the form + * `projects//instances//tables/
`. + * @type string $authorized_view_name + * Optional. The unique name of the AuthorizedView to which the mutations + * should be applied. + * Values are of the form + * `projects//instances//tables/
/authorizedViews/`. + * @type string $app_profile_id + * This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * @type \Google\Cloud\Bigtable\V2\MutateRowsRequest\Entry[] $entries + * Required. The row keys and corresponding mutations to be applied in bulk. + * Each entry is applied as an atomic mutation, but the entries may be + * applied in arbitrary order (even between entries for the same row). + * At least one entry must be specified, and in total the entries can + * contain at most 100000 mutations. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The unique name of the table to which the mutations should be + * applied. + * Values are of the form + * `projects//instances//tables/
`. + * + * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getTableName() + { + return $this->table_name; + } + + /** + * Optional. The unique name of the table to which the mutations should be + * applied. + * Values are of the form + * `projects//instances//tables/
`. + * + * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setTableName($var) + { + GPBUtil::checkString($var, True); + $this->table_name = $var; + + return $this; + } + + /** + * Optional. The unique name of the AuthorizedView to which the mutations + * should be applied. + * Values are of the form + * `projects//instances//tables/
/authorizedViews/`. + * + * Generated from protobuf field string authorized_view_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getAuthorizedViewName() + { + return $this->authorized_view_name; + } + + /** + * Optional. The unique name of the AuthorizedView to which the mutations + * should be applied. + * Values are of the form + * `projects//instances//tables/
/authorizedViews/`. + * + * Generated from protobuf field string authorized_view_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setAuthorizedViewName($var) + { + GPBUtil::checkString($var, True); + $this->authorized_view_name = $var; + + return $this; + } + + /** + * This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * + * Generated from protobuf field string app_profile_id = 3; + * @return string + */ + public function getAppProfileId() + { + return $this->app_profile_id; + } + + /** + * This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * + * Generated from protobuf field string app_profile_id = 3; + * @param string $var + * @return $this + */ + public function setAppProfileId($var) + { + GPBUtil::checkString($var, True); + $this->app_profile_id = $var; + + return $this; + } + + /** + * Required. The row keys and corresponding mutations to be applied in bulk. + * Each entry is applied as an atomic mutation, but the entries may be + * applied in arbitrary order (even between entries for the same row). + * At least one entry must be specified, and in total the entries can + * contain at most 100000 mutations. + * + * Generated from protobuf field repeated .google.bigtable.v2.MutateRowsRequest.Entry entries = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\Bigtable\V2\MutateRowsRequest\Entry> + */ + public function getEntries() + { + return $this->entries; + } + + /** + * Required. The row keys and corresponding mutations to be applied in bulk. + * Each entry is applied as an atomic mutation, but the entries may be + * applied in arbitrary order (even between entries for the same row). + * At least one entry must be specified, and in total the entries can + * contain at most 100000 mutations. + * + * Generated from protobuf field repeated .google.bigtable.v2.MutateRowsRequest.Entry entries = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Bigtable\V2\MutateRowsRequest\Entry[] $var + * @return $this + */ + public function setEntries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\MutateRowsRequest\Entry::class); + $this->entries = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowsRequest/Entry.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowsRequest/Entry.php new file mode 100644 index 000000000000..65d678fb953a --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowsRequest/Entry.php @@ -0,0 +1,157 @@ +google.bigtable.v2.MutateRowsRequest.Entry + */ +class Entry extends \Google\Protobuf\Internal\Message +{ + /** + * The key of the row to which the `mutations` should be applied. + * + * Generated from protobuf field bytes row_key = 1; + */ + protected $row_key = ''; + /** + * Required. Changes to be atomically applied to the specified row. + * Mutations are applied in order, meaning that earlier mutations can be + * masked by later ones. You must specify at least one mutation. + * + * Generated from protobuf field repeated .google.bigtable.v2.Mutation mutations = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $mutations; + /** + * If set consistently across retries, prevents this mutation from being + * double applied to aggregate column families within a 15m window. + * + * Generated from protobuf field .google.bigtable.v2.Idempotency idempotency = 3; + */ + protected $idempotency = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $row_key + * The key of the row to which the `mutations` should be applied. + * @type \Google\Cloud\Bigtable\V2\Mutation[] $mutations + * Required. Changes to be atomically applied to the specified row. + * Mutations are applied in order, meaning that earlier mutations can be + * masked by later ones. You must specify at least one mutation. + * @type \Google\Cloud\Bigtable\V2\Idempotency $idempotency + * If set consistently across retries, prevents this mutation from being + * double applied to aggregate column families within a 15m window. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); + parent::__construct($data); + } + + /** + * The key of the row to which the `mutations` should be applied. + * + * Generated from protobuf field bytes row_key = 1; + * @return string + */ + public function getRowKey() + { + return $this->row_key; + } + + /** + * The key of the row to which the `mutations` should be applied. + * + * Generated from protobuf field bytes row_key = 1; + * @param string $var + * @return $this + */ + public function setRowKey($var) + { + GPBUtil::checkString($var, False); + $this->row_key = $var; + + return $this; + } + + /** + * Required. Changes to be atomically applied to the specified row. + * Mutations are applied in order, meaning that earlier mutations can be + * masked by later ones. You must specify at least one mutation. + * + * Generated from protobuf field repeated .google.bigtable.v2.Mutation mutations = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\Bigtable\V2\Mutation> + */ + public function getMutations() + { + return $this->mutations; + } + + /** + * Required. Changes to be atomically applied to the specified row. + * Mutations are applied in order, meaning that earlier mutations can be + * masked by later ones. You must specify at least one mutation. + * + * Generated from protobuf field repeated .google.bigtable.v2.Mutation mutations = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Bigtable\V2\Mutation[] $var + * @return $this + */ + public function setMutations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\Mutation::class); + $this->mutations = $arr; + + return $this; + } + + /** + * If set consistently across retries, prevents this mutation from being + * double applied to aggregate column families within a 15m window. + * + * Generated from protobuf field .google.bigtable.v2.Idempotency idempotency = 3; + * @return \Google\Cloud\Bigtable\V2\Idempotency|null + */ + public function getIdempotency() + { + return $this->idempotency; + } + + public function hasIdempotency() + { + return isset($this->idempotency); + } + + public function clearIdempotency() + { + unset($this->idempotency); + } + + /** + * If set consistently across retries, prevents this mutation from being + * double applied to aggregate column families within a 15m window. + * + * Generated from protobuf field .google.bigtable.v2.Idempotency idempotency = 3; + * @param \Google\Cloud\Bigtable\V2\Idempotency $var + * @return $this + */ + public function setIdempotency($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Idempotency::class); + $this->idempotency = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowsResponse.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowsResponse.php new file mode 100644 index 000000000000..a56b8e8d2a6c --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowsResponse.php @@ -0,0 +1,119 @@ +google.bigtable.v2.MutateRowsResponse + */ +class MutateRowsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * One or more results for Entries from the batch request. + * + * Generated from protobuf field repeated .google.bigtable.v2.MutateRowsResponse.Entry entries = 1; + */ + private $entries; + /** + * Information about how client should limit the rate (QPS). Primirily used by + * supported official Cloud Bigtable clients. If unset, the rate limit info is + * not provided by the server. + * + * Generated from protobuf field optional .google.bigtable.v2.RateLimitInfo rate_limit_info = 3; + */ + protected $rate_limit_info = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\MutateRowsResponse\Entry[] $entries + * One or more results for Entries from the batch request. + * @type \Google\Cloud\Bigtable\V2\RateLimitInfo $rate_limit_info + * Information about how client should limit the rate (QPS). Primirily used by + * supported official Cloud Bigtable clients. If unset, the rate limit info is + * not provided by the server. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); + parent::__construct($data); + } + + /** + * One or more results for Entries from the batch request. + * + * Generated from protobuf field repeated .google.bigtable.v2.MutateRowsResponse.Entry entries = 1; + * @return RepeatedField<\Google\Cloud\Bigtable\V2\MutateRowsResponse\Entry> + */ + public function getEntries() + { + return $this->entries; + } + + /** + * One or more results for Entries from the batch request. + * + * Generated from protobuf field repeated .google.bigtable.v2.MutateRowsResponse.Entry entries = 1; + * @param \Google\Cloud\Bigtable\V2\MutateRowsResponse\Entry[] $var + * @return $this + */ + public function setEntries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\MutateRowsResponse\Entry::class); + $this->entries = $arr; + + return $this; + } + + /** + * Information about how client should limit the rate (QPS). Primirily used by + * supported official Cloud Bigtable clients. If unset, the rate limit info is + * not provided by the server. + * + * Generated from protobuf field optional .google.bigtable.v2.RateLimitInfo rate_limit_info = 3; + * @return \Google\Cloud\Bigtable\V2\RateLimitInfo|null + */ + public function getRateLimitInfo() + { + return $this->rate_limit_info; + } + + public function hasRateLimitInfo() + { + return isset($this->rate_limit_info); + } + + public function clearRateLimitInfo() + { + unset($this->rate_limit_info); + } + + /** + * Information about how client should limit the rate (QPS). Primirily used by + * supported official Cloud Bigtable clients. If unset, the rate limit info is + * not provided by the server. + * + * Generated from protobuf field optional .google.bigtable.v2.RateLimitInfo rate_limit_info = 3; + * @param \Google\Cloud\Bigtable\V2\RateLimitInfo $var + * @return $this + */ + public function setRateLimitInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\RateLimitInfo::class); + $this->rate_limit_info = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowsResponse/Entry.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowsResponse/Entry.php new file mode 100644 index 000000000000..18528e12b129 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowsResponse/Entry.php @@ -0,0 +1,127 @@ +google.bigtable.v2.MutateRowsResponse.Entry + */ +class Entry extends \Google\Protobuf\Internal\Message +{ + /** + * The index into the original request's `entries` list of the Entry + * for which a result is being reported. + * + * Generated from protobuf field int64 index = 1; + */ + protected $index = 0; + /** + * The result of the request Entry identified by `index`. + * Depending on how requests are batched during execution, it is possible + * for one Entry to fail due to an error with another Entry. In the event + * that this occurs, the same error will be reported for both entries. + * + * Generated from protobuf field .google.rpc.Status status = 2; + */ + protected $status = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $index + * The index into the original request's `entries` list of the Entry + * for which a result is being reported. + * @type \Google\Rpc\Status $status + * The result of the request Entry identified by `index`. + * Depending on how requests are batched during execution, it is possible + * for one Entry to fail due to an error with another Entry. In the event + * that this occurs, the same error will be reported for both entries. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); + parent::__construct($data); + } + + /** + * The index into the original request's `entries` list of the Entry + * for which a result is being reported. + * + * Generated from protobuf field int64 index = 1; + * @return int|string + */ + public function getIndex() + { + return $this->index; + } + + /** + * The index into the original request's `entries` list of the Entry + * for which a result is being reported. + * + * Generated from protobuf field int64 index = 1; + * @param int|string $var + * @return $this + */ + public function setIndex($var) + { + GPBUtil::checkInt64($var); + $this->index = $var; + + return $this; + } + + /** + * The result of the request Entry identified by `index`. + * Depending on how requests are batched during execution, it is possible + * for one Entry to fail due to an error with another Entry. In the event + * that this occurs, the same error will be reported for both entries. + * + * Generated from protobuf field .google.rpc.Status status = 2; + * @return \Google\Rpc\Status|null + */ + public function getStatus() + { + return $this->status; + } + + public function hasStatus() + { + return isset($this->status); + } + + public function clearStatus() + { + unset($this->status); + } + + /** + * The result of the request Entry identified by `index`. + * Depending on how requests are batched during execution, it is possible + * for one Entry to fail due to an error with another Entry. In the event + * that this occurs, the same error will be reported for both entries. + * + * Generated from protobuf field .google.rpc.Status status = 2; + * @param \Google\Rpc\Status $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Status::class); + $this->status = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation.php new file mode 100644 index 000000000000..6953dfd5a830 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation.php @@ -0,0 +1,240 @@ +google.bigtable.v2.Mutation + */ +class Mutation extends \Google\Protobuf\Internal\Message +{ + protected $mutation; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\Mutation\SetCell $set_cell + * Set a cell's value. + * @type \Google\Cloud\Bigtable\V2\Mutation\AddToCell $add_to_cell + * Incrementally updates an `Aggregate` cell. + * @type \Google\Cloud\Bigtable\V2\Mutation\MergeToCell $merge_to_cell + * Merges accumulated state to an `Aggregate` cell. + * @type \Google\Cloud\Bigtable\V2\Mutation\DeleteFromColumn $delete_from_column + * Deletes cells from a column. + * @type \Google\Cloud\Bigtable\V2\Mutation\DeleteFromFamily $delete_from_family + * Deletes cells from a column family. + * @type \Google\Cloud\Bigtable\V2\Mutation\DeleteFromRow $delete_from_row + * Deletes cells from the entire row. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); + parent::__construct($data); + } + + /** + * Set a cell's value. + * + * Generated from protobuf field .google.bigtable.v2.Mutation.SetCell set_cell = 1; + * @return \Google\Cloud\Bigtable\V2\Mutation\SetCell|null + */ + public function getSetCell() + { + return $this->readOneof(1); + } + + public function hasSetCell() + { + return $this->hasOneof(1); + } + + /** + * Set a cell's value. + * + * Generated from protobuf field .google.bigtable.v2.Mutation.SetCell set_cell = 1; + * @param \Google\Cloud\Bigtable\V2\Mutation\SetCell $var + * @return $this + */ + public function setSetCell($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Mutation\SetCell::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Incrementally updates an `Aggregate` cell. + * + * Generated from protobuf field .google.bigtable.v2.Mutation.AddToCell add_to_cell = 5; + * @return \Google\Cloud\Bigtable\V2\Mutation\AddToCell|null + */ + public function getAddToCell() + { + return $this->readOneof(5); + } + + public function hasAddToCell() + { + return $this->hasOneof(5); + } + + /** + * Incrementally updates an `Aggregate` cell. + * + * Generated from protobuf field .google.bigtable.v2.Mutation.AddToCell add_to_cell = 5; + * @param \Google\Cloud\Bigtable\V2\Mutation\AddToCell $var + * @return $this + */ + public function setAddToCell($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Mutation\AddToCell::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Merges accumulated state to an `Aggregate` cell. + * + * Generated from protobuf field .google.bigtable.v2.Mutation.MergeToCell merge_to_cell = 6; + * @return \Google\Cloud\Bigtable\V2\Mutation\MergeToCell|null + */ + public function getMergeToCell() + { + return $this->readOneof(6); + } + + public function hasMergeToCell() + { + return $this->hasOneof(6); + } + + /** + * Merges accumulated state to an `Aggregate` cell. + * + * Generated from protobuf field .google.bigtable.v2.Mutation.MergeToCell merge_to_cell = 6; + * @param \Google\Cloud\Bigtable\V2\Mutation\MergeToCell $var + * @return $this + */ + public function setMergeToCell($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Mutation\MergeToCell::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Deletes cells from a column. + * + * Generated from protobuf field .google.bigtable.v2.Mutation.DeleteFromColumn delete_from_column = 2; + * @return \Google\Cloud\Bigtable\V2\Mutation\DeleteFromColumn|null + */ + public function getDeleteFromColumn() + { + return $this->readOneof(2); + } + + public function hasDeleteFromColumn() + { + return $this->hasOneof(2); + } + + /** + * Deletes cells from a column. + * + * Generated from protobuf field .google.bigtable.v2.Mutation.DeleteFromColumn delete_from_column = 2; + * @param \Google\Cloud\Bigtable\V2\Mutation\DeleteFromColumn $var + * @return $this + */ + public function setDeleteFromColumn($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Mutation\DeleteFromColumn::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Deletes cells from a column family. + * + * Generated from protobuf field .google.bigtable.v2.Mutation.DeleteFromFamily delete_from_family = 3; + * @return \Google\Cloud\Bigtable\V2\Mutation\DeleteFromFamily|null + */ + public function getDeleteFromFamily() + { + return $this->readOneof(3); + } + + public function hasDeleteFromFamily() + { + return $this->hasOneof(3); + } + + /** + * Deletes cells from a column family. + * + * Generated from protobuf field .google.bigtable.v2.Mutation.DeleteFromFamily delete_from_family = 3; + * @param \Google\Cloud\Bigtable\V2\Mutation\DeleteFromFamily $var + * @return $this + */ + public function setDeleteFromFamily($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Mutation\DeleteFromFamily::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Deletes cells from the entire row. + * + * Generated from protobuf field .google.bigtable.v2.Mutation.DeleteFromRow delete_from_row = 4; + * @return \Google\Cloud\Bigtable\V2\Mutation\DeleteFromRow|null + */ + public function getDeleteFromRow() + { + return $this->readOneof(4); + } + + public function hasDeleteFromRow() + { + return $this->hasOneof(4); + } + + /** + * Deletes cells from the entire row. + * + * Generated from protobuf field .google.bigtable.v2.Mutation.DeleteFromRow delete_from_row = 4; + * @param \Google\Cloud\Bigtable\V2\Mutation\DeleteFromRow $var + * @return $this + */ + public function setDeleteFromRow($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Mutation\DeleteFromRow::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * @return string + */ + public function getMutation() + { + return $this->whichOneof("mutation"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/AddToCell.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/AddToCell.php new file mode 100644 index 000000000000..aec294ebca32 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/AddToCell.php @@ -0,0 +1,219 @@ +google.bigtable.v2.Mutation.AddToCell + */ +class AddToCell extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the `Aggregate` family into which new data should be added. + * This must be a family with a `value_type` of `Aggregate`. + * Format: `[-_.a-zA-Z0-9]+` + * + * Generated from protobuf field string family_name = 1; + */ + protected $family_name = ''; + /** + * The qualifier of the column into which new data should be added. This + * must be a `raw_value`. + * + * Generated from protobuf field .google.bigtable.v2.Value column_qualifier = 2; + */ + protected $column_qualifier = null; + /** + * The timestamp of the cell to which new data should be added. This must + * be a `raw_timestamp_micros` that matches the table's `granularity`. + * + * Generated from protobuf field .google.bigtable.v2.Value timestamp = 3; + */ + protected $timestamp = null; + /** + * The input value to be accumulated into the specified cell. This must be + * compatible with the family's `value_type.input_type`. + * + * Generated from protobuf field .google.bigtable.v2.Value input = 4; + */ + protected $input = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $family_name + * The name of the `Aggregate` family into which new data should be added. + * This must be a family with a `value_type` of `Aggregate`. + * Format: `[-_.a-zA-Z0-9]+` + * @type \Google\Cloud\Bigtable\V2\Value $column_qualifier + * The qualifier of the column into which new data should be added. This + * must be a `raw_value`. + * @type \Google\Cloud\Bigtable\V2\Value $timestamp + * The timestamp of the cell to which new data should be added. This must + * be a `raw_timestamp_micros` that matches the table's `granularity`. + * @type \Google\Cloud\Bigtable\V2\Value $input + * The input value to be accumulated into the specified cell. This must be + * compatible with the family's `value_type.input_type`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); + parent::__construct($data); + } + + /** + * The name of the `Aggregate` family into which new data should be added. + * This must be a family with a `value_type` of `Aggregate`. + * Format: `[-_.a-zA-Z0-9]+` + * + * Generated from protobuf field string family_name = 1; + * @return string + */ + public function getFamilyName() + { + return $this->family_name; + } + + /** + * The name of the `Aggregate` family into which new data should be added. + * This must be a family with a `value_type` of `Aggregate`. + * Format: `[-_.a-zA-Z0-9]+` + * + * Generated from protobuf field string family_name = 1; + * @param string $var + * @return $this + */ + public function setFamilyName($var) + { + GPBUtil::checkString($var, True); + $this->family_name = $var; + + return $this; + } + + /** + * The qualifier of the column into which new data should be added. This + * must be a `raw_value`. + * + * Generated from protobuf field .google.bigtable.v2.Value column_qualifier = 2; + * @return \Google\Cloud\Bigtable\V2\Value|null + */ + public function getColumnQualifier() + { + return $this->column_qualifier; + } + + public function hasColumnQualifier() + { + return isset($this->column_qualifier); + } + + public function clearColumnQualifier() + { + unset($this->column_qualifier); + } + + /** + * The qualifier of the column into which new data should be added. This + * must be a `raw_value`. + * + * Generated from protobuf field .google.bigtable.v2.Value column_qualifier = 2; + * @param \Google\Cloud\Bigtable\V2\Value $var + * @return $this + */ + public function setColumnQualifier($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Value::class); + $this->column_qualifier = $var; + + return $this; + } + + /** + * The timestamp of the cell to which new data should be added. This must + * be a `raw_timestamp_micros` that matches the table's `granularity`. + * + * Generated from protobuf field .google.bigtable.v2.Value timestamp = 3; + * @return \Google\Cloud\Bigtable\V2\Value|null + */ + public function getTimestamp() + { + return $this->timestamp; + } + + public function hasTimestamp() + { + return isset($this->timestamp); + } + + public function clearTimestamp() + { + unset($this->timestamp); + } + + /** + * The timestamp of the cell to which new data should be added. This must + * be a `raw_timestamp_micros` that matches the table's `granularity`. + * + * Generated from protobuf field .google.bigtable.v2.Value timestamp = 3; + * @param \Google\Cloud\Bigtable\V2\Value $var + * @return $this + */ + public function setTimestamp($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Value::class); + $this->timestamp = $var; + + return $this; + } + + /** + * The input value to be accumulated into the specified cell. This must be + * compatible with the family's `value_type.input_type`. + * + * Generated from protobuf field .google.bigtable.v2.Value input = 4; + * @return \Google\Cloud\Bigtable\V2\Value|null + */ + public function getInput() + { + return $this->input; + } + + public function hasInput() + { + return isset($this->input); + } + + public function clearInput() + { + unset($this->input); + } + + /** + * The input value to be accumulated into the specified cell. This must be + * compatible with the family's `value_type.input_type`. + * + * Generated from protobuf field .google.bigtable.v2.Value input = 4; + * @param \Google\Cloud\Bigtable\V2\Value $var + * @return $this + */ + public function setInput($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Value::class); + $this->input = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/DeleteFromColumn.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/DeleteFromColumn.php new file mode 100644 index 000000000000..ad5dfcf7cd70 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/DeleteFromColumn.php @@ -0,0 +1,154 @@ +google.bigtable.v2.Mutation.DeleteFromColumn + */ +class DeleteFromColumn extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the family from which cells should be deleted. + * Must match `[-_.a-zA-Z0-9]+` + * + * Generated from protobuf field string family_name = 1; + */ + protected $family_name = ''; + /** + * The qualifier of the column from which cells should be deleted. + * Can be any byte string, including the empty string. + * + * Generated from protobuf field bytes column_qualifier = 2; + */ + protected $column_qualifier = ''; + /** + * The range of timestamps within which cells should be deleted. + * + * Generated from protobuf field .google.bigtable.v2.TimestampRange time_range = 3; + */ + protected $time_range = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $family_name + * The name of the family from which cells should be deleted. + * Must match `[-_.a-zA-Z0-9]+` + * @type string $column_qualifier + * The qualifier of the column from which cells should be deleted. + * Can be any byte string, including the empty string. + * @type \Google\Cloud\Bigtable\V2\TimestampRange $time_range + * The range of timestamps within which cells should be deleted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); + parent::__construct($data); + } + + /** + * The name of the family from which cells should be deleted. + * Must match `[-_.a-zA-Z0-9]+` + * + * Generated from protobuf field string family_name = 1; + * @return string + */ + public function getFamilyName() + { + return $this->family_name; + } + + /** + * The name of the family from which cells should be deleted. + * Must match `[-_.a-zA-Z0-9]+` + * + * Generated from protobuf field string family_name = 1; + * @param string $var + * @return $this + */ + public function setFamilyName($var) + { + GPBUtil::checkString($var, True); + $this->family_name = $var; + + return $this; + } + + /** + * The qualifier of the column from which cells should be deleted. + * Can be any byte string, including the empty string. + * + * Generated from protobuf field bytes column_qualifier = 2; + * @return string + */ + public function getColumnQualifier() + { + return $this->column_qualifier; + } + + /** + * The qualifier of the column from which cells should be deleted. + * Can be any byte string, including the empty string. + * + * Generated from protobuf field bytes column_qualifier = 2; + * @param string $var + * @return $this + */ + public function setColumnQualifier($var) + { + GPBUtil::checkString($var, False); + $this->column_qualifier = $var; + + return $this; + } + + /** + * The range of timestamps within which cells should be deleted. + * + * Generated from protobuf field .google.bigtable.v2.TimestampRange time_range = 3; + * @return \Google\Cloud\Bigtable\V2\TimestampRange|null + */ + public function getTimeRange() + { + return $this->time_range; + } + + public function hasTimeRange() + { + return isset($this->time_range); + } + + public function clearTimeRange() + { + unset($this->time_range); + } + + /** + * The range of timestamps within which cells should be deleted. + * + * Generated from protobuf field .google.bigtable.v2.TimestampRange time_range = 3; + * @param \Google\Cloud\Bigtable\V2\TimestampRange $var + * @return $this + */ + public function setTimeRange($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\TimestampRange::class); + $this->time_range = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/DeleteFromFamily.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/DeleteFromFamily.php new file mode 100644 index 000000000000..4de40638b789 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/DeleteFromFamily.php @@ -0,0 +1,71 @@ +google.bigtable.v2.Mutation.DeleteFromFamily + */ +class DeleteFromFamily extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the family from which cells should be deleted. + * Must match `[-_.a-zA-Z0-9]+` + * + * Generated from protobuf field string family_name = 1; + */ + protected $family_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $family_name + * The name of the family from which cells should be deleted. + * Must match `[-_.a-zA-Z0-9]+` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); + parent::__construct($data); + } + + /** + * The name of the family from which cells should be deleted. + * Must match `[-_.a-zA-Z0-9]+` + * + * Generated from protobuf field string family_name = 1; + * @return string + */ + public function getFamilyName() + { + return $this->family_name; + } + + /** + * The name of the family from which cells should be deleted. + * Must match `[-_.a-zA-Z0-9]+` + * + * Generated from protobuf field string family_name = 1; + * @param string $var + * @return $this + */ + public function setFamilyName($var) + { + GPBUtil::checkString($var, True); + $this->family_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/DeleteFromRow.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/DeleteFromRow.php new file mode 100644 index 000000000000..aaaeaf2d1f7a --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/DeleteFromRow.php @@ -0,0 +1,33 @@ +google.bigtable.v2.Mutation.DeleteFromRow + */ +class DeleteFromRow extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/MergeToCell.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/MergeToCell.php new file mode 100644 index 000000000000..e29ed7c0484c --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/MergeToCell.php @@ -0,0 +1,224 @@ +google.bigtable.v2.Mutation.MergeToCell + */ +class MergeToCell extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the `Aggregate` family into which new data should be added. + * This must be a family with a `value_type` of `Aggregate`. + * Format: `[-_.a-zA-Z0-9]+` + * + * Generated from protobuf field string family_name = 1; + */ + protected $family_name = ''; + /** + * The qualifier of the column into which new data should be added. This + * must be a `raw_value`. + * + * Generated from protobuf field .google.bigtable.v2.Value column_qualifier = 2; + */ + protected $column_qualifier = null; + /** + * The timestamp of the cell to which new data should be added. This must + * be a `raw_timestamp_micros` that matches the table's `granularity`. + * + * Generated from protobuf field .google.bigtable.v2.Value timestamp = 3; + */ + protected $timestamp = null; + /** + * The input value to be merged into the specified cell. This must be + * compatible with the family's `value_type.state_type`. Merging `NULL` is + * allowed, but has no effect. + * + * Generated from protobuf field .google.bigtable.v2.Value input = 4; + */ + protected $input = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $family_name + * The name of the `Aggregate` family into which new data should be added. + * This must be a family with a `value_type` of `Aggregate`. + * Format: `[-_.a-zA-Z0-9]+` + * @type \Google\Cloud\Bigtable\V2\Value $column_qualifier + * The qualifier of the column into which new data should be added. This + * must be a `raw_value`. + * @type \Google\Cloud\Bigtable\V2\Value $timestamp + * The timestamp of the cell to which new data should be added. This must + * be a `raw_timestamp_micros` that matches the table's `granularity`. + * @type \Google\Cloud\Bigtable\V2\Value $input + * The input value to be merged into the specified cell. This must be + * compatible with the family's `value_type.state_type`. Merging `NULL` is + * allowed, but has no effect. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); + parent::__construct($data); + } + + /** + * The name of the `Aggregate` family into which new data should be added. + * This must be a family with a `value_type` of `Aggregate`. + * Format: `[-_.a-zA-Z0-9]+` + * + * Generated from protobuf field string family_name = 1; + * @return string + */ + public function getFamilyName() + { + return $this->family_name; + } + + /** + * The name of the `Aggregate` family into which new data should be added. + * This must be a family with a `value_type` of `Aggregate`. + * Format: `[-_.a-zA-Z0-9]+` + * + * Generated from protobuf field string family_name = 1; + * @param string $var + * @return $this + */ + public function setFamilyName($var) + { + GPBUtil::checkString($var, True); + $this->family_name = $var; + + return $this; + } + + /** + * The qualifier of the column into which new data should be added. This + * must be a `raw_value`. + * + * Generated from protobuf field .google.bigtable.v2.Value column_qualifier = 2; + * @return \Google\Cloud\Bigtable\V2\Value|null + */ + public function getColumnQualifier() + { + return $this->column_qualifier; + } + + public function hasColumnQualifier() + { + return isset($this->column_qualifier); + } + + public function clearColumnQualifier() + { + unset($this->column_qualifier); + } + + /** + * The qualifier of the column into which new data should be added. This + * must be a `raw_value`. + * + * Generated from protobuf field .google.bigtable.v2.Value column_qualifier = 2; + * @param \Google\Cloud\Bigtable\V2\Value $var + * @return $this + */ + public function setColumnQualifier($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Value::class); + $this->column_qualifier = $var; + + return $this; + } + + /** + * The timestamp of the cell to which new data should be added. This must + * be a `raw_timestamp_micros` that matches the table's `granularity`. + * + * Generated from protobuf field .google.bigtable.v2.Value timestamp = 3; + * @return \Google\Cloud\Bigtable\V2\Value|null + */ + public function getTimestamp() + { + return $this->timestamp; + } + + public function hasTimestamp() + { + return isset($this->timestamp); + } + + public function clearTimestamp() + { + unset($this->timestamp); + } + + /** + * The timestamp of the cell to which new data should be added. This must + * be a `raw_timestamp_micros` that matches the table's `granularity`. + * + * Generated from protobuf field .google.bigtable.v2.Value timestamp = 3; + * @param \Google\Cloud\Bigtable\V2\Value $var + * @return $this + */ + public function setTimestamp($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Value::class); + $this->timestamp = $var; + + return $this; + } + + /** + * The input value to be merged into the specified cell. This must be + * compatible with the family's `value_type.state_type`. Merging `NULL` is + * allowed, but has no effect. + * + * Generated from protobuf field .google.bigtable.v2.Value input = 4; + * @return \Google\Cloud\Bigtable\V2\Value|null + */ + public function getInput() + { + return $this->input; + } + + public function hasInput() + { + return isset($this->input); + } + + public function clearInput() + { + unset($this->input); + } + + /** + * The input value to be merged into the specified cell. This must be + * compatible with the family's `value_type.state_type`. Merging `NULL` is + * allowed, but has no effect. + * + * Generated from protobuf field .google.bigtable.v2.Value input = 4; + * @param \Google\Cloud\Bigtable\V2\Value $var + * @return $this + */ + public function setInput($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Value::class); + $this->input = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/SetCell.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/SetCell.php new file mode 100644 index 000000000000..06de56b590d8 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/SetCell.php @@ -0,0 +1,193 @@ +google.bigtable.v2.Mutation.SetCell + */ +class SetCell extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the family into which new data should be written. + * Must match `[-_.a-zA-Z0-9]+` + * + * Generated from protobuf field string family_name = 1; + */ + protected $family_name = ''; + /** + * The qualifier of the column into which new data should be written. + * Can be any byte string, including the empty string. + * + * Generated from protobuf field bytes column_qualifier = 2; + */ + protected $column_qualifier = ''; + /** + * The timestamp of the cell into which new data should be written. + * Use -1 for current Bigtable server time. + * Otherwise, the client should set this value itself, noting that the + * default value is a timestamp of zero if the field is left unspecified. + * Values must match the granularity of the table (e.g. micros, millis). + * + * Generated from protobuf field int64 timestamp_micros = 3; + */ + protected $timestamp_micros = 0; + /** + * The value to be written into the specified cell. + * + * Generated from protobuf field bytes value = 4; + */ + protected $value = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $family_name + * The name of the family into which new data should be written. + * Must match `[-_.a-zA-Z0-9]+` + * @type string $column_qualifier + * The qualifier of the column into which new data should be written. + * Can be any byte string, including the empty string. + * @type int|string $timestamp_micros + * The timestamp of the cell into which new data should be written. + * Use -1 for current Bigtable server time. + * Otherwise, the client should set this value itself, noting that the + * default value is a timestamp of zero if the field is left unspecified. + * Values must match the granularity of the table (e.g. micros, millis). + * @type string $value + * The value to be written into the specified cell. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); + parent::__construct($data); + } + + /** + * The name of the family into which new data should be written. + * Must match `[-_.a-zA-Z0-9]+` + * + * Generated from protobuf field string family_name = 1; + * @return string + */ + public function getFamilyName() + { + return $this->family_name; + } + + /** + * The name of the family into which new data should be written. + * Must match `[-_.a-zA-Z0-9]+` + * + * Generated from protobuf field string family_name = 1; + * @param string $var + * @return $this + */ + public function setFamilyName($var) + { + GPBUtil::checkString($var, True); + $this->family_name = $var; + + return $this; + } + + /** + * The qualifier of the column into which new data should be written. + * Can be any byte string, including the empty string. + * + * Generated from protobuf field bytes column_qualifier = 2; + * @return string + */ + public function getColumnQualifier() + { + return $this->column_qualifier; + } + + /** + * The qualifier of the column into which new data should be written. + * Can be any byte string, including the empty string. + * + * Generated from protobuf field bytes column_qualifier = 2; + * @param string $var + * @return $this + */ + public function setColumnQualifier($var) + { + GPBUtil::checkString($var, False); + $this->column_qualifier = $var; + + return $this; + } + + /** + * The timestamp of the cell into which new data should be written. + * Use -1 for current Bigtable server time. + * Otherwise, the client should set this value itself, noting that the + * default value is a timestamp of zero if the field is left unspecified. + * Values must match the granularity of the table (e.g. micros, millis). + * + * Generated from protobuf field int64 timestamp_micros = 3; + * @return int|string + */ + public function getTimestampMicros() + { + return $this->timestamp_micros; + } + + /** + * The timestamp of the cell into which new data should be written. + * Use -1 for current Bigtable server time. + * Otherwise, the client should set this value itself, noting that the + * default value is a timestamp of zero if the field is left unspecified. + * Values must match the granularity of the table (e.g. micros, millis). + * + * Generated from protobuf field int64 timestamp_micros = 3; + * @param int|string $var + * @return $this + */ + public function setTimestampMicros($var) + { + GPBUtil::checkInt64($var); + $this->timestamp_micros = $var; + + return $this; + } + + /** + * The value to be written into the specified cell. + * + * Generated from protobuf field bytes value = 4; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * The value to be written into the specified cell. + * + * Generated from protobuf field bytes value = 4; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, False); + $this->value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PartialResultSet.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PartialResultSet.php new file mode 100644 index 000000000000..98531f4aea1b --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PartialResultSet.php @@ -0,0 +1,391 @@ +google.bigtable.v2.PartialResultSet + */ +class PartialResultSet extends \Google\Protobuf\Internal\Message +{ + /** + * CRC32C checksum of concatenated `partial_rows` data for the current batch. + * When present, the buffered data from `partial_rows` forms a complete + * parseable message of the appropriate type. + * The client should mark the end of a parseable message and prepare to + * receive a new one starting from the next `PartialResultSet` message. + * Clients must verify the checksum of the serialized batch before yielding it + * to the caller. + * This does NOT mean the values can be yielded to the callers since a + * `resume_token` is required to safely do so. + * If `resume_token` is non-empty and any data has been received since the + * last one, this field is guaranteed to be non-empty. In other words, clients + * may assume that a batch will never cross a `resume_token` boundary. + * + * Generated from protobuf field optional uint32 batch_checksum = 6; + */ + protected $batch_checksum = null; + /** + * An opaque token sent by the server to allow query resumption and signal + * that the buffered values constructed from received `partial_rows` can be + * yielded to the caller. Clients can provide this token in a subsequent + * request to resume the result stream from the current point. + * When `resume_token` is non-empty, the buffered values received from + * `partial_rows` since the last non-empty `resume_token` can be yielded to + * the callers, provided that the client keeps the value of `resume_token` and + * uses it on subsequent retries. + * A `resume_token` may be sent without information in `partial_rows` to + * checkpoint the progress of a sparse query. Any previous `partial_rows` data + * should still be yielded in this case, and the new `resume_token` should be + * saved for future retries as normal. + * A `resume_token` will only be sent on a boundary where there is either no + * ongoing result batch, or `batch_checksum` is also populated. + * The server will also send a sentinel `resume_token` when last batch of + * `partial_rows` is sent. If the client retries the ExecuteQueryRequest with + * the sentinel `resume_token`, the server will emit it again without any + * data in `partial_rows`, then return OK. + * + * Generated from protobuf field bytes resume_token = 5; + */ + protected $resume_token = ''; + /** + * If `true`, any data buffered since the last non-empty `resume_token` must + * be discarded before the other parts of this message, if any, are handled. + * + * Generated from protobuf field bool reset = 7; + */ + protected $reset = false; + /** + * Estimated size of the buffer required to hold the next batch of results. + * This value will be sent with the first `partial_rows` of a batch. That is, + * on the first `partial_rows` received in a stream, on the first message + * after a `batch_checksum` message, and any time `reset` is true. + * The client can use this estimate to allocate a buffer for the next batch of + * results. This helps minimize the number of allocations required, though the + * buffer size may still need to be increased if the estimate is too low. + * + * Generated from protobuf field int32 estimated_batch_size = 4; + */ + protected $estimated_batch_size = 0; + protected $partial_rows; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\ProtoRowsBatch $proto_rows_batch + * Partial rows in serialized ProtoRows format. + * @type int $batch_checksum + * CRC32C checksum of concatenated `partial_rows` data for the current batch. + * When present, the buffered data from `partial_rows` forms a complete + * parseable message of the appropriate type. + * The client should mark the end of a parseable message and prepare to + * receive a new one starting from the next `PartialResultSet` message. + * Clients must verify the checksum of the serialized batch before yielding it + * to the caller. + * This does NOT mean the values can be yielded to the callers since a + * `resume_token` is required to safely do so. + * If `resume_token` is non-empty and any data has been received since the + * last one, this field is guaranteed to be non-empty. In other words, clients + * may assume that a batch will never cross a `resume_token` boundary. + * @type string $resume_token + * An opaque token sent by the server to allow query resumption and signal + * that the buffered values constructed from received `partial_rows` can be + * yielded to the caller. Clients can provide this token in a subsequent + * request to resume the result stream from the current point. + * When `resume_token` is non-empty, the buffered values received from + * `partial_rows` since the last non-empty `resume_token` can be yielded to + * the callers, provided that the client keeps the value of `resume_token` and + * uses it on subsequent retries. + * A `resume_token` may be sent without information in `partial_rows` to + * checkpoint the progress of a sparse query. Any previous `partial_rows` data + * should still be yielded in this case, and the new `resume_token` should be + * saved for future retries as normal. + * A `resume_token` will only be sent on a boundary where there is either no + * ongoing result batch, or `batch_checksum` is also populated. + * The server will also send a sentinel `resume_token` when last batch of + * `partial_rows` is sent. If the client retries the ExecuteQueryRequest with + * the sentinel `resume_token`, the server will emit it again without any + * data in `partial_rows`, then return OK. + * @type bool $reset + * If `true`, any data buffered since the last non-empty `resume_token` must + * be discarded before the other parts of this message, if any, are handled. + * @type int $estimated_batch_size + * Estimated size of the buffer required to hold the next batch of results. + * This value will be sent with the first `partial_rows` of a batch. That is, + * on the first `partial_rows` received in a stream, on the first message + * after a `batch_checksum` message, and any time `reset` is true. + * The client can use this estimate to allocate a buffer for the next batch of + * results. This helps minimize the number of allocations required, though the + * buffer size may still need to be increased if the estimate is too low. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); + parent::__construct($data); + } + + /** + * Partial rows in serialized ProtoRows format. + * + * Generated from protobuf field .google.bigtable.v2.ProtoRowsBatch proto_rows_batch = 3; + * @return \Google\Cloud\Bigtable\V2\ProtoRowsBatch|null + */ + public function getProtoRowsBatch() + { + return $this->readOneof(3); + } + + public function hasProtoRowsBatch() + { + return $this->hasOneof(3); + } + + /** + * Partial rows in serialized ProtoRows format. + * + * Generated from protobuf field .google.bigtable.v2.ProtoRowsBatch proto_rows_batch = 3; + * @param \Google\Cloud\Bigtable\V2\ProtoRowsBatch $var + * @return $this + */ + public function setProtoRowsBatch($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\ProtoRowsBatch::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * CRC32C checksum of concatenated `partial_rows` data for the current batch. + * When present, the buffered data from `partial_rows` forms a complete + * parseable message of the appropriate type. + * The client should mark the end of a parseable message and prepare to + * receive a new one starting from the next `PartialResultSet` message. + * Clients must verify the checksum of the serialized batch before yielding it + * to the caller. + * This does NOT mean the values can be yielded to the callers since a + * `resume_token` is required to safely do so. + * If `resume_token` is non-empty and any data has been received since the + * last one, this field is guaranteed to be non-empty. In other words, clients + * may assume that a batch will never cross a `resume_token` boundary. + * + * Generated from protobuf field optional uint32 batch_checksum = 6; + * @return int + */ + public function getBatchChecksum() + { + return isset($this->batch_checksum) ? $this->batch_checksum : 0; + } + + public function hasBatchChecksum() + { + return isset($this->batch_checksum); + } + + public function clearBatchChecksum() + { + unset($this->batch_checksum); + } + + /** + * CRC32C checksum of concatenated `partial_rows` data for the current batch. + * When present, the buffered data from `partial_rows` forms a complete + * parseable message of the appropriate type. + * The client should mark the end of a parseable message and prepare to + * receive a new one starting from the next `PartialResultSet` message. + * Clients must verify the checksum of the serialized batch before yielding it + * to the caller. + * This does NOT mean the values can be yielded to the callers since a + * `resume_token` is required to safely do so. + * If `resume_token` is non-empty and any data has been received since the + * last one, this field is guaranteed to be non-empty. In other words, clients + * may assume that a batch will never cross a `resume_token` boundary. + * + * Generated from protobuf field optional uint32 batch_checksum = 6; + * @param int $var + * @return $this + */ + public function setBatchChecksum($var) + { + GPBUtil::checkUint32($var); + $this->batch_checksum = $var; + + return $this; + } + + /** + * An opaque token sent by the server to allow query resumption and signal + * that the buffered values constructed from received `partial_rows` can be + * yielded to the caller. Clients can provide this token in a subsequent + * request to resume the result stream from the current point. + * When `resume_token` is non-empty, the buffered values received from + * `partial_rows` since the last non-empty `resume_token` can be yielded to + * the callers, provided that the client keeps the value of `resume_token` and + * uses it on subsequent retries. + * A `resume_token` may be sent without information in `partial_rows` to + * checkpoint the progress of a sparse query. Any previous `partial_rows` data + * should still be yielded in this case, and the new `resume_token` should be + * saved for future retries as normal. + * A `resume_token` will only be sent on a boundary where there is either no + * ongoing result batch, or `batch_checksum` is also populated. + * The server will also send a sentinel `resume_token` when last batch of + * `partial_rows` is sent. If the client retries the ExecuteQueryRequest with + * the sentinel `resume_token`, the server will emit it again without any + * data in `partial_rows`, then return OK. + * + * Generated from protobuf field bytes resume_token = 5; + * @return string + */ + public function getResumeToken() + { + return $this->resume_token; + } + + /** + * An opaque token sent by the server to allow query resumption and signal + * that the buffered values constructed from received `partial_rows` can be + * yielded to the caller. Clients can provide this token in a subsequent + * request to resume the result stream from the current point. + * When `resume_token` is non-empty, the buffered values received from + * `partial_rows` since the last non-empty `resume_token` can be yielded to + * the callers, provided that the client keeps the value of `resume_token` and + * uses it on subsequent retries. + * A `resume_token` may be sent without information in `partial_rows` to + * checkpoint the progress of a sparse query. Any previous `partial_rows` data + * should still be yielded in this case, and the new `resume_token` should be + * saved for future retries as normal. + * A `resume_token` will only be sent on a boundary where there is either no + * ongoing result batch, or `batch_checksum` is also populated. + * The server will also send a sentinel `resume_token` when last batch of + * `partial_rows` is sent. If the client retries the ExecuteQueryRequest with + * the sentinel `resume_token`, the server will emit it again without any + * data in `partial_rows`, then return OK. + * + * Generated from protobuf field bytes resume_token = 5; + * @param string $var + * @return $this + */ + public function setResumeToken($var) + { + GPBUtil::checkString($var, False); + $this->resume_token = $var; + + return $this; + } + + /** + * If `true`, any data buffered since the last non-empty `resume_token` must + * be discarded before the other parts of this message, if any, are handled. + * + * Generated from protobuf field bool reset = 7; + * @return bool + */ + public function getReset() + { + return $this->reset; + } + + /** + * If `true`, any data buffered since the last non-empty `resume_token` must + * be discarded before the other parts of this message, if any, are handled. + * + * Generated from protobuf field bool reset = 7; + * @param bool $var + * @return $this + */ + public function setReset($var) + { + GPBUtil::checkBool($var); + $this->reset = $var; + + return $this; + } + + /** + * Estimated size of the buffer required to hold the next batch of results. + * This value will be sent with the first `partial_rows` of a batch. That is, + * on the first `partial_rows` received in a stream, on the first message + * after a `batch_checksum` message, and any time `reset` is true. + * The client can use this estimate to allocate a buffer for the next batch of + * results. This helps minimize the number of allocations required, though the + * buffer size may still need to be increased if the estimate is too low. + * + * Generated from protobuf field int32 estimated_batch_size = 4; + * @return int + */ + public function getEstimatedBatchSize() + { + return $this->estimated_batch_size; + } + + /** + * Estimated size of the buffer required to hold the next batch of results. + * This value will be sent with the first `partial_rows` of a batch. That is, + * on the first `partial_rows` received in a stream, on the first message + * after a `batch_checksum` message, and any time `reset` is true. + * The client can use this estimate to allocate a buffer for the next batch of + * results. This helps minimize the number of allocations required, though the + * buffer size may still need to be increased if the estimate is too low. + * + * Generated from protobuf field int32 estimated_batch_size = 4; + * @param int $var + * @return $this + */ + public function setEstimatedBatchSize($var) + { + GPBUtil::checkInt32($var); + $this->estimated_batch_size = $var; + + return $this; + } + + /** + * @return string + */ + public function getPartialRows() + { + return $this->whichOneof("partial_rows"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PeerInfo.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PeerInfo.php new file mode 100644 index 000000000000..7c958236187c --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PeerInfo.php @@ -0,0 +1,209 @@ +google.bigtable.v2.PeerInfo + */ +class PeerInfo extends \Google\Protobuf\Internal\Message +{ + /** + * An opaque identifier for the Google Frontend which serviced this request. + * Only set when not using DirectAccess. + * + * Generated from protobuf field int64 google_frontend_id = 1; + */ + protected $google_frontend_id = 0; + /** + * An opaque identifier for the application frontend which serviced this + * request. + * + * Generated from protobuf field int64 application_frontend_id = 2; + */ + protected $application_frontend_id = 0; + /** + * The Cloud zone of the application frontend that served this request. + * + * Generated from protobuf field string application_frontend_zone = 3; + */ + protected $application_frontend_zone = ''; + /** + * The subzone of the application frontend that served this request, e.g. an + * identifier for where within the zone the application frontend is. + * + * Generated from protobuf field string application_frontend_subzone = 4; + */ + protected $application_frontend_subzone = ''; + /** + * Generated from protobuf field .google.bigtable.v2.PeerInfo.TransportType transport_type = 5; + */ + protected $transport_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $google_frontend_id + * An opaque identifier for the Google Frontend which serviced this request. + * Only set when not using DirectAccess. + * @type int|string $application_frontend_id + * An opaque identifier for the application frontend which serviced this + * request. + * @type string $application_frontend_zone + * The Cloud zone of the application frontend that served this request. + * @type string $application_frontend_subzone + * The subzone of the application frontend that served this request, e.g. an + * identifier for where within the zone the application frontend is. + * @type int $transport_type + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\PeerInfo::initOnce(); + parent::__construct($data); + } + + /** + * An opaque identifier for the Google Frontend which serviced this request. + * Only set when not using DirectAccess. + * + * Generated from protobuf field int64 google_frontend_id = 1; + * @return int|string + */ + public function getGoogleFrontendId() + { + return $this->google_frontend_id; + } + + /** + * An opaque identifier for the Google Frontend which serviced this request. + * Only set when not using DirectAccess. + * + * Generated from protobuf field int64 google_frontend_id = 1; + * @param int|string $var + * @return $this + */ + public function setGoogleFrontendId($var) + { + GPBUtil::checkInt64($var); + $this->google_frontend_id = $var; + + return $this; + } + + /** + * An opaque identifier for the application frontend which serviced this + * request. + * + * Generated from protobuf field int64 application_frontend_id = 2; + * @return int|string + */ + public function getApplicationFrontendId() + { + return $this->application_frontend_id; + } + + /** + * An opaque identifier for the application frontend which serviced this + * request. + * + * Generated from protobuf field int64 application_frontend_id = 2; + * @param int|string $var + * @return $this + */ + public function setApplicationFrontendId($var) + { + GPBUtil::checkInt64($var); + $this->application_frontend_id = $var; + + return $this; + } + + /** + * The Cloud zone of the application frontend that served this request. + * + * Generated from protobuf field string application_frontend_zone = 3; + * @return string + */ + public function getApplicationFrontendZone() + { + return $this->application_frontend_zone; + } + + /** + * The Cloud zone of the application frontend that served this request. + * + * Generated from protobuf field string application_frontend_zone = 3; + * @param string $var + * @return $this + */ + public function setApplicationFrontendZone($var) + { + GPBUtil::checkString($var, True); + $this->application_frontend_zone = $var; + + return $this; + } + + /** + * The subzone of the application frontend that served this request, e.g. an + * identifier for where within the zone the application frontend is. + * + * Generated from protobuf field string application_frontend_subzone = 4; + * @return string + */ + public function getApplicationFrontendSubzone() + { + return $this->application_frontend_subzone; + } + + /** + * The subzone of the application frontend that served this request, e.g. an + * identifier for where within the zone the application frontend is. + * + * Generated from protobuf field string application_frontend_subzone = 4; + * @param string $var + * @return $this + */ + public function setApplicationFrontendSubzone($var) + { + GPBUtil::checkString($var, True); + $this->application_frontend_subzone = $var; + + return $this; + } + + /** + * Generated from protobuf field .google.bigtable.v2.PeerInfo.TransportType transport_type = 5; + * @return int + */ + public function getTransportType() + { + return $this->transport_type; + } + + /** + * Generated from protobuf field .google.bigtable.v2.PeerInfo.TransportType transport_type = 5; + * @param int $var + * @return $this + */ + public function setTransportType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\V2\PeerInfo\TransportType::class); + $this->transport_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PeerInfo/TransportType.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PeerInfo/TransportType.php new file mode 100644 index 000000000000..1630e34a1f7a --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PeerInfo/TransportType.php @@ -0,0 +1,100 @@ +google.bigtable.v2.PeerInfo.TransportType + */ +class TransportType +{ + /** + * The transport type is unknown. + * + * Generated from protobuf enum TRANSPORT_TYPE_UNKNOWN = 0; + */ + const TRANSPORT_TYPE_UNKNOWN = 0; + /** + * The client connected to this peer via an external network + * (e.g. outside Google Coud). + * + * Generated from protobuf enum TRANSPORT_TYPE_EXTERNAL = 1; + */ + const TRANSPORT_TYPE_EXTERNAL = 1; + /** + * The client connected to this peer via CloudPath. + * + * Generated from protobuf enum TRANSPORT_TYPE_CLOUD_PATH = 2; + */ + const TRANSPORT_TYPE_CLOUD_PATH = 2; + /** + * The client connected to this peer via DirectAccess. + * + * Generated from protobuf enum TRANSPORT_TYPE_DIRECT_ACCESS = 3; + */ + const TRANSPORT_TYPE_DIRECT_ACCESS = 3; + /** + * The client connected to this peer via Bigtable Sessions using an unknown + * transport type. + * + * Generated from protobuf enum TRANSPORT_TYPE_SESSION_UNKNOWN = 4; + */ + const TRANSPORT_TYPE_SESSION_UNKNOWN = 4; + /** + * The client connected to this peer via Bigtable Sessions on an external + * network (e.g. outside Google Cloud). + * + * Generated from protobuf enum TRANSPORT_TYPE_SESSION_EXTERNAL = 5; + */ + const TRANSPORT_TYPE_SESSION_EXTERNAL = 5; + /** + * The client connected to this peer via Bigtable Sessions using CloudPath. + * + * Generated from protobuf enum TRANSPORT_TYPE_SESSION_CLOUD_PATH = 6; + */ + const TRANSPORT_TYPE_SESSION_CLOUD_PATH = 6; + /** + * The client connected to this peer via Bigtable Sessions using + * DirectAccess. + * + * Generated from protobuf enum TRANSPORT_TYPE_SESSION_DIRECT_ACCESS = 7; + */ + const TRANSPORT_TYPE_SESSION_DIRECT_ACCESS = 7; + + private static $valueToName = [ + self::TRANSPORT_TYPE_UNKNOWN => 'TRANSPORT_TYPE_UNKNOWN', + self::TRANSPORT_TYPE_EXTERNAL => 'TRANSPORT_TYPE_EXTERNAL', + self::TRANSPORT_TYPE_CLOUD_PATH => 'TRANSPORT_TYPE_CLOUD_PATH', + self::TRANSPORT_TYPE_DIRECT_ACCESS => 'TRANSPORT_TYPE_DIRECT_ACCESS', + self::TRANSPORT_TYPE_SESSION_UNKNOWN => 'TRANSPORT_TYPE_SESSION_UNKNOWN', + self::TRANSPORT_TYPE_SESSION_EXTERNAL => 'TRANSPORT_TYPE_SESSION_EXTERNAL', + self::TRANSPORT_TYPE_SESSION_CLOUD_PATH => 'TRANSPORT_TYPE_SESSION_CLOUD_PATH', + self::TRANSPORT_TYPE_SESSION_DIRECT_ACCESS => 'TRANSPORT_TYPE_SESSION_DIRECT_ACCESS', + ]; + + 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/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PingAndWarmRequest.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PingAndWarmRequest.php new file mode 100644 index 000000000000..1220a3bb167b --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PingAndWarmRequest.php @@ -0,0 +1,148 @@ +google.bigtable.v2.PingAndWarmRequest + */ +class PingAndWarmRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the instance to check permissions for as well + * as respond. Values are of the form + * `projects//instances/`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * + * Generated from protobuf field string app_profile_id = 2; + */ + protected $app_profile_id = ''; + + /** + * @param string $name Required. The unique name of the instance to check permissions for as well + * as respond. Values are of the form + * `projects//instances/`. Please see + * {@see BigtableClient::instanceName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\V2\PingAndWarmRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * @param string $name Required. The unique name of the instance to check permissions for as well + * as respond. Values are of the form + * `projects//instances/`. Please see + * {@see BigtableClient::instanceName()} for help formatting this field. + * @param string $appProfileId This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * + * @return \Google\Cloud\Bigtable\V2\PingAndWarmRequest + * + * @experimental + */ + public static function buildFromNameAppProfileId(string $name, string $appProfileId): self + { + return (new self()) + ->setName($name) + ->setAppProfileId($appProfileId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The unique name of the instance to check permissions for as well + * as respond. Values are of the form + * `projects//instances/`. + * @type string $app_profile_id + * This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the instance to check permissions for as well + * as respond. Values are of the form + * `projects//instances/`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The unique name of the instance to check permissions for as well + * as respond. Values are of the form + * `projects//instances/`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * + * Generated from protobuf field string app_profile_id = 2; + * @return string + */ + public function getAppProfileId() + { + return $this->app_profile_id; + } + + /** + * This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * + * Generated from protobuf field string app_profile_id = 2; + * @param string $var + * @return $this + */ + public function setAppProfileId($var) + { + GPBUtil::checkString($var, True); + $this->app_profile_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PingAndWarmResponse.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PingAndWarmResponse.php new file mode 100644 index 000000000000..fb68c25dfec2 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PingAndWarmResponse.php @@ -0,0 +1,33 @@ +google.bigtable.v2.PingAndWarmResponse + */ +class PingAndWarmResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PrepareQueryRequest.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PrepareQueryRequest.php new file mode 100644 index 000000000000..7523d30bc56f --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PrepareQueryRequest.php @@ -0,0 +1,308 @@ +google.bigtable.v2.PrepareQueryRequest + */ +class PrepareQueryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the instance against which the query should be + * executed. + * Values are of the form `projects//instances/` + * + * Generated from protobuf field string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $instance_name = ''; + /** + * Optional. This value specifies routing for preparing the query. Note that + * this `app_profile_id` is only used for preparing the query. The actual + * query execution will use the app profile specified in the + * `ExecuteQueryRequest`. If not specified, the `default` application profile + * will be used. + * + * Generated from protobuf field string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $app_profile_id = ''; + /** + * Required. The query string. + * + * Generated from protobuf field string query = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $query = ''; + /** + * Required. `param_types` is a map of parameter identifier strings to their + * `Type`s. + * In query string, a parameter placeholder consists of the + * `\@` character followed by the parameter name (for example, `\@firstName`) in + * the query string. + * For example, if param_types["firstName"] = Bytes then \@firstName will be a + * query parameter of type Bytes. The specific `Value` to be used for the + * query execution must be sent in `ExecuteQueryRequest` in the `params` map. + * + * Generated from protobuf field map param_types = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + private $param_types; + protected $data_format; + + /** + * @param string $instanceName Required. The unique name of the instance against which the query should be + * executed. + * Values are of the form `projects//instances/` + * Please see {@see BigtableClient::instanceName()} for help formatting this field. + * @param string $query Required. The query string. + * + * @return \Google\Cloud\Bigtable\V2\PrepareQueryRequest + * + * @experimental + */ + public static function build(string $instanceName, string $query): self + { + return (new self()) + ->setInstanceName($instanceName) + ->setQuery($query); + } + + /** + * @param string $instanceName Required. The unique name of the instance against which the query should be + * executed. + * Values are of the form `projects//instances/` + * Please see {@see BigtableClient::instanceName()} for help formatting this field. + * @param string $query Required. The query string. + * @param string $appProfileId Optional. This value specifies routing for preparing the query. Note that + * this `app_profile_id` is only used for preparing the query. The actual + * query execution will use the app profile specified in the + * `ExecuteQueryRequest`. If not specified, the `default` application profile + * will be used. + * + * @return \Google\Cloud\Bigtable\V2\PrepareQueryRequest + * + * @experimental + */ + public static function buildFromInstanceNameQueryAppProfileId(string $instanceName, string $query, string $appProfileId): self + { + return (new self()) + ->setInstanceName($instanceName) + ->setQuery($query) + ->setAppProfileId($appProfileId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $instance_name + * Required. The unique name of the instance against which the query should be + * executed. + * Values are of the form `projects//instances/` + * @type string $app_profile_id + * Optional. This value specifies routing for preparing the query. Note that + * this `app_profile_id` is only used for preparing the query. The actual + * query execution will use the app profile specified in the + * `ExecuteQueryRequest`. If not specified, the `default` application profile + * will be used. + * @type string $query + * Required. The query string. + * @type \Google\Cloud\Bigtable\V2\ProtoFormat $proto_format + * Protocol buffer format as described by ProtoSchema and ProtoRows + * messages. + * @type array|\Google\Protobuf\Internal\MapField $param_types + * Required. `param_types` is a map of parameter identifier strings to their + * `Type`s. + * In query string, a parameter placeholder consists of the + * `\@` character followed by the parameter name (for example, `\@firstName`) in + * the query string. + * For example, if param_types["firstName"] = Bytes then \@firstName will be a + * query parameter of type Bytes. The specific `Value` to be used for the + * query execution must be sent in `ExecuteQueryRequest` in the `params` map. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the instance against which the query should be + * executed. + * Values are of the form `projects//instances/` + * + * Generated from protobuf field string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getInstanceName() + { + return $this->instance_name; + } + + /** + * Required. The unique name of the instance against which the query should be + * executed. + * Values are of the form `projects//instances/` + * + * Generated from protobuf field string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setInstanceName($var) + { + GPBUtil::checkString($var, True); + $this->instance_name = $var; + + return $this; + } + + /** + * Optional. This value specifies routing for preparing the query. Note that + * this `app_profile_id` is only used for preparing the query. The actual + * query execution will use the app profile specified in the + * `ExecuteQueryRequest`. If not specified, the `default` application profile + * will be used. + * + * Generated from protobuf field string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getAppProfileId() + { + return $this->app_profile_id; + } + + /** + * Optional. This value specifies routing for preparing the query. Note that + * this `app_profile_id` is only used for preparing the query. The actual + * query execution will use the app profile specified in the + * `ExecuteQueryRequest`. If not specified, the `default` application profile + * will be used. + * + * Generated from protobuf field string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setAppProfileId($var) + { + GPBUtil::checkString($var, True); + $this->app_profile_id = $var; + + return $this; + } + + /** + * Required. The query string. + * + * Generated from protobuf field string query = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getQuery() + { + return $this->query; + } + + /** + * Required. The query string. + * + * Generated from protobuf field string query = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkString($var, True); + $this->query = $var; + + return $this; + } + + /** + * Protocol buffer format as described by ProtoSchema and ProtoRows + * messages. + * + * Generated from protobuf field .google.bigtable.v2.ProtoFormat proto_format = 4; + * @return \Google\Cloud\Bigtable\V2\ProtoFormat|null + */ + public function getProtoFormat() + { + return $this->readOneof(4); + } + + public function hasProtoFormat() + { + return $this->hasOneof(4); + } + + /** + * Protocol buffer format as described by ProtoSchema and ProtoRows + * messages. + * + * Generated from protobuf field .google.bigtable.v2.ProtoFormat proto_format = 4; + * @param \Google\Cloud\Bigtable\V2\ProtoFormat $var + * @return $this + */ + public function setProtoFormat($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\ProtoFormat::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Required. `param_types` is a map of parameter identifier strings to their + * `Type`s. + * In query string, a parameter placeholder consists of the + * `\@` character followed by the parameter name (for example, `\@firstName`) in + * the query string. + * For example, if param_types["firstName"] = Bytes then \@firstName will be a + * query parameter of type Bytes. The specific `Value` to be used for the + * query execution must be sent in `ExecuteQueryRequest` in the `params` map. + * + * Generated from protobuf field map param_types = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getParamTypes() + { + return $this->param_types; + } + + /** + * Required. `param_types` is a map of parameter identifier strings to their + * `Type`s. + * In query string, a parameter placeholder consists of the + * `\@` character followed by the parameter name (for example, `\@firstName`) in + * the query string. + * For example, if param_types["firstName"] = Bytes then \@firstName will be a + * query parameter of type Bytes. The specific `Value` to be used for the + * query execution must be sent in `ExecuteQueryRequest` in the `params` map. + * + * Generated from protobuf field map param_types = 6 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setParamTypes($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\Type::class); + $this->param_types = $arr; + + return $this; + } + + /** + * @return string + */ + public function getDataFormat() + { + return $this->whichOneof("data_format"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PrepareQueryResponse.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PrepareQueryResponse.php new file mode 100644 index 000000000000..a0c58f80a4b4 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PrepareQueryResponse.php @@ -0,0 +1,171 @@ +google.bigtable.v2.PrepareQueryResponse + */ +class PrepareQueryResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Structure of rows in the response stream of `ExecuteQueryResponse` for the + * returned `prepared_query`. + * + * Generated from protobuf field .google.bigtable.v2.ResultSetMetadata metadata = 1; + */ + protected $metadata = null; + /** + * A serialized prepared query. Clients should treat this as an opaque + * blob of bytes to send in `ExecuteQueryRequest`. + * + * Generated from protobuf field bytes prepared_query = 2; + */ + protected $prepared_query = ''; + /** + * The time at which the prepared query token becomes invalid. + * A token may become invalid early due to changes in the data being read, but + * it provides a guideline to refresh query plans asynchronously. + * + * Generated from protobuf field .google.protobuf.Timestamp valid_until = 3; + */ + protected $valid_until = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\ResultSetMetadata $metadata + * Structure of rows in the response stream of `ExecuteQueryResponse` for the + * returned `prepared_query`. + * @type string $prepared_query + * A serialized prepared query. Clients should treat this as an opaque + * blob of bytes to send in `ExecuteQueryRequest`. + * @type \Google\Protobuf\Timestamp $valid_until + * The time at which the prepared query token becomes invalid. + * A token may become invalid early due to changes in the data being read, but + * it provides a guideline to refresh query plans asynchronously. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); + parent::__construct($data); + } + + /** + * Structure of rows in the response stream of `ExecuteQueryResponse` for the + * returned `prepared_query`. + * + * Generated from protobuf field .google.bigtable.v2.ResultSetMetadata metadata = 1; + * @return \Google\Cloud\Bigtable\V2\ResultSetMetadata|null + */ + public function getMetadata() + { + return $this->metadata; + } + + public function hasMetadata() + { + return isset($this->metadata); + } + + public function clearMetadata() + { + unset($this->metadata); + } + + /** + * Structure of rows in the response stream of `ExecuteQueryResponse` for the + * returned `prepared_query`. + * + * Generated from protobuf field .google.bigtable.v2.ResultSetMetadata metadata = 1; + * @param \Google\Cloud\Bigtable\V2\ResultSetMetadata $var + * @return $this + */ + public function setMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\ResultSetMetadata::class); + $this->metadata = $var; + + return $this; + } + + /** + * A serialized prepared query. Clients should treat this as an opaque + * blob of bytes to send in `ExecuteQueryRequest`. + * + * Generated from protobuf field bytes prepared_query = 2; + * @return string + */ + public function getPreparedQuery() + { + return $this->prepared_query; + } + + /** + * A serialized prepared query. Clients should treat this as an opaque + * blob of bytes to send in `ExecuteQueryRequest`. + * + * Generated from protobuf field bytes prepared_query = 2; + * @param string $var + * @return $this + */ + public function setPreparedQuery($var) + { + GPBUtil::checkString($var, False); + $this->prepared_query = $var; + + return $this; + } + + /** + * The time at which the prepared query token becomes invalid. + * A token may become invalid early due to changes in the data being read, but + * it provides a guideline to refresh query plans asynchronously. + * + * Generated from protobuf field .google.protobuf.Timestamp valid_until = 3; + * @return \Google\Protobuf\Timestamp|null + */ + public function getValidUntil() + { + return $this->valid_until; + } + + public function hasValidUntil() + { + return isset($this->valid_until); + } + + public function clearValidUntil() + { + unset($this->valid_until); + } + + /** + * The time at which the prepared query token becomes invalid. + * A token may become invalid early due to changes in the data being read, but + * it provides a guideline to refresh query plans asynchronously. + * + * Generated from protobuf field .google.protobuf.Timestamp valid_until = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setValidUntil($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->valid_until = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ProtoFormat.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ProtoFormat.php new file mode 100644 index 000000000000..36b5d95ef7c0 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ProtoFormat.php @@ -0,0 +1,34 @@ +google.bigtable.v2.ProtoFormat + */ +class ProtoFormat extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ProtoRows.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ProtoRows.php new file mode 100644 index 000000000000..f5afe029a8c9 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ProtoRows.php @@ -0,0 +1,78 @@ +google.bigtable.v2.ProtoRows + */ +class ProtoRows extends \Google\Protobuf\Internal\Message +{ + /** + * A proto rows message consists of a list of values. Every N complete values + * defines a row, where N is equal to the number of entries in the + * `metadata.proto_schema.columns` value received in the first response. + * + * Generated from protobuf field repeated .google.bigtable.v2.Value values = 2; + */ + private $values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\Value[] $values + * A proto rows message consists of a list of values. Every N complete values + * defines a row, where N is equal to the number of entries in the + * `metadata.proto_schema.columns` value received in the first response. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); + parent::__construct($data); + } + + /** + * A proto rows message consists of a list of values. Every N complete values + * defines a row, where N is equal to the number of entries in the + * `metadata.proto_schema.columns` value received in the first response. + * + * Generated from protobuf field repeated .google.bigtable.v2.Value values = 2; + * @return RepeatedField<\Google\Cloud\Bigtable\V2\Value> + */ + public function getValues() + { + return $this->values; + } + + /** + * A proto rows message consists of a list of values. Every N complete values + * defines a row, where N is equal to the number of entries in the + * `metadata.proto_schema.columns` value received in the first response. + * + * Generated from protobuf field repeated .google.bigtable.v2.Value values = 2; + * @param \Google\Cloud\Bigtable\V2\Value[] $var + * @return $this + */ + public function setValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\Value::class); + $this->values = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ProtoRowsBatch.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ProtoRowsBatch.php new file mode 100644 index 000000000000..ee67558f7420 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ProtoRowsBatch.php @@ -0,0 +1,83 @@ +google.bigtable.v2.ProtoRowsBatch + */ +class ProtoRowsBatch extends \Google\Protobuf\Internal\Message +{ + /** + * Part of a serialized `ProtoRows` message. + * A complete, parseable ProtoRows message is constructed by + * concatenating `batch_data` from multiple `ProtoRowsBatch` messages. The + * `PartialResultSet` that contains the last part has `complete_batch` set to + * `true`. + * + * Generated from protobuf field bytes batch_data = 1; + */ + protected $batch_data = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $batch_data + * Part of a serialized `ProtoRows` message. + * A complete, parseable ProtoRows message is constructed by + * concatenating `batch_data` from multiple `ProtoRowsBatch` messages. The + * `PartialResultSet` that contains the last part has `complete_batch` set to + * `true`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); + parent::__construct($data); + } + + /** + * Part of a serialized `ProtoRows` message. + * A complete, parseable ProtoRows message is constructed by + * concatenating `batch_data` from multiple `ProtoRowsBatch` messages. The + * `PartialResultSet` that contains the last part has `complete_batch` set to + * `true`. + * + * Generated from protobuf field bytes batch_data = 1; + * @return string + */ + public function getBatchData() + { + return $this->batch_data; + } + + /** + * Part of a serialized `ProtoRows` message. + * A complete, parseable ProtoRows message is constructed by + * concatenating `batch_data` from multiple `ProtoRowsBatch` messages. The + * `PartialResultSet` that contains the last part has `complete_batch` set to + * `true`. + * + * Generated from protobuf field bytes batch_data = 1; + * @param string $var + * @return $this + */ + public function setBatchData($var) + { + GPBUtil::checkString($var, False); + $this->batch_data = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ProtoSchema.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ProtoSchema.php new file mode 100644 index 000000000000..70d004f67c09 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ProtoSchema.php @@ -0,0 +1,67 @@ +google.bigtable.v2.ProtoSchema + */ +class ProtoSchema extends \Google\Protobuf\Internal\Message +{ + /** + * The columns in the result set. + * + * Generated from protobuf field repeated .google.bigtable.v2.ColumnMetadata columns = 1; + */ + private $columns; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\ColumnMetadata[] $columns + * The columns in the result set. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); + parent::__construct($data); + } + + /** + * The columns in the result set. + * + * Generated from protobuf field repeated .google.bigtable.v2.ColumnMetadata columns = 1; + * @return RepeatedField<\Google\Cloud\Bigtable\V2\ColumnMetadata> + */ + public function getColumns() + { + return $this->columns; + } + + /** + * The columns in the result set. + * + * Generated from protobuf field repeated .google.bigtable.v2.ColumnMetadata columns = 1; + * @param \Google\Cloud\Bigtable\V2\ColumnMetadata[] $var + * @return $this + */ + public function setColumns($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\ColumnMetadata::class); + $this->columns = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RateLimitInfo.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RateLimitInfo.php new file mode 100644 index 000000000000..90be8af42fde --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RateLimitInfo.php @@ -0,0 +1,159 @@ +google.bigtable.v2.RateLimitInfo + */ +class RateLimitInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Time that clients should wait before adjusting the target rate again. + * If clients adjust rate too frequently, the impact of the previous + * adjustment may not have been taken into account and may + * over-throttle or under-throttle. If clients adjust rate too slowly, they + * will not be responsive to load changes on server side, and may + * over-throttle or under-throttle. + * + * Generated from protobuf field .google.protobuf.Duration period = 1; + */ + protected $period = null; + /** + * If it has been at least one `period` since the last load adjustment, the + * client should multiply the current load by this value to get the new target + * load. For example, if the current load is 100 and `factor` is 0.8, the new + * target load should be 80. After adjusting, the client should ignore + * `factor` until another `period` has passed. + * The client can measure its load using any unit that's comparable over time. + * For example, QPS can be used as long as each request involves a similar + * amount of work. + * + * Generated from protobuf field double factor = 2; + */ + protected $factor = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Duration $period + * Time that clients should wait before adjusting the target rate again. + * If clients adjust rate too frequently, the impact of the previous + * adjustment may not have been taken into account and may + * over-throttle or under-throttle. If clients adjust rate too slowly, they + * will not be responsive to load changes on server side, and may + * over-throttle or under-throttle. + * @type float $factor + * If it has been at least one `period` since the last load adjustment, the + * client should multiply the current load by this value to get the new target + * load. For example, if the current load is 100 and `factor` is 0.8, the new + * target load should be 80. After adjusting, the client should ignore + * `factor` until another `period` has passed. + * The client can measure its load using any unit that's comparable over time. + * For example, QPS can be used as long as each request involves a similar + * amount of work. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); + parent::__construct($data); + } + + /** + * Time that clients should wait before adjusting the target rate again. + * If clients adjust rate too frequently, the impact of the previous + * adjustment may not have been taken into account and may + * over-throttle or under-throttle. If clients adjust rate too slowly, they + * will not be responsive to load changes on server side, and may + * over-throttle or under-throttle. + * + * Generated from protobuf field .google.protobuf.Duration period = 1; + * @return \Google\Protobuf\Duration|null + */ + public function getPeriod() + { + return $this->period; + } + + public function hasPeriod() + { + return isset($this->period); + } + + public function clearPeriod() + { + unset($this->period); + } + + /** + * Time that clients should wait before adjusting the target rate again. + * If clients adjust rate too frequently, the impact of the previous + * adjustment may not have been taken into account and may + * over-throttle or under-throttle. If clients adjust rate too slowly, they + * will not be responsive to load changes on server side, and may + * over-throttle or under-throttle. + * + * Generated from protobuf field .google.protobuf.Duration period = 1; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setPeriod($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->period = $var; + + return $this; + } + + /** + * If it has been at least one `period` since the last load adjustment, the + * client should multiply the current load by this value to get the new target + * load. For example, if the current load is 100 and `factor` is 0.8, the new + * target load should be 80. After adjusting, the client should ignore + * `factor` until another `period` has passed. + * The client can measure its load using any unit that's comparable over time. + * For example, QPS can be used as long as each request involves a similar + * amount of work. + * + * Generated from protobuf field double factor = 2; + * @return float + */ + public function getFactor() + { + return $this->factor; + } + + /** + * If it has been at least one `period` since the last load adjustment, the + * client should multiply the current load by this value to get the new target + * load. For example, if the current load is 100 and `factor` is 0.8, the new + * target load should be 80. After adjusting, the client should ignore + * `factor` until another `period` has passed. + * The client can measure its load using any unit that's comparable over time. + * For example, QPS can be used as long as each request involves a similar + * amount of work. + * + * Generated from protobuf field double factor = 2; + * @param float $var + * @return $this + */ + public function setFactor($var) + { + GPBUtil::checkDouble($var); + $this->factor = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamRequest.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamRequest.php new file mode 100644 index 000000000000..a80c119f70db --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamRequest.php @@ -0,0 +1,412 @@ +google.bigtable.v2.ReadChangeStreamRequest + */ +class ReadChangeStreamRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique name of the table from which to read a change stream. + * Values are of the form + * `projects//instances//tables/
`. + * Change streaming must be enabled on the table. + * + * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $table_name = ''; + /** + * This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * Single cluster routing must be configured on the profile. + * + * Generated from protobuf field string app_profile_id = 2; + */ + protected $app_profile_id = ''; + /** + * The partition to read changes from. + * + * Generated from protobuf field .google.bigtable.v2.StreamPartition partition = 3; + */ + protected $partition = null; + /** + * If specified, OK will be returned when the stream advances beyond + * this time. Otherwise, changes will be continuously delivered on the stream. + * This value is inclusive and will be truncated to microsecond granularity. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 5; + */ + protected $end_time = null; + /** + * If specified, the duration between `Heartbeat` messages on the stream. + * Otherwise, defaults to 5 seconds. + * + * Generated from protobuf field .google.protobuf.Duration heartbeat_duration = 7; + */ + protected $heartbeat_duration = null; + protected $start_from; + + /** + * @param string $tableName Required. The unique name of the table from which to read a change stream. + * Values are of the form + * `projects//instances//tables/
`. + * Change streaming must be enabled on the table. Please see + * {@see BigtableClient::tableName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\V2\ReadChangeStreamRequest + * + * @experimental + */ + public static function build(string $tableName): self + { + return (new self()) + ->setTableName($tableName); + } + + /** + * @param string $tableName Required. The unique name of the table from which to read a change stream. + * Values are of the form + * `projects//instances//tables/
`. + * Change streaming must be enabled on the table. Please see + * {@see BigtableClient::tableName()} for help formatting this field. + * @param string $appProfileId This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * Single cluster routing must be configured on the profile. + * + * @return \Google\Cloud\Bigtable\V2\ReadChangeStreamRequest + * + * @experimental + */ + public static function buildFromTableNameAppProfileId(string $tableName, string $appProfileId): self + { + return (new self()) + ->setTableName($tableName) + ->setAppProfileId($appProfileId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $table_name + * Required. The unique name of the table from which to read a change stream. + * Values are of the form + * `projects//instances//tables/
`. + * Change streaming must be enabled on the table. + * @type string $app_profile_id + * This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * Single cluster routing must be configured on the profile. + * @type \Google\Cloud\Bigtable\V2\StreamPartition $partition + * The partition to read changes from. + * @type \Google\Protobuf\Timestamp $start_time + * Start reading the stream at the specified timestamp. This timestamp must + * be within the change stream retention period, less than or equal to the + * current time, and after change stream creation, whichever is greater. + * This value is inclusive and will be truncated to microsecond granularity. + * @type \Google\Cloud\Bigtable\V2\StreamContinuationTokens $continuation_tokens + * Tokens that describe how to resume reading a stream where reading + * previously left off. If specified, changes will be read starting at the + * the position. Tokens are delivered on the stream as part of `Heartbeat` + * and `CloseStream` messages. + * If a single token is provided, the token's partition must exactly match + * the request's partition. If multiple tokens are provided, as in the case + * of a partition merge, the union of the token partitions must exactly + * cover the request's partition. Otherwise, INVALID_ARGUMENT will be + * returned. + * @type \Google\Protobuf\Timestamp $end_time + * If specified, OK will be returned when the stream advances beyond + * this time. Otherwise, changes will be continuously delivered on the stream. + * This value is inclusive and will be truncated to microsecond granularity. + * @type \Google\Protobuf\Duration $heartbeat_duration + * If specified, the duration between `Heartbeat` messages on the stream. + * Otherwise, defaults to 5 seconds. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique name of the table from which to read a change stream. + * Values are of the form + * `projects//instances//tables/
`. + * Change streaming must be enabled on the table. + * + * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getTableName() + { + return $this->table_name; + } + + /** + * Required. The unique name of the table from which to read a change stream. + * Values are of the form + * `projects//instances//tables/
`. + * Change streaming must be enabled on the table. + * + * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setTableName($var) + { + GPBUtil::checkString($var, True); + $this->table_name = $var; + + return $this; + } + + /** + * This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * Single cluster routing must be configured on the profile. + * + * Generated from protobuf field string app_profile_id = 2; + * @return string + */ + public function getAppProfileId() + { + return $this->app_profile_id; + } + + /** + * This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * Single cluster routing must be configured on the profile. + * + * Generated from protobuf field string app_profile_id = 2; + * @param string $var + * @return $this + */ + public function setAppProfileId($var) + { + GPBUtil::checkString($var, True); + $this->app_profile_id = $var; + + return $this; + } + + /** + * The partition to read changes from. + * + * Generated from protobuf field .google.bigtable.v2.StreamPartition partition = 3; + * @return \Google\Cloud\Bigtable\V2\StreamPartition|null + */ + public function getPartition() + { + return $this->partition; + } + + public function hasPartition() + { + return isset($this->partition); + } + + public function clearPartition() + { + unset($this->partition); + } + + /** + * The partition to read changes from. + * + * Generated from protobuf field .google.bigtable.v2.StreamPartition partition = 3; + * @param \Google\Cloud\Bigtable\V2\StreamPartition $var + * @return $this + */ + public function setPartition($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\StreamPartition::class); + $this->partition = $var; + + return $this; + } + + /** + * Start reading the stream at the specified timestamp. This timestamp must + * be within the change stream retention period, less than or equal to the + * current time, and after change stream creation, whichever is greater. + * This value is inclusive and will be truncated to microsecond granularity. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 4; + * @return \Google\Protobuf\Timestamp|null + */ + public function getStartTime() + { + return $this->readOneof(4); + } + + public function hasStartTime() + { + return $this->hasOneof(4); + } + + /** + * Start reading the stream at the specified timestamp. This timestamp must + * be within the change stream retention period, less than or equal to the + * current time, and after change stream creation, whichever is greater. + * This value is inclusive and will be truncated to microsecond granularity. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 4; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Tokens that describe how to resume reading a stream where reading + * previously left off. If specified, changes will be read starting at the + * the position. Tokens are delivered on the stream as part of `Heartbeat` + * and `CloseStream` messages. + * If a single token is provided, the token's partition must exactly match + * the request's partition. If multiple tokens are provided, as in the case + * of a partition merge, the union of the token partitions must exactly + * cover the request's partition. Otherwise, INVALID_ARGUMENT will be + * returned. + * + * Generated from protobuf field .google.bigtable.v2.StreamContinuationTokens continuation_tokens = 6; + * @return \Google\Cloud\Bigtable\V2\StreamContinuationTokens|null + */ + public function getContinuationTokens() + { + return $this->readOneof(6); + } + + public function hasContinuationTokens() + { + return $this->hasOneof(6); + } + + /** + * Tokens that describe how to resume reading a stream where reading + * previously left off. If specified, changes will be read starting at the + * the position. Tokens are delivered on the stream as part of `Heartbeat` + * and `CloseStream` messages. + * If a single token is provided, the token's partition must exactly match + * the request's partition. If multiple tokens are provided, as in the case + * of a partition merge, the union of the token partitions must exactly + * cover the request's partition. Otherwise, INVALID_ARGUMENT will be + * returned. + * + * Generated from protobuf field .google.bigtable.v2.StreamContinuationTokens continuation_tokens = 6; + * @param \Google\Cloud\Bigtable\V2\StreamContinuationTokens $var + * @return $this + */ + public function setContinuationTokens($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\StreamContinuationTokens::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * If specified, OK will be returned when the stream advances beyond + * this time. Otherwise, changes will be continuously delivered on the stream. + * This value is inclusive and will be truncated to microsecond granularity. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 5; + * @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); + } + + /** + * If specified, OK will be returned when the stream advances beyond + * this time. Otherwise, changes will be continuously delivered on the stream. + * This value is inclusive and will be truncated to microsecond granularity. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 5; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + + /** + * If specified, the duration between `Heartbeat` messages on the stream. + * Otherwise, defaults to 5 seconds. + * + * Generated from protobuf field .google.protobuf.Duration heartbeat_duration = 7; + * @return \Google\Protobuf\Duration|null + */ + public function getHeartbeatDuration() + { + return $this->heartbeat_duration; + } + + public function hasHeartbeatDuration() + { + return isset($this->heartbeat_duration); + } + + public function clearHeartbeatDuration() + { + unset($this->heartbeat_duration); + } + + /** + * If specified, the duration between `Heartbeat` messages on the stream. + * Otherwise, defaults to 5 seconds. + * + * Generated from protobuf field .google.protobuf.Duration heartbeat_duration = 7; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setHeartbeatDuration($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->heartbeat_duration = $var; + + return $this; + } + + /** + * @return string + */ + public function getStartFrom() + { + return $this->whichOneof("start_from"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse.php new file mode 100644 index 000000000000..eb65b2eb99cc --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse.php @@ -0,0 +1,142 @@ +google.bigtable.v2.ReadChangeStreamResponse + */ +class ReadChangeStreamResponse extends \Google\Protobuf\Internal\Message +{ + protected $stream_record; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\DataChange $data_change + * A mutation to the partition. + * @type \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\Heartbeat $heartbeat + * A periodic heartbeat message. + * @type \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\CloseStream $close_stream + * An indication that the stream should be closed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); + parent::__construct($data); + } + + /** + * A mutation to the partition. + * + * Generated from protobuf field .google.bigtable.v2.ReadChangeStreamResponse.DataChange data_change = 1; + * @return \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\DataChange|null + */ + public function getDataChange() + { + return $this->readOneof(1); + } + + public function hasDataChange() + { + return $this->hasOneof(1); + } + + /** + * A mutation to the partition. + * + * Generated from protobuf field .google.bigtable.v2.ReadChangeStreamResponse.DataChange data_change = 1; + * @param \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\DataChange $var + * @return $this + */ + public function setDataChange($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\DataChange::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * A periodic heartbeat message. + * + * Generated from protobuf field .google.bigtable.v2.ReadChangeStreamResponse.Heartbeat heartbeat = 2; + * @return \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\Heartbeat|null + */ + public function getHeartbeat() + { + return $this->readOneof(2); + } + + public function hasHeartbeat() + { + return $this->hasOneof(2); + } + + /** + * A periodic heartbeat message. + * + * Generated from protobuf field .google.bigtable.v2.ReadChangeStreamResponse.Heartbeat heartbeat = 2; + * @param \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\Heartbeat $var + * @return $this + */ + public function setHeartbeat($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\Heartbeat::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * An indication that the stream should be closed. + * + * Generated from protobuf field .google.bigtable.v2.ReadChangeStreamResponse.CloseStream close_stream = 3; + * @return \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\CloseStream|null + */ + public function getCloseStream() + { + return $this->readOneof(3); + } + + public function hasCloseStream() + { + return $this->hasOneof(3); + } + + /** + * An indication that the stream should be closed. + * + * Generated from protobuf field .google.bigtable.v2.ReadChangeStreamResponse.CloseStream close_stream = 3; + * @param \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\CloseStream $var + * @return $this + */ + public function setCloseStream($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\CloseStream::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getStreamRecord() + { + return $this->whichOneof("stream_record"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/CloseStream.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/CloseStream.php new file mode 100644 index 000000000000..d20c88c0c265 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/CloseStream.php @@ -0,0 +1,176 @@ +google.bigtable.v2.ReadChangeStreamResponse.CloseStream + */ +class CloseStream extends \Google\Protobuf\Internal\Message +{ + /** + * The status of the stream. + * + * Generated from protobuf field .google.rpc.Status status = 1; + */ + protected $status = null; + /** + * If non-empty, contains the information needed to resume reading their + * associated partitions. + * + * Generated from protobuf field repeated .google.bigtable.v2.StreamContinuationToken continuation_tokens = 2; + */ + private $continuation_tokens; + /** + * If non-empty, contains the new partitions to start reading from, which + * are related to but not necessarily identical to the partitions for the + * above `continuation_tokens`. + * + * Generated from protobuf field repeated .google.bigtable.v2.StreamPartition new_partitions = 3; + */ + private $new_partitions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Rpc\Status $status + * The status of the stream. + * @type \Google\Cloud\Bigtable\V2\StreamContinuationToken[] $continuation_tokens + * If non-empty, contains the information needed to resume reading their + * associated partitions. + * @type \Google\Cloud\Bigtable\V2\StreamPartition[] $new_partitions + * If non-empty, contains the new partitions to start reading from, which + * are related to but not necessarily identical to the partitions for the + * above `continuation_tokens`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); + parent::__construct($data); + } + + /** + * The status of the stream. + * + * Generated from protobuf field .google.rpc.Status status = 1; + * @return \Google\Rpc\Status|null + */ + public function getStatus() + { + return $this->status; + } + + public function hasStatus() + { + return isset($this->status); + } + + public function clearStatus() + { + unset($this->status); + } + + /** + * The status of the stream. + * + * Generated from protobuf field .google.rpc.Status status = 1; + * @param \Google\Rpc\Status $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Status::class); + $this->status = $var; + + return $this; + } + + /** + * If non-empty, contains the information needed to resume reading their + * associated partitions. + * + * Generated from protobuf field repeated .google.bigtable.v2.StreamContinuationToken continuation_tokens = 2; + * @return RepeatedField<\Google\Cloud\Bigtable\V2\StreamContinuationToken> + */ + public function getContinuationTokens() + { + return $this->continuation_tokens; + } + + /** + * If non-empty, contains the information needed to resume reading their + * associated partitions. + * + * Generated from protobuf field repeated .google.bigtable.v2.StreamContinuationToken continuation_tokens = 2; + * @param \Google\Cloud\Bigtable\V2\StreamContinuationToken[] $var + * @return $this + */ + public function setContinuationTokens($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\StreamContinuationToken::class); + $this->continuation_tokens = $arr; + + return $this; + } + + /** + * If non-empty, contains the new partitions to start reading from, which + * are related to but not necessarily identical to the partitions for the + * above `continuation_tokens`. + * + * Generated from protobuf field repeated .google.bigtable.v2.StreamPartition new_partitions = 3; + * @return RepeatedField<\Google\Cloud\Bigtable\V2\StreamPartition> + */ + public function getNewPartitions() + { + return $this->new_partitions; + } + + /** + * If non-empty, contains the new partitions to start reading from, which + * are related to but not necessarily identical to the partitions for the + * above `continuation_tokens`. + * + * Generated from protobuf field repeated .google.bigtable.v2.StreamPartition new_partitions = 3; + * @param \Google\Cloud\Bigtable\V2\StreamPartition[] $var + * @return $this + */ + public function setNewPartitions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\StreamPartition::class); + $this->new_partitions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/DataChange.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/DataChange.php new file mode 100644 index 000000000000..2a7017ba9c82 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/DataChange.php @@ -0,0 +1,436 @@ +google.bigtable.v2.ReadChangeStreamResponse.DataChange + */ +class DataChange extends \Google\Protobuf\Internal\Message +{ + /** + * The type of the mutation. + * + * Generated from protobuf field .google.bigtable.v2.ReadChangeStreamResponse.DataChange.Type type = 1; + */ + protected $type = 0; + /** + * The cluster where the mutation was applied. + * Not set when `type` is `GARBAGE_COLLECTION`. + * + * Generated from protobuf field string source_cluster_id = 2; + */ + protected $source_cluster_id = ''; + /** + * The row key for all mutations that are part of this `DataChange`. + * If the `DataChange` is chunked across multiple messages, then this field + * will only be set for the first message. + * + * Generated from protobuf field bytes row_key = 3; + */ + protected $row_key = ''; + /** + * The timestamp at which the mutation was applied on the Bigtable server. + * + * Generated from protobuf field .google.protobuf.Timestamp commit_timestamp = 4; + */ + protected $commit_timestamp = null; + /** + * A value that lets stream consumers reconstruct Bigtable's + * conflict resolution semantics. + * https://cloud.google.com/bigtable/docs/writes#conflict-resolution + * In the event that the same row key, column family, column qualifier, + * timestamp are modified on different clusters at the same + * `commit_timestamp`, the mutation with the larger `tiebreaker` will be the + * one chosen for the eventually consistent state of the system. + * + * Generated from protobuf field int32 tiebreaker = 5; + */ + protected $tiebreaker = 0; + /** + * The mutations associated with this change to the partition. + * May contain complete mutations or chunks of a multi-message chunked + * `DataChange` record. + * + * Generated from protobuf field repeated .google.bigtable.v2.ReadChangeStreamResponse.MutationChunk chunks = 6; + */ + private $chunks; + /** + * When true, indicates that the entire `DataChange` has been read + * and the client can safely process the message. + * + * Generated from protobuf field bool done = 8; + */ + protected $done = false; + /** + * An encoded position for this stream's partition to restart reading from. + * This token is for the StreamPartition from the request. + * + * Generated from protobuf field string token = 9; + */ + protected $token = ''; + /** + * An estimate of the commit timestamp that is usually lower than or equal + * to any timestamp for a record that will be delivered in the future on the + * stream. It is possible that, under particular circumstances that a future + * record has a timestamp that is lower than a previously seen timestamp. + * For an example usage see + * https://beam.apache.org/documentation/basics/#watermarks + * + * Generated from protobuf field .google.protobuf.Timestamp estimated_low_watermark = 10; + */ + protected $estimated_low_watermark = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $type + * The type of the mutation. + * @type string $source_cluster_id + * The cluster where the mutation was applied. + * Not set when `type` is `GARBAGE_COLLECTION`. + * @type string $row_key + * The row key for all mutations that are part of this `DataChange`. + * If the `DataChange` is chunked across multiple messages, then this field + * will only be set for the first message. + * @type \Google\Protobuf\Timestamp $commit_timestamp + * The timestamp at which the mutation was applied on the Bigtable server. + * @type int $tiebreaker + * A value that lets stream consumers reconstruct Bigtable's + * conflict resolution semantics. + * https://cloud.google.com/bigtable/docs/writes#conflict-resolution + * In the event that the same row key, column family, column qualifier, + * timestamp are modified on different clusters at the same + * `commit_timestamp`, the mutation with the larger `tiebreaker` will be the + * one chosen for the eventually consistent state of the system. + * @type \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\MutationChunk[] $chunks + * The mutations associated with this change to the partition. + * May contain complete mutations or chunks of a multi-message chunked + * `DataChange` record. + * @type bool $done + * When true, indicates that the entire `DataChange` has been read + * and the client can safely process the message. + * @type string $token + * An encoded position for this stream's partition to restart reading from. + * This token is for the StreamPartition from the request. + * @type \Google\Protobuf\Timestamp $estimated_low_watermark + * An estimate of the commit timestamp that is usually lower than or equal + * to any timestamp for a record that will be delivered in the future on the + * stream. It is possible that, under particular circumstances that a future + * record has a timestamp that is lower than a previously seen timestamp. + * For an example usage see + * https://beam.apache.org/documentation/basics/#watermarks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); + parent::__construct($data); + } + + /** + * The type of the mutation. + * + * Generated from protobuf field .google.bigtable.v2.ReadChangeStreamResponse.DataChange.Type type = 1; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * The type of the mutation. + * + * Generated from protobuf field .google.bigtable.v2.ReadChangeStreamResponse.DataChange.Type type = 1; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\DataChange\Type::class); + $this->type = $var; + + return $this; + } + + /** + * The cluster where the mutation was applied. + * Not set when `type` is `GARBAGE_COLLECTION`. + * + * Generated from protobuf field string source_cluster_id = 2; + * @return string + */ + public function getSourceClusterId() + { + return $this->source_cluster_id; + } + + /** + * The cluster where the mutation was applied. + * Not set when `type` is `GARBAGE_COLLECTION`. + * + * Generated from protobuf field string source_cluster_id = 2; + * @param string $var + * @return $this + */ + public function setSourceClusterId($var) + { + GPBUtil::checkString($var, True); + $this->source_cluster_id = $var; + + return $this; + } + + /** + * The row key for all mutations that are part of this `DataChange`. + * If the `DataChange` is chunked across multiple messages, then this field + * will only be set for the first message. + * + * Generated from protobuf field bytes row_key = 3; + * @return string + */ + public function getRowKey() + { + return $this->row_key; + } + + /** + * The row key for all mutations that are part of this `DataChange`. + * If the `DataChange` is chunked across multiple messages, then this field + * will only be set for the first message. + * + * Generated from protobuf field bytes row_key = 3; + * @param string $var + * @return $this + */ + public function setRowKey($var) + { + GPBUtil::checkString($var, False); + $this->row_key = $var; + + return $this; + } + + /** + * The timestamp at which the mutation was applied on the Bigtable server. + * + * Generated from protobuf field .google.protobuf.Timestamp commit_timestamp = 4; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCommitTimestamp() + { + return $this->commit_timestamp; + } + + public function hasCommitTimestamp() + { + return isset($this->commit_timestamp); + } + + public function clearCommitTimestamp() + { + unset($this->commit_timestamp); + } + + /** + * The timestamp at which the mutation was applied on the Bigtable server. + * + * Generated from protobuf field .google.protobuf.Timestamp commit_timestamp = 4; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCommitTimestamp($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->commit_timestamp = $var; + + return $this; + } + + /** + * A value that lets stream consumers reconstruct Bigtable's + * conflict resolution semantics. + * https://cloud.google.com/bigtable/docs/writes#conflict-resolution + * In the event that the same row key, column family, column qualifier, + * timestamp are modified on different clusters at the same + * `commit_timestamp`, the mutation with the larger `tiebreaker` will be the + * one chosen for the eventually consistent state of the system. + * + * Generated from protobuf field int32 tiebreaker = 5; + * @return int + */ + public function getTiebreaker() + { + return $this->tiebreaker; + } + + /** + * A value that lets stream consumers reconstruct Bigtable's + * conflict resolution semantics. + * https://cloud.google.com/bigtable/docs/writes#conflict-resolution + * In the event that the same row key, column family, column qualifier, + * timestamp are modified on different clusters at the same + * `commit_timestamp`, the mutation with the larger `tiebreaker` will be the + * one chosen for the eventually consistent state of the system. + * + * Generated from protobuf field int32 tiebreaker = 5; + * @param int $var + * @return $this + */ + public function setTiebreaker($var) + { + GPBUtil::checkInt32($var); + $this->tiebreaker = $var; + + return $this; + } + + /** + * The mutations associated with this change to the partition. + * May contain complete mutations or chunks of a multi-message chunked + * `DataChange` record. + * + * Generated from protobuf field repeated .google.bigtable.v2.ReadChangeStreamResponse.MutationChunk chunks = 6; + * @return RepeatedField<\Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\MutationChunk> + */ + public function getChunks() + { + return $this->chunks; + } + + /** + * The mutations associated with this change to the partition. + * May contain complete mutations or chunks of a multi-message chunked + * `DataChange` record. + * + * Generated from protobuf field repeated .google.bigtable.v2.ReadChangeStreamResponse.MutationChunk chunks = 6; + * @param \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\MutationChunk[] $var + * @return $this + */ + public function setChunks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\MutationChunk::class); + $this->chunks = $arr; + + return $this; + } + + /** + * When true, indicates that the entire `DataChange` has been read + * and the client can safely process the message. + * + * Generated from protobuf field bool done = 8; + * @return bool + */ + public function getDone() + { + return $this->done; + } + + /** + * When true, indicates that the entire `DataChange` has been read + * and the client can safely process the message. + * + * Generated from protobuf field bool done = 8; + * @param bool $var + * @return $this + */ + public function setDone($var) + { + GPBUtil::checkBool($var); + $this->done = $var; + + return $this; + } + + /** + * An encoded position for this stream's partition to restart reading from. + * This token is for the StreamPartition from the request. + * + * Generated from protobuf field string token = 9; + * @return string + */ + public function getToken() + { + return $this->token; + } + + /** + * An encoded position for this stream's partition to restart reading from. + * This token is for the StreamPartition from the request. + * + * Generated from protobuf field string token = 9; + * @param string $var + * @return $this + */ + public function setToken($var) + { + GPBUtil::checkString($var, True); + $this->token = $var; + + return $this; + } + + /** + * An estimate of the commit timestamp that is usually lower than or equal + * to any timestamp for a record that will be delivered in the future on the + * stream. It is possible that, under particular circumstances that a future + * record has a timestamp that is lower than a previously seen timestamp. + * For an example usage see + * https://beam.apache.org/documentation/basics/#watermarks + * + * Generated from protobuf field .google.protobuf.Timestamp estimated_low_watermark = 10; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEstimatedLowWatermark() + { + return $this->estimated_low_watermark; + } + + public function hasEstimatedLowWatermark() + { + return isset($this->estimated_low_watermark); + } + + public function clearEstimatedLowWatermark() + { + unset($this->estimated_low_watermark); + } + + /** + * An estimate of the commit timestamp that is usually lower than or equal + * to any timestamp for a record that will be delivered in the future on the + * stream. It is possible that, under particular circumstances that a future + * record has a timestamp that is lower than a previously seen timestamp. + * For an example usage see + * https://beam.apache.org/documentation/basics/#watermarks + * + * Generated from protobuf field .google.protobuf.Timestamp estimated_low_watermark = 10; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEstimatedLowWatermark($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->estimated_low_watermark = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/DataChange/Type.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/DataChange/Type.php new file mode 100644 index 000000000000..7ec3437cf671 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/DataChange/Type.php @@ -0,0 +1,69 @@ +google.bigtable.v2.ReadChangeStreamResponse.DataChange.Type + */ +class Type +{ + /** + * The type is unspecified. + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * A user-initiated mutation. + * + * Generated from protobuf enum USER = 1; + */ + const USER = 1; + /** + * A system-initiated mutation as part of garbage collection. + * https://cloud.google.com/bigtable/docs/garbage-collection + * + * Generated from protobuf enum GARBAGE_COLLECTION = 2; + */ + const GARBAGE_COLLECTION = 2; + /** + * This is a continuation of a multi-message change. + * + * Generated from protobuf enum CONTINUATION = 3; + */ + const CONTINUATION = 3; + + private static $valueToName = [ + self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', + self::USER => 'USER', + self::GARBAGE_COLLECTION => 'GARBAGE_COLLECTION', + self::CONTINUATION => 'CONTINUATION', + ]; + + 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/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/Heartbeat.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/Heartbeat.php new file mode 100644 index 000000000000..83cd2e0e6fc1 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/Heartbeat.php @@ -0,0 +1,146 @@ +google.bigtable.v2.ReadChangeStreamResponse.Heartbeat + */ +class Heartbeat extends \Google\Protobuf\Internal\Message +{ + /** + * A token that can be provided to a subsequent `ReadChangeStream` call + * to pick up reading at the current stream position. + * + * Generated from protobuf field .google.bigtable.v2.StreamContinuationToken continuation_token = 1; + */ + protected $continuation_token = null; + /** + * An estimate of the commit timestamp that is usually lower than or equal + * to any timestamp for a record that will be delivered in the future on the + * stream. It is possible that, under particular circumstances that a future + * record has a timestamp that is lower than a previously seen timestamp. + * For an example usage see + * https://beam.apache.org/documentation/basics/#watermarks + * + * Generated from protobuf field .google.protobuf.Timestamp estimated_low_watermark = 2; + */ + protected $estimated_low_watermark = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\StreamContinuationToken $continuation_token + * A token that can be provided to a subsequent `ReadChangeStream` call + * to pick up reading at the current stream position. + * @type \Google\Protobuf\Timestamp $estimated_low_watermark + * An estimate of the commit timestamp that is usually lower than or equal + * to any timestamp for a record that will be delivered in the future on the + * stream. It is possible that, under particular circumstances that a future + * record has a timestamp that is lower than a previously seen timestamp. + * For an example usage see + * https://beam.apache.org/documentation/basics/#watermarks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); + parent::__construct($data); + } + + /** + * A token that can be provided to a subsequent `ReadChangeStream` call + * to pick up reading at the current stream position. + * + * Generated from protobuf field .google.bigtable.v2.StreamContinuationToken continuation_token = 1; + * @return \Google\Cloud\Bigtable\V2\StreamContinuationToken|null + */ + public function getContinuationToken() + { + return $this->continuation_token; + } + + public function hasContinuationToken() + { + return isset($this->continuation_token); + } + + public function clearContinuationToken() + { + unset($this->continuation_token); + } + + /** + * A token that can be provided to a subsequent `ReadChangeStream` call + * to pick up reading at the current stream position. + * + * Generated from protobuf field .google.bigtable.v2.StreamContinuationToken continuation_token = 1; + * @param \Google\Cloud\Bigtable\V2\StreamContinuationToken $var + * @return $this + */ + public function setContinuationToken($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\StreamContinuationToken::class); + $this->continuation_token = $var; + + return $this; + } + + /** + * An estimate of the commit timestamp that is usually lower than or equal + * to any timestamp for a record that will be delivered in the future on the + * stream. It is possible that, under particular circumstances that a future + * record has a timestamp that is lower than a previously seen timestamp. + * For an example usage see + * https://beam.apache.org/documentation/basics/#watermarks + * + * Generated from protobuf field .google.protobuf.Timestamp estimated_low_watermark = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEstimatedLowWatermark() + { + return $this->estimated_low_watermark; + } + + public function hasEstimatedLowWatermark() + { + return isset($this->estimated_low_watermark); + } + + public function clearEstimatedLowWatermark() + { + unset($this->estimated_low_watermark); + } + + /** + * An estimate of the commit timestamp that is usually lower than or equal + * to any timestamp for a record that will be delivered in the future on the + * stream. It is possible that, under particular circumstances that a future + * record has a timestamp that is lower than a previously seen timestamp. + * For an example usage see + * https://beam.apache.org/documentation/basics/#watermarks + * + * Generated from protobuf field .google.protobuf.Timestamp estimated_low_watermark = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEstimatedLowWatermark($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->estimated_low_watermark = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/MutationChunk.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/MutationChunk.php new file mode 100644 index 000000000000..34cf91422ec1 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/MutationChunk.php @@ -0,0 +1,133 @@ +google.bigtable.v2.ReadChangeStreamResponse.MutationChunk + */ +class MutationChunk extends \Google\Protobuf\Internal\Message +{ + /** + * If set, then the mutation is a `SetCell` with a chunked value across + * multiple messages. + * + * Generated from protobuf field .google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo chunk_info = 1; + */ + protected $chunk_info = null; + /** + * If this is a continuation of a chunked message (`chunked_value_offset` > + * 0), ignore all fields except the `SetCell`'s value and merge it with + * the previous message by concatenating the value fields. + * + * Generated from protobuf field .google.bigtable.v2.Mutation mutation = 2; + */ + protected $mutation = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\MutationChunk\ChunkInfo $chunk_info + * If set, then the mutation is a `SetCell` with a chunked value across + * multiple messages. + * @type \Google\Cloud\Bigtable\V2\Mutation $mutation + * If this is a continuation of a chunked message (`chunked_value_offset` > + * 0), ignore all fields except the `SetCell`'s value and merge it with + * the previous message by concatenating the value fields. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); + parent::__construct($data); + } + + /** + * If set, then the mutation is a `SetCell` with a chunked value across + * multiple messages. + * + * Generated from protobuf field .google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo chunk_info = 1; + * @return \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\MutationChunk\ChunkInfo|null + */ + public function getChunkInfo() + { + return $this->chunk_info; + } + + public function hasChunkInfo() + { + return isset($this->chunk_info); + } + + public function clearChunkInfo() + { + unset($this->chunk_info); + } + + /** + * If set, then the mutation is a `SetCell` with a chunked value across + * multiple messages. + * + * Generated from protobuf field .google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo chunk_info = 1; + * @param \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\MutationChunk\ChunkInfo $var + * @return $this + */ + public function setChunkInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\MutationChunk\ChunkInfo::class); + $this->chunk_info = $var; + + return $this; + } + + /** + * If this is a continuation of a chunked message (`chunked_value_offset` > + * 0), ignore all fields except the `SetCell`'s value and merge it with + * the previous message by concatenating the value fields. + * + * Generated from protobuf field .google.bigtable.v2.Mutation mutation = 2; + * @return \Google\Cloud\Bigtable\V2\Mutation|null + */ + public function getMutation() + { + return $this->mutation; + } + + public function hasMutation() + { + return isset($this->mutation); + } + + public function clearMutation() + { + unset($this->mutation); + } + + /** + * If this is a continuation of a chunked message (`chunked_value_offset` > + * 0), ignore all fields except the `SetCell`'s value and merge it with + * the previous message by concatenating the value fields. + * + * Generated from protobuf field .google.bigtable.v2.Mutation mutation = 2; + * @param \Google\Cloud\Bigtable\V2\Mutation $var + * @return $this + */ + public function setMutation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Mutation::class); + $this->mutation = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/MutationChunk/ChunkInfo.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/MutationChunk/ChunkInfo.php new file mode 100644 index 000000000000..a4ff7736a1f9 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/MutationChunk/ChunkInfo.php @@ -0,0 +1,141 @@ +google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo + */ +class ChunkInfo extends \Google\Protobuf\Internal\Message +{ + /** + * The total value size of all the chunks that make up the `SetCell`. + * + * Generated from protobuf field int32 chunked_value_size = 1; + */ + protected $chunked_value_size = 0; + /** + * The byte offset of this chunk into the total value size of the + * mutation. + * + * Generated from protobuf field int32 chunked_value_offset = 2; + */ + protected $chunked_value_offset = 0; + /** + * When true, this is the last chunk of a chunked `SetCell`. + * + * Generated from protobuf field bool last_chunk = 3; + */ + protected $last_chunk = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $chunked_value_size + * The total value size of all the chunks that make up the `SetCell`. + * @type int $chunked_value_offset + * The byte offset of this chunk into the total value size of the + * mutation. + * @type bool $last_chunk + * When true, this is the last chunk of a chunked `SetCell`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); + parent::__construct($data); + } + + /** + * The total value size of all the chunks that make up the `SetCell`. + * + * Generated from protobuf field int32 chunked_value_size = 1; + * @return int + */ + public function getChunkedValueSize() + { + return $this->chunked_value_size; + } + + /** + * The total value size of all the chunks that make up the `SetCell`. + * + * Generated from protobuf field int32 chunked_value_size = 1; + * @param int $var + * @return $this + */ + public function setChunkedValueSize($var) + { + GPBUtil::checkInt32($var); + $this->chunked_value_size = $var; + + return $this; + } + + /** + * The byte offset of this chunk into the total value size of the + * mutation. + * + * Generated from protobuf field int32 chunked_value_offset = 2; + * @return int + */ + public function getChunkedValueOffset() + { + return $this->chunked_value_offset; + } + + /** + * The byte offset of this chunk into the total value size of the + * mutation. + * + * Generated from protobuf field int32 chunked_value_offset = 2; + * @param int $var + * @return $this + */ + public function setChunkedValueOffset($var) + { + GPBUtil::checkInt32($var); + $this->chunked_value_offset = $var; + + return $this; + } + + /** + * When true, this is the last chunk of a chunked `SetCell`. + * + * Generated from protobuf field bool last_chunk = 3; + * @return bool + */ + public function getLastChunk() + { + return $this->last_chunk; + } + + /** + * When true, this is the last chunk of a chunked `SetCell`. + * + * Generated from protobuf field bool last_chunk = 3; + * @param bool $var + * @return $this + */ + public function setLastChunk($var) + { + GPBUtil::checkBool($var); + $this->last_chunk = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadIterationStats.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadIterationStats.php new file mode 100644 index 000000000000..2f9fbf18b90c --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadIterationStats.php @@ -0,0 +1,179 @@ +google.bigtable.v2.ReadIterationStats + */ +class ReadIterationStats extends \Google\Protobuf\Internal\Message +{ + /** + * The rows seen (scanned) as part of the request. This includes the count of + * rows returned, as captured below. + * + * Generated from protobuf field int64 rows_seen_count = 1; + */ + protected $rows_seen_count = 0; + /** + * The rows returned as part of the request. + * + * Generated from protobuf field int64 rows_returned_count = 2; + */ + protected $rows_returned_count = 0; + /** + * The cells seen (scanned) as part of the request. This includes the count of + * cells returned, as captured below. + * + * Generated from protobuf field int64 cells_seen_count = 3; + */ + protected $cells_seen_count = 0; + /** + * The cells returned as part of the request. + * + * Generated from protobuf field int64 cells_returned_count = 4; + */ + protected $cells_returned_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $rows_seen_count + * The rows seen (scanned) as part of the request. This includes the count of + * rows returned, as captured below. + * @type int|string $rows_returned_count + * The rows returned as part of the request. + * @type int|string $cells_seen_count + * The cells seen (scanned) as part of the request. This includes the count of + * cells returned, as captured below. + * @type int|string $cells_returned_count + * The cells returned as part of the request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\RequestStats::initOnce(); + parent::__construct($data); + } + + /** + * The rows seen (scanned) as part of the request. This includes the count of + * rows returned, as captured below. + * + * Generated from protobuf field int64 rows_seen_count = 1; + * @return int|string + */ + public function getRowsSeenCount() + { + return $this->rows_seen_count; + } + + /** + * The rows seen (scanned) as part of the request. This includes the count of + * rows returned, as captured below. + * + * Generated from protobuf field int64 rows_seen_count = 1; + * @param int|string $var + * @return $this + */ + public function setRowsSeenCount($var) + { + GPBUtil::checkInt64($var); + $this->rows_seen_count = $var; + + return $this; + } + + /** + * The rows returned as part of the request. + * + * Generated from protobuf field int64 rows_returned_count = 2; + * @return int|string + */ + public function getRowsReturnedCount() + { + return $this->rows_returned_count; + } + + /** + * The rows returned as part of the request. + * + * Generated from protobuf field int64 rows_returned_count = 2; + * @param int|string $var + * @return $this + */ + public function setRowsReturnedCount($var) + { + GPBUtil::checkInt64($var); + $this->rows_returned_count = $var; + + return $this; + } + + /** + * The cells seen (scanned) as part of the request. This includes the count of + * cells returned, as captured below. + * + * Generated from protobuf field int64 cells_seen_count = 3; + * @return int|string + */ + public function getCellsSeenCount() + { + return $this->cells_seen_count; + } + + /** + * The cells seen (scanned) as part of the request. This includes the count of + * cells returned, as captured below. + * + * Generated from protobuf field int64 cells_seen_count = 3; + * @param int|string $var + * @return $this + */ + public function setCellsSeenCount($var) + { + GPBUtil::checkInt64($var); + $this->cells_seen_count = $var; + + return $this; + } + + /** + * The cells returned as part of the request. + * + * Generated from protobuf field int64 cells_returned_count = 4; + * @return int|string + */ + public function getCellsReturnedCount() + { + return $this->cells_returned_count; + } + + /** + * The cells returned as part of the request. + * + * Generated from protobuf field int64 cells_returned_count = 4; + * @param int|string $var + * @return $this + */ + public function setCellsReturnedCount($var) + { + GPBUtil::checkInt64($var); + $this->cells_returned_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadModifyWriteRowRequest.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadModifyWriteRowRequest.php new file mode 100644 index 000000000000..566cff663dce --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadModifyWriteRowRequest.php @@ -0,0 +1,302 @@ +google.bigtable.v2.ReadModifyWriteRowRequest + */ +class ReadModifyWriteRowRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The unique name of the table to which the read/modify/write rules + * should be applied. + * Values are of the form + * `projects//instances//tables/
`. + * + * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $table_name = ''; + /** + * Optional. The unique name of the AuthorizedView to which the + * read/modify/write rules should be applied. + * Values are of the form + * `projects//instances//tables/
/authorizedViews/`. + * + * Generated from protobuf field string authorized_view_name = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $authorized_view_name = ''; + /** + * This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * + * Generated from protobuf field string app_profile_id = 4; + */ + protected $app_profile_id = ''; + /** + * Required. The key of the row to which the read/modify/write rules should be + * applied. + * + * Generated from protobuf field bytes row_key = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $row_key = ''; + /** + * Required. Rules specifying how the specified row's contents are to be + * transformed into writes. Entries are applied in order, meaning that earlier + * rules will affect the results of later ones. At least one entry must be + * specified, and there can be at most 100000 rules. + * + * Generated from protobuf field repeated .google.bigtable.v2.ReadModifyWriteRule rules = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + private $rules; + + /** + * @param string $tableName Optional. The unique name of the table to which the read/modify/write rules + * should be applied. + * + * Values are of the form + * `projects//instances//tables/
`. Please see + * {@see BigtableClient::tableName()} for help formatting this field. + * @param string $rowKey Required. The key of the row to which the read/modify/write rules should be + * applied. + * @param \Google\Cloud\Bigtable\V2\ReadModifyWriteRule[] $rules Required. Rules specifying how the specified row's contents are to be + * transformed into writes. Entries are applied in order, meaning that earlier + * rules will affect the results of later ones. At least one entry must be + * specified, and there can be at most 100000 rules. + * + * @return \Google\Cloud\Bigtable\V2\ReadModifyWriteRowRequest + * + * @experimental + */ + public static function build(string $tableName, string $rowKey, array $rules): self + { + return (new self()) + ->setTableName($tableName) + ->setRowKey($rowKey) + ->setRules($rules); + } + + /** + * @param string $tableName Optional. The unique name of the table to which the read/modify/write rules + * should be applied. + * + * Values are of the form + * `projects//instances//tables/
`. Please see + * {@see BigtableClient::tableName()} for help formatting this field. + * @param string $rowKey Required. The key of the row to which the read/modify/write rules should be + * applied. + * @param \Google\Cloud\Bigtable\V2\ReadModifyWriteRule[] $rules Required. Rules specifying how the specified row's contents are to be + * transformed into writes. Entries are applied in order, meaning that earlier + * rules will affect the results of later ones. At least one entry must be + * specified, and there can be at most 100000 rules. + * @param string $appProfileId This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * + * @return \Google\Cloud\Bigtable\V2\ReadModifyWriteRowRequest + * + * @experimental + */ + public static function buildFromTableNameRowKeyRulesAppProfileId(string $tableName, string $rowKey, array $rules, string $appProfileId): self + { + return (new self()) + ->setTableName($tableName) + ->setRowKey($rowKey) + ->setRules($rules) + ->setAppProfileId($appProfileId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $table_name + * Optional. The unique name of the table to which the read/modify/write rules + * should be applied. + * Values are of the form + * `projects//instances//tables/
`. + * @type string $authorized_view_name + * Optional. The unique name of the AuthorizedView to which the + * read/modify/write rules should be applied. + * Values are of the form + * `projects//instances//tables/
/authorizedViews/`. + * @type string $app_profile_id + * This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * @type string $row_key + * Required. The key of the row to which the read/modify/write rules should be + * applied. + * @type \Google\Cloud\Bigtable\V2\ReadModifyWriteRule[] $rules + * Required. Rules specifying how the specified row's contents are to be + * transformed into writes. Entries are applied in order, meaning that earlier + * rules will affect the results of later ones. At least one entry must be + * specified, and there can be at most 100000 rules. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The unique name of the table to which the read/modify/write rules + * should be applied. + * Values are of the form + * `projects//instances//tables/
`. + * + * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getTableName() + { + return $this->table_name; + } + + /** + * Optional. The unique name of the table to which the read/modify/write rules + * should be applied. + * Values are of the form + * `projects//instances//tables/
`. + * + * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setTableName($var) + { + GPBUtil::checkString($var, True); + $this->table_name = $var; + + return $this; + } + + /** + * Optional. The unique name of the AuthorizedView to which the + * read/modify/write rules should be applied. + * Values are of the form + * `projects//instances//tables/
/authorizedViews/`. + * + * Generated from protobuf field string authorized_view_name = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getAuthorizedViewName() + { + return $this->authorized_view_name; + } + + /** + * Optional. The unique name of the AuthorizedView to which the + * read/modify/write rules should be applied. + * Values are of the form + * `projects//instances//tables/
/authorizedViews/`. + * + * Generated from protobuf field string authorized_view_name = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setAuthorizedViewName($var) + { + GPBUtil::checkString($var, True); + $this->authorized_view_name = $var; + + return $this; + } + + /** + * This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * + * Generated from protobuf field string app_profile_id = 4; + * @return string + */ + public function getAppProfileId() + { + return $this->app_profile_id; + } + + /** + * This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * + * Generated from protobuf field string app_profile_id = 4; + * @param string $var + * @return $this + */ + public function setAppProfileId($var) + { + GPBUtil::checkString($var, True); + $this->app_profile_id = $var; + + return $this; + } + + /** + * Required. The key of the row to which the read/modify/write rules should be + * applied. + * + * Generated from protobuf field bytes row_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getRowKey() + { + return $this->row_key; + } + + /** + * Required. The key of the row to which the read/modify/write rules should be + * applied. + * + * Generated from protobuf field bytes row_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setRowKey($var) + { + GPBUtil::checkString($var, False); + $this->row_key = $var; + + return $this; + } + + /** + * Required. Rules specifying how the specified row's contents are to be + * transformed into writes. Entries are applied in order, meaning that earlier + * rules will affect the results of later ones. At least one entry must be + * specified, and there can be at most 100000 rules. + * + * Generated from protobuf field repeated .google.bigtable.v2.ReadModifyWriteRule rules = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\Bigtable\V2\ReadModifyWriteRule> + */ + public function getRules() + { + return $this->rules; + } + + /** + * Required. Rules specifying how the specified row's contents are to be + * transformed into writes. Entries are applied in order, meaning that earlier + * rules will affect the results of later ones. At least one entry must be + * specified, and there can be at most 100000 rules. + * + * Generated from protobuf field repeated .google.bigtable.v2.ReadModifyWriteRule rules = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Bigtable\V2\ReadModifyWriteRule[] $var + * @return $this + */ + public function setRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\ReadModifyWriteRule::class); + $this->rules = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadModifyWriteRowResponse.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadModifyWriteRowResponse.php new file mode 100644 index 000000000000..6b06171fd145 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadModifyWriteRowResponse.php @@ -0,0 +1,77 @@ +google.bigtable.v2.ReadModifyWriteRowResponse + */ +class ReadModifyWriteRowResponse extends \Google\Protobuf\Internal\Message +{ + /** + * A Row containing the new contents of all cells modified by the request. + * + * Generated from protobuf field .google.bigtable.v2.Row row = 1; + */ + protected $row = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\Row $row + * A Row containing the new contents of all cells modified by the request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); + parent::__construct($data); + } + + /** + * A Row containing the new contents of all cells modified by the request. + * + * Generated from protobuf field .google.bigtable.v2.Row row = 1; + * @return \Google\Cloud\Bigtable\V2\Row|null + */ + public function getRow() + { + return $this->row; + } + + public function hasRow() + { + return isset($this->row); + } + + public function clearRow() + { + unset($this->row); + } + + /** + * A Row containing the new contents of all cells modified by the request. + * + * Generated from protobuf field .google.bigtable.v2.Row row = 1; + * @param \Google\Cloud\Bigtable\V2\Row $var + * @return $this + */ + public function setRow($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Row::class); + $this->row = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadModifyWriteRule.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadModifyWriteRule.php new file mode 100644 index 000000000000..3c48cb605ab5 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadModifyWriteRule.php @@ -0,0 +1,204 @@ +google.bigtable.v2.ReadModifyWriteRule + */ +class ReadModifyWriteRule extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the family to which the read/modify/write should be applied. + * Must match `[-_.a-zA-Z0-9]+` + * + * Generated from protobuf field string family_name = 1; + */ + protected $family_name = ''; + /** + * The qualifier of the column to which the read/modify/write should be + * applied. + * Can be any byte string, including the empty string. + * + * Generated from protobuf field bytes column_qualifier = 2; + */ + protected $column_qualifier = ''; + protected $rule; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $family_name + * The name of the family to which the read/modify/write should be applied. + * Must match `[-_.a-zA-Z0-9]+` + * @type string $column_qualifier + * The qualifier of the column to which the read/modify/write should be + * applied. + * Can be any byte string, including the empty string. + * @type string $append_value + * Rule specifying that `append_value` be appended to the existing value. + * If the targeted cell is unset, it will be treated as containing the + * empty string. + * @type int|string $increment_amount + * Rule specifying that `increment_amount` be added to the existing value. + * If the targeted cell is unset, it will be treated as containing a zero. + * Otherwise, the targeted cell must contain an 8-byte value (interpreted + * as a 64-bit big-endian signed integer), or the entire request will fail. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); + parent::__construct($data); + } + + /** + * The name of the family to which the read/modify/write should be applied. + * Must match `[-_.a-zA-Z0-9]+` + * + * Generated from protobuf field string family_name = 1; + * @return string + */ + public function getFamilyName() + { + return $this->family_name; + } + + /** + * The name of the family to which the read/modify/write should be applied. + * Must match `[-_.a-zA-Z0-9]+` + * + * Generated from protobuf field string family_name = 1; + * @param string $var + * @return $this + */ + public function setFamilyName($var) + { + GPBUtil::checkString($var, True); + $this->family_name = $var; + + return $this; + } + + /** + * The qualifier of the column to which the read/modify/write should be + * applied. + * Can be any byte string, including the empty string. + * + * Generated from protobuf field bytes column_qualifier = 2; + * @return string + */ + public function getColumnQualifier() + { + return $this->column_qualifier; + } + + /** + * The qualifier of the column to which the read/modify/write should be + * applied. + * Can be any byte string, including the empty string. + * + * Generated from protobuf field bytes column_qualifier = 2; + * @param string $var + * @return $this + */ + public function setColumnQualifier($var) + { + GPBUtil::checkString($var, False); + $this->column_qualifier = $var; + + return $this; + } + + /** + * Rule specifying that `append_value` be appended to the existing value. + * If the targeted cell is unset, it will be treated as containing the + * empty string. + * + * Generated from protobuf field bytes append_value = 3; + * @return string + */ + public function getAppendValue() + { + return $this->readOneof(3); + } + + public function hasAppendValue() + { + return $this->hasOneof(3); + } + + /** + * Rule specifying that `append_value` be appended to the existing value. + * If the targeted cell is unset, it will be treated as containing the + * empty string. + * + * Generated from protobuf field bytes append_value = 3; + * @param string $var + * @return $this + */ + public function setAppendValue($var) + { + GPBUtil::checkString($var, False); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Rule specifying that `increment_amount` be added to the existing value. + * If the targeted cell is unset, it will be treated as containing a zero. + * Otherwise, the targeted cell must contain an 8-byte value (interpreted + * as a 64-bit big-endian signed integer), or the entire request will fail. + * + * Generated from protobuf field int64 increment_amount = 4; + * @return int|string + */ + public function getIncrementAmount() + { + return $this->readOneof(4); + } + + public function hasIncrementAmount() + { + return $this->hasOneof(4); + } + + /** + * Rule specifying that `increment_amount` be added to the existing value. + * If the targeted cell is unset, it will be treated as containing a zero. + * Otherwise, the targeted cell must contain an 8-byte value (interpreted + * as a 64-bit big-endian signed integer), or the entire request will fail. + * + * Generated from protobuf field int64 increment_amount = 4; + * @param int|string $var + * @return $this + */ + public function setIncrementAmount($var) + { + GPBUtil::checkInt64($var); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * @return string + */ + public function getRule() + { + return $this->whichOneof("rule"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadRowsRequest.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadRowsRequest.php new file mode 100644 index 000000000000..0315e2c54645 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadRowsRequest.php @@ -0,0 +1,468 @@ +google.bigtable.v2.ReadRowsRequest + */ +class ReadRowsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The unique name of the table from which to read. + * Values are of the form + * `projects//instances//tables/
`. + * + * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $table_name = ''; + /** + * Optional. The unique name of the AuthorizedView from which to read. + * Values are of the form + * `projects//instances//tables/
/authorizedViews/`. + * + * Generated from protobuf field string authorized_view_name = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $authorized_view_name = ''; + /** + * Optional. The unique name of the MaterializedView from which to read. + * Values are of the form + * `projects//instances//materializedViews/`. + * + * Generated from protobuf field string materialized_view_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $materialized_view_name = ''; + /** + * This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * + * Generated from protobuf field string app_profile_id = 5; + */ + protected $app_profile_id = ''; + /** + * The row keys and/or ranges to read sequentially. If not specified, reads + * from all rows. + * + * Generated from protobuf field .google.bigtable.v2.RowSet rows = 2; + */ + protected $rows = null; + /** + * The filter to apply to the contents of the specified row(s). If unset, + * reads the entirety of each row. + * + * Generated from protobuf field .google.bigtable.v2.RowFilter filter = 3; + */ + protected $filter = null; + /** + * The read will stop after committing to N rows' worth of results. The + * default (zero) is to return all results. + * + * Generated from protobuf field int64 rows_limit = 4; + */ + protected $rows_limit = 0; + /** + * The view into RequestStats, as described above. + * + * Generated from protobuf field .google.bigtable.v2.ReadRowsRequest.RequestStatsView request_stats_view = 6; + */ + protected $request_stats_view = 0; + /** + * Experimental API - Please note that this API is currently experimental + * and can change in the future. + * Return rows in lexiographical descending order of the row keys. The row + * contents will not be affected by this flag. + * Example result set: + * [ + * {key: "k2", "f:col1": "v1", "f:col2": "v1"}, + * {key: "k1", "f:col1": "v2", "f:col2": "v2"} + * ] + * + * Generated from protobuf field bool reversed = 7; + */ + protected $reversed = false; + + /** + * @param string $tableName Optional. The unique name of the table from which to read. + * + * Values are of the form + * `projects//instances//tables/
`. Please see + * {@see BigtableClient::tableName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\V2\ReadRowsRequest + * + * @experimental + */ + public static function build(string $tableName): self + { + return (new self()) + ->setTableName($tableName); + } + + /** + * @param string $tableName Optional. The unique name of the table from which to read. + * + * Values are of the form + * `projects//instances//tables/
`. Please see + * {@see BigtableClient::tableName()} for help formatting this field. + * @param string $appProfileId This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * + * @return \Google\Cloud\Bigtable\V2\ReadRowsRequest + * + * @experimental + */ + public static function buildFromTableNameAppProfileId(string $tableName, string $appProfileId): self + { + return (new self()) + ->setTableName($tableName) + ->setAppProfileId($appProfileId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $table_name + * Optional. The unique name of the table from which to read. + * Values are of the form + * `projects//instances//tables/
`. + * @type string $authorized_view_name + * Optional. The unique name of the AuthorizedView from which to read. + * Values are of the form + * `projects//instances//tables/
/authorizedViews/`. + * @type string $materialized_view_name + * Optional. The unique name of the MaterializedView from which to read. + * Values are of the form + * `projects//instances//materializedViews/`. + * @type string $app_profile_id + * This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * @type \Google\Cloud\Bigtable\V2\RowSet $rows + * The row keys and/or ranges to read sequentially. If not specified, reads + * from all rows. + * @type \Google\Cloud\Bigtable\V2\RowFilter $filter + * The filter to apply to the contents of the specified row(s). If unset, + * reads the entirety of each row. + * @type int|string $rows_limit + * The read will stop after committing to N rows' worth of results. The + * default (zero) is to return all results. + * @type int $request_stats_view + * The view into RequestStats, as described above. + * @type bool $reversed + * Experimental API - Please note that this API is currently experimental + * and can change in the future. + * Return rows in lexiographical descending order of the row keys. The row + * contents will not be affected by this flag. + * Example result set: + * [ + * {key: "k2", "f:col1": "v1", "f:col2": "v1"}, + * {key: "k1", "f:col1": "v2", "f:col2": "v2"} + * ] + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The unique name of the table from which to read. + * Values are of the form + * `projects//instances//tables/
`. + * + * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getTableName() + { + return $this->table_name; + } + + /** + * Optional. The unique name of the table from which to read. + * Values are of the form + * `projects//instances//tables/
`. + * + * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setTableName($var) + { + GPBUtil::checkString($var, True); + $this->table_name = $var; + + return $this; + } + + /** + * Optional. The unique name of the AuthorizedView from which to read. + * Values are of the form + * `projects//instances//tables/
/authorizedViews/`. + * + * Generated from protobuf field string authorized_view_name = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getAuthorizedViewName() + { + return $this->authorized_view_name; + } + + /** + * Optional. The unique name of the AuthorizedView from which to read. + * Values are of the form + * `projects//instances//tables/
/authorizedViews/`. + * + * Generated from protobuf field string authorized_view_name = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setAuthorizedViewName($var) + { + GPBUtil::checkString($var, True); + $this->authorized_view_name = $var; + + return $this; + } + + /** + * Optional. The unique name of the MaterializedView from which to read. + * Values are of the form + * `projects//instances//materializedViews/`. + * + * Generated from protobuf field string materialized_view_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getMaterializedViewName() + { + return $this->materialized_view_name; + } + + /** + * Optional. The unique name of the MaterializedView from which to read. + * Values are of the form + * `projects//instances//materializedViews/`. + * + * Generated from protobuf field string materialized_view_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setMaterializedViewName($var) + { + GPBUtil::checkString($var, True); + $this->materialized_view_name = $var; + + return $this; + } + + /** + * This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * + * Generated from protobuf field string app_profile_id = 5; + * @return string + */ + public function getAppProfileId() + { + return $this->app_profile_id; + } + + /** + * This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * + * Generated from protobuf field string app_profile_id = 5; + * @param string $var + * @return $this + */ + public function setAppProfileId($var) + { + GPBUtil::checkString($var, True); + $this->app_profile_id = $var; + + return $this; + } + + /** + * The row keys and/or ranges to read sequentially. If not specified, reads + * from all rows. + * + * Generated from protobuf field .google.bigtable.v2.RowSet rows = 2; + * @return \Google\Cloud\Bigtable\V2\RowSet|null + */ + public function getRows() + { + return $this->rows; + } + + public function hasRows() + { + return isset($this->rows); + } + + public function clearRows() + { + unset($this->rows); + } + + /** + * The row keys and/or ranges to read sequentially. If not specified, reads + * from all rows. + * + * Generated from protobuf field .google.bigtable.v2.RowSet rows = 2; + * @param \Google\Cloud\Bigtable\V2\RowSet $var + * @return $this + */ + public function setRows($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\RowSet::class); + $this->rows = $var; + + return $this; + } + + /** + * The filter to apply to the contents of the specified row(s). If unset, + * reads the entirety of each row. + * + * Generated from protobuf field .google.bigtable.v2.RowFilter filter = 3; + * @return \Google\Cloud\Bigtable\V2\RowFilter|null + */ + public function getFilter() + { + return $this->filter; + } + + public function hasFilter() + { + return isset($this->filter); + } + + public function clearFilter() + { + unset($this->filter); + } + + /** + * The filter to apply to the contents of the specified row(s). If unset, + * reads the entirety of each row. + * + * Generated from protobuf field .google.bigtable.v2.RowFilter filter = 3; + * @param \Google\Cloud\Bigtable\V2\RowFilter $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\RowFilter::class); + $this->filter = $var; + + return $this; + } + + /** + * The read will stop after committing to N rows' worth of results. The + * default (zero) is to return all results. + * + * Generated from protobuf field int64 rows_limit = 4; + * @return int|string + */ + public function getRowsLimit() + { + return $this->rows_limit; + } + + /** + * The read will stop after committing to N rows' worth of results. The + * default (zero) is to return all results. + * + * Generated from protobuf field int64 rows_limit = 4; + * @param int|string $var + * @return $this + */ + public function setRowsLimit($var) + { + GPBUtil::checkInt64($var); + $this->rows_limit = $var; + + return $this; + } + + /** + * The view into RequestStats, as described above. + * + * Generated from protobuf field .google.bigtable.v2.ReadRowsRequest.RequestStatsView request_stats_view = 6; + * @return int + */ + public function getRequestStatsView() + { + return $this->request_stats_view; + } + + /** + * The view into RequestStats, as described above. + * + * Generated from protobuf field .google.bigtable.v2.ReadRowsRequest.RequestStatsView request_stats_view = 6; + * @param int $var + * @return $this + */ + public function setRequestStatsView($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\V2\ReadRowsRequest\RequestStatsView::class); + $this->request_stats_view = $var; + + return $this; + } + + /** + * Experimental API - Please note that this API is currently experimental + * and can change in the future. + * Return rows in lexiographical descending order of the row keys. The row + * contents will not be affected by this flag. + * Example result set: + * [ + * {key: "k2", "f:col1": "v1", "f:col2": "v1"}, + * {key: "k1", "f:col1": "v2", "f:col2": "v2"} + * ] + * + * Generated from protobuf field bool reversed = 7; + * @return bool + */ + public function getReversed() + { + return $this->reversed; + } + + /** + * Experimental API - Please note that this API is currently experimental + * and can change in the future. + * Return rows in lexiographical descending order of the row keys. The row + * contents will not be affected by this flag. + * Example result set: + * [ + * {key: "k2", "f:col1": "v1", "f:col2": "v1"}, + * {key: "k1", "f:col1": "v2", "f:col2": "v2"} + * ] + * + * Generated from protobuf field bool reversed = 7; + * @param bool $var + * @return $this + */ + public function setReversed($var) + { + GPBUtil::checkBool($var); + $this->reversed = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadRowsRequest/RequestStatsView.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadRowsRequest/RequestStatsView.php new file mode 100644 index 000000000000..dca09d863b82 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadRowsRequest/RequestStatsView.php @@ -0,0 +1,64 @@ +google.bigtable.v2.ReadRowsRequest.RequestStatsView + */ +class RequestStatsView +{ + /** + * The default / unset value. The API will default to the NONE option below. + * + * Generated from protobuf enum REQUEST_STATS_VIEW_UNSPECIFIED = 0; + */ + const REQUEST_STATS_VIEW_UNSPECIFIED = 0; + /** + * Do not include any RequestStats in the response. This will leave the + * RequestStats embedded message unset in the response. + * + * Generated from protobuf enum REQUEST_STATS_NONE = 1; + */ + const REQUEST_STATS_NONE = 1; + /** + * Include the full set of available RequestStats in the response, + * applicable to this read. + * + * Generated from protobuf enum REQUEST_STATS_FULL = 2; + */ + const REQUEST_STATS_FULL = 2; + + private static $valueToName = [ + self::REQUEST_STATS_VIEW_UNSPECIFIED => 'REQUEST_STATS_VIEW_UNSPECIFIED', + self::REQUEST_STATS_NONE => 'REQUEST_STATS_NONE', + self::REQUEST_STATS_FULL => 'REQUEST_STATS_FULL', + ]; + + 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/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadRowsResponse.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadRowsResponse.php new file mode 100644 index 000000000000..162fc0564b5d --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadRowsResponse.php @@ -0,0 +1,185 @@ +google.bigtable.v2.ReadRowsResponse + */ +class ReadRowsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * A collection of a row's contents as part of the read request. + * + * Generated from protobuf field repeated .google.bigtable.v2.ReadRowsResponse.CellChunk chunks = 1; + */ + private $chunks; + /** + * Optionally the server might return the row key of the last row it + * has scanned. The client can use this to construct a more + * efficient retry request if needed: any row keys or portions of + * ranges less than this row key can be dropped from the request. + * This is primarily useful for cases where the server has read a + * lot of data that was filtered out since the last committed row + * key, allowing the client to skip that work on a retry. + * + * Generated from protobuf field bytes last_scanned_row_key = 2; + */ + protected $last_scanned_row_key = ''; + /** + * If requested, return enhanced query performance statistics. The field + * request_stats is empty in a streamed response unless the ReadRowsResponse + * message contains request_stats in the last message of the stream. Always + * returned when requested, even when the read request returns an empty + * response. + * + * Generated from protobuf field .google.bigtable.v2.RequestStats request_stats = 3; + */ + protected $request_stats = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\ReadRowsResponse\CellChunk[] $chunks + * A collection of a row's contents as part of the read request. + * @type string $last_scanned_row_key + * Optionally the server might return the row key of the last row it + * has scanned. The client can use this to construct a more + * efficient retry request if needed: any row keys or portions of + * ranges less than this row key can be dropped from the request. + * This is primarily useful for cases where the server has read a + * lot of data that was filtered out since the last committed row + * key, allowing the client to skip that work on a retry. + * @type \Google\Cloud\Bigtable\V2\RequestStats $request_stats + * If requested, return enhanced query performance statistics. The field + * request_stats is empty in a streamed response unless the ReadRowsResponse + * message contains request_stats in the last message of the stream. Always + * returned when requested, even when the read request returns an empty + * response. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); + parent::__construct($data); + } + + /** + * A collection of a row's contents as part of the read request. + * + * Generated from protobuf field repeated .google.bigtable.v2.ReadRowsResponse.CellChunk chunks = 1; + * @return RepeatedField<\Google\Cloud\Bigtable\V2\ReadRowsResponse\CellChunk> + */ + public function getChunks() + { + return $this->chunks; + } + + /** + * A collection of a row's contents as part of the read request. + * + * Generated from protobuf field repeated .google.bigtable.v2.ReadRowsResponse.CellChunk chunks = 1; + * @param \Google\Cloud\Bigtable\V2\ReadRowsResponse\CellChunk[] $var + * @return $this + */ + public function setChunks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\ReadRowsResponse\CellChunk::class); + $this->chunks = $arr; + + return $this; + } + + /** + * Optionally the server might return the row key of the last row it + * has scanned. The client can use this to construct a more + * efficient retry request if needed: any row keys or portions of + * ranges less than this row key can be dropped from the request. + * This is primarily useful for cases where the server has read a + * lot of data that was filtered out since the last committed row + * key, allowing the client to skip that work on a retry. + * + * Generated from protobuf field bytes last_scanned_row_key = 2; + * @return string + */ + public function getLastScannedRowKey() + { + return $this->last_scanned_row_key; + } + + /** + * Optionally the server might return the row key of the last row it + * has scanned. The client can use this to construct a more + * efficient retry request if needed: any row keys or portions of + * ranges less than this row key can be dropped from the request. + * This is primarily useful for cases where the server has read a + * lot of data that was filtered out since the last committed row + * key, allowing the client to skip that work on a retry. + * + * Generated from protobuf field bytes last_scanned_row_key = 2; + * @param string $var + * @return $this + */ + public function setLastScannedRowKey($var) + { + GPBUtil::checkString($var, False); + $this->last_scanned_row_key = $var; + + return $this; + } + + /** + * If requested, return enhanced query performance statistics. The field + * request_stats is empty in a streamed response unless the ReadRowsResponse + * message contains request_stats in the last message of the stream. Always + * returned when requested, even when the read request returns an empty + * response. + * + * Generated from protobuf field .google.bigtable.v2.RequestStats request_stats = 3; + * @return \Google\Cloud\Bigtable\V2\RequestStats|null + */ + public function getRequestStats() + { + return $this->request_stats; + } + + public function hasRequestStats() + { + return isset($this->request_stats); + } + + public function clearRequestStats() + { + unset($this->request_stats); + } + + /** + * If requested, return enhanced query performance statistics. The field + * request_stats is empty in a streamed response unless the ReadRowsResponse + * message contains request_stats in the last message of the stream. Always + * returned when requested, even when the read request returns an empty + * response. + * + * Generated from protobuf field .google.bigtable.v2.RequestStats request_stats = 3; + * @param \Google\Cloud\Bigtable\V2\RequestStats $var + * @return $this + */ + public function setRequestStats($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\RequestStats::class); + $this->request_stats = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadRowsResponse/CellChunk.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadRowsResponse/CellChunk.php new file mode 100644 index 000000000000..5b45ccafeb20 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadRowsResponse/CellChunk.php @@ -0,0 +1,557 @@ +google.bigtable.v2.ReadRowsResponse.CellChunk + */ +class CellChunk extends \Google\Protobuf\Internal\Message +{ + /** + * The row key for this chunk of data. If the row key is empty, + * this CellChunk is a continuation of the same row as the previous + * CellChunk in the response stream, even if that CellChunk was in a + * previous ReadRowsResponse message. + * + * Generated from protobuf field bytes row_key = 1; + */ + protected $row_key = ''; + /** + * The column family name for this chunk of data. If this message + * is not present this CellChunk is a continuation of the same column + * family as the previous CellChunk. The empty string can occur as a + * column family name in a response so clients must check + * explicitly for the presence of this message, not just for + * `family_name.value` being non-empty. + * + * Generated from protobuf field .google.protobuf.StringValue family_name = 2; + */ + protected $family_name = null; + /** + * The column qualifier for this chunk of data. If this message + * is not present, this CellChunk is a continuation of the same column + * as the previous CellChunk. Column qualifiers may be empty so + * clients must check for the presence of this message, not just + * for `qualifier.value` being non-empty. + * + * Generated from protobuf field .google.protobuf.BytesValue qualifier = 3; + */ + protected $qualifier = null; + /** + * The cell's stored timestamp, which also uniquely identifies it + * within its column. Values are always expressed in + * microseconds, but individual tables may set a coarser + * granularity to further restrict the allowed values. For + * example, a table which specifies millisecond granularity will + * only allow values of `timestamp_micros` which are multiples of + * 1000. Timestamps are only set in the first CellChunk per cell + * (for cells split into multiple chunks). + * + * Generated from protobuf field int64 timestamp_micros = 4; + */ + protected $timestamp_micros = 0; + /** + * Labels applied to the cell by a + * [RowFilter][google.bigtable.v2.RowFilter]. Labels are only set + * on the first CellChunk per cell. + * + * Generated from protobuf field repeated string labels = 5; + */ + private $labels; + /** + * The value stored in the cell. Cell values can be split across + * multiple CellChunks. In that case only the value field will be + * set in CellChunks after the first: the timestamp and labels + * will only be present in the first CellChunk, even if the first + * CellChunk came in a previous ReadRowsResponse. + * + * Generated from protobuf field bytes value = 6; + */ + protected $value = ''; + /** + * If this CellChunk is part of a chunked cell value and this is + * not the final chunk of that cell, value_size will be set to the + * total length of the cell value. The client can use this size + * to pre-allocate memory to hold the full cell value. + * + * Generated from protobuf field int32 value_size = 7; + */ + protected $value_size = 0; + protected $row_status; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $row_key + * The row key for this chunk of data. If the row key is empty, + * this CellChunk is a continuation of the same row as the previous + * CellChunk in the response stream, even if that CellChunk was in a + * previous ReadRowsResponse message. + * @type \Google\Protobuf\StringValue $family_name + * The column family name for this chunk of data. If this message + * is not present this CellChunk is a continuation of the same column + * family as the previous CellChunk. The empty string can occur as a + * column family name in a response so clients must check + * explicitly for the presence of this message, not just for + * `family_name.value` being non-empty. + * @type \Google\Protobuf\BytesValue $qualifier + * The column qualifier for this chunk of data. If this message + * is not present, this CellChunk is a continuation of the same column + * as the previous CellChunk. Column qualifiers may be empty so + * clients must check for the presence of this message, not just + * for `qualifier.value` being non-empty. + * @type int|string $timestamp_micros + * The cell's stored timestamp, which also uniquely identifies it + * within its column. Values are always expressed in + * microseconds, but individual tables may set a coarser + * granularity to further restrict the allowed values. For + * example, a table which specifies millisecond granularity will + * only allow values of `timestamp_micros` which are multiples of + * 1000. Timestamps are only set in the first CellChunk per cell + * (for cells split into multiple chunks). + * @type string[] $labels + * Labels applied to the cell by a + * [RowFilter][google.bigtable.v2.RowFilter]. Labels are only set + * on the first CellChunk per cell. + * @type string $value + * The value stored in the cell. Cell values can be split across + * multiple CellChunks. In that case only the value field will be + * set in CellChunks after the first: the timestamp and labels + * will only be present in the first CellChunk, even if the first + * CellChunk came in a previous ReadRowsResponse. + * @type int $value_size + * If this CellChunk is part of a chunked cell value and this is + * not the final chunk of that cell, value_size will be set to the + * total length of the cell value. The client can use this size + * to pre-allocate memory to hold the full cell value. + * @type bool $reset_row + * Indicates that the client should drop all previous chunks for + * `row_key`, as it will be re-read from the beginning. + * @type bool $commit_row + * Indicates that the client can safely process all previous chunks for + * `row_key`, as its data has been fully read. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); + parent::__construct($data); + } + + /** + * The row key for this chunk of data. If the row key is empty, + * this CellChunk is a continuation of the same row as the previous + * CellChunk in the response stream, even if that CellChunk was in a + * previous ReadRowsResponse message. + * + * Generated from protobuf field bytes row_key = 1; + * @return string + */ + public function getRowKey() + { + return $this->row_key; + } + + /** + * The row key for this chunk of data. If the row key is empty, + * this CellChunk is a continuation of the same row as the previous + * CellChunk in the response stream, even if that CellChunk was in a + * previous ReadRowsResponse message. + * + * Generated from protobuf field bytes row_key = 1; + * @param string $var + * @return $this + */ + public function setRowKey($var) + { + GPBUtil::checkString($var, False); + $this->row_key = $var; + + return $this; + } + + /** + * The column family name for this chunk of data. If this message + * is not present this CellChunk is a continuation of the same column + * family as the previous CellChunk. The empty string can occur as a + * column family name in a response so clients must check + * explicitly for the presence of this message, not just for + * `family_name.value` being non-empty. + * + * Generated from protobuf field .google.protobuf.StringValue family_name = 2; + * @return \Google\Protobuf\StringValue|null + */ + public function getFamilyName() + { + return $this->family_name; + } + + public function hasFamilyName() + { + return isset($this->family_name); + } + + public function clearFamilyName() + { + unset($this->family_name); + } + + /** + * Returns the unboxed value from getFamilyName() + + * The column family name for this chunk of data. If this message + * is not present this CellChunk is a continuation of the same column + * family as the previous CellChunk. The empty string can occur as a + * column family name in a response so clients must check + * explicitly for the presence of this message, not just for + * `family_name.value` being non-empty. + * + * Generated from protobuf field .google.protobuf.StringValue family_name = 2; + * @return string|null + */ + public function getFamilyNameUnwrapped() + { + return $this->readWrapperValue("family_name"); + } + + /** + * The column family name for this chunk of data. If this message + * is not present this CellChunk is a continuation of the same column + * family as the previous CellChunk. The empty string can occur as a + * column family name in a response so clients must check + * explicitly for the presence of this message, not just for + * `family_name.value` being non-empty. + * + * Generated from protobuf field .google.protobuf.StringValue family_name = 2; + * @param \Google\Protobuf\StringValue $var + * @return $this + */ + public function setFamilyName($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\StringValue::class); + $this->family_name = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\StringValue object. + + * The column family name for this chunk of data. If this message + * is not present this CellChunk is a continuation of the same column + * family as the previous CellChunk. The empty string can occur as a + * column family name in a response so clients must check + * explicitly for the presence of this message, not just for + * `family_name.value` being non-empty. + * + * Generated from protobuf field .google.protobuf.StringValue family_name = 2; + * @param string|null $var + * @return $this + */ + public function setFamilyNameUnwrapped($var) + { + $this->writeWrapperValue("family_name", $var); + return $this;} + + /** + * The column qualifier for this chunk of data. If this message + * is not present, this CellChunk is a continuation of the same column + * as the previous CellChunk. Column qualifiers may be empty so + * clients must check for the presence of this message, not just + * for `qualifier.value` being non-empty. + * + * Generated from protobuf field .google.protobuf.BytesValue qualifier = 3; + * @return \Google\Protobuf\BytesValue|null + */ + public function getQualifier() + { + return $this->qualifier; + } + + public function hasQualifier() + { + return isset($this->qualifier); + } + + public function clearQualifier() + { + unset($this->qualifier); + } + + /** + * Returns the unboxed value from getQualifier() + + * The column qualifier for this chunk of data. If this message + * is not present, this CellChunk is a continuation of the same column + * as the previous CellChunk. Column qualifiers may be empty so + * clients must check for the presence of this message, not just + * for `qualifier.value` being non-empty. + * + * Generated from protobuf field .google.protobuf.BytesValue qualifier = 3; + * @return string|null + */ + public function getQualifierUnwrapped() + { + return $this->readWrapperValue("qualifier"); + } + + /** + * The column qualifier for this chunk of data. If this message + * is not present, this CellChunk is a continuation of the same column + * as the previous CellChunk. Column qualifiers may be empty so + * clients must check for the presence of this message, not just + * for `qualifier.value` being non-empty. + * + * Generated from protobuf field .google.protobuf.BytesValue qualifier = 3; + * @param \Google\Protobuf\BytesValue $var + * @return $this + */ + public function setQualifier($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\BytesValue::class); + $this->qualifier = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\BytesValue object. + + * The column qualifier for this chunk of data. If this message + * is not present, this CellChunk is a continuation of the same column + * as the previous CellChunk. Column qualifiers may be empty so + * clients must check for the presence of this message, not just + * for `qualifier.value` being non-empty. + * + * Generated from protobuf field .google.protobuf.BytesValue qualifier = 3; + * @param string|null $var + * @return $this + */ + public function setQualifierUnwrapped($var) + { + $this->writeWrapperValue("qualifier", $var); + return $this;} + + /** + * The cell's stored timestamp, which also uniquely identifies it + * within its column. Values are always expressed in + * microseconds, but individual tables may set a coarser + * granularity to further restrict the allowed values. For + * example, a table which specifies millisecond granularity will + * only allow values of `timestamp_micros` which are multiples of + * 1000. Timestamps are only set in the first CellChunk per cell + * (for cells split into multiple chunks). + * + * Generated from protobuf field int64 timestamp_micros = 4; + * @return int|string + */ + public function getTimestampMicros() + { + return $this->timestamp_micros; + } + + /** + * The cell's stored timestamp, which also uniquely identifies it + * within its column. Values are always expressed in + * microseconds, but individual tables may set a coarser + * granularity to further restrict the allowed values. For + * example, a table which specifies millisecond granularity will + * only allow values of `timestamp_micros` which are multiples of + * 1000. Timestamps are only set in the first CellChunk per cell + * (for cells split into multiple chunks). + * + * Generated from protobuf field int64 timestamp_micros = 4; + * @param int|string $var + * @return $this + */ + public function setTimestampMicros($var) + { + GPBUtil::checkInt64($var); + $this->timestamp_micros = $var; + + return $this; + } + + /** + * Labels applied to the cell by a + * [RowFilter][google.bigtable.v2.RowFilter]. Labels are only set + * on the first CellChunk per cell. + * + * Generated from protobuf field repeated string labels = 5; + * @return RepeatedField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Labels applied to the cell by a + * [RowFilter][google.bigtable.v2.RowFilter]. Labels are only set + * on the first CellChunk per cell. + * + * Generated from protobuf field repeated string labels = 5; + * @param string[] $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * The value stored in the cell. Cell values can be split across + * multiple CellChunks. In that case only the value field will be + * set in CellChunks after the first: the timestamp and labels + * will only be present in the first CellChunk, even if the first + * CellChunk came in a previous ReadRowsResponse. + * + * Generated from protobuf field bytes value = 6; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * The value stored in the cell. Cell values can be split across + * multiple CellChunks. In that case only the value field will be + * set in CellChunks after the first: the timestamp and labels + * will only be present in the first CellChunk, even if the first + * CellChunk came in a previous ReadRowsResponse. + * + * Generated from protobuf field bytes value = 6; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, False); + $this->value = $var; + + return $this; + } + + /** + * If this CellChunk is part of a chunked cell value and this is + * not the final chunk of that cell, value_size will be set to the + * total length of the cell value. The client can use this size + * to pre-allocate memory to hold the full cell value. + * + * Generated from protobuf field int32 value_size = 7; + * @return int + */ + public function getValueSize() + { + return $this->value_size; + } + + /** + * If this CellChunk is part of a chunked cell value and this is + * not the final chunk of that cell, value_size will be set to the + * total length of the cell value. The client can use this size + * to pre-allocate memory to hold the full cell value. + * + * Generated from protobuf field int32 value_size = 7; + * @param int $var + * @return $this + */ + public function setValueSize($var) + { + GPBUtil::checkInt32($var); + $this->value_size = $var; + + return $this; + } + + /** + * Indicates that the client should drop all previous chunks for + * `row_key`, as it will be re-read from the beginning. + * + * Generated from protobuf field bool reset_row = 8; + * @return bool + */ + public function getResetRow() + { + return $this->readOneof(8); + } + + public function hasResetRow() + { + return $this->hasOneof(8); + } + + /** + * Indicates that the client should drop all previous chunks for + * `row_key`, as it will be re-read from the beginning. + * + * Generated from protobuf field bool reset_row = 8; + * @param bool $var + * @return $this + */ + public function setResetRow($var) + { + GPBUtil::checkBool($var); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * Indicates that the client can safely process all previous chunks for + * `row_key`, as its data has been fully read. + * + * Generated from protobuf field bool commit_row = 9; + * @return bool + */ + public function getCommitRow() + { + return $this->readOneof(9); + } + + public function hasCommitRow() + { + return $this->hasOneof(9); + } + + /** + * Indicates that the client can safely process all previous chunks for + * `row_key`, as its data has been fully read. + * + * Generated from protobuf field bool commit_row = 9; + * @param bool $var + * @return $this + */ + public function setCommitRow($var) + { + GPBUtil::checkBool($var); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * @return string + */ + public function getRowStatus() + { + return $this->whichOneof("row_status"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RequestLatencyStats.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RequestLatencyStats.php new file mode 100644 index 000000000000..d1c8e1a63121 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RequestLatencyStats.php @@ -0,0 +1,135 @@ +google.bigtable.v2.RequestLatencyStats + */ +class RequestLatencyStats extends \Google\Protobuf\Internal\Message +{ + /** + * The latency measured by the frontend server handling this request, from + * when the request was received, to when this value is sent back in the + * response. For more context on the component that is measuring this latency, + * see: https://cloud.google.com/bigtable/docs/overview + * Note: This value may be slightly shorter than the value reported into + * aggregate latency metrics in Monitoring for this request + * (https://cloud.google.com/bigtable/docs/monitoring-instance) as this value + * needs to be sent in the response before the latency measurement including + * that transmission is finalized. + * Note: This value includes the end-to-end latency of contacting nodes in + * the targeted cluster, e.g. measuring from when the first byte arrives at + * the frontend server, to when this value is sent back as the last value in + * the response, including any latency incurred by contacting nodes, waiting + * for results from nodes, and finally sending results from nodes back to the + * caller. + * + * Generated from protobuf field .google.protobuf.Duration frontend_server_latency = 1; + */ + protected $frontend_server_latency = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Duration $frontend_server_latency + * The latency measured by the frontend server handling this request, from + * when the request was received, to when this value is sent back in the + * response. For more context on the component that is measuring this latency, + * see: https://cloud.google.com/bigtable/docs/overview + * Note: This value may be slightly shorter than the value reported into + * aggregate latency metrics in Monitoring for this request + * (https://cloud.google.com/bigtable/docs/monitoring-instance) as this value + * needs to be sent in the response before the latency measurement including + * that transmission is finalized. + * Note: This value includes the end-to-end latency of contacting nodes in + * the targeted cluster, e.g. measuring from when the first byte arrives at + * the frontend server, to when this value is sent back as the last value in + * the response, including any latency incurred by contacting nodes, waiting + * for results from nodes, and finally sending results from nodes back to the + * caller. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\RequestStats::initOnce(); + parent::__construct($data); + } + + /** + * The latency measured by the frontend server handling this request, from + * when the request was received, to when this value is sent back in the + * response. For more context on the component that is measuring this latency, + * see: https://cloud.google.com/bigtable/docs/overview + * Note: This value may be slightly shorter than the value reported into + * aggregate latency metrics in Monitoring for this request + * (https://cloud.google.com/bigtable/docs/monitoring-instance) as this value + * needs to be sent in the response before the latency measurement including + * that transmission is finalized. + * Note: This value includes the end-to-end latency of contacting nodes in + * the targeted cluster, e.g. measuring from when the first byte arrives at + * the frontend server, to when this value is sent back as the last value in + * the response, including any latency incurred by contacting nodes, waiting + * for results from nodes, and finally sending results from nodes back to the + * caller. + * + * Generated from protobuf field .google.protobuf.Duration frontend_server_latency = 1; + * @return \Google\Protobuf\Duration|null + */ + public function getFrontendServerLatency() + { + return $this->frontend_server_latency; + } + + public function hasFrontendServerLatency() + { + return isset($this->frontend_server_latency); + } + + public function clearFrontendServerLatency() + { + unset($this->frontend_server_latency); + } + + /** + * The latency measured by the frontend server handling this request, from + * when the request was received, to when this value is sent back in the + * response. For more context on the component that is measuring this latency, + * see: https://cloud.google.com/bigtable/docs/overview + * Note: This value may be slightly shorter than the value reported into + * aggregate latency metrics in Monitoring for this request + * (https://cloud.google.com/bigtable/docs/monitoring-instance) as this value + * needs to be sent in the response before the latency measurement including + * that transmission is finalized. + * Note: This value includes the end-to-end latency of contacting nodes in + * the targeted cluster, e.g. measuring from when the first byte arrives at + * the frontend server, to when this value is sent back as the last value in + * the response, including any latency incurred by contacting nodes, waiting + * for results from nodes, and finally sending results from nodes back to the + * caller. + * + * Generated from protobuf field .google.protobuf.Duration frontend_server_latency = 1; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setFrontendServerLatency($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->frontend_server_latency = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RequestStats.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RequestStats.php new file mode 100644 index 000000000000..1a0afe79fa16 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RequestStats.php @@ -0,0 +1,80 @@ +google.bigtable.v2.RequestStats + */ +class RequestStats extends \Google\Protobuf\Internal\Message +{ + protected $stats_view; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\FullReadStatsView $full_read_stats_view + * Available with the ReadRowsRequest.RequestStatsView.REQUEST_STATS_FULL + * view, see package google.bigtable.v2. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\RequestStats::initOnce(); + parent::__construct($data); + } + + /** + * Available with the ReadRowsRequest.RequestStatsView.REQUEST_STATS_FULL + * view, see package google.bigtable.v2. + * + * Generated from protobuf field .google.bigtable.v2.FullReadStatsView full_read_stats_view = 1; + * @return \Google\Cloud\Bigtable\V2\FullReadStatsView|null + */ + public function getFullReadStatsView() + { + return $this->readOneof(1); + } + + public function hasFullReadStatsView() + { + return $this->hasOneof(1); + } + + /** + * Available with the ReadRowsRequest.RequestStatsView.REQUEST_STATS_FULL + * view, see package google.bigtable.v2. + * + * Generated from protobuf field .google.bigtable.v2.FullReadStatsView full_read_stats_view = 1; + * @param \Google\Cloud\Bigtable\V2\FullReadStatsView $var + * @return $this + */ + public function setFullReadStatsView($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\FullReadStatsView::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getStatsView() + { + return $this->whichOneof("stats_view"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ResponseParams.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ResponseParams.php new file mode 100644 index 000000000000..d4173d64c814 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ResponseParams.php @@ -0,0 +1,169 @@ +google.bigtable.v2.ResponseParams + */ +class ResponseParams extends \Google\Protobuf\Internal\Message +{ + /** + * The cloud bigtable zone associated with the cluster. + * + * Generated from protobuf field optional string zone_id = 1; + */ + protected $zone_id = null; + /** + * Identifier for a cluster that represents set of + * bigtable resources. + * + * Generated from protobuf field optional string cluster_id = 2; + */ + protected $cluster_id = null; + /** + * The AFE ID for the AFE that is served this request. + * + * Generated from protobuf field optional int64 afe_id = 3; + */ + protected $afe_id = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $zone_id + * The cloud bigtable zone associated with the cluster. + * @type string $cluster_id + * Identifier for a cluster that represents set of + * bigtable resources. + * @type int|string $afe_id + * The AFE ID for the AFE that is served this request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\ResponseParams::initOnce(); + parent::__construct($data); + } + + /** + * The cloud bigtable zone associated with the cluster. + * + * Generated from protobuf field optional string zone_id = 1; + * @return string + */ + public function getZoneId() + { + return isset($this->zone_id) ? $this->zone_id : ''; + } + + public function hasZoneId() + { + return isset($this->zone_id); + } + + public function clearZoneId() + { + unset($this->zone_id); + } + + /** + * The cloud bigtable zone associated with the cluster. + * + * Generated from protobuf field optional string zone_id = 1; + * @param string $var + * @return $this + */ + public function setZoneId($var) + { + GPBUtil::checkString($var, True); + $this->zone_id = $var; + + return $this; + } + + /** + * Identifier for a cluster that represents set of + * bigtable resources. + * + * Generated from protobuf field optional string cluster_id = 2; + * @return string + */ + public function getClusterId() + { + return isset($this->cluster_id) ? $this->cluster_id : ''; + } + + public function hasClusterId() + { + return isset($this->cluster_id); + } + + public function clearClusterId() + { + unset($this->cluster_id); + } + + /** + * Identifier for a cluster that represents set of + * bigtable resources. + * + * Generated from protobuf field optional string cluster_id = 2; + * @param string $var + * @return $this + */ + public function setClusterId($var) + { + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * The AFE ID for the AFE that is served this request. + * + * Generated from protobuf field optional int64 afe_id = 3; + * @return int|string + */ + public function getAfeId() + { + return isset($this->afe_id) ? $this->afe_id : 0; + } + + public function hasAfeId() + { + return isset($this->afe_id); + } + + public function clearAfeId() + { + unset($this->afe_id); + } + + /** + * The AFE ID for the AFE that is served this request. + * + * Generated from protobuf field optional int64 afe_id = 3; + * @param int|string $var + * @return $this + */ + public function setAfeId($var) + { + GPBUtil::checkInt64($var); + $this->afe_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ResultSetMetadata.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ResultSetMetadata.php new file mode 100644 index 000000000000..5d1ae458d85b --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ResultSetMetadata.php @@ -0,0 +1,75 @@ +google.bigtable.v2.ResultSetMetadata + */ +class ResultSetMetadata extends \Google\Protobuf\Internal\Message +{ + protected $schema; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\ProtoSchema $proto_schema + * Schema in proto format + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); + parent::__construct($data); + } + + /** + * Schema in proto format + * + * Generated from protobuf field .google.bigtable.v2.ProtoSchema proto_schema = 1; + * @return \Google\Cloud\Bigtable\V2\ProtoSchema|null + */ + public function getProtoSchema() + { + return $this->readOneof(1); + } + + public function hasProtoSchema() + { + return $this->hasOneof(1); + } + + /** + * Schema in proto format + * + * Generated from protobuf field .google.bigtable.v2.ProtoSchema proto_schema = 1; + * @param \Google\Cloud\Bigtable\V2\ProtoSchema $var + * @return $this + */ + public function setProtoSchema($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\ProtoSchema::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getSchema() + { + return $this->whichOneof("schema"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Row.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Row.php new file mode 100644 index 000000000000..871a946202da --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Row.php @@ -0,0 +1,114 @@ +google.bigtable.v2.Row + */ +class Row extends \Google\Protobuf\Internal\Message +{ + /** + * The unique key which identifies this row within its table. This is the same + * key that's used to identify the row in, for example, a MutateRowRequest. + * May contain any non-empty byte string up to 4KiB in length. + * + * Generated from protobuf field bytes key = 1; + */ + protected $key = ''; + /** + * May be empty, but only if the entire row is empty. + * The mutual ordering of column families is not specified. + * + * Generated from protobuf field repeated .google.bigtable.v2.Family families = 2; + */ + private $families; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $key + * The unique key which identifies this row within its table. This is the same + * key that's used to identify the row in, for example, a MutateRowRequest. + * May contain any non-empty byte string up to 4KiB in length. + * @type \Google\Cloud\Bigtable\V2\Family[] $families + * May be empty, but only if the entire row is empty. + * The mutual ordering of column families is not specified. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); + parent::__construct($data); + } + + /** + * The unique key which identifies this row within its table. This is the same + * key that's used to identify the row in, for example, a MutateRowRequest. + * May contain any non-empty byte string up to 4KiB in length. + * + * Generated from protobuf field bytes key = 1; + * @return string + */ + public function getKey() + { + return $this->key; + } + + /** + * The unique key which identifies this row within its table. This is the same + * key that's used to identify the row in, for example, a MutateRowRequest. + * May contain any non-empty byte string up to 4KiB in length. + * + * Generated from protobuf field bytes key = 1; + * @param string $var + * @return $this + */ + public function setKey($var) + { + GPBUtil::checkString($var, False); + $this->key = $var; + + return $this; + } + + /** + * May be empty, but only if the entire row is empty. + * The mutual ordering of column families is not specified. + * + * Generated from protobuf field repeated .google.bigtable.v2.Family families = 2; + * @return RepeatedField<\Google\Cloud\Bigtable\V2\Family> + */ + public function getFamilies() + { + return $this->families; + } + + /** + * May be empty, but only if the entire row is empty. + * The mutual ordering of column families is not specified. + * + * Generated from protobuf field repeated .google.bigtable.v2.Family families = 2; + * @param \Google\Cloud\Bigtable\V2\Family[] $var + * @return $this + */ + public function setFamilies($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\Family::class); + $this->families = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowFilter.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowFilter.php new file mode 100644 index 000000000000..c728a28a7fe6 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowFilter.php @@ -0,0 +1,990 @@ +google.bigtable.v2.RowFilter + */ +class RowFilter extends \Google\Protobuf\Internal\Message +{ + protected $filter; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\RowFilter\Chain $chain + * Applies several RowFilters to the data in sequence, progressively + * narrowing the results. + * @type \Google\Cloud\Bigtable\V2\RowFilter\Interleave $interleave + * Applies several RowFilters to the data in parallel and combines the + * results. + * @type \Google\Cloud\Bigtable\V2\RowFilter\Condition $condition + * Applies one of two possible RowFilters to the data based on the output of + * a predicate RowFilter. + * @type bool $sink + * ADVANCED USE ONLY. + * Hook for introspection into the RowFilter. Outputs all cells directly to + * the output of the read rather than to any parent filter. Consider the + * following example: + * Chain( + * FamilyRegex("A"), + * Interleave( + * All(), + * Chain(Label("foo"), Sink()) + * ), + * QualifierRegex("B") + * ) + * A,A,1,w + * A,B,2,x + * B,B,4,z + * | + * FamilyRegex("A") + * | + * A,A,1,w + * A,B,2,x + * | + * +------------+-------------+ + * | | + * All() Label(foo) + * | | + * A,A,1,w A,A,1,w,labels:[foo] + * A,B,2,x A,B,2,x,labels:[foo] + * | | + * | Sink() --------------+ + * | | | + * +------------+ x------+ A,A,1,w,labels:[foo] + * | A,B,2,x,labels:[foo] + * A,A,1,w | + * A,B,2,x | + * | | + * QualifierRegex("B") | + * | | + * A,B,2,x | + * | | + * +--------------------------------+ + * | + * A,A,1,w,labels:[foo] + * A,B,2,x,labels:[foo] // could be switched + * A,B,2,x // could be switched + * Despite being excluded by the qualifier filter, a copy of every cell + * that reaches the sink is present in the final result. + * As with an [Interleave][google.bigtable.v2.RowFilter.Interleave], + * duplicate cells are possible, and appear in an unspecified mutual order. + * In this case we have a duplicate with column "A:B" and timestamp 2, + * because one copy passed through the all filter while the other was + * passed through the label and sink. Note that one copy has label "foo", + * while the other does not. + * Cannot be used within the `predicate_filter`, `true_filter`, or + * `false_filter` of a [Condition][google.bigtable.v2.RowFilter.Condition]. + * @type bool $pass_all_filter + * Matches all cells, regardless of input. Functionally equivalent to + * leaving `filter` unset, but included for completeness. + * @type bool $block_all_filter + * Does not match any cells, regardless of input. Useful for temporarily + * disabling just part of a filter. + * @type string $row_key_regex_filter + * Matches only cells from rows whose keys satisfy the given RE2 regex. In + * other words, passes through the entire row when the key matches, and + * otherwise produces an empty row. + * Note that, since row keys can contain arbitrary bytes, the `\C` escape + * sequence must be used if a true wildcard is desired. The `.` character + * will not match the new line character `\n`, which may be present in a + * binary key. + * @type float $row_sample_filter + * Matches all cells from a row with probability p, and matches no cells + * from the row with probability 1-p. + * @type string $family_name_regex_filter + * Matches only cells from columns whose families satisfy the given RE2 + * regex. For technical reasons, the regex must not contain the `:` + * character, even if it is not being used as a literal. + * Note that, since column families cannot contain the new line character + * `\n`, it is sufficient to use `.` as a full wildcard when matching + * column family names. + * @type string $column_qualifier_regex_filter + * Matches only cells from columns whose qualifiers satisfy the given RE2 + * regex. + * Note that, since column qualifiers can contain arbitrary bytes, the `\C` + * escape sequence must be used if a true wildcard is desired. The `.` + * character will not match the new line character `\n`, which may be + * present in a binary qualifier. + * @type \Google\Cloud\Bigtable\V2\ColumnRange $column_range_filter + * Matches only cells from columns within the given range. + * @type \Google\Cloud\Bigtable\V2\TimestampRange $timestamp_range_filter + * Matches only cells with timestamps within the given range. + * @type string $value_regex_filter + * Matches only cells with values that satisfy the given regular expression. + * Note that, since cell values can contain arbitrary bytes, the `\C` escape + * sequence must be used if a true wildcard is desired. The `.` character + * will not match the new line character `\n`, which may be present in a + * binary value. + * @type \Google\Cloud\Bigtable\V2\ValueRange $value_range_filter + * Matches only cells with values that fall within the given range. + * @type int $cells_per_row_offset_filter + * Skips the first N cells of each row, matching all subsequent cells. + * If duplicate cells are present, as is possible when using an Interleave, + * each copy of the cell is counted separately. + * @type int $cells_per_row_limit_filter + * Matches only the first N cells of each row. + * If duplicate cells are present, as is possible when using an Interleave, + * each copy of the cell is counted separately. + * @type int $cells_per_column_limit_filter + * Matches only the most recent N cells within each column. For example, + * if N=2, this filter would match column `foo:bar` at timestamps 10 and 9, + * skip all earlier cells in `foo:bar`, and then begin matching again in + * column `foo:bar2`. + * If duplicate cells are present, as is possible when using an Interleave, + * each copy of the cell is counted separately. + * @type bool $strip_value_transformer + * Replaces each cell's value with the empty string. + * @type string $apply_label_transformer + * Applies the given label to all cells in the output row. This allows + * the client to determine which results were produced from which part of + * the filter. + * Values must be at most 15 characters in length, and match the RE2 + * pattern `[a-z0-9\\-]+` + * Due to a technical limitation, it is not currently possible to apply + * multiple labels to a cell. As a result, a Chain may have no more than + * one sub-filter which contains a `apply_label_transformer`. It is okay for + * an Interleave to contain multiple `apply_label_transformers`, as they + * will be applied to separate copies of the input. This may be relaxed in + * the future. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); + parent::__construct($data); + } + + /** + * Applies several RowFilters to the data in sequence, progressively + * narrowing the results. + * + * Generated from protobuf field .google.bigtable.v2.RowFilter.Chain chain = 1; + * @return \Google\Cloud\Bigtable\V2\RowFilter\Chain|null + */ + public function getChain() + { + return $this->readOneof(1); + } + + public function hasChain() + { + return $this->hasOneof(1); + } + + /** + * Applies several RowFilters to the data in sequence, progressively + * narrowing the results. + * + * Generated from protobuf field .google.bigtable.v2.RowFilter.Chain chain = 1; + * @param \Google\Cloud\Bigtable\V2\RowFilter\Chain $var + * @return $this + */ + public function setChain($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\RowFilter\Chain::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Applies several RowFilters to the data in parallel and combines the + * results. + * + * Generated from protobuf field .google.bigtable.v2.RowFilter.Interleave interleave = 2; + * @return \Google\Cloud\Bigtable\V2\RowFilter\Interleave|null + */ + public function getInterleave() + { + return $this->readOneof(2); + } + + public function hasInterleave() + { + return $this->hasOneof(2); + } + + /** + * Applies several RowFilters to the data in parallel and combines the + * results. + * + * Generated from protobuf field .google.bigtable.v2.RowFilter.Interleave interleave = 2; + * @param \Google\Cloud\Bigtable\V2\RowFilter\Interleave $var + * @return $this + */ + public function setInterleave($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\RowFilter\Interleave::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Applies one of two possible RowFilters to the data based on the output of + * a predicate RowFilter. + * + * Generated from protobuf field .google.bigtable.v2.RowFilter.Condition condition = 3; + * @return \Google\Cloud\Bigtable\V2\RowFilter\Condition|null + */ + public function getCondition() + { + return $this->readOneof(3); + } + + public function hasCondition() + { + return $this->hasOneof(3); + } + + /** + * Applies one of two possible RowFilters to the data based on the output of + * a predicate RowFilter. + * + * Generated from protobuf field .google.bigtable.v2.RowFilter.Condition condition = 3; + * @param \Google\Cloud\Bigtable\V2\RowFilter\Condition $var + * @return $this + */ + public function setCondition($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\RowFilter\Condition::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * ADVANCED USE ONLY. + * Hook for introspection into the RowFilter. Outputs all cells directly to + * the output of the read rather than to any parent filter. Consider the + * following example: + * Chain( + * FamilyRegex("A"), + * Interleave( + * All(), + * Chain(Label("foo"), Sink()) + * ), + * QualifierRegex("B") + * ) + * A,A,1,w + * A,B,2,x + * B,B,4,z + * | + * FamilyRegex("A") + * | + * A,A,1,w + * A,B,2,x + * | + * +------------+-------------+ + * | | + * All() Label(foo) + * | | + * A,A,1,w A,A,1,w,labels:[foo] + * A,B,2,x A,B,2,x,labels:[foo] + * | | + * | Sink() --------------+ + * | | | + * +------------+ x------+ A,A,1,w,labels:[foo] + * | A,B,2,x,labels:[foo] + * A,A,1,w | + * A,B,2,x | + * | | + * QualifierRegex("B") | + * | | + * A,B,2,x | + * | | + * +--------------------------------+ + * | + * A,A,1,w,labels:[foo] + * A,B,2,x,labels:[foo] // could be switched + * A,B,2,x // could be switched + * Despite being excluded by the qualifier filter, a copy of every cell + * that reaches the sink is present in the final result. + * As with an [Interleave][google.bigtable.v2.RowFilter.Interleave], + * duplicate cells are possible, and appear in an unspecified mutual order. + * In this case we have a duplicate with column "A:B" and timestamp 2, + * because one copy passed through the all filter while the other was + * passed through the label and sink. Note that one copy has label "foo", + * while the other does not. + * Cannot be used within the `predicate_filter`, `true_filter`, or + * `false_filter` of a [Condition][google.bigtable.v2.RowFilter.Condition]. + * + * Generated from protobuf field bool sink = 16; + * @return bool + */ + public function getSink() + { + return $this->readOneof(16); + } + + public function hasSink() + { + return $this->hasOneof(16); + } + + /** + * ADVANCED USE ONLY. + * Hook for introspection into the RowFilter. Outputs all cells directly to + * the output of the read rather than to any parent filter. Consider the + * following example: + * Chain( + * FamilyRegex("A"), + * Interleave( + * All(), + * Chain(Label("foo"), Sink()) + * ), + * QualifierRegex("B") + * ) + * A,A,1,w + * A,B,2,x + * B,B,4,z + * | + * FamilyRegex("A") + * | + * A,A,1,w + * A,B,2,x + * | + * +------------+-------------+ + * | | + * All() Label(foo) + * | | + * A,A,1,w A,A,1,w,labels:[foo] + * A,B,2,x A,B,2,x,labels:[foo] + * | | + * | Sink() --------------+ + * | | | + * +------------+ x------+ A,A,1,w,labels:[foo] + * | A,B,2,x,labels:[foo] + * A,A,1,w | + * A,B,2,x | + * | | + * QualifierRegex("B") | + * | | + * A,B,2,x | + * | | + * +--------------------------------+ + * | + * A,A,1,w,labels:[foo] + * A,B,2,x,labels:[foo] // could be switched + * A,B,2,x // could be switched + * Despite being excluded by the qualifier filter, a copy of every cell + * that reaches the sink is present in the final result. + * As with an [Interleave][google.bigtable.v2.RowFilter.Interleave], + * duplicate cells are possible, and appear in an unspecified mutual order. + * In this case we have a duplicate with column "A:B" and timestamp 2, + * because one copy passed through the all filter while the other was + * passed through the label and sink. Note that one copy has label "foo", + * while the other does not. + * Cannot be used within the `predicate_filter`, `true_filter`, or + * `false_filter` of a [Condition][google.bigtable.v2.RowFilter.Condition]. + * + * Generated from protobuf field bool sink = 16; + * @param bool $var + * @return $this + */ + public function setSink($var) + { + GPBUtil::checkBool($var); + $this->writeOneof(16, $var); + + return $this; + } + + /** + * Matches all cells, regardless of input. Functionally equivalent to + * leaving `filter` unset, but included for completeness. + * + * Generated from protobuf field bool pass_all_filter = 17; + * @return bool + */ + public function getPassAllFilter() + { + return $this->readOneof(17); + } + + public function hasPassAllFilter() + { + return $this->hasOneof(17); + } + + /** + * Matches all cells, regardless of input. Functionally equivalent to + * leaving `filter` unset, but included for completeness. + * + * Generated from protobuf field bool pass_all_filter = 17; + * @param bool $var + * @return $this + */ + public function setPassAllFilter($var) + { + GPBUtil::checkBool($var); + $this->writeOneof(17, $var); + + return $this; + } + + /** + * Does not match any cells, regardless of input. Useful for temporarily + * disabling just part of a filter. + * + * Generated from protobuf field bool block_all_filter = 18; + * @return bool + */ + public function getBlockAllFilter() + { + return $this->readOneof(18); + } + + public function hasBlockAllFilter() + { + return $this->hasOneof(18); + } + + /** + * Does not match any cells, regardless of input. Useful for temporarily + * disabling just part of a filter. + * + * Generated from protobuf field bool block_all_filter = 18; + * @param bool $var + * @return $this + */ + public function setBlockAllFilter($var) + { + GPBUtil::checkBool($var); + $this->writeOneof(18, $var); + + return $this; + } + + /** + * Matches only cells from rows whose keys satisfy the given RE2 regex. In + * other words, passes through the entire row when the key matches, and + * otherwise produces an empty row. + * Note that, since row keys can contain arbitrary bytes, the `\C` escape + * sequence must be used if a true wildcard is desired. The `.` character + * will not match the new line character `\n`, which may be present in a + * binary key. + * + * Generated from protobuf field bytes row_key_regex_filter = 4; + * @return string + */ + public function getRowKeyRegexFilter() + { + return $this->readOneof(4); + } + + public function hasRowKeyRegexFilter() + { + return $this->hasOneof(4); + } + + /** + * Matches only cells from rows whose keys satisfy the given RE2 regex. In + * other words, passes through the entire row when the key matches, and + * otherwise produces an empty row. + * Note that, since row keys can contain arbitrary bytes, the `\C` escape + * sequence must be used if a true wildcard is desired. The `.` character + * will not match the new line character `\n`, which may be present in a + * binary key. + * + * Generated from protobuf field bytes row_key_regex_filter = 4; + * @param string $var + * @return $this + */ + public function setRowKeyRegexFilter($var) + { + GPBUtil::checkString($var, False); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Matches all cells from a row with probability p, and matches no cells + * from the row with probability 1-p. + * + * Generated from protobuf field double row_sample_filter = 14; + * @return float + */ + public function getRowSampleFilter() + { + return $this->readOneof(14); + } + + public function hasRowSampleFilter() + { + return $this->hasOneof(14); + } + + /** + * Matches all cells from a row with probability p, and matches no cells + * from the row with probability 1-p. + * + * Generated from protobuf field double row_sample_filter = 14; + * @param float $var + * @return $this + */ + public function setRowSampleFilter($var) + { + GPBUtil::checkDouble($var); + $this->writeOneof(14, $var); + + return $this; + } + + /** + * Matches only cells from columns whose families satisfy the given RE2 + * regex. For technical reasons, the regex must not contain the `:` + * character, even if it is not being used as a literal. + * Note that, since column families cannot contain the new line character + * `\n`, it is sufficient to use `.` as a full wildcard when matching + * column family names. + * + * Generated from protobuf field string family_name_regex_filter = 5; + * @return string + */ + public function getFamilyNameRegexFilter() + { + return $this->readOneof(5); + } + + public function hasFamilyNameRegexFilter() + { + return $this->hasOneof(5); + } + + /** + * Matches only cells from columns whose families satisfy the given RE2 + * regex. For technical reasons, the regex must not contain the `:` + * character, even if it is not being used as a literal. + * Note that, since column families cannot contain the new line character + * `\n`, it is sufficient to use `.` as a full wildcard when matching + * column family names. + * + * Generated from protobuf field string family_name_regex_filter = 5; + * @param string $var + * @return $this + */ + public function setFamilyNameRegexFilter($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Matches only cells from columns whose qualifiers satisfy the given RE2 + * regex. + * Note that, since column qualifiers can contain arbitrary bytes, the `\C` + * escape sequence must be used if a true wildcard is desired. The `.` + * character will not match the new line character `\n`, which may be + * present in a binary qualifier. + * + * Generated from protobuf field bytes column_qualifier_regex_filter = 6; + * @return string + */ + public function getColumnQualifierRegexFilter() + { + return $this->readOneof(6); + } + + public function hasColumnQualifierRegexFilter() + { + return $this->hasOneof(6); + } + + /** + * Matches only cells from columns whose qualifiers satisfy the given RE2 + * regex. + * Note that, since column qualifiers can contain arbitrary bytes, the `\C` + * escape sequence must be used if a true wildcard is desired. The `.` + * character will not match the new line character `\n`, which may be + * present in a binary qualifier. + * + * Generated from protobuf field bytes column_qualifier_regex_filter = 6; + * @param string $var + * @return $this + */ + public function setColumnQualifierRegexFilter($var) + { + GPBUtil::checkString($var, False); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Matches only cells from columns within the given range. + * + * Generated from protobuf field .google.bigtable.v2.ColumnRange column_range_filter = 7; + * @return \Google\Cloud\Bigtable\V2\ColumnRange|null + */ + public function getColumnRangeFilter() + { + return $this->readOneof(7); + } + + public function hasColumnRangeFilter() + { + return $this->hasOneof(7); + } + + /** + * Matches only cells from columns within the given range. + * + * Generated from protobuf field .google.bigtable.v2.ColumnRange column_range_filter = 7; + * @param \Google\Cloud\Bigtable\V2\ColumnRange $var + * @return $this + */ + public function setColumnRangeFilter($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\ColumnRange::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * Matches only cells with timestamps within the given range. + * + * Generated from protobuf field .google.bigtable.v2.TimestampRange timestamp_range_filter = 8; + * @return \Google\Cloud\Bigtable\V2\TimestampRange|null + */ + public function getTimestampRangeFilter() + { + return $this->readOneof(8); + } + + public function hasTimestampRangeFilter() + { + return $this->hasOneof(8); + } + + /** + * Matches only cells with timestamps within the given range. + * + * Generated from protobuf field .google.bigtable.v2.TimestampRange timestamp_range_filter = 8; + * @param \Google\Cloud\Bigtable\V2\TimestampRange $var + * @return $this + */ + public function setTimestampRangeFilter($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\TimestampRange::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * Matches only cells with values that satisfy the given regular expression. + * Note that, since cell values can contain arbitrary bytes, the `\C` escape + * sequence must be used if a true wildcard is desired. The `.` character + * will not match the new line character `\n`, which may be present in a + * binary value. + * + * Generated from protobuf field bytes value_regex_filter = 9; + * @return string + */ + public function getValueRegexFilter() + { + return $this->readOneof(9); + } + + public function hasValueRegexFilter() + { + return $this->hasOneof(9); + } + + /** + * Matches only cells with values that satisfy the given regular expression. + * Note that, since cell values can contain arbitrary bytes, the `\C` escape + * sequence must be used if a true wildcard is desired. The `.` character + * will not match the new line character `\n`, which may be present in a + * binary value. + * + * Generated from protobuf field bytes value_regex_filter = 9; + * @param string $var + * @return $this + */ + public function setValueRegexFilter($var) + { + GPBUtil::checkString($var, False); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * Matches only cells with values that fall within the given range. + * + * Generated from protobuf field .google.bigtable.v2.ValueRange value_range_filter = 15; + * @return \Google\Cloud\Bigtable\V2\ValueRange|null + */ + public function getValueRangeFilter() + { + return $this->readOneof(15); + } + + public function hasValueRangeFilter() + { + return $this->hasOneof(15); + } + + /** + * Matches only cells with values that fall within the given range. + * + * Generated from protobuf field .google.bigtable.v2.ValueRange value_range_filter = 15; + * @param \Google\Cloud\Bigtable\V2\ValueRange $var + * @return $this + */ + public function setValueRangeFilter($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\ValueRange::class); + $this->writeOneof(15, $var); + + return $this; + } + + /** + * Skips the first N cells of each row, matching all subsequent cells. + * If duplicate cells are present, as is possible when using an Interleave, + * each copy of the cell is counted separately. + * + * Generated from protobuf field int32 cells_per_row_offset_filter = 10; + * @return int + */ + public function getCellsPerRowOffsetFilter() + { + return $this->readOneof(10); + } + + public function hasCellsPerRowOffsetFilter() + { + return $this->hasOneof(10); + } + + /** + * Skips the first N cells of each row, matching all subsequent cells. + * If duplicate cells are present, as is possible when using an Interleave, + * each copy of the cell is counted separately. + * + * Generated from protobuf field int32 cells_per_row_offset_filter = 10; + * @param int $var + * @return $this + */ + public function setCellsPerRowOffsetFilter($var) + { + GPBUtil::checkInt32($var); + $this->writeOneof(10, $var); + + return $this; + } + + /** + * Matches only the first N cells of each row. + * If duplicate cells are present, as is possible when using an Interleave, + * each copy of the cell is counted separately. + * + * Generated from protobuf field int32 cells_per_row_limit_filter = 11; + * @return int + */ + public function getCellsPerRowLimitFilter() + { + return $this->readOneof(11); + } + + public function hasCellsPerRowLimitFilter() + { + return $this->hasOneof(11); + } + + /** + * Matches only the first N cells of each row. + * If duplicate cells are present, as is possible when using an Interleave, + * each copy of the cell is counted separately. + * + * Generated from protobuf field int32 cells_per_row_limit_filter = 11; + * @param int $var + * @return $this + */ + public function setCellsPerRowLimitFilter($var) + { + GPBUtil::checkInt32($var); + $this->writeOneof(11, $var); + + return $this; + } + + /** + * Matches only the most recent N cells within each column. For example, + * if N=2, this filter would match column `foo:bar` at timestamps 10 and 9, + * skip all earlier cells in `foo:bar`, and then begin matching again in + * column `foo:bar2`. + * If duplicate cells are present, as is possible when using an Interleave, + * each copy of the cell is counted separately. + * + * Generated from protobuf field int32 cells_per_column_limit_filter = 12; + * @return int + */ + public function getCellsPerColumnLimitFilter() + { + return $this->readOneof(12); + } + + public function hasCellsPerColumnLimitFilter() + { + return $this->hasOneof(12); + } + + /** + * Matches only the most recent N cells within each column. For example, + * if N=2, this filter would match column `foo:bar` at timestamps 10 and 9, + * skip all earlier cells in `foo:bar`, and then begin matching again in + * column `foo:bar2`. + * If duplicate cells are present, as is possible when using an Interleave, + * each copy of the cell is counted separately. + * + * Generated from protobuf field int32 cells_per_column_limit_filter = 12; + * @param int $var + * @return $this + */ + public function setCellsPerColumnLimitFilter($var) + { + GPBUtil::checkInt32($var); + $this->writeOneof(12, $var); + + return $this; + } + + /** + * Replaces each cell's value with the empty string. + * + * Generated from protobuf field bool strip_value_transformer = 13; + * @return bool + */ + public function getStripValueTransformer() + { + return $this->readOneof(13); + } + + public function hasStripValueTransformer() + { + return $this->hasOneof(13); + } + + /** + * Replaces each cell's value with the empty string. + * + * Generated from protobuf field bool strip_value_transformer = 13; + * @param bool $var + * @return $this + */ + public function setStripValueTransformer($var) + { + GPBUtil::checkBool($var); + $this->writeOneof(13, $var); + + return $this; + } + + /** + * Applies the given label to all cells in the output row. This allows + * the client to determine which results were produced from which part of + * the filter. + * Values must be at most 15 characters in length, and match the RE2 + * pattern `[a-z0-9\\-]+` + * Due to a technical limitation, it is not currently possible to apply + * multiple labels to a cell. As a result, a Chain may have no more than + * one sub-filter which contains a `apply_label_transformer`. It is okay for + * an Interleave to contain multiple `apply_label_transformers`, as they + * will be applied to separate copies of the input. This may be relaxed in + * the future. + * + * Generated from protobuf field string apply_label_transformer = 19; + * @return string + */ + public function getApplyLabelTransformer() + { + return $this->readOneof(19); + } + + public function hasApplyLabelTransformer() + { + return $this->hasOneof(19); + } + + /** + * Applies the given label to all cells in the output row. This allows + * the client to determine which results were produced from which part of + * the filter. + * Values must be at most 15 characters in length, and match the RE2 + * pattern `[a-z0-9\\-]+` + * Due to a technical limitation, it is not currently possible to apply + * multiple labels to a cell. As a result, a Chain may have no more than + * one sub-filter which contains a `apply_label_transformer`. It is okay for + * an Interleave to contain multiple `apply_label_transformers`, as they + * will be applied to separate copies of the input. This may be relaxed in + * the future. + * + * Generated from protobuf field string apply_label_transformer = 19; + * @param string $var + * @return $this + */ + public function setApplyLabelTransformer($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(19, $var); + + return $this; + } + + /** + * @return string + */ + public function getFilter() + { + return $this->whichOneof("filter"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowFilter/Chain.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowFilter/Chain.php new file mode 100644 index 000000000000..e787c62b001f --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowFilter/Chain.php @@ -0,0 +1,75 @@ +google.bigtable.v2.RowFilter.Chain + */ +class Chain extends \Google\Protobuf\Internal\Message +{ + /** + * The elements of "filters" are chained together to process the input row: + * in row -> f(0) -> intermediate row -> f(1) -> ... -> f(N) -> out row + * The full chain is executed atomically. + * + * Generated from protobuf field repeated .google.bigtable.v2.RowFilter filters = 1; + */ + private $filters; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\RowFilter[] $filters + * The elements of "filters" are chained together to process the input row: + * in row -> f(0) -> intermediate row -> f(1) -> ... -> f(N) -> out row + * The full chain is executed atomically. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); + parent::__construct($data); + } + + /** + * The elements of "filters" are chained together to process the input row: + * in row -> f(0) -> intermediate row -> f(1) -> ... -> f(N) -> out row + * The full chain is executed atomically. + * + * Generated from protobuf field repeated .google.bigtable.v2.RowFilter filters = 1; + * @return RepeatedField<\Google\Cloud\Bigtable\V2\RowFilter> + */ + public function getFilters() + { + return $this->filters; + } + + /** + * The elements of "filters" are chained together to process the input row: + * in row -> f(0) -> intermediate row -> f(1) -> ... -> f(N) -> out row + * The full chain is executed atomically. + * + * Generated from protobuf field repeated .google.bigtable.v2.RowFilter filters = 1; + * @param \Google\Cloud\Bigtable\V2\RowFilter[] $var + * @return $this + */ + public function setFilters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\RowFilter::class); + $this->filters = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowFilter/Condition.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowFilter/Condition.php new file mode 100644 index 000000000000..be91977c48d5 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowFilter/Condition.php @@ -0,0 +1,186 @@ +google.bigtable.v2.RowFilter.Condition + */ +class Condition extends \Google\Protobuf\Internal\Message +{ + /** + * If `predicate_filter` outputs any cells, then `true_filter` will be + * evaluated on the input row. Otherwise, `false_filter` will be evaluated. + * + * Generated from protobuf field .google.bigtable.v2.RowFilter predicate_filter = 1; + */ + protected $predicate_filter = null; + /** + * The filter to apply to the input row if `predicate_filter` returns any + * results. If not provided, no results will be returned in the true case. + * + * Generated from protobuf field .google.bigtable.v2.RowFilter true_filter = 2; + */ + protected $true_filter = null; + /** + * The filter to apply to the input row if `predicate_filter` does not + * return any results. If not provided, no results will be returned in the + * false case. + * + * Generated from protobuf field .google.bigtable.v2.RowFilter false_filter = 3; + */ + protected $false_filter = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\RowFilter $predicate_filter + * If `predicate_filter` outputs any cells, then `true_filter` will be + * evaluated on the input row. Otherwise, `false_filter` will be evaluated. + * @type \Google\Cloud\Bigtable\V2\RowFilter $true_filter + * The filter to apply to the input row if `predicate_filter` returns any + * results. If not provided, no results will be returned in the true case. + * @type \Google\Cloud\Bigtable\V2\RowFilter $false_filter + * The filter to apply to the input row if `predicate_filter` does not + * return any results. If not provided, no results will be returned in the + * false case. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); + parent::__construct($data); + } + + /** + * If `predicate_filter` outputs any cells, then `true_filter` will be + * evaluated on the input row. Otherwise, `false_filter` will be evaluated. + * + * Generated from protobuf field .google.bigtable.v2.RowFilter predicate_filter = 1; + * @return \Google\Cloud\Bigtable\V2\RowFilter|null + */ + public function getPredicateFilter() + { + return $this->predicate_filter; + } + + public function hasPredicateFilter() + { + return isset($this->predicate_filter); + } + + public function clearPredicateFilter() + { + unset($this->predicate_filter); + } + + /** + * If `predicate_filter` outputs any cells, then `true_filter` will be + * evaluated on the input row. Otherwise, `false_filter` will be evaluated. + * + * Generated from protobuf field .google.bigtable.v2.RowFilter predicate_filter = 1; + * @param \Google\Cloud\Bigtable\V2\RowFilter $var + * @return $this + */ + public function setPredicateFilter($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\RowFilter::class); + $this->predicate_filter = $var; + + return $this; + } + + /** + * The filter to apply to the input row if `predicate_filter` returns any + * results. If not provided, no results will be returned in the true case. + * + * Generated from protobuf field .google.bigtable.v2.RowFilter true_filter = 2; + * @return \Google\Cloud\Bigtable\V2\RowFilter|null + */ + public function getTrueFilter() + { + return $this->true_filter; + } + + public function hasTrueFilter() + { + return isset($this->true_filter); + } + + public function clearTrueFilter() + { + unset($this->true_filter); + } + + /** + * The filter to apply to the input row if `predicate_filter` returns any + * results. If not provided, no results will be returned in the true case. + * + * Generated from protobuf field .google.bigtable.v2.RowFilter true_filter = 2; + * @param \Google\Cloud\Bigtable\V2\RowFilter $var + * @return $this + */ + public function setTrueFilter($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\RowFilter::class); + $this->true_filter = $var; + + return $this; + } + + /** + * The filter to apply to the input row if `predicate_filter` does not + * return any results. If not provided, no results will be returned in the + * false case. + * + * Generated from protobuf field .google.bigtable.v2.RowFilter false_filter = 3; + * @return \Google\Cloud\Bigtable\V2\RowFilter|null + */ + public function getFalseFilter() + { + return $this->false_filter; + } + + public function hasFalseFilter() + { + return isset($this->false_filter); + } + + public function clearFalseFilter() + { + unset($this->false_filter); + } + + /** + * The filter to apply to the input row if `predicate_filter` does not + * return any results. If not provided, no results will be returned in the + * false case. + * + * Generated from protobuf field .google.bigtable.v2.RowFilter false_filter = 3; + * @param \Google\Cloud\Bigtable\V2\RowFilter $var + * @return $this + */ + public function setFalseFilter($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\RowFilter::class); + $this->false_filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowFilter/Interleave.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowFilter/Interleave.php new file mode 100644 index 000000000000..0d67d0ae5ad0 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowFilter/Interleave.php @@ -0,0 +1,156 @@ +google.bigtable.v2.RowFilter.Interleave + */ +class Interleave extends \Google\Protobuf\Internal\Message +{ + /** + * The elements of "filters" all process a copy of the input row, and the + * results are pooled, sorted, and combined into a single output row. + * If multiple cells are produced with the same column and timestamp, + * they will all appear in the output row in an unspecified mutual order. + * Consider the following example, with three filters: + * input row + * | + * ----------------------------------------------------- + * | | | + * f(0) f(1) f(2) + * | | | + * 1: foo,bar,10,x foo,bar,10,z far,bar,7,a + * 2: foo,blah,11,z far,blah,5,x far,blah,5,x + * | | | + * ----------------------------------------------------- + * | + * 1: foo,bar,10,z // could have switched with #2 + * 2: foo,bar,10,x // could have switched with #1 + * 3: foo,blah,11,z + * 4: far,bar,7,a + * 5: far,blah,5,x // identical to #6 + * 6: far,blah,5,x // identical to #5 + * All interleaved filters are executed atomically. + * + * Generated from protobuf field repeated .google.bigtable.v2.RowFilter filters = 1; + */ + private $filters; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\RowFilter[] $filters + * The elements of "filters" all process a copy of the input row, and the + * results are pooled, sorted, and combined into a single output row. + * If multiple cells are produced with the same column and timestamp, + * they will all appear in the output row in an unspecified mutual order. + * Consider the following example, with three filters: + * input row + * | + * ----------------------------------------------------- + * | | | + * f(0) f(1) f(2) + * | | | + * 1: foo,bar,10,x foo,bar,10,z far,bar,7,a + * 2: foo,blah,11,z far,blah,5,x far,blah,5,x + * | | | + * ----------------------------------------------------- + * | + * 1: foo,bar,10,z // could have switched with #2 + * 2: foo,bar,10,x // could have switched with #1 + * 3: foo,blah,11,z + * 4: far,bar,7,a + * 5: far,blah,5,x // identical to #6 + * 6: far,blah,5,x // identical to #5 + * All interleaved filters are executed atomically. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); + parent::__construct($data); + } + + /** + * The elements of "filters" all process a copy of the input row, and the + * results are pooled, sorted, and combined into a single output row. + * If multiple cells are produced with the same column and timestamp, + * they will all appear in the output row in an unspecified mutual order. + * Consider the following example, with three filters: + * input row + * | + * ----------------------------------------------------- + * | | | + * f(0) f(1) f(2) + * | | | + * 1: foo,bar,10,x foo,bar,10,z far,bar,7,a + * 2: foo,blah,11,z far,blah,5,x far,blah,5,x + * | | | + * ----------------------------------------------------- + * | + * 1: foo,bar,10,z // could have switched with #2 + * 2: foo,bar,10,x // could have switched with #1 + * 3: foo,blah,11,z + * 4: far,bar,7,a + * 5: far,blah,5,x // identical to #6 + * 6: far,blah,5,x // identical to #5 + * All interleaved filters are executed atomically. + * + * Generated from protobuf field repeated .google.bigtable.v2.RowFilter filters = 1; + * @return RepeatedField<\Google\Cloud\Bigtable\V2\RowFilter> + */ + public function getFilters() + { + return $this->filters; + } + + /** + * The elements of "filters" all process a copy of the input row, and the + * results are pooled, sorted, and combined into a single output row. + * If multiple cells are produced with the same column and timestamp, + * they will all appear in the output row in an unspecified mutual order. + * Consider the following example, with three filters: + * input row + * | + * ----------------------------------------------------- + * | | | + * f(0) f(1) f(2) + * | | | + * 1: foo,bar,10,x foo,bar,10,z far,bar,7,a + * 2: foo,blah,11,z far,blah,5,x far,blah,5,x + * | | | + * ----------------------------------------------------- + * | + * 1: foo,bar,10,z // could have switched with #2 + * 2: foo,bar,10,x // could have switched with #1 + * 3: foo,blah,11,z + * 4: far,bar,7,a + * 5: far,blah,5,x // identical to #6 + * 6: far,blah,5,x // identical to #5 + * All interleaved filters are executed atomically. + * + * Generated from protobuf field repeated .google.bigtable.v2.RowFilter filters = 1; + * @param \Google\Cloud\Bigtable\V2\RowFilter[] $var + * @return $this + */ + public function setFilters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\RowFilter::class); + $this->filters = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowRange.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowRange.php new file mode 100644 index 000000000000..9f3d47997a59 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowRange.php @@ -0,0 +1,183 @@ +google.bigtable.v2.RowRange + */ +class RowRange extends \Google\Protobuf\Internal\Message +{ + protected $start_key; + protected $end_key; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $start_key_closed + * Used when giving an inclusive lower bound for the range. + * @type string $start_key_open + * Used when giving an exclusive lower bound for the range. + * @type string $end_key_open + * Used when giving an exclusive upper bound for the range. + * @type string $end_key_closed + * Used when giving an inclusive upper bound for the range. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); + parent::__construct($data); + } + + /** + * Used when giving an inclusive lower bound for the range. + * + * Generated from protobuf field bytes start_key_closed = 1; + * @return string + */ + public function getStartKeyClosed() + { + return $this->readOneof(1); + } + + public function hasStartKeyClosed() + { + return $this->hasOneof(1); + } + + /** + * Used when giving an inclusive lower bound for the range. + * + * Generated from protobuf field bytes start_key_closed = 1; + * @param string $var + * @return $this + */ + public function setStartKeyClosed($var) + { + GPBUtil::checkString($var, False); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Used when giving an exclusive lower bound for the range. + * + * Generated from protobuf field bytes start_key_open = 2; + * @return string + */ + public function getStartKeyOpen() + { + return $this->readOneof(2); + } + + public function hasStartKeyOpen() + { + return $this->hasOneof(2); + } + + /** + * Used when giving an exclusive lower bound for the range. + * + * Generated from protobuf field bytes start_key_open = 2; + * @param string $var + * @return $this + */ + public function setStartKeyOpen($var) + { + GPBUtil::checkString($var, False); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Used when giving an exclusive upper bound for the range. + * + * Generated from protobuf field bytes end_key_open = 3; + * @return string + */ + public function getEndKeyOpen() + { + return $this->readOneof(3); + } + + public function hasEndKeyOpen() + { + return $this->hasOneof(3); + } + + /** + * Used when giving an exclusive upper bound for the range. + * + * Generated from protobuf field bytes end_key_open = 3; + * @param string $var + * @return $this + */ + public function setEndKeyOpen($var) + { + GPBUtil::checkString($var, False); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Used when giving an inclusive upper bound for the range. + * + * Generated from protobuf field bytes end_key_closed = 4; + * @return string + */ + public function getEndKeyClosed() + { + return $this->readOneof(4); + } + + public function hasEndKeyClosed() + { + return $this->hasOneof(4); + } + + /** + * Used when giving an inclusive upper bound for the range. + * + * Generated from protobuf field bytes end_key_closed = 4; + * @param string $var + * @return $this + */ + public function setEndKeyClosed($var) + { + GPBUtil::checkString($var, False); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * @return string + */ + public function getStartKey() + { + return $this->whichOneof("start_key"); + } + + /** + * @return string + */ + public function getEndKey() + { + return $this->whichOneof("end_key"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowSet.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowSet.php new file mode 100644 index 000000000000..6ba6a39ae425 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowSet.php @@ -0,0 +1,101 @@ +google.bigtable.v2.RowSet + */ +class RowSet extends \Google\Protobuf\Internal\Message +{ + /** + * Single rows included in the set. + * + * Generated from protobuf field repeated bytes row_keys = 1; + */ + private $row_keys; + /** + * Contiguous row ranges included in the set. + * + * Generated from protobuf field repeated .google.bigtable.v2.RowRange row_ranges = 2; + */ + private $row_ranges; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $row_keys + * Single rows included in the set. + * @type \Google\Cloud\Bigtable\V2\RowRange[] $row_ranges + * Contiguous row ranges included in the set. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); + parent::__construct($data); + } + + /** + * Single rows included in the set. + * + * Generated from protobuf field repeated bytes row_keys = 1; + * @return RepeatedField + */ + public function getRowKeys() + { + return $this->row_keys; + } + + /** + * Single rows included in the set. + * + * Generated from protobuf field repeated bytes row_keys = 1; + * @param string[] $var + * @return $this + */ + public function setRowKeys($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::BYTES); + $this->row_keys = $arr; + + return $this; + } + + /** + * Contiguous row ranges included in the set. + * + * Generated from protobuf field repeated .google.bigtable.v2.RowRange row_ranges = 2; + * @return RepeatedField<\Google\Cloud\Bigtable\V2\RowRange> + */ + public function getRowRanges() + { + return $this->row_ranges; + } + + /** + * Contiguous row ranges included in the set. + * + * Generated from protobuf field repeated .google.bigtable.v2.RowRange row_ranges = 2; + * @param \Google\Cloud\Bigtable\V2\RowRange[] $var + * @return $this + */ + public function setRowRanges($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\RowRange::class); + $this->row_ranges = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/SampleRowKeysRequest.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/SampleRowKeysRequest.php new file mode 100644 index 000000000000..995d244018aa --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/SampleRowKeysRequest.php @@ -0,0 +1,238 @@ +google.bigtable.v2.SampleRowKeysRequest + */ +class SampleRowKeysRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The unique name of the table from which to sample row keys. + * Values are of the form + * `projects//instances//tables/
`. + * + * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $table_name = ''; + /** + * Optional. The unique name of the AuthorizedView from which to sample row + * keys. + * Values are of the form + * `projects//instances//tables/
/authorizedViews/`. + * + * Generated from protobuf field string authorized_view_name = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $authorized_view_name = ''; + /** + * Optional. The unique name of the MaterializedView from which to read. + * Values are of the form + * `projects//instances//materializedViews/`. + * + * Generated from protobuf field string materialized_view_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $materialized_view_name = ''; + /** + * This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * + * Generated from protobuf field string app_profile_id = 2; + */ + protected $app_profile_id = ''; + + /** + * @param string $tableName Optional. The unique name of the table from which to sample row keys. + * + * Values are of the form + * `projects//instances//tables/
`. Please see + * {@see BigtableClient::tableName()} for help formatting this field. + * + * @return \Google\Cloud\Bigtable\V2\SampleRowKeysRequest + * + * @experimental + */ + public static function build(string $tableName): self + { + return (new self()) + ->setTableName($tableName); + } + + /** + * @param string $tableName Optional. The unique name of the table from which to sample row keys. + * + * Values are of the form + * `projects//instances//tables/
`. Please see + * {@see BigtableClient::tableName()} for help formatting this field. + * @param string $appProfileId This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * + * @return \Google\Cloud\Bigtable\V2\SampleRowKeysRequest + * + * @experimental + */ + public static function buildFromTableNameAppProfileId(string $tableName, string $appProfileId): self + { + return (new self()) + ->setTableName($tableName) + ->setAppProfileId($appProfileId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $table_name + * Optional. The unique name of the table from which to sample row keys. + * Values are of the form + * `projects//instances//tables/
`. + * @type string $authorized_view_name + * Optional. The unique name of the AuthorizedView from which to sample row + * keys. + * Values are of the form + * `projects//instances//tables/
/authorizedViews/`. + * @type string $materialized_view_name + * Optional. The unique name of the MaterializedView from which to read. + * Values are of the form + * `projects//instances//materializedViews/`. + * @type string $app_profile_id + * This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The unique name of the table from which to sample row keys. + * Values are of the form + * `projects//instances//tables/
`. + * + * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getTableName() + { + return $this->table_name; + } + + /** + * Optional. The unique name of the table from which to sample row keys. + * Values are of the form + * `projects//instances//tables/
`. + * + * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setTableName($var) + { + GPBUtil::checkString($var, True); + $this->table_name = $var; + + return $this; + } + + /** + * Optional. The unique name of the AuthorizedView from which to sample row + * keys. + * Values are of the form + * `projects//instances//tables/
/authorizedViews/`. + * + * Generated from protobuf field string authorized_view_name = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getAuthorizedViewName() + { + return $this->authorized_view_name; + } + + /** + * Optional. The unique name of the AuthorizedView from which to sample row + * keys. + * Values are of the form + * `projects//instances//tables/
/authorizedViews/`. + * + * Generated from protobuf field string authorized_view_name = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setAuthorizedViewName($var) + { + GPBUtil::checkString($var, True); + $this->authorized_view_name = $var; + + return $this; + } + + /** + * Optional. The unique name of the MaterializedView from which to read. + * Values are of the form + * `projects//instances//materializedViews/`. + * + * Generated from protobuf field string materialized_view_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getMaterializedViewName() + { + return $this->materialized_view_name; + } + + /** + * Optional. The unique name of the MaterializedView from which to read. + * Values are of the form + * `projects//instances//materializedViews/`. + * + * Generated from protobuf field string materialized_view_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setMaterializedViewName($var) + { + GPBUtil::checkString($var, True); + $this->materialized_view_name = $var; + + return $this; + } + + /** + * This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * + * Generated from protobuf field string app_profile_id = 2; + * @return string + */ + public function getAppProfileId() + { + return $this->app_profile_id; + } + + /** + * This value specifies routing for replication. If not specified, the + * "default" application profile will be used. + * + * Generated from protobuf field string app_profile_id = 2; + * @param string $var + * @return $this + */ + public function setAppProfileId($var) + { + GPBUtil::checkString($var, True); + $this->app_profile_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/SampleRowKeysResponse.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/SampleRowKeysResponse.php new file mode 100644 index 000000000000..d261b6417f82 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/SampleRowKeysResponse.php @@ -0,0 +1,137 @@ +google.bigtable.v2.SampleRowKeysResponse + */ +class SampleRowKeysResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Sorted streamed sequence of sample row keys in the table. The table might + * have contents before the first row key in the list and after the last one, + * but a key containing the empty string indicates "end of table" and will be + * the last response given, if present. + * Note that row keys in this list may not have ever been written to or read + * from, and users should therefore not make any assumptions about the row key + * structure that are specific to their use case. + * + * Generated from protobuf field bytes row_key = 1; + */ + protected $row_key = ''; + /** + * Approximate total storage space used by all rows in the table which precede + * `row_key`. Buffering the contents of all rows between two subsequent + * samples would require space roughly equal to the difference in their + * `offset_bytes` fields. + * + * Generated from protobuf field int64 offset_bytes = 2; + */ + protected $offset_bytes = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $row_key + * Sorted streamed sequence of sample row keys in the table. The table might + * have contents before the first row key in the list and after the last one, + * but a key containing the empty string indicates "end of table" and will be + * the last response given, if present. + * Note that row keys in this list may not have ever been written to or read + * from, and users should therefore not make any assumptions about the row key + * structure that are specific to their use case. + * @type int|string $offset_bytes + * Approximate total storage space used by all rows in the table which precede + * `row_key`. Buffering the contents of all rows between two subsequent + * samples would require space roughly equal to the difference in their + * `offset_bytes` fields. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); + parent::__construct($data); + } + + /** + * Sorted streamed sequence of sample row keys in the table. The table might + * have contents before the first row key in the list and after the last one, + * but a key containing the empty string indicates "end of table" and will be + * the last response given, if present. + * Note that row keys in this list may not have ever been written to or read + * from, and users should therefore not make any assumptions about the row key + * structure that are specific to their use case. + * + * Generated from protobuf field bytes row_key = 1; + * @return string + */ + public function getRowKey() + { + return $this->row_key; + } + + /** + * Sorted streamed sequence of sample row keys in the table. The table might + * have contents before the first row key in the list and after the last one, + * but a key containing the empty string indicates "end of table" and will be + * the last response given, if present. + * Note that row keys in this list may not have ever been written to or read + * from, and users should therefore not make any assumptions about the row key + * structure that are specific to their use case. + * + * Generated from protobuf field bytes row_key = 1; + * @param string $var + * @return $this + */ + public function setRowKey($var) + { + GPBUtil::checkString($var, False); + $this->row_key = $var; + + return $this; + } + + /** + * Approximate total storage space used by all rows in the table which precede + * `row_key`. Buffering the contents of all rows between two subsequent + * samples would require space roughly equal to the difference in their + * `offset_bytes` fields. + * + * Generated from protobuf field int64 offset_bytes = 2; + * @return int|string + */ + public function getOffsetBytes() + { + return $this->offset_bytes; + } + + /** + * Approximate total storage space used by all rows in the table which precede + * `row_key`. Buffering the contents of all rows between two subsequent + * samples would require space roughly equal to the difference in their + * `offset_bytes` fields. + * + * Generated from protobuf field int64 offset_bytes = 2; + * @param int|string $var + * @return $this + */ + public function setOffsetBytes($var) + { + GPBUtil::checkInt64($var); + $this->offset_bytes = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/StreamContinuationToken.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/StreamContinuationToken.php new file mode 100644 index 000000000000..928fe8f6da84 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/StreamContinuationToken.php @@ -0,0 +1,113 @@ +google.bigtable.v2.StreamContinuationToken + */ +class StreamContinuationToken extends \Google\Protobuf\Internal\Message +{ + /** + * The partition that this token applies to. + * + * Generated from protobuf field .google.bigtable.v2.StreamPartition partition = 1; + */ + protected $partition = null; + /** + * An encoded position in the stream to restart reading from. + * + * Generated from protobuf field string token = 2; + */ + protected $token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\StreamPartition $partition + * The partition that this token applies to. + * @type string $token + * An encoded position in the stream to restart reading from. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); + parent::__construct($data); + } + + /** + * The partition that this token applies to. + * + * Generated from protobuf field .google.bigtable.v2.StreamPartition partition = 1; + * @return \Google\Cloud\Bigtable\V2\StreamPartition|null + */ + public function getPartition() + { + return $this->partition; + } + + public function hasPartition() + { + return isset($this->partition); + } + + public function clearPartition() + { + unset($this->partition); + } + + /** + * The partition that this token applies to. + * + * Generated from protobuf field .google.bigtable.v2.StreamPartition partition = 1; + * @param \Google\Cloud\Bigtable\V2\StreamPartition $var + * @return $this + */ + public function setPartition($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\StreamPartition::class); + $this->partition = $var; + + return $this; + } + + /** + * An encoded position in the stream to restart reading from. + * + * Generated from protobuf field string token = 2; + * @return string + */ + public function getToken() + { + return $this->token; + } + + /** + * An encoded position in the stream to restart reading from. + * + * Generated from protobuf field string token = 2; + * @param string $var + * @return $this + */ + public function setToken($var) + { + GPBUtil::checkString($var, True); + $this->token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/StreamContinuationTokens.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/StreamContinuationTokens.php new file mode 100644 index 000000000000..cbade22e3170 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/StreamContinuationTokens.php @@ -0,0 +1,69 @@ +google.bigtable.v2.StreamContinuationTokens + */ +class StreamContinuationTokens extends \Google\Protobuf\Internal\Message +{ + /** + * List of continuation tokens. + * + * Generated from protobuf field repeated .google.bigtable.v2.StreamContinuationToken tokens = 1; + */ + private $tokens; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\StreamContinuationToken[] $tokens + * List of continuation tokens. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); + parent::__construct($data); + } + + /** + * List of continuation tokens. + * + * Generated from protobuf field repeated .google.bigtable.v2.StreamContinuationToken tokens = 1; + * @return RepeatedField<\Google\Cloud\Bigtable\V2\StreamContinuationToken> + */ + public function getTokens() + { + return $this->tokens; + } + + /** + * List of continuation tokens. + * + * Generated from protobuf field repeated .google.bigtable.v2.StreamContinuationToken tokens = 1; + * @param \Google\Cloud\Bigtable\V2\StreamContinuationToken[] $var + * @return $this + */ + public function setTokens($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\StreamContinuationToken::class); + $this->tokens = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/StreamPartition.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/StreamPartition.php new file mode 100644 index 000000000000..e10cd04fd0c4 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/StreamPartition.php @@ -0,0 +1,82 @@ +google.bigtable.v2.StreamPartition + */ +class StreamPartition extends \Google\Protobuf\Internal\Message +{ + /** + * The row range covered by this partition and is specified by + * [`start_key_closed`, `end_key_open`). + * + * Generated from protobuf field .google.bigtable.v2.RowRange row_range = 1; + */ + protected $row_range = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\RowRange $row_range + * The row range covered by this partition and is specified by + * [`start_key_closed`, `end_key_open`). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); + parent::__construct($data); + } + + /** + * The row range covered by this partition and is specified by + * [`start_key_closed`, `end_key_open`). + * + * Generated from protobuf field .google.bigtable.v2.RowRange row_range = 1; + * @return \Google\Cloud\Bigtable\V2\RowRange|null + */ + public function getRowRange() + { + return $this->row_range; + } + + public function hasRowRange() + { + return isset($this->row_range); + } + + public function clearRowRange() + { + unset($this->row_range); + } + + /** + * The row range covered by this partition and is specified by + * [`start_key_closed`, `end_key_open`). + * + * Generated from protobuf field .google.bigtable.v2.RowRange row_range = 1; + * @param \Google\Cloud\Bigtable\V2\RowRange $var + * @return $this + */ + public function setRowRange($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\RowRange::class); + $this->row_range = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/TimestampRange.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/TimestampRange.php new file mode 100644 index 000000000000..221d079b7fa6 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/TimestampRange.php @@ -0,0 +1,101 @@ +google.bigtable.v2.TimestampRange + */ +class TimestampRange extends \Google\Protobuf\Internal\Message +{ + /** + * Inclusive lower bound. If left empty, interpreted as 0. + * + * Generated from protobuf field int64 start_timestamp_micros = 1; + */ + protected $start_timestamp_micros = 0; + /** + * Exclusive upper bound. If left empty, interpreted as infinity. + * + * Generated from protobuf field int64 end_timestamp_micros = 2; + */ + protected $end_timestamp_micros = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $start_timestamp_micros + * Inclusive lower bound. If left empty, interpreted as 0. + * @type int|string $end_timestamp_micros + * Exclusive upper bound. If left empty, interpreted as infinity. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); + parent::__construct($data); + } + + /** + * Inclusive lower bound. If left empty, interpreted as 0. + * + * Generated from protobuf field int64 start_timestamp_micros = 1; + * @return int|string + */ + public function getStartTimestampMicros() + { + return $this->start_timestamp_micros; + } + + /** + * Inclusive lower bound. If left empty, interpreted as 0. + * + * Generated from protobuf field int64 start_timestamp_micros = 1; + * @param int|string $var + * @return $this + */ + public function setStartTimestampMicros($var) + { + GPBUtil::checkInt64($var); + $this->start_timestamp_micros = $var; + + return $this; + } + + /** + * Exclusive upper bound. If left empty, interpreted as infinity. + * + * Generated from protobuf field int64 end_timestamp_micros = 2; + * @return int|string + */ + public function getEndTimestampMicros() + { + return $this->end_timestamp_micros; + } + + /** + * Exclusive upper bound. If left empty, interpreted as infinity. + * + * Generated from protobuf field int64 end_timestamp_micros = 2; + * @param int|string $var + * @return $this + */ + public function setEndTimestampMicros($var) + { + GPBUtil::checkInt64($var); + $this->end_timestamp_micros = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type.php new file mode 100644 index 000000000000..64f69d060e5d --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type.php @@ -0,0 +1,521 @@ + INT64(-1)`, but + * `STRING("-00001") > STRING("00001")`. + * + * Generated from protobuf message google.bigtable.v2.Type + */ +class Type extends \Google\Protobuf\Internal\Message +{ + protected $kind; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\Type\Bytes $bytes_type + * Bytes + * @type \Google\Cloud\Bigtable\V2\Type\PBString $string_type + * String + * @type \Google\Cloud\Bigtable\V2\Type\Int64 $int64_type + * Int64 + * @type \Google\Cloud\Bigtable\V2\Type\Float32 $float32_type + * Float32 + * @type \Google\Cloud\Bigtable\V2\Type\Float64 $float64_type + * Float64 + * @type \Google\Cloud\Bigtable\V2\Type\PBBool $bool_type + * Bool + * @type \Google\Cloud\Bigtable\V2\Type\Timestamp $timestamp_type + * Timestamp + * @type \Google\Cloud\Bigtable\V2\Type\Date $date_type + * Date + * @type \Google\Cloud\Bigtable\V2\Type\Aggregate $aggregate_type + * Aggregate + * @type \Google\Cloud\Bigtable\V2\Type\Struct $struct_type + * Struct + * @type \Google\Cloud\Bigtable\V2\Type\PBArray $array_type + * Array + * @type \Google\Cloud\Bigtable\V2\Type\Map $map_type + * Map + * @type \Google\Cloud\Bigtable\V2\Type\Proto $proto_type + * Proto + * @type \Google\Cloud\Bigtable\V2\Type\Enum $enum_type + * Enum + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * Bytes + * + * Generated from protobuf field .google.bigtable.v2.Type.Bytes bytes_type = 1; + * @return \Google\Cloud\Bigtable\V2\Type\Bytes|null + */ + public function getBytesType() + { + return $this->readOneof(1); + } + + public function hasBytesType() + { + return $this->hasOneof(1); + } + + /** + * Bytes + * + * Generated from protobuf field .google.bigtable.v2.Type.Bytes bytes_type = 1; + * @param \Google\Cloud\Bigtable\V2\Type\Bytes $var + * @return $this + */ + public function setBytesType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Bytes::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * String + * + * Generated from protobuf field .google.bigtable.v2.Type.String string_type = 2; + * @return \Google\Cloud\Bigtable\V2\Type\PBString|null + */ + public function getStringType() + { + return $this->readOneof(2); + } + + public function hasStringType() + { + return $this->hasOneof(2); + } + + /** + * String + * + * Generated from protobuf field .google.bigtable.v2.Type.String string_type = 2; + * @param \Google\Cloud\Bigtable\V2\Type\PBString $var + * @return $this + */ + public function setStringType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\PBString::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Int64 + * + * Generated from protobuf field .google.bigtable.v2.Type.Int64 int64_type = 5; + * @return \Google\Cloud\Bigtable\V2\Type\Int64|null + */ + public function getInt64Type() + { + return $this->readOneof(5); + } + + public function hasInt64Type() + { + return $this->hasOneof(5); + } + + /** + * Int64 + * + * Generated from protobuf field .google.bigtable.v2.Type.Int64 int64_type = 5; + * @param \Google\Cloud\Bigtable\V2\Type\Int64 $var + * @return $this + */ + public function setInt64Type($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Int64::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Float32 + * + * Generated from protobuf field .google.bigtable.v2.Type.Float32 float32_type = 12; + * @return \Google\Cloud\Bigtable\V2\Type\Float32|null + */ + public function getFloat32Type() + { + return $this->readOneof(12); + } + + public function hasFloat32Type() + { + return $this->hasOneof(12); + } + + /** + * Float32 + * + * Generated from protobuf field .google.bigtable.v2.Type.Float32 float32_type = 12; + * @param \Google\Cloud\Bigtable\V2\Type\Float32 $var + * @return $this + */ + public function setFloat32Type($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Float32::class); + $this->writeOneof(12, $var); + + return $this; + } + + /** + * Float64 + * + * Generated from protobuf field .google.bigtable.v2.Type.Float64 float64_type = 9; + * @return \Google\Cloud\Bigtable\V2\Type\Float64|null + */ + public function getFloat64Type() + { + return $this->readOneof(9); + } + + public function hasFloat64Type() + { + return $this->hasOneof(9); + } + + /** + * Float64 + * + * Generated from protobuf field .google.bigtable.v2.Type.Float64 float64_type = 9; + * @param \Google\Cloud\Bigtable\V2\Type\Float64 $var + * @return $this + */ + public function setFloat64Type($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Float64::class); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * Bool + * + * Generated from protobuf field .google.bigtable.v2.Type.Bool bool_type = 8; + * @return \Google\Cloud\Bigtable\V2\Type\PBBool|null + */ + public function getBoolType() + { + return $this->readOneof(8); + } + + public function hasBoolType() + { + return $this->hasOneof(8); + } + + /** + * Bool + * + * Generated from protobuf field .google.bigtable.v2.Type.Bool bool_type = 8; + * @param \Google\Cloud\Bigtable\V2\Type\PBBool $var + * @return $this + */ + public function setBoolType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\PBBool::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * Timestamp + * + * Generated from protobuf field .google.bigtable.v2.Type.Timestamp timestamp_type = 10; + * @return \Google\Cloud\Bigtable\V2\Type\Timestamp|null + */ + public function getTimestampType() + { + return $this->readOneof(10); + } + + public function hasTimestampType() + { + return $this->hasOneof(10); + } + + /** + * Timestamp + * + * Generated from protobuf field .google.bigtable.v2.Type.Timestamp timestamp_type = 10; + * @param \Google\Cloud\Bigtable\V2\Type\Timestamp $var + * @return $this + */ + public function setTimestampType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Timestamp::class); + $this->writeOneof(10, $var); + + return $this; + } + + /** + * Date + * + * Generated from protobuf field .google.bigtable.v2.Type.Date date_type = 11; + * @return \Google\Cloud\Bigtable\V2\Type\Date|null + */ + public function getDateType() + { + return $this->readOneof(11); + } + + public function hasDateType() + { + return $this->hasOneof(11); + } + + /** + * Date + * + * Generated from protobuf field .google.bigtable.v2.Type.Date date_type = 11; + * @param \Google\Cloud\Bigtable\V2\Type\Date $var + * @return $this + */ + public function setDateType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Date::class); + $this->writeOneof(11, $var); + + return $this; + } + + /** + * Aggregate + * + * Generated from protobuf field .google.bigtable.v2.Type.Aggregate aggregate_type = 6; + * @return \Google\Cloud\Bigtable\V2\Type\Aggregate|null + */ + public function getAggregateType() + { + return $this->readOneof(6); + } + + public function hasAggregateType() + { + return $this->hasOneof(6); + } + + /** + * Aggregate + * + * Generated from protobuf field .google.bigtable.v2.Type.Aggregate aggregate_type = 6; + * @param \Google\Cloud\Bigtable\V2\Type\Aggregate $var + * @return $this + */ + public function setAggregateType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Aggregate::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Struct + * + * Generated from protobuf field .google.bigtable.v2.Type.Struct struct_type = 7; + * @return \Google\Cloud\Bigtable\V2\Type\Struct|null + */ + public function getStructType() + { + return $this->readOneof(7); + } + + public function hasStructType() + { + return $this->hasOneof(7); + } + + /** + * Struct + * + * Generated from protobuf field .google.bigtable.v2.Type.Struct struct_type = 7; + * @param \Google\Cloud\Bigtable\V2\Type\Struct $var + * @return $this + */ + public function setStructType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Struct::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * Array + * + * Generated from protobuf field .google.bigtable.v2.Type.Array array_type = 3; + * @return \Google\Cloud\Bigtable\V2\Type\PBArray|null + */ + public function getArrayType() + { + return $this->readOneof(3); + } + + public function hasArrayType() + { + return $this->hasOneof(3); + } + + /** + * Array + * + * Generated from protobuf field .google.bigtable.v2.Type.Array array_type = 3; + * @param \Google\Cloud\Bigtable\V2\Type\PBArray $var + * @return $this + */ + public function setArrayType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\PBArray::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Map + * + * Generated from protobuf field .google.bigtable.v2.Type.Map map_type = 4; + * @return \Google\Cloud\Bigtable\V2\Type\Map|null + */ + public function getMapType() + { + return $this->readOneof(4); + } + + public function hasMapType() + { + return $this->hasOneof(4); + } + + /** + * Map + * + * Generated from protobuf field .google.bigtable.v2.Type.Map map_type = 4; + * @param \Google\Cloud\Bigtable\V2\Type\Map $var + * @return $this + */ + public function setMapType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Map::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Proto + * + * Generated from protobuf field .google.bigtable.v2.Type.Proto proto_type = 13; + * @return \Google\Cloud\Bigtable\V2\Type\Proto|null + */ + public function getProtoType() + { + return $this->readOneof(13); + } + + public function hasProtoType() + { + return $this->hasOneof(13); + } + + /** + * Proto + * + * Generated from protobuf field .google.bigtable.v2.Type.Proto proto_type = 13; + * @param \Google\Cloud\Bigtable\V2\Type\Proto $var + * @return $this + */ + public function setProtoType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Proto::class); + $this->writeOneof(13, $var); + + return $this; + } + + /** + * Enum + * + * Generated from protobuf field .google.bigtable.v2.Type.Enum enum_type = 14; + * @return \Google\Cloud\Bigtable\V2\Type\Enum|null + */ + public function getEnumType() + { + return $this->readOneof(14); + } + + public function hasEnumType() + { + return $this->hasOneof(14); + } + + /** + * Enum + * + * Generated from protobuf field .google.bigtable.v2.Type.Enum enum_type = 14; + * @param \Google\Cloud\Bigtable\V2\Type\Enum $var + * @return $this + */ + public function setEnumType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Enum::class); + $this->writeOneof(14, $var); + + return $this; + } + + /** + * @return string + */ + public function getKind() + { + return $this->whichOneof("kind"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate.php new file mode 100644 index 000000000000..bb7fbcf9abf5 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate.php @@ -0,0 +1,277 @@ +google.bigtable.v2.Type.Aggregate + */ +class Aggregate extends \Google\Protobuf\Internal\Message +{ + /** + * Type of the inputs that are accumulated by this `Aggregate`. + * Use `AddInput` mutations to accumulate new inputs. + * + * Generated from protobuf field .google.bigtable.v2.Type input_type = 1; + */ + protected $input_type = null; + /** + * Output only. Type that holds the internal accumulator state for the + * `Aggregate`. This is a function of the `input_type` and `aggregator` + * chosen. + * + * Generated from protobuf field .google.bigtable.v2.Type state_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state_type = null; + protected $aggregator; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\Type $input_type + * Type of the inputs that are accumulated by this `Aggregate`. + * Use `AddInput` mutations to accumulate new inputs. + * @type \Google\Cloud\Bigtable\V2\Type $state_type + * Output only. Type that holds the internal accumulator state for the + * `Aggregate`. This is a function of the `input_type` and `aggregator` + * chosen. + * @type \Google\Cloud\Bigtable\V2\Type\Aggregate\Sum $sum + * Sum aggregator. + * @type \Google\Cloud\Bigtable\V2\Type\Aggregate\HyperLogLogPlusPlusUniqueCount $hllpp_unique_count + * HyperLogLogPlusPlusUniqueCount aggregator. + * @type \Google\Cloud\Bigtable\V2\Type\Aggregate\Max $max + * Max aggregator. + * @type \Google\Cloud\Bigtable\V2\Type\Aggregate\Min $min + * Min aggregator. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * Type of the inputs that are accumulated by this `Aggregate`. + * Use `AddInput` mutations to accumulate new inputs. + * + * Generated from protobuf field .google.bigtable.v2.Type input_type = 1; + * @return \Google\Cloud\Bigtable\V2\Type|null + */ + public function getInputType() + { + return $this->input_type; + } + + public function hasInputType() + { + return isset($this->input_type); + } + + public function clearInputType() + { + unset($this->input_type); + } + + /** + * Type of the inputs that are accumulated by this `Aggregate`. + * Use `AddInput` mutations to accumulate new inputs. + * + * Generated from protobuf field .google.bigtable.v2.Type input_type = 1; + * @param \Google\Cloud\Bigtable\V2\Type $var + * @return $this + */ + public function setInputType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type::class); + $this->input_type = $var; + + return $this; + } + + /** + * Output only. Type that holds the internal accumulator state for the + * `Aggregate`. This is a function of the `input_type` and `aggregator` + * chosen. + * + * Generated from protobuf field .google.bigtable.v2.Type state_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Bigtable\V2\Type|null + */ + public function getStateType() + { + return $this->state_type; + } + + public function hasStateType() + { + return isset($this->state_type); + } + + public function clearStateType() + { + unset($this->state_type); + } + + /** + * Output only. Type that holds the internal accumulator state for the + * `Aggregate`. This is a function of the `input_type` and `aggregator` + * chosen. + * + * Generated from protobuf field .google.bigtable.v2.Type state_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Bigtable\V2\Type $var + * @return $this + */ + public function setStateType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type::class); + $this->state_type = $var; + + return $this; + } + + /** + * Sum aggregator. + * + * Generated from protobuf field .google.bigtable.v2.Type.Aggregate.Sum sum = 4; + * @return \Google\Cloud\Bigtable\V2\Type\Aggregate\Sum|null + */ + public function getSum() + { + return $this->readOneof(4); + } + + public function hasSum() + { + return $this->hasOneof(4); + } + + /** + * Sum aggregator. + * + * Generated from protobuf field .google.bigtable.v2.Type.Aggregate.Sum sum = 4; + * @param \Google\Cloud\Bigtable\V2\Type\Aggregate\Sum $var + * @return $this + */ + public function setSum($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Aggregate\Sum::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * HyperLogLogPlusPlusUniqueCount aggregator. + * + * Generated from protobuf field .google.bigtable.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount hllpp_unique_count = 5; + * @return \Google\Cloud\Bigtable\V2\Type\Aggregate\HyperLogLogPlusPlusUniqueCount|null + */ + public function getHllppUniqueCount() + { + return $this->readOneof(5); + } + + public function hasHllppUniqueCount() + { + return $this->hasOneof(5); + } + + /** + * HyperLogLogPlusPlusUniqueCount aggregator. + * + * Generated from protobuf field .google.bigtable.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount hllpp_unique_count = 5; + * @param \Google\Cloud\Bigtable\V2\Type\Aggregate\HyperLogLogPlusPlusUniqueCount $var + * @return $this + */ + public function setHllppUniqueCount($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Aggregate\HyperLogLogPlusPlusUniqueCount::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Max aggregator. + * + * Generated from protobuf field .google.bigtable.v2.Type.Aggregate.Max max = 6; + * @return \Google\Cloud\Bigtable\V2\Type\Aggregate\Max|null + */ + public function getMax() + { + return $this->readOneof(6); + } + + public function hasMax() + { + return $this->hasOneof(6); + } + + /** + * Max aggregator. + * + * Generated from protobuf field .google.bigtable.v2.Type.Aggregate.Max max = 6; + * @param \Google\Cloud\Bigtable\V2\Type\Aggregate\Max $var + * @return $this + */ + public function setMax($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Aggregate\Max::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Min aggregator. + * + * Generated from protobuf field .google.bigtable.v2.Type.Aggregate.Min min = 7; + * @return \Google\Cloud\Bigtable\V2\Type\Aggregate\Min|null + */ + public function getMin() + { + return $this->readOneof(7); + } + + public function hasMin() + { + return $this->hasOneof(7); + } + + /** + * Min aggregator. + * + * Generated from protobuf field .google.bigtable.v2.Type.Aggregate.Min min = 7; + * @param \Google\Cloud\Bigtable\V2\Type\Aggregate\Min $var + * @return $this + */ + public function setMin($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Aggregate\Min::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * @return string + */ + public function getAggregator() + { + return $this->whichOneof("aggregator"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate/HyperLogLogPlusPlusUniqueCount.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate/HyperLogLogPlusPlusUniqueCount.php new file mode 100644 index 000000000000..aaff34217e4b --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate/HyperLogLogPlusPlusUniqueCount.php @@ -0,0 +1,39 @@ +google.bigtable.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount + */ +class HyperLogLogPlusPlusUniqueCount extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate/Max.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate/Max.php new file mode 100644 index 000000000000..f5a95ba6be6f --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate/Max.php @@ -0,0 +1,35 @@ +google.bigtable.v2.Type.Aggregate.Max + */ +class Max extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate/Min.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate/Min.php new file mode 100644 index 000000000000..0e29f67740b0 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate/Min.php @@ -0,0 +1,35 @@ +google.bigtable.v2.Type.Aggregate.Min + */ +class Min extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate/Sum.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate/Sum.php new file mode 100644 index 000000000000..da948f5ca5ef --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate/Sum.php @@ -0,0 +1,35 @@ +google.bigtable.v2.Type.Aggregate.Sum + */ +class Sum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Bytes.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Bytes.php new file mode 100644 index 000000000000..ff0ee34a558d --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Bytes.php @@ -0,0 +1,78 @@ +google.bigtable.v2.Type.Bytes + */ +class Bytes extends \Google\Protobuf\Internal\Message +{ + /** + * The encoding to use when converting to or from lower level types. + * + * Generated from protobuf field .google.bigtable.v2.Type.Bytes.Encoding encoding = 1; + */ + protected $encoding = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\Type\Bytes\Encoding $encoding + * The encoding to use when converting to or from lower level types. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * The encoding to use when converting to or from lower level types. + * + * Generated from protobuf field .google.bigtable.v2.Type.Bytes.Encoding encoding = 1; + * @return \Google\Cloud\Bigtable\V2\Type\Bytes\Encoding|null + */ + public function getEncoding() + { + return $this->encoding; + } + + public function hasEncoding() + { + return isset($this->encoding); + } + + public function clearEncoding() + { + unset($this->encoding); + } + + /** + * The encoding to use when converting to or from lower level types. + * + * Generated from protobuf field .google.bigtable.v2.Type.Bytes.Encoding encoding = 1; + * @param \Google\Cloud\Bigtable\V2\Type\Bytes\Encoding $var + * @return $this + */ + public function setEncoding($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Bytes\Encoding::class); + $this->encoding = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Bytes/Encoding.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Bytes/Encoding.php new file mode 100644 index 000000000000..7678a4016f7d --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Bytes/Encoding.php @@ -0,0 +1,75 @@ +google.bigtable.v2.Type.Bytes.Encoding + */ +class Encoding extends \Google\Protobuf\Internal\Message +{ + protected $encoding; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\Type\Bytes\Encoding\Raw $raw + * Use `Raw` encoding. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * Use `Raw` encoding. + * + * Generated from protobuf field .google.bigtable.v2.Type.Bytes.Encoding.Raw raw = 1; + * @return \Google\Cloud\Bigtable\V2\Type\Bytes\Encoding\Raw|null + */ + public function getRaw() + { + return $this->readOneof(1); + } + + public function hasRaw() + { + return $this->hasOneof(1); + } + + /** + * Use `Raw` encoding. + * + * Generated from protobuf field .google.bigtable.v2.Type.Bytes.Encoding.Raw raw = 1; + * @param \Google\Cloud\Bigtable\V2\Type\Bytes\Encoding\Raw $var + * @return $this + */ + public function setRaw($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Bytes\Encoding\Raw::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getEncoding() + { + return $this->whichOneof("encoding"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Bytes/Encoding/Raw.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Bytes/Encoding/Raw.php new file mode 100644 index 000000000000..3fca5b77eac6 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Bytes/Encoding/Raw.php @@ -0,0 +1,77 @@ +google.bigtable.v2.Type.Bytes.Encoding.Raw + */ +class Raw extends \Google\Protobuf\Internal\Message +{ + /** + * If set, allows NULL values to be encoded as the empty string "". + * The actual empty string, or any value which only contains the + * null byte `0x00`, has one more null byte appended. + * + * Generated from protobuf field bool escape_nulls = 1; + */ + protected $escape_nulls = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $escape_nulls + * If set, allows NULL values to be encoded as the empty string "". + * The actual empty string, or any value which only contains the + * null byte `0x00`, has one more null byte appended. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * If set, allows NULL values to be encoded as the empty string "". + * The actual empty string, or any value which only contains the + * null byte `0x00`, has one more null byte appended. + * + * Generated from protobuf field bool escape_nulls = 1; + * @return bool + */ + public function getEscapeNulls() + { + return $this->escape_nulls; + } + + /** + * If set, allows NULL values to be encoded as the empty string "". + * The actual empty string, or any value which only contains the + * null byte `0x00`, has one more null byte appended. + * + * Generated from protobuf field bool escape_nulls = 1; + * @param bool $var + * @return $this + */ + public function setEscapeNulls($var) + { + GPBUtil::checkBool($var); + $this->escape_nulls = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Date.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Date.php new file mode 100644 index 000000000000..77d15d9afd8a --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Date.php @@ -0,0 +1,34 @@ +google.bigtable.v2.Type.Date + */ +class Date extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Enum.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Enum.php new file mode 100644 index 000000000000..836e2d25dea9 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Enum.php @@ -0,0 +1,106 @@ +google.bigtable.v2.Type.Enum + */ +class Enum extends \Google\Protobuf\Internal\Message +{ + /** + * The ID of the schema bundle that this enum is defined in. + * + * Generated from protobuf field string schema_bundle_id = 1; + */ + protected $schema_bundle_id = ''; + /** + * The fully qualified name of the protobuf enum message, including package. + * In the format of "foo.bar.EnumMessage". + * + * Generated from protobuf field string enum_name = 2; + */ + protected $enum_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $schema_bundle_id + * The ID of the schema bundle that this enum is defined in. + * @type string $enum_name + * The fully qualified name of the protobuf enum message, including package. + * In the format of "foo.bar.EnumMessage". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * The ID of the schema bundle that this enum is defined in. + * + * Generated from protobuf field string schema_bundle_id = 1; + * @return string + */ + public function getSchemaBundleId() + { + return $this->schema_bundle_id; + } + + /** + * The ID of the schema bundle that this enum is defined in. + * + * Generated from protobuf field string schema_bundle_id = 1; + * @param string $var + * @return $this + */ + public function setSchemaBundleId($var) + { + GPBUtil::checkString($var, True); + $this->schema_bundle_id = $var; + + return $this; + } + + /** + * The fully qualified name of the protobuf enum message, including package. + * In the format of "foo.bar.EnumMessage". + * + * Generated from protobuf field string enum_name = 2; + * @return string + */ + public function getEnumName() + { + return $this->enum_name; + } + + /** + * The fully qualified name of the protobuf enum message, including package. + * In the format of "foo.bar.EnumMessage". + * + * Generated from protobuf field string enum_name = 2; + * @param string $var + * @return $this + */ + public function setEnumName($var) + { + GPBUtil::checkString($var, True); + $this->enum_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Float32.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Float32.php new file mode 100644 index 000000000000..89b481f884c2 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Float32.php @@ -0,0 +1,34 @@ +google.bigtable.v2.Type.Float32 + */ +class Float32 extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Float64.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Float64.php new file mode 100644 index 000000000000..6407fc30e3e8 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Float64.php @@ -0,0 +1,34 @@ +google.bigtable.v2.Type.Float64 + */ +class Float64 extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Int64.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Int64.php new file mode 100644 index 000000000000..b98eae059dd8 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Int64.php @@ -0,0 +1,78 @@ +google.bigtable.v2.Type.Int64 + */ +class Int64 extends \Google\Protobuf\Internal\Message +{ + /** + * The encoding to use when converting to or from lower level types. + * + * Generated from protobuf field .google.bigtable.v2.Type.Int64.Encoding encoding = 1; + */ + protected $encoding = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\Type\Int64\Encoding $encoding + * The encoding to use when converting to or from lower level types. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * The encoding to use when converting to or from lower level types. + * + * Generated from protobuf field .google.bigtable.v2.Type.Int64.Encoding encoding = 1; + * @return \Google\Cloud\Bigtable\V2\Type\Int64\Encoding|null + */ + public function getEncoding() + { + return $this->encoding; + } + + public function hasEncoding() + { + return isset($this->encoding); + } + + public function clearEncoding() + { + unset($this->encoding); + } + + /** + * The encoding to use when converting to or from lower level types. + * + * Generated from protobuf field .google.bigtable.v2.Type.Int64.Encoding encoding = 1; + * @param \Google\Cloud\Bigtable\V2\Type\Int64\Encoding $var + * @return $this + */ + public function setEncoding($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Int64\Encoding::class); + $this->encoding = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Int64/Encoding.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Int64/Encoding.php new file mode 100644 index 000000000000..cc46e5216faf --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Int64/Encoding.php @@ -0,0 +1,108 @@ +google.bigtable.v2.Type.Int64.Encoding + */ +class Encoding extends \Google\Protobuf\Internal\Message +{ + protected $encoding; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\Type\Int64\Encoding\BigEndianBytes $big_endian_bytes + * Use `BigEndianBytes` encoding. + * @type \Google\Cloud\Bigtable\V2\Type\Int64\Encoding\OrderedCodeBytes $ordered_code_bytes + * Use `OrderedCodeBytes` encoding. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * Use `BigEndianBytes` encoding. + * + * Generated from protobuf field .google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes big_endian_bytes = 1; + * @return \Google\Cloud\Bigtable\V2\Type\Int64\Encoding\BigEndianBytes|null + */ + public function getBigEndianBytes() + { + return $this->readOneof(1); + } + + public function hasBigEndianBytes() + { + return $this->hasOneof(1); + } + + /** + * Use `BigEndianBytes` encoding. + * + * Generated from protobuf field .google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes big_endian_bytes = 1; + * @param \Google\Cloud\Bigtable\V2\Type\Int64\Encoding\BigEndianBytes $var + * @return $this + */ + public function setBigEndianBytes($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Int64\Encoding\BigEndianBytes::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Use `OrderedCodeBytes` encoding. + * + * Generated from protobuf field .google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes ordered_code_bytes = 2; + * @return \Google\Cloud\Bigtable\V2\Type\Int64\Encoding\OrderedCodeBytes|null + */ + public function getOrderedCodeBytes() + { + return $this->readOneof(2); + } + + public function hasOrderedCodeBytes() + { + return $this->hasOneof(2); + } + + /** + * Use `OrderedCodeBytes` encoding. + * + * Generated from protobuf field .google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes ordered_code_bytes = 2; + * @param \Google\Cloud\Bigtable\V2\Type\Int64\Encoding\OrderedCodeBytes $var + * @return $this + */ + public function setOrderedCodeBytes($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Int64\Encoding\OrderedCodeBytes::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getEncoding() + { + return $this->whichOneof("encoding"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Int64/Encoding/BigEndianBytes.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Int64/Encoding/BigEndianBytes.php new file mode 100644 index 000000000000..ea09145311c7 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Int64/Encoding/BigEndianBytes.php @@ -0,0 +1,94 @@ +google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes + */ +class BigEndianBytes extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated: ignored if set. + * + * Generated from protobuf field .google.bigtable.v2.Type.Bytes bytes_type = 1 [deprecated = true]; + * @deprecated + */ + protected $bytes_type = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\Type\Bytes $bytes_type + * Deprecated: ignored if set. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated: ignored if set. + * + * Generated from protobuf field .google.bigtable.v2.Type.Bytes bytes_type = 1 [deprecated = true]; + * @return \Google\Cloud\Bigtable\V2\Type\Bytes|null + * @deprecated + */ + public function getBytesType() + { + if (isset($this->bytes_type)) { + @trigger_error('bytes_type is deprecated.', E_USER_DEPRECATED); + } + return $this->bytes_type; + } + + public function hasBytesType() + { + if (isset($this->bytes_type)) { + @trigger_error('bytes_type is deprecated.', E_USER_DEPRECATED); + } + return isset($this->bytes_type); + } + + public function clearBytesType() + { + @trigger_error('bytes_type is deprecated.', E_USER_DEPRECATED); + unset($this->bytes_type); + } + + /** + * Deprecated: ignored if set. + * + * Generated from protobuf field .google.bigtable.v2.Type.Bytes bytes_type = 1 [deprecated = true]; + * @param \Google\Cloud\Bigtable\V2\Type\Bytes $var + * @return $this + * @deprecated + */ + public function setBytesType($var) + { + @trigger_error('bytes_type is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Bytes::class); + $this->bytes_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Int64/Encoding/OrderedCodeBytes.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Int64/Encoding/OrderedCodeBytes.php new file mode 100644 index 000000000000..883d75b7ced4 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Int64/Encoding/OrderedCodeBytes.php @@ -0,0 +1,36 @@ +google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes + */ +class OrderedCodeBytes extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Map.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Map.php new file mode 100644 index 000000000000..4ce046163ff3 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Map.php @@ -0,0 +1,131 @@ +google.bigtable.v2.Type.Map + */ +class Map extends \Google\Protobuf\Internal\Message +{ + /** + * The type of a map key. + * Only `Bytes`, `String`, and `Int64` are allowed as key types. + * + * Generated from protobuf field .google.bigtable.v2.Type key_type = 1; + */ + protected $key_type = null; + /** + * The type of the values in a map. + * + * Generated from protobuf field .google.bigtable.v2.Type value_type = 2; + */ + protected $value_type = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\Type $key_type + * The type of a map key. + * Only `Bytes`, `String`, and `Int64` are allowed as key types. + * @type \Google\Cloud\Bigtable\V2\Type $value_type + * The type of the values in a map. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * The type of a map key. + * Only `Bytes`, `String`, and `Int64` are allowed as key types. + * + * Generated from protobuf field .google.bigtable.v2.Type key_type = 1; + * @return \Google\Cloud\Bigtable\V2\Type|null + */ + public function getKeyType() + { + return $this->key_type; + } + + public function hasKeyType() + { + return isset($this->key_type); + } + + public function clearKeyType() + { + unset($this->key_type); + } + + /** + * The type of a map key. + * Only `Bytes`, `String`, and `Int64` are allowed as key types. + * + * Generated from protobuf field .google.bigtable.v2.Type key_type = 1; + * @param \Google\Cloud\Bigtable\V2\Type $var + * @return $this + */ + public function setKeyType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type::class); + $this->key_type = $var; + + return $this; + } + + /** + * The type of the values in a map. + * + * Generated from protobuf field .google.bigtable.v2.Type value_type = 2; + * @return \Google\Cloud\Bigtable\V2\Type|null + */ + public function getValueType() + { + return $this->value_type; + } + + public function hasValueType() + { + return isset($this->value_type); + } + + public function clearValueType() + { + unset($this->value_type); + } + + /** + * The type of the values in a map. + * + * Generated from protobuf field .google.bigtable.v2.Type value_type = 2; + * @param \Google\Cloud\Bigtable\V2\Type $var + * @return $this + */ + public function setValueType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type::class); + $this->value_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBArray.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBArray.php new file mode 100644 index 000000000000..81dd868fe574 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBArray.php @@ -0,0 +1,78 @@ +google.bigtable.v2.Type.Array + */ +class PBArray extends \Google\Protobuf\Internal\Message +{ + /** + * The type of the elements in the array. This must not be `Array`. + * + * Generated from protobuf field .google.bigtable.v2.Type element_type = 1; + */ + protected $element_type = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\Type $element_type + * The type of the elements in the array. This must not be `Array`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * The type of the elements in the array. This must not be `Array`. + * + * Generated from protobuf field .google.bigtable.v2.Type element_type = 1; + * @return \Google\Cloud\Bigtable\V2\Type|null + */ + public function getElementType() + { + return $this->element_type; + } + + public function hasElementType() + { + return isset($this->element_type); + } + + public function clearElementType() + { + unset($this->element_type); + } + + /** + * The type of the elements in the array. This must not be `Array`. + * + * Generated from protobuf field .google.bigtable.v2.Type element_type = 1; + * @param \Google\Cloud\Bigtable\V2\Type $var + * @return $this + */ + public function setElementType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type::class); + $this->element_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBBool.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBBool.php new file mode 100644 index 000000000000..cd89d0e61987 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBBool.php @@ -0,0 +1,34 @@ +google.bigtable.v2.Type.Bool + */ +class PBBool extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBString.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBString.php new file mode 100644 index 000000000000..cd57897fb756 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBString.php @@ -0,0 +1,78 @@ +google.bigtable.v2.Type.String + */ +class PBString extends \Google\Protobuf\Internal\Message +{ + /** + * The encoding to use when converting to or from lower level types. + * + * Generated from protobuf field .google.bigtable.v2.Type.String.Encoding encoding = 1; + */ + protected $encoding = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\Type\PBString\Encoding $encoding + * The encoding to use when converting to or from lower level types. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * The encoding to use when converting to or from lower level types. + * + * Generated from protobuf field .google.bigtable.v2.Type.String.Encoding encoding = 1; + * @return \Google\Cloud\Bigtable\V2\Type\PBString\Encoding|null + */ + public function getEncoding() + { + return $this->encoding; + } + + public function hasEncoding() + { + return isset($this->encoding); + } + + public function clearEncoding() + { + unset($this->encoding); + } + + /** + * The encoding to use when converting to or from lower level types. + * + * Generated from protobuf field .google.bigtable.v2.Type.String.Encoding encoding = 1; + * @param \Google\Cloud\Bigtable\V2\Type\PBString\Encoding $var + * @return $this + */ + public function setEncoding($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\PBString\Encoding::class); + $this->encoding = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBString/Encoding.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBString/Encoding.php new file mode 100644 index 000000000000..e2d39c02eafc --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBString/Encoding.php @@ -0,0 +1,117 @@ +google.bigtable.v2.Type.String.Encoding + */ +class Encoding extends \Google\Protobuf\Internal\Message +{ + protected $encoding; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\Type\PBString\Encoding\Utf8Raw $utf8_raw + * Deprecated: if set, converts to an empty `utf8_bytes`. + * @type \Google\Cloud\Bigtable\V2\Type\PBString\Encoding\Utf8Bytes $utf8_bytes + * Use `Utf8Bytes` encoding. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated: if set, converts to an empty `utf8_bytes`. + * + * Generated from protobuf field .google.bigtable.v2.Type.String.Encoding.Utf8Raw utf8_raw = 1 [deprecated = true]; + * @return \Google\Cloud\Bigtable\V2\Type\PBString\Encoding\Utf8Raw|null + * @deprecated + */ + public function getUtf8Raw() + { + if ($this->hasOneof(1)) { + @trigger_error('utf8_raw is deprecated.', E_USER_DEPRECATED); + } + return $this->readOneof(1); + } + + public function hasUtf8Raw() + { + if ($this->hasOneof(1)) { + @trigger_error('utf8_raw is deprecated.', E_USER_DEPRECATED); + } + return $this->hasOneof(1); + } + + /** + * Deprecated: if set, converts to an empty `utf8_bytes`. + * + * Generated from protobuf field .google.bigtable.v2.Type.String.Encoding.Utf8Raw utf8_raw = 1 [deprecated = true]; + * @param \Google\Cloud\Bigtable\V2\Type\PBString\Encoding\Utf8Raw $var + * @return $this + * @deprecated + */ + public function setUtf8Raw($var) + { + @trigger_error('utf8_raw is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\PBString\Encoding\Utf8Raw::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Use `Utf8Bytes` encoding. + * + * Generated from protobuf field .google.bigtable.v2.Type.String.Encoding.Utf8Bytes utf8_bytes = 2; + * @return \Google\Cloud\Bigtable\V2\Type\PBString\Encoding\Utf8Bytes|null + */ + public function getUtf8Bytes() + { + return $this->readOneof(2); + } + + public function hasUtf8Bytes() + { + return $this->hasOneof(2); + } + + /** + * Use `Utf8Bytes` encoding. + * + * Generated from protobuf field .google.bigtable.v2.Type.String.Encoding.Utf8Bytes utf8_bytes = 2; + * @param \Google\Cloud\Bigtable\V2\Type\PBString\Encoding\Utf8Bytes $var + * @return $this + */ + public function setUtf8Bytes($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\PBString\Encoding\Utf8Bytes::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getEncoding() + { + return $this->whichOneof("encoding"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBString/Encoding/Utf8Bytes.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBString/Encoding/Utf8Bytes.php new file mode 100644 index 000000000000..aacdc881792e --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBString/Encoding/Utf8Bytes.php @@ -0,0 +1,99 @@ +google.bigtable.v2.Type.String.Encoding.Utf8Bytes + */ +class Utf8Bytes extends \Google\Protobuf\Internal\Message +{ + /** + * Single-character escape sequence used to support NULL values. + * If set, allows NULL values to be encoded as the empty string "". + * The actual empty string, or any value where every character equals + * `null_escape_char`, has one more `null_escape_char` appended. + * If `null_escape_char` is set and does not equal the ASCII null + * character `0x00`, then the encoding will not support sorted mode. + * . + * + * Generated from protobuf field string null_escape_char = 1; + */ + protected $null_escape_char = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $null_escape_char + * Single-character escape sequence used to support NULL values. + * If set, allows NULL values to be encoded as the empty string "". + * The actual empty string, or any value where every character equals + * `null_escape_char`, has one more `null_escape_char` appended. + * If `null_escape_char` is set and does not equal the ASCII null + * character `0x00`, then the encoding will not support sorted mode. + * . + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * Single-character escape sequence used to support NULL values. + * If set, allows NULL values to be encoded as the empty string "". + * The actual empty string, or any value where every character equals + * `null_escape_char`, has one more `null_escape_char` appended. + * If `null_escape_char` is set and does not equal the ASCII null + * character `0x00`, then the encoding will not support sorted mode. + * . + * + * Generated from protobuf field string null_escape_char = 1; + * @return string + */ + public function getNullEscapeChar() + { + return $this->null_escape_char; + } + + /** + * Single-character escape sequence used to support NULL values. + * If set, allows NULL values to be encoded as the empty string "". + * The actual empty string, or any value where every character equals + * `null_escape_char`, has one more `null_escape_char` appended. + * If `null_escape_char` is set and does not equal the ASCII null + * character `0x00`, then the encoding will not support sorted mode. + * . + * + * Generated from protobuf field string null_escape_char = 1; + * @param string $var + * @return $this + */ + public function setNullEscapeChar($var) + { + GPBUtil::checkString($var, True); + $this->null_escape_char = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBString/Encoding/Utf8Raw.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBString/Encoding/Utf8Raw.php new file mode 100644 index 000000000000..727aeed07210 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBString/Encoding/Utf8Raw.php @@ -0,0 +1,34 @@ +google.bigtable.v2.Type.String.Encoding.Utf8Raw + */ +class Utf8Raw extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Proto.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Proto.php new file mode 100644 index 000000000000..b216efdc72fb --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Proto.php @@ -0,0 +1,106 @@ +google.bigtable.v2.Type.Proto + */ +class Proto extends \Google\Protobuf\Internal\Message +{ + /** + * The ID of the schema bundle that this proto is defined in. + * + * Generated from protobuf field string schema_bundle_id = 1; + */ + protected $schema_bundle_id = ''; + /** + * The fully qualified name of the protobuf message, including package. In + * the format of "foo.bar.Message". + * + * Generated from protobuf field string message_name = 2; + */ + protected $message_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $schema_bundle_id + * The ID of the schema bundle that this proto is defined in. + * @type string $message_name + * The fully qualified name of the protobuf message, including package. In + * the format of "foo.bar.Message". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * The ID of the schema bundle that this proto is defined in. + * + * Generated from protobuf field string schema_bundle_id = 1; + * @return string + */ + public function getSchemaBundleId() + { + return $this->schema_bundle_id; + } + + /** + * The ID of the schema bundle that this proto is defined in. + * + * Generated from protobuf field string schema_bundle_id = 1; + * @param string $var + * @return $this + */ + public function setSchemaBundleId($var) + { + GPBUtil::checkString($var, True); + $this->schema_bundle_id = $var; + + return $this; + } + + /** + * The fully qualified name of the protobuf message, including package. In + * the format of "foo.bar.Message". + * + * Generated from protobuf field string message_name = 2; + * @return string + */ + public function getMessageName() + { + return $this->message_name; + } + + /** + * The fully qualified name of the protobuf message, including package. In + * the format of "foo.bar.Message". + * + * Generated from protobuf field string message_name = 2; + * @param string $var + * @return $this + */ + public function setMessageName($var) + { + GPBUtil::checkString($var, True); + $this->message_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct.php new file mode 100644 index 000000000000..35bd81647102 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct.php @@ -0,0 +1,114 @@ +google.bigtable.v2.Type.Struct + */ +class Struct extends \Google\Protobuf\Internal\Message +{ + /** + * The names and types of the fields in this struct. + * + * Generated from protobuf field repeated .google.bigtable.v2.Type.Struct.Field fields = 1; + */ + private $fields; + /** + * The encoding to use when converting to or from lower level types. + * + * Generated from protobuf field .google.bigtable.v2.Type.Struct.Encoding encoding = 2; + */ + protected $encoding = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\Type\Struct\Field[] $fields + * The names and types of the fields in this struct. + * @type \Google\Cloud\Bigtable\V2\Type\Struct\Encoding $encoding + * The encoding to use when converting to or from lower level types. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * The names and types of the fields in this struct. + * + * Generated from protobuf field repeated .google.bigtable.v2.Type.Struct.Field fields = 1; + * @return RepeatedField<\Google\Cloud\Bigtable\V2\Type\Struct\Field> + */ + public function getFields() + { + return $this->fields; + } + + /** + * The names and types of the fields in this struct. + * + * Generated from protobuf field repeated .google.bigtable.v2.Type.Struct.Field fields = 1; + * @param \Google\Cloud\Bigtable\V2\Type\Struct\Field[] $var + * @return $this + */ + public function setFields($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\Type\Struct\Field::class); + $this->fields = $arr; + + return $this; + } + + /** + * The encoding to use when converting to or from lower level types. + * + * Generated from protobuf field .google.bigtable.v2.Type.Struct.Encoding encoding = 2; + * @return \Google\Cloud\Bigtable\V2\Type\Struct\Encoding|null + */ + public function getEncoding() + { + return $this->encoding; + } + + public function hasEncoding() + { + return isset($this->encoding); + } + + public function clearEncoding() + { + unset($this->encoding); + } + + /** + * The encoding to use when converting to or from lower level types. + * + * Generated from protobuf field .google.bigtable.v2.Type.Struct.Encoding encoding = 2; + * @param \Google\Cloud\Bigtable\V2\Type\Struct\Encoding $var + * @return $this + */ + public function setEncoding($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Struct\Encoding::class); + $this->encoding = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Encoding.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Encoding.php new file mode 100644 index 000000000000..a66b52335d34 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Encoding.php @@ -0,0 +1,141 @@ +google.bigtable.v2.Type.Struct.Encoding + */ +class Encoding extends \Google\Protobuf\Internal\Message +{ + protected $encoding; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\Type\Struct\Encoding\Singleton $singleton + * Use `Singleton` encoding. + * @type \Google\Cloud\Bigtable\V2\Type\Struct\Encoding\DelimitedBytes $delimited_bytes + * Use `DelimitedBytes` encoding. + * @type \Google\Cloud\Bigtable\V2\Type\Struct\Encoding\OrderedCodeBytes $ordered_code_bytes + * User `OrderedCodeBytes` encoding. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * Use `Singleton` encoding. + * + * Generated from protobuf field .google.bigtable.v2.Type.Struct.Encoding.Singleton singleton = 1; + * @return \Google\Cloud\Bigtable\V2\Type\Struct\Encoding\Singleton|null + */ + public function getSingleton() + { + return $this->readOneof(1); + } + + public function hasSingleton() + { + return $this->hasOneof(1); + } + + /** + * Use `Singleton` encoding. + * + * Generated from protobuf field .google.bigtable.v2.Type.Struct.Encoding.Singleton singleton = 1; + * @param \Google\Cloud\Bigtable\V2\Type\Struct\Encoding\Singleton $var + * @return $this + */ + public function setSingleton($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Struct\Encoding\Singleton::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Use `DelimitedBytes` encoding. + * + * Generated from protobuf field .google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes delimited_bytes = 2; + * @return \Google\Cloud\Bigtable\V2\Type\Struct\Encoding\DelimitedBytes|null + */ + public function getDelimitedBytes() + { + return $this->readOneof(2); + } + + public function hasDelimitedBytes() + { + return $this->hasOneof(2); + } + + /** + * Use `DelimitedBytes` encoding. + * + * Generated from protobuf field .google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes delimited_bytes = 2; + * @param \Google\Cloud\Bigtable\V2\Type\Struct\Encoding\DelimitedBytes $var + * @return $this + */ + public function setDelimitedBytes($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Struct\Encoding\DelimitedBytes::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * User `OrderedCodeBytes` encoding. + * + * Generated from protobuf field .google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes ordered_code_bytes = 3; + * @return \Google\Cloud\Bigtable\V2\Type\Struct\Encoding\OrderedCodeBytes|null + */ + public function getOrderedCodeBytes() + { + return $this->readOneof(3); + } + + public function hasOrderedCodeBytes() + { + return $this->hasOneof(3); + } + + /** + * User `OrderedCodeBytes` encoding. + * + * Generated from protobuf field .google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes ordered_code_bytes = 3; + * @param \Google\Cloud\Bigtable\V2\Type\Struct\Encoding\OrderedCodeBytes $var + * @return $this + */ + public function setOrderedCodeBytes($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Struct\Encoding\OrderedCodeBytes::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getEncoding() + { + return $this->whichOneof("encoding"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Encoding/DelimitedBytes.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Encoding/DelimitedBytes.php new file mode 100644 index 000000000000..1f3a52002493 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Encoding/DelimitedBytes.php @@ -0,0 +1,81 @@ +google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes + */ +class DelimitedBytes extends \Google\Protobuf\Internal\Message +{ + /** + * Byte sequence used to delimit concatenated fields. The delimiter must + * contain at least 1 character and at most 50 characters. + * + * Generated from protobuf field bytes delimiter = 1; + */ + protected $delimiter = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $delimiter + * Byte sequence used to delimit concatenated fields. The delimiter must + * contain at least 1 character and at most 50 characters. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * Byte sequence used to delimit concatenated fields. The delimiter must + * contain at least 1 character and at most 50 characters. + * + * Generated from protobuf field bytes delimiter = 1; + * @return string + */ + public function getDelimiter() + { + return $this->delimiter; + } + + /** + * Byte sequence used to delimit concatenated fields. The delimiter must + * contain at least 1 character and at most 50 characters. + * + * Generated from protobuf field bytes delimiter = 1; + * @param string $var + * @return $this + */ + public function setDelimiter($var) + { + GPBUtil::checkString($var, False); + $this->delimiter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Encoding/OrderedCodeBytes.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Encoding/OrderedCodeBytes.php new file mode 100644 index 000000000000..b657ca6de19a --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Encoding/OrderedCodeBytes.php @@ -0,0 +1,64 @@ + "\00\00" + * - STRUCT("") -> "\00\00" + * - STRUCT("", "") -> "\00\00" + * - STRUCT("", "B") -> "\00\00" + "\00\01" + "B" + * - STRUCT("A", "") -> "A" + * - STRUCT("", "B", "") -> "\00\00" + "\00\01" + "B" + * - STRUCT("A", "", "C") -> "A" + "\00\01" + "\00\00" + "\00\01" + "C" + * ``` + * Since null bytes are always escaped, this encoding can cause size + * blowup for encodings like `Int64.BigEndianBytes` that are likely to + * produce many such bytes. + * Sorted mode: + * - Fields are encoded in sorted mode. + * - All values supported by the field encodings are allowed + * - Element-wise order is preserved: `A < B` if `A[0] < B[0]`, or if + * `A[0] == B[0] && A[1] < B[1]`, etc. Strict prefixes sort first. + * Distinct mode: + * - Fields are encoded in distinct mode. + * - All values supported by the field encodings are allowed. + * + * Generated from protobuf message google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes + */ +class OrderedCodeBytes extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Encoding/Singleton.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Encoding/Singleton.php new file mode 100644 index 000000000000..100680827198 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Encoding/Singleton.php @@ -0,0 +1,34 @@ +google.bigtable.v2.Type.Struct.Encoding.Singleton + */ +class Singleton extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Field.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Field.php new file mode 100644 index 000000000000..25a419649209 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Field.php @@ -0,0 +1,115 @@ +google.bigtable.v2.Type.Struct.Field + */ +class Field extends \Google\Protobuf\Internal\Message +{ + /** + * The field name (optional). Fields without a `field_name` are considered + * anonymous and cannot be referenced by name. + * + * Generated from protobuf field string field_name = 1; + */ + protected $field_name = ''; + /** + * The type of values in this field. + * + * Generated from protobuf field .google.bigtable.v2.Type type = 2; + */ + protected $type = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $field_name + * The field name (optional). Fields without a `field_name` are considered + * anonymous and cannot be referenced by name. + * @type \Google\Cloud\Bigtable\V2\Type $type + * The type of values in this field. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * The field name (optional). Fields without a `field_name` are considered + * anonymous and cannot be referenced by name. + * + * Generated from protobuf field string field_name = 1; + * @return string + */ + public function getFieldName() + { + return $this->field_name; + } + + /** + * The field name (optional). Fields without a `field_name` are considered + * anonymous and cannot be referenced by name. + * + * Generated from protobuf field string field_name = 1; + * @param string $var + * @return $this + */ + public function setFieldName($var) + { + GPBUtil::checkString($var, True); + $this->field_name = $var; + + return $this; + } + + /** + * The type of values in this field. + * + * Generated from protobuf field .google.bigtable.v2.Type type = 2; + * @return \Google\Cloud\Bigtable\V2\Type|null + */ + public function getType() + { + return $this->type; + } + + public function hasType() + { + return isset($this->type); + } + + public function clearType() + { + unset($this->type); + } + + /** + * The type of values in this field. + * + * Generated from protobuf field .google.bigtable.v2.Type type = 2; + * @param \Google\Cloud\Bigtable\V2\Type $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type::class); + $this->type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Timestamp.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Timestamp.php new file mode 100644 index 000000000000..ce09b95c510c --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Timestamp.php @@ -0,0 +1,78 @@ +google.bigtable.v2.Type.Timestamp + */ +class Timestamp extends \Google\Protobuf\Internal\Message +{ + /** + * The encoding to use when converting to or from lower level types. + * + * Generated from protobuf field .google.bigtable.v2.Type.Timestamp.Encoding encoding = 1; + */ + protected $encoding = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\Type\Timestamp\Encoding $encoding + * The encoding to use when converting to or from lower level types. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * The encoding to use when converting to or from lower level types. + * + * Generated from protobuf field .google.bigtable.v2.Type.Timestamp.Encoding encoding = 1; + * @return \Google\Cloud\Bigtable\V2\Type\Timestamp\Encoding|null + */ + public function getEncoding() + { + return $this->encoding; + } + + public function hasEncoding() + { + return isset($this->encoding); + } + + public function clearEncoding() + { + unset($this->encoding); + } + + /** + * The encoding to use when converting to or from lower level types. + * + * Generated from protobuf field .google.bigtable.v2.Type.Timestamp.Encoding encoding = 1; + * @param \Google\Cloud\Bigtable\V2\Type\Timestamp\Encoding $var + * @return $this + */ + public function setEncoding($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Timestamp\Encoding::class); + $this->encoding = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Timestamp/Encoding.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Timestamp/Encoding.php new file mode 100644 index 000000000000..38a5f31ef910 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Timestamp/Encoding.php @@ -0,0 +1,84 @@ +google.bigtable.v2.Type.Timestamp.Encoding + */ +class Encoding extends \Google\Protobuf\Internal\Message +{ + protected $encoding; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\Type\Int64\Encoding $unix_micros_int64 + * Encodes the number of microseconds since the Unix epoch using the + * given `Int64` encoding. Values must be microsecond-aligned. + * Compatible with: + * - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); + parent::__construct($data); + } + + /** + * Encodes the number of microseconds since the Unix epoch using the + * given `Int64` encoding. Values must be microsecond-aligned. + * Compatible with: + * - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS` + * + * Generated from protobuf field .google.bigtable.v2.Type.Int64.Encoding unix_micros_int64 = 1; + * @return \Google\Cloud\Bigtable\V2\Type\Int64\Encoding|null + */ + public function getUnixMicrosInt64() + { + return $this->readOneof(1); + } + + public function hasUnixMicrosInt64() + { + return $this->hasOneof(1); + } + + /** + * Encodes the number of microseconds since the Unix epoch using the + * given `Int64` encoding. Values must be microsecond-aligned. + * Compatible with: + * - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS` + * + * Generated from protobuf field .google.bigtable.v2.Type.Int64.Encoding unix_micros_int64 = 1; + * @param \Google\Cloud\Bigtable\V2\Type\Int64\Encoding $var + * @return $this + */ + public function setUnixMicrosInt64($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Int64\Encoding::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getEncoding() + { + return $this->whichOneof("encoding"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Value.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Value.php new file mode 100644 index 000000000000..449cdd374254 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Value.php @@ -0,0 +1,480 @@ +google.bigtable.v2.Value + */ +class Value extends \Google\Protobuf\Internal\Message +{ + /** + * The verified `Type` of this `Value`, if it cannot be inferred. + * Read results will never specify the encoding for `type` since the value + * will already have been decoded by the server. Furthermore, the `type` will + * be omitted entirely if it can be inferred from a previous response. The + * exact semantics for inferring `type` will vary, and are therefore + * documented separately for each read method. + * When using composite types (Struct, Array, Map) only the outermost `Value` + * will specify the `type`. This top-level `type` will define the types for + * any nested `Struct' fields, `Array` elements, or `Map` key/value pairs. + * If a nested `Value` provides a `type` on write, the request will be + * rejected with INVALID_ARGUMENT. + * + * Generated from protobuf field .google.bigtable.v2.Type type = 7; + */ + protected $type = null; + protected $kind; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Bigtable\V2\Type $type + * The verified `Type` of this `Value`, if it cannot be inferred. + * Read results will never specify the encoding for `type` since the value + * will already have been decoded by the server. Furthermore, the `type` will + * be omitted entirely if it can be inferred from a previous response. The + * exact semantics for inferring `type` will vary, and are therefore + * documented separately for each read method. + * When using composite types (Struct, Array, Map) only the outermost `Value` + * will specify the `type`. This top-level `type` will define the types for + * any nested `Struct' fields, `Array` elements, or `Map` key/value pairs. + * If a nested `Value` provides a `type` on write, the request will be + * rejected with INVALID_ARGUMENT. + * @type string $raw_value + * Represents a raw byte sequence with no type information. + * The `type` field must be omitted. + * @type int|string $raw_timestamp_micros + * Represents a raw cell timestamp with no type information. + * The `type` field must be omitted. + * @type string $bytes_value + * Represents a typed value transported as a byte sequence. + * @type string $string_value + * Represents a typed value transported as a string. + * @type int|string $int_value + * Represents a typed value transported as an integer. + * @type bool $bool_value + * Represents a typed value transported as a boolean. + * @type float $float_value + * Represents a typed value transported as a floating point number. + * Does not support NaN or infinities. + * @type \Google\Protobuf\Timestamp $timestamp_value + * Represents a typed value transported as a timestamp. + * @type \Google\Type\Date $date_value + * Represents a typed value transported as a date. + * @type \Google\Cloud\Bigtable\V2\ArrayValue $array_value + * Represents a typed value transported as a sequence of values. + * To differentiate between `Struct`, `Array`, and `Map`, the outermost + * `Value` must provide an explicit `type` on write. This `type` will + * apply recursively to the nested `Struct` fields, `Array` elements, + * or `Map` key/value pairs, which *must not* supply their own `type`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); + parent::__construct($data); + } + + /** + * The verified `Type` of this `Value`, if it cannot be inferred. + * Read results will never specify the encoding for `type` since the value + * will already have been decoded by the server. Furthermore, the `type` will + * be omitted entirely if it can be inferred from a previous response. The + * exact semantics for inferring `type` will vary, and are therefore + * documented separately for each read method. + * When using composite types (Struct, Array, Map) only the outermost `Value` + * will specify the `type`. This top-level `type` will define the types for + * any nested `Struct' fields, `Array` elements, or `Map` key/value pairs. + * If a nested `Value` provides a `type` on write, the request will be + * rejected with INVALID_ARGUMENT. + * + * Generated from protobuf field .google.bigtable.v2.Type type = 7; + * @return \Google\Cloud\Bigtable\V2\Type|null + */ + public function getType() + { + return $this->type; + } + + public function hasType() + { + return isset($this->type); + } + + public function clearType() + { + unset($this->type); + } + + /** + * The verified `Type` of this `Value`, if it cannot be inferred. + * Read results will never specify the encoding for `type` since the value + * will already have been decoded by the server. Furthermore, the `type` will + * be omitted entirely if it can be inferred from a previous response. The + * exact semantics for inferring `type` will vary, and are therefore + * documented separately for each read method. + * When using composite types (Struct, Array, Map) only the outermost `Value` + * will specify the `type`. This top-level `type` will define the types for + * any nested `Struct' fields, `Array` elements, or `Map` key/value pairs. + * If a nested `Value` provides a `type` on write, the request will be + * rejected with INVALID_ARGUMENT. + * + * Generated from protobuf field .google.bigtable.v2.Type type = 7; + * @param \Google\Cloud\Bigtable\V2\Type $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type::class); + $this->type = $var; + + return $this; + } + + /** + * Represents a raw byte sequence with no type information. + * The `type` field must be omitted. + * + * Generated from protobuf field bytes raw_value = 8; + * @return string + */ + public function getRawValue() + { + return $this->readOneof(8); + } + + public function hasRawValue() + { + return $this->hasOneof(8); + } + + /** + * Represents a raw byte sequence with no type information. + * The `type` field must be omitted. + * + * Generated from protobuf field bytes raw_value = 8; + * @param string $var + * @return $this + */ + public function setRawValue($var) + { + GPBUtil::checkString($var, False); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * Represents a raw cell timestamp with no type information. + * The `type` field must be omitted. + * + * Generated from protobuf field int64 raw_timestamp_micros = 9; + * @return int|string + */ + public function getRawTimestampMicros() + { + return $this->readOneof(9); + } + + public function hasRawTimestampMicros() + { + return $this->hasOneof(9); + } + + /** + * Represents a raw cell timestamp with no type information. + * The `type` field must be omitted. + * + * Generated from protobuf field int64 raw_timestamp_micros = 9; + * @param int|string $var + * @return $this + */ + public function setRawTimestampMicros($var) + { + GPBUtil::checkInt64($var); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * Represents a typed value transported as a byte sequence. + * + * Generated from protobuf field bytes bytes_value = 2; + * @return string + */ + public function getBytesValue() + { + return $this->readOneof(2); + } + + public function hasBytesValue() + { + return $this->hasOneof(2); + } + + /** + * Represents a typed value transported as a byte sequence. + * + * Generated from protobuf field bytes bytes_value = 2; + * @param string $var + * @return $this + */ + public function setBytesValue($var) + { + GPBUtil::checkString($var, False); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Represents a typed value transported as a string. + * + * Generated from protobuf field string string_value = 3; + * @return string + */ + public function getStringValue() + { + return $this->readOneof(3); + } + + public function hasStringValue() + { + return $this->hasOneof(3); + } + + /** + * Represents a typed value transported as a string. + * + * Generated from protobuf field string string_value = 3; + * @param string $var + * @return $this + */ + public function setStringValue($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Represents a typed value transported as an integer. + * + * Generated from protobuf field int64 int_value = 6; + * @return int|string + */ + public function getIntValue() + { + return $this->readOneof(6); + } + + public function hasIntValue() + { + return $this->hasOneof(6); + } + + /** + * Represents a typed value transported as an integer. + * + * Generated from protobuf field int64 int_value = 6; + * @param int|string $var + * @return $this + */ + public function setIntValue($var) + { + GPBUtil::checkInt64($var); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Represents a typed value transported as a boolean. + * + * Generated from protobuf field bool bool_value = 10; + * @return bool + */ + public function getBoolValue() + { + return $this->readOneof(10); + } + + public function hasBoolValue() + { + return $this->hasOneof(10); + } + + /** + * Represents a typed value transported as a boolean. + * + * Generated from protobuf field bool bool_value = 10; + * @param bool $var + * @return $this + */ + public function setBoolValue($var) + { + GPBUtil::checkBool($var); + $this->writeOneof(10, $var); + + return $this; + } + + /** + * Represents a typed value transported as a floating point number. + * Does not support NaN or infinities. + * + * Generated from protobuf field double float_value = 11; + * @return float + */ + public function getFloatValue() + { + return $this->readOneof(11); + } + + public function hasFloatValue() + { + return $this->hasOneof(11); + } + + /** + * Represents a typed value transported as a floating point number. + * Does not support NaN or infinities. + * + * Generated from protobuf field double float_value = 11; + * @param float $var + * @return $this + */ + public function setFloatValue($var) + { + GPBUtil::checkDouble($var); + $this->writeOneof(11, $var); + + return $this; + } + + /** + * Represents a typed value transported as a timestamp. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp_value = 12; + * @return \Google\Protobuf\Timestamp|null + */ + public function getTimestampValue() + { + return $this->readOneof(12); + } + + public function hasTimestampValue() + { + return $this->hasOneof(12); + } + + /** + * Represents a typed value transported as a timestamp. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp_value = 12; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setTimestampValue($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->writeOneof(12, $var); + + return $this; + } + + /** + * Represents a typed value transported as a date. + * + * Generated from protobuf field .google.type.Date date_value = 13; + * @return \Google\Type\Date|null + */ + public function getDateValue() + { + return $this->readOneof(13); + } + + public function hasDateValue() + { + return $this->hasOneof(13); + } + + /** + * Represents a typed value transported as a date. + * + * Generated from protobuf field .google.type.Date date_value = 13; + * @param \Google\Type\Date $var + * @return $this + */ + public function setDateValue($var) + { + GPBUtil::checkMessage($var, \Google\Type\Date::class); + $this->writeOneof(13, $var); + + return $this; + } + + /** + * Represents a typed value transported as a sequence of values. + * To differentiate between `Struct`, `Array`, and `Map`, the outermost + * `Value` must provide an explicit `type` on write. This `type` will + * apply recursively to the nested `Struct` fields, `Array` elements, + * or `Map` key/value pairs, which *must not* supply their own `type`. + * + * Generated from protobuf field .google.bigtable.v2.ArrayValue array_value = 4; + * @return \Google\Cloud\Bigtable\V2\ArrayValue|null + */ + public function getArrayValue() + { + return $this->readOneof(4); + } + + public function hasArrayValue() + { + return $this->hasOneof(4); + } + + /** + * Represents a typed value transported as a sequence of values. + * To differentiate between `Struct`, `Array`, and `Map`, the outermost + * `Value` must provide an explicit `type` on write. This `type` will + * apply recursively to the nested `Struct` fields, `Array` elements, + * or `Map` key/value pairs, which *must not* supply their own `type`. + * + * Generated from protobuf field .google.bigtable.v2.ArrayValue array_value = 4; + * @param \Google\Cloud\Bigtable\V2\ArrayValue $var + * @return $this + */ + public function setArrayValue($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\ArrayValue::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * @return string + */ + public function getKind() + { + return $this->whichOneof("kind"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ValueRange.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ValueRange.php new file mode 100644 index 000000000000..dca9e83e65e0 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ValueRange.php @@ -0,0 +1,183 @@ +google.bigtable.v2.ValueRange + */ +class ValueRange extends \Google\Protobuf\Internal\Message +{ + protected $start_value; + protected $end_value; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $start_value_closed + * Used when giving an inclusive lower bound for the range. + * @type string $start_value_open + * Used when giving an exclusive lower bound for the range. + * @type string $end_value_closed + * Used when giving an inclusive upper bound for the range. + * @type string $end_value_open + * Used when giving an exclusive upper bound for the range. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); + parent::__construct($data); + } + + /** + * Used when giving an inclusive lower bound for the range. + * + * Generated from protobuf field bytes start_value_closed = 1; + * @return string + */ + public function getStartValueClosed() + { + return $this->readOneof(1); + } + + public function hasStartValueClosed() + { + return $this->hasOneof(1); + } + + /** + * Used when giving an inclusive lower bound for the range. + * + * Generated from protobuf field bytes start_value_closed = 1; + * @param string $var + * @return $this + */ + public function setStartValueClosed($var) + { + GPBUtil::checkString($var, False); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Used when giving an exclusive lower bound for the range. + * + * Generated from protobuf field bytes start_value_open = 2; + * @return string + */ + public function getStartValueOpen() + { + return $this->readOneof(2); + } + + public function hasStartValueOpen() + { + return $this->hasOneof(2); + } + + /** + * Used when giving an exclusive lower bound for the range. + * + * Generated from protobuf field bytes start_value_open = 2; + * @param string $var + * @return $this + */ + public function setStartValueOpen($var) + { + GPBUtil::checkString($var, False); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Used when giving an inclusive upper bound for the range. + * + * Generated from protobuf field bytes end_value_closed = 3; + * @return string + */ + public function getEndValueClosed() + { + return $this->readOneof(3); + } + + public function hasEndValueClosed() + { + return $this->hasOneof(3); + } + + /** + * Used when giving an inclusive upper bound for the range. + * + * Generated from protobuf field bytes end_value_closed = 3; + * @param string $var + * @return $this + */ + public function setEndValueClosed($var) + { + GPBUtil::checkString($var, False); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Used when giving an exclusive upper bound for the range. + * + * Generated from protobuf field bytes end_value_open = 4; + * @return string + */ + public function getEndValueOpen() + { + return $this->readOneof(4); + } + + public function hasEndValueOpen() + { + return $this->hasOneof(4); + } + + /** + * Used when giving an exclusive upper bound for the range. + * + * Generated from protobuf field bytes end_value_open = 4; + * @param string $var + * @return $this + */ + public function setEndValueOpen($var) + { + GPBUtil::checkString($var, False); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * @return string + */ + public function getStartValue() + { + return $this->whichOneof("start_value"); + } + + /** + * @return string + */ + public function getEndValue() + { + return $this->whichOneof("end_value"); + } + +} + diff --git a/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/check_and_mutate_row.php b/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/check_and_mutate_row.php new file mode 100644 index 000000000000..91402b863a46 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/check_and_mutate_row.php @@ -0,0 +1,79 @@ +/instances//tables/
`. Please see + * {@see BigtableClient::tableName()} for help formatting this field. + * @param string $rowKey The key of the row to which the conditional mutation should be + * applied. + */ +function check_and_mutate_row_sample(string $formattedTableName, string $rowKey): void +{ + // Create a client. + $bigtableClient = new BigtableClient(); + + // Prepare the request message. + $request = (new CheckAndMutateRowRequest()) + ->setTableName($formattedTableName) + ->setRowKey($rowKey); + + // Call the API and handle any network failures. + try { + /** @var CheckAndMutateRowResponse $response */ + $response = $bigtableClient->checkAndMutateRow($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 +{ + $formattedTableName = BigtableClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $rowKey = '...'; + + check_and_mutate_row_sample($formattedTableName, $rowKey); +} +// [END bigtable_v2_generated_Bigtable_CheckAndMutateRow_sync] diff --git a/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/execute_query.php b/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/execute_query.php new file mode 100644 index 000000000000..5b2d09e2a1b0 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/execute_query.php @@ -0,0 +1,86 @@ +/instances/` + * Please see {@see BigtableClient::instanceName()} for help formatting this field. + * @param string $query The query string. + * + * Exactly one of `query` and `prepared_query` is required. Setting both + * or neither is an `INVALID_ARGUMENT`. + */ +function execute_query_sample(string $formattedInstanceName, string $query): void +{ + // Create a client. + $bigtableClient = new BigtableClient(); + + // Prepare the request message. + $params = []; + $request = (new ExecuteQueryRequest()) + ->setInstanceName($formattedInstanceName) + ->setQuery($query) + ->setParams($params); + + // Call the API and handle any network failures. + try { + /** @var ServerStream $stream */ + $stream = $bigtableClient->executeQuery($request); + + /** @var ExecuteQueryResponse $element */ + foreach ($stream->readAll() 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 +{ + $formattedInstanceName = BigtableClient::instanceName('[PROJECT]', '[INSTANCE]'); + $query = '[QUERY]'; + + execute_query_sample($formattedInstanceName, $query); +} +// [END bigtable_v2_generated_Bigtable_ExecuteQuery_sync] diff --git a/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/generate_initial_change_stream_partitions.php b/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/generate_initial_change_stream_partitions.php new file mode 100644 index 000000000000..b73db6dbd5d0 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/generate_initial_change_stream_partitions.php @@ -0,0 +1,82 @@ +/instances//tables/
`. + * Change streaming must be enabled on the table. Please see + * {@see BigtableClient::tableName()} for help formatting this field. + */ +function generate_initial_change_stream_partitions_sample(string $formattedTableName): void +{ + // Create a client. + $bigtableClient = new BigtableClient(); + + // Prepare the request message. + $request = (new GenerateInitialChangeStreamPartitionsRequest()) + ->setTableName($formattedTableName); + + // Call the API and handle any network failures. + try { + /** @var ServerStream $stream */ + $stream = $bigtableClient->generateInitialChangeStreamPartitions($request); + + /** @var GenerateInitialChangeStreamPartitionsResponse $element */ + foreach ($stream->readAll() 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 +{ + $formattedTableName = BigtableClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + + generate_initial_change_stream_partitions_sample($formattedTableName); +} +// [END bigtable_v2_generated_Bigtable_GenerateInitialChangeStreamPartitions_sync] diff --git a/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/mutate_row.php b/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/mutate_row.php new file mode 100644 index 000000000000..9e9505c3e567 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/mutate_row.php @@ -0,0 +1,82 @@ +/instances//tables/
`. Please see + * {@see BigtableClient::tableName()} for help formatting this field. + * @param string $rowKey The key of the row to which the mutation should be applied. + */ +function mutate_row_sample(string $formattedTableName, string $rowKey): void +{ + // Create a client. + $bigtableClient = new BigtableClient(); + + // Prepare the request message. + $mutations = [new Mutation()]; + $request = (new MutateRowRequest()) + ->setTableName($formattedTableName) + ->setRowKey($rowKey) + ->setMutations($mutations); + + // Call the API and handle any network failures. + try { + /** @var MutateRowResponse $response */ + $response = $bigtableClient->mutateRow($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 +{ + $formattedTableName = BigtableClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $rowKey = '...'; + + mutate_row_sample($formattedTableName, $rowKey); +} +// [END bigtable_v2_generated_Bigtable_MutateRow_sync] diff --git a/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/mutate_rows.php b/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/mutate_rows.php new file mode 100644 index 000000000000..047e5fbd3ac1 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/mutate_rows.php @@ -0,0 +1,89 @@ +/instances//tables/
`. Please see + * {@see BigtableClient::tableName()} for help formatting this field. + */ +function mutate_rows_sample(string $formattedTableName): void +{ + // Create a client. + $bigtableClient = new BigtableClient(); + + // Prepare the request message. + $entriesMutations = [new Mutation()]; + $entry = (new Entry()) + ->setMutations($entriesMutations); + $entries = [$entry,]; + $request = (new MutateRowsRequest()) + ->setTableName($formattedTableName) + ->setEntries($entries); + + // Call the API and handle any network failures. + try { + /** @var ServerStream $stream */ + $stream = $bigtableClient->mutateRows($request); + + /** @var MutateRowsResponse $element */ + foreach ($stream->readAll() 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 +{ + $formattedTableName = BigtableClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + + mutate_rows_sample($formattedTableName); +} +// [END bigtable_v2_generated_Bigtable_MutateRows_sync] diff --git a/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/ping_and_warm.php b/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/ping_and_warm.php new file mode 100644 index 000000000000..99f96865ed07 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/ping_and_warm.php @@ -0,0 +1,74 @@ +/instances/`. Please see + * {@see BigtableClient::instanceName()} for help formatting this field. + */ +function ping_and_warm_sample(string $formattedName): void +{ + // Create a client. + $bigtableClient = new BigtableClient(); + + // Prepare the request message. + $request = (new PingAndWarmRequest()) + ->setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var PingAndWarmResponse $response */ + $response = $bigtableClient->pingAndWarm($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = BigtableClient::instanceName('[PROJECT]', '[INSTANCE]'); + + ping_and_warm_sample($formattedName); +} +// [END bigtable_v2_generated_Bigtable_PingAndWarm_sync] diff --git a/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/prepare_query.php b/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/prepare_query.php new file mode 100644 index 000000000000..c65fc10bf9a8 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/prepare_query.php @@ -0,0 +1,78 @@ +/instances/` + * Please see {@see BigtableClient::instanceName()} for help formatting this field. + * @param string $query The query string. + */ +function prepare_query_sample(string $formattedInstanceName, string $query): void +{ + // Create a client. + $bigtableClient = new BigtableClient(); + + // Prepare the request message. + $paramTypes = []; + $request = (new PrepareQueryRequest()) + ->setInstanceName($formattedInstanceName) + ->setQuery($query) + ->setParamTypes($paramTypes); + + // Call the API and handle any network failures. + try { + /** @var PrepareQueryResponse $response */ + $response = $bigtableClient->prepareQuery($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 +{ + $formattedInstanceName = BigtableClient::instanceName('[PROJECT]', '[INSTANCE]'); + $query = '[QUERY]'; + + prepare_query_sample($formattedInstanceName, $query); +} +// [END bigtable_v2_generated_Bigtable_PrepareQuery_sync] diff --git a/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/read_change_stream.php b/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/read_change_stream.php new file mode 100644 index 000000000000..a26ab3819223 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/read_change_stream.php @@ -0,0 +1,82 @@ +/instances//tables/
`. + * Change streaming must be enabled on the table. Please see + * {@see BigtableClient::tableName()} for help formatting this field. + */ +function read_change_stream_sample(string $formattedTableName): void +{ + // Create a client. + $bigtableClient = new BigtableClient(); + + // Prepare the request message. + $request = (new ReadChangeStreamRequest()) + ->setTableName($formattedTableName); + + // Call the API and handle any network failures. + try { + /** @var ServerStream $stream */ + $stream = $bigtableClient->readChangeStream($request); + + /** @var ReadChangeStreamResponse $element */ + foreach ($stream->readAll() 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 +{ + $formattedTableName = BigtableClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + + read_change_stream_sample($formattedTableName); +} +// [END bigtable_v2_generated_Bigtable_ReadChangeStream_sync] diff --git a/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/read_modify_write_row.php b/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/read_modify_write_row.php new file mode 100644 index 000000000000..3062eb1d1d36 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/read_modify_write_row.php @@ -0,0 +1,86 @@ +/instances//tables/
`. Please see + * {@see BigtableClient::tableName()} for help formatting this field. + * @param string $rowKey The key of the row to which the read/modify/write rules should be + * applied. + */ +function read_modify_write_row_sample(string $formattedTableName, string $rowKey): void +{ + // Create a client. + $bigtableClient = new BigtableClient(); + + // Prepare the request message. + $rules = [new ReadModifyWriteRule()]; + $request = (new ReadModifyWriteRowRequest()) + ->setTableName($formattedTableName) + ->setRowKey($rowKey) + ->setRules($rules); + + // Call the API and handle any network failures. + try { + /** @var ReadModifyWriteRowResponse $response */ + $response = $bigtableClient->readModifyWriteRow($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 +{ + $formattedTableName = BigtableClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $rowKey = '...'; + + read_modify_write_row_sample($formattedTableName, $rowKey); +} +// [END bigtable_v2_generated_Bigtable_ReadModifyWriteRow_sync] diff --git a/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/read_rows.php b/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/read_rows.php new file mode 100644 index 000000000000..6735bf696e06 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/read_rows.php @@ -0,0 +1,83 @@ +/instances//tables/
`. Please see + * {@see BigtableClient::tableName()} for help formatting this field. + */ +function read_rows_sample(string $formattedTableName): void +{ + // Create a client. + $bigtableClient = new BigtableClient(); + + // Prepare the request message. + $request = (new ReadRowsRequest()) + ->setTableName($formattedTableName); + + // Call the API and handle any network failures. + try { + /** @var ServerStream $stream */ + $stream = $bigtableClient->readRows($request); + + /** @var ReadRowsResponse $element */ + foreach ($stream->readAll() 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 +{ + $formattedTableName = BigtableClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + + read_rows_sample($formattedTableName); +} +// [END bigtable_v2_generated_Bigtable_ReadRows_sync] diff --git a/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/sample_row_keys.php b/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/sample_row_keys.php new file mode 100644 index 000000000000..b967dfa48a90 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/sample_row_keys.php @@ -0,0 +1,82 @@ +/instances//tables/
`. Please see + * {@see BigtableClient::tableName()} for help formatting this field. + */ +function sample_row_keys_sample(string $formattedTableName): void +{ + // Create a client. + $bigtableClient = new BigtableClient(); + + // Prepare the request message. + $request = (new SampleRowKeysRequest()) + ->setTableName($formattedTableName); + + // Call the API and handle any network failures. + try { + /** @var ServerStream $stream */ + $stream = $bigtableClient->sampleRowKeys($request); + + /** @var SampleRowKeysResponse $element */ + foreach ($stream->readAll() 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 +{ + $formattedTableName = BigtableClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + + sample_row_keys_sample($formattedTableName); +} +// [END bigtable_v2_generated_Bigtable_SampleRowKeys_sync] diff --git a/owl-bot-staging/Bigtable/v2/src/V2/Client/BigtableClient.php b/owl-bot-staging/Bigtable/v2/src/V2/Client/BigtableClient.php new file mode 100644 index 000000000000..f7583d619c2f --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/src/V2/Client/BigtableClient.php @@ -0,0 +1,633 @@ + checkAndMutateRowAsync(CheckAndMutateRowRequest $request, array $optionalArgs = []) + * @method PromiseInterface mutateRowAsync(MutateRowRequest $request, array $optionalArgs = []) + * @method PromiseInterface pingAndWarmAsync(PingAndWarmRequest $request, array $optionalArgs = []) + * @method PromiseInterface prepareQueryAsync(PrepareQueryRequest $request, array $optionalArgs = []) + * @method PromiseInterface readModifyWriteRowAsync(ReadModifyWriteRowRequest $request, array $optionalArgs = []) + */ +final class BigtableClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.bigtable.v2.Bigtable'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'bigtable.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'bigtable.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/bigtable.data', + 'https://www.googleapis.com/auth/bigtable.data.readonly', + 'https://www.googleapis.com/auth/cloud-bigtable.data', + 'https://www.googleapis.com/auth/cloud-bigtable.data.readonly', + 'https://www.googleapis.com/auth/cloud-platform', + 'https://www.googleapis.com/auth/cloud-platform.read-only', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/bigtable_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/bigtable_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/bigtable_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/bigtable_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * authorized_view resource. + * + * @param string $project + * @param string $instance + * @param string $table + * @param string $authorizedView + * + * @return string The formatted authorized_view resource. + */ + public static function authorizedViewName(string $project, string $instance, string $table, string $authorizedView): string + { + return self::getPathTemplate('authorizedView')->render([ + 'project' => $project, + 'instance' => $instance, + 'table' => $table, + 'authorized_view' => $authorizedView, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a instance + * resource. + * + * @param string $project + * @param string $instance + * + * @return string The formatted instance resource. + */ + public static function instanceName(string $project, string $instance): string + { + return self::getPathTemplate('instance')->render([ + 'project' => $project, + 'instance' => $instance, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * materialized_view resource. + * + * @param string $project + * @param string $instance + * @param string $materializedView + * + * @return string The formatted materialized_view resource. + */ + public static function materializedViewName(string $project, string $instance, string $materializedView): string + { + return self::getPathTemplate('materializedView')->render([ + 'project' => $project, + 'instance' => $instance, + 'materialized_view' => $materializedView, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a table + * resource. + * + * @param string $project + * @param string $instance + * @param string $table + * + * @return string The formatted table resource. + */ + public static function tableName(string $project, string $instance, string $table): string + { + return self::getPathTemplate('table')->render([ + 'project' => $project, + 'instance' => $instance, + 'table' => $table, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - authorizedView: projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view} + * - instance: projects/{project}/instances/{instance} + * - materializedView: projects/{project}/instances/{instance}/materializedViews/{materialized_view} + * - table: projects/{project}/instances/{instance}/tables/{table} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * Setting the "BIGTABLE_EMULATOR_HOST" environment variable will automatically set + * the API Endpoint to the value specified in the variable, as well as ensure that + * empty credentials are used in the transport layer. + * + * @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 'bigtable.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\Bigtable\V2\BigtableClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new BigtableClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $options = $this->setDefaultEmulatorConfig($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); + } + + /** + * Mutates a row atomically based on the output of a predicate Reader filter. + * + * The async variant is {@see BigtableClient::checkAndMutateRowAsync()} . + * + * @example samples/V2/BigtableClient/check_and_mutate_row.php + * + * @param CheckAndMutateRowRequest $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 CheckAndMutateRowResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function checkAndMutateRow(CheckAndMutateRowRequest $request, array $callOptions = []): CheckAndMutateRowResponse + { + return $this->startApiCall('CheckAndMutateRow', $request, $callOptions)->wait(); + } + + /** + * Executes a SQL query against a particular Bigtable instance. + * + * @example samples/V2/BigtableClient/execute_query.php + * + * @param ExecuteQueryRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type int $timeoutMillis + * Timeout to use for this call. + * } + * + * @return ServerStream + * + * @throws ApiException Thrown if the API call fails. + */ + public function executeQuery(ExecuteQueryRequest $request, array $callOptions = []): ServerStream + { + return $this->startApiCall('ExecuteQuery', $request, $callOptions); + } + + /** + * Returns the current list of partitions that make up the table's + * change stream. The union of partitions will cover the entire keyspace. + * Partitions can be read with `ReadChangeStream`. + * NOTE: This API is only intended to be used by Apache Beam BigtableIO. + * + * @example samples/V2/BigtableClient/generate_initial_change_stream_partitions.php + * + * @param GenerateInitialChangeStreamPartitionsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type int $timeoutMillis + * Timeout to use for this call. + * } + * + * @return ServerStream + * + * @throws ApiException Thrown if the API call fails. + */ + public function generateInitialChangeStreamPartitions(GenerateInitialChangeStreamPartitionsRequest $request, array $callOptions = []): ServerStream + { + return $this->startApiCall('GenerateInitialChangeStreamPartitions', $request, $callOptions); + } + + /** + * Mutates a row atomically. Cells already present in the row are left + * unchanged unless explicitly changed by `mutation`. + * + * The async variant is {@see BigtableClient::mutateRowAsync()} . + * + * @example samples/V2/BigtableClient/mutate_row.php + * + * @param MutateRowRequest $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 MutateRowResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function mutateRow(MutateRowRequest $request, array $callOptions = []): MutateRowResponse + { + return $this->startApiCall('MutateRow', $request, $callOptions)->wait(); + } + + /** + * Mutates multiple rows in a batch. Each individual row is mutated + * atomically as in MutateRow, but the entire batch is not executed + * atomically. + * + * @example samples/V2/BigtableClient/mutate_rows.php + * + * @param MutateRowsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type int $timeoutMillis + * Timeout to use for this call. + * } + * + * @return ServerStream + * + * @throws ApiException Thrown if the API call fails. + */ + public function mutateRows(MutateRowsRequest $request, array $callOptions = []): ServerStream + { + return $this->startApiCall('MutateRows', $request, $callOptions); + } + + /** + * Warm up associated instance metadata for this connection. + * This call is not required but may be useful for connection keep-alive. + * + * The async variant is {@see BigtableClient::pingAndWarmAsync()} . + * + * @example samples/V2/BigtableClient/ping_and_warm.php + * + * @param PingAndWarmRequest $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 PingAndWarmResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function pingAndWarm(PingAndWarmRequest $request, array $callOptions = []): PingAndWarmResponse + { + return $this->startApiCall('PingAndWarm', $request, $callOptions)->wait(); + } + + /** + * Prepares a GoogleSQL query for execution on a particular Bigtable instance. + * + * The async variant is {@see BigtableClient::prepareQueryAsync()} . + * + * @example samples/V2/BigtableClient/prepare_query.php + * + * @param PrepareQueryRequest $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 PrepareQueryResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function prepareQuery(PrepareQueryRequest $request, array $callOptions = []): PrepareQueryResponse + { + return $this->startApiCall('PrepareQuery', $request, $callOptions)->wait(); + } + + /** + * Reads changes from a table's change stream. Changes will + * reflect both user-initiated mutations and mutations that are caused by + * garbage collection. + * NOTE: This API is only intended to be used by Apache Beam BigtableIO. + * + * @example samples/V2/BigtableClient/read_change_stream.php + * + * @param ReadChangeStreamRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type int $timeoutMillis + * Timeout to use for this call. + * } + * + * @return ServerStream + * + * @throws ApiException Thrown if the API call fails. + */ + public function readChangeStream(ReadChangeStreamRequest $request, array $callOptions = []): ServerStream + { + return $this->startApiCall('ReadChangeStream', $request, $callOptions); + } + + /** + * Modifies a row atomically on the server. The method reads the latest + * existing timestamp and value from the specified columns and writes a new + * entry based on pre-defined read/modify/write rules. The new value for the + * timestamp is the greater of the existing timestamp or the current server + * time. The method returns the new contents of all modified cells. + * + * The async variant is {@see BigtableClient::readModifyWriteRowAsync()} . + * + * @example samples/V2/BigtableClient/read_modify_write_row.php + * + * @param ReadModifyWriteRowRequest $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 ReadModifyWriteRowResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function readModifyWriteRow(ReadModifyWriteRowRequest $request, array $callOptions = []): ReadModifyWriteRowResponse + { + return $this->startApiCall('ReadModifyWriteRow', $request, $callOptions)->wait(); + } + + /** + * Streams back the contents of all requested rows in key order, optionally + * applying the same Reader filter to each. Depending on their size, + * rows and cells may be broken up across multiple responses, but + * atomicity of each row will still be preserved. See the + * ReadRowsResponse documentation for details. + * + * @example samples/V2/BigtableClient/read_rows.php + * + * @param ReadRowsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type int $timeoutMillis + * Timeout to use for this call. + * } + * + * @return ServerStream + * + * @throws ApiException Thrown if the API call fails. + */ + public function readRows(ReadRowsRequest $request, array $callOptions = []): ServerStream + { + return $this->startApiCall('ReadRows', $request, $callOptions); + } + + /** + * Returns a sample of row keys in the table. The returned row keys will + * delimit contiguous sections of the table of approximately equal size, + * which can be used to break up the data for distributed tasks like + * mapreduces. + * + * @example samples/V2/BigtableClient/sample_row_keys.php + * + * @param SampleRowKeysRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type int $timeoutMillis + * Timeout to use for this call. + * } + * + * @return ServerStream + * + * @throws ApiException Thrown if the API call fails. + */ + public function sampleRowKeys(SampleRowKeysRequest $request, array $callOptions = []): ServerStream + { + return $this->startApiCall('SampleRowKeys', $request, $callOptions); + } + + /** Configure the gapic configuration to use a service emulator. */ + private function setDefaultEmulatorConfig(array $options): array + { + $emulatorHost = getenv('BIGTABLE_EMULATOR_HOST'); + if (empty($emulatorHost)) { + return $options; + } + + if ($scheme = parse_url($emulatorHost, PHP_URL_SCHEME)) { + $search = $scheme . '://'; + $emulatorHost = str_replace($search, '', $emulatorHost); + } + + $options['apiEndpoint'] ??= $emulatorHost; + if (class_exists(ChannelCredentials::class)) { + $options['transportConfig']['grpc']['stubOpts']['credentials'] ??= ChannelCredentials::createInsecure(); + } + + $options['credentials'] ??= new InsecureCredentialsWrapper(); + return $options; + } +} diff --git a/owl-bot-staging/Bigtable/v2/src/V2/gapic_metadata.json b/owl-bot-staging/Bigtable/v2/src/V2/gapic_metadata.json new file mode 100644 index 000000000000..1662e78c12fe --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/src/V2/gapic_metadata.json @@ -0,0 +1,73 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "google.bigtable.v2", + "libraryPackage": "Google\\Cloud\\Bigtable\\V2", + "services": { + "Bigtable": { + "clients": { + "grpc": { + "libraryClient": "BigtableGapicClient", + "rpcs": { + "CheckAndMutateRow": { + "methods": [ + "checkAndMutateRow" + ] + }, + "ExecuteQuery": { + "methods": [ + "executeQuery" + ] + }, + "GenerateInitialChangeStreamPartitions": { + "methods": [ + "generateInitialChangeStreamPartitions" + ] + }, + "MutateRow": { + "methods": [ + "mutateRow" + ] + }, + "MutateRows": { + "methods": [ + "mutateRows" + ] + }, + "PingAndWarm": { + "methods": [ + "pingAndWarm" + ] + }, + "PrepareQuery": { + "methods": [ + "prepareQuery" + ] + }, + "ReadChangeStream": { + "methods": [ + "readChangeStream" + ] + }, + "ReadModifyWriteRow": { + "methods": [ + "readModifyWriteRow" + ] + }, + "ReadRows": { + "methods": [ + "readRows" + ] + }, + "SampleRowKeys": { + "methods": [ + "sampleRowKeys" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/Bigtable/v2/src/V2/resources/bigtable_client_config.json b/owl-bot-staging/Bigtable/v2/src/V2/resources/bigtable_client_config.json new file mode 100644 index 000000000000..b5947d56d5b4 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/src/V2/resources/bigtable_client_config.json @@ -0,0 +1,69 @@ +{ + "interfaces": { + "google.bigtable.v2.Bigtable": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "CheckAndMutateRow": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ExecuteQuery": { + "timeout_millis": 60000 + }, + "GenerateInitialChangeStreamPartitions": { + "timeout_millis": 60000 + }, + "MutateRow": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "MutateRows": { + "timeout_millis": 60000 + }, + "PingAndWarm": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "PrepareQuery": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ReadChangeStream": { + "timeout_millis": 60000 + }, + "ReadModifyWriteRow": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ReadRows": { + "timeout_millis": 60000 + }, + "SampleRowKeys": { + "timeout_millis": 60000 + } + } + } + } +} diff --git a/owl-bot-staging/Bigtable/v2/src/V2/resources/bigtable_descriptor_config.php b/owl-bot-staging/Bigtable/v2/src/V2/resources/bigtable_descriptor_config.php new file mode 100644 index 000000000000..2caec5a88f5e --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/src/V2/resources/bigtable_descriptor_config.php @@ -0,0 +1,289 @@ + [ + 'google.bigtable.v2.Bigtable' => [ + 'CheckAndMutateRow' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Bigtable\V2\CheckAndMutateRowResponse', + 'headerParams' => [ + [ + 'keyName' => 'table_name', + 'fieldAccessors' => [ + 'getTableName', + ], + 'matchers' => [ + '/^(?projects\/[^\/]+\/instances\/[^\/]+\/tables\/[^\/]+)$/', + '/^(?projects\/[^\/]+\/instances\/[^\/]+\/tables\/[^\/]+)(?:\/.*)?$/', + ], + ], + [ + 'keyName' => 'app_profile_id', + 'fieldAccessors' => [ + 'getAppProfileId', + ], + ], + ], + ], + 'ExecuteQuery' => [ + 'grpcStreaming' => [ + 'grpcStreamingType' => 'ServerStreaming', + ], + 'callType' => \Google\ApiCore\Call::SERVER_STREAMING_CALL, + 'responseType' => 'Google\Cloud\Bigtable\V2\ExecuteQueryResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getInstanceName', + ], + 'matchers' => [ + '/^(?projects\/[^\/]+\/instances\/[^\/]+)$/', + ], + ], + [ + 'keyName' => 'app_profile_id', + 'fieldAccessors' => [ + 'getAppProfileId', + ], + ], + ], + ], + 'GenerateInitialChangeStreamPartitions' => [ + 'grpcStreaming' => [ + 'grpcStreamingType' => 'ServerStreaming', + ], + 'callType' => \Google\ApiCore\Call::SERVER_STREAMING_CALL, + 'responseType' => 'Google\Cloud\Bigtable\V2\GenerateInitialChangeStreamPartitionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'table_name', + 'fieldAccessors' => [ + 'getTableName', + ], + ], + ], + ], + 'MutateRow' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Bigtable\V2\MutateRowResponse', + 'headerParams' => [ + [ + 'keyName' => 'table_name', + 'fieldAccessors' => [ + 'getTableName', + ], + 'matchers' => [ + '/^(?projects\/[^\/]+\/instances\/[^\/]+\/tables\/[^\/]+)$/', + '/^(?projects\/[^\/]+\/instances\/[^\/]+\/tables\/[^\/]+)(?:\/.*)?$/', + ], + ], + [ + 'keyName' => 'app_profile_id', + 'fieldAccessors' => [ + 'getAppProfileId', + ], + ], + ], + ], + 'MutateRows' => [ + 'grpcStreaming' => [ + 'grpcStreamingType' => 'ServerStreaming', + ], + 'callType' => \Google\ApiCore\Call::SERVER_STREAMING_CALL, + 'responseType' => 'Google\Cloud\Bigtable\V2\MutateRowsResponse', + 'headerParams' => [ + [ + 'keyName' => 'table_name', + 'fieldAccessors' => [ + 'getTableName', + ], + 'matchers' => [ + '/^(?projects\/[^\/]+\/instances\/[^\/]+\/tables\/[^\/]+)$/', + '/^(?projects\/[^\/]+\/instances\/[^\/]+\/tables\/[^\/]+)(?:\/.*)?$/', + ], + ], + [ + 'keyName' => 'app_profile_id', + 'fieldAccessors' => [ + 'getAppProfileId', + ], + ], + ], + ], + 'PingAndWarm' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Bigtable\V2\PingAndWarmResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + 'matchers' => [ + '/^(?projects\/[^\/]+\/instances\/[^\/]+)$/', + ], + ], + [ + 'keyName' => 'app_profile_id', + 'fieldAccessors' => [ + 'getAppProfileId', + ], + ], + ], + ], + 'PrepareQuery' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Bigtable\V2\PrepareQueryResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getInstanceName', + ], + 'matchers' => [ + '/^(?projects\/[^\/]+\/instances\/[^\/]+)$/', + ], + ], + [ + 'keyName' => 'app_profile_id', + 'fieldAccessors' => [ + 'getAppProfileId', + ], + ], + ], + ], + 'ReadChangeStream' => [ + 'grpcStreaming' => [ + 'grpcStreamingType' => 'ServerStreaming', + ], + 'callType' => \Google\ApiCore\Call::SERVER_STREAMING_CALL, + 'responseType' => 'Google\Cloud\Bigtable\V2\ReadChangeStreamResponse', + 'headerParams' => [ + [ + 'keyName' => 'table_name', + 'fieldAccessors' => [ + 'getTableName', + ], + ], + ], + ], + 'ReadModifyWriteRow' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Bigtable\V2\ReadModifyWriteRowResponse', + 'headerParams' => [ + [ + 'keyName' => 'table_name', + 'fieldAccessors' => [ + 'getTableName', + ], + 'matchers' => [ + '/^(?projects\/[^\/]+\/instances\/[^\/]+\/tables\/[^\/]+)$/', + '/^(?projects\/[^\/]+\/instances\/[^\/]+\/tables\/[^\/]+)(?:\/.*)?$/', + ], + ], + [ + 'keyName' => 'app_profile_id', + 'fieldAccessors' => [ + 'getAppProfileId', + ], + ], + ], + ], + 'ReadRows' => [ + 'grpcStreaming' => [ + 'grpcStreamingType' => 'ServerStreaming', + ], + 'callType' => \Google\ApiCore\Call::SERVER_STREAMING_CALL, + 'responseType' => 'Google\Cloud\Bigtable\V2\ReadRowsResponse', + 'headerParams' => [ + [ + 'keyName' => 'table_name', + 'fieldAccessors' => [ + 'getTableName', + ], + 'matchers' => [ + '/^(?projects\/[^\/]+\/instances\/[^\/]+\/tables\/[^\/]+)$/', + '/^(?projects\/[^\/]+\/instances\/[^\/]+\/tables\/[^\/]+)(?:\/.*)?$/', + ], + ], + [ + 'keyName' => 'app_profile_id', + 'fieldAccessors' => [ + 'getAppProfileId', + ], + ], + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getMaterializedViewName', + ], + 'matchers' => [ + '/^(?projects\/[^\/]+\/instances\/[^\/]+)(?:\/.*)?$/', + ], + ], + ], + ], + 'SampleRowKeys' => [ + 'grpcStreaming' => [ + 'grpcStreamingType' => 'ServerStreaming', + ], + 'callType' => \Google\ApiCore\Call::SERVER_STREAMING_CALL, + 'responseType' => 'Google\Cloud\Bigtable\V2\SampleRowKeysResponse', + 'headerParams' => [ + [ + 'keyName' => 'table_name', + 'fieldAccessors' => [ + 'getTableName', + ], + 'matchers' => [ + '/^(?projects\/[^\/]+\/instances\/[^\/]+\/tables\/[^\/]+)$/', + '/^(?projects\/[^\/]+\/instances\/[^\/]+\/tables\/[^\/]+)(?:\/.*)?$/', + ], + ], + [ + 'keyName' => 'app_profile_id', + 'fieldAccessors' => [ + 'getAppProfileId', + ], + ], + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getMaterializedViewName', + ], + 'matchers' => [ + '/^(?projects\/[^\/]+\/instances\/[^\/]+)(?:\/.*)?$/', + ], + ], + ], + ], + 'templateMap' => [ + 'authorizedView' => 'projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}', + 'instance' => 'projects/{project}/instances/{instance}', + 'materializedView' => 'projects/{project}/instances/{instance}/materializedViews/{materialized_view}', + 'table' => 'projects/{project}/instances/{instance}/tables/{table}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Bigtable/v2/src/V2/resources/bigtable_rest_client_config.php b/owl-bot-staging/Bigtable/v2/src/V2/resources/bigtable_rest_client_config.php new file mode 100644 index 000000000000..6c1b96212f88 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/src/V2/resources/bigtable_rest_client_config.php @@ -0,0 +1,250 @@ + [ + 'google.bigtable.v2.Bigtable' => [ + 'CheckAndMutateRow' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{table_name=projects/*/instances/*/tables/*}:checkAndMutateRow', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:checkAndMutateRow', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'authorized_view_name' => [ + 'getters' => [ + 'getAuthorizedViewName', + ], + ], + 'table_name' => [ + 'getters' => [ + 'getTableName', + ], + ], + ], + ], + 'ExecuteQuery' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{instance_name=projects/*/instances/*}:executeQuery', + 'body' => '*', + 'placeholders' => [ + 'instance_name' => [ + 'getters' => [ + 'getInstanceName', + ], + ], + ], + ], + 'GenerateInitialChangeStreamPartitions' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{table_name=projects/*/instances/*/tables/*}:generateInitialChangeStreamPartitions', + 'body' => '*', + 'placeholders' => [ + 'table_name' => [ + 'getters' => [ + 'getTableName', + ], + ], + ], + ], + 'MutateRow' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{table_name=projects/*/instances/*/tables/*}:mutateRow', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:mutateRow', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'authorized_view_name' => [ + 'getters' => [ + 'getAuthorizedViewName', + ], + ], + 'table_name' => [ + 'getters' => [ + 'getTableName', + ], + ], + ], + ], + 'MutateRows' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{table_name=projects/*/instances/*/tables/*}:mutateRows', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:mutateRows', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'authorized_view_name' => [ + 'getters' => [ + 'getAuthorizedViewName', + ], + ], + 'table_name' => [ + 'getters' => [ + 'getTableName', + ], + ], + ], + ], + 'PingAndWarm' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{name=projects/*/instances/*}:ping', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'PrepareQuery' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{instance_name=projects/*/instances/*}:prepareQuery', + 'body' => '*', + 'placeholders' => [ + 'instance_name' => [ + 'getters' => [ + 'getInstanceName', + ], + ], + ], + ], + 'ReadChangeStream' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{table_name=projects/*/instances/*/tables/*}:readChangeStream', + 'body' => '*', + 'placeholders' => [ + 'table_name' => [ + 'getters' => [ + 'getTableName', + ], + ], + ], + ], + 'ReadModifyWriteRow' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{table_name=projects/*/instances/*/tables/*}:readModifyWriteRow', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:readModifyWriteRow', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'authorized_view_name' => [ + 'getters' => [ + 'getAuthorizedViewName', + ], + ], + 'table_name' => [ + 'getters' => [ + 'getTableName', + ], + ], + ], + ], + 'ReadRows' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{table_name=projects/*/instances/*/tables/*}:readRows', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:readRows', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{materialized_view_name=projects/*/instances/*/materializedViews/*}:readRows', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'authorized_view_name' => [ + 'getters' => [ + 'getAuthorizedViewName', + ], + ], + 'materialized_view_name' => [ + 'getters' => [ + 'getMaterializedViewName', + ], + ], + 'table_name' => [ + 'getters' => [ + 'getTableName', + ], + ], + ], + ], + 'SampleRowKeys' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{table_name=projects/*/instances/*/tables/*}:sampleRowKeys', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:sampleRowKeys', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{materialized_view_name=projects/*/instances/*/materializedViews/*}:sampleRowKeys', + ], + ], + 'placeholders' => [ + 'authorized_view_name' => [ + 'getters' => [ + 'getAuthorizedViewName', + ], + ], + 'materialized_view_name' => [ + 'getters' => [ + 'getMaterializedViewName', + ], + ], + 'table_name' => [ + 'getters' => [ + 'getTableName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Bigtable/v2/tests/Unit/V2/Client/BigtableClientTest.php b/owl-bot-staging/Bigtable/v2/tests/Unit/V2/Client/BigtableClientTest.php new file mode 100644 index 000000000000..b28bc7f03e84 --- /dev/null +++ b/owl-bot-staging/Bigtable/v2/tests/Unit/V2/Client/BigtableClientTest.php @@ -0,0 +1,966 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return BigtableClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new BigtableClient($options); + } + + /** @test */ + public function checkAndMutateRowTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $predicateMatched = true; + $expectedResponse = new CheckAndMutateRowResponse(); + $expectedResponse->setPredicateMatched($predicateMatched); + $transport->addResponse($expectedResponse); + // Mock request + $formattedTableName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $rowKey = '122'; + $request = (new CheckAndMutateRowRequest()) + ->setTableName($formattedTableName) + ->setRowKey($rowKey); + $response = $gapicClient->checkAndMutateRow($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.v2.Bigtable/CheckAndMutateRow', $actualFuncCall); + $actualValue = $actualRequestObject->getTableName(); + $this->assertProtobufEquals($formattedTableName, $actualValue); + $actualValue = $actualRequestObject->getRowKey(); + $this->assertProtobufEquals($rowKey, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function checkAndMutateRowExceptionTest() + { + $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 + $formattedTableName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $rowKey = '122'; + $request = (new CheckAndMutateRowRequest()) + ->setTableName($formattedTableName) + ->setRowKey($rowKey); + try { + $gapicClient->checkAndMutateRow($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 executeQueryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ExecuteQueryResponse(); + $transport->addResponse($expectedResponse); + $expectedResponse2 = new ExecuteQueryResponse(); + $transport->addResponse($expectedResponse2); + $expectedResponse3 = new ExecuteQueryResponse(); + $transport->addResponse($expectedResponse3); + // Mock request + $formattedInstanceName = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); + $query = 'query107944136'; + $paramsValue = new Value(); + $params = [ + 'paramsKey' => $paramsValue, + ]; + $request = (new ExecuteQueryRequest()) + ->setInstanceName($formattedInstanceName) + ->setQuery($query) + ->setParams($params); + $serverStream = $gapicClient->executeQuery($request); + $this->assertInstanceOf(ServerStream::class, $serverStream); + $responses = iterator_to_array($serverStream->readAll()); + $expectedResponses = []; + $expectedResponses[] = $expectedResponse; + $expectedResponses[] = $expectedResponse2; + $expectedResponses[] = $expectedResponse3; + $this->assertEquals($expectedResponses, $responses); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.v2.Bigtable/ExecuteQuery', $actualFuncCall); + $actualValue = $actualRequestObject->getInstanceName(); + $this->assertProtobufEquals($formattedInstanceName, $actualValue); + $actualValue = $actualRequestObject->getQuery(); + $this->assertProtobufEquals($query, $actualValue); + $actualValue = $actualRequestObject->getParams(); + $this->assertProtobufEquals($params, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function executeQueryExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $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->setStreamingStatus($status); + $this->assertTrue($transport->isExhausted()); + // Mock request + $formattedInstanceName = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); + $query = 'query107944136'; + $paramsValue = new Value(); + $params = [ + 'paramsKey' => $paramsValue, + ]; + $request = (new ExecuteQueryRequest()) + ->setInstanceName($formattedInstanceName) + ->setQuery($query) + ->setParams($params); + $serverStream = $gapicClient->executeQuery($request); + $results = $serverStream->readAll(); + try { + iterator_to_array($results); + // If the close stream 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 generateInitialChangeStreamPartitionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GenerateInitialChangeStreamPartitionsResponse(); + $transport->addResponse($expectedResponse); + $expectedResponse2 = new GenerateInitialChangeStreamPartitionsResponse(); + $transport->addResponse($expectedResponse2); + $expectedResponse3 = new GenerateInitialChangeStreamPartitionsResponse(); + $transport->addResponse($expectedResponse3); + // Mock request + $formattedTableName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $request = (new GenerateInitialChangeStreamPartitionsRequest()) + ->setTableName($formattedTableName); + $serverStream = $gapicClient->generateInitialChangeStreamPartitions($request); + $this->assertInstanceOf(ServerStream::class, $serverStream); + $responses = iterator_to_array($serverStream->readAll()); + $expectedResponses = []; + $expectedResponses[] = $expectedResponse; + $expectedResponses[] = $expectedResponse2; + $expectedResponses[] = $expectedResponse3; + $this->assertEquals($expectedResponses, $responses); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.v2.Bigtable/GenerateInitialChangeStreamPartitions', $actualFuncCall); + $actualValue = $actualRequestObject->getTableName(); + $this->assertProtobufEquals($formattedTableName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function generateInitialChangeStreamPartitionsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $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->setStreamingStatus($status); + $this->assertTrue($transport->isExhausted()); + // Mock request + $formattedTableName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $request = (new GenerateInitialChangeStreamPartitionsRequest()) + ->setTableName($formattedTableName); + $serverStream = $gapicClient->generateInitialChangeStreamPartitions($request); + $results = $serverStream->readAll(); + try { + iterator_to_array($results); + // If the close stream 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 mutateRowTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new MutateRowResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedTableName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $rowKey = '122'; + $mutations = []; + $request = (new MutateRowRequest()) + ->setTableName($formattedTableName) + ->setRowKey($rowKey) + ->setMutations($mutations); + $response = $gapicClient->mutateRow($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.v2.Bigtable/MutateRow', $actualFuncCall); + $actualValue = $actualRequestObject->getTableName(); + $this->assertProtobufEquals($formattedTableName, $actualValue); + $actualValue = $actualRequestObject->getRowKey(); + $this->assertProtobufEquals($rowKey, $actualValue); + $actualValue = $actualRequestObject->getMutations(); + $this->assertProtobufEquals($mutations, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function mutateRowExceptionTest() + { + $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 + $formattedTableName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $rowKey = '122'; + $mutations = []; + $request = (new MutateRowRequest()) + ->setTableName($formattedTableName) + ->setRowKey($rowKey) + ->setMutations($mutations); + try { + $gapicClient->mutateRow($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 mutateRowsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new MutateRowsResponse(); + $transport->addResponse($expectedResponse); + $expectedResponse2 = new MutateRowsResponse(); + $transport->addResponse($expectedResponse2); + $expectedResponse3 = new MutateRowsResponse(); + $transport->addResponse($expectedResponse3); + // Mock request + $formattedTableName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $entries = []; + $request = (new MutateRowsRequest()) + ->setTableName($formattedTableName) + ->setEntries($entries); + $serverStream = $gapicClient->mutateRows($request); + $this->assertInstanceOf(ServerStream::class, $serverStream); + $responses = iterator_to_array($serverStream->readAll()); + $expectedResponses = []; + $expectedResponses[] = $expectedResponse; + $expectedResponses[] = $expectedResponse2; + $expectedResponses[] = $expectedResponse3; + $this->assertEquals($expectedResponses, $responses); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.v2.Bigtable/MutateRows', $actualFuncCall); + $actualValue = $actualRequestObject->getTableName(); + $this->assertProtobufEquals($formattedTableName, $actualValue); + $actualValue = $actualRequestObject->getEntries(); + $this->assertProtobufEquals($entries, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function mutateRowsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $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->setStreamingStatus($status); + $this->assertTrue($transport->isExhausted()); + // Mock request + $formattedTableName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $entries = []; + $request = (new MutateRowsRequest()) + ->setTableName($formattedTableName) + ->setEntries($entries); + $serverStream = $gapicClient->mutateRows($request); + $results = $serverStream->readAll(); + try { + iterator_to_array($results); + // If the close stream 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 pingAndWarmTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new PingAndWarmResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); + $request = (new PingAndWarmRequest()) + ->setName($formattedName); + $response = $gapicClient->pingAndWarm($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.v2.Bigtable/PingAndWarm', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function pingAndWarmExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); + $request = (new PingAndWarmRequest()) + ->setName($formattedName); + try { + $gapicClient->pingAndWarm($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 prepareQueryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $preparedQuery = '70'; + $expectedResponse = new PrepareQueryResponse(); + $expectedResponse->setPreparedQuery($preparedQuery); + $transport->addResponse($expectedResponse); + // Mock request + $formattedInstanceName = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); + $query = 'query107944136'; + $paramTypesValue = new Type(); + $paramTypes = [ + 'paramTypesKey' => $paramTypesValue, + ]; + $request = (new PrepareQueryRequest()) + ->setInstanceName($formattedInstanceName) + ->setQuery($query) + ->setParamTypes($paramTypes); + $response = $gapicClient->prepareQuery($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.v2.Bigtable/PrepareQuery', $actualFuncCall); + $actualValue = $actualRequestObject->getInstanceName(); + $this->assertProtobufEquals($formattedInstanceName, $actualValue); + $actualValue = $actualRequestObject->getQuery(); + $this->assertProtobufEquals($query, $actualValue); + $actualValue = $actualRequestObject->getParamTypes(); + $this->assertProtobufEquals($paramTypes, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function prepareQueryExceptionTest() + { + $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 + $formattedInstanceName = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); + $query = 'query107944136'; + $paramTypesValue = new Type(); + $paramTypes = [ + 'paramTypesKey' => $paramTypesValue, + ]; + $request = (new PrepareQueryRequest()) + ->setInstanceName($formattedInstanceName) + ->setQuery($query) + ->setParamTypes($paramTypes); + try { + $gapicClient->prepareQuery($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 readChangeStreamTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ReadChangeStreamResponse(); + $transport->addResponse($expectedResponse); + $expectedResponse2 = new ReadChangeStreamResponse(); + $transport->addResponse($expectedResponse2); + $expectedResponse3 = new ReadChangeStreamResponse(); + $transport->addResponse($expectedResponse3); + // Mock request + $formattedTableName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $request = (new ReadChangeStreamRequest()) + ->setTableName($formattedTableName); + $serverStream = $gapicClient->readChangeStream($request); + $this->assertInstanceOf(ServerStream::class, $serverStream); + $responses = iterator_to_array($serverStream->readAll()); + $expectedResponses = []; + $expectedResponses[] = $expectedResponse; + $expectedResponses[] = $expectedResponse2; + $expectedResponses[] = $expectedResponse3; + $this->assertEquals($expectedResponses, $responses); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.v2.Bigtable/ReadChangeStream', $actualFuncCall); + $actualValue = $actualRequestObject->getTableName(); + $this->assertProtobufEquals($formattedTableName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function readChangeStreamExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $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->setStreamingStatus($status); + $this->assertTrue($transport->isExhausted()); + // Mock request + $formattedTableName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $request = (new ReadChangeStreamRequest()) + ->setTableName($formattedTableName); + $serverStream = $gapicClient->readChangeStream($request); + $results = $serverStream->readAll(); + try { + iterator_to_array($results); + // If the close stream 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 readModifyWriteRowTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ReadModifyWriteRowResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedTableName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $rowKey = '122'; + $rules = []; + $request = (new ReadModifyWriteRowRequest()) + ->setTableName($formattedTableName) + ->setRowKey($rowKey) + ->setRules($rules); + $response = $gapicClient->readModifyWriteRow($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.v2.Bigtable/ReadModifyWriteRow', $actualFuncCall); + $actualValue = $actualRequestObject->getTableName(); + $this->assertProtobufEquals($formattedTableName, $actualValue); + $actualValue = $actualRequestObject->getRowKey(); + $this->assertProtobufEquals($rowKey, $actualValue); + $actualValue = $actualRequestObject->getRules(); + $this->assertProtobufEquals($rules, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function readModifyWriteRowExceptionTest() + { + $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 + $formattedTableName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $rowKey = '122'; + $rules = []; + $request = (new ReadModifyWriteRowRequest()) + ->setTableName($formattedTableName) + ->setRowKey($rowKey) + ->setRules($rules); + try { + $gapicClient->readModifyWriteRow($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 readRowsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $lastScannedRowKey = '-126'; + $expectedResponse = new ReadRowsResponse(); + $expectedResponse->setLastScannedRowKey($lastScannedRowKey); + $transport->addResponse($expectedResponse); + $lastScannedRowKey2 = '-75'; + $expectedResponse2 = new ReadRowsResponse(); + $expectedResponse2->setLastScannedRowKey($lastScannedRowKey2); + $transport->addResponse($expectedResponse2); + $lastScannedRowKey3 = '-74'; + $expectedResponse3 = new ReadRowsResponse(); + $expectedResponse3->setLastScannedRowKey($lastScannedRowKey3); + $transport->addResponse($expectedResponse3); + // Mock request + $formattedTableName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $request = (new ReadRowsRequest()) + ->setTableName($formattedTableName); + $serverStream = $gapicClient->readRows($request); + $this->assertInstanceOf(ServerStream::class, $serverStream); + $responses = iterator_to_array($serverStream->readAll()); + $expectedResponses = []; + $expectedResponses[] = $expectedResponse; + $expectedResponses[] = $expectedResponse2; + $expectedResponses[] = $expectedResponse3; + $this->assertEquals($expectedResponses, $responses); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.v2.Bigtable/ReadRows', $actualFuncCall); + $actualValue = $actualRequestObject->getTableName(); + $this->assertProtobufEquals($formattedTableName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function readRowsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $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->setStreamingStatus($status); + $this->assertTrue($transport->isExhausted()); + // Mock request + $formattedTableName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $request = (new ReadRowsRequest()) + ->setTableName($formattedTableName); + $serverStream = $gapicClient->readRows($request); + $results = $serverStream->readAll(); + try { + iterator_to_array($results); + // If the close stream 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 sampleRowKeysTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $rowKey = '122'; + $offsetBytes = 889884095; + $expectedResponse = new SampleRowKeysResponse(); + $expectedResponse->setRowKey($rowKey); + $expectedResponse->setOffsetBytes($offsetBytes); + $transport->addResponse($expectedResponse); + $rowKey2 = '-83'; + $offsetBytes2 = 480126386; + $expectedResponse2 = new SampleRowKeysResponse(); + $expectedResponse2->setRowKey($rowKey2); + $expectedResponse2->setOffsetBytes($offsetBytes2); + $transport->addResponse($expectedResponse2); + $rowKey3 = '-82'; + $offsetBytes3 = 480126387; + $expectedResponse3 = new SampleRowKeysResponse(); + $expectedResponse3->setRowKey($rowKey3); + $expectedResponse3->setOffsetBytes($offsetBytes3); + $transport->addResponse($expectedResponse3); + // Mock request + $formattedTableName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $request = (new SampleRowKeysRequest()) + ->setTableName($formattedTableName); + $serverStream = $gapicClient->sampleRowKeys($request); + $this->assertInstanceOf(ServerStream::class, $serverStream); + $responses = iterator_to_array($serverStream->readAll()); + $expectedResponses = []; + $expectedResponses[] = $expectedResponse; + $expectedResponses[] = $expectedResponse2; + $expectedResponses[] = $expectedResponse3; + $this->assertEquals($expectedResponses, $responses); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.v2.Bigtable/SampleRowKeys', $actualFuncCall); + $actualValue = $actualRequestObject->getTableName(); + $this->assertProtobufEquals($formattedTableName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function sampleRowKeysExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $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->setStreamingStatus($status); + $this->assertTrue($transport->isExhausted()); + // Mock request + $formattedTableName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $request = (new SampleRowKeysRequest()) + ->setTableName($formattedTableName); + $serverStream = $gapicClient->sampleRowKeys($request); + $results = $serverStream->readAll(); + try { + iterator_to_array($results); + // If the close stream 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 checkAndMutateRowAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $predicateMatched = true; + $expectedResponse = new CheckAndMutateRowResponse(); + $expectedResponse->setPredicateMatched($predicateMatched); + $transport->addResponse($expectedResponse); + // Mock request + $formattedTableName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); + $rowKey = '122'; + $request = (new CheckAndMutateRowRequest()) + ->setTableName($formattedTableName) + ->setRowKey($rowKey); + $response = $gapicClient->checkAndMutateRowAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.bigtable.v2.Bigtable/CheckAndMutateRow', $actualFuncCall); + $actualValue = $actualRequestObject->getTableName(); + $this->assertProtobufEquals($formattedTableName, $actualValue); + $actualValue = $actualRequestObject->getRowKey(); + $this->assertProtobufEquals($rowKey, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} From 9777109e9911c59aae43bfa8651c5436827b2bd1 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 23 Mar 2026 22:12:36 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- Bigtable/metadata/Admin/V2/Table.php | 2 +- .../V2/Client/BigtableTableAdminClient.php | 18 + .../Admin/V2/Table/AutomatedBackupPolicy.php | 88 +- ...bigtable_table_admin_descriptor_config.php | 1 + .../Admin/V2/BigtableInstanceAdmin.php | 35 - .../Bigtable/Admin/V2/BigtableTableAdmin.php | 37 - .../Google/Bigtable/Admin/V2/Common.php | 25 - .../Google/Bigtable/Admin/V2/Instance.php | 28 - .../Google/Bigtable/Admin/V2/Table.php | 30 - .../Google/Bigtable/Admin/V2/Types.php | 25 - .../Cloud/Bigtable/Admin/V2/AppProfile.php | 372 -- .../AppProfile/DataBoostIsolationReadOnly.php | 81 - .../ComputeBillingOwner.php | 57 - .../AppProfile/MultiClusterRoutingUseAny.php | 120 - .../MultiClusterRoutingUseAny/RowAffinity.php | 41 - .../Bigtable/Admin/V2/AppProfile/Priority.php | 64 - .../V2/AppProfile/SingleClusterRouting.php | 111 - .../Admin/V2/AppProfile/StandardIsolation.php | 68 - .../Bigtable/Admin/V2/AuthorizedView.php | 203 - .../Admin/V2/AuthorizedView/FamilySubsets.php | 117 - .../Admin/V2/AuthorizedView/ResponseView.php | 69 - .../Admin/V2/AuthorizedView/SubsetView.php | 109 - .../Bigtable/Admin/V2/AutoscalingLimits.php | 101 - .../Bigtable/Admin/V2/AutoscalingTargets.php | 133 - .../Google/Cloud/Bigtable/Admin/V2/Backup.php | 573 --- .../Bigtable/Admin/V2/Backup/BackupType.php | 66 - .../Cloud/Bigtable/Admin/V2/Backup/State.php | 62 - .../Cloud/Bigtable/Admin/V2/BackupInfo.php | 243 -- .../Bigtable/Admin/V2/ChangeStreamConfig.php | 93 - .../Admin/V2/CheckConsistencyRequest.php | 215 -- .../Admin/V2/CheckConsistencyResponse.php | 72 - .../Cloud/Bigtable/Admin/V2/Cluster.php | 353 -- .../V2/Cluster/ClusterAutoscalingConfig.php | 121 - .../Admin/V2/Cluster/ClusterConfig.php | 77 - .../Admin/V2/Cluster/EncryptionConfig.php | 100 - .../Admin/V2/Cluster/NodeScalingFactor.php | 64 - .../Cloud/Bigtable/Admin/V2/Cluster/State.php | 82 - .../Cloud/Bigtable/Admin/V2/ColumnFamily.php | 157 - .../Bigtable/Admin/V2/CopyBackupMetadata.php | 172 - .../Bigtable/Admin/V2/CopyBackupRequest.php | 286 -- .../Admin/V2/CreateAppProfileRequest.php | 217 -- .../Admin/V2/CreateAuthorizedViewMetadata.php | 169 - .../Admin/V2/CreateAuthorizedViewRequest.php | 189 - .../Admin/V2/CreateBackupMetadata.php | 190 - .../Bigtable/Admin/V2/CreateBackupRequest.php | 199 - .../Admin/V2/CreateClusterMetadata.php | 223 -- .../CreateClusterMetadata/TableProgress.php | 136 - .../TableProgress/State.php | 73 - .../Admin/V2/CreateClusterRequest.php | 183 - .../Admin/V2/CreateInstanceMetadata.php | 165 - .../Admin/V2/CreateInstanceRequest.php | 234 -- .../Admin/V2/CreateLogicalViewMetadata.php | 169 - .../Admin/V2/CreateLogicalViewRequest.php | 173 - .../V2/CreateMaterializedViewMetadata.php | 169 - .../V2/CreateMaterializedViewRequest.php | 173 - .../Admin/V2/CreateSchemaBundleMetadata.php | 164 - .../Admin/V2/CreateSchemaBundleRequest.php | 179 - .../V2/CreateTableFromSnapshotMetadata.php | 173 - .../V2/CreateTableFromSnapshotRequest.php | 184 - .../Bigtable/Admin/V2/CreateTableRequest.php | 265 -- .../Admin/V2/CreateTableRequest/Split.php | 67 - .../Admin/V2/DataBoostReadLocalWrites.php | 34 - .../Admin/V2/DeleteAppProfileRequest.php | 143 - .../Admin/V2/DeleteAuthorizedViewRequest.php | 138 - .../Bigtable/Admin/V2/DeleteBackupRequest.php | 92 - .../Admin/V2/DeleteClusterRequest.php | 86 - .../Admin/V2/DeleteInstanceRequest.php | 86 - .../Admin/V2/DeleteLogicalViewRequest.php | 137 - .../V2/DeleteMaterializedViewRequest.php | 137 - .../Admin/V2/DeleteSchemaBundleRequest.php | 134 - .../Admin/V2/DeleteSnapshotRequest.php | 96 - .../Bigtable/Admin/V2/DeleteTableRequest.php | 92 - .../Bigtable/Admin/V2/DropRowRangeRequest.php | 154 - .../Bigtable/Admin/V2/EncryptionInfo.php | 160 - .../V2/EncryptionInfo/EncryptionType.php | 69 - .../Google/Cloud/Bigtable/Admin/V2/GcRule.php | 180 - .../Bigtable/Admin/V2/GcRule/Intersection.php | 67 - .../Cloud/Bigtable/Admin/V2/GcRule/Union.php | 67 - .../V2/GenerateConsistencyTokenRequest.php | 92 - .../V2/GenerateConsistencyTokenResponse.php | 68 - .../Admin/V2/GetAppProfileRequest.php | 86 - .../Admin/V2/GetAuthorizedViewRequest.php | 130 - .../Bigtable/Admin/V2/GetBackupRequest.php | 92 - .../Bigtable/Admin/V2/GetClusterRequest.php | 86 - .../Bigtable/Admin/V2/GetInstanceRequest.php | 86 - .../Admin/V2/GetLogicalViewRequest.php | 86 - .../Admin/V2/GetMaterializedViewRequest.php | 91 - .../Admin/V2/GetSchemaBundleRequest.php | 92 - .../Bigtable/Admin/V2/GetSnapshotRequest.php | 96 - .../Bigtable/Admin/V2/GetTableRequest.php | 130 - .../Cloud/Bigtable/Admin/V2/HotTablet.php | 315 -- .../Cloud/Bigtable/Admin/V2/Instance.php | 456 --- .../Bigtable/Admin/V2/Instance/State.php | 63 - .../Cloud/Bigtable/Admin/V2/Instance/Type.php | 65 - .../Admin/V2/ListAppProfilesRequest.php | 193 - .../Admin/V2/ListAppProfilesResponse.php | 155 - .../Admin/V2/ListAuthorizedViewsRequest.php | 222 -- .../Admin/V2/ListAuthorizedViewsResponse.php | 110 - .../Bigtable/Admin/V2/ListBackupsRequest.php | 429 --- .../Bigtable/Admin/V2/ListBackupsResponse.php | 110 - .../Bigtable/Admin/V2/ListClustersRequest.php | 135 - .../Admin/V2/ListClustersResponse.php | 151 - .../Admin/V2/ListHotTabletsRequest.php | 291 -- .../Admin/V2/ListHotTabletsResponse.php | 125 - .../Admin/V2/ListInstancesRequest.php | 120 - .../Admin/V2/ListInstancesResponse.php | 155 - .../Admin/V2/ListLogicalViewsRequest.php | 175 - .../Admin/V2/ListLogicalViewsResponse.php | 105 - .../Admin/V2/ListMaterializedViewsRequest.php | 175 - .../V2/ListMaterializedViewsResponse.php | 105 - .../Admin/V2/ListSchemaBundlesRequest.php | 180 - .../Admin/V2/ListSchemaBundlesResponse.php | 106 - .../Admin/V2/ListSnapshotsRequest.php | 178 - .../Admin/V2/ListSnapshotsResponse.php | 114 - .../Bigtable/Admin/V2/ListTablesRequest.php | 217 -- .../Bigtable/Admin/V2/ListTablesResponse.php | 110 - .../Cloud/Bigtable/Admin/V2/LogicalView.php | 189 - .../Bigtable/Admin/V2/MaterializedView.php | 189 - .../Admin/V2/ModifyColumnFamiliesRequest.php | 177 - .../Modification.php | 236 -- .../Bigtable/Admin/V2/OperationProgress.php | 164 - .../V2/OptimizeRestoredTableMetadata.php | 114 - .../Admin/V2/PartialUpdateClusterMetadata.php | 165 - .../Admin/V2/PartialUpdateClusterRequest.php | 141 - .../Admin/V2/PartialUpdateInstanceRequest.php | 141 - .../Cloud/Bigtable/Admin/V2/ProtoSchema.php | 123 - .../Cloud/Bigtable/Admin/V2/RestoreInfo.php | 112 - .../Bigtable/Admin/V2/RestoreSourceType.php | 54 - .../Admin/V2/RestoreTableMetadata.php | 257 -- .../Bigtable/Admin/V2/RestoreTableRequest.php | 163 - .../Cloud/Bigtable/Admin/V2/SchemaBundle.php | 163 - .../Cloud/Bigtable/Admin/V2/Snapshot.php | 334 -- .../Bigtable/Admin/V2/Snapshot/State.php | 63 - .../Admin/V2/SnapshotTableMetadata.php | 169 - .../Admin/V2/SnapshotTableRequest.php | 286 -- .../Admin/V2/StandardReadRemoteWrites.php | 34 - .../Cloud/Bigtable/Admin/V2/StorageType.php | 61 - .../Google/Cloud/Bigtable/Admin/V2/Table.php | 721 ---- .../Admin/V2/Table/AutomatedBackupPolicy.php | 179 - .../Bigtable/Admin/V2/Table/ClusterState.php | 117 - .../Table/ClusterState/ReplicationState.php | 90 - .../Admin/V2/Table/TimestampGranularity.php | 56 - .../Cloud/Bigtable/Admin/V2/Table/View.php | 83 - .../Bigtable/Admin/V2/TieredStorageConfig.php | 85 - .../Bigtable/Admin/V2/TieredStorageRule.php | 78 - .../Google/Cloud/Bigtable/Admin/V2/Type.php | 521 --- .../Bigtable/Admin/V2/Type/Aggregate.php | 281 -- .../HyperLogLogPlusPlusUniqueCount.php | 39 - .../Bigtable/Admin/V2/Type/Aggregate/Max.php | 35 - .../Bigtable/Admin/V2/Type/Aggregate/Min.php | 35 - .../Bigtable/Admin/V2/Type/Aggregate/Sum.php | 35 - .../Cloud/Bigtable/Admin/V2/Type/Bytes.php | 78 - .../Bigtable/Admin/V2/Type/Bytes/Encoding.php | 75 - .../Admin/V2/Type/Bytes/Encoding/Raw.php | 35 - .../Cloud/Bigtable/Admin/V2/Type/Date.php | 34 - .../Cloud/Bigtable/Admin/V2/Type/Enum.php | 106 - .../Cloud/Bigtable/Admin/V2/Type/Float32.php | 34 - .../Cloud/Bigtable/Admin/V2/Type/Float64.php | 34 - .../Cloud/Bigtable/Admin/V2/Type/Int64.php | 78 - .../Bigtable/Admin/V2/Type/Int64/Encoding.php | 108 - .../V2/Type/Int64/Encoding/BigEndianBytes.php | 94 - .../Type/Int64/Encoding/OrderedCodeBytes.php | 36 - .../Cloud/Bigtable/Admin/V2/Type/Map.php | 131 - .../Cloud/Bigtable/Admin/V2/Type/PBArray.php | 78 - .../Cloud/Bigtable/Admin/V2/Type/PBBool.php | 34 - .../Cloud/Bigtable/Admin/V2/Type/PBString.php | 78 - .../Admin/V2/Type/PBString/Encoding.php | 117 - .../V2/Type/PBString/Encoding/Utf8Bytes.php | 41 - .../V2/Type/PBString/Encoding/Utf8Raw.php | 34 - .../Cloud/Bigtable/Admin/V2/Type/Proto.php | 106 - .../Cloud/Bigtable/Admin/V2/Type/Struct.php | 114 - .../Admin/V2/Type/Struct/Encoding.php | 141 - .../Type/Struct/Encoding/DelimitedBytes.php | 81 - .../Type/Struct/Encoding/OrderedCodeBytes.php | 62 - .../V2/Type/Struct/Encoding/Singleton.php | 34 - .../Bigtable/Admin/V2/Type/Struct/Field.php | 115 - .../Bigtable/Admin/V2/Type/Timestamp.php | 78 - .../Admin/V2/Type/Timestamp/Encoding.php | 84 - .../Admin/V2/UndeleteTableMetadata.php | 156 - .../Admin/V2/UndeleteTableRequest.php | 92 - .../Admin/V2/UpdateAppProfileMetadata.php | 33 - .../Admin/V2/UpdateAppProfileRequest.php | 175 - .../Admin/V2/UpdateAuthorizedViewMetadata.php | 170 - .../Admin/V2/UpdateAuthorizedViewRequest.php | 220 -- .../Bigtable/Admin/V2/UpdateBackupRequest.php | 173 - .../Admin/V2/UpdateClusterMetadata.php | 165 - .../Admin/V2/UpdateInstanceMetadata.php | 165 - .../Admin/V2/UpdateLogicalViewMetadata.php | 169 - .../Admin/V2/UpdateLogicalViewRequest.php | 152 - .../V2/UpdateMaterializedViewMetadata.php | 169 - .../V2/UpdateMaterializedViewRequest.php | 152 - .../Admin/V2/UpdateSchemaBundleMetadata.php | 164 - .../Admin/V2/UpdateSchemaBundleRequest.php | 199 - .../Bigtable/Admin/V2/UpdateTableMetadata.php | 156 - .../Bigtable/Admin/V2/UpdateTableRequest.php | 228 -- .../create_app_profile.php | 79 - .../create_cluster.php | 97 - .../create_instance.php | 107 - .../create_logical_view.php | 96 - .../create_materialized_view.php | 96 - .../delete_app_profile.php | 78 - .../delete_cluster.php | 70 - .../delete_instance.php | 70 - .../delete_logical_view.php | 75 - .../delete_materialized_view.php | 75 - .../get_app_profile.php | 76 - .../get_cluster.php | 72 - .../get_iam_policy.php | 72 - .../get_instance.php | 72 - .../get_logical_view.php | 76 - .../get_materialized_view.php | 77 - .../list_app_profiles.php | 80 - .../list_clusters.php | 75 - .../list_hot_tablets.php | 79 - .../list_instances.php | 72 - .../list_logical_views.php | 78 - .../list_materialized_views.php | 78 - .../partial_update_cluster.php | 85 - .../partial_update_instance.php | 90 - .../set_iam_policy.php | 74 - .../test_iam_permissions.php | 78 - .../update_app_profile.php | 74 - .../update_cluster.php | 91 - .../update_instance.php | 83 - .../update_logical_view.php | 84 - .../update_materialized_view.php | 84 - .../check_consistency.php | 78 - .../BigtableTableAdminClient/copy_backup.php | 115 - .../create_authorized_view.php | 93 - .../create_backup.php | 113 - .../create_schema_bundle.php | 91 - .../BigtableTableAdminClient/create_table.php | 81 - .../create_table_from_snapshot.php | 110 - .../delete_authorized_view.php | 76 - .../delete_backup.php | 76 - .../delete_schema_bundle.php | 76 - .../delete_snapshot.php | 82 - .../BigtableTableAdminClient/delete_table.php | 71 - .../drop_row_range.php | 73 - .../generate_consistency_token.php | 76 - .../get_authorized_view.php | 78 - .../BigtableTableAdminClient/get_backup.php | 78 - .../get_iam_policy.php | 73 - .../get_schema_bundle.php | 78 - .../BigtableTableAdminClient/get_snapshot.php | 84 - .../V2/BigtableTableAdminClient/get_table.php | 73 - .../list_authorized_views.php | 78 - .../BigtableTableAdminClient/list_backups.php | 80 - .../list_schema_bundles.php | 78 - .../list_snapshots.php | 86 - .../BigtableTableAdminClient/list_tables.php | 77 - .../modify_column_families.php | 79 - .../restore_table.php | 96 - .../set_iam_policy.php | 74 - .../snapshot_table.php | 107 - .../test_iam_permissions.php | 79 - .../undelete_table.php | 85 - .../update_authorized_view.php | 71 - .../update_backup.php | 80 - .../update_schema_bundle.php | 71 - .../BigtableTableAdminClient/update_table.php | 74 - .../V2/Client/BigtableInstanceAdminClient.php | 1366 ------- .../V2/Client/BigtableTableAdminClient.php | 1540 -------- .../v2/Admin/src/V2/gapic_metadata.json | 357 -- ...bigtable_instance_admin_client_config.json | 181 - ...table_instance_admin_descriptor_config.php | 517 --- ...able_instance_admin_rest_client_config.php | 496 --- .../bigtable_table_admin_client_config.json | 201 - ...bigtable_table_admin_descriptor_config.php | 580 --- ...igtable_table_admin_rest_client_config.php | 550 --- .../BigtableInstanceAdminClientTest.php | 3054 --------------- .../Client/BigtableTableAdminClientTest.php | 3274 ----------------- .../Google/Bigtable/V2/Bigtable.php | 36 - .../GPBMetadata/Google/Bigtable/V2/Data.php | 28 - .../Google/Bigtable/V2/FeatureFlags.php | 24 - .../Google/Bigtable/V2/PeerInfo.php | 24 - .../Google/Bigtable/V2/RequestStats.php | 25 - .../Google/Bigtable/V2/ResponseParams.php | 24 - .../GPBMetadata/Google/Bigtable/V2/Types.php | 25 - .../Google/Cloud/Bigtable/V2/ArrayValue.php | 67 - .../src/Google/Cloud/Bigtable/V2/Cell.php | 163 - .../Bigtable/V2/CheckAndMutateRowRequest.php | 436 --- .../Bigtable/V2/CheckAndMutateRowResponse.php | 71 - .../src/Google/Cloud/Bigtable/V2/Column.php | 118 - .../Cloud/Bigtable/V2/ColumnMetadata.php | 111 - .../Google/Cloud/Bigtable/V2/ColumnRange.php | 220 -- .../Cloud/Bigtable/V2/ExecuteQueryRequest.php | 483 --- .../Bigtable/V2/ExecuteQueryResponse.php | 117 - .../src/Google/Cloud/Bigtable/V2/Family.php | 122 - .../Google/Cloud/Bigtable/V2/FeatureFlags.php | 412 --- .../Cloud/Bigtable/V2/FullReadStatsView.php | 137 - ...teInitialChangeStreamPartitionsRequest.php | 160 - ...eInitialChangeStreamPartitionsResponse.php | 78 - .../Google/Cloud/Bigtable/V2/Idempotency.php | 133 - .../Cloud/Bigtable/V2/MutateRowRequest.php | 338 -- .../Cloud/Bigtable/V2/MutateRowResponse.php | 33 - .../Cloud/Bigtable/V2/MutateRowsRequest.php | 264 -- .../Bigtable/V2/MutateRowsRequest/Entry.php | 157 - .../Cloud/Bigtable/V2/MutateRowsResponse.php | 119 - .../Bigtable/V2/MutateRowsResponse/Entry.php | 127 - .../src/Google/Cloud/Bigtable/V2/Mutation.php | 240 -- .../Cloud/Bigtable/V2/Mutation/AddToCell.php | 219 -- .../Bigtable/V2/Mutation/DeleteFromColumn.php | 154 - .../Bigtable/V2/Mutation/DeleteFromFamily.php | 71 - .../Bigtable/V2/Mutation/DeleteFromRow.php | 33 - .../Bigtable/V2/Mutation/MergeToCell.php | 224 -- .../Cloud/Bigtable/V2/Mutation/SetCell.php | 193 - .../Cloud/Bigtable/V2/PartialResultSet.php | 391 -- .../src/Google/Cloud/Bigtable/V2/PeerInfo.php | 209 -- .../Bigtable/V2/PeerInfo/TransportType.php | 100 - .../Cloud/Bigtable/V2/PingAndWarmRequest.php | 148 - .../Cloud/Bigtable/V2/PingAndWarmResponse.php | 33 - .../Cloud/Bigtable/V2/PrepareQueryRequest.php | 308 -- .../Bigtable/V2/PrepareQueryResponse.php | 171 - .../Google/Cloud/Bigtable/V2/ProtoFormat.php | 34 - .../Google/Cloud/Bigtable/V2/ProtoRows.php | 78 - .../Cloud/Bigtable/V2/ProtoRowsBatch.php | 83 - .../Google/Cloud/Bigtable/V2/ProtoSchema.php | 67 - .../Cloud/Bigtable/V2/RateLimitInfo.php | 159 - .../Bigtable/V2/ReadChangeStreamRequest.php | 412 --- .../Bigtable/V2/ReadChangeStreamResponse.php | 142 - .../ReadChangeStreamResponse/CloseStream.php | 176 - .../ReadChangeStreamResponse/DataChange.php | 436 --- .../DataChange/Type.php | 69 - .../V2/ReadChangeStreamResponse/Heartbeat.php | 146 - .../MutationChunk.php | 133 - .../MutationChunk/ChunkInfo.php | 141 - .../Cloud/Bigtable/V2/ReadIterationStats.php | 179 - .../Bigtable/V2/ReadModifyWriteRowRequest.php | 302 -- .../V2/ReadModifyWriteRowResponse.php | 77 - .../Cloud/Bigtable/V2/ReadModifyWriteRule.php | 204 - .../Cloud/Bigtable/V2/ReadRowsRequest.php | 468 --- .../V2/ReadRowsRequest/RequestStatsView.php | 64 - .../Cloud/Bigtable/V2/ReadRowsResponse.php | 185 - .../V2/ReadRowsResponse/CellChunk.php | 557 --- .../Cloud/Bigtable/V2/RequestLatencyStats.php | 135 - .../Google/Cloud/Bigtable/V2/RequestStats.php | 80 - .../Cloud/Bigtable/V2/ResponseParams.php | 169 - .../Cloud/Bigtable/V2/ResultSetMetadata.php | 75 - .../src/Google/Cloud/Bigtable/V2/Row.php | 114 - .../Google/Cloud/Bigtable/V2/RowFilter.php | 990 ----- .../Cloud/Bigtable/V2/RowFilter/Chain.php | 75 - .../Cloud/Bigtable/V2/RowFilter/Condition.php | 186 - .../Bigtable/V2/RowFilter/Interleave.php | 156 - .../src/Google/Cloud/Bigtable/V2/RowRange.php | 183 - .../src/Google/Cloud/Bigtable/V2/RowSet.php | 101 - .../Bigtable/V2/SampleRowKeysRequest.php | 238 -- .../Bigtable/V2/SampleRowKeysResponse.php | 137 - .../Bigtable/V2/StreamContinuationToken.php | 113 - .../Bigtable/V2/StreamContinuationTokens.php | 69 - .../Cloud/Bigtable/V2/StreamPartition.php | 82 - .../Cloud/Bigtable/V2/TimestampRange.php | 101 - .../src/Google/Cloud/Bigtable/V2/Type.php | 521 --- .../Cloud/Bigtable/V2/Type/Aggregate.php | 277 -- .../HyperLogLogPlusPlusUniqueCount.php | 39 - .../Cloud/Bigtable/V2/Type/Aggregate/Max.php | 35 - .../Cloud/Bigtable/V2/Type/Aggregate/Min.php | 35 - .../Cloud/Bigtable/V2/Type/Aggregate/Sum.php | 35 - .../Google/Cloud/Bigtable/V2/Type/Bytes.php | 78 - .../Cloud/Bigtable/V2/Type/Bytes/Encoding.php | 75 - .../Bigtable/V2/Type/Bytes/Encoding/Raw.php | 77 - .../Google/Cloud/Bigtable/V2/Type/Date.php | 34 - .../Google/Cloud/Bigtable/V2/Type/Enum.php | 106 - .../Google/Cloud/Bigtable/V2/Type/Float32.php | 34 - .../Google/Cloud/Bigtable/V2/Type/Float64.php | 34 - .../Google/Cloud/Bigtable/V2/Type/Int64.php | 78 - .../Cloud/Bigtable/V2/Type/Int64/Encoding.php | 108 - .../V2/Type/Int64/Encoding/BigEndianBytes.php | 94 - .../Type/Int64/Encoding/OrderedCodeBytes.php | 36 - .../src/Google/Cloud/Bigtable/V2/Type/Map.php | 131 - .../Google/Cloud/Bigtable/V2/Type/PBArray.php | 78 - .../Google/Cloud/Bigtable/V2/Type/PBBool.php | 34 - .../Cloud/Bigtable/V2/Type/PBString.php | 78 - .../Bigtable/V2/Type/PBString/Encoding.php | 117 - .../V2/Type/PBString/Encoding/Utf8Bytes.php | 99 - .../V2/Type/PBString/Encoding/Utf8Raw.php | 34 - .../Google/Cloud/Bigtable/V2/Type/Proto.php | 106 - .../Google/Cloud/Bigtable/V2/Type/Struct.php | 114 - .../Bigtable/V2/Type/Struct/Encoding.php | 141 - .../Type/Struct/Encoding/DelimitedBytes.php | 81 - .../Type/Struct/Encoding/OrderedCodeBytes.php | 64 - .../V2/Type/Struct/Encoding/Singleton.php | 34 - .../Cloud/Bigtable/V2/Type/Struct/Field.php | 115 - .../Cloud/Bigtable/V2/Type/Timestamp.php | 78 - .../Bigtable/V2/Type/Timestamp/Encoding.php | 84 - .../src/Google/Cloud/Bigtable/V2/Value.php | 480 --- .../Google/Cloud/Bigtable/V2/ValueRange.php | 183 - .../BigtableClient/check_and_mutate_row.php | 79 - .../V2/BigtableClient/execute_query.php | 86 - ...erate_initial_change_stream_partitions.php | 82 - .../samples/V2/BigtableClient/mutate_row.php | 82 - .../samples/V2/BigtableClient/mutate_rows.php | 89 - .../V2/BigtableClient/ping_and_warm.php | 74 - .../V2/BigtableClient/prepare_query.php | 78 - .../V2/BigtableClient/read_change_stream.php | 82 - .../BigtableClient/read_modify_write_row.php | 86 - .../samples/V2/BigtableClient/read_rows.php | 83 - .../V2/BigtableClient/sample_row_keys.php | 82 - .../v2/src/V2/Client/BigtableClient.php | 633 ---- .../Bigtable/v2/src/V2/gapic_metadata.json | 73 - .../V2/resources/bigtable_client_config.json | 69 - .../resources/bigtable_descriptor_config.php | 289 -- .../resources/bigtable_rest_client_config.php | 250 -- .../Unit/V2/Client/BigtableClientTest.php | 966 ----- 404 files changed, 89 insertions(+), 64402 deletions(-) delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/BigtableInstanceAdmin.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/BigtableTableAdmin.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/Common.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/Instance.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/Table.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/Types.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/DataBoostIsolationReadOnly.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/DataBoostIsolationReadOnly/ComputeBillingOwner.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/MultiClusterRoutingUseAny.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/MultiClusterRoutingUseAny/RowAffinity.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/Priority.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/SingleClusterRouting.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/StandardIsolation.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AuthorizedView.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AuthorizedView/FamilySubsets.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AuthorizedView/ResponseView.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AuthorizedView/SubsetView.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AutoscalingLimits.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AutoscalingTargets.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Backup.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Backup/BackupType.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Backup/State.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/BackupInfo.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ChangeStreamConfig.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CheckConsistencyRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CheckConsistencyResponse.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/ClusterAutoscalingConfig.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/ClusterConfig.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/EncryptionConfig.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/NodeScalingFactor.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/State.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ColumnFamily.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CopyBackupMetadata.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CopyBackupRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateAppProfileRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateAuthorizedViewMetadata.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateAuthorizedViewRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateBackupMetadata.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateBackupRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateClusterMetadata.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateClusterMetadata/TableProgress.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateClusterMetadata/TableProgress/State.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateClusterRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateInstanceMetadata.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateInstanceRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateLogicalViewMetadata.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateLogicalViewRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateMaterializedViewMetadata.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateMaterializedViewRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateSchemaBundleMetadata.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateSchemaBundleRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateTableFromSnapshotMetadata.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateTableFromSnapshotRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateTableRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateTableRequest/Split.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DataBoostReadLocalWrites.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteAppProfileRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteAuthorizedViewRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteBackupRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteClusterRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteInstanceRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteLogicalViewRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteMaterializedViewRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteSchemaBundleRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteSnapshotRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteTableRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DropRowRangeRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/EncryptionInfo.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/EncryptionInfo/EncryptionType.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GcRule.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GcRule/Intersection.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GcRule/Union.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GenerateConsistencyTokenRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GenerateConsistencyTokenResponse.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetAppProfileRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetAuthorizedViewRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetBackupRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetClusterRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetInstanceRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetLogicalViewRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetMaterializedViewRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetSchemaBundleRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetSnapshotRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetTableRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/HotTablet.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Instance.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Instance/State.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Instance/Type.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListAppProfilesRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListAppProfilesResponse.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListAuthorizedViewsRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListAuthorizedViewsResponse.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListBackupsRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListBackupsResponse.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListClustersRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListClustersResponse.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListHotTabletsRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListHotTabletsResponse.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListInstancesRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListInstancesResponse.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListLogicalViewsRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListLogicalViewsResponse.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListMaterializedViewsRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListMaterializedViewsResponse.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListSchemaBundlesRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListSchemaBundlesResponse.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListSnapshotsRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListSnapshotsResponse.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListTablesRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListTablesResponse.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/LogicalView.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/MaterializedView.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ModifyColumnFamiliesRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ModifyColumnFamiliesRequest/Modification.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/OperationProgress.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/OptimizeRestoredTableMetadata.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/PartialUpdateClusterMetadata.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/PartialUpdateClusterRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/PartialUpdateInstanceRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ProtoSchema.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/RestoreInfo.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/RestoreSourceType.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/RestoreTableMetadata.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/RestoreTableRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/SchemaBundle.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Snapshot.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Snapshot/State.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/SnapshotTableMetadata.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/SnapshotTableRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/StandardReadRemoteWrites.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/StorageType.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/AutomatedBackupPolicy.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/ClusterState.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/ClusterState/ReplicationState.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/TimestampGranularity.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/View.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/TieredStorageConfig.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/TieredStorageRule.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate/HyperLogLogPlusPlusUniqueCount.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate/Max.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate/Min.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate/Sum.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Bytes.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Bytes/Encoding.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Bytes/Encoding/Raw.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Date.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Enum.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Float32.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Float64.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Int64.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Int64/Encoding.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Int64/Encoding/BigEndianBytes.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Int64/Encoding/OrderedCodeBytes.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Map.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBArray.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBBool.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBString.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBString/Encoding.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBString/Encoding/Utf8Bytes.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBString/Encoding/Utf8Raw.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Proto.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Encoding.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Encoding/DelimitedBytes.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Encoding/OrderedCodeBytes.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Encoding/Singleton.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Field.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Timestamp.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Timestamp/Encoding.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UndeleteTableMetadata.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UndeleteTableRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateAppProfileMetadata.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateAppProfileRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateAuthorizedViewMetadata.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateAuthorizedViewRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateBackupRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateClusterMetadata.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateInstanceMetadata.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateLogicalViewMetadata.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateLogicalViewRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateMaterializedViewMetadata.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateMaterializedViewRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateSchemaBundleMetadata.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateSchemaBundleRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateTableMetadata.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateTableRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_app_profile.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_cluster.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_instance.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_logical_view.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_materialized_view.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_app_profile.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_cluster.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_instance.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_logical_view.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_materialized_view.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_app_profile.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_cluster.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_iam_policy.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_instance.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_logical_view.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_materialized_view.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_app_profiles.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_clusters.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_hot_tablets.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_instances.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_logical_views.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_materialized_views.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/partial_update_cluster.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/partial_update_instance.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/set_iam_policy.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/test_iam_permissions.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_app_profile.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_cluster.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_instance.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_logical_view.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_materialized_view.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/check_consistency.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/copy_backup.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_authorized_view.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_backup.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_schema_bundle.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_table.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_table_from_snapshot.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_authorized_view.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_backup.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_schema_bundle.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_snapshot.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_table.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/drop_row_range.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/generate_consistency_token.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_authorized_view.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_backup.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_iam_policy.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_schema_bundle.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_snapshot.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_table.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_authorized_views.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_backups.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_schema_bundles.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_snapshots.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_tables.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/modify_column_families.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/restore_table.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/set_iam_policy.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/snapshot_table.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/test_iam_permissions.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/undelete_table.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/update_authorized_view.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/update_backup.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/update_schema_bundle.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/update_table.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/src/V2/Client/BigtableInstanceAdminClient.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/src/V2/Client/BigtableTableAdminClient.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/src/V2/gapic_metadata.json delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_instance_admin_client_config.json delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_instance_admin_descriptor_config.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_instance_admin_rest_client_config.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_table_admin_client_config.json delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_table_admin_descriptor_config.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_table_admin_rest_client_config.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/tests/Unit/V2/Client/BigtableInstanceAdminClientTest.php delete mode 100644 owl-bot-staging/Bigtable/v2/Admin/tests/Unit/V2/Client/BigtableTableAdminClientTest.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/Bigtable.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/Data.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/FeatureFlags.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/PeerInfo.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/RequestStats.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/ResponseParams.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/Types.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ArrayValue.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Cell.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/CheckAndMutateRowRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/CheckAndMutateRowResponse.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Column.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ColumnMetadata.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ColumnRange.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ExecuteQueryRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ExecuteQueryResponse.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Family.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/FeatureFlags.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/FullReadStatsView.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/GenerateInitialChangeStreamPartitionsRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/GenerateInitialChangeStreamPartitionsResponse.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Idempotency.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowResponse.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowsRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowsRequest/Entry.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowsResponse.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowsResponse/Entry.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/AddToCell.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/DeleteFromColumn.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/DeleteFromFamily.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/DeleteFromRow.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/MergeToCell.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/SetCell.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PartialResultSet.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PeerInfo.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PeerInfo/TransportType.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PingAndWarmRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PingAndWarmResponse.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PrepareQueryRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PrepareQueryResponse.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ProtoFormat.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ProtoRows.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ProtoRowsBatch.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ProtoSchema.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RateLimitInfo.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/CloseStream.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/DataChange.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/DataChange/Type.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/Heartbeat.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/MutationChunk.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/MutationChunk/ChunkInfo.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadIterationStats.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadModifyWriteRowRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadModifyWriteRowResponse.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadModifyWriteRule.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadRowsRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadRowsRequest/RequestStatsView.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadRowsResponse.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadRowsResponse/CellChunk.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RequestLatencyStats.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RequestStats.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ResponseParams.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ResultSetMetadata.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Row.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowFilter.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowFilter/Chain.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowFilter/Condition.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowFilter/Interleave.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowRange.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowSet.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/SampleRowKeysRequest.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/SampleRowKeysResponse.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/StreamContinuationToken.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/StreamContinuationTokens.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/StreamPartition.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/TimestampRange.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate/HyperLogLogPlusPlusUniqueCount.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate/Max.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate/Min.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate/Sum.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Bytes.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Bytes/Encoding.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Bytes/Encoding/Raw.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Date.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Enum.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Float32.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Float64.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Int64.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Int64/Encoding.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Int64/Encoding/BigEndianBytes.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Int64/Encoding/OrderedCodeBytes.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Map.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBArray.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBBool.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBString.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBString/Encoding.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBString/Encoding/Utf8Bytes.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBString/Encoding/Utf8Raw.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Proto.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Encoding.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Encoding/DelimitedBytes.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Encoding/OrderedCodeBytes.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Encoding/Singleton.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Field.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Timestamp.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Timestamp/Encoding.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Value.php delete mode 100644 owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ValueRange.php delete mode 100644 owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/check_and_mutate_row.php delete mode 100644 owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/execute_query.php delete mode 100644 owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/generate_initial_change_stream_partitions.php delete mode 100644 owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/mutate_row.php delete mode 100644 owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/mutate_rows.php delete mode 100644 owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/ping_and_warm.php delete mode 100644 owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/prepare_query.php delete mode 100644 owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/read_change_stream.php delete mode 100644 owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/read_modify_write_row.php delete mode 100644 owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/read_rows.php delete mode 100644 owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/sample_row_keys.php delete mode 100644 owl-bot-staging/Bigtable/v2/src/V2/Client/BigtableClient.php delete mode 100644 owl-bot-staging/Bigtable/v2/src/V2/gapic_metadata.json delete mode 100644 owl-bot-staging/Bigtable/v2/src/V2/resources/bigtable_client_config.json delete mode 100644 owl-bot-staging/Bigtable/v2/src/V2/resources/bigtable_descriptor_config.php delete mode 100644 owl-bot-staging/Bigtable/v2/src/V2/resources/bigtable_rest_client_config.php delete mode 100644 owl-bot-staging/Bigtable/v2/tests/Unit/V2/Client/BigtableClientTest.php diff --git a/Bigtable/metadata/Admin/V2/Table.php b/Bigtable/metadata/Admin/V2/Table.php index c765dbf15a86..ff6a09730acf 100644 --- a/Bigtable/metadata/Admin/V2/Table.php +++ b/Bigtable/metadata/Admin/V2/Table.php @@ -21,7 +21,7 @@ public static function initOnce() { \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); \GPBMetadata\Google\Rpc\Status::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xAF/\x0A\$google/bigtable/admin/v2/table.proto\x12\x18google.bigtable.admin.v2\x1A\x19google/api/resource.proto\x1A\$google/bigtable/admin/v2/types.proto\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x17google/rpc/status.proto\"\x9B\x01\x0A\x0BRestoreInfo\x12@\x0A\x0Bsource_type\x18\x01 \x01(\x0E2+.google.bigtable.admin.v2.RestoreSourceType\x12;\x0A\x0Bbackup_info\x18\x02 \x01(\x0B2\$.google.bigtable.admin.v2.BackupInfoH\x00B\x0D\x0A\x0Bsource_info\"I\x0A\x12ChangeStreamConfig\x123\x0A\x10retention_period\x18\x01 \x01(\x0B2\x19.google.protobuf.Duration\"\xE3\x0C\x0A\x05Table\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12O\x0A\x0Ecluster_states\x18\x02 \x03(\x0B22.google.bigtable.admin.v2.Table.ClusterStatesEntryB\x03\xE0A\x03\x12L\x0A\x0Fcolumn_families\x18\x03 \x03(\x0B23.google.bigtable.admin.v2.Table.ColumnFamiliesEntry\x12N\x0A\x0Bgranularity\x18\x04 \x01(\x0E24.google.bigtable.admin.v2.Table.TimestampGranularityB\x03\xE0A\x05\x12@\x0A\x0Crestore_info\x18\x06 \x01(\x0B2%.google.bigtable.admin.v2.RestoreInfoB\x03\xE0A\x03\x12J\x0A\x14change_stream_config\x18\x08 \x01(\x0B2,.google.bigtable.admin.v2.ChangeStreamConfig\x12\x1B\x0A\x13deletion_protection\x18\x09 \x01(\x08\x12X\x0A\x17automated_backup_policy\x18\x0D \x01(\x0B25.google.bigtable.admin.v2.Table.AutomatedBackupPolicyH\x00\x12L\x0A\x15tiered_storage_config\x18\x0E \x01(\x0B2-.google.bigtable.admin.v2.TieredStorageConfig\x12=\x0A\x0Erow_key_schema\x18\x0F \x01(\x0B2%.google.bigtable.admin.v2.Type.Struct\x1A\xC6\x02\x0A\x0CClusterState\x12]\x0A\x11replication_state\x18\x01 \x01(\x0E2=.google.bigtable.admin.v2.Table.ClusterState.ReplicationStateB\x03\xE0A\x03\x12F\x0A\x0Fencryption_info\x18\x02 \x03(\x0B2(.google.bigtable.admin.v2.EncryptionInfoB\x03\xE0A\x03\"\x8E\x01\x0A\x10ReplicationState\x12\x13\x0A\x0FSTATE_NOT_KNOWN\x10\x00\x12\x10\x0A\x0CINITIALIZING\x10\x01\x12\x17\x0A\x13PLANNED_MAINTENANCE\x10\x02\x12\x19\x0A\x15UNPLANNED_MAINTENANCE\x10\x03\x12\x09\x0A\x05READY\x10\x04\x12\x14\x0A\x10READY_OPTIMIZING\x10\x05\x1A\x84\x01\x0A\x15AutomatedBackupPolicy\x128\x0A\x10retention_period\x18\x01 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x02\x121\x0A\x09frequency\x18\x02 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x02\x1Ab\x0A\x12ClusterStatesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12;\x0A\x05value\x18\x02 \x01(\x0B2,.google.bigtable.admin.v2.Table.ClusterState:\x028\x01\x1A]\x0A\x13ColumnFamiliesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x125\x0A\x05value\x18\x02 \x01(\x0B2&.google.bigtable.admin.v2.ColumnFamily:\x028\x01\"I\x0A\x14TimestampGranularity\x12%\x0A!TIMESTAMP_GRANULARITY_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06MILLIS\x10\x01\"q\x0A\x04View\x12\x14\x0A\x10VIEW_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09NAME_ONLY\x10\x01\x12\x0F\x0A\x0BSCHEMA_VIEW\x10\x02\x12\x14\x0A\x10REPLICATION_VIEW\x10\x03\x12\x13\x0A\x0FENCRYPTION_VIEW\x10\x05\x12\x08\x0A\x04FULL\x10\x04:_\xEAA\\\x0A\"bigtableadmin.googleapis.com/Table\x126projects/{project}/instances/{instance}/tables/{table}B\x19\x0A\x17automated_backup_config\"\xE3\x05\x0A\x0EAuthorizedView\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12J\x0A\x0Bsubset_view\x18\x02 \x01(\x0B23.google.bigtable.admin.v2.AuthorizedView.SubsetViewH\x00\x12\x0C\x0A\x04etag\x18\x03 \x01(\x09\x12\x1B\x0A\x13deletion_protection\x18\x04 \x01(\x08\x1A?\x0A\x0DFamilySubsets\x12\x12\x0A\x0Aqualifiers\x18\x01 \x03(\x0C\x12\x1A\x0A\x12qualifier_prefixes\x18\x02 \x03(\x0C\x1A\xF0\x01\x0A\x0ASubsetView\x12\x14\x0A\x0Crow_prefixes\x18\x01 \x03(\x0C\x12^\x0A\x0Efamily_subsets\x18\x02 \x03(\x0B2F.google.bigtable.admin.v2.AuthorizedView.SubsetView.FamilySubsetsEntry\x1Al\x0A\x12FamilySubsetsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12E\x0A\x05value\x18\x02 \x01(\x0B26.google.bigtable.admin.v2.AuthorizedView.FamilySubsets:\x028\x01\"Q\x0A\x0CResponseView\x12\x1D\x0A\x19RESPONSE_VIEW_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09NAME_ONLY\x10\x01\x12\x09\x0A\x05BASIC\x10\x02\x12\x08\x0A\x04FULL\x10\x03:\xAC\x01\xEAA\xA8\x01\x0A+bigtableadmin.googleapis.com/AuthorizedView\x12Xprojects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}*\x0FauthorizedViews2\x0EauthorizedViewB\x11\x0A\x0Fauthorized_view\"u\x0A\x0CColumnFamily\x121\x0A\x07gc_rule\x18\x01 \x01(\x0B2 .google.bigtable.admin.v2.GcRule\x122\x0A\x0Avalue_type\x18\x03 \x01(\x0B2\x1E.google.bigtable.admin.v2.Type\"\xD5\x02\x0A\x06GcRule\x12\x1A\x0A\x10max_num_versions\x18\x01 \x01(\x05H\x00\x12,\x0A\x07max_age\x18\x02 \x01(\x0B2\x19.google.protobuf.DurationH\x00\x12E\x0A\x0Cintersection\x18\x03 \x01(\x0B2-.google.bigtable.admin.v2.GcRule.IntersectionH\x00\x127\x0A\x05union\x18\x04 \x01(\x0B2&.google.bigtable.admin.v2.GcRule.UnionH\x00\x1A?\x0A\x0CIntersection\x12/\x0A\x05rules\x18\x01 \x03(\x0B2 .google.bigtable.admin.v2.GcRule\x1A8\x0A\x05Union\x12/\x0A\x05rules\x18\x01 \x03(\x0B2 .google.bigtable.admin.v2.GcRuleB\x06\x0A\x04rule\"\xD9\x02\x0A\x0EEncryptionInfo\x12U\x0A\x0Fencryption_type\x18\x03 \x01(\x0E27.google.bigtable.admin.v2.EncryptionInfo.EncryptionTypeB\x03\xE0A\x03\x122\x0A\x11encryption_status\x18\x04 \x01(\x0B2\x12.google.rpc.StatusB\x03\xE0A\x03\x12I\x0A\x0Fkms_key_version\x18\x02 \x01(\x09B0\xE0A\x03\xFAA*\x0A(cloudkms.googleapis.com/CryptoKeyVersion\"q\x0A\x0EEncryptionType\x12\x1F\x0A\x1BENCRYPTION_TYPE_UNSPECIFIED\x10\x00\x12\x1D\x0A\x19GOOGLE_DEFAULT_ENCRYPTION\x10\x01\x12\x1F\x0A\x1BCUSTOMER_MANAGED_ENCRYPTION\x10\x02\"\xE0\x03\x0A\x08Snapshot\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12:\x0A\x0Csource_table\x18\x02 \x01(\x0B2\x1F.google.bigtable.admin.v2.TableB\x03\xE0A\x03\x12\x1C\x0A\x0Fdata_size_bytes\x18\x03 \x01(\x03B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12/\x0A\x0Bdelete_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12<\x0A\x05state\x18\x06 \x01(\x0E2(.google.bigtable.admin.v2.Snapshot.StateB\x03\xE0A\x03\x12\x13\x0A\x0Bdescription\x18\x07 \x01(\x09\"5\x0A\x05State\x12\x13\x0A\x0FSTATE_NOT_KNOWN\x10\x00\x12\x09\x0A\x05READY\x10\x01\x12\x0C\x0A\x08CREATING\x10\x02:{\xEAAx\x0A%bigtableadmin.googleapis.com/Snapshot\x12Oprojects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}\"\xF9\x05\x0A\x06Backup\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x1C\x0A\x0Csource_table\x18\x02 \x01(\x09B\x06\xE0A\x05\xE0A\x02\x12\x1A\x0A\x0Dsource_backup\x18\x0A \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bexpire_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x02\x123\x0A\x0Astart_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x121\x0A\x08end_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x17\x0A\x0Asize_bytes\x18\x06 \x01(\x03B\x03\xE0A\x03\x12:\x0A\x05state\x18\x07 \x01(\x0E2&.google.bigtable.admin.v2.Backup.StateB\x03\xE0A\x03\x12F\x0A\x0Fencryption_info\x18\x09 \x01(\x0B2(.google.bigtable.admin.v2.EncryptionInfoB\x03\xE0A\x03\x12@\x0A\x0Bbackup_type\x18\x0B \x01(\x0E2+.google.bigtable.admin.v2.Backup.BackupType\x128\x0A\x14hot_to_standard_time\x18\x0C \x01(\x0B2\x1A.google.protobuf.Timestamp\"7\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08CREATING\x10\x01\x12\x09\x0A\x05READY\x10\x02\"@\x0A\x0ABackupType\x12\x1B\x0A\x17BACKUP_TYPE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08STANDARD\x10\x01\x12\x07\x0A\x03HOT\x10\x02:u\xEAAr\x0A#bigtableadmin.googleapis.com/Backup\x12Kprojects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}\"\xC0\x01\x0A\x0ABackupInfo\x12\x13\x0A\x06backup\x18\x01 \x01(\x09B\x03\xE0A\x03\x123\x0A\x0Astart_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x121\x0A\x08end_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x19\x0A\x0Csource_table\x18\x04 \x01(\x09B\x03\xE0A\x03\x12\x1A\x0A\x0Dsource_backup\x18\x0A \x01(\x09B\x03\xE0A\x03\"]\x0A\x13TieredStorageConfig\x12F\x0A\x11infrequent_access\x18\x01 \x01(\x0B2+.google.bigtable.admin.v2.TieredStorageRule\"W\x0A\x11TieredStorageRule\x12:\x0A\x15include_if_older_than\x18\x01 \x01(\x0B2\x19.google.protobuf.DurationH\x00B\x06\x0A\x04rule\"-\x0A\x0BProtoSchema\x12\x1E\x0A\x11proto_descriptors\x18\x02 \x01(\x0CB\x03\xE0A\x02\"\xA0\x02\x0A\x0CSchemaBundle\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12=\x0A\x0Cproto_schema\x18\x02 \x01(\x0B2%.google.bigtable.admin.v2.ProtoSchemaH\x00\x12\x11\x0A\x04etag\x18\x03 \x01(\x09B\x03\xE0A\x01:\xA2\x01\xEAA\x9E\x01\x0A)bigtableadmin.googleapis.com/SchemaBundle\x12Tprojects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}*\x0DschemaBundles2\x0CschemaBundleB\x06\x0A\x04type*D\x0A\x11RestoreSourceType\x12#\x0A\x1FRESTORE_SOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06BACKUP\x10\x01B\xF7\x02\x0A\x1Ccom.google.bigtable.admin.v2B\x0ATableProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xAA\x02\x1EGoogle.Cloud.Bigtable.Admin.V2\xCA\x02\x1EGoogle\\Cloud\\Bigtable\\Admin\\V2\xEA\x02\"Google::Cloud::Bigtable::Admin::V2\xEAA\xA6\x01\x0A(cloudkms.googleapis.com/CryptoKeyVersion\x12zprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}b\x06proto3" + "\x0A\xE8/\x0A\$google/bigtable/admin/v2/table.proto\x12\x18google.bigtable.admin.v2\x1A\x19google/api/resource.proto\x1A\$google/bigtable/admin/v2/types.proto\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x17google/rpc/status.proto\"\x9B\x01\x0A\x0BRestoreInfo\x12@\x0A\x0Bsource_type\x18\x01 \x01(\x0E2+.google.bigtable.admin.v2.RestoreSourceType\x12;\x0A\x0Bbackup_info\x18\x02 \x01(\x0B2\$.google.bigtable.admin.v2.BackupInfoH\x00B\x0D\x0A\x0Bsource_info\"I\x0A\x12ChangeStreamConfig\x123\x0A\x10retention_period\x18\x01 \x01(\x0B2\x19.google.protobuf.Duration\"\x9C\x0D\x0A\x05Table\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12O\x0A\x0Ecluster_states\x18\x02 \x03(\x0B22.google.bigtable.admin.v2.Table.ClusterStatesEntryB\x03\xE0A\x03\x12L\x0A\x0Fcolumn_families\x18\x03 \x03(\x0B23.google.bigtable.admin.v2.Table.ColumnFamiliesEntry\x12N\x0A\x0Bgranularity\x18\x04 \x01(\x0E24.google.bigtable.admin.v2.Table.TimestampGranularityB\x03\xE0A\x05\x12@\x0A\x0Crestore_info\x18\x06 \x01(\x0B2%.google.bigtable.admin.v2.RestoreInfoB\x03\xE0A\x03\x12J\x0A\x14change_stream_config\x18\x08 \x01(\x0B2,.google.bigtable.admin.v2.ChangeStreamConfig\x12\x1B\x0A\x13deletion_protection\x18\x09 \x01(\x08\x12X\x0A\x17automated_backup_policy\x18\x0D \x01(\x0B25.google.bigtable.admin.v2.Table.AutomatedBackupPolicyH\x00\x12L\x0A\x15tiered_storage_config\x18\x0E \x01(\x0B2-.google.bigtable.admin.v2.TieredStorageConfig\x12=\x0A\x0Erow_key_schema\x18\x0F \x01(\x0B2%.google.bigtable.admin.v2.Type.Struct\x1A\xC6\x02\x0A\x0CClusterState\x12]\x0A\x11replication_state\x18\x01 \x01(\x0E2=.google.bigtable.admin.v2.Table.ClusterState.ReplicationStateB\x03\xE0A\x03\x12F\x0A\x0Fencryption_info\x18\x02 \x03(\x0B2(.google.bigtable.admin.v2.EncryptionInfoB\x03\xE0A\x03\"\x8E\x01\x0A\x10ReplicationState\x12\x13\x0A\x0FSTATE_NOT_KNOWN\x10\x00\x12\x10\x0A\x0CINITIALIZING\x10\x01\x12\x17\x0A\x13PLANNED_MAINTENANCE\x10\x02\x12\x19\x0A\x15UNPLANNED_MAINTENANCE\x10\x03\x12\x09\x0A\x05READY\x10\x04\x12\x14\x0A\x10READY_OPTIMIZING\x10\x05\x1A\xBD\x01\x0A\x15AutomatedBackupPolicy\x128\x0A\x10retention_period\x18\x01 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x02\x12,\x0A\x09frequency\x18\x02 \x01(\x0B2\x19.google.protobuf.Duration\x12<\x0A\x09locations\x18\x03 \x03(\x09B)\xE0A\x01\xFAA#\x0A!locations.googleapis.com/Location\x1Ab\x0A\x12ClusterStatesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12;\x0A\x05value\x18\x02 \x01(\x0B2,.google.bigtable.admin.v2.Table.ClusterState:\x028\x01\x1A]\x0A\x13ColumnFamiliesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x125\x0A\x05value\x18\x02 \x01(\x0B2&.google.bigtable.admin.v2.ColumnFamily:\x028\x01\"I\x0A\x14TimestampGranularity\x12%\x0A!TIMESTAMP_GRANULARITY_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06MILLIS\x10\x01\"q\x0A\x04View\x12\x14\x0A\x10VIEW_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09NAME_ONLY\x10\x01\x12\x0F\x0A\x0BSCHEMA_VIEW\x10\x02\x12\x14\x0A\x10REPLICATION_VIEW\x10\x03\x12\x13\x0A\x0FENCRYPTION_VIEW\x10\x05\x12\x08\x0A\x04FULL\x10\x04:_\xEAA\\\x0A\"bigtableadmin.googleapis.com/Table\x126projects/{project}/instances/{instance}/tables/{table}B\x19\x0A\x17automated_backup_config\"\xE3\x05\x0A\x0EAuthorizedView\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12J\x0A\x0Bsubset_view\x18\x02 \x01(\x0B23.google.bigtable.admin.v2.AuthorizedView.SubsetViewH\x00\x12\x0C\x0A\x04etag\x18\x03 \x01(\x09\x12\x1B\x0A\x13deletion_protection\x18\x04 \x01(\x08\x1A?\x0A\x0DFamilySubsets\x12\x12\x0A\x0Aqualifiers\x18\x01 \x03(\x0C\x12\x1A\x0A\x12qualifier_prefixes\x18\x02 \x03(\x0C\x1A\xF0\x01\x0A\x0ASubsetView\x12\x14\x0A\x0Crow_prefixes\x18\x01 \x03(\x0C\x12^\x0A\x0Efamily_subsets\x18\x02 \x03(\x0B2F.google.bigtable.admin.v2.AuthorizedView.SubsetView.FamilySubsetsEntry\x1Al\x0A\x12FamilySubsetsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12E\x0A\x05value\x18\x02 \x01(\x0B26.google.bigtable.admin.v2.AuthorizedView.FamilySubsets:\x028\x01\"Q\x0A\x0CResponseView\x12\x1D\x0A\x19RESPONSE_VIEW_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09NAME_ONLY\x10\x01\x12\x09\x0A\x05BASIC\x10\x02\x12\x08\x0A\x04FULL\x10\x03:\xAC\x01\xEAA\xA8\x01\x0A+bigtableadmin.googleapis.com/AuthorizedView\x12Xprojects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}*\x0FauthorizedViews2\x0EauthorizedViewB\x11\x0A\x0Fauthorized_view\"u\x0A\x0CColumnFamily\x121\x0A\x07gc_rule\x18\x01 \x01(\x0B2 .google.bigtable.admin.v2.GcRule\x122\x0A\x0Avalue_type\x18\x03 \x01(\x0B2\x1E.google.bigtable.admin.v2.Type\"\xD5\x02\x0A\x06GcRule\x12\x1A\x0A\x10max_num_versions\x18\x01 \x01(\x05H\x00\x12,\x0A\x07max_age\x18\x02 \x01(\x0B2\x19.google.protobuf.DurationH\x00\x12E\x0A\x0Cintersection\x18\x03 \x01(\x0B2-.google.bigtable.admin.v2.GcRule.IntersectionH\x00\x127\x0A\x05union\x18\x04 \x01(\x0B2&.google.bigtable.admin.v2.GcRule.UnionH\x00\x1A?\x0A\x0CIntersection\x12/\x0A\x05rules\x18\x01 \x03(\x0B2 .google.bigtable.admin.v2.GcRule\x1A8\x0A\x05Union\x12/\x0A\x05rules\x18\x01 \x03(\x0B2 .google.bigtable.admin.v2.GcRuleB\x06\x0A\x04rule\"\xD9\x02\x0A\x0EEncryptionInfo\x12U\x0A\x0Fencryption_type\x18\x03 \x01(\x0E27.google.bigtable.admin.v2.EncryptionInfo.EncryptionTypeB\x03\xE0A\x03\x122\x0A\x11encryption_status\x18\x04 \x01(\x0B2\x12.google.rpc.StatusB\x03\xE0A\x03\x12I\x0A\x0Fkms_key_version\x18\x02 \x01(\x09B0\xE0A\x03\xFAA*\x0A(cloudkms.googleapis.com/CryptoKeyVersion\"q\x0A\x0EEncryptionType\x12\x1F\x0A\x1BENCRYPTION_TYPE_UNSPECIFIED\x10\x00\x12\x1D\x0A\x19GOOGLE_DEFAULT_ENCRYPTION\x10\x01\x12\x1F\x0A\x1BCUSTOMER_MANAGED_ENCRYPTION\x10\x02\"\xE0\x03\x0A\x08Snapshot\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12:\x0A\x0Csource_table\x18\x02 \x01(\x0B2\x1F.google.bigtable.admin.v2.TableB\x03\xE0A\x03\x12\x1C\x0A\x0Fdata_size_bytes\x18\x03 \x01(\x03B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12/\x0A\x0Bdelete_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12<\x0A\x05state\x18\x06 \x01(\x0E2(.google.bigtable.admin.v2.Snapshot.StateB\x03\xE0A\x03\x12\x13\x0A\x0Bdescription\x18\x07 \x01(\x09\"5\x0A\x05State\x12\x13\x0A\x0FSTATE_NOT_KNOWN\x10\x00\x12\x09\x0A\x05READY\x10\x01\x12\x0C\x0A\x08CREATING\x10\x02:{\xEAAx\x0A%bigtableadmin.googleapis.com/Snapshot\x12Oprojects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}\"\xF9\x05\x0A\x06Backup\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x1C\x0A\x0Csource_table\x18\x02 \x01(\x09B\x06\xE0A\x05\xE0A\x02\x12\x1A\x0A\x0Dsource_backup\x18\x0A \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bexpire_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x02\x123\x0A\x0Astart_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x121\x0A\x08end_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x17\x0A\x0Asize_bytes\x18\x06 \x01(\x03B\x03\xE0A\x03\x12:\x0A\x05state\x18\x07 \x01(\x0E2&.google.bigtable.admin.v2.Backup.StateB\x03\xE0A\x03\x12F\x0A\x0Fencryption_info\x18\x09 \x01(\x0B2(.google.bigtable.admin.v2.EncryptionInfoB\x03\xE0A\x03\x12@\x0A\x0Bbackup_type\x18\x0B \x01(\x0E2+.google.bigtable.admin.v2.Backup.BackupType\x128\x0A\x14hot_to_standard_time\x18\x0C \x01(\x0B2\x1A.google.protobuf.Timestamp\"7\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08CREATING\x10\x01\x12\x09\x0A\x05READY\x10\x02\"@\x0A\x0ABackupType\x12\x1B\x0A\x17BACKUP_TYPE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08STANDARD\x10\x01\x12\x07\x0A\x03HOT\x10\x02:u\xEAAr\x0A#bigtableadmin.googleapis.com/Backup\x12Kprojects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}\"\xC0\x01\x0A\x0ABackupInfo\x12\x13\x0A\x06backup\x18\x01 \x01(\x09B\x03\xE0A\x03\x123\x0A\x0Astart_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x121\x0A\x08end_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x19\x0A\x0Csource_table\x18\x04 \x01(\x09B\x03\xE0A\x03\x12\x1A\x0A\x0Dsource_backup\x18\x0A \x01(\x09B\x03\xE0A\x03\"]\x0A\x13TieredStorageConfig\x12F\x0A\x11infrequent_access\x18\x01 \x01(\x0B2+.google.bigtable.admin.v2.TieredStorageRule\"W\x0A\x11TieredStorageRule\x12:\x0A\x15include_if_older_than\x18\x01 \x01(\x0B2\x19.google.protobuf.DurationH\x00B\x06\x0A\x04rule\"-\x0A\x0BProtoSchema\x12\x1E\x0A\x11proto_descriptors\x18\x02 \x01(\x0CB\x03\xE0A\x02\"\xA0\x02\x0A\x0CSchemaBundle\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12=\x0A\x0Cproto_schema\x18\x02 \x01(\x0B2%.google.bigtable.admin.v2.ProtoSchemaH\x00\x12\x11\x0A\x04etag\x18\x03 \x01(\x09B\x03\xE0A\x01:\xA2\x01\xEAA\x9E\x01\x0A)bigtableadmin.googleapis.com/SchemaBundle\x12Tprojects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}*\x0DschemaBundles2\x0CschemaBundleB\x06\x0A\x04type*D\x0A\x11RestoreSourceType\x12#\x0A\x1FRESTORE_SOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06BACKUP\x10\x01B\xF7\x02\x0A\x1Ccom.google.bigtable.admin.v2B\x0ATableProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xAA\x02\x1EGoogle.Cloud.Bigtable.Admin.V2\xCA\x02\x1EGoogle\\Cloud\\Bigtable\\Admin\\V2\xEA\x02\"Google::Cloud::Bigtable::Admin::V2\xEAA\xA6\x01\x0A(cloudkms.googleapis.com/CryptoKeyVersion\x12zprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}b\x06proto3" , true); static::$is_initialized = true; diff --git a/Bigtable/src/Admin/V2/Client/BigtableTableAdminClient.php b/Bigtable/src/Admin/V2/Client/BigtableTableAdminClient.php index 58bba9230522..0cf2d295fe4d 100644 --- a/Bigtable/src/Admin/V2/Client/BigtableTableAdminClient.php +++ b/Bigtable/src/Admin/V2/Client/BigtableTableAdminClient.php @@ -343,6 +343,23 @@ public static function instanceName(string $project, string $instance): string ]); } + /** + * Formats a string containing the fully-qualified path to represent a location + * resource. + * + * @param string $project + * @param string $location + * + * @return string The formatted location resource. + */ + public static function locationName(string $project, string $location): string + { + return self::getPathTemplate('location')->render([ + 'project' => $project, + 'location' => $location, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a * schema_bundle resource. @@ -413,6 +430,7 @@ public static function tableName(string $project, string $instance, string $tabl * - cluster: projects/{project}/instances/{instance}/clusters/{cluster} * - cryptoKeyVersion: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version} * - instance: projects/{project}/instances/{instance} + * - location: projects/{project}/locations/{location} * - schemaBundle: projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle} * - snapshot: projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot} * - table: projects/{project}/instances/{instance}/tables/{table} diff --git a/Bigtable/src/Admin/V2/Table/AutomatedBackupPolicy.php b/Bigtable/src/Admin/V2/Table/AutomatedBackupPolicy.php index 197cff0389f3..991c00e9a126 100644 --- a/Bigtable/src/Admin/V2/Table/AutomatedBackupPolicy.php +++ b/Bigtable/src/Admin/V2/Table/AutomatedBackupPolicy.php @@ -16,19 +16,29 @@ class AutomatedBackupPolicy extends \Google\Protobuf\Internal\Message { /** - * Required. How long the automated backups should be retained. The only - * supported value at this time is 3 days. + * Required. How long the automated backups should be retained. Values must + * be at least 3 days and at most 90 days. * * Generated from protobuf field .google.protobuf.Duration retention_period = 1 [(.google.api.field_behavior) = REQUIRED]; */ protected $retention_period = null; /** - * Required. How frequently automated backups should occur. The only - * supported value at this time is 24 hours. + * How frequently automated backups should occur. The only supported value + * at this time is 24 hours. An undefined frequency is treated as 24 hours. * - * Generated from protobuf field .google.protobuf.Duration frequency = 2 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field .google.protobuf.Duration frequency = 2; */ protected $frequency = null; + /** + * Optional. A list of Cloud Bigtable zones where automated backups are + * allowed to be created. If empty, automated backups will be created in all + * zones of the instance. Locations are in the format + * `projects/{project}/locations/{zone}`. + * This field can only set for tables in Enterprise Plus instances. + * + * Generated from protobuf field repeated string locations = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $locations; /** * Constructor. @@ -37,11 +47,17 @@ class AutomatedBackupPolicy extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type \Google\Protobuf\Duration $retention_period - * Required. How long the automated backups should be retained. The only - * supported value at this time is 3 days. + * Required. How long the automated backups should be retained. Values must + * be at least 3 days and at most 90 days. * @type \Google\Protobuf\Duration $frequency - * Required. How frequently automated backups should occur. The only - * supported value at this time is 24 hours. + * How frequently automated backups should occur. The only supported value + * at this time is 24 hours. An undefined frequency is treated as 24 hours. + * @type string[] $locations + * Optional. A list of Cloud Bigtable zones where automated backups are + * allowed to be created. If empty, automated backups will be created in all + * zones of the instance. Locations are in the format + * `projects/{project}/locations/{zone}`. + * This field can only set for tables in Enterprise Plus instances. * } */ public function __construct($data = NULL) { @@ -50,8 +66,8 @@ public function __construct($data = NULL) { } /** - * Required. How long the automated backups should be retained. The only - * supported value at this time is 3 days. + * Required. How long the automated backups should be retained. Values must + * be at least 3 days and at most 90 days. * * Generated from protobuf field .google.protobuf.Duration retention_period = 1 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Protobuf\Duration|null @@ -72,8 +88,8 @@ public function clearRetentionPeriod() } /** - * Required. How long the automated backups should be retained. The only - * supported value at this time is 3 days. + * Required. How long the automated backups should be retained. Values must + * be at least 3 days and at most 90 days. * * Generated from protobuf field .google.protobuf.Duration retention_period = 1 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Protobuf\Duration $var @@ -88,10 +104,10 @@ public function setRetentionPeriod($var) } /** - * Required. How frequently automated backups should occur. The only - * supported value at this time is 24 hours. + * How frequently automated backups should occur. The only supported value + * at this time is 24 hours. An undefined frequency is treated as 24 hours. * - * Generated from protobuf field .google.protobuf.Duration frequency = 2 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field .google.protobuf.Duration frequency = 2; * @return \Google\Protobuf\Duration|null */ public function getFrequency() @@ -110,10 +126,10 @@ public function clearFrequency() } /** - * Required. How frequently automated backups should occur. The only - * supported value at this time is 24 hours. + * How frequently automated backups should occur. The only supported value + * at this time is 24 hours. An undefined frequency is treated as 24 hours. * - * Generated from protobuf field .google.protobuf.Duration frequency = 2 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field .google.protobuf.Duration frequency = 2; * @param \Google\Protobuf\Duration $var * @return $this */ @@ -125,5 +141,39 @@ public function setFrequency($var) return $this; } + /** + * Optional. A list of Cloud Bigtable zones where automated backups are + * allowed to be created. If empty, automated backups will be created in all + * zones of the instance. Locations are in the format + * `projects/{project}/locations/{zone}`. + * This field can only set for tables in Enterprise Plus instances. + * + * Generated from protobuf field repeated string locations = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getLocations() + { + return $this->locations; + } + + /** + * Optional. A list of Cloud Bigtable zones where automated backups are + * allowed to be created. If empty, automated backups will be created in all + * zones of the instance. Locations are in the format + * `projects/{project}/locations/{zone}`. + * This field can only set for tables in Enterprise Plus instances. + * + * Generated from protobuf field repeated string locations = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->locations = $arr; + + return $this; + } + } diff --git a/Bigtable/src/Admin/V2/resources/bigtable_table_admin_descriptor_config.php b/Bigtable/src/Admin/V2/resources/bigtable_table_admin_descriptor_config.php index 6c4b7996ee08..2366687fe984 100644 --- a/Bigtable/src/Admin/V2/resources/bigtable_table_admin_descriptor_config.php +++ b/Bigtable/src/Admin/V2/resources/bigtable_table_admin_descriptor_config.php @@ -570,6 +570,7 @@ 'cluster' => 'projects/{project}/instances/{instance}/clusters/{cluster}', 'cryptoKeyVersion' => 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}', 'instance' => 'projects/{project}/instances/{instance}', + 'location' => 'projects/{project}/locations/{location}', 'schemaBundle' => 'projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}', 'snapshot' => 'projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}', 'table' => 'projects/{project}/instances/{instance}/tables/{table}', diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/BigtableInstanceAdmin.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/BigtableInstanceAdmin.php deleted file mode 100644 index 51a2dba513a4..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/BigtableInstanceAdmin.php +++ /dev/null @@ -1,35 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xDDp\x0A6google/bigtable/admin/v2/bigtable_instance_admin.proto\x12\x18google.bigtable.admin.v2\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A'google/bigtable/admin/v2/instance.proto\x1A\x1Egoogle/iam/v1/iam_policy.proto\x1A\x1Agoogle/iam/v1/policy.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xDB\x02\x0A\x15CreateInstanceRequest\x12C\x0A\x06parent\x18\x01 \x01(\x09B3\xE0A\x02\xFAA-\x0A+cloudresourcemanager.googleapis.com/Project\x12\x18\x0A\x0Binstance_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x129\x0A\x08instance\x18\x03 \x01(\x0B2\".google.bigtable.admin.v2.InstanceB\x03\xE0A\x02\x12T\x0A\x08clusters\x18\x04 \x03(\x0B2=.google.bigtable.admin.v2.CreateInstanceRequest.ClustersEntryB\x03\xE0A\x02\x1AR\x0A\x0DClustersEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x120\x0A\x05value\x18\x02 \x01(\x0B2!.google.bigtable.admin.v2.Cluster:\x028\x01\"Q\x0A\x12GetInstanceRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%bigtableadmin.googleapis.com/Instance\"o\x0A\x14ListInstancesRequest\x12C\x0A\x06parent\x18\x01 \x01(\x09B3\xE0A\x02\xFAA-\x0A+cloudresourcemanager.googleapis.com/Project\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\"\x81\x01\x0A\x15ListInstancesResponse\x125\x0A\x09instances\x18\x01 \x03(\x0B2\".google.bigtable.admin.v2.Instance\x12\x18\x0A\x10failed_locations\x18\x02 \x03(\x09\x12\x17\x0A\x0Fnext_page_token\x18\x03 \x01(\x09\"\x8F\x01\x0A\x1CPartialUpdateInstanceRequest\x129\x0A\x08instance\x18\x01 \x01(\x0B2\".google.bigtable.admin.v2.InstanceB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\"T\x0A\x15DeleteInstanceRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%bigtableadmin.googleapis.com/Instance\"\xA7\x01\x0A\x14CreateClusterRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%bigtableadmin.googleapis.com/Instance\x12\x17\x0A\x0Acluster_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x127\x0A\x07cluster\x18\x03 \x01(\x0B2!.google.bigtable.admin.v2.ClusterB\x03\xE0A\x02\"O\x0A\x11GetClusterRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$bigtableadmin.googleapis.com/Cluster\"h\x0A\x13ListClustersRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%bigtableadmin.googleapis.com/Instance\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\"~\x0A\x14ListClustersResponse\x123\x0A\x08clusters\x18\x01 \x03(\x0B2!.google.bigtable.admin.v2.Cluster\x12\x18\x0A\x10failed_locations\x18\x02 \x03(\x09\x12\x17\x0A\x0Fnext_page_token\x18\x03 \x01(\x09\"R\x0A\x14DeleteClusterRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$bigtableadmin.googleapis.com/Cluster\"\xC6\x01\x0A\x16CreateInstanceMetadata\x12I\x0A\x10original_request\x18\x01 \x01(\x0B2/.google.bigtable.admin.v2.CreateInstanceRequest\x120\x0A\x0Crequest_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bfinish_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\"\xCD\x01\x0A\x16UpdateInstanceMetadata\x12P\x0A\x10original_request\x18\x01 \x01(\x0B26.google.bigtable.admin.v2.PartialUpdateInstanceRequest\x120\x0A\x0Crequest_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bfinish_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\"\xFB\x04\x0A\x15CreateClusterMetadata\x12H\x0A\x10original_request\x18\x01 \x01(\x0B2..google.bigtable.admin.v2.CreateClusterRequest\x120\x0A\x0Crequest_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bfinish_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12K\x0A\x06tables\x18\x04 \x03(\x0B2;.google.bigtable.admin.v2.CreateClusterMetadata.TablesEntry\x1A\xF9\x01\x0A\x0DTableProgress\x12\x1C\x0A\x14estimated_size_bytes\x18\x02 \x01(\x03\x12\x1E\x0A\x16estimated_copied_bytes\x18\x03 \x01(\x03\x12R\x0A\x05state\x18\x04 \x01(\x0E2C.google.bigtable.admin.v2.CreateClusterMetadata.TableProgress.State\"V\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PENDING\x10\x01\x12\x0B\x0A\x07COPYING\x10\x02\x12\x0D\x0A\x09COMPLETED\x10\x03\x12\x0D\x0A\x09CANCELLED\x10\x04\x1Al\x0A\x0BTablesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12L\x0A\x05value\x18\x02 \x01(\x0B2=.google.bigtable.admin.v2.CreateClusterMetadata.TableProgress:\x028\x01\"\xB7\x01\x0A\x15UpdateClusterMetadata\x12;\x0A\x10original_request\x18\x01 \x01(\x0B2!.google.bigtable.admin.v2.Cluster\x120\x0A\x0Crequest_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bfinish_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\"\xD2\x01\x0A\x1CPartialUpdateClusterMetadata\x120\x0A\x0Crequest_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bfinish_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12O\x0A\x10original_request\x18\x03 \x01(\x0B25.google.bigtable.admin.v2.PartialUpdateClusterRequest\"\x8C\x01\x0A\x1BPartialUpdateClusterRequest\x127\x0A\x07cluster\x18\x01 \x01(\x0B2!.google.bigtable.admin.v2.ClusterB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\"\xCE\x01\x0A\x17CreateAppProfileRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%bigtableadmin.googleapis.com/Instance\x12\x1B\x0A\x0Eapp_profile_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12>\x0A\x0Bapp_profile\x18\x03 \x01(\x0B2\$.google.bigtable.admin.v2.AppProfileB\x03\xE0A\x02\x12\x17\x0A\x0Fignore_warnings\x18\x04 \x01(\x08\"U\x0A\x14GetAppProfileRequest\x12=\x0A\x04name\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x0A'bigtableadmin.googleapis.com/AppProfile\"~\x0A\x16ListAppProfilesRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%bigtableadmin.googleapis.com/Instance\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\"\x88\x01\x0A\x17ListAppProfilesResponse\x12:\x0A\x0Capp_profiles\x18\x01 \x03(\x0B2\$.google.bigtable.admin.v2.AppProfile\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x18\x0A\x10failed_locations\x18\x03 \x03(\x09\"\xA8\x01\x0A\x17UpdateAppProfileRequest\x12>\x0A\x0Bapp_profile\x18\x01 \x01(\x0B2\$.google.bigtable.admin.v2.AppProfileB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x17\x0A\x0Fignore_warnings\x18\x03 \x01(\x08\"v\x0A\x17DeleteAppProfileRequest\x12=\x0A\x04name\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x0A'bigtableadmin.googleapis.com/AppProfile\x12\x1C\x0A\x0Fignore_warnings\x18\x02 \x01(\x08B\x03\xE0A\x02\"\x1A\x0A\x18UpdateAppProfileMetadata\"\xDA\x01\x0A\x15ListHotTabletsRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$bigtableadmin.googleapis.com/Cluster\x12.\x0A\x0Astart_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x11\x0A\x09page_size\x18\x04 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x05 \x01(\x09\"k\x0A\x16ListHotTabletsResponse\x128\x0A\x0Bhot_tablets\x18\x01 \x03(\x0B2#.google.bigtable.admin.v2.HotTablet\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xB9\x01\x0A\x18CreateLogicalViewRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%bigtableadmin.googleapis.com/Instance\x12\x1C\x0A\x0Flogical_view_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12@\x0A\x0Clogical_view\x18\x03 \x01(\x0B2%.google.bigtable.admin.v2.LogicalViewB\x03\xE0A\x02\"\xC7\x01\x0A\x19CreateLogicalViewMetadata\x12L\x0A\x10original_request\x18\x01 \x01(\x0B22.google.bigtable.admin.v2.CreateLogicalViewRequest\x12.\x0A\x0Astart_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\"W\x0A\x15GetLogicalViewRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(bigtableadmin.googleapis.com/LogicalView\"\x8C\x01\x0A\x17ListLogicalViewsRequest\x12@\x0A\x06parent\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x12(bigtableadmin.googleapis.com/LogicalView\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"q\x0A\x18ListLogicalViewsResponse\x12<\x0A\x0Dlogical_views\x18\x01 \x03(\x0B2%.google.bigtable.admin.v2.LogicalView\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x92\x01\x0A\x18UpdateLogicalViewRequest\x12@\x0A\x0Clogical_view\x18\x01 \x01(\x0B2%.google.bigtable.admin.v2.LogicalViewB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"\xC7\x01\x0A\x19UpdateLogicalViewMetadata\x12L\x0A\x10original_request\x18\x01 \x01(\x0B22.google.bigtable.admin.v2.UpdateLogicalViewRequest\x12.\x0A\x0Astart_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\"m\x0A\x18DeleteLogicalViewRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(bigtableadmin.googleapis.com/LogicalView\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\"\xCD\x01\x0A\x1DCreateMaterializedViewRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%bigtableadmin.googleapis.com/Instance\x12!\x0A\x14materialized_view_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12J\x0A\x11materialized_view\x18\x03 \x01(\x0B2*.google.bigtable.admin.v2.MaterializedViewB\x03\xE0A\x02\"\xD1\x01\x0A\x1ECreateMaterializedViewMetadata\x12Q\x0A\x10original_request\x18\x01 \x01(\x0B27.google.bigtable.admin.v2.CreateMaterializedViewRequest\x12.\x0A\x0Astart_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\"a\x0A\x1AGetMaterializedViewRequest\x12C\x0A\x04name\x18\x01 \x01(\x09B5\xE0A\x02\xFAA/\x0A-bigtableadmin.googleapis.com/MaterializedView\"\x96\x01\x0A\x1CListMaterializedViewsRequest\x12E\x0A\x06parent\x18\x01 \x01(\x09B5\xE0A\x02\xFAA/\x12-bigtableadmin.googleapis.com/MaterializedView\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"\x80\x01\x0A\x1DListMaterializedViewsResponse\x12F\x0A\x12materialized_views\x18\x01 \x03(\x0B2*.google.bigtable.admin.v2.MaterializedView\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xA1\x01\x0A\x1DUpdateMaterializedViewRequest\x12J\x0A\x11materialized_view\x18\x01 \x01(\x0B2*.google.bigtable.admin.v2.MaterializedViewB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"\xD1\x01\x0A\x1EUpdateMaterializedViewMetadata\x12Q\x0A\x10original_request\x18\x01 \x01(\x0B27.google.bigtable.admin.v2.UpdateMaterializedViewRequest\x12.\x0A\x0Astart_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\"w\x0A\x1DDeleteMaterializedViewRequest\x12C\x0A\x04name\x18\x01 \x01(\x09B5\xE0A\x02\xFAA/\x0A-bigtableadmin.googleapis.com/MaterializedView\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x012\xE66\x0A\x15BigtableInstanceAdmin\x12\xDA\x01\x0A\x0ECreateInstance\x12/.google.bigtable.admin.v2.CreateInstanceRequest\x1A\x1D.google.longrunning.Operation\"x\xCAA\"\x0A\x08Instance\x12\x16CreateInstanceMetadata\xDAA\$parent,instance_id,instance,clusters\x82\xD3\xE4\x93\x02&\"!/v2/{parent=projects/*}/instances:\x01*\x12\x91\x01\x0A\x0BGetInstance\x12,.google.bigtable.admin.v2.GetInstanceRequest\x1A\".google.bigtable.admin.v2.Instance\"0\xDAA\x04name\x82\xD3\xE4\x93\x02#\x12!/v2/{name=projects/*/instances/*}\x12\xA4\x01\x0A\x0DListInstances\x12..google.bigtable.admin.v2.ListInstancesRequest\x1A/.google.bigtable.admin.v2.ListInstancesResponse\"2\xDAA\x06parent\x82\xD3\xE4\x93\x02#\x12!/v2/{parent=projects/*}/instances\x12\x86\x01\x0A\x0EUpdateInstance\x12\".google.bigtable.admin.v2.Instance\x1A\".google.bigtable.admin.v2.Instance\",\x82\xD3\xE4\x93\x02&\x1A!/v2/{name=projects/*/instances/*}:\x01*\x12\xE8\x01\x0A\x15PartialUpdateInstance\x126.google.bigtable.admin.v2.PartialUpdateInstanceRequest\x1A\x1D.google.longrunning.Operation\"x\xCAA\"\x0A\x08Instance\x12\x16UpdateInstanceMetadata\xDAA\x14instance,update_mask\x82\xD3\xE4\x93\x0262*/v2/{instance.name=projects/*/instances/*}:\x08instance\x12\x8B\x01\x0A\x0EDeleteInstance\x12/.google.bigtable.admin.v2.DeleteInstanceRequest\x1A\x16.google.protobuf.Empty\"0\xDAA\x04name\x82\xD3\xE4\x93\x02#*!/v2/{name=projects/*/instances/*}\x12\xDC\x01\x0A\x0DCreateCluster\x12..google.bigtable.admin.v2.CreateClusterRequest\x1A\x1D.google.longrunning.Operation\"|\xCAA \x0A\x07Cluster\x12\x15CreateClusterMetadata\xDAA\x19parent,cluster_id,cluster\x82\xD3\xE4\x93\x027\",/v2/{parent=projects/*/instances/*}/clusters:\x07cluster\x12\x99\x01\x0A\x0AGetCluster\x12+.google.bigtable.admin.v2.GetClusterRequest\x1A!.google.bigtable.admin.v2.Cluster\";\xDAA\x04name\x82\xD3\xE4\x93\x02.\x12,/v2/{name=projects/*/instances/*/clusters/*}\x12\xAC\x01\x0A\x0CListClusters\x12-.google.bigtable.admin.v2.ListClustersRequest\x1A..google.bigtable.admin.v2.ListClustersResponse\"=\xDAA\x06parent\x82\xD3\xE4\x93\x02.\x12,/v2/{parent=projects/*/instances/*}/clusters\x12\xAD\x01\x0A\x0DUpdateCluster\x12!.google.bigtable.admin.v2.Cluster\x1A\x1D.google.longrunning.Operation\"Z\xCAA \x0A\x07Cluster\x12\x15UpdateClusterMetadata\x82\xD3\xE4\x93\x021\x1A,/v2/{name=projects/*/instances/*/clusters/*}:\x01*\x12\xF4\x01\x0A\x14PartialUpdateCluster\x125.google.bigtable.admin.v2.PartialUpdateClusterRequest\x1A\x1D.google.longrunning.Operation\"\x85\x01\xCAA'\x0A\x07Cluster\x12\x1CPartialUpdateClusterMetadata\xDAA\x13cluster,update_mask\x82\xD3\xE4\x93\x02?24/v2/{cluster.name=projects/*/instances/*/clusters/*}:\x07cluster\x12\x94\x01\x0A\x0DDeleteCluster\x12..google.bigtable.admin.v2.DeleteClusterRequest\x1A\x16.google.protobuf.Empty\";\xDAA\x04name\x82\xD3\xE4\x93\x02.*,/v2/{name=projects/*/instances/*/clusters/*}\x12\xD5\x01\x0A\x10CreateAppProfile\x121.google.bigtable.admin.v2.CreateAppProfileRequest\x1A\$.google.bigtable.admin.v2.AppProfile\"h\xDAA!parent,app_profile_id,app_profile\x82\xD3\xE4\x93\x02>\"//v2/{parent=projects/*/instances/*}/appProfiles:\x0Bapp_profile\x12\xA5\x01\x0A\x0DGetAppProfile\x12..google.bigtable.admin.v2.GetAppProfileRequest\x1A\$.google.bigtable.admin.v2.AppProfile\">\xDAA\x04name\x82\xD3\xE4\x93\x021\x12//v2/{name=projects/*/instances/*/appProfiles/*}\x12\xB8\x01\x0A\x0FListAppProfiles\x120.google.bigtable.admin.v2.ListAppProfilesRequest\x1A1.google.bigtable.admin.v2.ListAppProfilesResponse\"@\xDAA\x06parent\x82\xD3\xE4\x93\x021\x12//v2/{parent=projects/*/instances/*}/appProfiles\x12\xFA\x01\x0A\x10UpdateAppProfile\x121.google.bigtable.admin.v2.UpdateAppProfileRequest\x1A\x1D.google.longrunning.Operation\"\x93\x01\xCAA&\x0A\x0AAppProfile\x12\x18UpdateAppProfileMetadata\xDAA\x17app_profile,update_mask\x82\xD3\xE4\x93\x02J2;/v2/{app_profile.name=projects/*/instances/*/appProfiles/*}:\x0Bapp_profile\x12\xB4\x01\x0A\x10DeleteAppProfile\x121.google.bigtable.admin.v2.DeleteAppProfileRequest\x1A\x16.google.protobuf.Empty\"U\xDAA\x04name\xDAA\x14name,ignore_warnings\x82\xD3\xE4\x93\x021*//v2/{name=projects/*/instances/*/appProfiles/*}\x12\xAA\x02\x0A\x0CGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1A\x15.google.iam.v1.Policy\"\xDE\x01\xDAA\x08resource\x82\xD3\xE4\x93\x02\xCC\x01\"2/v2/{resource=projects/*/instances/*}:getIamPolicy:\x01*ZK\"F/v2/{resource=projects/*/instances/*/materializedViews/*}:getIamPolicy:\x01*ZF\"A/v2/{resource=projects/*/instances/*/logicalViews/*}:getIamPolicy:\x01*\x12\xB1\x02\x0A\x0CSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1A\x15.google.iam.v1.Policy\"\xE5\x01\xDAA\x0Fresource,policy\x82\xD3\xE4\x93\x02\xCC\x01\"2/v2/{resource=projects/*/instances/*}:setIamPolicy:\x01*ZK\"F/v2/{resource=projects/*/instances/*/materializedViews/*}:setIamPolicy:\x01*ZF\"A/v2/{resource=projects/*/instances/*/logicalViews/*}:setIamPolicy:\x01*\x12\xE8\x02\x0A\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1A).google.iam.v1.TestIamPermissionsResponse\"\xFC\x01\xDAA\x14resource,permissions\x82\xD3\xE4\x93\x02\xDE\x01\"8/v2/{resource=projects/*/instances/*}:testIamPermissions:\x01*ZQ\"L/v2/{resource=projects/*/instances/*/materializedViews/*}:testIamPermissions:\x01*ZL\"G/v2/{resource=projects/*/instances/*/logicalViews/*}:testIamPermissions:\x01*\x12\xBF\x01\x0A\x0EListHotTablets\x12/.google.bigtable.admin.v2.ListHotTabletsRequest\x1A0.google.bigtable.admin.v2.ListHotTabletsResponse\"J\xDAA\x06parent\x82\xD3\xE4\x93\x02;\x129/v2/{parent=projects/*/instances/*/clusters/*}/hotTablets\x12\x80\x02\x0A\x11CreateLogicalView\x122.google.bigtable.admin.v2.CreateLogicalViewRequest\x1A\x1D.google.longrunning.Operation\"\x97\x01\xCAA(\x0A\x0BLogicalView\x12\x19CreateLogicalViewMetadata\xDAA#parent,logical_view,logical_view_id\x82\xD3\xE4\x93\x02@\"0/v2/{parent=projects/*/instances/*}/logicalViews:\x0Clogical_view\x12\xA9\x01\x0A\x0EGetLogicalView\x12/.google.bigtable.admin.v2.GetLogicalViewRequest\x1A%.google.bigtable.admin.v2.LogicalView\"?\xDAA\x04name\x82\xD3\xE4\x93\x022\x120/v2/{name=projects/*/instances/*/logicalViews/*}\x12\xBC\x01\x0A\x10ListLogicalViews\x121.google.bigtable.admin.v2.ListLogicalViewsRequest\x1A2.google.bigtable.admin.v2.ListLogicalViewsResponse\"A\xDAA\x06parent\x82\xD3\xE4\x93\x022\x120/v2/{parent=projects/*/instances/*}/logicalViews\x12\x82\x02\x0A\x11UpdateLogicalView\x122.google.bigtable.admin.v2.UpdateLogicalViewRequest\x1A\x1D.google.longrunning.Operation\"\x99\x01\xCAA(\x0A\x0BLogicalView\x12\x19UpdateLogicalViewMetadata\xDAA\x18logical_view,update_mask\x82\xD3\xE4\x93\x02M2=/v2/{logical_view.name=projects/*/instances/*/logicalViews/*}:\x0Clogical_view\x12\xA0\x01\x0A\x11DeleteLogicalView\x122.google.bigtable.admin.v2.DeleteLogicalViewRequest\x1A\x16.google.protobuf.Empty\"?\xDAA\x04name\x82\xD3\xE4\x93\x022*0/v2/{name=projects/*/instances/*/logicalViews/*}\x12\xA8\x02\x0A\x16CreateMaterializedView\x127.google.bigtable.admin.v2.CreateMaterializedViewRequest\x1A\x1D.google.longrunning.Operation\"\xB5\x01\xCAA2\x0A\x10MaterializedView\x12\x1ECreateMaterializedViewMetadata\xDAA-parent,materialized_view,materialized_view_id\x82\xD3\xE4\x93\x02J\"5/v2/{parent=projects/*/instances/*}/materializedViews:\x11materialized_view\x12\xBD\x01\x0A\x13GetMaterializedView\x124.google.bigtable.admin.v2.GetMaterializedViewRequest\x1A*.google.bigtable.admin.v2.MaterializedView\"D\xDAA\x04name\x82\xD3\xE4\x93\x027\x125/v2/{name=projects/*/instances/*/materializedViews/*}\x12\xD0\x01\x0A\x15ListMaterializedViews\x126.google.bigtable.admin.v2.ListMaterializedViewsRequest\x1A7.google.bigtable.admin.v2.ListMaterializedViewsResponse\"F\xDAA\x06parent\x82\xD3\xE4\x93\x027\x125/v2/{parent=projects/*/instances/*}/materializedViews\x12\xAA\x02\x0A\x16UpdateMaterializedView\x127.google.bigtable.admin.v2.UpdateMaterializedViewRequest\x1A\x1D.google.longrunning.Operation\"\xB7\x01\xCAA2\x0A\x10MaterializedView\x12\x1EUpdateMaterializedViewMetadata\xDAA\x1Dmaterialized_view,update_mask\x82\xD3\xE4\x93\x02\\2G/v2/{materialized_view.name=projects/*/instances/*/materializedViews/*}:\x11materialized_view\x12\xAF\x01\x0A\x16DeleteMaterializedView\x127.google.bigtable.admin.v2.DeleteMaterializedViewRequest\x1A\x16.google.protobuf.Empty\"D\xDAA\x04name\x82\xD3\xE4\x93\x027*5/v2/{name=projects/*/instances/*/materializedViews/*}\x1A\x9A\x03\xCAA\x1Cbigtableadmin.googleapis.com\xD2A\xF7\x02https://www.googleapis.com/auth/bigtable.admin,https://www.googleapis.com/auth/bigtable.admin.cluster,https://www.googleapis.com/auth/bigtable.admin.instance,https://www.googleapis.com/auth/cloud-bigtable.admin,https://www.googleapis.com/auth/cloud-bigtable.admin.cluster,https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-onlyB\xDD\x01\x0A\x1Ccom.google.bigtable.admin.v2B\x1ABigtableInstanceAdminProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xAA\x02\x1EGoogle.Cloud.Bigtable.Admin.V2\xCA\x02\x1EGoogle\\Cloud\\Bigtable\\Admin\\V2\xEA\x02\"Google::Cloud::Bigtable::Admin::V2b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/BigtableTableAdmin.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/BigtableTableAdmin.php deleted file mode 100644 index 782e00f9ead5..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/BigtableTableAdmin.php +++ /dev/null @@ -1,37 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xED\x84\x01\x0A3google/bigtable/admin/v2/bigtable_table_admin.proto\x12\x18google.bigtable.admin.v2\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A%google/bigtable/admin/v2/common.proto\x1A\$google/bigtable/admin/v2/table.proto\x1A\x1Egoogle/iam/v1/iam_policy.proto\x1A\x1Agoogle/iam/v1/policy.proto\x1A#google/longrunning/operations.proto\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xB1\x01\x0A\x13RestoreTableRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%bigtableadmin.googleapis.com/Instance\x12\x15\x0A\x08table_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12:\x0A\x06backup\x18\x03 \x01(\x09B(\xFAA%\x0A#bigtableadmin.googleapis.com/BackupH\x00B\x08\x0A\x06source\"\x98\x02\x0A\x14RestoreTableMetadata\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12@\x0A\x0Bsource_type\x18\x02 \x01(\x0E2+.google.bigtable.admin.v2.RestoreSourceType\x12;\x0A\x0Bbackup_info\x18\x03 \x01(\x0B2\$.google.bigtable.admin.v2.BackupInfoH\x00\x12%\x0A\x1Doptimize_table_operation_name\x18\x04 \x01(\x09\x12=\x0A\x08progress\x18\x05 \x01(\x0B2+.google.bigtable.admin.v2.OperationProgressB\x0D\x0A\x0Bsource_info\"l\x0A\x1DOptimizeRestoredTableMetadata\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12=\x0A\x08progress\x18\x02 \x01(\x0B2+.google.bigtable.admin.v2.OperationProgress\"\x81\x02\x0A\x12CreateTableRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%bigtableadmin.googleapis.com/Instance\x12\x15\x0A\x08table_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x123\x0A\x05table\x18\x03 \x01(\x0B2\x1F.google.bigtable.admin.v2.TableB\x03\xE0A\x02\x12J\x0A\x0Einitial_splits\x18\x04 \x03(\x0B22.google.bigtable.admin.v2.CreateTableRequest.Split\x1A\x14\x0A\x05Split\x12\x0B\x0A\x03key\x18\x01 \x01(\x0C\"\xBE\x01\x0A\x1ECreateTableFromSnapshotRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%bigtableadmin.googleapis.com/Instance\x12\x15\x0A\x08table_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12F\x0A\x0Fsource_snapshot\x18\x03 \x01(\x09B-\xE0A\x02\xFAA'\x0A%bigtableadmin.googleapis.com/Snapshot\"\x99\x01\x0A\x13DropRowRangeRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"bigtableadmin.googleapis.com/Table\x12\x18\x0A\x0Erow_key_prefix\x18\x02 \x01(\x0CH\x00\x12\$\x0A\x1Adelete_all_data_from_table\x18\x03 \x01(\x08H\x00B\x08\x0A\x06target\"\xAD\x01\x0A\x11ListTablesRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%bigtableadmin.googleapis.com/Instance\x122\x0A\x04view\x18\x02 \x01(\x0E2\$.google.bigtable.admin.v2.Table.View\x12\x11\x0A\x09page_size\x18\x04 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\"^\x0A\x12ListTablesResponse\x12/\x0A\x06tables\x18\x01 \x03(\x0B2\x1F.google.bigtable.admin.v2.Table\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x7F\x0A\x0FGetTableRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"bigtableadmin.googleapis.com/Table\x122\x0A\x04view\x18\x02 \x01(\x0E2\$.google.bigtable.admin.v2.Table.View\"\x9D\x01\x0A\x12UpdateTableRequest\x123\x0A\x05table\x18\x01 \x01(\x0B2\x1F.google.bigtable.admin.v2.TableB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1C\x0A\x0Fignore_warnings\x18\x03 \x01(\x08B\x03\xE0A\x01\"\x81\x01\x0A\x13UpdateTableMetadata\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12.\x0A\x0Astart_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\"N\x0A\x12DeleteTableRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"bigtableadmin.googleapis.com/Table\"P\x0A\x14UndeleteTableRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"bigtableadmin.googleapis.com/Table\"\x83\x01\x0A\x15UndeleteTableMetadata\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12.\x0A\x0Astart_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\"\xB3\x03\x0A\x1BModifyColumnFamiliesRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"bigtableadmin.googleapis.com/Table\x12^\x0A\x0Dmodifications\x18\x02 \x03(\x0B2B.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.ModificationB\x03\xE0A\x02\x12\x1C\x0A\x0Fignore_warnings\x18\x03 \x01(\x08B\x03\xE0A\x01\x1A\xDB\x01\x0A\x0CModification\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x128\x0A\x06create\x18\x02 \x01(\x0B2&.google.bigtable.admin.v2.ColumnFamilyH\x00\x128\x0A\x06update\x18\x03 \x01(\x0B2&.google.bigtable.admin.v2.ColumnFamilyH\x00\x12\x0E\x0A\x04drop\x18\x04 \x01(\x08H\x00\x124\x0A\x0Bupdate_mask\x18\x06 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01B\x05\x0A\x03mod\"[\x0A\x1FGenerateConsistencyTokenRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"bigtableadmin.googleapis.com/Table\"=\x0A GenerateConsistencyTokenResponse\x12\x19\x0A\x11consistency_token\x18\x01 \x01(\x09\"\xB2\x02\x0A\x17CheckConsistencyRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"bigtableadmin.googleapis.com/Table\x12\x1E\x0A\x11consistency_token\x18\x02 \x01(\x09B\x03\xE0A\x02\x12Y\x0A\x1Bstandard_read_remote_writes\x18\x03 \x01(\x0B22.google.bigtable.admin.v2.StandardReadRemoteWritesH\x00\x12Z\x0A\x1Cdata_boost_read_local_writes\x18\x04 \x01(\x0B22.google.bigtable.admin.v2.DataBoostReadLocalWritesH\x00B\x06\x0A\x04mode\"\x1A\x0A\x18StandardReadRemoteWrites\"\x1A\x0A\x18DataBoostReadLocalWrites\".\x0A\x18CheckConsistencyResponse\x12\x12\x0A\x0Aconsistent\x18\x01 \x01(\x08\"\xE6\x01\x0A\x14SnapshotTableRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"bigtableadmin.googleapis.com/Table\x12=\x0A\x07cluster\x18\x02 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$bigtableadmin.googleapis.com/Cluster\x12\x18\x0A\x0Bsnapshot_id\x18\x03 \x01(\x09B\x03\xE0A\x02\x12&\x0A\x03ttl\x18\x04 \x01(\x0B2\x19.google.protobuf.Duration\x12\x13\x0A\x0Bdescription\x18\x05 \x01(\x09\"Q\x0A\x12GetSnapshotRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%bigtableadmin.googleapis.com/Snapshot\"{\x0A\x14ListSnapshotsRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$bigtableadmin.googleapis.com/Cluster\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\"g\x0A\x15ListSnapshotsResponse\x125\x0A\x09snapshots\x18\x01 \x03(\x0B2\".google.bigtable.admin.v2.Snapshot\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"T\x0A\x15DeleteSnapshotRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%bigtableadmin.googleapis.com/Snapshot\"\xC4\x01\x0A\x15SnapshotTableMetadata\x12H\x0A\x10original_request\x18\x01 \x01(\x0B2..google.bigtable.admin.v2.SnapshotTableRequest\x120\x0A\x0Crequest_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bfinish_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\"\xD8\x01\x0A\x1FCreateTableFromSnapshotMetadata\x12R\x0A\x10original_request\x18\x01 \x01(\x0B28.google.bigtable.admin.v2.CreateTableFromSnapshotRequest\x120\x0A\x0Crequest_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bfinish_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\"\xA2\x01\x0A\x13CreateBackupRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$bigtableadmin.googleapis.com/Cluster\x12\x16\x0A\x09backup_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x125\x0A\x06backup\x18\x03 \x01(\x0B2 .google.bigtable.admin.v2.BackupB\x03\xE0A\x02\"\x98\x01\x0A\x14CreateBackupMetadata\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x14\x0A\x0Csource_table\x18\x02 \x01(\x09\x12.\x0A\x0Astart_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.Timestamp\"\x82\x01\x0A\x13UpdateBackupRequest\x125\x0A\x06backup\x18\x01 \x01(\x0B2 .google.bigtable.admin.v2.BackupB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\"M\x0A\x10GetBackupRequest\x129\x0A\x04name\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#bigtableadmin.googleapis.com/Backup\"P\x0A\x13DeleteBackupRequest\x129\x0A\x04name\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#bigtableadmin.googleapis.com/Backup\"\x9B\x01\x0A\x12ListBackupsRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$bigtableadmin.googleapis.com/Cluster\x12\x0E\x0A\x06filter\x18\x02 \x01(\x09\x12\x10\x0A\x08order_by\x18\x03 \x01(\x09\x12\x11\x0A\x09page_size\x18\x04 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x05 \x01(\x09\"a\x0A\x13ListBackupsResponse\x121\x0A\x07backups\x18\x01 \x03(\x0B2 .google.bigtable.admin.v2.Backup\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xE3\x01\x0A\x11CopyBackupRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$bigtableadmin.googleapis.com/Cluster\x12\x16\x0A\x09backup_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12B\x0A\x0Dsource_backup\x18\x03 \x01(\x09B+\xE0A\x02\xFAA%\x0A#bigtableadmin.googleapis.com/Backup\x124\x0A\x0Bexpire_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x02\"\xCD\x01\x0A\x12CopyBackupMetadata\x126\x0A\x04name\x18\x01 \x01(\x09B(\xFAA%\x0A#bigtableadmin.googleapis.com/Backup\x12@\x0A\x12source_backup_info\x18\x02 \x01(\x0B2\$.google.bigtable.admin.v2.BackupInfo\x12=\x0A\x08progress\x18\x03 \x01(\x0B2+.google.bigtable.admin.v2.OperationProgress\"\xCB\x01\x0A\x1BCreateAuthorizedViewRequest\x12C\x0A\x06parent\x18\x01 \x01(\x09B3\xE0A\x02\xFAA-\x12+bigtableadmin.googleapis.com/AuthorizedView\x12\x1F\x0A\x12authorized_view_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12F\x0A\x0Fauthorized_view\x18\x03 \x01(\x0B2(.google.bigtable.admin.v2.AuthorizedViewB\x03\xE0A\x02\"\xD2\x01\x0A\x1CCreateAuthorizedViewMetadata\x12O\x0A\x10original_request\x18\x01 \x01(\x0B25.google.bigtable.admin.v2.CreateAuthorizedViewRequest\x120\x0A\x0Crequest_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bfinish_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\"\xDC\x01\x0A\x1AListAuthorizedViewsRequest\x12C\x0A\x06parent\x18\x01 \x01(\x09B3\xE0A\x02\xFAA-\x12+bigtableadmin.googleapis.com/AuthorizedView\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12H\x0A\x04view\x18\x04 \x01(\x0E25.google.bigtable.admin.v2.AuthorizedView.ResponseViewB\x03\xE0A\x01\"z\x0A\x1BListAuthorizedViewsResponse\x12B\x0A\x10authorized_views\x18\x01 \x03(\x0B2(.google.bigtable.admin.v2.AuthorizedView\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xA7\x01\x0A\x18GetAuthorizedViewRequest\x12A\x0A\x04name\x18\x01 \x01(\x09B3\xE0A\x02\xFAA-\x0A+bigtableadmin.googleapis.com/AuthorizedView\x12H\x0A\x04view\x18\x02 \x01(\x0E25.google.bigtable.admin.v2.AuthorizedView.ResponseViewB\x03\xE0A\x01\"\xB9\x01\x0A\x1BUpdateAuthorizedViewRequest\x12F\x0A\x0Fauthorized_view\x18\x01 \x01(\x0B2(.google.bigtable.admin.v2.AuthorizedViewB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12\x1C\x0A\x0Fignore_warnings\x18\x03 \x01(\x08B\x03\xE0A\x01\"\xD2\x01\x0A\x1CUpdateAuthorizedViewMetadata\x12O\x0A\x10original_request\x18\x01 \x01(\x0B25.google.bigtable.admin.v2.UpdateAuthorizedViewRequest\x120\x0A\x0Crequest_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bfinish_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\"s\x0A\x1BDeleteAuthorizedViewRequest\x12A\x0A\x04name\x18\x01 \x01(\x09B3\xE0A\x02\xFAA-\x0A+bigtableadmin.googleapis.com/AuthorizedView\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\"\xBA\x01\x0A\x19CreateSchemaBundleRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"bigtableadmin.googleapis.com/Table\x12\x1D\x0A\x10schema_bundle_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12B\x0A\x0Dschema_bundle\x18\x03 \x01(\x0B2&.google.bigtable.admin.v2.SchemaBundleB\x03\xE0A\x02\"\x88\x01\x0A\x1ACreateSchemaBundleMetadata\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12.\x0A\x0Astart_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\"\xB3\x01\x0A\x19UpdateSchemaBundleRequest\x12B\x0A\x0Dschema_bundle\x18\x01 \x01(\x0B2&.google.bigtable.admin.v2.SchemaBundleB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12\x1C\x0A\x0Fignore_warnings\x18\x03 \x01(\x08B\x03\xE0A\x01\"\x88\x01\x0A\x1AUpdateSchemaBundleMetadata\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12.\x0A\x0Astart_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\"Y\x0A\x16GetSchemaBundleRequest\x12?\x0A\x04name\x18\x01 \x01(\x09B1\xE0A\x02\xFAA+\x0A)bigtableadmin.googleapis.com/SchemaBundle\"\x84\x01\x0A\x18ListSchemaBundlesRequest\x12A\x0A\x06parent\x18\x01 \x01(\x09B1\xE0A\x02\xFAA+\x12)bigtableadmin.googleapis.com/SchemaBundle\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\"t\x0A\x19ListSchemaBundlesResponse\x12>\x0A\x0Eschema_bundles\x18\x01 \x03(\x0B2&.google.bigtable.admin.v2.SchemaBundle\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"o\x0A\x19DeleteSchemaBundleRequest\x12?\x0A\x04name\x18\x01 \x01(\x09B1\xE0A\x02\xFAA+\x0A)bigtableadmin.googleapis.com/SchemaBundle\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x012\x92@\x0A\x12BigtableTableAdmin\x12\xAB\x01\x0A\x0BCreateTable\x12,.google.bigtable.admin.v2.CreateTableRequest\x1A\x1F.google.bigtable.admin.v2.Table\"M\xDAA\x15parent,table_id,table\x82\xD3\xE4\x93\x02/\"*/v2/{parent=projects/*/instances/*}/tables:\x01*\x12\x8A\x02\x0A\x17CreateTableFromSnapshot\x128.google.bigtable.admin.v2.CreateTableFromSnapshotRequest\x1A\x1D.google.longrunning.Operation\"\x95\x01\xCAA(\x0A\x05Table\x12\x1FCreateTableFromSnapshotMetadata\xDAA\x1Fparent,table_id,source_snapshot\x82\xD3\xE4\x93\x02B\"=/v2/{parent=projects/*/instances/*}/tables:createFromSnapshot:\x01*\x12\xA4\x01\x0A\x0AListTables\x12+.google.bigtable.admin.v2.ListTablesRequest\x1A,.google.bigtable.admin.v2.ListTablesResponse\";\xDAA\x06parent\x82\xD3\xE4\x93\x02,\x12*/v2/{parent=projects/*/instances/*}/tables\x12\x91\x01\x0A\x08GetTable\x12).google.bigtable.admin.v2.GetTableRequest\x1A\x1F.google.bigtable.admin.v2.Table\"9\xDAA\x04name\x82\xD3\xE4\x93\x02,\x12*/v2/{name=projects/*/instances/*/tables/*}\x12\xCE\x01\x0A\x0BUpdateTable\x12,.google.bigtable.admin.v2.UpdateTableRequest\x1A\x1D.google.longrunning.Operation\"r\xCAA\x1C\x0A\x05Table\x12\x13UpdateTableMetadata\xDAA\x11table,update_mask\x82\xD3\xE4\x93\x02920/v2/{table.name=projects/*/instances/*/tables/*}:\x05table\x12\x8E\x01\x0A\x0BDeleteTable\x12,.google.bigtable.admin.v2.DeleteTableRequest\x1A\x16.google.protobuf.Empty\"9\xDAA\x04name\x82\xD3\xE4\x93\x02,**/v2/{name=projects/*/instances/*/tables/*}\x12\xC6\x01\x0A\x0DUndeleteTable\x12..google.bigtable.admin.v2.UndeleteTableRequest\x1A\x1D.google.longrunning.Operation\"f\xCAA\x1E\x0A\x05Table\x12\x15UndeleteTableMetadata\xDAA\x04name\x82\xD3\xE4\x93\x028\"3/v2/{name=projects/*/instances/*/tables/*}:undelete:\x01*\x12\xA1\x02\x0A\x14CreateAuthorizedView\x125.google.bigtable.admin.v2.CreateAuthorizedViewRequest\x1A\x1D.google.longrunning.Operation\"\xB2\x01\xCAA.\x0A\x0EAuthorizedView\x12\x1CCreateAuthorizedViewMetadata\xDAA)parent,authorized_view,authorized_view_id\x82\xD3\xE4\x93\x02O\"\x12\x12*internalAddGeneratedFile( - "\x0A\xE7\x03\x0A%google/bigtable/admin/v2/common.proto\x12\x18google.bigtable.admin.v2\"\x8B\x01\x0A\x11OperationProgress\x12\x18\x0A\x10progress_percent\x18\x01 \x01(\x05\x12.\x0A\x0Astart_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp*=\x0A\x0BStorageType\x12\x1C\x0A\x18STORAGE_TYPE_UNSPECIFIED\x10\x00\x12\x07\x0A\x03SSD\x10\x01\x12\x07\x0A\x03HDD\x10\x02B\xCE\x01\x0A\x1Ccom.google.bigtable.admin.v2B\x0BCommonProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xAA\x02\x1EGoogle.Cloud.Bigtable.Admin.V2\xCA\x02\x1EGoogle\\Cloud\\Bigtable\\Admin\\V2\xEA\x02\"Google::Cloud::Bigtable::Admin::V2b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/Instance.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/Instance.php deleted file mode 100644 index 6c968ae0011c..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/Instance.php +++ /dev/null @@ -1,28 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x92'\x0A'google/bigtable/admin/v2/instance.proto\x12\x18google.bigtable.admin.v2\x1A\x19google/api/resource.proto\x1A%google/bigtable/admin/v2/common.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x87\x06\x0A\x08Instance\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x02\x12<\x0A\x05state\x18\x03 \x01(\x0E2(.google.bigtable.admin.v2.Instance.StateB\x03\xE0A\x03\x125\x0A\x04type\x18\x04 \x01(\x0E2'.google.bigtable.admin.v2.Instance.Type\x12>\x0A\x06labels\x18\x05 \x03(\x0B2..google.bigtable.admin.v2.Instance.LabelsEntry\x124\x0A\x0Bcreate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x1F\x0A\x0Dsatisfies_pzs\x18\x08 \x01(\x08B\x03\xE0A\x03H\x00\x88\x01\x01\x12\x1F\x0A\x0Dsatisfies_pzi\x18\x0B \x01(\x08B\x03\xE0A\x03H\x01\x88\x01\x01\x12E\x0A\x04tags\x18\x0C \x03(\x0B2,.google.bigtable.admin.v2.Instance.TagsEntryB\x09\xE0A\x04\xE0A\x05\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A+\x0A\x09TagsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"5\x0A\x05State\x12\x13\x0A\x0FSTATE_NOT_KNOWN\x10\x00\x12\x09\x0A\x05READY\x10\x01\x12\x0C\x0A\x08CREATING\x10\x02\"=\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0APRODUCTION\x10\x01\x12\x0F\x0A\x0BDEVELOPMENT\x10\x02:h\xEAAe\x0A%bigtableadmin.googleapis.com/Instance\x12'projects/{project}/instances/{instance}*\x09instances2\x08instanceB\x10\x0A\x0E_satisfies_pzsB\x10\x0A\x0E_satisfies_pzi\"_\x0A\x12AutoscalingTargets\x12\x1F\x0A\x17cpu_utilization_percent\x18\x02 \x01(\x05\x12(\x0A storage_utilization_gib_per_node\x18\x03 \x01(\x05\"O\x0A\x11AutoscalingLimits\x12\x1C\x0A\x0Fmin_serve_nodes\x18\x01 \x01(\x05B\x03\xE0A\x02\x12\x1C\x0A\x0Fmax_serve_nodes\x18\x02 \x01(\x05B\x03\xE0A\x02\"\xAD\x09\x0A\x07Cluster\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12;\x0A\x08location\x18\x02 \x01(\x09B)\xE0A\x05\xFAA#\x0A!locations.googleapis.com/Location\x12;\x0A\x05state\x18\x03 \x01(\x0E2'.google.bigtable.admin.v2.Cluster.StateB\x03\xE0A\x03\x12\x13\x0A\x0Bserve_nodes\x18\x04 \x01(\x05\x12U\x0A\x13node_scaling_factor\x18\x09 \x01(\x0E23.google.bigtable.admin.v2.Cluster.NodeScalingFactorB\x03\xE0A\x05\x12I\x0A\x0Ecluster_config\x18\x07 \x01(\x0B2/.google.bigtable.admin.v2.Cluster.ClusterConfigH\x00\x12H\x0A\x14default_storage_type\x18\x05 \x01(\x0E2%.google.bigtable.admin.v2.StorageTypeB\x03\xE0A\x05\x12R\x0A\x11encryption_config\x18\x06 \x01(\x0B22.google.bigtable.admin.v2.Cluster.EncryptionConfigB\x03\xE0A\x05\x1A\xB8\x01\x0A\x18ClusterAutoscalingConfig\x12L\x0A\x12autoscaling_limits\x18\x01 \x01(\x0B2+.google.bigtable.admin.v2.AutoscalingLimitsB\x03\xE0A\x02\x12N\x0A\x13autoscaling_targets\x18\x02 \x01(\x0B2,.google.bigtable.admin.v2.AutoscalingTargetsB\x03\xE0A\x02\x1Ao\x0A\x0DClusterConfig\x12^\x0A\x1Acluster_autoscaling_config\x18\x01 \x01(\x0B2:.google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig\x1AP\x0A\x10EncryptionConfig\x12<\x0A\x0Ckms_key_name\x18\x01 \x01(\x09B&\xFAA#\x0A!cloudkms.googleapis.com/CryptoKey\"Q\x0A\x05State\x12\x13\x0A\x0FSTATE_NOT_KNOWN\x10\x00\x12\x09\x0A\x05READY\x10\x01\x12\x0C\x0A\x08CREATING\x10\x02\x12\x0C\x0A\x08RESIZING\x10\x03\x12\x0C\x0A\x08DISABLED\x10\x04\"p\x0A\x11NodeScalingFactor\x12#\x0A\x1FNODE_SCALING_FACTOR_UNSPECIFIED\x10\x00\x12\x1A\x0A\x16NODE_SCALING_FACTOR_1X\x10\x01\x12\x1A\x0A\x16NODE_SCALING_FACTOR_2X\x10\x02:x\xEAAu\x0A\$bigtableadmin.googleapis.com/Cluster\x12:projects/{project}/instances/{instance}/clusters/{cluster}*\x08clusters2\x07clusterB\x08\x0A\x06config\"\xED\x0A\x0A\x0AAppProfile\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0C\x0A\x04etag\x18\x02 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\x12g\x0A\x1Dmulti_cluster_routing_use_any\x18\x05 \x01(\x0B2>.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAnyH\x00\x12[\x0A\x16single_cluster_routing\x18\x06 \x01(\x0B29.google.bigtable.admin.v2.AppProfile.SingleClusterRoutingH\x00\x12E\x0A\x08priority\x18\x07 \x01(\x0E2-.google.bigtable.admin.v2.AppProfile.PriorityB\x02\x18\x01H\x01\x12T\x0A\x12standard_isolation\x18\x0B \x01(\x0B26.google.bigtable.admin.v2.AppProfile.StandardIsolationH\x01\x12i\x0A\x1Edata_boost_isolation_read_only\x18\x0A \x01(\x0B2?.google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnlyH\x01\x1A\xAF\x01\x0A\x19MultiClusterRoutingUseAny\x12\x13\x0A\x0Bcluster_ids\x18\x01 \x03(\x09\x12b\x0A\x0Crow_affinity\x18\x03 \x01(\x0B2J.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.RowAffinityH\x00\x1A\x0D\x0A\x0BRowAffinityB\x0A\x0A\x08affinity\x1AN\x0A\x14SingleClusterRouting\x12\x12\x0A\x0Acluster_id\x18\x01 \x01(\x09\x12\"\x0A\x1Aallow_transactional_writes\x18\x02 \x01(\x08\x1AT\x0A\x11StandardIsolation\x12?\x0A\x08priority\x18\x01 \x01(\x0E2-.google.bigtable.admin.v2.AppProfile.Priority\x1A\xFC\x01\x0A\x1ADataBoostIsolationReadOnly\x12w\x0A\x15compute_billing_owner\x18\x01 \x01(\x0E2S.google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly.ComputeBillingOwnerH\x00\x88\x01\x01\"K\x0A\x13ComputeBillingOwner\x12%\x0A!COMPUTE_BILLING_OWNER_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09HOST_PAYS\x10\x01B\x18\x0A\x16_compute_billing_owner\"^\x0A\x08Priority\x12\x18\x0A\x14PRIORITY_UNSPECIFIED\x10\x00\x12\x10\x0A\x0CPRIORITY_LOW\x10\x01\x12\x13\x0A\x0FPRIORITY_MEDIUM\x10\x02\x12\x11\x0A\x0DPRIORITY_HIGH\x10\x03:\x89\x01\xEAA\x85\x01\x0A'bigtableadmin.googleapis.com/AppProfile\x12Aprojects/{project}/instances/{instance}/appProfiles/{app_profile}*\x0BappProfiles2\x0AappProfileB\x10\x0A\x0Erouting_policyB\x0B\x0A\x09isolation\"\xA1\x03\x0A\x09HotTablet\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12;\x0A\x0Atable_name\x18\x02 \x01(\x09B'\xFAA\$\x0A\"bigtableadmin.googleapis.com/Table\x123\x0A\x0Astart_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x121\x0A\x08end_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x11\x0A\x09start_key\x18\x05 \x01(\x09\x12\x0F\x0A\x07end_key\x18\x06 \x01(\x09\x12#\x0A\x16node_cpu_usage_percent\x18\x07 \x01(\x02B\x03\xE0A\x03:\x97\x01\xEAA\x93\x01\x0A&bigtableadmin.googleapis.com/HotTablet\x12Rprojects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/{hot_tablet}*\x0AhotTablets2\x09hotTablet\"\xFA\x01\x0A\x0BLogicalView\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x12\x0A\x05query\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x11\x0A\x04etag\x18\x03 \x01(\x09B\x03\xE0A\x01\x12 \x0A\x13deletion_protection\x18\x06 \x01(\x08B\x03\xE0A\x01:\x8E\x01\xEAA\x8A\x01\x0A(bigtableadmin.googleapis.com/LogicalView\x12Cprojects/{project}/instances/{instance}/logicalViews/{logical_view}*\x0ClogicalViews2\x0BlogicalView\"\x96\x02\x0A\x10MaterializedView\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x15\x0A\x05query\x18\x02 \x01(\x09B\x06\xE0A\x02\xE0A\x05\x12\x11\x0A\x04etag\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x1B\x0A\x13deletion_protection\x18\x06 \x01(\x08:\xA7\x01\xEAA\xA3\x01\x0A-bigtableadmin.googleapis.com/MaterializedView\x12Mprojects/{project}/instances/{instance}/materializedViews/{materialized_view}*\x11materializedViews2\x10materializedViewB\xCB\x02\x0A\x1Ccom.google.bigtable.admin.v2B\x0DInstanceProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xAA\x02\x1EGoogle.Cloud.Bigtable.Admin.V2\xCA\x02\x1EGoogle\\Cloud\\Bigtable\\Admin\\V2\xEA\x02\"Google::Cloud::Bigtable::Admin::V2\xEAAx\x0A!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/Table.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/Table.php deleted file mode 100644 index ff6a09730acf..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/Table.php +++ /dev/null @@ -1,30 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xE8/\x0A\$google/bigtable/admin/v2/table.proto\x12\x18google.bigtable.admin.v2\x1A\x19google/api/resource.proto\x1A\$google/bigtable/admin/v2/types.proto\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x17google/rpc/status.proto\"\x9B\x01\x0A\x0BRestoreInfo\x12@\x0A\x0Bsource_type\x18\x01 \x01(\x0E2+.google.bigtable.admin.v2.RestoreSourceType\x12;\x0A\x0Bbackup_info\x18\x02 \x01(\x0B2\$.google.bigtable.admin.v2.BackupInfoH\x00B\x0D\x0A\x0Bsource_info\"I\x0A\x12ChangeStreamConfig\x123\x0A\x10retention_period\x18\x01 \x01(\x0B2\x19.google.protobuf.Duration\"\x9C\x0D\x0A\x05Table\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12O\x0A\x0Ecluster_states\x18\x02 \x03(\x0B22.google.bigtable.admin.v2.Table.ClusterStatesEntryB\x03\xE0A\x03\x12L\x0A\x0Fcolumn_families\x18\x03 \x03(\x0B23.google.bigtable.admin.v2.Table.ColumnFamiliesEntry\x12N\x0A\x0Bgranularity\x18\x04 \x01(\x0E24.google.bigtable.admin.v2.Table.TimestampGranularityB\x03\xE0A\x05\x12@\x0A\x0Crestore_info\x18\x06 \x01(\x0B2%.google.bigtable.admin.v2.RestoreInfoB\x03\xE0A\x03\x12J\x0A\x14change_stream_config\x18\x08 \x01(\x0B2,.google.bigtable.admin.v2.ChangeStreamConfig\x12\x1B\x0A\x13deletion_protection\x18\x09 \x01(\x08\x12X\x0A\x17automated_backup_policy\x18\x0D \x01(\x0B25.google.bigtable.admin.v2.Table.AutomatedBackupPolicyH\x00\x12L\x0A\x15tiered_storage_config\x18\x0E \x01(\x0B2-.google.bigtable.admin.v2.TieredStorageConfig\x12=\x0A\x0Erow_key_schema\x18\x0F \x01(\x0B2%.google.bigtable.admin.v2.Type.Struct\x1A\xC6\x02\x0A\x0CClusterState\x12]\x0A\x11replication_state\x18\x01 \x01(\x0E2=.google.bigtable.admin.v2.Table.ClusterState.ReplicationStateB\x03\xE0A\x03\x12F\x0A\x0Fencryption_info\x18\x02 \x03(\x0B2(.google.bigtable.admin.v2.EncryptionInfoB\x03\xE0A\x03\"\x8E\x01\x0A\x10ReplicationState\x12\x13\x0A\x0FSTATE_NOT_KNOWN\x10\x00\x12\x10\x0A\x0CINITIALIZING\x10\x01\x12\x17\x0A\x13PLANNED_MAINTENANCE\x10\x02\x12\x19\x0A\x15UNPLANNED_MAINTENANCE\x10\x03\x12\x09\x0A\x05READY\x10\x04\x12\x14\x0A\x10READY_OPTIMIZING\x10\x05\x1A\xBD\x01\x0A\x15AutomatedBackupPolicy\x128\x0A\x10retention_period\x18\x01 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x02\x12,\x0A\x09frequency\x18\x02 \x01(\x0B2\x19.google.protobuf.Duration\x12<\x0A\x09locations\x18\x03 \x03(\x09B)\xE0A\x01\xFAA#\x0A!locations.googleapis.com/Location\x1Ab\x0A\x12ClusterStatesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12;\x0A\x05value\x18\x02 \x01(\x0B2,.google.bigtable.admin.v2.Table.ClusterState:\x028\x01\x1A]\x0A\x13ColumnFamiliesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x125\x0A\x05value\x18\x02 \x01(\x0B2&.google.bigtable.admin.v2.ColumnFamily:\x028\x01\"I\x0A\x14TimestampGranularity\x12%\x0A!TIMESTAMP_GRANULARITY_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06MILLIS\x10\x01\"q\x0A\x04View\x12\x14\x0A\x10VIEW_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09NAME_ONLY\x10\x01\x12\x0F\x0A\x0BSCHEMA_VIEW\x10\x02\x12\x14\x0A\x10REPLICATION_VIEW\x10\x03\x12\x13\x0A\x0FENCRYPTION_VIEW\x10\x05\x12\x08\x0A\x04FULL\x10\x04:_\xEAA\\\x0A\"bigtableadmin.googleapis.com/Table\x126projects/{project}/instances/{instance}/tables/{table}B\x19\x0A\x17automated_backup_config\"\xE3\x05\x0A\x0EAuthorizedView\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12J\x0A\x0Bsubset_view\x18\x02 \x01(\x0B23.google.bigtable.admin.v2.AuthorizedView.SubsetViewH\x00\x12\x0C\x0A\x04etag\x18\x03 \x01(\x09\x12\x1B\x0A\x13deletion_protection\x18\x04 \x01(\x08\x1A?\x0A\x0DFamilySubsets\x12\x12\x0A\x0Aqualifiers\x18\x01 \x03(\x0C\x12\x1A\x0A\x12qualifier_prefixes\x18\x02 \x03(\x0C\x1A\xF0\x01\x0A\x0ASubsetView\x12\x14\x0A\x0Crow_prefixes\x18\x01 \x03(\x0C\x12^\x0A\x0Efamily_subsets\x18\x02 \x03(\x0B2F.google.bigtable.admin.v2.AuthorizedView.SubsetView.FamilySubsetsEntry\x1Al\x0A\x12FamilySubsetsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12E\x0A\x05value\x18\x02 \x01(\x0B26.google.bigtable.admin.v2.AuthorizedView.FamilySubsets:\x028\x01\"Q\x0A\x0CResponseView\x12\x1D\x0A\x19RESPONSE_VIEW_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09NAME_ONLY\x10\x01\x12\x09\x0A\x05BASIC\x10\x02\x12\x08\x0A\x04FULL\x10\x03:\xAC\x01\xEAA\xA8\x01\x0A+bigtableadmin.googleapis.com/AuthorizedView\x12Xprojects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}*\x0FauthorizedViews2\x0EauthorizedViewB\x11\x0A\x0Fauthorized_view\"u\x0A\x0CColumnFamily\x121\x0A\x07gc_rule\x18\x01 \x01(\x0B2 .google.bigtable.admin.v2.GcRule\x122\x0A\x0Avalue_type\x18\x03 \x01(\x0B2\x1E.google.bigtable.admin.v2.Type\"\xD5\x02\x0A\x06GcRule\x12\x1A\x0A\x10max_num_versions\x18\x01 \x01(\x05H\x00\x12,\x0A\x07max_age\x18\x02 \x01(\x0B2\x19.google.protobuf.DurationH\x00\x12E\x0A\x0Cintersection\x18\x03 \x01(\x0B2-.google.bigtable.admin.v2.GcRule.IntersectionH\x00\x127\x0A\x05union\x18\x04 \x01(\x0B2&.google.bigtable.admin.v2.GcRule.UnionH\x00\x1A?\x0A\x0CIntersection\x12/\x0A\x05rules\x18\x01 \x03(\x0B2 .google.bigtable.admin.v2.GcRule\x1A8\x0A\x05Union\x12/\x0A\x05rules\x18\x01 \x03(\x0B2 .google.bigtable.admin.v2.GcRuleB\x06\x0A\x04rule\"\xD9\x02\x0A\x0EEncryptionInfo\x12U\x0A\x0Fencryption_type\x18\x03 \x01(\x0E27.google.bigtable.admin.v2.EncryptionInfo.EncryptionTypeB\x03\xE0A\x03\x122\x0A\x11encryption_status\x18\x04 \x01(\x0B2\x12.google.rpc.StatusB\x03\xE0A\x03\x12I\x0A\x0Fkms_key_version\x18\x02 \x01(\x09B0\xE0A\x03\xFAA*\x0A(cloudkms.googleapis.com/CryptoKeyVersion\"q\x0A\x0EEncryptionType\x12\x1F\x0A\x1BENCRYPTION_TYPE_UNSPECIFIED\x10\x00\x12\x1D\x0A\x19GOOGLE_DEFAULT_ENCRYPTION\x10\x01\x12\x1F\x0A\x1BCUSTOMER_MANAGED_ENCRYPTION\x10\x02\"\xE0\x03\x0A\x08Snapshot\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12:\x0A\x0Csource_table\x18\x02 \x01(\x0B2\x1F.google.bigtable.admin.v2.TableB\x03\xE0A\x03\x12\x1C\x0A\x0Fdata_size_bytes\x18\x03 \x01(\x03B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12/\x0A\x0Bdelete_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12<\x0A\x05state\x18\x06 \x01(\x0E2(.google.bigtable.admin.v2.Snapshot.StateB\x03\xE0A\x03\x12\x13\x0A\x0Bdescription\x18\x07 \x01(\x09\"5\x0A\x05State\x12\x13\x0A\x0FSTATE_NOT_KNOWN\x10\x00\x12\x09\x0A\x05READY\x10\x01\x12\x0C\x0A\x08CREATING\x10\x02:{\xEAAx\x0A%bigtableadmin.googleapis.com/Snapshot\x12Oprojects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}\"\xF9\x05\x0A\x06Backup\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x1C\x0A\x0Csource_table\x18\x02 \x01(\x09B\x06\xE0A\x05\xE0A\x02\x12\x1A\x0A\x0Dsource_backup\x18\x0A \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bexpire_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x02\x123\x0A\x0Astart_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x121\x0A\x08end_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x17\x0A\x0Asize_bytes\x18\x06 \x01(\x03B\x03\xE0A\x03\x12:\x0A\x05state\x18\x07 \x01(\x0E2&.google.bigtable.admin.v2.Backup.StateB\x03\xE0A\x03\x12F\x0A\x0Fencryption_info\x18\x09 \x01(\x0B2(.google.bigtable.admin.v2.EncryptionInfoB\x03\xE0A\x03\x12@\x0A\x0Bbackup_type\x18\x0B \x01(\x0E2+.google.bigtable.admin.v2.Backup.BackupType\x128\x0A\x14hot_to_standard_time\x18\x0C \x01(\x0B2\x1A.google.protobuf.Timestamp\"7\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08CREATING\x10\x01\x12\x09\x0A\x05READY\x10\x02\"@\x0A\x0ABackupType\x12\x1B\x0A\x17BACKUP_TYPE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08STANDARD\x10\x01\x12\x07\x0A\x03HOT\x10\x02:u\xEAAr\x0A#bigtableadmin.googleapis.com/Backup\x12Kprojects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}\"\xC0\x01\x0A\x0ABackupInfo\x12\x13\x0A\x06backup\x18\x01 \x01(\x09B\x03\xE0A\x03\x123\x0A\x0Astart_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x121\x0A\x08end_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x19\x0A\x0Csource_table\x18\x04 \x01(\x09B\x03\xE0A\x03\x12\x1A\x0A\x0Dsource_backup\x18\x0A \x01(\x09B\x03\xE0A\x03\"]\x0A\x13TieredStorageConfig\x12F\x0A\x11infrequent_access\x18\x01 \x01(\x0B2+.google.bigtable.admin.v2.TieredStorageRule\"W\x0A\x11TieredStorageRule\x12:\x0A\x15include_if_older_than\x18\x01 \x01(\x0B2\x19.google.protobuf.DurationH\x00B\x06\x0A\x04rule\"-\x0A\x0BProtoSchema\x12\x1E\x0A\x11proto_descriptors\x18\x02 \x01(\x0CB\x03\xE0A\x02\"\xA0\x02\x0A\x0CSchemaBundle\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12=\x0A\x0Cproto_schema\x18\x02 \x01(\x0B2%.google.bigtable.admin.v2.ProtoSchemaH\x00\x12\x11\x0A\x04etag\x18\x03 \x01(\x09B\x03\xE0A\x01:\xA2\x01\xEAA\x9E\x01\x0A)bigtableadmin.googleapis.com/SchemaBundle\x12Tprojects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}*\x0DschemaBundles2\x0CschemaBundleB\x06\x0A\x04type*D\x0A\x11RestoreSourceType\x12#\x0A\x1FRESTORE_SOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06BACKUP\x10\x01B\xF7\x02\x0A\x1Ccom.google.bigtable.admin.v2B\x0ATableProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xAA\x02\x1EGoogle.Cloud.Bigtable.Admin.V2\xCA\x02\x1EGoogle\\Cloud\\Bigtable\\Admin\\V2\xEA\x02\"Google::Cloud::Bigtable::Admin::V2\xEAA\xA6\x01\x0A(cloudkms.googleapis.com/CryptoKeyVersion\x12zprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/Types.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/Types.php deleted file mode 100644 index 544c640ab6c3..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/GPBMetadata/Google/Bigtable/Admin/V2/Types.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xE2\x1B\x0A\$google/bigtable/admin/v2/types.proto\x12\x18google.bigtable.admin.v2\"\xC7\x19\x0A\x04Type\x12:\x0A\x0Abytes_type\x18\x01 \x01(\x0B2\$.google.bigtable.admin.v2.Type.BytesH\x00\x12<\x0A\x0Bstring_type\x18\x02 \x01(\x0B2%.google.bigtable.admin.v2.Type.StringH\x00\x12:\x0A\x0Aint64_type\x18\x05 \x01(\x0B2\$.google.bigtable.admin.v2.Type.Int64H\x00\x12>\x0A\x0Cfloat32_type\x18\x0C \x01(\x0B2&.google.bigtable.admin.v2.Type.Float32H\x00\x12>\x0A\x0Cfloat64_type\x18\x09 \x01(\x0B2&.google.bigtable.admin.v2.Type.Float64H\x00\x128\x0A\x09bool_type\x18\x08 \x01(\x0B2#.google.bigtable.admin.v2.Type.BoolH\x00\x12B\x0A\x0Etimestamp_type\x18\x0A \x01(\x0B2(.google.bigtable.admin.v2.Type.TimestampH\x00\x128\x0A\x09date_type\x18\x0B \x01(\x0B2#.google.bigtable.admin.v2.Type.DateH\x00\x12B\x0A\x0Eaggregate_type\x18\x06 \x01(\x0B2(.google.bigtable.admin.v2.Type.AggregateH\x00\x12<\x0A\x0Bstruct_type\x18\x07 \x01(\x0B2%.google.bigtable.admin.v2.Type.StructH\x00\x12:\x0A\x0Aarray_type\x18\x03 \x01(\x0B2\$.google.bigtable.admin.v2.Type.ArrayH\x00\x126\x0A\x08map_type\x18\x04 \x01(\x0B2\".google.bigtable.admin.v2.Type.MapH\x00\x12:\x0A\x0Aproto_type\x18\x0D \x01(\x0B2\$.google.bigtable.admin.v2.Type.ProtoH\x00\x128\x0A\x09enum_type\x18\x0E \x01(\x0B2#.google.bigtable.admin.v2.Type.EnumH\x00\x1A\xA9\x01\x0A\x05Bytes\x12?\x0A\x08encoding\x18\x01 \x01(\x0B2-.google.bigtable.admin.v2.Type.Bytes.Encoding\x1A_\x0A\x08Encoding\x12@\x0A\x03raw\x18\x01 \x01(\x0B21.google.bigtable.admin.v2.Type.Bytes.Encoding.RawH\x00\x1A\x05\x0A\x03RawB\x0A\x0A\x08encoding\x1A\x9F\x02\x0A\x06String\x12@\x0A\x08encoding\x18\x01 \x01(\x0B2..google.bigtable.admin.v2.Type.String.Encoding\x1A\xD2\x01\x0A\x08Encoding\x12N\x0A\x08utf8_raw\x18\x01 \x01(\x0B26.google.bigtable.admin.v2.Type.String.Encoding.Utf8RawB\x02\x18\x01H\x00\x12N\x0A\x0Autf8_bytes\x18\x02 \x01(\x0B28.google.bigtable.admin.v2.Type.String.Encoding.Utf8BytesH\x00\x1A\x0D\x0A\x07Utf8Raw:\x02\x18\x01\x1A\x0B\x0A\x09Utf8BytesB\x0A\x0A\x08encoding\x1A\xFD\x02\x0A\x05Int64\x12?\x0A\x08encoding\x18\x01 \x01(\x0B2-.google.bigtable.admin.v2.Type.Int64.Encoding\x1A\xB2\x02\x0A\x08Encoding\x12X\x0A\x10big_endian_bytes\x18\x01 \x01(\x0B2<.google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytesH\x00\x12\\\x0A\x12ordered_code_bytes\x18\x02 \x01(\x0B2>.google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytesH\x00\x1AN\x0A\x0EBigEndianBytes\x12<\x0A\x0Abytes_type\x18\x01 \x01(\x0B2\$.google.bigtable.admin.v2.Type.BytesB\x02\x18\x01\x1A\x12\x0A\x10OrderedCodeBytesB\x0A\x0A\x08encoding\x1A\x06\x0A\x04Bool\x1A\x09\x0A\x07Float32\x1A\x09\x0A\x07Float64\x1A\xB4\x01\x0A\x09Timestamp\x12C\x0A\x08encoding\x18\x01 \x01(\x0B21.google.bigtable.admin.v2.Type.Timestamp.Encoding\x1Ab\x0A\x08Encoding\x12J\x0A\x11unix_micros_int64\x18\x01 \x01(\x0B2-.google.bigtable.admin.v2.Type.Int64.EncodingH\x00B\x0A\x0A\x08encoding\x1A\x06\x0A\x04Date\x1A\xB9\x04\x0A\x06Struct\x12;\x0A\x06fields\x18\x01 \x03(\x0B2+.google.bigtable.admin.v2.Type.Struct.Field\x12@\x0A\x08encoding\x18\x02 \x01(\x0B2..google.bigtable.admin.v2.Type.Struct.Encoding\x1AI\x0A\x05Field\x12\x12\x0A\x0Afield_name\x18\x01 \x01(\x09\x12,\x0A\x04type\x18\x02 \x01(\x0B2\x1E.google.bigtable.admin.v2.Type\x1A\xE4\x02\x0A\x08Encoding\x12M\x0A\x09singleton\x18\x01 \x01(\x0B28.google.bigtable.admin.v2.Type.Struct.Encoding.SingletonH\x00\x12X\x0A\x0Fdelimited_bytes\x18\x02 \x01(\x0B2=.google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytesH\x00\x12]\x0A\x12ordered_code_bytes\x18\x03 \x01(\x0B2?.google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytesH\x00\x1A\x0B\x0A\x09Singleton\x1A#\x0A\x0EDelimitedBytes\x12\x11\x0A\x09delimiter\x18\x01 \x01(\x0C\x1A\x12\x0A\x10OrderedCodeBytesB\x0A\x0A\x08encoding\x1A7\x0A\x05Proto\x12\x18\x0A\x10schema_bundle_id\x18\x01 \x01(\x09\x12\x14\x0A\x0Cmessage_name\x18\x02 \x01(\x09\x1A3\x0A\x04Enum\x12\x18\x0A\x10schema_bundle_id\x18\x01 \x01(\x09\x12\x11\x0A\x09enum_name\x18\x02 \x01(\x09\x1A=\x0A\x05Array\x124\x0A\x0Celement_type\x18\x01 \x01(\x0B2\x1E.google.bigtable.admin.v2.Type\x1Ak\x0A\x03Map\x120\x0A\x08key_type\x18\x01 \x01(\x0B2\x1E.google.bigtable.admin.v2.Type\x122\x0A\x0Avalue_type\x18\x02 \x01(\x0B2\x1E.google.bigtable.admin.v2.Type\x1A\xDB\x03\x0A\x09Aggregate\x122\x0A\x0Ainput_type\x18\x01 \x01(\x0B2\x1E.google.bigtable.admin.v2.Type\x127\x0A\x0Astate_type\x18\x02 \x01(\x0B2\x1E.google.bigtable.admin.v2.TypeB\x03\xE0A\x03\x12;\x0A\x03sum\x18\x04 \x01(\x0B2,.google.bigtable.admin.v2.Type.Aggregate.SumH\x00\x12e\x0A\x12hllpp_unique_count\x18\x05 \x01(\x0B2G.google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCountH\x00\x12;\x0A\x03max\x18\x06 \x01(\x0B2,.google.bigtable.admin.v2.Type.Aggregate.MaxH\x00\x12;\x0A\x03min\x18\x07 \x01(\x0B2,.google.bigtable.admin.v2.Type.Aggregate.MinH\x00\x1A\x05\x0A\x03Sum\x1A\x05\x0A\x03Max\x1A\x05\x0A\x03Min\x1A \x0A\x1EHyperLogLogPlusPlusUniqueCountB\x0C\x0A\x0AaggregatorB\x06\x0A\x04kindB\xCD\x01\x0A\x1Ccom.google.bigtable.admin.v2B\x0ATypesProtoP\x01Z8cloud.google.com/go/bigtable/admin/apiv2/adminpb;adminpb\xAA\x02\x1EGoogle.Cloud.Bigtable.Admin.V2\xCA\x02\x1EGoogle\\Cloud\\Bigtable\\Admin\\V2\xEA\x02\"Google::Cloud::Bigtable::Admin::V2b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile.php deleted file mode 100644 index 44f8716f61c4..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile.php +++ /dev/null @@ -1,372 +0,0 @@ -google.bigtable.admin.v2.AppProfile - */ -class AppProfile extends \Google\Protobuf\Internal\Message -{ - /** - * The unique name of the app profile. Values are of the form - * `projects/{project}/instances/{instance}/appProfiles/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Strongly validated etag for optimistic concurrency control. Preserve the - * value returned from `GetAppProfile` when calling `UpdateAppProfile` to - * fail the request if there has been a modification in the mean time. The - * `update_mask` of the request need not include `etag` for this protection - * to apply. - * See [Wikipedia](https://en.wikipedia.org/wiki/HTTP_ETag) and - * [RFC 7232](https://tools.ietf.org/html/rfc7232#section-2.3) for more - * details. - * - * Generated from protobuf field string etag = 2; - */ - protected $etag = ''; - /** - * Long form description of the use case for this AppProfile. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - protected $routing_policy; - protected $isolation; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The unique name of the app profile. Values are of the form - * `projects/{project}/instances/{instance}/appProfiles/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. - * @type string $etag - * Strongly validated etag for optimistic concurrency control. Preserve the - * value returned from `GetAppProfile` when calling `UpdateAppProfile` to - * fail the request if there has been a modification in the mean time. The - * `update_mask` of the request need not include `etag` for this protection - * to apply. - * See [Wikipedia](https://en.wikipedia.org/wiki/HTTP_ETag) and - * [RFC 7232](https://tools.ietf.org/html/rfc7232#section-2.3) for more - * details. - * @type string $description - * Long form description of the use case for this AppProfile. - * @type \Google\Cloud\Bigtable\Admin\V2\AppProfile\MultiClusterRoutingUseAny $multi_cluster_routing_use_any - * Use a multi-cluster routing policy. - * @type \Google\Cloud\Bigtable\Admin\V2\AppProfile\SingleClusterRouting $single_cluster_routing - * Use a single-cluster routing policy. - * @type int $priority - * This field has been deprecated in favor of `standard_isolation.priority`. - * If you set this field, `standard_isolation.priority` will be set instead. - * The priority of requests sent using this app profile. - * @type \Google\Cloud\Bigtable\Admin\V2\AppProfile\StandardIsolation $standard_isolation - * The standard options used for isolating this app profile's traffic from - * other use cases. - * @type \Google\Cloud\Bigtable\Admin\V2\AppProfile\DataBoostIsolationReadOnly $data_boost_isolation_read_only - * Specifies that this app profile is intended for read-only usage via the - * Data Boost feature. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Instance::initOnce(); - parent::__construct($data); - } - - /** - * The unique name of the app profile. Values are of the form - * `projects/{project}/instances/{instance}/appProfiles/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The unique name of the app profile. Values are of the form - * `projects/{project}/instances/{instance}/appProfiles/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Strongly validated etag for optimistic concurrency control. Preserve the - * value returned from `GetAppProfile` when calling `UpdateAppProfile` to - * fail the request if there has been a modification in the mean time. The - * `update_mask` of the request need not include `etag` for this protection - * to apply. - * See [Wikipedia](https://en.wikipedia.org/wiki/HTTP_ETag) and - * [RFC 7232](https://tools.ietf.org/html/rfc7232#section-2.3) for more - * details. - * - * Generated from protobuf field string etag = 2; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Strongly validated etag for optimistic concurrency control. Preserve the - * value returned from `GetAppProfile` when calling `UpdateAppProfile` to - * fail the request if there has been a modification in the mean time. The - * `update_mask` of the request need not include `etag` for this protection - * to apply. - * See [Wikipedia](https://en.wikipedia.org/wiki/HTTP_ETag) and - * [RFC 7232](https://tools.ietf.org/html/rfc7232#section-2.3) for more - * details. - * - * Generated from protobuf field string etag = 2; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Long form description of the use case for this AppProfile. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Long form description of the use case for this AppProfile. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Use a multi-cluster routing policy. - * - * Generated from protobuf field .google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny multi_cluster_routing_use_any = 5; - * @return \Google\Cloud\Bigtable\Admin\V2\AppProfile\MultiClusterRoutingUseAny|null - */ - public function getMultiClusterRoutingUseAny() - { - return $this->readOneof(5); - } - - public function hasMultiClusterRoutingUseAny() - { - return $this->hasOneof(5); - } - - /** - * Use a multi-cluster routing policy. - * - * Generated from protobuf field .google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny multi_cluster_routing_use_any = 5; - * @param \Google\Cloud\Bigtable\Admin\V2\AppProfile\MultiClusterRoutingUseAny $var - * @return $this - */ - public function setMultiClusterRoutingUseAny($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\AppProfile\MultiClusterRoutingUseAny::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Use a single-cluster routing policy. - * - * Generated from protobuf field .google.bigtable.admin.v2.AppProfile.SingleClusterRouting single_cluster_routing = 6; - * @return \Google\Cloud\Bigtable\Admin\V2\AppProfile\SingleClusterRouting|null - */ - public function getSingleClusterRouting() - { - return $this->readOneof(6); - } - - public function hasSingleClusterRouting() - { - return $this->hasOneof(6); - } - - /** - * Use a single-cluster routing policy. - * - * Generated from protobuf field .google.bigtable.admin.v2.AppProfile.SingleClusterRouting single_cluster_routing = 6; - * @param \Google\Cloud\Bigtable\Admin\V2\AppProfile\SingleClusterRouting $var - * @return $this - */ - public function setSingleClusterRouting($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\AppProfile\SingleClusterRouting::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * This field has been deprecated in favor of `standard_isolation.priority`. - * If you set this field, `standard_isolation.priority` will be set instead. - * The priority of requests sent using this app profile. - * - * Generated from protobuf field .google.bigtable.admin.v2.AppProfile.Priority priority = 7 [deprecated = true]; - * @return int - * @deprecated - */ - public function getPriority() - { - if ($this->hasOneof(7)) { - @trigger_error('priority is deprecated.', E_USER_DEPRECATED); - } - return $this->readOneof(7); - } - - public function hasPriority() - { - if ($this->hasOneof(7)) { - @trigger_error('priority is deprecated.', E_USER_DEPRECATED); - } - return $this->hasOneof(7); - } - - /** - * This field has been deprecated in favor of `standard_isolation.priority`. - * If you set this field, `standard_isolation.priority` will be set instead. - * The priority of requests sent using this app profile. - * - * Generated from protobuf field .google.bigtable.admin.v2.AppProfile.Priority priority = 7 [deprecated = true]; - * @param int $var - * @return $this - * @deprecated - */ - public function setPriority($var) - { - @trigger_error('priority is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\AppProfile\Priority::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * The standard options used for isolating this app profile's traffic from - * other use cases. - * - * Generated from protobuf field .google.bigtable.admin.v2.AppProfile.StandardIsolation standard_isolation = 11; - * @return \Google\Cloud\Bigtable\Admin\V2\AppProfile\StandardIsolation|null - */ - public function getStandardIsolation() - { - return $this->readOneof(11); - } - - public function hasStandardIsolation() - { - return $this->hasOneof(11); - } - - /** - * The standard options used for isolating this app profile's traffic from - * other use cases. - * - * Generated from protobuf field .google.bigtable.admin.v2.AppProfile.StandardIsolation standard_isolation = 11; - * @param \Google\Cloud\Bigtable\Admin\V2\AppProfile\StandardIsolation $var - * @return $this - */ - public function setStandardIsolation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\AppProfile\StandardIsolation::class); - $this->writeOneof(11, $var); - - return $this; - } - - /** - * Specifies that this app profile is intended for read-only usage via the - * Data Boost feature. - * - * Generated from protobuf field .google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly data_boost_isolation_read_only = 10; - * @return \Google\Cloud\Bigtable\Admin\V2\AppProfile\DataBoostIsolationReadOnly|null - */ - public function getDataBoostIsolationReadOnly() - { - return $this->readOneof(10); - } - - public function hasDataBoostIsolationReadOnly() - { - return $this->hasOneof(10); - } - - /** - * Specifies that this app profile is intended for read-only usage via the - * Data Boost feature. - * - * Generated from protobuf field .google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly data_boost_isolation_read_only = 10; - * @param \Google\Cloud\Bigtable\Admin\V2\AppProfile\DataBoostIsolationReadOnly $var - * @return $this - */ - public function setDataBoostIsolationReadOnly($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\AppProfile\DataBoostIsolationReadOnly::class); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * @return string - */ - public function getRoutingPolicy() - { - return $this->whichOneof("routing_policy"); - } - - /** - * @return string - */ - public function getIsolation() - { - return $this->whichOneof("isolation"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/DataBoostIsolationReadOnly.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/DataBoostIsolationReadOnly.php deleted file mode 100644 index 7649f858de25..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/DataBoostIsolationReadOnly.php +++ /dev/null @@ -1,81 +0,0 @@ -google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly - */ -class DataBoostIsolationReadOnly extends \Google\Protobuf\Internal\Message -{ - /** - * The Compute Billing Owner for this Data Boost App Profile. - * - * Generated from protobuf field optional .google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly.ComputeBillingOwner compute_billing_owner = 1; - */ - protected $compute_billing_owner = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $compute_billing_owner - * The Compute Billing Owner for this Data Boost App Profile. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Instance::initOnce(); - parent::__construct($data); - } - - /** - * The Compute Billing Owner for this Data Boost App Profile. - * - * Generated from protobuf field optional .google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly.ComputeBillingOwner compute_billing_owner = 1; - * @return int - */ - public function getComputeBillingOwner() - { - return isset($this->compute_billing_owner) ? $this->compute_billing_owner : 0; - } - - public function hasComputeBillingOwner() - { - return isset($this->compute_billing_owner); - } - - public function clearComputeBillingOwner() - { - unset($this->compute_billing_owner); - } - - /** - * The Compute Billing Owner for this Data Boost App Profile. - * - * Generated from protobuf field optional .google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly.ComputeBillingOwner compute_billing_owner = 1; - * @param int $var - * @return $this - */ - public function setComputeBillingOwner($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\AppProfile\DataBoostIsolationReadOnly\ComputeBillingOwner::class); - $this->compute_billing_owner = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/DataBoostIsolationReadOnly/ComputeBillingOwner.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/DataBoostIsolationReadOnly/ComputeBillingOwner.php deleted file mode 100644 index 839958b1b4ec..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/DataBoostIsolationReadOnly/ComputeBillingOwner.php +++ /dev/null @@ -1,57 +0,0 @@ -google.bigtable.admin.v2.AppProfile.DataBoostIsolationReadOnly.ComputeBillingOwner - */ -class ComputeBillingOwner -{ - /** - * Unspecified value. - * - * Generated from protobuf enum COMPUTE_BILLING_OWNER_UNSPECIFIED = 0; - */ - const COMPUTE_BILLING_OWNER_UNSPECIFIED = 0; - /** - * The host Cloud Project containing the targeted Bigtable Instance / - * Table pays for compute. - * - * Generated from protobuf enum HOST_PAYS = 1; - */ - const HOST_PAYS = 1; - - private static $valueToName = [ - self::COMPUTE_BILLING_OWNER_UNSPECIFIED => 'COMPUTE_BILLING_OWNER_UNSPECIFIED', - self::HOST_PAYS => 'HOST_PAYS', - ]; - - 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/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/MultiClusterRoutingUseAny.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/MultiClusterRoutingUseAny.php deleted file mode 100644 index da58d84965e7..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/MultiClusterRoutingUseAny.php +++ /dev/null @@ -1,120 +0,0 @@ -google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny - */ -class MultiClusterRoutingUseAny extends \Google\Protobuf\Internal\Message -{ - /** - * The set of clusters to route to. The order is ignored; clusters will be - * tried in order of distance. If left empty, all clusters are eligible. - * - * Generated from protobuf field repeated string cluster_ids = 1; - */ - private $cluster_ids; - protected $affinity; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $cluster_ids - * The set of clusters to route to. The order is ignored; clusters will be - * tried in order of distance. If left empty, all clusters are eligible. - * @type \Google\Cloud\Bigtable\Admin\V2\AppProfile\MultiClusterRoutingUseAny\RowAffinity $row_affinity - * Row affinity sticky routing based on the row key of the request. - * Requests that span multiple rows are routed non-deterministically. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Instance::initOnce(); - parent::__construct($data); - } - - /** - * The set of clusters to route to. The order is ignored; clusters will be - * tried in order of distance. If left empty, all clusters are eligible. - * - * Generated from protobuf field repeated string cluster_ids = 1; - * @return RepeatedField - */ - public function getClusterIds() - { - return $this->cluster_ids; - } - - /** - * The set of clusters to route to. The order is ignored; clusters will be - * tried in order of distance. If left empty, all clusters are eligible. - * - * Generated from protobuf field repeated string cluster_ids = 1; - * @param string[] $var - * @return $this - */ - public function setClusterIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->cluster_ids = $arr; - - return $this; - } - - /** - * Row affinity sticky routing based on the row key of the request. - * Requests that span multiple rows are routed non-deterministically. - * - * Generated from protobuf field .google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.RowAffinity row_affinity = 3; - * @return \Google\Cloud\Bigtable\Admin\V2\AppProfile\MultiClusterRoutingUseAny\RowAffinity|null - */ - public function getRowAffinity() - { - return $this->readOneof(3); - } - - public function hasRowAffinity() - { - return $this->hasOneof(3); - } - - /** - * Row affinity sticky routing based on the row key of the request. - * Requests that span multiple rows are routed non-deterministically. - * - * Generated from protobuf field .google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.RowAffinity row_affinity = 3; - * @param \Google\Cloud\Bigtable\Admin\V2\AppProfile\MultiClusterRoutingUseAny\RowAffinity $var - * @return $this - */ - public function setRowAffinity($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\AppProfile\MultiClusterRoutingUseAny\RowAffinity::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getAffinity() - { - return $this->whichOneof("affinity"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/MultiClusterRoutingUseAny/RowAffinity.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/MultiClusterRoutingUseAny/RowAffinity.php deleted file mode 100644 index 8204201d7237..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/MultiClusterRoutingUseAny/RowAffinity.php +++ /dev/null @@ -1,41 +0,0 @@ -google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.RowAffinity - */ -class RowAffinity extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Instance::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/Priority.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/Priority.php deleted file mode 100644 index fc95d4cbd0eb..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/Priority.php +++ /dev/null @@ -1,64 +0,0 @@ -google.bigtable.admin.v2.AppProfile.Priority - */ -class Priority -{ - /** - * Default value. Mapped to PRIORITY_HIGH (the legacy behavior) on creation. - * - * Generated from protobuf enum PRIORITY_UNSPECIFIED = 0; - */ - const PRIORITY_UNSPECIFIED = 0; - /** - * Generated from protobuf enum PRIORITY_LOW = 1; - */ - const PRIORITY_LOW = 1; - /** - * Generated from protobuf enum PRIORITY_MEDIUM = 2; - */ - const PRIORITY_MEDIUM = 2; - /** - * Generated from protobuf enum PRIORITY_HIGH = 3; - */ - const PRIORITY_HIGH = 3; - - private static $valueToName = [ - self::PRIORITY_UNSPECIFIED => 'PRIORITY_UNSPECIFIED', - self::PRIORITY_LOW => 'PRIORITY_LOW', - self::PRIORITY_MEDIUM => 'PRIORITY_MEDIUM', - self::PRIORITY_HIGH => 'PRIORITY_HIGH', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/SingleClusterRouting.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/SingleClusterRouting.php deleted file mode 100644 index 12ae6eb0923b..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/SingleClusterRouting.php +++ /dev/null @@ -1,111 +0,0 @@ -google.bigtable.admin.v2.AppProfile.SingleClusterRouting - */ -class SingleClusterRouting extends \Google\Protobuf\Internal\Message -{ - /** - * The cluster to which read/write requests should be routed. - * - * Generated from protobuf field string cluster_id = 1; - */ - protected $cluster_id = ''; - /** - * Whether or not `CheckAndMutateRow` and `ReadModifyWriteRow` requests are - * allowed by this app profile. It is unsafe to send these requests to - * the same table/row/column in multiple clusters. - * - * Generated from protobuf field bool allow_transactional_writes = 2; - */ - protected $allow_transactional_writes = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $cluster_id - * The cluster to which read/write requests should be routed. - * @type bool $allow_transactional_writes - * Whether or not `CheckAndMutateRow` and `ReadModifyWriteRow` requests are - * allowed by this app profile. It is unsafe to send these requests to - * the same table/row/column in multiple clusters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Instance::initOnce(); - parent::__construct($data); - } - - /** - * The cluster to which read/write requests should be routed. - * - * Generated from protobuf field string cluster_id = 1; - * @return string - */ - public function getClusterId() - { - return $this->cluster_id; - } - - /** - * The cluster to which read/write requests should be routed. - * - * Generated from protobuf field string cluster_id = 1; - * @param string $var - * @return $this - */ - public function setClusterId($var) - { - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Whether or not `CheckAndMutateRow` and `ReadModifyWriteRow` requests are - * allowed by this app profile. It is unsafe to send these requests to - * the same table/row/column in multiple clusters. - * - * Generated from protobuf field bool allow_transactional_writes = 2; - * @return bool - */ - public function getAllowTransactionalWrites() - { - return $this->allow_transactional_writes; - } - - /** - * Whether or not `CheckAndMutateRow` and `ReadModifyWriteRow` requests are - * allowed by this app profile. It is unsafe to send these requests to - * the same table/row/column in multiple clusters. - * - * Generated from protobuf field bool allow_transactional_writes = 2; - * @param bool $var - * @return $this - */ - public function setAllowTransactionalWrites($var) - { - GPBUtil::checkBool($var); - $this->allow_transactional_writes = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/StandardIsolation.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/StandardIsolation.php deleted file mode 100644 index f89709f2c423..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AppProfile/StandardIsolation.php +++ /dev/null @@ -1,68 +0,0 @@ -google.bigtable.admin.v2.AppProfile.StandardIsolation - */ -class StandardIsolation extends \Google\Protobuf\Internal\Message -{ - /** - * The priority of requests sent using this app profile. - * - * Generated from protobuf field .google.bigtable.admin.v2.AppProfile.Priority priority = 1; - */ - protected $priority = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $priority - * The priority of requests sent using this app profile. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Instance::initOnce(); - parent::__construct($data); - } - - /** - * The priority of requests sent using this app profile. - * - * Generated from protobuf field .google.bigtable.admin.v2.AppProfile.Priority priority = 1; - * @return int - */ - public function getPriority() - { - return $this->priority; - } - - /** - * The priority of requests sent using this app profile. - * - * Generated from protobuf field .google.bigtable.admin.v2.AppProfile.Priority priority = 1; - * @param int $var - * @return $this - */ - public function setPriority($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\AppProfile\Priority::class); - $this->priority = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AuthorizedView.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AuthorizedView.php deleted file mode 100644 index e0cbcf28c5ad..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AuthorizedView.php +++ /dev/null @@ -1,203 +0,0 @@ -google.bigtable.admin.v2.AuthorizedView - */ -class AuthorizedView extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The name of this AuthorizedView. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * The etag for this AuthorizedView. - * If this is provided on update, it must match the server's etag. The server - * returns ABORTED error on a mismatched etag. - * - * Generated from protobuf field string etag = 3; - */ - protected $etag = ''; - /** - * Set to true to make the AuthorizedView protected against deletion. - * The parent Table and containing Instance cannot be deleted if an - * AuthorizedView has this bit set. - * - * Generated from protobuf field bool deletion_protection = 4; - */ - protected $deletion_protection = false; - protected $authorized_view; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The name of this AuthorizedView. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}` - * @type \Google\Cloud\Bigtable\Admin\V2\AuthorizedView\SubsetView $subset_view - * An AuthorizedView permitting access to an explicit subset of a Table. - * @type string $etag - * The etag for this AuthorizedView. - * If this is provided on update, it must match the server's etag. The server - * returns ABORTED error on a mismatched etag. - * @type bool $deletion_protection - * Set to true to make the AuthorizedView protected against deletion. - * The parent Table and containing Instance cannot be deleted if an - * AuthorizedView has this bit set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The name of this AuthorizedView. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The name of this AuthorizedView. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * An AuthorizedView permitting access to an explicit subset of a Table. - * - * Generated from protobuf field .google.bigtable.admin.v2.AuthorizedView.SubsetView subset_view = 2; - * @return \Google\Cloud\Bigtable\Admin\V2\AuthorizedView\SubsetView|null - */ - public function getSubsetView() - { - return $this->readOneof(2); - } - - public function hasSubsetView() - { - return $this->hasOneof(2); - } - - /** - * An AuthorizedView permitting access to an explicit subset of a Table. - * - * Generated from protobuf field .google.bigtable.admin.v2.AuthorizedView.SubsetView subset_view = 2; - * @param \Google\Cloud\Bigtable\Admin\V2\AuthorizedView\SubsetView $var - * @return $this - */ - public function setSubsetView($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\AuthorizedView\SubsetView::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The etag for this AuthorizedView. - * If this is provided on update, it must match the server's etag. The server - * returns ABORTED error on a mismatched etag. - * - * Generated from protobuf field string etag = 3; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * The etag for this AuthorizedView. - * If this is provided on update, it must match the server's etag. The server - * returns ABORTED error on a mismatched etag. - * - * Generated from protobuf field string etag = 3; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Set to true to make the AuthorizedView protected against deletion. - * The parent Table and containing Instance cannot be deleted if an - * AuthorizedView has this bit set. - * - * Generated from protobuf field bool deletion_protection = 4; - * @return bool - */ - public function getDeletionProtection() - { - return $this->deletion_protection; - } - - /** - * Set to true to make the AuthorizedView protected against deletion. - * The parent Table and containing Instance cannot be deleted if an - * AuthorizedView has this bit set. - * - * Generated from protobuf field bool deletion_protection = 4; - * @param bool $var - * @return $this - */ - public function setDeletionProtection($var) - { - GPBUtil::checkBool($var); - $this->deletion_protection = $var; - - return $this; - } - - /** - * @return string - */ - public function getAuthorizedView() - { - return $this->whichOneof("authorized_view"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AuthorizedView/FamilySubsets.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AuthorizedView/FamilySubsets.php deleted file mode 100644 index 27732e4ca766..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AuthorizedView/FamilySubsets.php +++ /dev/null @@ -1,117 +0,0 @@ -google.bigtable.admin.v2.AuthorizedView.FamilySubsets - */ -class FamilySubsets extends \Google\Protobuf\Internal\Message -{ - /** - * Individual exact column qualifiers to be included in the AuthorizedView. - * - * Generated from protobuf field repeated bytes qualifiers = 1; - */ - private $qualifiers; - /** - * Prefixes for qualifiers to be included in the AuthorizedView. Every - * qualifier starting with one of these prefixes is included in the - * AuthorizedView. To provide access to all qualifiers, include the empty - * string as a prefix - * (""). - * - * Generated from protobuf field repeated bytes qualifier_prefixes = 2; - */ - private $qualifier_prefixes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $qualifiers - * Individual exact column qualifiers to be included in the AuthorizedView. - * @type string[] $qualifier_prefixes - * Prefixes for qualifiers to be included in the AuthorizedView. Every - * qualifier starting with one of these prefixes is included in the - * AuthorizedView. To provide access to all qualifiers, include the empty - * string as a prefix - * (""). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); - parent::__construct($data); - } - - /** - * Individual exact column qualifiers to be included in the AuthorizedView. - * - * Generated from protobuf field repeated bytes qualifiers = 1; - * @return RepeatedField - */ - public function getQualifiers() - { - return $this->qualifiers; - } - - /** - * Individual exact column qualifiers to be included in the AuthorizedView. - * - * Generated from protobuf field repeated bytes qualifiers = 1; - * @param string[] $var - * @return $this - */ - public function setQualifiers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::BYTES); - $this->qualifiers = $arr; - - return $this; - } - - /** - * Prefixes for qualifiers to be included in the AuthorizedView. Every - * qualifier starting with one of these prefixes is included in the - * AuthorizedView. To provide access to all qualifiers, include the empty - * string as a prefix - * (""). - * - * Generated from protobuf field repeated bytes qualifier_prefixes = 2; - * @return RepeatedField - */ - public function getQualifierPrefixes() - { - return $this->qualifier_prefixes; - } - - /** - * Prefixes for qualifiers to be included in the AuthorizedView. Every - * qualifier starting with one of these prefixes is included in the - * AuthorizedView. To provide access to all qualifiers, include the empty - * string as a prefix - * (""). - * - * Generated from protobuf field repeated bytes qualifier_prefixes = 2; - * @param string[] $var - * @return $this - */ - public function setQualifierPrefixes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::BYTES); - $this->qualifier_prefixes = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AuthorizedView/ResponseView.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AuthorizedView/ResponseView.php deleted file mode 100644 index 3f695a9ad555..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AuthorizedView/ResponseView.php +++ /dev/null @@ -1,69 +0,0 @@ -google.bigtable.admin.v2.AuthorizedView.ResponseView - */ -class ResponseView -{ - /** - * Uses the default view for each method as documented in the request. - * - * Generated from protobuf enum RESPONSE_VIEW_UNSPECIFIED = 0; - */ - const RESPONSE_VIEW_UNSPECIFIED = 0; - /** - * Only populates `name`. - * - * Generated from protobuf enum NAME_ONLY = 1; - */ - const NAME_ONLY = 1; - /** - * Only populates the AuthorizedView's basic metadata. This includes: - * name, deletion_protection, etag. - * - * Generated from protobuf enum BASIC = 2; - */ - const BASIC = 2; - /** - * Populates every fields. - * - * Generated from protobuf enum FULL = 3; - */ - const FULL = 3; - - private static $valueToName = [ - self::RESPONSE_VIEW_UNSPECIFIED => 'RESPONSE_VIEW_UNSPECIFIED', - self::NAME_ONLY => 'NAME_ONLY', - self::BASIC => 'BASIC', - self::FULL => 'FULL', - ]; - - 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/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AuthorizedView/SubsetView.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AuthorizedView/SubsetView.php deleted file mode 100644 index 1daea5adaf19..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AuthorizedView/SubsetView.php +++ /dev/null @@ -1,109 +0,0 @@ -google.bigtable.admin.v2.AuthorizedView.SubsetView - */ -class SubsetView extends \Google\Protobuf\Internal\Message -{ - /** - * Row prefixes to be included in the AuthorizedView. - * To provide access to all rows, include the empty string as a prefix (""). - * - * Generated from protobuf field repeated bytes row_prefixes = 1; - */ - private $row_prefixes; - /** - * Map from column family name to the columns in this family to be included - * in the AuthorizedView. - * - * Generated from protobuf field map family_subsets = 2; - */ - private $family_subsets; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $row_prefixes - * Row prefixes to be included in the AuthorizedView. - * To provide access to all rows, include the empty string as a prefix (""). - * @type array|\Google\Protobuf\Internal\MapField $family_subsets - * Map from column family name to the columns in this family to be included - * in the AuthorizedView. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); - parent::__construct($data); - } - - /** - * Row prefixes to be included in the AuthorizedView. - * To provide access to all rows, include the empty string as a prefix (""). - * - * Generated from protobuf field repeated bytes row_prefixes = 1; - * @return RepeatedField - */ - public function getRowPrefixes() - { - return $this->row_prefixes; - } - - /** - * Row prefixes to be included in the AuthorizedView. - * To provide access to all rows, include the empty string as a prefix (""). - * - * Generated from protobuf field repeated bytes row_prefixes = 1; - * @param string[] $var - * @return $this - */ - public function setRowPrefixes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::BYTES); - $this->row_prefixes = $arr; - - return $this; - } - - /** - * Map from column family name to the columns in this family to be included - * in the AuthorizedView. - * - * Generated from protobuf field map family_subsets = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getFamilySubsets() - { - return $this->family_subsets; - } - - /** - * Map from column family name to the columns in this family to be included - * in the AuthorizedView. - * - * Generated from protobuf field map family_subsets = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setFamilySubsets($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\AuthorizedView\FamilySubsets::class); - $this->family_subsets = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AutoscalingLimits.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AutoscalingLimits.php deleted file mode 100644 index e492e9555856..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AutoscalingLimits.php +++ /dev/null @@ -1,101 +0,0 @@ -google.bigtable.admin.v2.AutoscalingLimits - */ -class AutoscalingLimits extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Minimum number of nodes to scale down to. - * - * Generated from protobuf field int32 min_serve_nodes = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $min_serve_nodes = 0; - /** - * Required. Maximum number of nodes to scale up to. - * - * Generated from protobuf field int32 max_serve_nodes = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $max_serve_nodes = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $min_serve_nodes - * Required. Minimum number of nodes to scale down to. - * @type int $max_serve_nodes - * Required. Maximum number of nodes to scale up to. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Instance::initOnce(); - parent::__construct($data); - } - - /** - * Required. Minimum number of nodes to scale down to. - * - * Generated from protobuf field int32 min_serve_nodes = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getMinServeNodes() - { - return $this->min_serve_nodes; - } - - /** - * Required. Minimum number of nodes to scale down to. - * - * Generated from protobuf field int32 min_serve_nodes = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setMinServeNodes($var) - { - GPBUtil::checkInt32($var); - $this->min_serve_nodes = $var; - - return $this; - } - - /** - * Required. Maximum number of nodes to scale up to. - * - * Generated from protobuf field int32 max_serve_nodes = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getMaxServeNodes() - { - return $this->max_serve_nodes; - } - - /** - * Required. Maximum number of nodes to scale up to. - * - * Generated from protobuf field int32 max_serve_nodes = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setMaxServeNodes($var) - { - GPBUtil::checkInt32($var); - $this->max_serve_nodes = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AutoscalingTargets.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AutoscalingTargets.php deleted file mode 100644 index 533ef12a6549..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/AutoscalingTargets.php +++ /dev/null @@ -1,133 +0,0 @@ -google.bigtable.admin.v2.AutoscalingTargets - */ -class AutoscalingTargets extends \Google\Protobuf\Internal\Message -{ - /** - * The cpu utilization that the Autoscaler should be trying to achieve. - * This number is on a scale from 0 (no utilization) to - * 100 (total utilization), and is limited between 10 and 80, otherwise it - * will return INVALID_ARGUMENT error. - * - * Generated from protobuf field int32 cpu_utilization_percent = 2; - */ - protected $cpu_utilization_percent = 0; - /** - * The storage utilization that the Autoscaler should be trying to achieve. - * This number is limited between 2560 (2.5TiB) and 5120 (5TiB) for a SSD - * cluster and between 8192 (8TiB) and 16384 (16TiB) for an HDD cluster, - * otherwise it will return INVALID_ARGUMENT error. If this value is set to 0, - * it will be treated as if it were set to the default value: 2560 for SSD, - * 8192 for HDD. - * - * Generated from protobuf field int32 storage_utilization_gib_per_node = 3; - */ - protected $storage_utilization_gib_per_node = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $cpu_utilization_percent - * The cpu utilization that the Autoscaler should be trying to achieve. - * This number is on a scale from 0 (no utilization) to - * 100 (total utilization), and is limited between 10 and 80, otherwise it - * will return INVALID_ARGUMENT error. - * @type int $storage_utilization_gib_per_node - * The storage utilization that the Autoscaler should be trying to achieve. - * This number is limited between 2560 (2.5TiB) and 5120 (5TiB) for a SSD - * cluster and between 8192 (8TiB) and 16384 (16TiB) for an HDD cluster, - * otherwise it will return INVALID_ARGUMENT error. If this value is set to 0, - * it will be treated as if it were set to the default value: 2560 for SSD, - * 8192 for HDD. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Instance::initOnce(); - parent::__construct($data); - } - - /** - * The cpu utilization that the Autoscaler should be trying to achieve. - * This number is on a scale from 0 (no utilization) to - * 100 (total utilization), and is limited between 10 and 80, otherwise it - * will return INVALID_ARGUMENT error. - * - * Generated from protobuf field int32 cpu_utilization_percent = 2; - * @return int - */ - public function getCpuUtilizationPercent() - { - return $this->cpu_utilization_percent; - } - - /** - * The cpu utilization that the Autoscaler should be trying to achieve. - * This number is on a scale from 0 (no utilization) to - * 100 (total utilization), and is limited between 10 and 80, otherwise it - * will return INVALID_ARGUMENT error. - * - * Generated from protobuf field int32 cpu_utilization_percent = 2; - * @param int $var - * @return $this - */ - public function setCpuUtilizationPercent($var) - { - GPBUtil::checkInt32($var); - $this->cpu_utilization_percent = $var; - - return $this; - } - - /** - * The storage utilization that the Autoscaler should be trying to achieve. - * This number is limited between 2560 (2.5TiB) and 5120 (5TiB) for a SSD - * cluster and between 8192 (8TiB) and 16384 (16TiB) for an HDD cluster, - * otherwise it will return INVALID_ARGUMENT error. If this value is set to 0, - * it will be treated as if it were set to the default value: 2560 for SSD, - * 8192 for HDD. - * - * Generated from protobuf field int32 storage_utilization_gib_per_node = 3; - * @return int - */ - public function getStorageUtilizationGibPerNode() - { - return $this->storage_utilization_gib_per_node; - } - - /** - * The storage utilization that the Autoscaler should be trying to achieve. - * This number is limited between 2560 (2.5TiB) and 5120 (5TiB) for a SSD - * cluster and between 8192 (8TiB) and 16384 (16TiB) for an HDD cluster, - * otherwise it will return INVALID_ARGUMENT error. If this value is set to 0, - * it will be treated as if it were set to the default value: 2560 for SSD, - * 8192 for HDD. - * - * Generated from protobuf field int32 storage_utilization_gib_per_node = 3; - * @param int $var - * @return $this - */ - public function setStorageUtilizationGibPerNode($var) - { - GPBUtil::checkInt32($var); - $this->storage_utilization_gib_per_node = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Backup.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Backup.php deleted file mode 100644 index e615febf1f43..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Backup.php +++ /dev/null @@ -1,573 +0,0 @@ -google.bigtable.admin.v2.Backup - */ -class Backup extends \Google\Protobuf\Internal\Message -{ - /** - * A globally unique identifier for the backup which cannot be - * changed. Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}/ - * backups/[_a-zA-Z0-9][-_.a-zA-Z0-9]*` - * The final segment of the name must be between 1 and 50 characters - * in length. - * The backup is stored in the cluster identified by the prefix of the backup - * name of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Required. Immutable. Name of the table from which this backup was created. - * This needs to be in the same instance as the backup. Values are of the form - * `projects/{project}/instances/{instance}/tables/{source_table}`. - * - * Generated from protobuf field string source_table = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - */ - protected $source_table = ''; - /** - * Output only. Name of the backup from which this backup was copied. If a - * backup is not created by copying a backup, this field will be empty. Values - * are of the form: - * projects//instances//clusters//backups/ - * - * Generated from protobuf field string source_backup = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $source_backup = ''; - /** - * Required. The expiration time of the backup. - * When creating a backup or updating its `expire_time`, the value must be - * greater than the backup creation time by: - * - At least 6 hours - * - At most 90 days - * Once the `expire_time` has passed, Cloud Bigtable will delete the backup. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $expire_time = null; - /** - * Output only. `start_time` is the time that the backup was started - * (i.e. approximately the time the - * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup] - * request is received). The row data in this backup will be no older than - * this timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $start_time = null; - /** - * Output only. `end_time` is the time that the backup was finished. The row - * data in the backup will be no newer than this timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. Size of the backup in bytes. - * - * Generated from protobuf field int64 size_bytes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $size_bytes = 0; - /** - * Output only. The current state of the backup. - * - * Generated from protobuf field .google.bigtable.admin.v2.Backup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. The encryption information for the backup. - * - * Generated from protobuf field .google.bigtable.admin.v2.EncryptionInfo encryption_info = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $encryption_info = null; - /** - * Indicates the backup type of the backup. - * - * Generated from protobuf field .google.bigtable.admin.v2.Backup.BackupType backup_type = 11; - */ - protected $backup_type = 0; - /** - * The time at which the hot backup will be converted to a standard backup. - * Once the `hot_to_standard_time` has passed, Cloud Bigtable will convert the - * hot backup to a standard backup. This value must be greater than the backup - * creation time by: - * - At least 24 hours - * This field only applies for hot backups. When creating or updating a - * standard backup, attempting to set this field will fail the request. - * - * Generated from protobuf field .google.protobuf.Timestamp hot_to_standard_time = 12; - */ - protected $hot_to_standard_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * A globally unique identifier for the backup which cannot be - * changed. Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}/ - * backups/[_a-zA-Z0-9][-_.a-zA-Z0-9]*` - * The final segment of the name must be between 1 and 50 characters - * in length. - * The backup is stored in the cluster identified by the prefix of the backup - * name of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}`. - * @type string $source_table - * Required. Immutable. Name of the table from which this backup was created. - * This needs to be in the same instance as the backup. Values are of the form - * `projects/{project}/instances/{instance}/tables/{source_table}`. - * @type string $source_backup - * Output only. Name of the backup from which this backup was copied. If a - * backup is not created by copying a backup, this field will be empty. Values - * are of the form: - * projects//instances//clusters//backups/ - * @type \Google\Protobuf\Timestamp $expire_time - * Required. The expiration time of the backup. - * When creating a backup or updating its `expire_time`, the value must be - * greater than the backup creation time by: - * - At least 6 hours - * - At most 90 days - * Once the `expire_time` has passed, Cloud Bigtable will delete the backup. - * @type \Google\Protobuf\Timestamp $start_time - * Output only. `start_time` is the time that the backup was started - * (i.e. approximately the time the - * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup] - * request is received). The row data in this backup will be no older than - * this timestamp. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. `end_time` is the time that the backup was finished. The row - * data in the backup will be no newer than this timestamp. - * @type int|string $size_bytes - * Output only. Size of the backup in bytes. - * @type int $state - * Output only. The current state of the backup. - * @type \Google\Cloud\Bigtable\Admin\V2\EncryptionInfo $encryption_info - * Output only. The encryption information for the backup. - * @type int $backup_type - * Indicates the backup type of the backup. - * @type \Google\Protobuf\Timestamp $hot_to_standard_time - * The time at which the hot backup will be converted to a standard backup. - * Once the `hot_to_standard_time` has passed, Cloud Bigtable will convert the - * hot backup to a standard backup. This value must be greater than the backup - * creation time by: - * - At least 24 hours - * This field only applies for hot backups. When creating or updating a - * standard backup, attempting to set this field will fail the request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); - parent::__construct($data); - } - - /** - * A globally unique identifier for the backup which cannot be - * changed. Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}/ - * backups/[_a-zA-Z0-9][-_.a-zA-Z0-9]*` - * The final segment of the name must be between 1 and 50 characters - * in length. - * The backup is stored in the cluster identified by the prefix of the backup - * name of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * A globally unique identifier for the backup which cannot be - * changed. Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}/ - * backups/[_a-zA-Z0-9][-_.a-zA-Z0-9]*` - * The final segment of the name must be between 1 and 50 characters - * in length. - * The backup is stored in the cluster identified by the prefix of the backup - * name of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}`. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Immutable. Name of the table from which this backup was created. - * This needs to be in the same instance as the backup. Values are of the form - * `projects/{project}/instances/{instance}/tables/{source_table}`. - * - * Generated from protobuf field string source_table = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getSourceTable() - { - return $this->source_table; - } - - /** - * Required. Immutable. Name of the table from which this backup was created. - * This needs to be in the same instance as the backup. Values are of the form - * `projects/{project}/instances/{instance}/tables/{source_table}`. - * - * Generated from protobuf field string source_table = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setSourceTable($var) - { - GPBUtil::checkString($var, True); - $this->source_table = $var; - - return $this; - } - - /** - * Output only. Name of the backup from which this backup was copied. If a - * backup is not created by copying a backup, this field will be empty. Values - * are of the form: - * projects//instances//clusters//backups/ - * - * Generated from protobuf field string source_backup = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getSourceBackup() - { - return $this->source_backup; - } - - /** - * Output only. Name of the backup from which this backup was copied. If a - * backup is not created by copying a backup, this field will be empty. Values - * are of the form: - * projects//instances//clusters//backups/ - * - * Generated from protobuf field string source_backup = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setSourceBackup($var) - { - GPBUtil::checkString($var, True); - $this->source_backup = $var; - - return $this; - } - - /** - * Required. The expiration time of the backup. - * When creating a backup or updating its `expire_time`, the value must be - * greater than the backup creation time by: - * - At least 6 hours - * - At most 90 days - * Once the `expire_time` has passed, Cloud Bigtable will delete the backup. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getExpireTime() - { - return $this->expire_time; - } - - public function hasExpireTime() - { - return isset($this->expire_time); - } - - public function clearExpireTime() - { - unset($this->expire_time); - } - - /** - * Required. The expiration time of the backup. - * When creating a backup or updating its `expire_time`, the value must be - * greater than the backup creation time by: - * - At least 6 hours - * - At most 90 days - * Once the `expire_time` has passed, Cloud Bigtable will delete the backup. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setExpireTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->expire_time = $var; - - return $this; - } - - /** - * Output only. `start_time` is the time that the backup was started - * (i.e. approximately the time the - * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup] - * request is received). The row data in this backup will be no older than - * this timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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); - } - - /** - * Output only. `start_time` is the time that the backup was started - * (i.e. approximately the time the - * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup] - * request is received). The row data in this backup will be no older than - * this timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * Output only. `end_time` is the time that the backup was finished. The row - * data in the backup will be no newer than this timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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); - } - - /** - * Output only. `end_time` is the time that the backup was finished. The row - * data in the backup will be no newer than this timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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. Size of the backup in bytes. - * - * Generated from protobuf field int64 size_bytes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getSizeBytes() - { - return $this->size_bytes; - } - - /** - * Output only. Size of the backup in bytes. - * - * Generated from protobuf field int64 size_bytes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setSizeBytes($var) - { - GPBUtil::checkInt64($var); - $this->size_bytes = $var; - - return $this; - } - - /** - * Output only. The current state of the backup. - * - * Generated from protobuf field .google.bigtable.admin.v2.Backup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current state of the backup. - * - * Generated from protobuf field .google.bigtable.admin.v2.Backup.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\Backup\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. The encryption information for the backup. - * - * Generated from protobuf field .google.bigtable.admin.v2.EncryptionInfo encryption_info = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Bigtable\Admin\V2\EncryptionInfo|null - */ - public function getEncryptionInfo() - { - return $this->encryption_info; - } - - public function hasEncryptionInfo() - { - return isset($this->encryption_info); - } - - public function clearEncryptionInfo() - { - unset($this->encryption_info); - } - - /** - * Output only. The encryption information for the backup. - * - * Generated from protobuf field .google.bigtable.admin.v2.EncryptionInfo encryption_info = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Bigtable\Admin\V2\EncryptionInfo $var - * @return $this - */ - public function setEncryptionInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\EncryptionInfo::class); - $this->encryption_info = $var; - - return $this; - } - - /** - * Indicates the backup type of the backup. - * - * Generated from protobuf field .google.bigtable.admin.v2.Backup.BackupType backup_type = 11; - * @return int - */ - public function getBackupType() - { - return $this->backup_type; - } - - /** - * Indicates the backup type of the backup. - * - * Generated from protobuf field .google.bigtable.admin.v2.Backup.BackupType backup_type = 11; - * @param int $var - * @return $this - */ - public function setBackupType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\Backup\BackupType::class); - $this->backup_type = $var; - - return $this; - } - - /** - * The time at which the hot backup will be converted to a standard backup. - * Once the `hot_to_standard_time` has passed, Cloud Bigtable will convert the - * hot backup to a standard backup. This value must be greater than the backup - * creation time by: - * - At least 24 hours - * This field only applies for hot backups. When creating or updating a - * standard backup, attempting to set this field will fail the request. - * - * Generated from protobuf field .google.protobuf.Timestamp hot_to_standard_time = 12; - * @return \Google\Protobuf\Timestamp|null - */ - public function getHotToStandardTime() - { - return $this->hot_to_standard_time; - } - - public function hasHotToStandardTime() - { - return isset($this->hot_to_standard_time); - } - - public function clearHotToStandardTime() - { - unset($this->hot_to_standard_time); - } - - /** - * The time at which the hot backup will be converted to a standard backup. - * Once the `hot_to_standard_time` has passed, Cloud Bigtable will convert the - * hot backup to a standard backup. This value must be greater than the backup - * creation time by: - * - At least 24 hours - * This field only applies for hot backups. When creating or updating a - * standard backup, attempting to set this field will fail the request. - * - * Generated from protobuf field .google.protobuf.Timestamp hot_to_standard_time = 12; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setHotToStandardTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->hot_to_standard_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Backup/BackupType.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Backup/BackupType.php deleted file mode 100644 index 667637049b85..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Backup/BackupType.php +++ /dev/null @@ -1,66 +0,0 @@ -google.bigtable.admin.v2.Backup.BackupType - */ -class BackupType -{ - /** - * Not specified. - * - * Generated from protobuf enum BACKUP_TYPE_UNSPECIFIED = 0; - */ - const BACKUP_TYPE_UNSPECIFIED = 0; - /** - * The default type for Cloud Bigtable managed backups. Supported for - * backups created in both HDD and SSD instances. Requires optimization when - * restored to a table in an SSD instance. - * - * Generated from protobuf enum STANDARD = 1; - */ - const STANDARD = 1; - /** - * A backup type with faster restore to SSD performance. Only supported for - * backups created in SSD instances. A new SSD table restored from a hot - * backup reaches production performance more quickly than a standard - * backup. - * - * Generated from protobuf enum HOT = 2; - */ - const HOT = 2; - - private static $valueToName = [ - self::BACKUP_TYPE_UNSPECIFIED => 'BACKUP_TYPE_UNSPECIFIED', - self::STANDARD => 'STANDARD', - self::HOT => 'HOT', - ]; - - 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/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Backup/State.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Backup/State.php deleted file mode 100644 index 35028722cc23..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Backup/State.php +++ /dev/null @@ -1,62 +0,0 @@ -google.bigtable.admin.v2.Backup.State - */ -class State -{ - /** - * Not specified. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The pending backup is still being created. Operations on the - * backup may fail with `FAILED_PRECONDITION` in this state. - * - * Generated from protobuf enum CREATING = 1; - */ - const CREATING = 1; - /** - * The backup is complete and ready for use. - * - * Generated from protobuf enum READY = 2; - */ - const READY = 2; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::CREATING => 'CREATING', - self::READY => 'READY', - ]; - - 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/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/BackupInfo.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/BackupInfo.php deleted file mode 100644 index 87930a9c2158..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/BackupInfo.php +++ /dev/null @@ -1,243 +0,0 @@ -google.bigtable.admin.v2.BackupInfo - */ -class BackupInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Name of the backup. - * - * Generated from protobuf field string backup = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $backup = ''; - /** - * Output only. The time that the backup was started. Row data in the backup - * will be no older than this timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $start_time = null; - /** - * Output only. This time that the backup was finished. Row data in the - * backup will be no newer than this timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. Name of the table the backup was created from. - * - * Generated from protobuf field string source_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $source_table = ''; - /** - * Output only. Name of the backup from which this backup was copied. If a - * backup is not created by copying a backup, this field will be empty. Values - * are of the form: - * projects//instances//clusters//backups/ - * - * Generated from protobuf field string source_backup = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $source_backup = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $backup - * Output only. Name of the backup. - * @type \Google\Protobuf\Timestamp $start_time - * Output only. The time that the backup was started. Row data in the backup - * will be no older than this timestamp. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. This time that the backup was finished. Row data in the - * backup will be no newer than this timestamp. - * @type string $source_table - * Output only. Name of the table the backup was created from. - * @type string $source_backup - * Output only. Name of the backup from which this backup was copied. If a - * backup is not created by copying a backup, this field will be empty. Values - * are of the form: - * projects//instances//clusters//backups/ - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Name of the backup. - * - * Generated from protobuf field string backup = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getBackup() - { - return $this->backup; - } - - /** - * Output only. Name of the backup. - * - * Generated from protobuf field string backup = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setBackup($var) - { - GPBUtil::checkString($var, True); - $this->backup = $var; - - return $this; - } - - /** - * Output only. The time that the backup was started. Row data in the backup - * will be no older than this timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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); - } - - /** - * Output only. The time that the backup was started. Row data in the backup - * will be no older than this timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * Output only. This time that the backup was finished. Row data in the - * backup will be no newer than this timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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); - } - - /** - * Output only. This time that the backup was finished. Row data in the - * backup will be no newer than this timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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. Name of the table the backup was created from. - * - * Generated from protobuf field string source_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getSourceTable() - { - return $this->source_table; - } - - /** - * Output only. Name of the table the backup was created from. - * - * Generated from protobuf field string source_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setSourceTable($var) - { - GPBUtil::checkString($var, True); - $this->source_table = $var; - - return $this; - } - - /** - * Output only. Name of the backup from which this backup was copied. If a - * backup is not created by copying a backup, this field will be empty. Values - * are of the form: - * projects//instances//clusters//backups/ - * - * Generated from protobuf field string source_backup = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getSourceBackup() - { - return $this->source_backup; - } - - /** - * Output only. Name of the backup from which this backup was copied. If a - * backup is not created by copying a backup, this field will be empty. Values - * are of the form: - * projects//instances//clusters//backups/ - * - * Generated from protobuf field string source_backup = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setSourceBackup($var) - { - GPBUtil::checkString($var, True); - $this->source_backup = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ChangeStreamConfig.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ChangeStreamConfig.php deleted file mode 100644 index c49d0acce35d..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ChangeStreamConfig.php +++ /dev/null @@ -1,93 +0,0 @@ -google.bigtable.admin.v2.ChangeStreamConfig - */ -class ChangeStreamConfig extends \Google\Protobuf\Internal\Message -{ - /** - * How long the change stream should be retained. Change stream data older - * than the retention period will not be returned when reading the change - * stream from the table. - * Values must be at least 1 day and at most 7 days, and will be truncated to - * microsecond granularity. - * - * Generated from protobuf field .google.protobuf.Duration retention_period = 1; - */ - protected $retention_period = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Duration $retention_period - * How long the change stream should be retained. Change stream data older - * than the retention period will not be returned when reading the change - * stream from the table. - * Values must be at least 1 day and at most 7 days, and will be truncated to - * microsecond granularity. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); - parent::__construct($data); - } - - /** - * How long the change stream should be retained. Change stream data older - * than the retention period will not be returned when reading the change - * stream from the table. - * Values must be at least 1 day and at most 7 days, and will be truncated to - * microsecond granularity. - * - * Generated from protobuf field .google.protobuf.Duration retention_period = 1; - * @return \Google\Protobuf\Duration|null - */ - public function getRetentionPeriod() - { - return $this->retention_period; - } - - public function hasRetentionPeriod() - { - return isset($this->retention_period); - } - - public function clearRetentionPeriod() - { - unset($this->retention_period); - } - - /** - * How long the change stream should be retained. Change stream data older - * than the retention period will not be returned when reading the change - * stream from the table. - * Values must be at least 1 day and at most 7 days, and will be truncated to - * microsecond granularity. - * - * Generated from protobuf field .google.protobuf.Duration retention_period = 1; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setRetentionPeriod($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->retention_period = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CheckConsistencyRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CheckConsistencyRequest.php deleted file mode 100644 index a0f9e2cc3577..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CheckConsistencyRequest.php +++ /dev/null @@ -1,215 +0,0 @@ -google.bigtable.admin.v2.CheckConsistencyRequest - */ -class CheckConsistencyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the Table for which to check replication - * consistency. Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. The token created using GenerateConsistencyToken for the Table. - * - * Generated from protobuf field string consistency_token = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $consistency_token = ''; - protected $mode; - - /** - * @param string $name Required. The unique name of the Table for which to check replication - * consistency. Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. Please see - * {@see BigtableTableAdminClient::tableName()} for help formatting this field. - * @param string $consistencyToken Required. The token created using GenerateConsistencyToken for the Table. - * - * @return \Google\Cloud\Bigtable\Admin\V2\CheckConsistencyRequest - * - * @experimental - */ - public static function build(string $name, string $consistencyToken): self - { - return (new self()) - ->setName($name) - ->setConsistencyToken($consistencyToken); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The unique name of the Table for which to check replication - * consistency. Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * @type string $consistency_token - * Required. The token created using GenerateConsistencyToken for the Table. - * @type \Google\Cloud\Bigtable\Admin\V2\StandardReadRemoteWrites $standard_read_remote_writes - * Checks that reads using an app profile with `StandardIsolation` can - * see all writes committed before the token was created, even if the - * read and write target different clusters. - * @type \Google\Cloud\Bigtable\Admin\V2\DataBoostReadLocalWrites $data_boost_read_local_writes - * Checks that reads using an app profile with `DataBoostIsolationReadOnly` - * can see all writes committed before the token was created, but only if - * the read and write target the same cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the Table for which to check replication - * consistency. Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The unique name of the Table for which to check replication - * consistency. Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The token created using GenerateConsistencyToken for the Table. - * - * Generated from protobuf field string consistency_token = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getConsistencyToken() - { - return $this->consistency_token; - } - - /** - * Required. The token created using GenerateConsistencyToken for the Table. - * - * Generated from protobuf field string consistency_token = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setConsistencyToken($var) - { - GPBUtil::checkString($var, True); - $this->consistency_token = $var; - - return $this; - } - - /** - * Checks that reads using an app profile with `StandardIsolation` can - * see all writes committed before the token was created, even if the - * read and write target different clusters. - * - * Generated from protobuf field .google.bigtable.admin.v2.StandardReadRemoteWrites standard_read_remote_writes = 3; - * @return \Google\Cloud\Bigtable\Admin\V2\StandardReadRemoteWrites|null - */ - public function getStandardReadRemoteWrites() - { - return $this->readOneof(3); - } - - public function hasStandardReadRemoteWrites() - { - return $this->hasOneof(3); - } - - /** - * Checks that reads using an app profile with `StandardIsolation` can - * see all writes committed before the token was created, even if the - * read and write target different clusters. - * - * Generated from protobuf field .google.bigtable.admin.v2.StandardReadRemoteWrites standard_read_remote_writes = 3; - * @param \Google\Cloud\Bigtable\Admin\V2\StandardReadRemoteWrites $var - * @return $this - */ - public function setStandardReadRemoteWrites($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\StandardReadRemoteWrites::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Checks that reads using an app profile with `DataBoostIsolationReadOnly` - * can see all writes committed before the token was created, but only if - * the read and write target the same cluster. - * - * Generated from protobuf field .google.bigtable.admin.v2.DataBoostReadLocalWrites data_boost_read_local_writes = 4; - * @return \Google\Cloud\Bigtable\Admin\V2\DataBoostReadLocalWrites|null - */ - public function getDataBoostReadLocalWrites() - { - return $this->readOneof(4); - } - - public function hasDataBoostReadLocalWrites() - { - return $this->hasOneof(4); - } - - /** - * Checks that reads using an app profile with `DataBoostIsolationReadOnly` - * can see all writes committed before the token was created, but only if - * the read and write target the same cluster. - * - * Generated from protobuf field .google.bigtable.admin.v2.DataBoostReadLocalWrites data_boost_read_local_writes = 4; - * @param \Google\Cloud\Bigtable\Admin\V2\DataBoostReadLocalWrites $var - * @return $this - */ - public function setDataBoostReadLocalWrites($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\DataBoostReadLocalWrites::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getMode() - { - return $this->whichOneof("mode"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CheckConsistencyResponse.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CheckConsistencyResponse.php deleted file mode 100644 index 62e5dd4edf2c..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CheckConsistencyResponse.php +++ /dev/null @@ -1,72 +0,0 @@ -google.bigtable.admin.v2.CheckConsistencyResponse - */ -class CheckConsistencyResponse extends \Google\Protobuf\Internal\Message -{ - /** - * True only if the token is consistent. A token is consistent if replication - * has caught up with the restrictions specified in the request. - * - * Generated from protobuf field bool consistent = 1; - */ - protected $consistent = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $consistent - * True only if the token is consistent. A token is consistent if replication - * has caught up with the restrictions specified in the request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * True only if the token is consistent. A token is consistent if replication - * has caught up with the restrictions specified in the request. - * - * Generated from protobuf field bool consistent = 1; - * @return bool - */ - public function getConsistent() - { - return $this->consistent; - } - - /** - * True only if the token is consistent. A token is consistent if replication - * has caught up with the restrictions specified in the request. - * - * Generated from protobuf field bool consistent = 1; - * @param bool $var - * @return $this - */ - public function setConsistent($var) - { - GPBUtil::checkBool($var); - $this->consistent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster.php deleted file mode 100644 index 9f6db5475275..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster.php +++ /dev/null @@ -1,353 +0,0 @@ -google.bigtable.admin.v2.Cluster - */ -class Cluster extends \Google\Protobuf\Internal\Message -{ - /** - * The unique name of the cluster. Values are of the form - * `projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Immutable. The location where this cluster's nodes and storage reside. For - * best performance, clients should be located as close as possible to this - * cluster. Currently only zones are supported, so values should be of the - * form `projects/{project}/locations/{zone}`. - * - * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - */ - protected $location = ''; - /** - * Output only. The current state of the cluster. - * - * Generated from protobuf field .google.bigtable.admin.v2.Cluster.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * The number of nodes in the cluster. If no value is set, - * Cloud Bigtable automatically allocates nodes based on your data footprint - * and optimized for 50% storage utilization. - * - * Generated from protobuf field int32 serve_nodes = 4; - */ - protected $serve_nodes = 0; - /** - * Immutable. The node scaling factor of this cluster. - * - * Generated from protobuf field .google.bigtable.admin.v2.Cluster.NodeScalingFactor node_scaling_factor = 9 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $node_scaling_factor = 0; - /** - * Immutable. The type of storage used by this cluster to serve its - * parent instance's tables, unless explicitly overridden. - * - * Generated from protobuf field .google.bigtable.admin.v2.StorageType default_storage_type = 5 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $default_storage_type = 0; - /** - * Immutable. The encryption configuration for CMEK-protected clusters. - * - * Generated from protobuf field .google.bigtable.admin.v2.Cluster.EncryptionConfig encryption_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $encryption_config = null; - protected $config; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The unique name of the cluster. Values are of the form - * `projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`. - * @type string $location - * Immutable. The location where this cluster's nodes and storage reside. For - * best performance, clients should be located as close as possible to this - * cluster. Currently only zones are supported, so values should be of the - * form `projects/{project}/locations/{zone}`. - * @type int $state - * Output only. The current state of the cluster. - * @type int $serve_nodes - * The number of nodes in the cluster. If no value is set, - * Cloud Bigtable automatically allocates nodes based on your data footprint - * and optimized for 50% storage utilization. - * @type int $node_scaling_factor - * Immutable. The node scaling factor of this cluster. - * @type \Google\Cloud\Bigtable\Admin\V2\Cluster\ClusterConfig $cluster_config - * Configuration for this cluster. - * @type int $default_storage_type - * Immutable. The type of storage used by this cluster to serve its - * parent instance's tables, unless explicitly overridden. - * @type \Google\Cloud\Bigtable\Admin\V2\Cluster\EncryptionConfig $encryption_config - * Immutable. The encryption configuration for CMEK-protected clusters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Instance::initOnce(); - parent::__construct($data); - } - - /** - * The unique name of the cluster. Values are of the form - * `projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The unique name of the cluster. Values are of the form - * `projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. The location where this cluster's nodes and storage reside. For - * best performance, clients should be located as close as possible to this - * cluster. Currently only zones are supported, so values should be of the - * form `projects/{project}/locations/{zone}`. - * - * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Immutable. The location where this cluster's nodes and storage reside. For - * best performance, clients should be located as close as possible to this - * cluster. Currently only zones are supported, so values should be of the - * form `projects/{project}/locations/{zone}`. - * - * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * Output only. The current state of the cluster. - * - * Generated from protobuf field .google.bigtable.admin.v2.Cluster.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current state of the cluster. - * - * Generated from protobuf field .google.bigtable.admin.v2.Cluster.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\Cluster\State::class); - $this->state = $var; - - return $this; - } - - /** - * The number of nodes in the cluster. If no value is set, - * Cloud Bigtable automatically allocates nodes based on your data footprint - * and optimized for 50% storage utilization. - * - * Generated from protobuf field int32 serve_nodes = 4; - * @return int - */ - public function getServeNodes() - { - return $this->serve_nodes; - } - - /** - * The number of nodes in the cluster. If no value is set, - * Cloud Bigtable automatically allocates nodes based on your data footprint - * and optimized for 50% storage utilization. - * - * Generated from protobuf field int32 serve_nodes = 4; - * @param int $var - * @return $this - */ - public function setServeNodes($var) - { - GPBUtil::checkInt32($var); - $this->serve_nodes = $var; - - return $this; - } - - /** - * Immutable. The node scaling factor of this cluster. - * - * Generated from protobuf field .google.bigtable.admin.v2.Cluster.NodeScalingFactor node_scaling_factor = 9 [(.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getNodeScalingFactor() - { - return $this->node_scaling_factor; - } - - /** - * Immutable. The node scaling factor of this cluster. - * - * Generated from protobuf field .google.bigtable.admin.v2.Cluster.NodeScalingFactor node_scaling_factor = 9 [(.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setNodeScalingFactor($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\Cluster\NodeScalingFactor::class); - $this->node_scaling_factor = $var; - - return $this; - } - - /** - * Configuration for this cluster. - * - * Generated from protobuf field .google.bigtable.admin.v2.Cluster.ClusterConfig cluster_config = 7; - * @return \Google\Cloud\Bigtable\Admin\V2\Cluster\ClusterConfig|null - */ - public function getClusterConfig() - { - return $this->readOneof(7); - } - - public function hasClusterConfig() - { - return $this->hasOneof(7); - } - - /** - * Configuration for this cluster. - * - * Generated from protobuf field .google.bigtable.admin.v2.Cluster.ClusterConfig cluster_config = 7; - * @param \Google\Cloud\Bigtable\Admin\V2\Cluster\ClusterConfig $var - * @return $this - */ - public function setClusterConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Cluster\ClusterConfig::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Immutable. The type of storage used by this cluster to serve its - * parent instance's tables, unless explicitly overridden. - * - * Generated from protobuf field .google.bigtable.admin.v2.StorageType default_storage_type = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getDefaultStorageType() - { - return $this->default_storage_type; - } - - /** - * Immutable. The type of storage used by this cluster to serve its - * parent instance's tables, unless explicitly overridden. - * - * Generated from protobuf field .google.bigtable.admin.v2.StorageType default_storage_type = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setDefaultStorageType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\StorageType::class); - $this->default_storage_type = $var; - - return $this; - } - - /** - * Immutable. The encryption configuration for CMEK-protected clusters. - * - * Generated from protobuf field .google.bigtable.admin.v2.Cluster.EncryptionConfig encryption_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Cloud\Bigtable\Admin\V2\Cluster\EncryptionConfig|null - */ - public function getEncryptionConfig() - { - return $this->encryption_config; - } - - public function hasEncryptionConfig() - { - return isset($this->encryption_config); - } - - public function clearEncryptionConfig() - { - unset($this->encryption_config); - } - - /** - * Immutable. The encryption configuration for CMEK-protected clusters. - * - * Generated from protobuf field .google.bigtable.admin.v2.Cluster.EncryptionConfig encryption_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Cloud\Bigtable\Admin\V2\Cluster\EncryptionConfig $var - * @return $this - */ - public function setEncryptionConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Cluster\EncryptionConfig::class); - $this->encryption_config = $var; - - return $this; - } - - /** - * @return string - */ - public function getConfig() - { - return $this->whichOneof("config"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/ClusterAutoscalingConfig.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/ClusterAutoscalingConfig.php deleted file mode 100644 index ffdf17e79840..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/ClusterAutoscalingConfig.php +++ /dev/null @@ -1,121 +0,0 @@ -google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig - */ -class ClusterAutoscalingConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Autoscaling limits for this cluster. - * - * Generated from protobuf field .google.bigtable.admin.v2.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $autoscaling_limits = null; - /** - * Required. Autoscaling targets for this cluster. - * - * Generated from protobuf field .google.bigtable.admin.v2.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $autoscaling_targets = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\AutoscalingLimits $autoscaling_limits - * Required. Autoscaling limits for this cluster. - * @type \Google\Cloud\Bigtable\Admin\V2\AutoscalingTargets $autoscaling_targets - * Required. Autoscaling targets for this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Instance::initOnce(); - parent::__construct($data); - } - - /** - * Required. Autoscaling limits for this cluster. - * - * Generated from protobuf field .google.bigtable.admin.v2.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Bigtable\Admin\V2\AutoscalingLimits|null - */ - public function getAutoscalingLimits() - { - return $this->autoscaling_limits; - } - - public function hasAutoscalingLimits() - { - return isset($this->autoscaling_limits); - } - - public function clearAutoscalingLimits() - { - unset($this->autoscaling_limits); - } - - /** - * Required. Autoscaling limits for this cluster. - * - * Generated from protobuf field .google.bigtable.admin.v2.AutoscalingLimits autoscaling_limits = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Bigtable\Admin\V2\AutoscalingLimits $var - * @return $this - */ - public function setAutoscalingLimits($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\AutoscalingLimits::class); - $this->autoscaling_limits = $var; - - return $this; - } - - /** - * Required. Autoscaling targets for this cluster. - * - * Generated from protobuf field .google.bigtable.admin.v2.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Bigtable\Admin\V2\AutoscalingTargets|null - */ - public function getAutoscalingTargets() - { - return $this->autoscaling_targets; - } - - public function hasAutoscalingTargets() - { - return isset($this->autoscaling_targets); - } - - public function clearAutoscalingTargets() - { - unset($this->autoscaling_targets); - } - - /** - * Required. Autoscaling targets for this cluster. - * - * Generated from protobuf field .google.bigtable.admin.v2.AutoscalingTargets autoscaling_targets = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Bigtable\Admin\V2\AutoscalingTargets $var - * @return $this - */ - public function setAutoscalingTargets($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\AutoscalingTargets::class); - $this->autoscaling_targets = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/ClusterConfig.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/ClusterConfig.php deleted file mode 100644 index 7f6d38f7e1f8..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/ClusterConfig.php +++ /dev/null @@ -1,77 +0,0 @@ -google.bigtable.admin.v2.Cluster.ClusterConfig - */ -class ClusterConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Autoscaling configuration for this cluster. - * - * Generated from protobuf field .google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig cluster_autoscaling_config = 1; - */ - protected $cluster_autoscaling_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\Cluster\ClusterAutoscalingConfig $cluster_autoscaling_config - * Autoscaling configuration for this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Instance::initOnce(); - parent::__construct($data); - } - - /** - * Autoscaling configuration for this cluster. - * - * Generated from protobuf field .google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig cluster_autoscaling_config = 1; - * @return \Google\Cloud\Bigtable\Admin\V2\Cluster\ClusterAutoscalingConfig|null - */ - public function getClusterAutoscalingConfig() - { - return $this->cluster_autoscaling_config; - } - - public function hasClusterAutoscalingConfig() - { - return isset($this->cluster_autoscaling_config); - } - - public function clearClusterAutoscalingConfig() - { - unset($this->cluster_autoscaling_config); - } - - /** - * Autoscaling configuration for this cluster. - * - * Generated from protobuf field .google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig cluster_autoscaling_config = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\Cluster\ClusterAutoscalingConfig $var - * @return $this - */ - public function setClusterAutoscalingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Cluster\ClusterAutoscalingConfig::class); - $this->cluster_autoscaling_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/EncryptionConfig.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/EncryptionConfig.php deleted file mode 100644 index c792565f5067..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/EncryptionConfig.php +++ /dev/null @@ -1,100 +0,0 @@ -google.bigtable.admin.v2.Cluster.EncryptionConfig - */ -class EncryptionConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Describes the Cloud KMS encryption key that will be used to protect the - * destination Bigtable cluster. The requirements for this key are: - * 1) The Cloud Bigtable service account associated with the project that - * contains this cluster must be granted the - * `cloudkms.cryptoKeyEncrypterDecrypter` role on the CMEK key. - * 2) Only regional keys can be used and the region of the CMEK key must - * match the region of the cluster. - * Values are of the form - * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}` - * - * Generated from protobuf field string kms_key_name = 1 [(.google.api.resource_reference) = { - */ - protected $kms_key_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $kms_key_name - * Describes the Cloud KMS encryption key that will be used to protect the - * destination Bigtable cluster. The requirements for this key are: - * 1) The Cloud Bigtable service account associated with the project that - * contains this cluster must be granted the - * `cloudkms.cryptoKeyEncrypterDecrypter` role on the CMEK key. - * 2) Only regional keys can be used and the region of the CMEK key must - * match the region of the cluster. - * Values are of the form - * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Instance::initOnce(); - parent::__construct($data); - } - - /** - * Describes the Cloud KMS encryption key that will be used to protect the - * destination Bigtable cluster. The requirements for this key are: - * 1) The Cloud Bigtable service account associated with the project that - * contains this cluster must be granted the - * `cloudkms.cryptoKeyEncrypterDecrypter` role on the CMEK key. - * 2) Only regional keys can be used and the region of the CMEK key must - * match the region of the cluster. - * Values are of the form - * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}` - * - * Generated from protobuf field string kms_key_name = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getKmsKeyName() - { - return $this->kms_key_name; - } - - /** - * Describes the Cloud KMS encryption key that will be used to protect the - * destination Bigtable cluster. The requirements for this key are: - * 1) The Cloud Bigtable service account associated with the project that - * contains this cluster must be granted the - * `cloudkms.cryptoKeyEncrypterDecrypter` role on the CMEK key. - * 2) Only regional keys can be used and the region of the CMEK key must - * match the region of the cluster. - * Values are of the form - * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}` - * - * Generated from protobuf field string kms_key_name = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setKmsKeyName($var) - { - GPBUtil::checkString($var, True); - $this->kms_key_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/NodeScalingFactor.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/NodeScalingFactor.php deleted file mode 100644 index 3ba9f0bddb91..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/NodeScalingFactor.php +++ /dev/null @@ -1,64 +0,0 @@ -google.bigtable.admin.v2.Cluster.NodeScalingFactor - */ -class NodeScalingFactor -{ - /** - * No node scaling specified. Defaults to NODE_SCALING_FACTOR_1X. - * - * Generated from protobuf enum NODE_SCALING_FACTOR_UNSPECIFIED = 0; - */ - const NODE_SCALING_FACTOR_UNSPECIFIED = 0; - /** - * The cluster is running with a scaling factor of 1. - * - * Generated from protobuf enum NODE_SCALING_FACTOR_1X = 1; - */ - const NODE_SCALING_FACTOR_1X = 1; - /** - * The cluster is running with a scaling factor of 2. - * All node count values must be in increments of 2 with this scaling factor - * enabled, otherwise an INVALID_ARGUMENT error will be returned. - * - * Generated from protobuf enum NODE_SCALING_FACTOR_2X = 2; - */ - const NODE_SCALING_FACTOR_2X = 2; - - private static $valueToName = [ - self::NODE_SCALING_FACTOR_UNSPECIFIED => 'NODE_SCALING_FACTOR_UNSPECIFIED', - self::NODE_SCALING_FACTOR_1X => 'NODE_SCALING_FACTOR_1X', - self::NODE_SCALING_FACTOR_2X => 'NODE_SCALING_FACTOR_2X', - ]; - - 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/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/State.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/State.php deleted file mode 100644 index 6ae42297374e..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Cluster/State.php +++ /dev/null @@ -1,82 +0,0 @@ -google.bigtable.admin.v2.Cluster.State - */ -class State -{ - /** - * The state of the cluster could not be determined. - * - * Generated from protobuf enum STATE_NOT_KNOWN = 0; - */ - const STATE_NOT_KNOWN = 0; - /** - * The cluster has been successfully created and is ready to serve requests. - * - * Generated from protobuf enum READY = 1; - */ - const READY = 1; - /** - * The cluster is currently being created, and may be destroyed - * if the creation process encounters an error. - * A cluster may not be able to serve requests while being created. - * - * Generated from protobuf enum CREATING = 2; - */ - const CREATING = 2; - /** - * The cluster is currently being resized, and may revert to its previous - * node count if the process encounters an error. - * A cluster is still capable of serving requests while being resized, - * but may exhibit performance as if its number of allocated nodes is - * between the starting and requested states. - * - * Generated from protobuf enum RESIZING = 3; - */ - const RESIZING = 3; - /** - * The cluster has no backing nodes. The data (tables) still - * exist, but no operations can be performed on the cluster. - * - * Generated from protobuf enum DISABLED = 4; - */ - const DISABLED = 4; - - private static $valueToName = [ - self::STATE_NOT_KNOWN => 'STATE_NOT_KNOWN', - self::READY => 'READY', - self::CREATING => 'CREATING', - self::RESIZING => 'RESIZING', - self::DISABLED => 'DISABLED', - ]; - - 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/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ColumnFamily.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ColumnFamily.php deleted file mode 100644 index 5d75d43506d1..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ColumnFamily.php +++ /dev/null @@ -1,157 +0,0 @@ -google.bigtable.admin.v2.ColumnFamily - */ -class ColumnFamily extends \Google\Protobuf\Internal\Message -{ - /** - * Garbage collection rule specified as a protobuf. - * Must serialize to at most 500 bytes. - * NOTE: Garbage collection executes opportunistically in the background, and - * so it's possible for reads to return a cell even if it matches the active - * GC expression for its family. - * - * Generated from protobuf field .google.bigtable.admin.v2.GcRule gc_rule = 1; - */ - protected $gc_rule = null; - /** - * The type of data stored in each of this family's cell values, including its - * full encoding. If omitted, the family only serves raw untyped bytes. - * For now, only the `Aggregate` type is supported. - * `Aggregate` can only be set at family creation and is immutable afterwards. - * If `value_type` is `Aggregate`, written data must be compatible with: - * * `value_type.input_type` for `AddInput` mutations - * - * Generated from protobuf field .google.bigtable.admin.v2.Type value_type = 3; - */ - protected $value_type = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\GcRule $gc_rule - * Garbage collection rule specified as a protobuf. - * Must serialize to at most 500 bytes. - * NOTE: Garbage collection executes opportunistically in the background, and - * so it's possible for reads to return a cell even if it matches the active - * GC expression for its family. - * @type \Google\Cloud\Bigtable\Admin\V2\Type $value_type - * The type of data stored in each of this family's cell values, including its - * full encoding. If omitted, the family only serves raw untyped bytes. - * For now, only the `Aggregate` type is supported. - * `Aggregate` can only be set at family creation and is immutable afterwards. - * If `value_type` is `Aggregate`, written data must be compatible with: - * * `value_type.input_type` for `AddInput` mutations - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); - parent::__construct($data); - } - - /** - * Garbage collection rule specified as a protobuf. - * Must serialize to at most 500 bytes. - * NOTE: Garbage collection executes opportunistically in the background, and - * so it's possible for reads to return a cell even if it matches the active - * GC expression for its family. - * - * Generated from protobuf field .google.bigtable.admin.v2.GcRule gc_rule = 1; - * @return \Google\Cloud\Bigtable\Admin\V2\GcRule|null - */ - public function getGcRule() - { - return $this->gc_rule; - } - - public function hasGcRule() - { - return isset($this->gc_rule); - } - - public function clearGcRule() - { - unset($this->gc_rule); - } - - /** - * Garbage collection rule specified as a protobuf. - * Must serialize to at most 500 bytes. - * NOTE: Garbage collection executes opportunistically in the background, and - * so it's possible for reads to return a cell even if it matches the active - * GC expression for its family. - * - * Generated from protobuf field .google.bigtable.admin.v2.GcRule gc_rule = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\GcRule $var - * @return $this - */ - public function setGcRule($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\GcRule::class); - $this->gc_rule = $var; - - return $this; - } - - /** - * The type of data stored in each of this family's cell values, including its - * full encoding. If omitted, the family only serves raw untyped bytes. - * For now, only the `Aggregate` type is supported. - * `Aggregate` can only be set at family creation and is immutable afterwards. - * If `value_type` is `Aggregate`, written data must be compatible with: - * * `value_type.input_type` for `AddInput` mutations - * - * Generated from protobuf field .google.bigtable.admin.v2.Type value_type = 3; - * @return \Google\Cloud\Bigtable\Admin\V2\Type|null - */ - public function getValueType() - { - return $this->value_type; - } - - public function hasValueType() - { - return isset($this->value_type); - } - - public function clearValueType() - { - unset($this->value_type); - } - - /** - * The type of data stored in each of this family's cell values, including its - * full encoding. If omitted, the family only serves raw untyped bytes. - * For now, only the `Aggregate` type is supported. - * `Aggregate` can only be set at family creation and is immutable afterwards. - * If `value_type` is `Aggregate`, written data must be compatible with: - * * `value_type.input_type` for `AddInput` mutations - * - * Generated from protobuf field .google.bigtable.admin.v2.Type value_type = 3; - * @param \Google\Cloud\Bigtable\Admin\V2\Type $var - * @return $this - */ - public function setValueType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type::class); - $this->value_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CopyBackupMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CopyBackupMetadata.php deleted file mode 100644 index c4c374604f9f..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CopyBackupMetadata.php +++ /dev/null @@ -1,172 +0,0 @@ -google.bigtable.admin.v2.CopyBackupMetadata - */ -class CopyBackupMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the backup being created through the copy operation. - * Values are of the form - * `projects//instances//clusters//backups/`. - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Information about the source backup that is being copied from. - * - * Generated from protobuf field .google.bigtable.admin.v2.BackupInfo source_backup_info = 2; - */ - protected $source_backup_info = null; - /** - * The progress of the - * [CopyBackup][google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup] - * operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.OperationProgress progress = 3; - */ - protected $progress = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the backup being created through the copy operation. - * Values are of the form - * `projects//instances//clusters//backups/`. - * @type \Google\Cloud\Bigtable\Admin\V2\BackupInfo $source_backup_info - * Information about the source backup that is being copied from. - * @type \Google\Cloud\Bigtable\Admin\V2\OperationProgress $progress - * The progress of the - * [CopyBackup][google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup] - * operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The name of the backup being created through the copy operation. - * Values are of the form - * `projects//instances//clusters//backups/`. - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the backup being created through the copy operation. - * Values are of the form - * `projects//instances//clusters//backups/`. - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Information about the source backup that is being copied from. - * - * Generated from protobuf field .google.bigtable.admin.v2.BackupInfo source_backup_info = 2; - * @return \Google\Cloud\Bigtable\Admin\V2\BackupInfo|null - */ - public function getSourceBackupInfo() - { - return $this->source_backup_info; - } - - public function hasSourceBackupInfo() - { - return isset($this->source_backup_info); - } - - public function clearSourceBackupInfo() - { - unset($this->source_backup_info); - } - - /** - * Information about the source backup that is being copied from. - * - * Generated from protobuf field .google.bigtable.admin.v2.BackupInfo source_backup_info = 2; - * @param \Google\Cloud\Bigtable\Admin\V2\BackupInfo $var - * @return $this - */ - public function setSourceBackupInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\BackupInfo::class); - $this->source_backup_info = $var; - - return $this; - } - - /** - * The progress of the - * [CopyBackup][google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup] - * operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.OperationProgress progress = 3; - * @return \Google\Cloud\Bigtable\Admin\V2\OperationProgress|null - */ - public function getProgress() - { - return $this->progress; - } - - public function hasProgress() - { - return isset($this->progress); - } - - public function clearProgress() - { - unset($this->progress); - } - - /** - * The progress of the - * [CopyBackup][google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup] - * operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.OperationProgress progress = 3; - * @param \Google\Cloud\Bigtable\Admin\V2\OperationProgress $var - * @return $this - */ - public function setProgress($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\OperationProgress::class); - $this->progress = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CopyBackupRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CopyBackupRequest.php deleted file mode 100644 index 7d084fe1c6ad..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CopyBackupRequest.php +++ /dev/null @@ -1,286 +0,0 @@ -google.bigtable.admin.v2.CopyBackupRequest - */ -class CopyBackupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the destination cluster that will contain the backup - * copy. The cluster must already exist. Values are of the form: - * `projects/{project}/instances/{instance}/clusters/{cluster}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The id of the new backup. The `backup_id` along with `parent` - * are combined as {parent}/backups/{backup_id} to create the full backup - * name, of the form: - * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. - * This string must be between 1 and 50 characters in length and match the - * regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. - * - * Generated from protobuf field string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $backup_id = ''; - /** - * Required. The source backup to be copied from. - * The source backup needs to be in READY state for it to be copied. - * Copying a copied backup is not allowed. - * Once CopyBackup is in progress, the source backup cannot be deleted or - * cleaned up on expiration until CopyBackup is finished. - * Values are of the form: - * `projects//instances//clusters//backups/`. - * - * Generated from protobuf field string source_backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $source_backup = ''; - /** - * Required. Required. The expiration time of the copied backup with - * microsecond granularity that must be at least 6 hours and at most 30 days - * from the time the request is received. Once the `expire_time` has - * passed, Cloud Bigtable will delete the backup and free the resources used - * by the backup. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $expire_time = null; - - /** - * @param string $parent Required. The name of the destination cluster that will contain the backup - * copy. The cluster must already exist. Values are of the form: - * `projects/{project}/instances/{instance}/clusters/{cluster}`. Please see - * {@see BigtableTableAdminClient::clusterName()} for help formatting this field. - * @param string $backupId Required. The id of the new backup. The `backup_id` along with `parent` - * are combined as {parent}/backups/{backup_id} to create the full backup - * name, of the form: - * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. - * This string must be between 1 and 50 characters in length and match the - * regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. - * @param string $sourceBackup Required. The source backup to be copied from. - * The source backup needs to be in READY state for it to be copied. - * Copying a copied backup is not allowed. - * Once CopyBackup is in progress, the source backup cannot be deleted or - * cleaned up on expiration until CopyBackup is finished. - * Values are of the form: - * `projects//instances//clusters//backups/`. Please see - * {@see BigtableTableAdminClient::backupName()} for help formatting this field. - * @param \Google\Protobuf\Timestamp $expireTime Required. Required. The expiration time of the copied backup with - * microsecond granularity that must be at least 6 hours and at most 30 days - * from the time the request is received. Once the `expire_time` has - * passed, Cloud Bigtable will delete the backup and free the resources used - * by the backup. - * - * @return \Google\Cloud\Bigtable\Admin\V2\CopyBackupRequest - * - * @experimental - */ - public static function build(string $parent, string $backupId, string $sourceBackup, \Google\Protobuf\Timestamp $expireTime): self - { - return (new self()) - ->setParent($parent) - ->setBackupId($backupId) - ->setSourceBackup($sourceBackup) - ->setExpireTime($expireTime); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The name of the destination cluster that will contain the backup - * copy. The cluster must already exist. Values are of the form: - * `projects/{project}/instances/{instance}/clusters/{cluster}`. - * @type string $backup_id - * Required. The id of the new backup. The `backup_id` along with `parent` - * are combined as {parent}/backups/{backup_id} to create the full backup - * name, of the form: - * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. - * This string must be between 1 and 50 characters in length and match the - * regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. - * @type string $source_backup - * Required. The source backup to be copied from. - * The source backup needs to be in READY state for it to be copied. - * Copying a copied backup is not allowed. - * Once CopyBackup is in progress, the source backup cannot be deleted or - * cleaned up on expiration until CopyBackup is finished. - * Values are of the form: - * `projects//instances//clusters//backups/`. - * @type \Google\Protobuf\Timestamp $expire_time - * Required. Required. The expiration time of the copied backup with - * microsecond granularity that must be at least 6 hours and at most 30 days - * from the time the request is received. Once the `expire_time` has - * passed, Cloud Bigtable will delete the backup and free the resources used - * by the backup. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the destination cluster that will contain the backup - * copy. The cluster must already exist. Values are of the form: - * `projects/{project}/instances/{instance}/clusters/{cluster}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The name of the destination cluster that will contain the backup - * copy. The cluster must already exist. Values are of the form: - * `projects/{project}/instances/{instance}/clusters/{cluster}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The id of the new backup. The `backup_id` along with `parent` - * are combined as {parent}/backups/{backup_id} to create the full backup - * name, of the form: - * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. - * This string must be between 1 and 50 characters in length and match the - * regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. - * - * Generated from protobuf field string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getBackupId() - { - return $this->backup_id; - } - - /** - * Required. The id of the new backup. The `backup_id` along with `parent` - * are combined as {parent}/backups/{backup_id} to create the full backup - * name, of the form: - * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. - * This string must be between 1 and 50 characters in length and match the - * regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. - * - * Generated from protobuf field string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setBackupId($var) - { - GPBUtil::checkString($var, True); - $this->backup_id = $var; - - return $this; - } - - /** - * Required. The source backup to be copied from. - * The source backup needs to be in READY state for it to be copied. - * Copying a copied backup is not allowed. - * Once CopyBackup is in progress, the source backup cannot be deleted or - * cleaned up on expiration until CopyBackup is finished. - * Values are of the form: - * `projects//instances//clusters//backups/`. - * - * Generated from protobuf field string source_backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getSourceBackup() - { - return $this->source_backup; - } - - /** - * Required. The source backup to be copied from. - * The source backup needs to be in READY state for it to be copied. - * Copying a copied backup is not allowed. - * Once CopyBackup is in progress, the source backup cannot be deleted or - * cleaned up on expiration until CopyBackup is finished. - * Values are of the form: - * `projects//instances//clusters//backups/`. - * - * Generated from protobuf field string source_backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setSourceBackup($var) - { - GPBUtil::checkString($var, True); - $this->source_backup = $var; - - return $this; - } - - /** - * Required. Required. The expiration time of the copied backup with - * microsecond granularity that must be at least 6 hours and at most 30 days - * from the time the request is received. Once the `expire_time` has - * passed, Cloud Bigtable will delete the backup and free the resources used - * by the backup. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getExpireTime() - { - return $this->expire_time; - } - - public function hasExpireTime() - { - return isset($this->expire_time); - } - - public function clearExpireTime() - { - unset($this->expire_time); - } - - /** - * Required. Required. The expiration time of the copied backup with - * microsecond granularity that must be at least 6 hours and at most 30 days - * from the time the request is received. Once the `expire_time` has - * passed, Cloud Bigtable will delete the backup and free the resources used - * by the backup. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setExpireTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->expire_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateAppProfileRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateAppProfileRequest.php deleted file mode 100644 index ab2483a1f6b4..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateAppProfileRequest.php +++ /dev/null @@ -1,217 +0,0 @@ -google.bigtable.admin.v2.CreateAppProfileRequest - */ -class CreateAppProfileRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the instance in which to create the new app - * profile. Values are of the form `projects/{project}/instances/{instance}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The ID to be used when referring to the new app profile within - * its instance, e.g., just `myprofile` rather than - * `projects/myproject/instances/myinstance/appProfiles/myprofile`. - * - * Generated from protobuf field string app_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $app_profile_id = ''; - /** - * Required. The app profile to be created. - * Fields marked `OutputOnly` will be ignored. - * - * Generated from protobuf field .google.bigtable.admin.v2.AppProfile app_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $app_profile = null; - /** - * If true, ignore safety checks when creating the app profile. - * - * Generated from protobuf field bool ignore_warnings = 4; - */ - protected $ignore_warnings = false; - - /** - * @param string $parent Required. The unique name of the instance in which to create the new app - * profile. Values are of the form `projects/{project}/instances/{instance}`. Please see - * {@see BigtableInstanceAdminClient::instanceName()} for help formatting this field. - * @param string $appProfileId Required. The ID to be used when referring to the new app profile within - * its instance, e.g., just `myprofile` rather than - * `projects/myproject/instances/myinstance/appProfiles/myprofile`. - * @param \Google\Cloud\Bigtable\Admin\V2\AppProfile $appProfile Required. The app profile to be created. - * Fields marked `OutputOnly` will be ignored. - * - * @return \Google\Cloud\Bigtable\Admin\V2\CreateAppProfileRequest - * - * @experimental - */ - public static function build(string $parent, string $appProfileId, \Google\Cloud\Bigtable\Admin\V2\AppProfile $appProfile): self - { - return (new self()) - ->setParent($parent) - ->setAppProfileId($appProfileId) - ->setAppProfile($appProfile); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The unique name of the instance in which to create the new app - * profile. Values are of the form `projects/{project}/instances/{instance}`. - * @type string $app_profile_id - * Required. The ID to be used when referring to the new app profile within - * its instance, e.g., just `myprofile` rather than - * `projects/myproject/instances/myinstance/appProfiles/myprofile`. - * @type \Google\Cloud\Bigtable\Admin\V2\AppProfile $app_profile - * Required. The app profile to be created. - * Fields marked `OutputOnly` will be ignored. - * @type bool $ignore_warnings - * If true, ignore safety checks when creating the app profile. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the instance in which to create the new app - * profile. Values are of the form `projects/{project}/instances/{instance}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The unique name of the instance in which to create the new app - * profile. Values are of the form `projects/{project}/instances/{instance}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The ID to be used when referring to the new app profile within - * its instance, e.g., just `myprofile` rather than - * `projects/myproject/instances/myinstance/appProfiles/myprofile`. - * - * Generated from protobuf field string app_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAppProfileId() - { - return $this->app_profile_id; - } - - /** - * Required. The ID to be used when referring to the new app profile within - * its instance, e.g., just `myprofile` rather than - * `projects/myproject/instances/myinstance/appProfiles/myprofile`. - * - * Generated from protobuf field string app_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAppProfileId($var) - { - GPBUtil::checkString($var, True); - $this->app_profile_id = $var; - - return $this; - } - - /** - * Required. The app profile to be created. - * Fields marked `OutputOnly` will be ignored. - * - * Generated from protobuf field .google.bigtable.admin.v2.AppProfile app_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Bigtable\Admin\V2\AppProfile|null - */ - public function getAppProfile() - { - return $this->app_profile; - } - - public function hasAppProfile() - { - return isset($this->app_profile); - } - - public function clearAppProfile() - { - unset($this->app_profile); - } - - /** - * Required. The app profile to be created. - * Fields marked `OutputOnly` will be ignored. - * - * Generated from protobuf field .google.bigtable.admin.v2.AppProfile app_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Bigtable\Admin\V2\AppProfile $var - * @return $this - */ - public function setAppProfile($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\AppProfile::class); - $this->app_profile = $var; - - return $this; - } - - /** - * If true, ignore safety checks when creating the app profile. - * - * Generated from protobuf field bool ignore_warnings = 4; - * @return bool - */ - public function getIgnoreWarnings() - { - return $this->ignore_warnings; - } - - /** - * If true, ignore safety checks when creating the app profile. - * - * Generated from protobuf field bool ignore_warnings = 4; - * @param bool $var - * @return $this - */ - public function setIgnoreWarnings($var) - { - GPBUtil::checkBool($var); - $this->ignore_warnings = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateAuthorizedViewMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateAuthorizedViewMetadata.php deleted file mode 100644 index 84c7ab170a69..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateAuthorizedViewMetadata.php +++ /dev/null @@ -1,169 +0,0 @@ -google.bigtable.admin.v2.CreateAuthorizedViewMetadata - */ -class CreateAuthorizedViewMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The request that prompted the initiation of this CreateAuthorizedView - * operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.CreateAuthorizedViewRequest original_request = 1; - */ - protected $original_request = null; - /** - * The time at which the original request was received. - * - * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; - */ - protected $request_time = null; - /** - * The time at which the operation failed or was completed successfully. - * - * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; - */ - protected $finish_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\CreateAuthorizedViewRequest $original_request - * The request that prompted the initiation of this CreateAuthorizedView - * operation. - * @type \Google\Protobuf\Timestamp $request_time - * The time at which the original request was received. - * @type \Google\Protobuf\Timestamp $finish_time - * The time at which the operation failed or was completed successfully. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The request that prompted the initiation of this CreateAuthorizedView - * operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.CreateAuthorizedViewRequest original_request = 1; - * @return \Google\Cloud\Bigtable\Admin\V2\CreateAuthorizedViewRequest|null - */ - public function getOriginalRequest() - { - return $this->original_request; - } - - public function hasOriginalRequest() - { - return isset($this->original_request); - } - - public function clearOriginalRequest() - { - unset($this->original_request); - } - - /** - * The request that prompted the initiation of this CreateAuthorizedView - * operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.CreateAuthorizedViewRequest original_request = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\CreateAuthorizedViewRequest $var - * @return $this - */ - public function setOriginalRequest($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\CreateAuthorizedViewRequest::class); - $this->original_request = $var; - - return $this; - } - - /** - * The time at which the original request was received. - * - * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRequestTime() - { - return $this->request_time; - } - - public function hasRequestTime() - { - return isset($this->request_time); - } - - public function clearRequestTime() - { - unset($this->request_time); - } - - /** - * The time at which the original request was received. - * - * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRequestTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->request_time = $var; - - return $this; - } - - /** - * The time at which the operation failed or was completed successfully. - * - * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getFinishTime() - { - return $this->finish_time; - } - - public function hasFinishTime() - { - return isset($this->finish_time); - } - - public function clearFinishTime() - { - unset($this->finish_time); - } - - /** - * The time at which the operation failed or was completed successfully. - * - * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setFinishTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->finish_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateAuthorizedViewRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateAuthorizedViewRequest.php deleted file mode 100644 index 19f1183c2dbb..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateAuthorizedViewRequest.php +++ /dev/null @@ -1,189 +0,0 @@ -google.bigtable.admin.v2.CreateAuthorizedViewRequest - */ -class CreateAuthorizedViewRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. This is the name of the table the AuthorizedView belongs to. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The id of the AuthorizedView to create. This AuthorizedView must - * not already exist. The `authorized_view_id` appended to `parent` forms the - * full AuthorizedView name of the form - * `projects/{project}/instances/{instance}/tables/{table}/authorizedView/{authorized_view}`. - * - * Generated from protobuf field string authorized_view_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $authorized_view_id = ''; - /** - * Required. The AuthorizedView to create. - * - * Generated from protobuf field .google.bigtable.admin.v2.AuthorizedView authorized_view = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $authorized_view = null; - - /** - * @param string $parent Required. This is the name of the table the AuthorizedView belongs to. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. Please see - * {@see BigtableTableAdminClient::tableName()} for help formatting this field. - * @param \Google\Cloud\Bigtable\Admin\V2\AuthorizedView $authorizedView Required. The AuthorizedView to create. - * @param string $authorizedViewId Required. The id of the AuthorizedView to create. This AuthorizedView must - * not already exist. The `authorized_view_id` appended to `parent` forms the - * full AuthorizedView name of the form - * `projects/{project}/instances/{instance}/tables/{table}/authorizedView/{authorized_view}`. - * - * @return \Google\Cloud\Bigtable\Admin\V2\CreateAuthorizedViewRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Bigtable\Admin\V2\AuthorizedView $authorizedView, string $authorizedViewId): self - { - return (new self()) - ->setParent($parent) - ->setAuthorizedView($authorizedView) - ->setAuthorizedViewId($authorizedViewId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. This is the name of the table the AuthorizedView belongs to. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * @type string $authorized_view_id - * Required. The id of the AuthorizedView to create. This AuthorizedView must - * not already exist. The `authorized_view_id` appended to `parent` forms the - * full AuthorizedView name of the form - * `projects/{project}/instances/{instance}/tables/{table}/authorizedView/{authorized_view}`. - * @type \Google\Cloud\Bigtable\Admin\V2\AuthorizedView $authorized_view - * Required. The AuthorizedView to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. This is the name of the table the AuthorizedView belongs to. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. This is the name of the table the AuthorizedView belongs to. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The id of the AuthorizedView to create. This AuthorizedView must - * not already exist. The `authorized_view_id` appended to `parent` forms the - * full AuthorizedView name of the form - * `projects/{project}/instances/{instance}/tables/{table}/authorizedView/{authorized_view}`. - * - * Generated from protobuf field string authorized_view_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAuthorizedViewId() - { - return $this->authorized_view_id; - } - - /** - * Required. The id of the AuthorizedView to create. This AuthorizedView must - * not already exist. The `authorized_view_id` appended to `parent` forms the - * full AuthorizedView name of the form - * `projects/{project}/instances/{instance}/tables/{table}/authorizedView/{authorized_view}`. - * - * Generated from protobuf field string authorized_view_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAuthorizedViewId($var) - { - GPBUtil::checkString($var, True); - $this->authorized_view_id = $var; - - return $this; - } - - /** - * Required. The AuthorizedView to create. - * - * Generated from protobuf field .google.bigtable.admin.v2.AuthorizedView authorized_view = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Bigtable\Admin\V2\AuthorizedView|null - */ - public function getAuthorizedView() - { - return $this->authorized_view; - } - - public function hasAuthorizedView() - { - return isset($this->authorized_view); - } - - public function clearAuthorizedView() - { - unset($this->authorized_view); - } - - /** - * Required. The AuthorizedView to create. - * - * Generated from protobuf field .google.bigtable.admin.v2.AuthorizedView authorized_view = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Bigtable\Admin\V2\AuthorizedView $var - * @return $this - */ - public function setAuthorizedView($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\AuthorizedView::class); - $this->authorized_view = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateBackupMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateBackupMetadata.php deleted file mode 100644 index 5036db2c1c2a..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateBackupMetadata.php +++ /dev/null @@ -1,190 +0,0 @@ -google.bigtable.admin.v2.CreateBackupMetadata - */ -class CreateBackupMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the backup being created. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The name of the table the backup is created from. - * - * Generated from protobuf field string source_table = 2; - */ - protected $source_table = ''; - /** - * The time at which this operation started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 3; - */ - protected $start_time = null; - /** - * If set, the time at which this operation finished or was cancelled. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 4; - */ - protected $end_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the backup being created. - * @type string $source_table - * The name of the table the backup is created from. - * @type \Google\Protobuf\Timestamp $start_time - * The time at which this operation started. - * @type \Google\Protobuf\Timestamp $end_time - * If set, the time at which this operation finished or was cancelled. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The name of the backup being created. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the backup being created. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The name of the table the backup is created from. - * - * Generated from protobuf field string source_table = 2; - * @return string - */ - public function getSourceTable() - { - return $this->source_table; - } - - /** - * The name of the table the backup is created from. - * - * Generated from protobuf field string source_table = 2; - * @param string $var - * @return $this - */ - public function setSourceTable($var) - { - GPBUtil::checkString($var, True); - $this->source_table = $var; - - return $this; - } - - /** - * The time at which this operation started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 3; - * @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 at which this operation started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * If set, the time at which this operation finished or was cancelled. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 4; - * @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); - } - - /** - * If set, the time at which this operation finished or was cancelled. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateBackupRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateBackupRequest.php deleted file mode 100644 index 7f1d41473c51..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateBackupRequest.php +++ /dev/null @@ -1,199 +0,0 @@ -google.bigtable.admin.v2.CreateBackupRequest - */ -class CreateBackupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. This must be one of the clusters in the instance in which this - * table is located. The backup will be stored in this cluster. Values are - * of the form `projects/{project}/instances/{instance}/clusters/{cluster}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The id of the backup to be created. The `backup_id` along with - * the parent `parent` are combined as {parent}/backups/{backup_id} to create - * the full backup name, of the form: - * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. - * This string must be between 1 and 50 characters in length and match the - * regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. - * - * Generated from protobuf field string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $backup_id = ''; - /** - * Required. The backup to create. - * - * Generated from protobuf field .google.bigtable.admin.v2.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $backup = null; - - /** - * @param string $parent Required. This must be one of the clusters in the instance in which this - * table is located. The backup will be stored in this cluster. Values are - * of the form `projects/{project}/instances/{instance}/clusters/{cluster}`. Please see - * {@see BigtableTableAdminClient::clusterName()} for help formatting this field. - * @param string $backupId Required. The id of the backup to be created. The `backup_id` along with - * the parent `parent` are combined as {parent}/backups/{backup_id} to create - * the full backup name, of the form: - * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. - * This string must be between 1 and 50 characters in length and match the - * regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. - * @param \Google\Cloud\Bigtable\Admin\V2\Backup $backup Required. The backup to create. - * - * @return \Google\Cloud\Bigtable\Admin\V2\CreateBackupRequest - * - * @experimental - */ - public static function build(string $parent, string $backupId, \Google\Cloud\Bigtable\Admin\V2\Backup $backup): self - { - return (new self()) - ->setParent($parent) - ->setBackupId($backupId) - ->setBackup($backup); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. This must be one of the clusters in the instance in which this - * table is located. The backup will be stored in this cluster. Values are - * of the form `projects/{project}/instances/{instance}/clusters/{cluster}`. - * @type string $backup_id - * Required. The id of the backup to be created. The `backup_id` along with - * the parent `parent` are combined as {parent}/backups/{backup_id} to create - * the full backup name, of the form: - * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. - * This string must be between 1 and 50 characters in length and match the - * regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. - * @type \Google\Cloud\Bigtable\Admin\V2\Backup $backup - * Required. The backup to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. This must be one of the clusters in the instance in which this - * table is located. The backup will be stored in this cluster. Values are - * of the form `projects/{project}/instances/{instance}/clusters/{cluster}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. This must be one of the clusters in the instance in which this - * table is located. The backup will be stored in this cluster. Values are - * of the form `projects/{project}/instances/{instance}/clusters/{cluster}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The id of the backup to be created. The `backup_id` along with - * the parent `parent` are combined as {parent}/backups/{backup_id} to create - * the full backup name, of the form: - * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. - * This string must be between 1 and 50 characters in length and match the - * regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. - * - * Generated from protobuf field string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getBackupId() - { - return $this->backup_id; - } - - /** - * Required. The id of the backup to be created. The `backup_id` along with - * the parent `parent` are combined as {parent}/backups/{backup_id} to create - * the full backup name, of the form: - * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. - * This string must be between 1 and 50 characters in length and match the - * regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. - * - * Generated from protobuf field string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setBackupId($var) - { - GPBUtil::checkString($var, True); - $this->backup_id = $var; - - return $this; - } - - /** - * Required. The backup to create. - * - * Generated from protobuf field .google.bigtable.admin.v2.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Bigtable\Admin\V2\Backup|null - */ - public function getBackup() - { - return $this->backup; - } - - public function hasBackup() - { - return isset($this->backup); - } - - public function clearBackup() - { - unset($this->backup); - } - - /** - * Required. The backup to create. - * - * Generated from protobuf field .google.bigtable.admin.v2.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Bigtable\Admin\V2\Backup $var - * @return $this - */ - public function setBackup($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Backup::class); - $this->backup = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateClusterMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateClusterMetadata.php deleted file mode 100644 index bd6a207bdf16..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateClusterMetadata.php +++ /dev/null @@ -1,223 +0,0 @@ -google.bigtable.admin.v2.CreateClusterMetadata - */ -class CreateClusterMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The request that prompted the initiation of this CreateCluster operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.CreateClusterRequest original_request = 1; - */ - protected $original_request = null; - /** - * The time at which the original request was received. - * - * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; - */ - protected $request_time = null; - /** - * The time at which the operation failed or was completed successfully. - * - * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; - */ - protected $finish_time = null; - /** - * Keys: the full `name` of each table that existed in the instance when - * CreateCluster was first called, i.e. - * `projects//instances//tables/
`. Any table added - * to the instance by a later API call will be created in the new cluster by - * that API call, not this one. - * Values: information on how much of a table's data has been copied to the - * newly-created cluster so far. - * - * Generated from protobuf field map tables = 4; - */ - private $tables; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\CreateClusterRequest $original_request - * The request that prompted the initiation of this CreateCluster operation. - * @type \Google\Protobuf\Timestamp $request_time - * The time at which the original request was received. - * @type \Google\Protobuf\Timestamp $finish_time - * The time at which the operation failed or was completed successfully. - * @type array|\Google\Protobuf\Internal\MapField $tables - * Keys: the full `name` of each table that existed in the instance when - * CreateCluster was first called, i.e. - * `projects//instances//tables/
`. Any table added - * to the instance by a later API call will be created in the new cluster by - * that API call, not this one. - * Values: information on how much of a table's data has been copied to the - * newly-created cluster so far. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The request that prompted the initiation of this CreateCluster operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.CreateClusterRequest original_request = 1; - * @return \Google\Cloud\Bigtable\Admin\V2\CreateClusterRequest|null - */ - public function getOriginalRequest() - { - return $this->original_request; - } - - public function hasOriginalRequest() - { - return isset($this->original_request); - } - - public function clearOriginalRequest() - { - unset($this->original_request); - } - - /** - * The request that prompted the initiation of this CreateCluster operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.CreateClusterRequest original_request = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\CreateClusterRequest $var - * @return $this - */ - public function setOriginalRequest($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\CreateClusterRequest::class); - $this->original_request = $var; - - return $this; - } - - /** - * The time at which the original request was received. - * - * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRequestTime() - { - return $this->request_time; - } - - public function hasRequestTime() - { - return isset($this->request_time); - } - - public function clearRequestTime() - { - unset($this->request_time); - } - - /** - * The time at which the original request was received. - * - * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRequestTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->request_time = $var; - - return $this; - } - - /** - * The time at which the operation failed or was completed successfully. - * - * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getFinishTime() - { - return $this->finish_time; - } - - public function hasFinishTime() - { - return isset($this->finish_time); - } - - public function clearFinishTime() - { - unset($this->finish_time); - } - - /** - * The time at which the operation failed or was completed successfully. - * - * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setFinishTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->finish_time = $var; - - return $this; - } - - /** - * Keys: the full `name` of each table that existed in the instance when - * CreateCluster was first called, i.e. - * `projects//instances//tables/
`. Any table added - * to the instance by a later API call will be created in the new cluster by - * that API call, not this one. - * Values: information on how much of a table's data has been copied to the - * newly-created cluster so far. - * - * Generated from protobuf field map tables = 4; - * @return \Google\Protobuf\Internal\MapField - */ - public function getTables() - { - return $this->tables; - } - - /** - * Keys: the full `name` of each table that existed in the instance when - * CreateCluster was first called, i.e. - * `projects//instances//tables/
`. Any table added - * to the instance by a later API call will be created in the new cluster by - * that API call, not this one. - * Values: information on how much of a table's data has been copied to the - * newly-created cluster so far. - * - * Generated from protobuf field map tables = 4; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setTables($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\CreateClusterMetadata\TableProgress::class); - $this->tables = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateClusterMetadata/TableProgress.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateClusterMetadata/TableProgress.php deleted file mode 100644 index 1811f46e542c..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateClusterMetadata/TableProgress.php +++ /dev/null @@ -1,136 +0,0 @@ -google.bigtable.admin.v2.CreateClusterMetadata.TableProgress - */ -class TableProgress extends \Google\Protobuf\Internal\Message -{ - /** - * Estimate of the size of the table to be copied. - * - * Generated from protobuf field int64 estimated_size_bytes = 2; - */ - protected $estimated_size_bytes = 0; - /** - * Estimate of the number of bytes copied so far for this table. - * This will eventually reach 'estimated_size_bytes' unless the table copy - * is CANCELLED. - * - * Generated from protobuf field int64 estimated_copied_bytes = 3; - */ - protected $estimated_copied_bytes = 0; - /** - * Generated from protobuf field .google.bigtable.admin.v2.CreateClusterMetadata.TableProgress.State state = 4; - */ - protected $state = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $estimated_size_bytes - * Estimate of the size of the table to be copied. - * @type int|string $estimated_copied_bytes - * Estimate of the number of bytes copied so far for this table. - * This will eventually reach 'estimated_size_bytes' unless the table copy - * is CANCELLED. - * @type int $state - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Estimate of the size of the table to be copied. - * - * Generated from protobuf field int64 estimated_size_bytes = 2; - * @return int|string - */ - public function getEstimatedSizeBytes() - { - return $this->estimated_size_bytes; - } - - /** - * Estimate of the size of the table to be copied. - * - * Generated from protobuf field int64 estimated_size_bytes = 2; - * @param int|string $var - * @return $this - */ - public function setEstimatedSizeBytes($var) - { - GPBUtil::checkInt64($var); - $this->estimated_size_bytes = $var; - - return $this; - } - - /** - * Estimate of the number of bytes copied so far for this table. - * This will eventually reach 'estimated_size_bytes' unless the table copy - * is CANCELLED. - * - * Generated from protobuf field int64 estimated_copied_bytes = 3; - * @return int|string - */ - public function getEstimatedCopiedBytes() - { - return $this->estimated_copied_bytes; - } - - /** - * Estimate of the number of bytes copied so far for this table. - * This will eventually reach 'estimated_size_bytes' unless the table copy - * is CANCELLED. - * - * Generated from protobuf field int64 estimated_copied_bytes = 3; - * @param int|string $var - * @return $this - */ - public function setEstimatedCopiedBytes($var) - { - GPBUtil::checkInt64($var); - $this->estimated_copied_bytes = $var; - - return $this; - } - - /** - * Generated from protobuf field .google.bigtable.admin.v2.CreateClusterMetadata.TableProgress.State state = 4; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Generated from protobuf field .google.bigtable.admin.v2.CreateClusterMetadata.TableProgress.State state = 4; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\CreateClusterMetadata\TableProgress\State::class); - $this->state = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateClusterMetadata/TableProgress/State.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateClusterMetadata/TableProgress/State.php deleted file mode 100644 index baf338c6c6d2..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateClusterMetadata/TableProgress/State.php +++ /dev/null @@ -1,73 +0,0 @@ -google.bigtable.admin.v2.CreateClusterMetadata.TableProgress.State - */ -class State -{ - /** - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The table has not yet begun copying to the new cluster. - * - * Generated from protobuf enum PENDING = 1; - */ - const PENDING = 1; - /** - * The table is actively being copied to the new cluster. - * - * Generated from protobuf enum COPYING = 2; - */ - const COPYING = 2; - /** - * The table has been fully copied to the new cluster. - * - * Generated from protobuf enum COMPLETED = 3; - */ - const COMPLETED = 3; - /** - * The table was deleted before it finished copying to the new cluster. - * Note that tables deleted after completion will stay marked as - * COMPLETED, not CANCELLED. - * - * Generated from protobuf enum CANCELLED = 4; - */ - const CANCELLED = 4; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::PENDING => 'PENDING', - self::COPYING => 'COPYING', - self::COMPLETED => 'COMPLETED', - self::CANCELLED => 'CANCELLED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateClusterRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateClusterRequest.php deleted file mode 100644 index 30b5c3cc9267..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateClusterRequest.php +++ /dev/null @@ -1,183 +0,0 @@ -google.bigtable.admin.v2.CreateClusterRequest - */ -class CreateClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the instance in which to create the new - * cluster. Values are of the form `projects/{project}/instances/{instance}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The ID to be used when referring to the new cluster within its - * instance, e.g., just `mycluster` rather than - * `projects/myproject/instances/myinstance/clusters/mycluster`. - * - * Generated from protobuf field string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $cluster_id = ''; - /** - * Required. The cluster to be created. - * Fields marked `OutputOnly` must be left blank. - * - * Generated from protobuf field .google.bigtable.admin.v2.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $cluster = null; - - /** - * @param string $parent Required. The unique name of the instance in which to create the new - * cluster. Values are of the form `projects/{project}/instances/{instance}`. Please see - * {@see BigtableInstanceAdminClient::instanceName()} for help formatting this field. - * @param string $clusterId Required. The ID to be used when referring to the new cluster within its - * instance, e.g., just `mycluster` rather than - * `projects/myproject/instances/myinstance/clusters/mycluster`. - * @param \Google\Cloud\Bigtable\Admin\V2\Cluster $cluster Required. The cluster to be created. - * Fields marked `OutputOnly` must be left blank. - * - * @return \Google\Cloud\Bigtable\Admin\V2\CreateClusterRequest - * - * @experimental - */ - public static function build(string $parent, string $clusterId, \Google\Cloud\Bigtable\Admin\V2\Cluster $cluster): self - { - return (new self()) - ->setParent($parent) - ->setClusterId($clusterId) - ->setCluster($cluster); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The unique name of the instance in which to create the new - * cluster. Values are of the form `projects/{project}/instances/{instance}`. - * @type string $cluster_id - * Required. The ID to be used when referring to the new cluster within its - * instance, e.g., just `mycluster` rather than - * `projects/myproject/instances/myinstance/clusters/mycluster`. - * @type \Google\Cloud\Bigtable\Admin\V2\Cluster $cluster - * Required. The cluster to be created. - * Fields marked `OutputOnly` must be left blank. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the instance in which to create the new - * cluster. Values are of the form `projects/{project}/instances/{instance}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The unique name of the instance in which to create the new - * cluster. Values are of the form `projects/{project}/instances/{instance}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The ID to be used when referring to the new cluster within its - * instance, e.g., just `mycluster` rather than - * `projects/myproject/instances/myinstance/clusters/mycluster`. - * - * Generated from protobuf field string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getClusterId() - { - return $this->cluster_id; - } - - /** - * Required. The ID to be used when referring to the new cluster within its - * instance, e.g., just `mycluster` rather than - * `projects/myproject/instances/myinstance/clusters/mycluster`. - * - * Generated from protobuf field string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setClusterId($var) - { - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. The cluster to be created. - * Fields marked `OutputOnly` must be left blank. - * - * Generated from protobuf field .google.bigtable.admin.v2.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Bigtable\Admin\V2\Cluster|null - */ - public function getCluster() - { - return $this->cluster; - } - - public function hasCluster() - { - return isset($this->cluster); - } - - public function clearCluster() - { - unset($this->cluster); - } - - /** - * Required. The cluster to be created. - * Fields marked `OutputOnly` must be left blank. - * - * Generated from protobuf field .google.bigtable.admin.v2.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Bigtable\Admin\V2\Cluster $var - * @return $this - */ - public function setCluster($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Cluster::class); - $this->cluster = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateInstanceMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateInstanceMetadata.php deleted file mode 100644 index 2a67465dfe70..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateInstanceMetadata.php +++ /dev/null @@ -1,165 +0,0 @@ -google.bigtable.admin.v2.CreateInstanceMetadata - */ -class CreateInstanceMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The request that prompted the initiation of this CreateInstance operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.CreateInstanceRequest original_request = 1; - */ - protected $original_request = null; - /** - * The time at which the original request was received. - * - * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; - */ - protected $request_time = null; - /** - * The time at which the operation failed or was completed successfully. - * - * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; - */ - protected $finish_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\CreateInstanceRequest $original_request - * The request that prompted the initiation of this CreateInstance operation. - * @type \Google\Protobuf\Timestamp $request_time - * The time at which the original request was received. - * @type \Google\Protobuf\Timestamp $finish_time - * The time at which the operation failed or was completed successfully. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The request that prompted the initiation of this CreateInstance operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.CreateInstanceRequest original_request = 1; - * @return \Google\Cloud\Bigtable\Admin\V2\CreateInstanceRequest|null - */ - public function getOriginalRequest() - { - return $this->original_request; - } - - public function hasOriginalRequest() - { - return isset($this->original_request); - } - - public function clearOriginalRequest() - { - unset($this->original_request); - } - - /** - * The request that prompted the initiation of this CreateInstance operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.CreateInstanceRequest original_request = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\CreateInstanceRequest $var - * @return $this - */ - public function setOriginalRequest($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\CreateInstanceRequest::class); - $this->original_request = $var; - - return $this; - } - - /** - * The time at which the original request was received. - * - * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRequestTime() - { - return $this->request_time; - } - - public function hasRequestTime() - { - return isset($this->request_time); - } - - public function clearRequestTime() - { - unset($this->request_time); - } - - /** - * The time at which the original request was received. - * - * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRequestTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->request_time = $var; - - return $this; - } - - /** - * The time at which the operation failed or was completed successfully. - * - * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getFinishTime() - { - return $this->finish_time; - } - - public function hasFinishTime() - { - return isset($this->finish_time); - } - - public function clearFinishTime() - { - unset($this->finish_time); - } - - /** - * The time at which the operation failed or was completed successfully. - * - * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setFinishTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->finish_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateInstanceRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateInstanceRequest.php deleted file mode 100644 index 6bf8c1effdc5..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateInstanceRequest.php +++ /dev/null @@ -1,234 +0,0 @@ -google.bigtable.admin.v2.CreateInstanceRequest - */ -class CreateInstanceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the project in which to create the new - * instance. Values are of the form `projects/{project}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The ID to be used when referring to the new instance within its - * project, e.g., just `myinstance` rather than - * `projects/myproject/instances/myinstance`. - * - * Generated from protobuf field string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $instance_id = ''; - /** - * Required. The instance to create. - * Fields marked `OutputOnly` must be left blank. - * - * Generated from protobuf field .google.bigtable.admin.v2.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $instance = null; - /** - * Required. The clusters to be created within the instance, mapped by desired - * cluster ID, e.g., just `mycluster` rather than - * `projects/myproject/instances/myinstance/clusters/mycluster`. - * Fields marked `OutputOnly` must be left blank. - * - * Generated from protobuf field map clusters = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - private $clusters; - - /** - * @param string $parent Required. The unique name of the project in which to create the new - * instance. Values are of the form `projects/{project}`. Please see - * {@see BigtableInstanceAdminClient::projectName()} for help formatting this field. - * @param string $instanceId Required. The ID to be used when referring to the new instance within its - * project, e.g., just `myinstance` rather than - * `projects/myproject/instances/myinstance`. - * @param \Google\Cloud\Bigtable\Admin\V2\Instance $instance Required. The instance to create. - * Fields marked `OutputOnly` must be left blank. - * @param array $clusters Required. The clusters to be created within the instance, mapped by desired - * cluster ID, e.g., just `mycluster` rather than - * `projects/myproject/instances/myinstance/clusters/mycluster`. - * Fields marked `OutputOnly` must be left blank. - * - * @return \Google\Cloud\Bigtable\Admin\V2\CreateInstanceRequest - * - * @experimental - */ - public static function build(string $parent, string $instanceId, \Google\Cloud\Bigtable\Admin\V2\Instance $instance, array $clusters): self - { - return (new self()) - ->setParent($parent) - ->setInstanceId($instanceId) - ->setInstance($instance) - ->setClusters($clusters); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The unique name of the project in which to create the new - * instance. Values are of the form `projects/{project}`. - * @type string $instance_id - * Required. The ID to be used when referring to the new instance within its - * project, e.g., just `myinstance` rather than - * `projects/myproject/instances/myinstance`. - * @type \Google\Cloud\Bigtable\Admin\V2\Instance $instance - * Required. The instance to create. - * Fields marked `OutputOnly` must be left blank. - * @type array|\Google\Protobuf\Internal\MapField $clusters - * Required. The clusters to be created within the instance, mapped by desired - * cluster ID, e.g., just `mycluster` rather than - * `projects/myproject/instances/myinstance/clusters/mycluster`. - * Fields marked `OutputOnly` must be left blank. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the project in which to create the new - * instance. Values are of the form `projects/{project}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The unique name of the project in which to create the new - * instance. Values are of the form `projects/{project}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The ID to be used when referring to the new instance within its - * project, e.g., just `myinstance` rather than - * `projects/myproject/instances/myinstance`. - * - * Generated from protobuf field string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getInstanceId() - { - return $this->instance_id; - } - - /** - * Required. The ID to be used when referring to the new instance within its - * project, e.g., just `myinstance` rather than - * `projects/myproject/instances/myinstance`. - * - * Generated from protobuf field string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setInstanceId($var) - { - GPBUtil::checkString($var, True); - $this->instance_id = $var; - - return $this; - } - - /** - * Required. The instance to create. - * Fields marked `OutputOnly` must be left blank. - * - * Generated from protobuf field .google.bigtable.admin.v2.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Bigtable\Admin\V2\Instance|null - */ - public function getInstance() - { - return $this->instance; - } - - public function hasInstance() - { - return isset($this->instance); - } - - public function clearInstance() - { - unset($this->instance); - } - - /** - * Required. The instance to create. - * Fields marked `OutputOnly` must be left blank. - * - * Generated from protobuf field .google.bigtable.admin.v2.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Bigtable\Admin\V2\Instance $var - * @return $this - */ - public function setInstance($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Instance::class); - $this->instance = $var; - - return $this; - } - - /** - * Required. The clusters to be created within the instance, mapped by desired - * cluster ID, e.g., just `mycluster` rather than - * `projects/myproject/instances/myinstance/clusters/mycluster`. - * Fields marked `OutputOnly` must be left blank. - * - * Generated from protobuf field map clusters = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getClusters() - { - return $this->clusters; - } - - /** - * Required. The clusters to be created within the instance, mapped by desired - * cluster ID, e.g., just `mycluster` rather than - * `projects/myproject/instances/myinstance/clusters/mycluster`. - * Fields marked `OutputOnly` must be left blank. - * - * Generated from protobuf field map clusters = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setClusters($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\Cluster::class); - $this->clusters = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateLogicalViewMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateLogicalViewMetadata.php deleted file mode 100644 index d98dff167592..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateLogicalViewMetadata.php +++ /dev/null @@ -1,169 +0,0 @@ -google.bigtable.admin.v2.CreateLogicalViewMetadata - */ -class CreateLogicalViewMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The request that prompted the initiation of this CreateLogicalView - * operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.CreateLogicalViewRequest original_request = 1; - */ - protected $original_request = null; - /** - * The time at which this operation started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - */ - protected $start_time = null; - /** - * If set, the time at which this operation finished or was canceled. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; - */ - protected $end_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\CreateLogicalViewRequest $original_request - * The request that prompted the initiation of this CreateLogicalView - * operation. - * @type \Google\Protobuf\Timestamp $start_time - * The time at which this operation started. - * @type \Google\Protobuf\Timestamp $end_time - * If set, the time at which this operation finished or was canceled. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The request that prompted the initiation of this CreateLogicalView - * operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.CreateLogicalViewRequest original_request = 1; - * @return \Google\Cloud\Bigtable\Admin\V2\CreateLogicalViewRequest|null - */ - public function getOriginalRequest() - { - return $this->original_request; - } - - public function hasOriginalRequest() - { - return isset($this->original_request); - } - - public function clearOriginalRequest() - { - unset($this->original_request); - } - - /** - * The request that prompted the initiation of this CreateLogicalView - * operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.CreateLogicalViewRequest original_request = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\CreateLogicalViewRequest $var - * @return $this - */ - public function setOriginalRequest($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\CreateLogicalViewRequest::class); - $this->original_request = $var; - - return $this; - } - - /** - * The time at which this operation started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - * @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 at which this operation started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * If set, the time at which this operation finished or was canceled. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; - * @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); - } - - /** - * If set, the time at which this operation finished or was canceled. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateLogicalViewRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateLogicalViewRequest.php deleted file mode 100644 index 6de5e7a107fb..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateLogicalViewRequest.php +++ /dev/null @@ -1,173 +0,0 @@ -google.bigtable.admin.v2.CreateLogicalViewRequest - */ -class CreateLogicalViewRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent instance where this logical view will be created. - * Format: `projects/{project}/instances/{instance}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The ID to use for the logical view, which will become the final - * component of the logical view's resource name. - * - * Generated from protobuf field string logical_view_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $logical_view_id = ''; - /** - * Required. The logical view to create. - * - * Generated from protobuf field .google.bigtable.admin.v2.LogicalView logical_view = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $logical_view = null; - - /** - * @param string $parent Required. The parent instance where this logical view will be created. - * Format: `projects/{project}/instances/{instance}`. Please see - * {@see BigtableInstanceAdminClient::instanceName()} for help formatting this field. - * @param \Google\Cloud\Bigtable\Admin\V2\LogicalView $logicalView Required. The logical view to create. - * @param string $logicalViewId Required. The ID to use for the logical view, which will become the final - * component of the logical view's resource name. - * - * @return \Google\Cloud\Bigtable\Admin\V2\CreateLogicalViewRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Bigtable\Admin\V2\LogicalView $logicalView, string $logicalViewId): self - { - return (new self()) - ->setParent($parent) - ->setLogicalView($logicalView) - ->setLogicalViewId($logicalViewId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent instance where this logical view will be created. - * Format: `projects/{project}/instances/{instance}`. - * @type string $logical_view_id - * Required. The ID to use for the logical view, which will become the final - * component of the logical view's resource name. - * @type \Google\Cloud\Bigtable\Admin\V2\LogicalView $logical_view - * Required. The logical view to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent instance where this logical view will be created. - * Format: `projects/{project}/instances/{instance}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent instance where this logical view will be created. - * Format: `projects/{project}/instances/{instance}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The ID to use for the logical view, which will become the final - * component of the logical view's resource name. - * - * Generated from protobuf field string logical_view_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getLogicalViewId() - { - return $this->logical_view_id; - } - - /** - * Required. The ID to use for the logical view, which will become the final - * component of the logical view's resource name. - * - * Generated from protobuf field string logical_view_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setLogicalViewId($var) - { - GPBUtil::checkString($var, True); - $this->logical_view_id = $var; - - return $this; - } - - /** - * Required. The logical view to create. - * - * Generated from protobuf field .google.bigtable.admin.v2.LogicalView logical_view = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Bigtable\Admin\V2\LogicalView|null - */ - public function getLogicalView() - { - return $this->logical_view; - } - - public function hasLogicalView() - { - return isset($this->logical_view); - } - - public function clearLogicalView() - { - unset($this->logical_view); - } - - /** - * Required. The logical view to create. - * - * Generated from protobuf field .google.bigtable.admin.v2.LogicalView logical_view = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Bigtable\Admin\V2\LogicalView $var - * @return $this - */ - public function setLogicalView($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\LogicalView::class); - $this->logical_view = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateMaterializedViewMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateMaterializedViewMetadata.php deleted file mode 100644 index 5a64639d95a0..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateMaterializedViewMetadata.php +++ /dev/null @@ -1,169 +0,0 @@ -google.bigtable.admin.v2.CreateMaterializedViewMetadata - */ -class CreateMaterializedViewMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The request that prompted the initiation of this CreateMaterializedView - * operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.CreateMaterializedViewRequest original_request = 1; - */ - protected $original_request = null; - /** - * The time at which this operation started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - */ - protected $start_time = null; - /** - * If set, the time at which this operation finished or was canceled. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; - */ - protected $end_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\CreateMaterializedViewRequest $original_request - * The request that prompted the initiation of this CreateMaterializedView - * operation. - * @type \Google\Protobuf\Timestamp $start_time - * The time at which this operation started. - * @type \Google\Protobuf\Timestamp $end_time - * If set, the time at which this operation finished or was canceled. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The request that prompted the initiation of this CreateMaterializedView - * operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.CreateMaterializedViewRequest original_request = 1; - * @return \Google\Cloud\Bigtable\Admin\V2\CreateMaterializedViewRequest|null - */ - public function getOriginalRequest() - { - return $this->original_request; - } - - public function hasOriginalRequest() - { - return isset($this->original_request); - } - - public function clearOriginalRequest() - { - unset($this->original_request); - } - - /** - * The request that prompted the initiation of this CreateMaterializedView - * operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.CreateMaterializedViewRequest original_request = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\CreateMaterializedViewRequest $var - * @return $this - */ - public function setOriginalRequest($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\CreateMaterializedViewRequest::class); - $this->original_request = $var; - - return $this; - } - - /** - * The time at which this operation started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - * @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 at which this operation started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * If set, the time at which this operation finished or was canceled. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; - * @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); - } - - /** - * If set, the time at which this operation finished or was canceled. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateMaterializedViewRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateMaterializedViewRequest.php deleted file mode 100644 index 06ee6f517c2a..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateMaterializedViewRequest.php +++ /dev/null @@ -1,173 +0,0 @@ -google.bigtable.admin.v2.CreateMaterializedViewRequest - */ -class CreateMaterializedViewRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent instance where this materialized view will be created. - * Format: `projects/{project}/instances/{instance}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The ID to use for the materialized view, which will become the - * final component of the materialized view's resource name. - * - * Generated from protobuf field string materialized_view_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $materialized_view_id = ''; - /** - * Required. The materialized view to create. - * - * Generated from protobuf field .google.bigtable.admin.v2.MaterializedView materialized_view = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $materialized_view = null; - - /** - * @param string $parent Required. The parent instance where this materialized view will be created. - * Format: `projects/{project}/instances/{instance}`. Please see - * {@see BigtableInstanceAdminClient::instanceName()} for help formatting this field. - * @param \Google\Cloud\Bigtable\Admin\V2\MaterializedView $materializedView Required. The materialized view to create. - * @param string $materializedViewId Required. The ID to use for the materialized view, which will become the - * final component of the materialized view's resource name. - * - * @return \Google\Cloud\Bigtable\Admin\V2\CreateMaterializedViewRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Bigtable\Admin\V2\MaterializedView $materializedView, string $materializedViewId): self - { - return (new self()) - ->setParent($parent) - ->setMaterializedView($materializedView) - ->setMaterializedViewId($materializedViewId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent instance where this materialized view will be created. - * Format: `projects/{project}/instances/{instance}`. - * @type string $materialized_view_id - * Required. The ID to use for the materialized view, which will become the - * final component of the materialized view's resource name. - * @type \Google\Cloud\Bigtable\Admin\V2\MaterializedView $materialized_view - * Required. The materialized view to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent instance where this materialized view will be created. - * Format: `projects/{project}/instances/{instance}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent instance where this materialized view will be created. - * Format: `projects/{project}/instances/{instance}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The ID to use for the materialized view, which will become the - * final component of the materialized view's resource name. - * - * Generated from protobuf field string materialized_view_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getMaterializedViewId() - { - return $this->materialized_view_id; - } - - /** - * Required. The ID to use for the materialized view, which will become the - * final component of the materialized view's resource name. - * - * Generated from protobuf field string materialized_view_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setMaterializedViewId($var) - { - GPBUtil::checkString($var, True); - $this->materialized_view_id = $var; - - return $this; - } - - /** - * Required. The materialized view to create. - * - * Generated from protobuf field .google.bigtable.admin.v2.MaterializedView materialized_view = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Bigtable\Admin\V2\MaterializedView|null - */ - public function getMaterializedView() - { - return $this->materialized_view; - } - - public function hasMaterializedView() - { - return isset($this->materialized_view); - } - - public function clearMaterializedView() - { - unset($this->materialized_view); - } - - /** - * Required. The materialized view to create. - * - * Generated from protobuf field .google.bigtable.admin.v2.MaterializedView materialized_view = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Bigtable\Admin\V2\MaterializedView $var - * @return $this - */ - public function setMaterializedView($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\MaterializedView::class); - $this->materialized_view = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateSchemaBundleMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateSchemaBundleMetadata.php deleted file mode 100644 index 490ce8feb5bb..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateSchemaBundleMetadata.php +++ /dev/null @@ -1,164 +0,0 @@ -google.bigtable.admin.v2.CreateSchemaBundleMetadata - */ -class CreateSchemaBundleMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The unique name identifying this schema bundle. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The time at which this operation started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - */ - protected $start_time = null; - /** - * If set, the time at which this operation finished or was canceled. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; - */ - protected $end_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The unique name identifying this schema bundle. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - * @type \Google\Protobuf\Timestamp $start_time - * The time at which this operation started. - * @type \Google\Protobuf\Timestamp $end_time - * If set, the time at which this operation finished or was canceled. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The unique name identifying this schema bundle. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The unique name identifying this schema bundle. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The time at which this operation started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - * @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 at which this operation started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * If set, the time at which this operation finished or was canceled. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; - * @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); - } - - /** - * If set, the time at which this operation finished or was canceled. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateSchemaBundleRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateSchemaBundleRequest.php deleted file mode 100644 index 1616b339f81b..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateSchemaBundleRequest.php +++ /dev/null @@ -1,179 +0,0 @@ -google.bigtable.admin.v2.CreateSchemaBundleRequest - */ -class CreateSchemaBundleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this schema bundle will be created. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The unique ID to use for the schema bundle, which will become the - * final component of the schema bundle's resource name. - * - * Generated from protobuf field string schema_bundle_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $schema_bundle_id = ''; - /** - * Required. The schema bundle to create. - * - * Generated from protobuf field .google.bigtable.admin.v2.SchemaBundle schema_bundle = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $schema_bundle = null; - - /** - * @param string $parent Required. The parent resource where this schema bundle will be created. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. Please see - * {@see BigtableTableAdminClient::tableName()} for help formatting this field. - * @param string $schemaBundleId Required. The unique ID to use for the schema bundle, which will become the - * final component of the schema bundle's resource name. - * @param \Google\Cloud\Bigtable\Admin\V2\SchemaBundle $schemaBundle Required. The schema bundle to create. - * - * @return \Google\Cloud\Bigtable\Admin\V2\CreateSchemaBundleRequest - * - * @experimental - */ - public static function build(string $parent, string $schemaBundleId, \Google\Cloud\Bigtable\Admin\V2\SchemaBundle $schemaBundle): self - { - return (new self()) - ->setParent($parent) - ->setSchemaBundleId($schemaBundleId) - ->setSchemaBundle($schemaBundle); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this schema bundle will be created. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * @type string $schema_bundle_id - * Required. The unique ID to use for the schema bundle, which will become the - * final component of the schema bundle's resource name. - * @type \Google\Cloud\Bigtable\Admin\V2\SchemaBundle $schema_bundle - * Required. The schema bundle to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this schema bundle will be created. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where this schema bundle will be created. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The unique ID to use for the schema bundle, which will become the - * final component of the schema bundle's resource name. - * - * Generated from protobuf field string schema_bundle_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getSchemaBundleId() - { - return $this->schema_bundle_id; - } - - /** - * Required. The unique ID to use for the schema bundle, which will become the - * final component of the schema bundle's resource name. - * - * Generated from protobuf field string schema_bundle_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setSchemaBundleId($var) - { - GPBUtil::checkString($var, True); - $this->schema_bundle_id = $var; - - return $this; - } - - /** - * Required. The schema bundle to create. - * - * Generated from protobuf field .google.bigtable.admin.v2.SchemaBundle schema_bundle = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Bigtable\Admin\V2\SchemaBundle|null - */ - public function getSchemaBundle() - { - return $this->schema_bundle; - } - - public function hasSchemaBundle() - { - return isset($this->schema_bundle); - } - - public function clearSchemaBundle() - { - unset($this->schema_bundle); - } - - /** - * Required. The schema bundle to create. - * - * Generated from protobuf field .google.bigtable.admin.v2.SchemaBundle schema_bundle = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Bigtable\Admin\V2\SchemaBundle $var - * @return $this - */ - public function setSchemaBundle($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\SchemaBundle::class); - $this->schema_bundle = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateTableFromSnapshotMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateTableFromSnapshotMetadata.php deleted file mode 100644 index ed5fef6e7fc3..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateTableFromSnapshotMetadata.php +++ /dev/null @@ -1,173 +0,0 @@ -google.bigtable.admin.v2.CreateTableFromSnapshotMetadata - */ -class CreateTableFromSnapshotMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The request that prompted the initiation of this CreateTableFromSnapshot - * operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.CreateTableFromSnapshotRequest original_request = 1; - */ - protected $original_request = null; - /** - * The time at which the original request was received. - * - * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; - */ - protected $request_time = null; - /** - * The time at which the operation failed or was completed successfully. - * - * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; - */ - protected $finish_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\CreateTableFromSnapshotRequest $original_request - * The request that prompted the initiation of this CreateTableFromSnapshot - * operation. - * @type \Google\Protobuf\Timestamp $request_time - * The time at which the original request was received. - * @type \Google\Protobuf\Timestamp $finish_time - * The time at which the operation failed or was completed successfully. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The request that prompted the initiation of this CreateTableFromSnapshot - * operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.CreateTableFromSnapshotRequest original_request = 1; - * @return \Google\Cloud\Bigtable\Admin\V2\CreateTableFromSnapshotRequest|null - */ - public function getOriginalRequest() - { - return $this->original_request; - } - - public function hasOriginalRequest() - { - return isset($this->original_request); - } - - public function clearOriginalRequest() - { - unset($this->original_request); - } - - /** - * The request that prompted the initiation of this CreateTableFromSnapshot - * operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.CreateTableFromSnapshotRequest original_request = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\CreateTableFromSnapshotRequest $var - * @return $this - */ - public function setOriginalRequest($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\CreateTableFromSnapshotRequest::class); - $this->original_request = $var; - - return $this; - } - - /** - * The time at which the original request was received. - * - * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRequestTime() - { - return $this->request_time; - } - - public function hasRequestTime() - { - return isset($this->request_time); - } - - public function clearRequestTime() - { - unset($this->request_time); - } - - /** - * The time at which the original request was received. - * - * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRequestTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->request_time = $var; - - return $this; - } - - /** - * The time at which the operation failed or was completed successfully. - * - * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getFinishTime() - { - return $this->finish_time; - } - - public function hasFinishTime() - { - return isset($this->finish_time); - } - - public function clearFinishTime() - { - unset($this->finish_time); - } - - /** - * The time at which the operation failed or was completed successfully. - * - * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setFinishTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->finish_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateTableFromSnapshotRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateTableFromSnapshotRequest.php deleted file mode 100644 index bf89301d7cc3..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateTableFromSnapshotRequest.php +++ /dev/null @@ -1,184 +0,0 @@ -google.bigtable.admin.v2.CreateTableFromSnapshotRequest - */ -class CreateTableFromSnapshotRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the instance in which to create the table. - * Values are of the form `projects/{project}/instances/{instance}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The name by which the new table should be referred to within the - * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. - * - * Generated from protobuf field string table_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $table_id = ''; - /** - * Required. The unique name of the snapshot from which to restore the table. - * The snapshot and the table must be in the same instance. Values are of the - * form - * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - * - * Generated from protobuf field string source_snapshot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $source_snapshot = ''; - - /** - * @param string $parent Required. The unique name of the instance in which to create the table. - * Values are of the form `projects/{project}/instances/{instance}`. Please see - * {@see BigtableTableAdminClient::instanceName()} for help formatting this field. - * @param string $tableId Required. The name by which the new table should be referred to within the - * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. - * @param string $sourceSnapshot Required. The unique name of the snapshot from which to restore the table. - * The snapshot and the table must be in the same instance. Values are of the - * form - * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. Please see - * {@see BigtableTableAdminClient::snapshotName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\Admin\V2\CreateTableFromSnapshotRequest - * - * @experimental - */ - public static function build(string $parent, string $tableId, string $sourceSnapshot): self - { - return (new self()) - ->setParent($parent) - ->setTableId($tableId) - ->setSourceSnapshot($sourceSnapshot); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The unique name of the instance in which to create the table. - * Values are of the form `projects/{project}/instances/{instance}`. - * @type string $table_id - * Required. The name by which the new table should be referred to within the - * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. - * @type string $source_snapshot - * Required. The unique name of the snapshot from which to restore the table. - * The snapshot and the table must be in the same instance. Values are of the - * form - * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the instance in which to create the table. - * Values are of the form `projects/{project}/instances/{instance}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The unique name of the instance in which to create the table. - * Values are of the form `projects/{project}/instances/{instance}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The name by which the new table should be referred to within the - * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. - * - * Generated from protobuf field string table_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTableId() - { - return $this->table_id; - } - - /** - * Required. The name by which the new table should be referred to within the - * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. - * - * Generated from protobuf field string table_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTableId($var) - { - GPBUtil::checkString($var, True); - $this->table_id = $var; - - return $this; - } - - /** - * Required. The unique name of the snapshot from which to restore the table. - * The snapshot and the table must be in the same instance. Values are of the - * form - * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - * - * Generated from protobuf field string source_snapshot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getSourceSnapshot() - { - return $this->source_snapshot; - } - - /** - * Required. The unique name of the snapshot from which to restore the table. - * The snapshot and the table must be in the same instance. Values are of the - * form - * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - * - * Generated from protobuf field string source_snapshot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setSourceSnapshot($var) - { - GPBUtil::checkString($var, True); - $this->source_snapshot = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateTableRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateTableRequest.php deleted file mode 100644 index d9362cf910bc..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateTableRequest.php +++ /dev/null @@ -1,265 +0,0 @@ -google.bigtable.admin.v2.CreateTableRequest - */ -class CreateTableRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the instance in which to create the table. - * Values are of the form `projects/{project}/instances/{instance}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The name by which the new table should be referred to within the - * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. - * Maximum 50 characters. - * - * Generated from protobuf field string table_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $table_id = ''; - /** - * Required. The Table to create. - * - * Generated from protobuf field .google.bigtable.admin.v2.Table table = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $table = null; - /** - * The optional list of row keys that will be used to initially split the - * table into several tablets (tablets are similar to HBase regions). - * Given two split keys, `s1` and `s2`, three tablets will be created, - * spanning the key ranges: `[, s1), [s1, s2), [s2, )`. - * Example: - * * Row keys := `["a", "apple", "custom", "customer_1", "customer_2",` - * `"other", "zz"]` - * * initial_split_keys := `["apple", "customer_1", "customer_2", "other"]` - * * Key assignment: - * - Tablet 1 `[, apple) => {"a"}.` - * - Tablet 2 `[apple, customer_1) => {"apple", "custom"}.` - * - Tablet 3 `[customer_1, customer_2) => {"customer_1"}.` - * - Tablet 4 `[customer_2, other) => {"customer_2"}.` - * - Tablet 5 `[other, ) => {"other", "zz"}.` - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.CreateTableRequest.Split initial_splits = 4; - */ - private $initial_splits; - - /** - * @param string $parent Required. The unique name of the instance in which to create the table. - * Values are of the form `projects/{project}/instances/{instance}`. Please see - * {@see BigtableTableAdminClient::instanceName()} for help formatting this field. - * @param string $tableId Required. The name by which the new table should be referred to within the - * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. - * Maximum 50 characters. - * @param \Google\Cloud\Bigtable\Admin\V2\Table $table Required. The Table to create. - * - * @return \Google\Cloud\Bigtable\Admin\V2\CreateTableRequest - * - * @experimental - */ - public static function build(string $parent, string $tableId, \Google\Cloud\Bigtable\Admin\V2\Table $table): self - { - return (new self()) - ->setParent($parent) - ->setTableId($tableId) - ->setTable($table); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The unique name of the instance in which to create the table. - * Values are of the form `projects/{project}/instances/{instance}`. - * @type string $table_id - * Required. The name by which the new table should be referred to within the - * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. - * Maximum 50 characters. - * @type \Google\Cloud\Bigtable\Admin\V2\Table $table - * Required. The Table to create. - * @type \Google\Cloud\Bigtable\Admin\V2\CreateTableRequest\Split[] $initial_splits - * The optional list of row keys that will be used to initially split the - * table into several tablets (tablets are similar to HBase regions). - * Given two split keys, `s1` and `s2`, three tablets will be created, - * spanning the key ranges: `[, s1), [s1, s2), [s2, )`. - * Example: - * * Row keys := `["a", "apple", "custom", "customer_1", "customer_2",` - * `"other", "zz"]` - * * initial_split_keys := `["apple", "customer_1", "customer_2", "other"]` - * * Key assignment: - * - Tablet 1 `[, apple) => {"a"}.` - * - Tablet 2 `[apple, customer_1) => {"apple", "custom"}.` - * - Tablet 3 `[customer_1, customer_2) => {"customer_1"}.` - * - Tablet 4 `[customer_2, other) => {"customer_2"}.` - * - Tablet 5 `[other, ) => {"other", "zz"}.` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the instance in which to create the table. - * Values are of the form `projects/{project}/instances/{instance}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The unique name of the instance in which to create the table. - * Values are of the form `projects/{project}/instances/{instance}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The name by which the new table should be referred to within the - * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. - * Maximum 50 characters. - * - * Generated from protobuf field string table_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTableId() - { - return $this->table_id; - } - - /** - * Required. The name by which the new table should be referred to within the - * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. - * Maximum 50 characters. - * - * Generated from protobuf field string table_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTableId($var) - { - GPBUtil::checkString($var, True); - $this->table_id = $var; - - return $this; - } - - /** - * Required. The Table to create. - * - * Generated from protobuf field .google.bigtable.admin.v2.Table table = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Bigtable\Admin\V2\Table|null - */ - public function getTable() - { - return $this->table; - } - - public function hasTable() - { - return isset($this->table); - } - - public function clearTable() - { - unset($this->table); - } - - /** - * Required. The Table to create. - * - * Generated from protobuf field .google.bigtable.admin.v2.Table table = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Bigtable\Admin\V2\Table $var - * @return $this - */ - public function setTable($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Table::class); - $this->table = $var; - - return $this; - } - - /** - * The optional list of row keys that will be used to initially split the - * table into several tablets (tablets are similar to HBase regions). - * Given two split keys, `s1` and `s2`, three tablets will be created, - * spanning the key ranges: `[, s1), [s1, s2), [s2, )`. - * Example: - * * Row keys := `["a", "apple", "custom", "customer_1", "customer_2",` - * `"other", "zz"]` - * * initial_split_keys := `["apple", "customer_1", "customer_2", "other"]` - * * Key assignment: - * - Tablet 1 `[, apple) => {"a"}.` - * - Tablet 2 `[apple, customer_1) => {"apple", "custom"}.` - * - Tablet 3 `[customer_1, customer_2) => {"customer_1"}.` - * - Tablet 4 `[customer_2, other) => {"customer_2"}.` - * - Tablet 5 `[other, ) => {"other", "zz"}.` - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.CreateTableRequest.Split initial_splits = 4; - * @return RepeatedField<\Google\Cloud\Bigtable\Admin\V2\CreateTableRequest\Split> - */ - public function getInitialSplits() - { - return $this->initial_splits; - } - - /** - * The optional list of row keys that will be used to initially split the - * table into several tablets (tablets are similar to HBase regions). - * Given two split keys, `s1` and `s2`, three tablets will be created, - * spanning the key ranges: `[, s1), [s1, s2), [s2, )`. - * Example: - * * Row keys := `["a", "apple", "custom", "customer_1", "customer_2",` - * `"other", "zz"]` - * * initial_split_keys := `["apple", "customer_1", "customer_2", "other"]` - * * Key assignment: - * - Tablet 1 `[, apple) => {"a"}.` - * - Tablet 2 `[apple, customer_1) => {"apple", "custom"}.` - * - Tablet 3 `[customer_1, customer_2) => {"customer_1"}.` - * - Tablet 4 `[customer_2, other) => {"customer_2"}.` - * - Tablet 5 `[other, ) => {"other", "zz"}.` - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.CreateTableRequest.Split initial_splits = 4; - * @param \Google\Cloud\Bigtable\Admin\V2\CreateTableRequest\Split[] $var - * @return $this - */ - public function setInitialSplits($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\CreateTableRequest\Split::class); - $this->initial_splits = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateTableRequest/Split.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateTableRequest/Split.php deleted file mode 100644 index f7577a6c5764..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/CreateTableRequest/Split.php +++ /dev/null @@ -1,67 +0,0 @@ -google.bigtable.admin.v2.CreateTableRequest.Split - */ -class Split extends \Google\Protobuf\Internal\Message -{ - /** - * Row key to use as an initial tablet boundary. - * - * Generated from protobuf field bytes key = 1; - */ - protected $key = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key - * Row key to use as an initial tablet boundary. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Row key to use as an initial tablet boundary. - * - * Generated from protobuf field bytes key = 1; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * Row key to use as an initial tablet boundary. - * - * Generated from protobuf field bytes key = 1; - * @param string $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkString($var, False); - $this->key = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DataBoostReadLocalWrites.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DataBoostReadLocalWrites.php deleted file mode 100644 index afe11e54aba3..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DataBoostReadLocalWrites.php +++ /dev/null @@ -1,34 +0,0 @@ -google.bigtable.admin.v2.DataBoostReadLocalWrites - */ -class DataBoostReadLocalWrites extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteAppProfileRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteAppProfileRequest.php deleted file mode 100644 index ea908e1f44c8..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteAppProfileRequest.php +++ /dev/null @@ -1,143 +0,0 @@ -google.bigtable.admin.v2.DeleteAppProfileRequest - */ -class DeleteAppProfileRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the app profile to be deleted. Values are of - * the form - * `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. If true, ignore safety checks when deleting the app profile. - * - * Generated from protobuf field bool ignore_warnings = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $ignore_warnings = false; - - /** - * @param string $name Required. The unique name of the app profile to be deleted. Values are of - * the form - * `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. Please see - * {@see BigtableInstanceAdminClient::appProfileName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\Admin\V2\DeleteAppProfileRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * @param string $name Required. The unique name of the app profile to be deleted. Values are of - * the form - * `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. Please see - * {@see BigtableInstanceAdminClient::appProfileName()} for help formatting this field. - * @param bool $ignoreWarnings Required. If true, ignore safety checks when deleting the app profile. - * - * @return \Google\Cloud\Bigtable\Admin\V2\DeleteAppProfileRequest - * - * @experimental - */ - public static function buildFromNameIgnoreWarnings(string $name, bool $ignoreWarnings): self - { - return (new self()) - ->setName($name) - ->setIgnoreWarnings($ignoreWarnings); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The unique name of the app profile to be deleted. Values are of - * the form - * `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. - * @type bool $ignore_warnings - * Required. If true, ignore safety checks when deleting the app profile. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the app profile to be deleted. Values are of - * the form - * `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The unique name of the app profile to be deleted. Values are of - * the form - * `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. If true, ignore safety checks when deleting the app profile. - * - * Generated from protobuf field bool ignore_warnings = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return bool - */ - public function getIgnoreWarnings() - { - return $this->ignore_warnings; - } - - /** - * Required. If true, ignore safety checks when deleting the app profile. - * - * Generated from protobuf field bool ignore_warnings = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param bool $var - * @return $this - */ - public function setIgnoreWarnings($var) - { - GPBUtil::checkBool($var); - $this->ignore_warnings = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteAuthorizedViewRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteAuthorizedViewRequest.php deleted file mode 100644 index 6a87ddb9e3ef..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteAuthorizedViewRequest.php +++ /dev/null @@ -1,138 +0,0 @@ -google.bigtable.admin.v2.DeleteAuthorizedViewRequest - */ -class DeleteAuthorizedViewRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the AuthorizedView to be deleted. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. The current etag of the AuthorizedView. - * If an etag is provided and does not match the current etag of the - * AuthorizedView, deletion will be blocked and an ABORTED error will be - * returned. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - - /** - * @param string $name Required. The unique name of the AuthorizedView to be deleted. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. Please see - * {@see BigtableTableAdminClient::authorizedViewName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\Admin\V2\DeleteAuthorizedViewRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The unique name of the AuthorizedView to be deleted. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. - * @type string $etag - * Optional. The current etag of the AuthorizedView. - * If an etag is provided and does not match the current etag of the - * AuthorizedView, deletion will be blocked and an ABORTED error will be - * returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the AuthorizedView to be deleted. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The unique name of the AuthorizedView to be deleted. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The current etag of the AuthorizedView. - * If an etag is provided and does not match the current etag of the - * AuthorizedView, deletion will be blocked and an ABORTED error will be - * returned. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. The current etag of the AuthorizedView. - * If an etag is provided and does not match the current etag of the - * AuthorizedView, deletion will be blocked and an ABORTED error will be - * returned. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteBackupRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteBackupRequest.php deleted file mode 100644 index c5907898439e..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteBackupRequest.php +++ /dev/null @@ -1,92 +0,0 @@ -google.bigtable.admin.v2.DeleteBackupRequest - */ -class DeleteBackupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the backup to delete. - * Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Name of the backup to delete. - * Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. Please see - * {@see BigtableTableAdminClient::backupName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\Admin\V2\DeleteBackupRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the backup to delete. - * Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the backup to delete. - * Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the backup to delete. - * Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteClusterRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteClusterRequest.php deleted file mode 100644 index 6b61df42324d..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteClusterRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.bigtable.admin.v2.DeleteClusterRequest - */ -class DeleteClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the cluster to be deleted. Values are of the - * form `projects/{project}/instances/{instance}/clusters/{cluster}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The unique name of the cluster to be deleted. Values are of the - * form `projects/{project}/instances/{instance}/clusters/{cluster}`. Please see - * {@see BigtableInstanceAdminClient::clusterName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\Admin\V2\DeleteClusterRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The unique name of the cluster to be deleted. Values are of the - * form `projects/{project}/instances/{instance}/clusters/{cluster}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the cluster to be deleted. Values are of the - * form `projects/{project}/instances/{instance}/clusters/{cluster}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The unique name of the cluster to be deleted. Values are of the - * form `projects/{project}/instances/{instance}/clusters/{cluster}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteInstanceRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteInstanceRequest.php deleted file mode 100644 index c1fd6d506afa..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteInstanceRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.bigtable.admin.v2.DeleteInstanceRequest - */ -class DeleteInstanceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the instance to be deleted. - * Values are of the form `projects/{project}/instances/{instance}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The unique name of the instance to be deleted. - * Values are of the form `projects/{project}/instances/{instance}`. Please see - * {@see BigtableInstanceAdminClient::instanceName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\Admin\V2\DeleteInstanceRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The unique name of the instance to be deleted. - * Values are of the form `projects/{project}/instances/{instance}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the instance to be deleted. - * Values are of the form `projects/{project}/instances/{instance}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The unique name of the instance to be deleted. - * Values are of the form `projects/{project}/instances/{instance}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteLogicalViewRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteLogicalViewRequest.php deleted file mode 100644 index 19e81cd4cbe3..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteLogicalViewRequest.php +++ /dev/null @@ -1,137 +0,0 @@ -google.bigtable.admin.v2.DeleteLogicalViewRequest - */ -class DeleteLogicalViewRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the logical view to be deleted. - * Format: - * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. The current etag of the logical view. - * If an etag is provided and does not match the current etag of the - * logical view, deletion will be blocked and an ABORTED error will be - * returned. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - - /** - * @param string $name Required. The unique name of the logical view to be deleted. - * Format: - * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. Please see - * {@see BigtableInstanceAdminClient::logicalViewName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\Admin\V2\DeleteLogicalViewRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The unique name of the logical view to be deleted. - * Format: - * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. - * @type string $etag - * Optional. The current etag of the logical view. - * If an etag is provided and does not match the current etag of the - * logical view, deletion will be blocked and an ABORTED error will be - * returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the logical view to be deleted. - * Format: - * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The unique name of the logical view to be deleted. - * Format: - * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The current etag of the logical view. - * If an etag is provided and does not match the current etag of the - * logical view, deletion will be blocked and an ABORTED error will be - * returned. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. The current etag of the logical view. - * If an etag is provided and does not match the current etag of the - * logical view, deletion will be blocked and an ABORTED error will be - * returned. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteMaterializedViewRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteMaterializedViewRequest.php deleted file mode 100644 index 18c611d3dcbb..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteMaterializedViewRequest.php +++ /dev/null @@ -1,137 +0,0 @@ -google.bigtable.admin.v2.DeleteMaterializedViewRequest - */ -class DeleteMaterializedViewRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the materialized view to be deleted. - * Format: - * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. The current etag of the materialized view. - * If an etag is provided and does not match the current etag of the - * materialized view, deletion will be blocked and an ABORTED error will be - * returned. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - - /** - * @param string $name Required. The unique name of the materialized view to be deleted. - * Format: - * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. Please see - * {@see BigtableInstanceAdminClient::materializedViewName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\Admin\V2\DeleteMaterializedViewRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The unique name of the materialized view to be deleted. - * Format: - * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. - * @type string $etag - * Optional. The current etag of the materialized view. - * If an etag is provided and does not match the current etag of the - * materialized view, deletion will be blocked and an ABORTED error will be - * returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the materialized view to be deleted. - * Format: - * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The unique name of the materialized view to be deleted. - * Format: - * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The current etag of the materialized view. - * If an etag is provided and does not match the current etag of the - * materialized view, deletion will be blocked and an ABORTED error will be - * returned. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. The current etag of the materialized view. - * If an etag is provided and does not match the current etag of the - * materialized view, deletion will be blocked and an ABORTED error will be - * returned. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteSchemaBundleRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteSchemaBundleRequest.php deleted file mode 100644 index 08ee99e2647f..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteSchemaBundleRequest.php +++ /dev/null @@ -1,134 +0,0 @@ -google.bigtable.admin.v2.DeleteSchemaBundleRequest - */ -class DeleteSchemaBundleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the schema bundle to delete. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. The etag of the schema bundle. - * If this is provided, it must match the server's etag. The server - * returns an ABORTED error on a mismatched etag. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - - /** - * @param string $name Required. The unique name of the schema bundle to delete. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - * Please see {@see BigtableTableAdminClient::schemaBundleName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\Admin\V2\DeleteSchemaBundleRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The unique name of the schema bundle to delete. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - * @type string $etag - * Optional. The etag of the schema bundle. - * If this is provided, it must match the server's etag. The server - * returns an ABORTED error on a mismatched etag. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the schema bundle to delete. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The unique name of the schema bundle to delete. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The etag of the schema bundle. - * If this is provided, it must match the server's etag. The server - * returns an ABORTED error on a mismatched etag. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. The etag of the schema bundle. - * If this is provided, it must match the server's etag. The server - * returns an ABORTED error on a mismatched etag. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteSnapshotRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteSnapshotRequest.php deleted file mode 100644 index 570368330898..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteSnapshotRequest.php +++ /dev/null @@ -1,96 +0,0 @@ -google.bigtable.admin.v2.DeleteSnapshotRequest - */ -class DeleteSnapshotRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the snapshot to be deleted. - * Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The unique name of the snapshot to be deleted. - * Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. Please see - * {@see BigtableTableAdminClient::snapshotName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\Admin\V2\DeleteSnapshotRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The unique name of the snapshot to be deleted. - * Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the snapshot to be deleted. - * Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The unique name of the snapshot to be deleted. - * Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteTableRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteTableRequest.php deleted file mode 100644 index 31bb5546fd8f..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DeleteTableRequest.php +++ /dev/null @@ -1,92 +0,0 @@ -google.bigtable.admin.v2.DeleteTableRequest - */ -class DeleteTableRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the table to be deleted. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The unique name of the table to be deleted. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. Please see - * {@see BigtableTableAdminClient::tableName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\Admin\V2\DeleteTableRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The unique name of the table to be deleted. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the table to be deleted. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The unique name of the table to be deleted. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DropRowRangeRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DropRowRangeRequest.php deleted file mode 100644 index 3671ae8b79c6..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/DropRowRangeRequest.php +++ /dev/null @@ -1,154 +0,0 @@ -google.bigtable.admin.v2.DropRowRangeRequest - */ -class DropRowRangeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the table on which to drop a range of rows. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - protected $target; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The unique name of the table on which to drop a range of rows. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * @type string $row_key_prefix - * Delete all rows that start with this row key prefix. Prefix cannot be - * zero length. - * @type bool $delete_all_data_from_table - * Delete all rows in the table. Setting this to false is a no-op. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the table on which to drop a range of rows. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The unique name of the table on which to drop a range of rows. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Delete all rows that start with this row key prefix. Prefix cannot be - * zero length. - * - * Generated from protobuf field bytes row_key_prefix = 2; - * @return string - */ - public function getRowKeyPrefix() - { - return $this->readOneof(2); - } - - public function hasRowKeyPrefix() - { - return $this->hasOneof(2); - } - - /** - * Delete all rows that start with this row key prefix. Prefix cannot be - * zero length. - * - * Generated from protobuf field bytes row_key_prefix = 2; - * @param string $var - * @return $this - */ - public function setRowKeyPrefix($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Delete all rows in the table. Setting this to false is a no-op. - * - * Generated from protobuf field bool delete_all_data_from_table = 3; - * @return bool - */ - public function getDeleteAllDataFromTable() - { - return $this->readOneof(3); - } - - public function hasDeleteAllDataFromTable() - { - return $this->hasOneof(3); - } - - /** - * Delete all rows in the table. Setting this to false is a no-op. - * - * Generated from protobuf field bool delete_all_data_from_table = 3; - * @param bool $var - * @return $this - */ - public function setDeleteAllDataFromTable($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getTarget() - { - return $this->whichOneof("target"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/EncryptionInfo.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/EncryptionInfo.php deleted file mode 100644 index 418c19e2c0ef..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/EncryptionInfo.php +++ /dev/null @@ -1,160 +0,0 @@ -google.bigtable.admin.v2.EncryptionInfo - */ -class EncryptionInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The type of encryption used to protect this resource. - * - * Generated from protobuf field .google.bigtable.admin.v2.EncryptionInfo.EncryptionType encryption_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $encryption_type = 0; - /** - * Output only. The status of encrypt/decrypt calls on underlying data for - * this resource. Regardless of status, the existing data is always encrypted - * at rest. - * - * Generated from protobuf field .google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $encryption_status = null; - /** - * Output only. The version of the Cloud KMS key specified in the parent - * cluster that is in use for the data underlying this table. - * - * Generated from protobuf field string kms_key_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $kms_key_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $encryption_type - * Output only. The type of encryption used to protect this resource. - * @type \Google\Rpc\Status $encryption_status - * Output only. The status of encrypt/decrypt calls on underlying data for - * this resource. Regardless of status, the existing data is always encrypted - * at rest. - * @type string $kms_key_version - * Output only. The version of the Cloud KMS key specified in the parent - * cluster that is in use for the data underlying this table. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The type of encryption used to protect this resource. - * - * Generated from protobuf field .google.bigtable.admin.v2.EncryptionInfo.EncryptionType encryption_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getEncryptionType() - { - return $this->encryption_type; - } - - /** - * Output only. The type of encryption used to protect this resource. - * - * Generated from protobuf field .google.bigtable.admin.v2.EncryptionInfo.EncryptionType encryption_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setEncryptionType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\EncryptionInfo\EncryptionType::class); - $this->encryption_type = $var; - - return $this; - } - - /** - * Output only. The status of encrypt/decrypt calls on underlying data for - * this resource. Regardless of status, the existing data is always encrypted - * at rest. - * - * Generated from protobuf field .google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Rpc\Status|null - */ - public function getEncryptionStatus() - { - return $this->encryption_status; - } - - public function hasEncryptionStatus() - { - return isset($this->encryption_status); - } - - public function clearEncryptionStatus() - { - unset($this->encryption_status); - } - - /** - * Output only. The status of encrypt/decrypt calls on underlying data for - * this resource. Regardless of status, the existing data is always encrypted - * at rest. - * - * Generated from protobuf field .google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Rpc\Status $var - * @return $this - */ - public function setEncryptionStatus($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Status::class); - $this->encryption_status = $var; - - return $this; - } - - /** - * Output only. The version of the Cloud KMS key specified in the parent - * cluster that is in use for the data underlying this table. - * - * Generated from protobuf field string kms_key_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getKmsKeyVersion() - { - return $this->kms_key_version; - } - - /** - * Output only. The version of the Cloud KMS key specified in the parent - * cluster that is in use for the data underlying this table. - * - * Generated from protobuf field string kms_key_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setKmsKeyVersion($var) - { - GPBUtil::checkString($var, True); - $this->kms_key_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/EncryptionInfo/EncryptionType.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/EncryptionInfo/EncryptionType.php deleted file mode 100644 index 8a6ea595fdf2..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/EncryptionInfo/EncryptionType.php +++ /dev/null @@ -1,69 +0,0 @@ -google.bigtable.admin.v2.EncryptionInfo.EncryptionType - */ -class EncryptionType -{ - /** - * Encryption type was not specified, though data at rest remains encrypted. - * - * Generated from protobuf enum ENCRYPTION_TYPE_UNSPECIFIED = 0; - */ - const ENCRYPTION_TYPE_UNSPECIFIED = 0; - /** - * The data backing this resource is encrypted at rest with a key that is - * fully managed by Google. No key version or status will be populated. - * This is the default state. - * - * Generated from protobuf enum GOOGLE_DEFAULT_ENCRYPTION = 1; - */ - const GOOGLE_DEFAULT_ENCRYPTION = 1; - /** - * The data backing this resource is encrypted at rest with a key that is - * managed by the customer. - * The in-use version of the key and its status are populated for - * CMEK-protected tables. - * CMEK-protected backups are pinned to the key version that was in use at - * the time the backup was taken. This key version is populated but its - * status is not tracked and is reported as `UNKNOWN`. - * - * Generated from protobuf enum CUSTOMER_MANAGED_ENCRYPTION = 2; - */ - const CUSTOMER_MANAGED_ENCRYPTION = 2; - - private static $valueToName = [ - self::ENCRYPTION_TYPE_UNSPECIFIED => 'ENCRYPTION_TYPE_UNSPECIFIED', - self::GOOGLE_DEFAULT_ENCRYPTION => 'GOOGLE_DEFAULT_ENCRYPTION', - self::CUSTOMER_MANAGED_ENCRYPTION => 'CUSTOMER_MANAGED_ENCRYPTION', - ]; - - 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/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GcRule.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GcRule.php deleted file mode 100644 index 3158524db68b..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GcRule.php +++ /dev/null @@ -1,180 +0,0 @@ -google.bigtable.admin.v2.GcRule - */ -class GcRule extends \Google\Protobuf\Internal\Message -{ - protected $rule; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $max_num_versions - * Delete all cells in a column except the most recent N. - * @type \Google\Protobuf\Duration $max_age - * Delete cells in a column older than the given age. - * Values must be at least one millisecond, and will be truncated to - * microsecond granularity. - * @type \Google\Cloud\Bigtable\Admin\V2\GcRule\Intersection $intersection - * Delete cells that would be deleted by every nested rule. - * @type \Google\Cloud\Bigtable\Admin\V2\GcRule\Union $union - * Delete cells that would be deleted by any nested rule. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); - parent::__construct($data); - } - - /** - * Delete all cells in a column except the most recent N. - * - * Generated from protobuf field int32 max_num_versions = 1; - * @return int - */ - public function getMaxNumVersions() - { - return $this->readOneof(1); - } - - public function hasMaxNumVersions() - { - return $this->hasOneof(1); - } - - /** - * Delete all cells in a column except the most recent N. - * - * Generated from protobuf field int32 max_num_versions = 1; - * @param int $var - * @return $this - */ - public function setMaxNumVersions($var) - { - GPBUtil::checkInt32($var); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Delete cells in a column older than the given age. - * Values must be at least one millisecond, and will be truncated to - * microsecond granularity. - * - * Generated from protobuf field .google.protobuf.Duration max_age = 2; - * @return \Google\Protobuf\Duration|null - */ - public function getMaxAge() - { - return $this->readOneof(2); - } - - public function hasMaxAge() - { - return $this->hasOneof(2); - } - - /** - * Delete cells in a column older than the given age. - * Values must be at least one millisecond, and will be truncated to - * microsecond granularity. - * - * Generated from protobuf field .google.protobuf.Duration max_age = 2; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setMaxAge($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Delete cells that would be deleted by every nested rule. - * - * Generated from protobuf field .google.bigtable.admin.v2.GcRule.Intersection intersection = 3; - * @return \Google\Cloud\Bigtable\Admin\V2\GcRule\Intersection|null - */ - public function getIntersection() - { - return $this->readOneof(3); - } - - public function hasIntersection() - { - return $this->hasOneof(3); - } - - /** - * Delete cells that would be deleted by every nested rule. - * - * Generated from protobuf field .google.bigtable.admin.v2.GcRule.Intersection intersection = 3; - * @param \Google\Cloud\Bigtable\Admin\V2\GcRule\Intersection $var - * @return $this - */ - public function setIntersection($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\GcRule\Intersection::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Delete cells that would be deleted by any nested rule. - * - * Generated from protobuf field .google.bigtable.admin.v2.GcRule.Union union = 4; - * @return \Google\Cloud\Bigtable\Admin\V2\GcRule\Union|null - */ - public function getUnion() - { - return $this->readOneof(4); - } - - public function hasUnion() - { - return $this->hasOneof(4); - } - - /** - * Delete cells that would be deleted by any nested rule. - * - * Generated from protobuf field .google.bigtable.admin.v2.GcRule.Union union = 4; - * @param \Google\Cloud\Bigtable\Admin\V2\GcRule\Union $var - * @return $this - */ - public function setUnion($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\GcRule\Union::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getRule() - { - return $this->whichOneof("rule"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GcRule/Intersection.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GcRule/Intersection.php deleted file mode 100644 index 9b5476e44bc8..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GcRule/Intersection.php +++ /dev/null @@ -1,67 +0,0 @@ -google.bigtable.admin.v2.GcRule.Intersection - */ -class Intersection extends \Google\Protobuf\Internal\Message -{ - /** - * Only delete cells which would be deleted by every element of `rules`. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.GcRule rules = 1; - */ - private $rules; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\GcRule[] $rules - * Only delete cells which would be deleted by every element of `rules`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); - parent::__construct($data); - } - - /** - * Only delete cells which would be deleted by every element of `rules`. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.GcRule rules = 1; - * @return RepeatedField<\Google\Cloud\Bigtable\Admin\V2\GcRule> - */ - public function getRules() - { - return $this->rules; - } - - /** - * Only delete cells which would be deleted by every element of `rules`. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.GcRule rules = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\GcRule[] $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\GcRule::class); - $this->rules = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GcRule/Union.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GcRule/Union.php deleted file mode 100644 index 737923812851..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GcRule/Union.php +++ /dev/null @@ -1,67 +0,0 @@ -google.bigtable.admin.v2.GcRule.Union - */ -class Union extends \Google\Protobuf\Internal\Message -{ - /** - * Delete cells which would be deleted by any element of `rules`. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.GcRule rules = 1; - */ - private $rules; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\GcRule[] $rules - * Delete cells which would be deleted by any element of `rules`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); - parent::__construct($data); - } - - /** - * Delete cells which would be deleted by any element of `rules`. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.GcRule rules = 1; - * @return RepeatedField<\Google\Cloud\Bigtable\Admin\V2\GcRule> - */ - public function getRules() - { - return $this->rules; - } - - /** - * Delete cells which would be deleted by any element of `rules`. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.GcRule rules = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\GcRule[] $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\GcRule::class); - $this->rules = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GenerateConsistencyTokenRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GenerateConsistencyTokenRequest.php deleted file mode 100644 index d228f07dea14..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GenerateConsistencyTokenRequest.php +++ /dev/null @@ -1,92 +0,0 @@ -google.bigtable.admin.v2.GenerateConsistencyTokenRequest - */ -class GenerateConsistencyTokenRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the Table for which to create a consistency - * token. Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The unique name of the Table for which to create a consistency - * token. Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. Please see - * {@see BigtableTableAdminClient::tableName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\Admin\V2\GenerateConsistencyTokenRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The unique name of the Table for which to create a consistency - * token. Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the Table for which to create a consistency - * token. Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The unique name of the Table for which to create a consistency - * token. Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GenerateConsistencyTokenResponse.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GenerateConsistencyTokenResponse.php deleted file mode 100644 index 770033e3fb6a..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GenerateConsistencyTokenResponse.php +++ /dev/null @@ -1,68 +0,0 @@ -google.bigtable.admin.v2.GenerateConsistencyTokenResponse - */ -class GenerateConsistencyTokenResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The generated consistency token. - * - * Generated from protobuf field string consistency_token = 1; - */ - protected $consistency_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $consistency_token - * The generated consistency token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The generated consistency token. - * - * Generated from protobuf field string consistency_token = 1; - * @return string - */ - public function getConsistencyToken() - { - return $this->consistency_token; - } - - /** - * The generated consistency token. - * - * Generated from protobuf field string consistency_token = 1; - * @param string $var - * @return $this - */ - public function setConsistencyToken($var) - { - GPBUtil::checkString($var, True); - $this->consistency_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetAppProfileRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetAppProfileRequest.php deleted file mode 100644 index 3cf6bf079212..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetAppProfileRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.bigtable.admin.v2.GetAppProfileRequest - */ -class GetAppProfileRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the requested app profile. Values are of the - * form `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The unique name of the requested app profile. Values are of the - * form `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. Please see - * {@see BigtableInstanceAdminClient::appProfileName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\Admin\V2\GetAppProfileRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The unique name of the requested app profile. Values are of the - * form `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the requested app profile. Values are of the - * form `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The unique name of the requested app profile. Values are of the - * form `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetAuthorizedViewRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetAuthorizedViewRequest.php deleted file mode 100644 index 4f9ebb278f01..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetAuthorizedViewRequest.php +++ /dev/null @@ -1,130 +0,0 @@ -google.bigtable.admin.v2.GetAuthorizedViewRequest - */ -class GetAuthorizedViewRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the requested AuthorizedView. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. The resource_view to be applied to the returned AuthorizedView's - * fields. Default to BASIC. - * - * Generated from protobuf field .google.bigtable.admin.v2.AuthorizedView.ResponseView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $view = 0; - - /** - * @param string $name Required. The unique name of the requested AuthorizedView. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. Please see - * {@see BigtableTableAdminClient::authorizedViewName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\Admin\V2\GetAuthorizedViewRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The unique name of the requested AuthorizedView. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. - * @type int $view - * Optional. The resource_view to be applied to the returned AuthorizedView's - * fields. Default to BASIC. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the requested AuthorizedView. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The unique name of the requested AuthorizedView. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The resource_view to be applied to the returned AuthorizedView's - * fields. Default to BASIC. - * - * Generated from protobuf field .google.bigtable.admin.v2.AuthorizedView.ResponseView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * Optional. The resource_view to be applied to the returned AuthorizedView's - * fields. Default to BASIC. - * - * Generated from protobuf field .google.bigtable.admin.v2.AuthorizedView.ResponseView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\AuthorizedView\ResponseView::class); - $this->view = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetBackupRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetBackupRequest.php deleted file mode 100644 index 55594fbcbd8d..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetBackupRequest.php +++ /dev/null @@ -1,92 +0,0 @@ -google.bigtable.admin.v2.GetBackupRequest - */ -class GetBackupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the backup. - * Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Name of the backup. - * Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. Please see - * {@see BigtableTableAdminClient::backupName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\Admin\V2\GetBackupRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the backup. - * Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the backup. - * Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the backup. - * Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetClusterRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetClusterRequest.php deleted file mode 100644 index 5fcb4c52f7a2..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetClusterRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.bigtable.admin.v2.GetClusterRequest - */ -class GetClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the requested cluster. Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The unique name of the requested cluster. Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}`. Please see - * {@see BigtableInstanceAdminClient::clusterName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\Admin\V2\GetClusterRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The unique name of the requested cluster. Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the requested cluster. Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The unique name of the requested cluster. Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetInstanceRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetInstanceRequest.php deleted file mode 100644 index 03a2189b6abb..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetInstanceRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.bigtable.admin.v2.GetInstanceRequest - */ -class GetInstanceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the requested instance. Values are of the form - * `projects/{project}/instances/{instance}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The unique name of the requested instance. Values are of the form - * `projects/{project}/instances/{instance}`. Please see - * {@see BigtableInstanceAdminClient::instanceName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\Admin\V2\GetInstanceRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The unique name of the requested instance. Values are of the form - * `projects/{project}/instances/{instance}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the requested instance. Values are of the form - * `projects/{project}/instances/{instance}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The unique name of the requested instance. Values are of the form - * `projects/{project}/instances/{instance}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetLogicalViewRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetLogicalViewRequest.php deleted file mode 100644 index 0a301028ac35..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetLogicalViewRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.bigtable.admin.v2.GetLogicalViewRequest - */ -class GetLogicalViewRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the requested logical view. Values are of the - * form `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The unique name of the requested logical view. Values are of the - * form `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. Please see - * {@see BigtableInstanceAdminClient::logicalViewName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\Admin\V2\GetLogicalViewRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The unique name of the requested logical view. Values are of the - * form `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the requested logical view. Values are of the - * form `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The unique name of the requested logical view. Values are of the - * form `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetMaterializedViewRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetMaterializedViewRequest.php deleted file mode 100644 index 068bd86b7207..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetMaterializedViewRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.bigtable.admin.v2.GetMaterializedViewRequest - */ -class GetMaterializedViewRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the requested materialized view. Values are of - * the form - * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The unique name of the requested materialized view. Values are of - * the form - * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. Please see - * {@see BigtableInstanceAdminClient::materializedViewName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\Admin\V2\GetMaterializedViewRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The unique name of the requested materialized view. Values are of - * the form - * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the requested materialized view. Values are of - * the form - * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The unique name of the requested materialized view. Values are of - * the form - * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetSchemaBundleRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetSchemaBundleRequest.php deleted file mode 100644 index 4552a19e304b..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetSchemaBundleRequest.php +++ /dev/null @@ -1,92 +0,0 @@ -google.bigtable.admin.v2.GetSchemaBundleRequest - */ -class GetSchemaBundleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the schema bundle to retrieve. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The unique name of the schema bundle to retrieve. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - * Please see {@see BigtableTableAdminClient::schemaBundleName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\Admin\V2\GetSchemaBundleRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The unique name of the schema bundle to retrieve. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the schema bundle to retrieve. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The unique name of the schema bundle to retrieve. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetSnapshotRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetSnapshotRequest.php deleted file mode 100644 index f6b7e6309cbf..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetSnapshotRequest.php +++ /dev/null @@ -1,96 +0,0 @@ -google.bigtable.admin.v2.GetSnapshotRequest - */ -class GetSnapshotRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the requested snapshot. - * Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The unique name of the requested snapshot. - * Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. Please see - * {@see BigtableTableAdminClient::snapshotName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\Admin\V2\GetSnapshotRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The unique name of the requested snapshot. - * Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the requested snapshot. - * Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The unique name of the requested snapshot. - * Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetTableRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetTableRequest.php deleted file mode 100644 index f462d8b10c8f..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/GetTableRequest.php +++ /dev/null @@ -1,130 +0,0 @@ -google.bigtable.admin.v2.GetTableRequest - */ -class GetTableRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the requested table. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * The view to be applied to the returned table's fields. - * Defaults to `SCHEMA_VIEW` if unspecified. - * - * Generated from protobuf field .google.bigtable.admin.v2.Table.View view = 2; - */ - protected $view = 0; - - /** - * @param string $name Required. The unique name of the requested table. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. Please see - * {@see BigtableTableAdminClient::tableName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\Admin\V2\GetTableRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The unique name of the requested table. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * @type int $view - * The view to be applied to the returned table's fields. - * Defaults to `SCHEMA_VIEW` if unspecified. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the requested table. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The unique name of the requested table. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The view to be applied to the returned table's fields. - * Defaults to `SCHEMA_VIEW` if unspecified. - * - * Generated from protobuf field .google.bigtable.admin.v2.Table.View view = 2; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * The view to be applied to the returned table's fields. - * Defaults to `SCHEMA_VIEW` if unspecified. - * - * Generated from protobuf field .google.bigtable.admin.v2.Table.View view = 2; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\Table\View::class); - $this->view = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/HotTablet.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/HotTablet.php deleted file mode 100644 index 6d8f6493e7ac..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/HotTablet.php +++ /dev/null @@ -1,315 +0,0 @@ -google.bigtable.admin.v2.HotTablet - */ -class HotTablet extends \Google\Protobuf\Internal\Message -{ - /** - * The unique name of the hot tablet. Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/[a-zA-Z0-9_-]*`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Name of the table that contains the tablet. Values are of the form - * `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. - * - * Generated from protobuf field string table_name = 2 [(.google.api.resource_reference) = { - */ - protected $table_name = ''; - /** - * Output only. The start time of the hot tablet. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $start_time = null; - /** - * Output only. The end time of the hot tablet. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Tablet Start Key (inclusive). - * - * Generated from protobuf field string start_key = 5; - */ - protected $start_key = ''; - /** - * Tablet End Key (inclusive). - * - * Generated from protobuf field string end_key = 6; - */ - protected $end_key = ''; - /** - * Output only. The average CPU usage spent by a node on this tablet over the - * start_time to end_time time range. The percentage is the amount of CPU used - * by the node to serve the tablet, from 0% (tablet was not interacted with) - * to 100% (the node spent all cycles serving the hot tablet). - * - * Generated from protobuf field float node_cpu_usage_percent = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $node_cpu_usage_percent = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The unique name of the hot tablet. Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/[a-zA-Z0-9_-]*`. - * @type string $table_name - * Name of the table that contains the tablet. Values are of the form - * `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. - * @type \Google\Protobuf\Timestamp $start_time - * Output only. The start time of the hot tablet. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The end time of the hot tablet. - * @type string $start_key - * Tablet Start Key (inclusive). - * @type string $end_key - * Tablet End Key (inclusive). - * @type float $node_cpu_usage_percent - * Output only. The average CPU usage spent by a node on this tablet over the - * start_time to end_time time range. The percentage is the amount of CPU used - * by the node to serve the tablet, from 0% (tablet was not interacted with) - * to 100% (the node spent all cycles serving the hot tablet). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Instance::initOnce(); - parent::__construct($data); - } - - /** - * The unique name of the hot tablet. Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/[a-zA-Z0-9_-]*`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The unique name of the hot tablet. Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/[a-zA-Z0-9_-]*`. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Name of the table that contains the tablet. Values are of the form - * `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. - * - * Generated from protobuf field string table_name = 2 [(.google.api.resource_reference) = { - * @return string - */ - public function getTableName() - { - return $this->table_name; - } - - /** - * Name of the table that contains the tablet. Values are of the form - * `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. - * - * Generated from protobuf field string table_name = 2 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setTableName($var) - { - GPBUtil::checkString($var, True); - $this->table_name = $var; - - return $this; - } - - /** - * Output only. The start time of the hot tablet. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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); - } - - /** - * Output only. The start time of the hot tablet. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * Output only. The end time of the hot tablet. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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); - } - - /** - * Output only. The end time of the hot tablet. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Tablet Start Key (inclusive). - * - * Generated from protobuf field string start_key = 5; - * @return string - */ - public function getStartKey() - { - return $this->start_key; - } - - /** - * Tablet Start Key (inclusive). - * - * Generated from protobuf field string start_key = 5; - * @param string $var - * @return $this - */ - public function setStartKey($var) - { - GPBUtil::checkString($var, True); - $this->start_key = $var; - - return $this; - } - - /** - * Tablet End Key (inclusive). - * - * Generated from protobuf field string end_key = 6; - * @return string - */ - public function getEndKey() - { - return $this->end_key; - } - - /** - * Tablet End Key (inclusive). - * - * Generated from protobuf field string end_key = 6; - * @param string $var - * @return $this - */ - public function setEndKey($var) - { - GPBUtil::checkString($var, True); - $this->end_key = $var; - - return $this; - } - - /** - * Output only. The average CPU usage spent by a node on this tablet over the - * start_time to end_time time range. The percentage is the amount of CPU used - * by the node to serve the tablet, from 0% (tablet was not interacted with) - * to 100% (the node spent all cycles serving the hot tablet). - * - * Generated from protobuf field float node_cpu_usage_percent = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getNodeCpuUsagePercent() - { - return $this->node_cpu_usage_percent; - } - - /** - * Output only. The average CPU usage spent by a node on this tablet over the - * start_time to end_time time range. The percentage is the amount of CPU used - * by the node to serve the tablet, from 0% (tablet was not interacted with) - * to 100% (the node spent all cycles serving the hot tablet). - * - * Generated from protobuf field float node_cpu_usage_percent = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setNodeCpuUsagePercent($var) - { - GPBUtil::checkFloat($var); - $this->node_cpu_usage_percent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Instance.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Instance.php deleted file mode 100644 index 3dce09935b67..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Instance.php +++ /dev/null @@ -1,456 +0,0 @@ -google.bigtable.admin.v2.Instance - */ -class Instance extends \Google\Protobuf\Internal\Message -{ - /** - * The unique name of the instance. Values are of the form - * `projects/{project}/instances/[a-z][a-z0-9\\-]+[a-z0-9]`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Required. The descriptive name for this instance as it appears in UIs. - * Can be changed at any time, but should be kept globally unique - * to avoid confusion. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Output only. The current state of the instance. - * - * Generated from protobuf field .google.bigtable.admin.v2.Instance.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * The type of the instance. Defaults to `PRODUCTION`. - * - * Generated from protobuf field .google.bigtable.admin.v2.Instance.Type type = 4; - */ - protected $type = 0; - /** - * Labels are a flexible and lightweight mechanism for organizing cloud - * resources into groups that reflect a customer's organizational needs and - * deployment strategies. They can be used to filter resources and aggregate - * metrics. - * * Label keys must be between 1 and 63 characters long and must conform to - * the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`. - * * Label values must be between 0 and 63 characters long and must conform to - * the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`. - * * No more than 64 labels can be associated with a given resource. - * * Keys and values must both be under 128 bytes. - * - * Generated from protobuf field map labels = 5; - */ - private $labels; - /** - * Output only. A commit timestamp representing when this Instance was - * created. For instances created before this field was added (August 2021), - * this value is `seconds: 0, nanos: 1`. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field optional bool satisfies_pzs = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $satisfies_pzs = null; - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field optional bool satisfies_pzi = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $satisfies_pzi = null; - /** - * Optional. Input only. Immutable. Tag keys/values directly bound to this - * resource. For example: - * - "123/environment": "production", - * - "123/costCenter": "marketing" - * Tags and Labels (above) are both used to bind metadata to resources, with - * different use-cases. See - * https://cloud.google.com/resource-manager/docs/tags/tags-overview for an - * in-depth overview on the difference between tags and labels. - * - * Generated from protobuf field map tags = 12 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - */ - private $tags; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The unique name of the instance. Values are of the form - * `projects/{project}/instances/[a-z][a-z0-9\\-]+[a-z0-9]`. - * @type string $display_name - * Required. The descriptive name for this instance as it appears in UIs. - * Can be changed at any time, but should be kept globally unique - * to avoid confusion. - * @type int $state - * Output only. The current state of the instance. - * @type int $type - * The type of the instance. Defaults to `PRODUCTION`. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Labels are a flexible and lightweight mechanism for organizing cloud - * resources into groups that reflect a customer's organizational needs and - * deployment strategies. They can be used to filter resources and aggregate - * metrics. - * * Label keys must be between 1 and 63 characters long and must conform to - * the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`. - * * Label values must be between 0 and 63 characters long and must conform to - * the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`. - * * No more than 64 labels can be associated with a given resource. - * * Keys and values must both be under 128 bytes. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. A commit timestamp representing when this Instance was - * created. For instances created before this field was added (August 2021), - * this value is `seconds: 0, nanos: 1`. - * @type bool $satisfies_pzs - * Output only. Reserved for future use. - * @type bool $satisfies_pzi - * Output only. Reserved for future use. - * @type array|\Google\Protobuf\Internal\MapField $tags - * Optional. Input only. Immutable. Tag keys/values directly bound to this - * resource. For example: - * - "123/environment": "production", - * - "123/costCenter": "marketing" - * Tags and Labels (above) are both used to bind metadata to resources, with - * different use-cases. See - * https://cloud.google.com/resource-manager/docs/tags/tags-overview for an - * in-depth overview on the difference between tags and labels. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Instance::initOnce(); - parent::__construct($data); - } - - /** - * The unique name of the instance. Values are of the form - * `projects/{project}/instances/[a-z][a-z0-9\\-]+[a-z0-9]`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The unique name of the instance. Values are of the form - * `projects/{project}/instances/[a-z][a-z0-9\\-]+[a-z0-9]`. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The descriptive name for this instance as it appears in UIs. - * Can be changed at any time, but should be kept globally unique - * to avoid confusion. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. The descriptive name for this instance as it appears in UIs. - * Can be changed at any time, but should be kept globally unique - * to avoid confusion. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. The current state of the instance. - * - * Generated from protobuf field .google.bigtable.admin.v2.Instance.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current state of the instance. - * - * Generated from protobuf field .google.bigtable.admin.v2.Instance.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\Instance\State::class); - $this->state = $var; - - return $this; - } - - /** - * The type of the instance. Defaults to `PRODUCTION`. - * - * Generated from protobuf field .google.bigtable.admin.v2.Instance.Type type = 4; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of the instance. Defaults to `PRODUCTION`. - * - * Generated from protobuf field .google.bigtable.admin.v2.Instance.Type type = 4; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\Instance\Type::class); - $this->type = $var; - - return $this; - } - - /** - * Labels are a flexible and lightweight mechanism for organizing cloud - * resources into groups that reflect a customer's organizational needs and - * deployment strategies. They can be used to filter resources and aggregate - * metrics. - * * Label keys must be between 1 and 63 characters long and must conform to - * the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`. - * * Label values must be between 0 and 63 characters long and must conform to - * the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`. - * * No more than 64 labels can be associated with a given resource. - * * Keys and values must both be under 128 bytes. - * - * Generated from protobuf field map labels = 5; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Labels are a flexible and lightweight mechanism for organizing cloud - * resources into groups that reflect a customer's organizational needs and - * deployment strategies. They can be used to filter resources and aggregate - * metrics. - * * Label keys must be between 1 and 63 characters long and must conform to - * the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`. - * * Label values must be between 0 and 63 characters long and must conform to - * the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`. - * * No more than 64 labels can be associated with a given resource. - * * Keys and values must both be under 128 bytes. - * - * Generated from protobuf field map labels = 5; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Output only. A commit timestamp representing when this Instance was - * created. For instances created before this field was added (August 2021), - * this value is `seconds: 0, nanos: 1`. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. A commit timestamp representing when this Instance was - * created. For instances created before this field was added (August 2021), - * this value is `seconds: 0, nanos: 1`. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field optional bool satisfies_pzs = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getSatisfiesPzs() - { - return isset($this->satisfies_pzs) ? $this->satisfies_pzs : false; - } - - public function hasSatisfiesPzs() - { - return isset($this->satisfies_pzs); - } - - public function clearSatisfiesPzs() - { - unset($this->satisfies_pzs); - } - - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field optional bool satisfies_pzs = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setSatisfiesPzs($var) - { - GPBUtil::checkBool($var); - $this->satisfies_pzs = $var; - - return $this; - } - - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field optional bool satisfies_pzi = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getSatisfiesPzi() - { - return isset($this->satisfies_pzi) ? $this->satisfies_pzi : false; - } - - public function hasSatisfiesPzi() - { - return isset($this->satisfies_pzi); - } - - public function clearSatisfiesPzi() - { - unset($this->satisfies_pzi); - } - - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field optional bool satisfies_pzi = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setSatisfiesPzi($var) - { - GPBUtil::checkBool($var); - $this->satisfies_pzi = $var; - - return $this; - } - - /** - * Optional. Input only. Immutable. Tag keys/values directly bound to this - * resource. For example: - * - "123/environment": "production", - * - "123/costCenter": "marketing" - * Tags and Labels (above) are both used to bind metadata to resources, with - * different use-cases. See - * https://cloud.google.com/resource-manager/docs/tags/tags-overview for an - * in-depth overview on the difference between tags and labels. - * - * Generated from protobuf field map tags = 12 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Optional. Input only. Immutable. Tag keys/values directly bound to this - * resource. For example: - * - "123/environment": "production", - * - "123/costCenter": "marketing" - * Tags and Labels (above) are both used to bind metadata to resources, with - * different use-cases. See - * https://cloud.google.com/resource-manager/docs/tags/tags-overview for an - * in-depth overview on the difference between tags and labels. - * - * Generated from protobuf field map tags = 12 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Instance/State.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Instance/State.php deleted file mode 100644 index 15676479aa98..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Instance/State.php +++ /dev/null @@ -1,63 +0,0 @@ -google.bigtable.admin.v2.Instance.State - */ -class State -{ - /** - * The state of the instance could not be determined. - * - * Generated from protobuf enum STATE_NOT_KNOWN = 0; - */ - const STATE_NOT_KNOWN = 0; - /** - * The instance has been successfully created and can serve requests - * to its tables. - * - * Generated from protobuf enum READY = 1; - */ - const READY = 1; - /** - * The instance is currently being created, and may be destroyed - * if the creation process encounters an error. - * - * Generated from protobuf enum CREATING = 2; - */ - const CREATING = 2; - - private static $valueToName = [ - self::STATE_NOT_KNOWN => 'STATE_NOT_KNOWN', - self::READY => 'READY', - self::CREATING => 'CREATING', - ]; - - 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/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Instance/Type.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Instance/Type.php deleted file mode 100644 index 95f13f349b5e..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Instance/Type.php +++ /dev/null @@ -1,65 +0,0 @@ -google.bigtable.admin.v2.Instance.Type - */ -class Type -{ - /** - * The type of the instance is unspecified. If set when creating an - * instance, a `PRODUCTION` instance will be created. If set when updating - * an instance, the type will be left unchanged. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * An instance meant for production use. `serve_nodes` must be set - * on the cluster. - * - * Generated from protobuf enum PRODUCTION = 1; - */ - const PRODUCTION = 1; - /** - * DEPRECATED: Prefer PRODUCTION for all use cases, as it no longer enforces - * a higher minimum node count than DEVELOPMENT. - * - * Generated from protobuf enum DEVELOPMENT = 2; - */ - const DEVELOPMENT = 2; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::PRODUCTION => 'PRODUCTION', - self::DEVELOPMENT => 'DEVELOPMENT', - ]; - - 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/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListAppProfilesRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListAppProfilesRequest.php deleted file mode 100644 index 16285157945e..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListAppProfilesRequest.php +++ /dev/null @@ -1,193 +0,0 @@ -google.bigtable.admin.v2.ListAppProfilesRequest - */ -class ListAppProfilesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the instance for which a list of app profiles - * is requested. Values are of the form - * `projects/{project}/instances/{instance}`. - * Use `{instance} = '-'` to list AppProfiles for all Instances in a project, - * e.g., `projects/myproject/instances/-`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Maximum number of results per page. - * A page_size of zero lets the server choose the number of items to return. - * A page_size which is strictly positive will return at most that many items. - * A negative page_size will cause an error. - * Following the first request, subsequent paginated calls are not required - * to pass a page_size. If a page_size is set in subsequent calls, it must - * match the page_size given in the first request. - * - * Generated from protobuf field int32 page_size = 3; - */ - protected $page_size = 0; - /** - * The value of `next_page_token` returned by a previous call. - * - * Generated from protobuf field string page_token = 2; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The unique name of the instance for which a list of app profiles - * is requested. Values are of the form - * `projects/{project}/instances/{instance}`. - * Use `{instance} = '-'` to list AppProfiles for all Instances in a project, - * e.g., `projects/myproject/instances/-`. Please see - * {@see BigtableInstanceAdminClient::instanceName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\Admin\V2\ListAppProfilesRequest - * - * @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. The unique name of the instance for which a list of app profiles - * is requested. Values are of the form - * `projects/{project}/instances/{instance}`. - * Use `{instance} = '-'` to list AppProfiles for all Instances in a project, - * e.g., `projects/myproject/instances/-`. - * @type int $page_size - * Maximum number of results per page. - * A page_size of zero lets the server choose the number of items to return. - * A page_size which is strictly positive will return at most that many items. - * A negative page_size will cause an error. - * Following the first request, subsequent paginated calls are not required - * to pass a page_size. If a page_size is set in subsequent calls, it must - * match the page_size given in the first request. - * @type string $page_token - * The value of `next_page_token` returned by a previous call. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the instance for which a list of app profiles - * is requested. Values are of the form - * `projects/{project}/instances/{instance}`. - * Use `{instance} = '-'` to list AppProfiles for all Instances in a project, - * e.g., `projects/myproject/instances/-`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The unique name of the instance for which a list of app profiles - * is requested. Values are of the form - * `projects/{project}/instances/{instance}`. - * Use `{instance} = '-'` to list AppProfiles for all Instances in a project, - * e.g., `projects/myproject/instances/-`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Maximum number of results per page. - * A page_size of zero lets the server choose the number of items to return. - * A page_size which is strictly positive will return at most that many items. - * A negative page_size will cause an error. - * Following the first request, subsequent paginated calls are not required - * to pass a page_size. If a page_size is set in subsequent calls, it must - * match the page_size given in the first request. - * - * Generated from protobuf field int32 page_size = 3; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Maximum number of results per page. - * A page_size of zero lets the server choose the number of items to return. - * A page_size which is strictly positive will return at most that many items. - * A negative page_size will cause an error. - * Following the first request, subsequent paginated calls are not required - * to pass a page_size. If a page_size is set in subsequent calls, it must - * match the page_size given in the first request. - * - * Generated from protobuf field int32 page_size = 3; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * The value of `next_page_token` returned by a previous call. - * - * Generated from protobuf field string page_token = 2; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The value of `next_page_token` returned by a previous call. - * - * Generated from protobuf field string page_token = 2; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListAppProfilesResponse.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListAppProfilesResponse.php deleted file mode 100644 index d015c975a483..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListAppProfilesResponse.php +++ /dev/null @@ -1,155 +0,0 @@ -google.bigtable.admin.v2.ListAppProfilesResponse - */ -class ListAppProfilesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of requested app profiles. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.AppProfile app_profiles = 1; - */ - private $app_profiles; - /** - * Set if not all app profiles could be returned in a single response. - * Pass this value to `page_token` in another request to get the next - * page of results. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations from which AppProfile information could not be retrieved, - * due to an outage or some other transient condition. - * AppProfiles from these locations may be missing from `app_profiles`. - * Values are of the form `projects//locations/` - * - * Generated from protobuf field repeated string failed_locations = 3; - */ - private $failed_locations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\AppProfile[] $app_profiles - * The list of requested app profiles. - * @type string $next_page_token - * Set if not all app profiles could be returned in a single response. - * Pass this value to `page_token` in another request to get the next - * page of results. - * @type string[] $failed_locations - * Locations from which AppProfile information could not be retrieved, - * due to an outage or some other transient condition. - * AppProfiles from these locations may be missing from `app_profiles`. - * Values are of the form `projects//locations/` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The list of requested app profiles. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.AppProfile app_profiles = 1; - * @return RepeatedField<\Google\Cloud\Bigtable\Admin\V2\AppProfile> - */ - public function getAppProfiles() - { - return $this->app_profiles; - } - - /** - * The list of requested app profiles. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.AppProfile app_profiles = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\AppProfile[] $var - * @return $this - */ - public function setAppProfiles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\AppProfile::class); - $this->app_profiles = $arr; - - return $this; - } - - /** - * Set if not all app profiles could be returned in a single response. - * Pass this value to `page_token` in another request to get the next - * page of results. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Set if not all app profiles could be returned in a single response. - * Pass this value to `page_token` in another request to get the next - * page of results. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations from which AppProfile information could not be retrieved, - * due to an outage or some other transient condition. - * AppProfiles from these locations may be missing from `app_profiles`. - * Values are of the form `projects//locations/` - * - * Generated from protobuf field repeated string failed_locations = 3; - * @return RepeatedField - */ - public function getFailedLocations() - { - return $this->failed_locations; - } - - /** - * Locations from which AppProfile information could not be retrieved, - * due to an outage or some other transient condition. - * AppProfiles from these locations may be missing from `app_profiles`. - * Values are of the form `projects//locations/` - * - * Generated from protobuf field repeated string failed_locations = 3; - * @param string[] $var - * @return $this - */ - public function setFailedLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->failed_locations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListAuthorizedViewsRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListAuthorizedViewsRequest.php deleted file mode 100644 index bfdd8117a160..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListAuthorizedViewsRequest.php +++ /dev/null @@ -1,222 +0,0 @@ -google.bigtable.admin.v2.ListAuthorizedViewsRequest - */ -class ListAuthorizedViewsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the table for which AuthorizedViews should be - * listed. Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Maximum number of results per page. - * A page_size of zero lets the server choose the number of items to return. - * A page_size which is strictly positive will return at most that many items. - * A negative page_size will cause an error. - * Following the first request, subsequent paginated calls are not required - * to pass a page_size. If a page_size is set in subsequent calls, it must - * match the page_size given in the first request. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. The value of `next_page_token` returned by a previous call. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. The resource_view to be applied to the returned AuthorizedViews' - * fields. Default to NAME_ONLY. - * - * Generated from protobuf field .google.bigtable.admin.v2.AuthorizedView.ResponseView view = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $view = 0; - - /** - * @param string $parent Required. The unique name of the table for which AuthorizedViews should be - * listed. Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. Please see - * {@see BigtableTableAdminClient::tableName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\Admin\V2\ListAuthorizedViewsRequest - * - * @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. The unique name of the table for which AuthorizedViews should be - * listed. Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * @type int $page_size - * Optional. Maximum number of results per page. - * A page_size of zero lets the server choose the number of items to return. - * A page_size which is strictly positive will return at most that many items. - * A negative page_size will cause an error. - * Following the first request, subsequent paginated calls are not required - * to pass a page_size. If a page_size is set in subsequent calls, it must - * match the page_size given in the first request. - * @type string $page_token - * Optional. The value of `next_page_token` returned by a previous call. - * @type int $view - * Optional. The resource_view to be applied to the returned AuthorizedViews' - * fields. Default to NAME_ONLY. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the table for which AuthorizedViews should be - * listed. Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The unique name of the table for which AuthorizedViews should be - * listed. Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. Maximum number of results per page. - * A page_size of zero lets the server choose the number of items to return. - * A page_size which is strictly positive will return at most that many items. - * A negative page_size will cause an error. - * Following the first request, subsequent paginated calls are not required - * to pass a page_size. If a page_size is set in subsequent calls, it must - * match the page_size given in the first request. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of results per page. - * A page_size of zero lets the server choose the number of items to return. - * A page_size which is strictly positive will return at most that many items. - * A negative page_size will cause an error. - * Following the first request, subsequent paginated calls are not required - * to pass a page_size. If a page_size is set in subsequent calls, it must - * match the page_size given in the first request. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. The value of `next_page_token` returned by a previous call. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. The value of `next_page_token` returned by a previous call. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. The resource_view to be applied to the returned AuthorizedViews' - * fields. Default to NAME_ONLY. - * - * Generated from protobuf field .google.bigtable.admin.v2.AuthorizedView.ResponseView view = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * Optional. The resource_view to be applied to the returned AuthorizedViews' - * fields. Default to NAME_ONLY. - * - * Generated from protobuf field .google.bigtable.admin.v2.AuthorizedView.ResponseView view = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\AuthorizedView\ResponseView::class); - $this->view = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListAuthorizedViewsResponse.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListAuthorizedViewsResponse.php deleted file mode 100644 index 620aada6530a..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListAuthorizedViewsResponse.php +++ /dev/null @@ -1,110 +0,0 @@ -google.bigtable.admin.v2.ListAuthorizedViewsResponse - */ -class ListAuthorizedViewsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The AuthorizedViews present in the requested table. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.AuthorizedView authorized_views = 1; - */ - private $authorized_views; - /** - * Set if not all tables could be returned in a single response. - * Pass this value to `page_token` in another request to get the next - * page of results. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\AuthorizedView[] $authorized_views - * The AuthorizedViews present in the requested table. - * @type string $next_page_token - * Set if not all tables could be returned in a single response. - * Pass this value to `page_token` in another request to get the next - * page of results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The AuthorizedViews present in the requested table. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.AuthorizedView authorized_views = 1; - * @return RepeatedField<\Google\Cloud\Bigtable\Admin\V2\AuthorizedView> - */ - public function getAuthorizedViews() - { - return $this->authorized_views; - } - - /** - * The AuthorizedViews present in the requested table. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.AuthorizedView authorized_views = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\AuthorizedView[] $var - * @return $this - */ - public function setAuthorizedViews($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\AuthorizedView::class); - $this->authorized_views = $arr; - - return $this; - } - - /** - * Set if not all tables could be returned in a single response. - * Pass this value to `page_token` in another request to get the next - * page of results. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Set if not all tables could be returned in a single response. - * Pass this value to `page_token` in another request to get the next - * page of results. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListBackupsRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListBackupsRequest.php deleted file mode 100644 index c9aa5b59aaec..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListBackupsRequest.php +++ /dev/null @@ -1,429 +0,0 @@ -google.bigtable.admin.v2.ListBackupsRequest - */ -class ListBackupsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The cluster to list backups from. Values are of the - * form `projects/{project}/instances/{instance}/clusters/{cluster}`. - * Use `{cluster} = '-'` to list backups for all clusters in an instance, - * e.g., `projects/{project}/instances/{instance}/clusters/-`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * A filter expression that filters backups listed in the response. - * The expression must specify the field name, a comparison operator, - * and the value that you want to use for filtering. The value must be a - * string, a number, or a boolean. The comparison operator must be - * <, >, <=, >=, !=, =, or :. Colon ':' represents a HAS operator which is - * roughly synonymous with equality. Filter rules are case insensitive. - * The fields eligible for filtering are: - * * `name` - * * `source_table` - * * `state` - * * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `size_bytes` - * To filter on multiple expressions, provide each separate expression within - * parentheses. By default, each expression is an AND expression. However, - * you can include AND, OR, and NOT expressions explicitly. - * Some examples of using filters are: - * * `name:"exact"` --> The backup's name is the string "exact". - * * `name:howl` --> The backup's name contains the string "howl". - * * `source_table:prod` - * --> The source_table's name contains the string "prod". - * * `state:CREATING` --> The backup is pending creation. - * * `state:READY` --> The backup is fully created and ready for use. - * * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` - * --> The backup name contains the string "howl" and start_time - * of the backup is before 2018-03-28T14:50:00Z. - * * `size_bytes > 10000000000` --> The backup's size is greater than 10GB - * - * Generated from protobuf field string filter = 2; - */ - protected $filter = ''; - /** - * An expression for specifying the sort order of the results of the request. - * The string value should specify one or more fields in - * [Backup][google.bigtable.admin.v2.Backup]. The full syntax is described at - * https://aip.dev/132#ordering. - * Fields supported are: - * * name - * * source_table - * * expire_time - * * start_time - * * end_time - * * size_bytes - * * state - * For example, "start_time". The default sorting order is ascending. - * To specify descending order for the field, a suffix " desc" should - * be appended to the field name. For example, "start_time desc". - * Redundant space characters in the syntax are insigificant. - * If order_by is empty, results will be sorted by `start_time` in descending - * order starting from the most recently created backup. - * - * Generated from protobuf field string order_by = 3; - */ - protected $order_by = ''; - /** - * Number of backups to be returned in the response. If 0 or - * less, defaults to the server's maximum allowed page size. - * - * Generated from protobuf field int32 page_size = 4; - */ - protected $page_size = 0; - /** - * If non-empty, `page_token` should contain a - * [next_page_token][google.bigtable.admin.v2.ListBackupsResponse.next_page_token] - * from a previous - * [ListBackupsResponse][google.bigtable.admin.v2.ListBackupsResponse] to the - * same `parent` and with the same `filter`. - * - * Generated from protobuf field string page_token = 5; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The cluster to list backups from. Values are of the - * form `projects/{project}/instances/{instance}/clusters/{cluster}`. - * Use `{cluster} = '-'` to list backups for all clusters in an instance, - * e.g., `projects/{project}/instances/{instance}/clusters/-`. Please see - * {@see BigtableTableAdminClient::clusterName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\Admin\V2\ListBackupsRequest - * - * @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. The cluster to list backups from. Values are of the - * form `projects/{project}/instances/{instance}/clusters/{cluster}`. - * Use `{cluster} = '-'` to list backups for all clusters in an instance, - * e.g., `projects/{project}/instances/{instance}/clusters/-`. - * @type string $filter - * A filter expression that filters backups listed in the response. - * The expression must specify the field name, a comparison operator, - * and the value that you want to use for filtering. The value must be a - * string, a number, or a boolean. The comparison operator must be - * <, >, <=, >=, !=, =, or :. Colon ':' represents a HAS operator which is - * roughly synonymous with equality. Filter rules are case insensitive. - * The fields eligible for filtering are: - * * `name` - * * `source_table` - * * `state` - * * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `size_bytes` - * To filter on multiple expressions, provide each separate expression within - * parentheses. By default, each expression is an AND expression. However, - * you can include AND, OR, and NOT expressions explicitly. - * Some examples of using filters are: - * * `name:"exact"` --> The backup's name is the string "exact". - * * `name:howl` --> The backup's name contains the string "howl". - * * `source_table:prod` - * --> The source_table's name contains the string "prod". - * * `state:CREATING` --> The backup is pending creation. - * * `state:READY` --> The backup is fully created and ready for use. - * * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` - * --> The backup name contains the string "howl" and start_time - * of the backup is before 2018-03-28T14:50:00Z. - * * `size_bytes > 10000000000` --> The backup's size is greater than 10GB - * @type string $order_by - * An expression for specifying the sort order of the results of the request. - * The string value should specify one or more fields in - * [Backup][google.bigtable.admin.v2.Backup]. The full syntax is described at - * https://aip.dev/132#ordering. - * Fields supported are: - * * name - * * source_table - * * expire_time - * * start_time - * * end_time - * * size_bytes - * * state - * For example, "start_time". The default sorting order is ascending. - * To specify descending order for the field, a suffix " desc" should - * be appended to the field name. For example, "start_time desc". - * Redundant space characters in the syntax are insigificant. - * If order_by is empty, results will be sorted by `start_time` in descending - * order starting from the most recently created backup. - * @type int $page_size - * Number of backups to be returned in the response. If 0 or - * less, defaults to the server's maximum allowed page size. - * @type string $page_token - * If non-empty, `page_token` should contain a - * [next_page_token][google.bigtable.admin.v2.ListBackupsResponse.next_page_token] - * from a previous - * [ListBackupsResponse][google.bigtable.admin.v2.ListBackupsResponse] to the - * same `parent` and with the same `filter`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The cluster to list backups from. Values are of the - * form `projects/{project}/instances/{instance}/clusters/{cluster}`. - * Use `{cluster} = '-'` to list backups for all clusters in an instance, - * e.g., `projects/{project}/instances/{instance}/clusters/-`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The cluster to list backups from. Values are of the - * form `projects/{project}/instances/{instance}/clusters/{cluster}`. - * Use `{cluster} = '-'` to list backups for all clusters in an instance, - * e.g., `projects/{project}/instances/{instance}/clusters/-`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * A filter expression that filters backups listed in the response. - * The expression must specify the field name, a comparison operator, - * and the value that you want to use for filtering. The value must be a - * string, a number, or a boolean. The comparison operator must be - * <, >, <=, >=, !=, =, or :. Colon ':' represents a HAS operator which is - * roughly synonymous with equality. Filter rules are case insensitive. - * The fields eligible for filtering are: - * * `name` - * * `source_table` - * * `state` - * * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `size_bytes` - * To filter on multiple expressions, provide each separate expression within - * parentheses. By default, each expression is an AND expression. However, - * you can include AND, OR, and NOT expressions explicitly. - * Some examples of using filters are: - * * `name:"exact"` --> The backup's name is the string "exact". - * * `name:howl` --> The backup's name contains the string "howl". - * * `source_table:prod` - * --> The source_table's name contains the string "prod". - * * `state:CREATING` --> The backup is pending creation. - * * `state:READY` --> The backup is fully created and ready for use. - * * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` - * --> The backup name contains the string "howl" and start_time - * of the backup is before 2018-03-28T14:50:00Z. - * * `size_bytes > 10000000000` --> The backup's size is greater than 10GB - * - * Generated from protobuf field string filter = 2; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * A filter expression that filters backups listed in the response. - * The expression must specify the field name, a comparison operator, - * and the value that you want to use for filtering. The value must be a - * string, a number, or a boolean. The comparison operator must be - * <, >, <=, >=, !=, =, or :. Colon ':' represents a HAS operator which is - * roughly synonymous with equality. Filter rules are case insensitive. - * The fields eligible for filtering are: - * * `name` - * * `source_table` - * * `state` - * * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `size_bytes` - * To filter on multiple expressions, provide each separate expression within - * parentheses. By default, each expression is an AND expression. However, - * you can include AND, OR, and NOT expressions explicitly. - * Some examples of using filters are: - * * `name:"exact"` --> The backup's name is the string "exact". - * * `name:howl` --> The backup's name contains the string "howl". - * * `source_table:prod` - * --> The source_table's name contains the string "prod". - * * `state:CREATING` --> The backup is pending creation. - * * `state:READY` --> The backup is fully created and ready for use. - * * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` - * --> The backup name contains the string "howl" and start_time - * of the backup is before 2018-03-28T14:50:00Z. - * * `size_bytes > 10000000000` --> The backup's size is greater than 10GB - * - * Generated from protobuf field string filter = 2; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * An expression for specifying the sort order of the results of the request. - * The string value should specify one or more fields in - * [Backup][google.bigtable.admin.v2.Backup]. The full syntax is described at - * https://aip.dev/132#ordering. - * Fields supported are: - * * name - * * source_table - * * expire_time - * * start_time - * * end_time - * * size_bytes - * * state - * For example, "start_time". The default sorting order is ascending. - * To specify descending order for the field, a suffix " desc" should - * be appended to the field name. For example, "start_time desc". - * Redundant space characters in the syntax are insigificant. - * If order_by is empty, results will be sorted by `start_time` in descending - * order starting from the most recently created backup. - * - * Generated from protobuf field string order_by = 3; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * An expression for specifying the sort order of the results of the request. - * The string value should specify one or more fields in - * [Backup][google.bigtable.admin.v2.Backup]. The full syntax is described at - * https://aip.dev/132#ordering. - * Fields supported are: - * * name - * * source_table - * * expire_time - * * start_time - * * end_time - * * size_bytes - * * state - * For example, "start_time". The default sorting order is ascending. - * To specify descending order for the field, a suffix " desc" should - * be appended to the field name. For example, "start_time desc". - * Redundant space characters in the syntax are insigificant. - * If order_by is empty, results will be sorted by `start_time` in descending - * order starting from the most recently created backup. - * - * Generated from protobuf field string order_by = 3; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Number of backups to be returned in the response. If 0 or - * less, defaults to the server's maximum allowed page size. - * - * Generated from protobuf field int32 page_size = 4; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Number of backups to be returned in the response. If 0 or - * less, defaults to the server's maximum allowed page size. - * - * Generated from protobuf field int32 page_size = 4; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * If non-empty, `page_token` should contain a - * [next_page_token][google.bigtable.admin.v2.ListBackupsResponse.next_page_token] - * from a previous - * [ListBackupsResponse][google.bigtable.admin.v2.ListBackupsResponse] to the - * same `parent` and with the same `filter`. - * - * Generated from protobuf field string page_token = 5; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * If non-empty, `page_token` should contain a - * [next_page_token][google.bigtable.admin.v2.ListBackupsResponse.next_page_token] - * from a previous - * [ListBackupsResponse][google.bigtable.admin.v2.ListBackupsResponse] to the - * same `parent` and with the same `filter`. - * - * Generated from protobuf field string page_token = 5; - * @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/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListBackupsResponse.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListBackupsResponse.php deleted file mode 100644 index 8f1bb0929254..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListBackupsResponse.php +++ /dev/null @@ -1,110 +0,0 @@ -google.bigtable.admin.v2.ListBackupsResponse - */ -class ListBackupsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of matching backups. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.Backup backups = 1; - */ - private $backups; - /** - * `next_page_token` can be sent in a subsequent - * [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups] call - * to fetch more of the matching backups. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\Backup[] $backups - * The list of matching backups. - * @type string $next_page_token - * `next_page_token` can be sent in a subsequent - * [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups] call - * to fetch more of the matching backups. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The list of matching backups. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.Backup backups = 1; - * @return RepeatedField<\Google\Cloud\Bigtable\Admin\V2\Backup> - */ - public function getBackups() - { - return $this->backups; - } - - /** - * The list of matching backups. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.Backup backups = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\Backup[] $var - * @return $this - */ - public function setBackups($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\Backup::class); - $this->backups = $arr; - - return $this; - } - - /** - * `next_page_token` can be sent in a subsequent - * [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups] call - * to fetch more of the matching backups. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * `next_page_token` can be sent in a subsequent - * [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups] call - * to fetch more of the matching backups. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListClustersRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListClustersRequest.php deleted file mode 100644 index ce37dfa00e0c..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListClustersRequest.php +++ /dev/null @@ -1,135 +0,0 @@ -google.bigtable.admin.v2.ListClustersRequest - */ -class ListClustersRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the instance for which a list of clusters is - * requested. Values are of the form - * `projects/{project}/instances/{instance}`. Use `{instance} = '-'` to list - * Clusters for all Instances in a project, e.g., - * `projects/myproject/instances/-`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * DEPRECATED: This field is unused and ignored. - * - * Generated from protobuf field string page_token = 2; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The unique name of the instance for which a list of clusters is - * requested. Values are of the form - * `projects/{project}/instances/{instance}`. Use `{instance} = '-'` to list - * Clusters for all Instances in a project, e.g., - * `projects/myproject/instances/-`. Please see - * {@see BigtableInstanceAdminClient::instanceName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\Admin\V2\ListClustersRequest - * - * @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. The unique name of the instance for which a list of clusters is - * requested. Values are of the form - * `projects/{project}/instances/{instance}`. Use `{instance} = '-'` to list - * Clusters for all Instances in a project, e.g., - * `projects/myproject/instances/-`. - * @type string $page_token - * DEPRECATED: This field is unused and ignored. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the instance for which a list of clusters is - * requested. Values are of the form - * `projects/{project}/instances/{instance}`. Use `{instance} = '-'` to list - * Clusters for all Instances in a project, e.g., - * `projects/myproject/instances/-`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The unique name of the instance for which a list of clusters is - * requested. Values are of the form - * `projects/{project}/instances/{instance}`. Use `{instance} = '-'` to list - * Clusters for all Instances in a project, e.g., - * `projects/myproject/instances/-`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * DEPRECATED: This field is unused and ignored. - * - * Generated from protobuf field string page_token = 2; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * DEPRECATED: This field is unused and ignored. - * - * Generated from protobuf field string page_token = 2; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListClustersResponse.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListClustersResponse.php deleted file mode 100644 index 22820a8317a2..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListClustersResponse.php +++ /dev/null @@ -1,151 +0,0 @@ -google.bigtable.admin.v2.ListClustersResponse - */ -class ListClustersResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of requested clusters. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.Cluster clusters = 1; - */ - private $clusters; - /** - * Locations from which Cluster information could not be retrieved, - * due to an outage or some other transient condition. - * Clusters from these locations may be missing from `clusters`, - * or may only have partial information returned. - * Values are of the form `projects//locations/` - * - * Generated from protobuf field repeated string failed_locations = 2; - */ - private $failed_locations; - /** - * DEPRECATED: This field is unused and ignored. - * - * Generated from protobuf field string next_page_token = 3; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\Cluster[] $clusters - * The list of requested clusters. - * @type string[] $failed_locations - * Locations from which Cluster information could not be retrieved, - * due to an outage or some other transient condition. - * Clusters from these locations may be missing from `clusters`, - * or may only have partial information returned. - * Values are of the form `projects//locations/` - * @type string $next_page_token - * DEPRECATED: This field is unused and ignored. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The list of requested clusters. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.Cluster clusters = 1; - * @return RepeatedField<\Google\Cloud\Bigtable\Admin\V2\Cluster> - */ - public function getClusters() - { - return $this->clusters; - } - - /** - * The list of requested clusters. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.Cluster clusters = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\Cluster[] $var - * @return $this - */ - public function setClusters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\Cluster::class); - $this->clusters = $arr; - - return $this; - } - - /** - * Locations from which Cluster information could not be retrieved, - * due to an outage or some other transient condition. - * Clusters from these locations may be missing from `clusters`, - * or may only have partial information returned. - * Values are of the form `projects//locations/` - * - * Generated from protobuf field repeated string failed_locations = 2; - * @return RepeatedField - */ - public function getFailedLocations() - { - return $this->failed_locations; - } - - /** - * Locations from which Cluster information could not be retrieved, - * due to an outage or some other transient condition. - * Clusters from these locations may be missing from `clusters`, - * or may only have partial information returned. - * Values are of the form `projects//locations/` - * - * Generated from protobuf field repeated string failed_locations = 2; - * @param string[] $var - * @return $this - */ - public function setFailedLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->failed_locations = $arr; - - return $this; - } - - /** - * DEPRECATED: This field is unused and ignored. - * - * Generated from protobuf field string next_page_token = 3; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * DEPRECATED: This field is unused and ignored. - * - * Generated from protobuf field string next_page_token = 3; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListHotTabletsRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListHotTabletsRequest.php deleted file mode 100644 index 9ef12b38a811..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListHotTabletsRequest.php +++ /dev/null @@ -1,291 +0,0 @@ -google.bigtable.admin.v2.ListHotTabletsRequest - */ -class ListHotTabletsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The cluster name to list hot tablets. - * Value is in the following form: - * `projects/{project}/instances/{instance}/clusters/{cluster}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The start time to list hot tablets. The hot tablets in the response will - * have start times between the requested start time and end time. Start time - * defaults to Now if it is unset, and end time defaults to Now - 24 hours if - * it is unset. The start time should be less than the end time, and the - * maximum allowed time range between start time and end time is 48 hours. - * Start time and end time should have values between Now and Now - 14 days. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - */ - protected $start_time = null; - /** - * The end time to list hot tablets. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; - */ - protected $end_time = null; - /** - * Maximum number of results per page. - * A page_size that is empty or zero lets the server choose the number of - * items to return. A page_size which is strictly positive will return at most - * that many items. A negative page_size will cause an error. - * Following the first request, subsequent paginated calls do not need a - * page_size field. If a page_size is set in subsequent calls, it must match - * the page_size given in the first request. - * - * Generated from protobuf field int32 page_size = 4; - */ - protected $page_size = 0; - /** - * The value of `next_page_token` returned by a previous call. - * - * Generated from protobuf field string page_token = 5; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The cluster name to list hot tablets. - * Value is in the following form: - * `projects/{project}/instances/{instance}/clusters/{cluster}`. Please see - * {@see BigtableInstanceAdminClient::clusterName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\Admin\V2\ListHotTabletsRequest - * - * @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. The cluster name to list hot tablets. - * Value is in the following form: - * `projects/{project}/instances/{instance}/clusters/{cluster}`. - * @type \Google\Protobuf\Timestamp $start_time - * The start time to list hot tablets. The hot tablets in the response will - * have start times between the requested start time and end time. Start time - * defaults to Now if it is unset, and end time defaults to Now - 24 hours if - * it is unset. The start time should be less than the end time, and the - * maximum allowed time range between start time and end time is 48 hours. - * Start time and end time should have values between Now and Now - 14 days. - * @type \Google\Protobuf\Timestamp $end_time - * The end time to list hot tablets. - * @type int $page_size - * Maximum number of results per page. - * A page_size that is empty or zero lets the server choose the number of - * items to return. A page_size which is strictly positive will return at most - * that many items. A negative page_size will cause an error. - * Following the first request, subsequent paginated calls do not need a - * page_size field. If a page_size is set in subsequent calls, it must match - * the page_size given in the first request. - * @type string $page_token - * The value of `next_page_token` returned by a previous call. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The cluster name to list hot tablets. - * Value is in the following form: - * `projects/{project}/instances/{instance}/clusters/{cluster}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The cluster name to list hot tablets. - * Value is in the following form: - * `projects/{project}/instances/{instance}/clusters/{cluster}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The start time to list hot tablets. The hot tablets in the response will - * have start times between the requested start time and end time. Start time - * defaults to Now if it is unset, and end time defaults to Now - 24 hours if - * it is unset. The start time should be less than the end time, and the - * maximum allowed time range between start time and end time is 48 hours. - * Start time and end time should have values between Now and Now - 14 days. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - * @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 start time to list hot tablets. The hot tablets in the response will - * have start times between the requested start time and end time. Start time - * defaults to Now if it is unset, and end time defaults to Now - 24 hours if - * it is unset. The start time should be less than the end time, and the - * maximum allowed time range between start time and end time is 48 hours. - * Start time and end time should have values between Now and Now - 14 days. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - * @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 end time to list hot tablets. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; - * @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 end time to list hot tablets. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Maximum number of results per page. - * A page_size that is empty or zero lets the server choose the number of - * items to return. A page_size which is strictly positive will return at most - * that many items. A negative page_size will cause an error. - * Following the first request, subsequent paginated calls do not need a - * page_size field. If a page_size is set in subsequent calls, it must match - * the page_size given in the first request. - * - * Generated from protobuf field int32 page_size = 4; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Maximum number of results per page. - * A page_size that is empty or zero lets the server choose the number of - * items to return. A page_size which is strictly positive will return at most - * that many items. A negative page_size will cause an error. - * Following the first request, subsequent paginated calls do not need a - * page_size field. If a page_size is set in subsequent calls, it must match - * the page_size given in the first request. - * - * Generated from protobuf field int32 page_size = 4; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * The value of `next_page_token` returned by a previous call. - * - * Generated from protobuf field string page_token = 5; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The value of `next_page_token` returned by a previous call. - * - * Generated from protobuf field string page_token = 5; - * @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/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListHotTabletsResponse.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListHotTabletsResponse.php deleted file mode 100644 index 5dcee9d36b53..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListHotTabletsResponse.php +++ /dev/null @@ -1,125 +0,0 @@ -google.bigtable.admin.v2.ListHotTabletsResponse - */ -class ListHotTabletsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of hot tablets in the tables of the requested cluster that fall - * within the requested time range. Hot tablets are ordered by node cpu usage - * percent. If there are multiple hot tablets that correspond to the same - * tablet within a 15-minute interval, only the hot tablet with the highest - * node cpu usage will be included in the response. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.HotTablet hot_tablets = 1; - */ - private $hot_tablets; - /** - * Set if not all hot tablets could be returned in a single response. - * Pass this value to `page_token` in another request to get the next - * page of results. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\HotTablet[] $hot_tablets - * List of hot tablets in the tables of the requested cluster that fall - * within the requested time range. Hot tablets are ordered by node cpu usage - * percent. If there are multiple hot tablets that correspond to the same - * tablet within a 15-minute interval, only the hot tablet with the highest - * node cpu usage will be included in the response. - * @type string $next_page_token - * Set if not all hot tablets could be returned in a single response. - * Pass this value to `page_token` in another request to get the next - * page of results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * List of hot tablets in the tables of the requested cluster that fall - * within the requested time range. Hot tablets are ordered by node cpu usage - * percent. If there are multiple hot tablets that correspond to the same - * tablet within a 15-minute interval, only the hot tablet with the highest - * node cpu usage will be included in the response. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.HotTablet hot_tablets = 1; - * @return RepeatedField<\Google\Cloud\Bigtable\Admin\V2\HotTablet> - */ - public function getHotTablets() - { - return $this->hot_tablets; - } - - /** - * List of hot tablets in the tables of the requested cluster that fall - * within the requested time range. Hot tablets are ordered by node cpu usage - * percent. If there are multiple hot tablets that correspond to the same - * tablet within a 15-minute interval, only the hot tablet with the highest - * node cpu usage will be included in the response. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.HotTablet hot_tablets = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\HotTablet[] $var - * @return $this - */ - public function setHotTablets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\HotTablet::class); - $this->hot_tablets = $arr; - - return $this; - } - - /** - * Set if not all hot tablets could be returned in a single response. - * Pass this value to `page_token` in another request to get the next - * page of results. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Set if not all hot tablets could be returned in a single response. - * Pass this value to `page_token` in another request to get the next - * page of results. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListInstancesRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListInstancesRequest.php deleted file mode 100644 index 45ef9cd53fa6..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListInstancesRequest.php +++ /dev/null @@ -1,120 +0,0 @@ -google.bigtable.admin.v2.ListInstancesRequest - */ -class ListInstancesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the project for which a list of instances is - * requested. Values are of the form `projects/{project}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * DEPRECATED: This field is unused and ignored. - * - * Generated from protobuf field string page_token = 2; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The unique name of the project for which a list of instances is - * requested. Values are of the form `projects/{project}`. Please see - * {@see BigtableInstanceAdminClient::projectName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\Admin\V2\ListInstancesRequest - * - * @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. The unique name of the project for which a list of instances is - * requested. Values are of the form `projects/{project}`. - * @type string $page_token - * DEPRECATED: This field is unused and ignored. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the project for which a list of instances is - * requested. Values are of the form `projects/{project}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The unique name of the project for which a list of instances is - * requested. Values are of the form `projects/{project}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * DEPRECATED: This field is unused and ignored. - * - * Generated from protobuf field string page_token = 2; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * DEPRECATED: This field is unused and ignored. - * - * Generated from protobuf field string page_token = 2; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListInstancesResponse.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListInstancesResponse.php deleted file mode 100644 index dfdc3cab1ffe..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListInstancesResponse.php +++ /dev/null @@ -1,155 +0,0 @@ -google.bigtable.admin.v2.ListInstancesResponse - */ -class ListInstancesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of requested instances. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.Instance instances = 1; - */ - private $instances; - /** - * Locations from which Instance information could not be retrieved, - * due to an outage or some other transient condition. - * Instances whose Clusters are all in one of the failed locations - * may be missing from `instances`, and Instances with at least one - * Cluster in a failed location may only have partial information returned. - * Values are of the form `projects//locations/` - * - * Generated from protobuf field repeated string failed_locations = 2; - */ - private $failed_locations; - /** - * DEPRECATED: This field is unused and ignored. - * - * Generated from protobuf field string next_page_token = 3; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\Instance[] $instances - * The list of requested instances. - * @type string[] $failed_locations - * Locations from which Instance information could not be retrieved, - * due to an outage or some other transient condition. - * Instances whose Clusters are all in one of the failed locations - * may be missing from `instances`, and Instances with at least one - * Cluster in a failed location may only have partial information returned. - * Values are of the form `projects//locations/` - * @type string $next_page_token - * DEPRECATED: This field is unused and ignored. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The list of requested instances. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.Instance instances = 1; - * @return RepeatedField<\Google\Cloud\Bigtable\Admin\V2\Instance> - */ - public function getInstances() - { - return $this->instances; - } - - /** - * The list of requested instances. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.Instance instances = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\Instance[] $var - * @return $this - */ - public function setInstances($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\Instance::class); - $this->instances = $arr; - - return $this; - } - - /** - * Locations from which Instance information could not be retrieved, - * due to an outage or some other transient condition. - * Instances whose Clusters are all in one of the failed locations - * may be missing from `instances`, and Instances with at least one - * Cluster in a failed location may only have partial information returned. - * Values are of the form `projects//locations/` - * - * Generated from protobuf field repeated string failed_locations = 2; - * @return RepeatedField - */ - public function getFailedLocations() - { - return $this->failed_locations; - } - - /** - * Locations from which Instance information could not be retrieved, - * due to an outage or some other transient condition. - * Instances whose Clusters are all in one of the failed locations - * may be missing from `instances`, and Instances with at least one - * Cluster in a failed location may only have partial information returned. - * Values are of the form `projects//locations/` - * - * Generated from protobuf field repeated string failed_locations = 2; - * @param string[] $var - * @return $this - */ - public function setFailedLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->failed_locations = $arr; - - return $this; - } - - /** - * DEPRECATED: This field is unused and ignored. - * - * Generated from protobuf field string next_page_token = 3; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * DEPRECATED: This field is unused and ignored. - * - * Generated from protobuf field string next_page_token = 3; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListLogicalViewsRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListLogicalViewsRequest.php deleted file mode 100644 index f4bf5a310f50..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListLogicalViewsRequest.php +++ /dev/null @@ -1,175 +0,0 @@ -google.bigtable.admin.v2.ListLogicalViewsRequest - */ -class ListLogicalViewsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the instance for which the list of logical - * views is requested. Values are of the form - * `projects/{project}/instances/{instance}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of logical views to return. The service may - * return fewer than this value - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListLogicalViews` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListLogicalViews` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The unique name of the instance for which the list of logical - * views is requested. Values are of the form - * `projects/{project}/instances/{instance}`. Please see - * {@see BigtableInstanceAdminClient::instanceName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\Admin\V2\ListLogicalViewsRequest - * - * @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. The unique name of the instance for which the list of logical - * views is requested. Values are of the form - * `projects/{project}/instances/{instance}`. - * @type int $page_size - * Optional. The maximum number of logical views to return. The service may - * return fewer than this value - * @type string $page_token - * Optional. A page token, received from a previous `ListLogicalViews` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListLogicalViews` must - * match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the instance for which the list of logical - * views is requested. Values are of the form - * `projects/{project}/instances/{instance}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The unique name of the instance for which the list of logical - * views is requested. Values are of the form - * `projects/{project}/instances/{instance}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of logical views to return. The service may - * return fewer than this value - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of logical views to return. The service may - * return fewer than this value - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListLogicalViews` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListLogicalViews` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListLogicalViews` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListLogicalViews` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListLogicalViewsResponse.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListLogicalViewsResponse.php deleted file mode 100644 index 70a363bfd0a9..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListLogicalViewsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.bigtable.admin.v2.ListLogicalViewsResponse - */ -class ListLogicalViewsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of requested logical views. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.LogicalView logical_views = 1; - */ - private $logical_views; - /** - * A token, which 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 = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\LogicalView[] $logical_views - * The list of requested logical views. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The list of requested logical views. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.LogicalView logical_views = 1; - * @return RepeatedField<\Google\Cloud\Bigtable\Admin\V2\LogicalView> - */ - public function getLogicalViews() - { - return $this->logical_views; - } - - /** - * The list of requested logical views. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.LogicalView logical_views = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\LogicalView[] $var - * @return $this - */ - public function setLogicalViews($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\LogicalView::class); - $this->logical_views = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which 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; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListMaterializedViewsRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListMaterializedViewsRequest.php deleted file mode 100644 index 341056cfb7d0..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListMaterializedViewsRequest.php +++ /dev/null @@ -1,175 +0,0 @@ -google.bigtable.admin.v2.ListMaterializedViewsRequest - */ -class ListMaterializedViewsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the instance for which the list of - * materialized views is requested. Values are of the form - * `projects/{project}/instances/{instance}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of materialized views to return. The service - * may return fewer than this value - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListMaterializedViews` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListMaterializedViews` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The unique name of the instance for which the list of - * materialized views is requested. Values are of the form - * `projects/{project}/instances/{instance}`. Please see - * {@see BigtableInstanceAdminClient::instanceName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\Admin\V2\ListMaterializedViewsRequest - * - * @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. The unique name of the instance for which the list of - * materialized views is requested. Values are of the form - * `projects/{project}/instances/{instance}`. - * @type int $page_size - * Optional. The maximum number of materialized views to return. The service - * may return fewer than this value - * @type string $page_token - * Optional. A page token, received from a previous `ListMaterializedViews` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListMaterializedViews` - * must match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the instance for which the list of - * materialized views is requested. Values are of the form - * `projects/{project}/instances/{instance}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The unique name of the instance for which the list of - * materialized views is requested. Values are of the form - * `projects/{project}/instances/{instance}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of materialized views to return. The service - * may return fewer than this value - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of materialized views to return. The service - * may return fewer than this value - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListMaterializedViews` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListMaterializedViews` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListMaterializedViews` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListMaterializedViews` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListMaterializedViewsResponse.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListMaterializedViewsResponse.php deleted file mode 100644 index d368245f002d..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListMaterializedViewsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.bigtable.admin.v2.ListMaterializedViewsResponse - */ -class ListMaterializedViewsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of requested materialized views. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.MaterializedView materialized_views = 1; - */ - private $materialized_views; - /** - * A token, which 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 = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\MaterializedView[] $materialized_views - * The list of requested materialized views. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The list of requested materialized views. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.MaterializedView materialized_views = 1; - * @return RepeatedField<\Google\Cloud\Bigtable\Admin\V2\MaterializedView> - */ - public function getMaterializedViews() - { - return $this->materialized_views; - } - - /** - * The list of requested materialized views. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.MaterializedView materialized_views = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\MaterializedView[] $var - * @return $this - */ - public function setMaterializedViews($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\MaterializedView::class); - $this->materialized_views = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which 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; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListSchemaBundlesRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListSchemaBundlesRequest.php deleted file mode 100644 index 00eb8c83d2d1..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListSchemaBundlesRequest.php +++ /dev/null @@ -1,180 +0,0 @@ -google.bigtable.admin.v2.ListSchemaBundlesRequest - */ -class ListSchemaBundlesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of schema bundles. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of schema bundles to return. If the value is positive, - * the server may return at most this value. If unspecified, the server will - * return the maximum allowed page size. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListSchemaBundles` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListSchemaBundles` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The parent, which owns this collection of schema bundles. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. Please see - * {@see BigtableTableAdminClient::tableName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\Admin\V2\ListSchemaBundlesRequest - * - * @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. The parent, which owns this collection of schema bundles. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * @type int $page_size - * The maximum number of schema bundles to return. If the value is positive, - * the server may return at most this value. If unspecified, the server will - * return the maximum allowed page size. - * @type string $page_token - * A page token, received from a previous `ListSchemaBundles` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListSchemaBundles` must - * match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of schema bundles. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent, which owns this collection of schema bundles. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of schema bundles to return. If the value is positive, - * the server may return at most this value. If unspecified, the server will - * return the maximum allowed page size. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of schema bundles to return. If the value is positive, - * the server may return at most this value. If unspecified, the server will - * return the maximum allowed page size. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListSchemaBundles` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListSchemaBundles` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListSchemaBundles` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListSchemaBundles` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListSchemaBundlesResponse.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListSchemaBundlesResponse.php deleted file mode 100644 index f2b0c9ba0bc8..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListSchemaBundlesResponse.php +++ /dev/null @@ -1,106 +0,0 @@ -google.bigtable.admin.v2.ListSchemaBundlesResponse - */ -class ListSchemaBundlesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The schema bundles from the specified table. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.SchemaBundle schema_bundles = 1; - */ - private $schema_bundles; - /** - * A token, which 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 = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\SchemaBundle[] $schema_bundles - * The schema bundles from the specified table. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The schema bundles from the specified table. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.SchemaBundle schema_bundles = 1; - * @return RepeatedField<\Google\Cloud\Bigtable\Admin\V2\SchemaBundle> - */ - public function getSchemaBundles() - { - return $this->schema_bundles; - } - - /** - * The schema bundles from the specified table. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.SchemaBundle schema_bundles = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\SchemaBundle[] $var - * @return $this - */ - public function setSchemaBundles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\SchemaBundle::class); - $this->schema_bundles = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which 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; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListSnapshotsRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListSnapshotsRequest.php deleted file mode 100644 index 31c292781dba..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListSnapshotsRequest.php +++ /dev/null @@ -1,178 +0,0 @@ -google.bigtable.admin.v2.ListSnapshotsRequest - */ -class ListSnapshotsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the cluster for which snapshots should be - * listed. Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}`. - * Use `{cluster} = '-'` to list snapshots for all clusters in an instance, - * e.g., `projects/{project}/instances/{instance}/clusters/-`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of snapshots to return per page. - * CURRENTLY UNIMPLEMENTED AND IGNORED. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * The value of `next_page_token` returned by a previous call. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The unique name of the cluster for which snapshots should be - * listed. Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}`. - * Use `{cluster} = '-'` to list snapshots for all clusters in an instance, - * e.g., `projects/{project}/instances/{instance}/clusters/-`. Please see - * {@see BigtableTableAdminClient::clusterName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\Admin\V2\ListSnapshotsRequest - * - * @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. The unique name of the cluster for which snapshots should be - * listed. Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}`. - * Use `{cluster} = '-'` to list snapshots for all clusters in an instance, - * e.g., `projects/{project}/instances/{instance}/clusters/-`. - * @type int $page_size - * The maximum number of snapshots to return per page. - * CURRENTLY UNIMPLEMENTED AND IGNORED. - * @type string $page_token - * The value of `next_page_token` returned by a previous call. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the cluster for which snapshots should be - * listed. Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}`. - * Use `{cluster} = '-'` to list snapshots for all clusters in an instance, - * e.g., `projects/{project}/instances/{instance}/clusters/-`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The unique name of the cluster for which snapshots should be - * listed. Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}`. - * Use `{cluster} = '-'` to list snapshots for all clusters in an instance, - * e.g., `projects/{project}/instances/{instance}/clusters/-`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of snapshots to return per page. - * CURRENTLY UNIMPLEMENTED AND IGNORED. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of snapshots to return per page. - * CURRENTLY UNIMPLEMENTED AND IGNORED. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * The value of `next_page_token` returned by a previous call. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The value of `next_page_token` returned by a previous call. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListSnapshotsResponse.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListSnapshotsResponse.php deleted file mode 100644 index bdad986caa78..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListSnapshotsResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -google.bigtable.admin.v2.ListSnapshotsResponse - */ -class ListSnapshotsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The snapshots present in the requested cluster. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.Snapshot snapshots = 1; - */ - private $snapshots; - /** - * Set if not all snapshots could be returned in a single response. - * Pass this value to `page_token` in another request to get the next - * page of results. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\Snapshot[] $snapshots - * The snapshots present in the requested cluster. - * @type string $next_page_token - * Set if not all snapshots could be returned in a single response. - * Pass this value to `page_token` in another request to get the next - * page of results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The snapshots present in the requested cluster. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.Snapshot snapshots = 1; - * @return RepeatedField<\Google\Cloud\Bigtable\Admin\V2\Snapshot> - */ - public function getSnapshots() - { - return $this->snapshots; - } - - /** - * The snapshots present in the requested cluster. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.Snapshot snapshots = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\Snapshot[] $var - * @return $this - */ - public function setSnapshots($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\Snapshot::class); - $this->snapshots = $arr; - - return $this; - } - - /** - * Set if not all snapshots could be returned in a single response. - * Pass this value to `page_token` in another request to get the next - * page of results. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Set if not all snapshots could be returned in a single response. - * Pass this value to `page_token` in another request to get the next - * page of results. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListTablesRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListTablesRequest.php deleted file mode 100644 index 875f87394fee..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListTablesRequest.php +++ /dev/null @@ -1,217 +0,0 @@ -google.bigtable.admin.v2.ListTablesRequest - */ -class ListTablesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the instance for which tables should be - * listed. Values are of the form `projects/{project}/instances/{instance}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The view to be applied to the returned tables' fields. - * NAME_ONLY view (default) and REPLICATION_VIEW are supported. - * - * Generated from protobuf field .google.bigtable.admin.v2.Table.View view = 2; - */ - protected $view = 0; - /** - * Maximum number of results per page. - * A page_size of zero lets the server choose the number of items to return. - * A page_size which is strictly positive will return at most that many items. - * A negative page_size will cause an error. - * Following the first request, subsequent paginated calls are not required - * to pass a page_size. If a page_size is set in subsequent calls, it must - * match the page_size given in the first request. - * - * Generated from protobuf field int32 page_size = 4; - */ - protected $page_size = 0; - /** - * The value of `next_page_token` returned by a previous call. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The unique name of the instance for which tables should be - * listed. Values are of the form `projects/{project}/instances/{instance}`. Please see - * {@see BigtableTableAdminClient::instanceName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\Admin\V2\ListTablesRequest - * - * @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. The unique name of the instance for which tables should be - * listed. Values are of the form `projects/{project}/instances/{instance}`. - * @type int $view - * The view to be applied to the returned tables' fields. - * NAME_ONLY view (default) and REPLICATION_VIEW are supported. - * @type int $page_size - * Maximum number of results per page. - * A page_size of zero lets the server choose the number of items to return. - * A page_size which is strictly positive will return at most that many items. - * A negative page_size will cause an error. - * Following the first request, subsequent paginated calls are not required - * to pass a page_size. If a page_size is set in subsequent calls, it must - * match the page_size given in the first request. - * @type string $page_token - * The value of `next_page_token` returned by a previous call. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the instance for which tables should be - * listed. Values are of the form `projects/{project}/instances/{instance}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The unique name of the instance for which tables should be - * listed. Values are of the form `projects/{project}/instances/{instance}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The view to be applied to the returned tables' fields. - * NAME_ONLY view (default) and REPLICATION_VIEW are supported. - * - * Generated from protobuf field .google.bigtable.admin.v2.Table.View view = 2; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * The view to be applied to the returned tables' fields. - * NAME_ONLY view (default) and REPLICATION_VIEW are supported. - * - * Generated from protobuf field .google.bigtable.admin.v2.Table.View view = 2; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\Table\View::class); - $this->view = $var; - - return $this; - } - - /** - * Maximum number of results per page. - * A page_size of zero lets the server choose the number of items to return. - * A page_size which is strictly positive will return at most that many items. - * A negative page_size will cause an error. - * Following the first request, subsequent paginated calls are not required - * to pass a page_size. If a page_size is set in subsequent calls, it must - * match the page_size given in the first request. - * - * Generated from protobuf field int32 page_size = 4; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Maximum number of results per page. - * A page_size of zero lets the server choose the number of items to return. - * A page_size which is strictly positive will return at most that many items. - * A negative page_size will cause an error. - * Following the first request, subsequent paginated calls are not required - * to pass a page_size. If a page_size is set in subsequent calls, it must - * match the page_size given in the first request. - * - * Generated from protobuf field int32 page_size = 4; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * The value of `next_page_token` returned by a previous call. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The value of `next_page_token` returned by a previous call. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListTablesResponse.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListTablesResponse.php deleted file mode 100644 index c1127dfeb520..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ListTablesResponse.php +++ /dev/null @@ -1,110 +0,0 @@ -google.bigtable.admin.v2.ListTablesResponse - */ -class ListTablesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The tables present in the requested instance. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.Table tables = 1; - */ - private $tables; - /** - * Set if not all tables could be returned in a single response. - * Pass this value to `page_token` in another request to get the next - * page of results. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\Table[] $tables - * The tables present in the requested instance. - * @type string $next_page_token - * Set if not all tables could be returned in a single response. - * Pass this value to `page_token` in another request to get the next - * page of results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The tables present in the requested instance. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.Table tables = 1; - * @return RepeatedField<\Google\Cloud\Bigtable\Admin\V2\Table> - */ - public function getTables() - { - return $this->tables; - } - - /** - * The tables present in the requested instance. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.Table tables = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\Table[] $var - * @return $this - */ - public function setTables($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\Table::class); - $this->tables = $arr; - - return $this; - } - - /** - * Set if not all tables could be returned in a single response. - * Pass this value to `page_token` in another request to get the next - * page of results. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Set if not all tables could be returned in a single response. - * Pass this value to `page_token` in another request to get the next - * page of results. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/LogicalView.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/LogicalView.php deleted file mode 100644 index 5e5b780bfaf6..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/LogicalView.php +++ /dev/null @@ -1,189 +0,0 @@ -google.bigtable.admin.v2.LogicalView - */ -class LogicalView extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The unique name of the logical view. - * Format: - * `projects/{project}/instances/{instance}/logicalViews/{logical_view}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Required. The logical view's select query. - * - * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $query = ''; - /** - * Optional. The etag for this logical view. - * This may be sent on update requests to ensure that the client has an - * up-to-date value before proceeding. The server returns an ABORTED error on - * a mismatched etag. - * - * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - /** - * Optional. Set to true to make the LogicalView protected against deletion. - * - * Generated from protobuf field bool deletion_protection = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $deletion_protection = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The unique name of the logical view. - * Format: - * `projects/{project}/instances/{instance}/logicalViews/{logical_view}` - * @type string $query - * Required. The logical view's select query. - * @type string $etag - * Optional. The etag for this logical view. - * This may be sent on update requests to ensure that the client has an - * up-to-date value before proceeding. The server returns an ABORTED error on - * a mismatched etag. - * @type bool $deletion_protection - * Optional. Set to true to make the LogicalView protected against deletion. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Instance::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The unique name of the logical view. - * Format: - * `projects/{project}/instances/{instance}/logicalViews/{logical_view}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The unique name of the logical view. - * Format: - * `projects/{project}/instances/{instance}/logicalViews/{logical_view}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The logical view's select query. - * - * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getQuery() - { - return $this->query; - } - - /** - * Required. The logical view's select query. - * - * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkString($var, True); - $this->query = $var; - - return $this; - } - - /** - * Optional. The etag for this logical view. - * This may be sent on update requests to ensure that the client has an - * up-to-date value before proceeding. The server returns an ABORTED error on - * a mismatched etag. - * - * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. The etag for this logical view. - * This may be sent on update requests to ensure that the client has an - * up-to-date value before proceeding. The server returns an ABORTED error on - * a mismatched etag. - * - * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Optional. Set to true to make the LogicalView protected against deletion. - * - * Generated from protobuf field bool deletion_protection = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getDeletionProtection() - { - return $this->deletion_protection; - } - - /** - * Optional. Set to true to make the LogicalView protected against deletion. - * - * Generated from protobuf field bool deletion_protection = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setDeletionProtection($var) - { - GPBUtil::checkBool($var); - $this->deletion_protection = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/MaterializedView.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/MaterializedView.php deleted file mode 100644 index 424ccf0c098e..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/MaterializedView.php +++ /dev/null @@ -1,189 +0,0 @@ -google.bigtable.admin.v2.MaterializedView - */ -class MaterializedView extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The unique name of the materialized view. - * Format: - * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Required. Immutable. The materialized view's select query. - * - * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $query = ''; - /** - * Optional. The etag for this materialized view. - * This may be sent on update requests to ensure that the client has an - * up-to-date value before proceeding. The server returns an ABORTED error on - * a mismatched etag. - * - * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - /** - * Set to true to make the MaterializedView protected against deletion. - * - * Generated from protobuf field bool deletion_protection = 6; - */ - protected $deletion_protection = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The unique name of the materialized view. - * Format: - * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}` - * @type string $query - * Required. Immutable. The materialized view's select query. - * @type string $etag - * Optional. The etag for this materialized view. - * This may be sent on update requests to ensure that the client has an - * up-to-date value before proceeding. The server returns an ABORTED error on - * a mismatched etag. - * @type bool $deletion_protection - * Set to true to make the MaterializedView protected against deletion. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Instance::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The unique name of the materialized view. - * Format: - * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The unique name of the materialized view. - * Format: - * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Immutable. The materialized view's select query. - * - * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getQuery() - { - return $this->query; - } - - /** - * Required. Immutable. The materialized view's select query. - * - * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkString($var, True); - $this->query = $var; - - return $this; - } - - /** - * Optional. The etag for this materialized view. - * This may be sent on update requests to ensure that the client has an - * up-to-date value before proceeding. The server returns an ABORTED error on - * a mismatched etag. - * - * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. The etag for this materialized view. - * This may be sent on update requests to ensure that the client has an - * up-to-date value before proceeding. The server returns an ABORTED error on - * a mismatched etag. - * - * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Set to true to make the MaterializedView protected against deletion. - * - * Generated from protobuf field bool deletion_protection = 6; - * @return bool - */ - public function getDeletionProtection() - { - return $this->deletion_protection; - } - - /** - * Set to true to make the MaterializedView protected against deletion. - * - * Generated from protobuf field bool deletion_protection = 6; - * @param bool $var - * @return $this - */ - public function setDeletionProtection($var) - { - GPBUtil::checkBool($var); - $this->deletion_protection = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ModifyColumnFamiliesRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ModifyColumnFamiliesRequest.php deleted file mode 100644 index 45a0468fc18e..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ModifyColumnFamiliesRequest.php +++ /dev/null @@ -1,177 +0,0 @@ -google.bigtable.admin.v2.ModifyColumnFamiliesRequest - */ -class ModifyColumnFamiliesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the table whose families should be modified. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. Modifications to be atomically applied to the specified table's - * families. Entries are applied in order, meaning that earlier modifications - * can be masked by later ones (in the case of repeated updates to the same - * family, for example). - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification modifications = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $modifications; - /** - * Optional. If true, ignore safety checks when modifying the column families. - * - * Generated from protobuf field bool ignore_warnings = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $ignore_warnings = false; - - /** - * @param string $name Required. The unique name of the table whose families should be modified. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. Please see - * {@see BigtableTableAdminClient::tableName()} for help formatting this field. - * @param \Google\Cloud\Bigtable\Admin\V2\ModifyColumnFamiliesRequest\Modification[] $modifications Required. Modifications to be atomically applied to the specified table's - * families. Entries are applied in order, meaning that earlier modifications - * can be masked by later ones (in the case of repeated updates to the same - * family, for example). - * - * @return \Google\Cloud\Bigtable\Admin\V2\ModifyColumnFamiliesRequest - * - * @experimental - */ - public static function build(string $name, array $modifications): self - { - return (new self()) - ->setName($name) - ->setModifications($modifications); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The unique name of the table whose families should be modified. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * @type \Google\Cloud\Bigtable\Admin\V2\ModifyColumnFamiliesRequest\Modification[] $modifications - * Required. Modifications to be atomically applied to the specified table's - * families. Entries are applied in order, meaning that earlier modifications - * can be masked by later ones (in the case of repeated updates to the same - * family, for example). - * @type bool $ignore_warnings - * Optional. If true, ignore safety checks when modifying the column families. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the table whose families should be modified. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The unique name of the table whose families should be modified. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Modifications to be atomically applied to the specified table's - * families. Entries are applied in order, meaning that earlier modifications - * can be masked by later ones (in the case of repeated updates to the same - * family, for example). - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification modifications = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\Bigtable\Admin\V2\ModifyColumnFamiliesRequest\Modification> - */ - public function getModifications() - { - return $this->modifications; - } - - /** - * Required. Modifications to be atomically applied to the specified table's - * families. Entries are applied in order, meaning that earlier modifications - * can be masked by later ones (in the case of repeated updates to the same - * family, for example). - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification modifications = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Bigtable\Admin\V2\ModifyColumnFamiliesRequest\Modification[] $var - * @return $this - */ - public function setModifications($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\ModifyColumnFamiliesRequest\Modification::class); - $this->modifications = $arr; - - return $this; - } - - /** - * Optional. If true, ignore safety checks when modifying the column families. - * - * Generated from protobuf field bool ignore_warnings = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getIgnoreWarnings() - { - return $this->ignore_warnings; - } - - /** - * Optional. If true, ignore safety checks when modifying the column families. - * - * Generated from protobuf field bool ignore_warnings = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setIgnoreWarnings($var) - { - GPBUtil::checkBool($var); - $this->ignore_warnings = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ModifyColumnFamiliesRequest/Modification.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ModifyColumnFamiliesRequest/Modification.php deleted file mode 100644 index 7ff496a85e7b..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ModifyColumnFamiliesRequest/Modification.php +++ /dev/null @@ -1,236 +0,0 @@ -google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification - */ -class Modification extends \Google\Protobuf\Internal\Message -{ - /** - * The ID of the column family to be modified. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Optional. A mask specifying which fields (e.g. `gc_rule`) in the `update` - * mod should be updated, ignored for other modification types. If unset or - * empty, we treat it as updating `gc_rule` to be backward compatible. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - protected $mod; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * The ID of the column family to be modified. - * @type \Google\Cloud\Bigtable\Admin\V2\ColumnFamily $create - * Create a new column family with the specified schema, or fail if - * one already exists with the given ID. - * @type \Google\Cloud\Bigtable\Admin\V2\ColumnFamily $update - * Update an existing column family to the specified schema, or fail - * if no column family exists with the given ID. - * @type bool $drop - * Drop (delete) the column family with the given ID, or fail if no such - * family exists. - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. A mask specifying which fields (e.g. `gc_rule`) in the `update` - * mod should be updated, ignored for other modification types. If unset or - * empty, we treat it as updating `gc_rule` to be backward compatible. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The ID of the column family to be modified. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * The ID of the column family to be modified. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Create a new column family with the specified schema, or fail if - * one already exists with the given ID. - * - * Generated from protobuf field .google.bigtable.admin.v2.ColumnFamily create = 2; - * @return \Google\Cloud\Bigtable\Admin\V2\ColumnFamily|null - */ - public function getCreate() - { - return $this->readOneof(2); - } - - public function hasCreate() - { - return $this->hasOneof(2); - } - - /** - * Create a new column family with the specified schema, or fail if - * one already exists with the given ID. - * - * Generated from protobuf field .google.bigtable.admin.v2.ColumnFamily create = 2; - * @param \Google\Cloud\Bigtable\Admin\V2\ColumnFamily $var - * @return $this - */ - public function setCreate($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\ColumnFamily::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Update an existing column family to the specified schema, or fail - * if no column family exists with the given ID. - * - * Generated from protobuf field .google.bigtable.admin.v2.ColumnFamily update = 3; - * @return \Google\Cloud\Bigtable\Admin\V2\ColumnFamily|null - */ - public function getUpdate() - { - return $this->readOneof(3); - } - - public function hasUpdate() - { - return $this->hasOneof(3); - } - - /** - * Update an existing column family to the specified schema, or fail - * if no column family exists with the given ID. - * - * Generated from protobuf field .google.bigtable.admin.v2.ColumnFamily update = 3; - * @param \Google\Cloud\Bigtable\Admin\V2\ColumnFamily $var - * @return $this - */ - public function setUpdate($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\ColumnFamily::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Drop (delete) the column family with the given ID, or fail if no such - * family exists. - * - * Generated from protobuf field bool drop = 4; - * @return bool - */ - public function getDrop() - { - return $this->readOneof(4); - } - - public function hasDrop() - { - return $this->hasOneof(4); - } - - /** - * Drop (delete) the column family with the given ID, or fail if no such - * family exists. - * - * Generated from protobuf field bool drop = 4; - * @param bool $var - * @return $this - */ - public function setDrop($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Optional. A mask specifying which fields (e.g. `gc_rule`) in the `update` - * mod should be updated, ignored for other modification types. If unset or - * empty, we treat it as updating `gc_rule` to be backward compatible. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Optional. A mask specifying which fields (e.g. `gc_rule`) in the `update` - * mod should be updated, ignored for other modification types. If unset or - * empty, we treat it as updating `gc_rule` to be backward compatible. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * @return string - */ - public function getMod() - { - return $this->whichOneof("mod"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/OperationProgress.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/OperationProgress.php deleted file mode 100644 index 48a295008362..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/OperationProgress.php +++ /dev/null @@ -1,164 +0,0 @@ -google.bigtable.admin.v2.OperationProgress - */ -class OperationProgress extends \Google\Protobuf\Internal\Message -{ - /** - * Percent completion of the operation. - * Values are between 0 and 100 inclusive. - * - * Generated from protobuf field int32 progress_percent = 1; - */ - protected $progress_percent = 0; - /** - * Time the request was received. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - */ - protected $start_time = null; - /** - * If set, the time at which this operation failed or was completed - * successfully. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; - */ - protected $end_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $progress_percent - * Percent completion of the operation. - * Values are between 0 and 100 inclusive. - * @type \Google\Protobuf\Timestamp $start_time - * Time the request was received. - * @type \Google\Protobuf\Timestamp $end_time - * If set, the time at which this operation failed or was completed - * successfully. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Common::initOnce(); - parent::__construct($data); - } - - /** - * Percent completion of the operation. - * Values are between 0 and 100 inclusive. - * - * Generated from protobuf field int32 progress_percent = 1; - * @return int - */ - public function getProgressPercent() - { - return $this->progress_percent; - } - - /** - * Percent completion of the operation. - * Values are between 0 and 100 inclusive. - * - * Generated from protobuf field int32 progress_percent = 1; - * @param int $var - * @return $this - */ - public function setProgressPercent($var) - { - GPBUtil::checkInt32($var); - $this->progress_percent = $var; - - return $this; - } - - /** - * Time the request was received. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Time the request was received. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * If set, the time at which this operation failed or was completed - * successfully. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; - * @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); - } - - /** - * If set, the time at which this operation failed or was completed - * successfully. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/OptimizeRestoredTableMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/OptimizeRestoredTableMetadata.php deleted file mode 100644 index f3a663ffebe4..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/OptimizeRestoredTableMetadata.php +++ /dev/null @@ -1,114 +0,0 @@ -google.bigtable.admin.v2.OptimizeRestoredTableMetadata - */ -class OptimizeRestoredTableMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the restored table being optimized. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The progress of the post-restore optimizations. - * - * Generated from protobuf field .google.bigtable.admin.v2.OperationProgress progress = 2; - */ - protected $progress = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the restored table being optimized. - * @type \Google\Cloud\Bigtable\Admin\V2\OperationProgress $progress - * The progress of the post-restore optimizations. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Name of the restored table being optimized. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the restored table being optimized. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The progress of the post-restore optimizations. - * - * Generated from protobuf field .google.bigtable.admin.v2.OperationProgress progress = 2; - * @return \Google\Cloud\Bigtable\Admin\V2\OperationProgress|null - */ - public function getProgress() - { - return $this->progress; - } - - public function hasProgress() - { - return isset($this->progress); - } - - public function clearProgress() - { - unset($this->progress); - } - - /** - * The progress of the post-restore optimizations. - * - * Generated from protobuf field .google.bigtable.admin.v2.OperationProgress progress = 2; - * @param \Google\Cloud\Bigtable\Admin\V2\OperationProgress $var - * @return $this - */ - public function setProgress($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\OperationProgress::class); - $this->progress = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/PartialUpdateClusterMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/PartialUpdateClusterMetadata.php deleted file mode 100644 index f789f773a9c8..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/PartialUpdateClusterMetadata.php +++ /dev/null @@ -1,165 +0,0 @@ -google.bigtable.admin.v2.PartialUpdateClusterMetadata - */ -class PartialUpdateClusterMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The time at which the original request was received. - * - * Generated from protobuf field .google.protobuf.Timestamp request_time = 1; - */ - protected $request_time = null; - /** - * The time at which the operation failed or was completed successfully. - * - * Generated from protobuf field .google.protobuf.Timestamp finish_time = 2; - */ - protected $finish_time = null; - /** - * The original request for PartialUpdateCluster. - * - * Generated from protobuf field .google.bigtable.admin.v2.PartialUpdateClusterRequest original_request = 3; - */ - protected $original_request = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $request_time - * The time at which the original request was received. - * @type \Google\Protobuf\Timestamp $finish_time - * The time at which the operation failed or was completed successfully. - * @type \Google\Cloud\Bigtable\Admin\V2\PartialUpdateClusterRequest $original_request - * The original request for PartialUpdateCluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The time at which the original request was received. - * - * Generated from protobuf field .google.protobuf.Timestamp request_time = 1; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRequestTime() - { - return $this->request_time; - } - - public function hasRequestTime() - { - return isset($this->request_time); - } - - public function clearRequestTime() - { - unset($this->request_time); - } - - /** - * The time at which the original request was received. - * - * Generated from protobuf field .google.protobuf.Timestamp request_time = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRequestTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->request_time = $var; - - return $this; - } - - /** - * The time at which the operation failed or was completed successfully. - * - * Generated from protobuf field .google.protobuf.Timestamp finish_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getFinishTime() - { - return $this->finish_time; - } - - public function hasFinishTime() - { - return isset($this->finish_time); - } - - public function clearFinishTime() - { - unset($this->finish_time); - } - - /** - * The time at which the operation failed or was completed successfully. - * - * Generated from protobuf field .google.protobuf.Timestamp finish_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setFinishTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->finish_time = $var; - - return $this; - } - - /** - * The original request for PartialUpdateCluster. - * - * Generated from protobuf field .google.bigtable.admin.v2.PartialUpdateClusterRequest original_request = 3; - * @return \Google\Cloud\Bigtable\Admin\V2\PartialUpdateClusterRequest|null - */ - public function getOriginalRequest() - { - return $this->original_request; - } - - public function hasOriginalRequest() - { - return isset($this->original_request); - } - - public function clearOriginalRequest() - { - unset($this->original_request); - } - - /** - * The original request for PartialUpdateCluster. - * - * Generated from protobuf field .google.bigtable.admin.v2.PartialUpdateClusterRequest original_request = 3; - * @param \Google\Cloud\Bigtable\Admin\V2\PartialUpdateClusterRequest $var - * @return $this - */ - public function setOriginalRequest($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\PartialUpdateClusterRequest::class); - $this->original_request = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/PartialUpdateClusterRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/PartialUpdateClusterRequest.php deleted file mode 100644 index 53d6441df8fb..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/PartialUpdateClusterRequest.php +++ /dev/null @@ -1,141 +0,0 @@ -google.bigtable.admin.v2.PartialUpdateClusterRequest - */ -class PartialUpdateClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Cluster which contains the partial updates to be applied, - * subject to the update_mask. - * - * Generated from protobuf field .google.bigtable.admin.v2.Cluster cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $cluster = null; - /** - * Required. The subset of Cluster fields which should be replaced. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\Bigtable\Admin\V2\Cluster $cluster Required. The Cluster which contains the partial updates to be applied, - * subject to the update_mask. - * @param \Google\Protobuf\FieldMask $updateMask Required. The subset of Cluster fields which should be replaced. - * - * @return \Google\Cloud\Bigtable\Admin\V2\PartialUpdateClusterRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Bigtable\Admin\V2\Cluster $cluster, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setCluster($cluster) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\Cluster $cluster - * Required. The Cluster which contains the partial updates to be applied, - * subject to the update_mask. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The subset of Cluster fields which should be replaced. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Cluster which contains the partial updates to be applied, - * subject to the update_mask. - * - * Generated from protobuf field .google.bigtable.admin.v2.Cluster cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Bigtable\Admin\V2\Cluster|null - */ - public function getCluster() - { - return $this->cluster; - } - - public function hasCluster() - { - return isset($this->cluster); - } - - public function clearCluster() - { - unset($this->cluster); - } - - /** - * Required. The Cluster which contains the partial updates to be applied, - * subject to the update_mask. - * - * Generated from protobuf field .google.bigtable.admin.v2.Cluster cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Bigtable\Admin\V2\Cluster $var - * @return $this - */ - public function setCluster($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Cluster::class); - $this->cluster = $var; - - return $this; - } - - /** - * Required. The subset of Cluster fields which should be replaced. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The subset of Cluster fields which should be replaced. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/PartialUpdateInstanceRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/PartialUpdateInstanceRequest.php deleted file mode 100644 index cbfedfdd991b..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/PartialUpdateInstanceRequest.php +++ /dev/null @@ -1,141 +0,0 @@ -google.bigtable.admin.v2.PartialUpdateInstanceRequest - */ -class PartialUpdateInstanceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Instance which will (partially) replace the current value. - * - * Generated from protobuf field .google.bigtable.admin.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $instance = null; - /** - * Required. The subset of Instance fields which should be replaced. - * Must be explicitly set. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\Bigtable\Admin\V2\Instance $instance Required. The Instance which will (partially) replace the current value. - * @param \Google\Protobuf\FieldMask $updateMask Required. The subset of Instance fields which should be replaced. - * Must be explicitly set. - * - * @return \Google\Cloud\Bigtable\Admin\V2\PartialUpdateInstanceRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Bigtable\Admin\V2\Instance $instance, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setInstance($instance) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\Instance $instance - * Required. The Instance which will (partially) replace the current value. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The subset of Instance fields which should be replaced. - * Must be explicitly set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Instance which will (partially) replace the current value. - * - * Generated from protobuf field .google.bigtable.admin.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Bigtable\Admin\V2\Instance|null - */ - public function getInstance() - { - return $this->instance; - } - - public function hasInstance() - { - return isset($this->instance); - } - - public function clearInstance() - { - unset($this->instance); - } - - /** - * Required. The Instance which will (partially) replace the current value. - * - * Generated from protobuf field .google.bigtable.admin.v2.Instance instance = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Bigtable\Admin\V2\Instance $var - * @return $this - */ - public function setInstance($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Instance::class); - $this->instance = $var; - - return $this; - } - - /** - * Required. The subset of Instance fields which should be replaced. - * Must be explicitly set. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The subset of Instance fields which should be replaced. - * Must be explicitly set. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ProtoSchema.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ProtoSchema.php deleted file mode 100644 index 1a0c279fa73c..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/ProtoSchema.php +++ /dev/null @@ -1,123 +0,0 @@ -google.bigtable.admin.v2.ProtoSchema - */ -class ProtoSchema extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Contains a protobuf-serialized - * [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto), - * which could include multiple proto files. - * To generate it, [install](https://grpc.io/docs/protoc-installation/) and - * run `protoc` with - * `--include_imports` and `--descriptor_set_out`. For example, to generate - * for moon/shot/app.proto, run - * ``` - * $protoc --proto_path=/app_path --proto_path=/lib_path \ - * --include_imports \ - * --descriptor_set_out=descriptors.pb \ - * moon/shot/app.proto - * ``` - * For more details, see protobuffer [self - * description](https://developers.google.com/protocol-buffers/docs/techniques#self-description). - * - * Generated from protobuf field bytes proto_descriptors = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $proto_descriptors = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $proto_descriptors - * Required. Contains a protobuf-serialized - * [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto), - * which could include multiple proto files. - * To generate it, [install](https://grpc.io/docs/protoc-installation/) and - * run `protoc` with - * `--include_imports` and `--descriptor_set_out`. For example, to generate - * for moon/shot/app.proto, run - * ``` - * $protoc --proto_path=/app_path --proto_path=/lib_path \ - * --include_imports \ - * --descriptor_set_out=descriptors.pb \ - * moon/shot/app.proto - * ``` - * For more details, see protobuffer [self - * description](https://developers.google.com/protocol-buffers/docs/techniques#self-description). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); - parent::__construct($data); - } - - /** - * Required. Contains a protobuf-serialized - * [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto), - * which could include multiple proto files. - * To generate it, [install](https://grpc.io/docs/protoc-installation/) and - * run `protoc` with - * `--include_imports` and `--descriptor_set_out`. For example, to generate - * for moon/shot/app.proto, run - * ``` - * $protoc --proto_path=/app_path --proto_path=/lib_path \ - * --include_imports \ - * --descriptor_set_out=descriptors.pb \ - * moon/shot/app.proto - * ``` - * For more details, see protobuffer [self - * description](https://developers.google.com/protocol-buffers/docs/techniques#self-description). - * - * Generated from protobuf field bytes proto_descriptors = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProtoDescriptors() - { - return $this->proto_descriptors; - } - - /** - * Required. Contains a protobuf-serialized - * [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto), - * which could include multiple proto files. - * To generate it, [install](https://grpc.io/docs/protoc-installation/) and - * run `protoc` with - * `--include_imports` and `--descriptor_set_out`. For example, to generate - * for moon/shot/app.proto, run - * ``` - * $protoc --proto_path=/app_path --proto_path=/lib_path \ - * --include_imports \ - * --descriptor_set_out=descriptors.pb \ - * moon/shot/app.proto - * ``` - * For more details, see protobuffer [self - * description](https://developers.google.com/protocol-buffers/docs/techniques#self-description). - * - * Generated from protobuf field bytes proto_descriptors = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProtoDescriptors($var) - { - GPBUtil::checkString($var, False); - $this->proto_descriptors = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/RestoreInfo.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/RestoreInfo.php deleted file mode 100644 index 2eb860b8226b..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/RestoreInfo.php +++ /dev/null @@ -1,112 +0,0 @@ -google.bigtable.admin.v2.RestoreInfo - */ -class RestoreInfo extends \Google\Protobuf\Internal\Message -{ - /** - * The type of the restore source. - * - * Generated from protobuf field .google.bigtable.admin.v2.RestoreSourceType source_type = 1; - */ - protected $source_type = 0; - protected $source_info; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $source_type - * The type of the restore source. - * @type \Google\Cloud\Bigtable\Admin\V2\BackupInfo $backup_info - * Information about the backup used to restore the table. The backup - * may no longer exist. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); - parent::__construct($data); - } - - /** - * The type of the restore source. - * - * Generated from protobuf field .google.bigtable.admin.v2.RestoreSourceType source_type = 1; - * @return int - */ - public function getSourceType() - { - return $this->source_type; - } - - /** - * The type of the restore source. - * - * Generated from protobuf field .google.bigtable.admin.v2.RestoreSourceType source_type = 1; - * @param int $var - * @return $this - */ - public function setSourceType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\RestoreSourceType::class); - $this->source_type = $var; - - return $this; - } - - /** - * Information about the backup used to restore the table. The backup - * may no longer exist. - * - * Generated from protobuf field .google.bigtable.admin.v2.BackupInfo backup_info = 2; - * @return \Google\Cloud\Bigtable\Admin\V2\BackupInfo|null - */ - public function getBackupInfo() - { - return $this->readOneof(2); - } - - public function hasBackupInfo() - { - return $this->hasOneof(2); - } - - /** - * Information about the backup used to restore the table. The backup - * may no longer exist. - * - * Generated from protobuf field .google.bigtable.admin.v2.BackupInfo backup_info = 2; - * @param \Google\Cloud\Bigtable\Admin\V2\BackupInfo $var - * @return $this - */ - public function setBackupInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\BackupInfo::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getSourceInfo() - { - return $this->whichOneof("source_info"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/RestoreSourceType.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/RestoreSourceType.php deleted file mode 100644 index f69bc82f8d8a..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/RestoreSourceType.php +++ /dev/null @@ -1,54 +0,0 @@ -google.bigtable.admin.v2.RestoreSourceType - */ -class RestoreSourceType -{ - /** - * No restore associated. - * - * Generated from protobuf enum RESTORE_SOURCE_TYPE_UNSPECIFIED = 0; - */ - const RESTORE_SOURCE_TYPE_UNSPECIFIED = 0; - /** - * A backup was used as the source of the restore. - * - * Generated from protobuf enum BACKUP = 1; - */ - const BACKUP = 1; - - private static $valueToName = [ - self::RESTORE_SOURCE_TYPE_UNSPECIFIED => 'RESTORE_SOURCE_TYPE_UNSPECIFIED', - self::BACKUP => 'BACKUP', - ]; - - 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/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/RestoreTableMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/RestoreTableMetadata.php deleted file mode 100644 index 7f28a6913149..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/RestoreTableMetadata.php +++ /dev/null @@ -1,257 +0,0 @@ -google.bigtable.admin.v2.RestoreTableMetadata - */ -class RestoreTableMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the table being created and restored to. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The type of the restore source. - * - * Generated from protobuf field .google.bigtable.admin.v2.RestoreSourceType source_type = 2; - */ - protected $source_type = 0; - /** - * If exists, the name of the long-running operation that will be used to - * track the post-restore optimization process to optimize the performance of - * the restored table. The metadata type of the long-running operation is - * [OptimizeRestoreTableMetadata][]. The response type is - * [Empty][google.protobuf.Empty]. This long-running operation may be - * automatically created by the system if applicable after the - * RestoreTable long-running operation completes successfully. This operation - * may not be created if the table is already optimized or the restore was - * not successful. - * - * Generated from protobuf field string optimize_table_operation_name = 4; - */ - protected $optimize_table_operation_name = ''; - /** - * The progress of the - * [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable] - * operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.OperationProgress progress = 5; - */ - protected $progress = null; - protected $source_info; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the table being created and restored to. - * @type int $source_type - * The type of the restore source. - * @type \Google\Cloud\Bigtable\Admin\V2\BackupInfo $backup_info - * @type string $optimize_table_operation_name - * If exists, the name of the long-running operation that will be used to - * track the post-restore optimization process to optimize the performance of - * the restored table. The metadata type of the long-running operation is - * [OptimizeRestoreTableMetadata][]. The response type is - * [Empty][google.protobuf.Empty]. This long-running operation may be - * automatically created by the system if applicable after the - * RestoreTable long-running operation completes successfully. This operation - * may not be created if the table is already optimized or the restore was - * not successful. - * @type \Google\Cloud\Bigtable\Admin\V2\OperationProgress $progress - * The progress of the - * [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable] - * operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Name of the table being created and restored to. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the table being created and restored to. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The type of the restore source. - * - * Generated from protobuf field .google.bigtable.admin.v2.RestoreSourceType source_type = 2; - * @return int - */ - public function getSourceType() - { - return $this->source_type; - } - - /** - * The type of the restore source. - * - * Generated from protobuf field .google.bigtable.admin.v2.RestoreSourceType source_type = 2; - * @param int $var - * @return $this - */ - public function setSourceType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\RestoreSourceType::class); - $this->source_type = $var; - - return $this; - } - - /** - * Generated from protobuf field .google.bigtable.admin.v2.BackupInfo backup_info = 3; - * @return \Google\Cloud\Bigtable\Admin\V2\BackupInfo|null - */ - public function getBackupInfo() - { - return $this->readOneof(3); - } - - public function hasBackupInfo() - { - return $this->hasOneof(3); - } - - /** - * Generated from protobuf field .google.bigtable.admin.v2.BackupInfo backup_info = 3; - * @param \Google\Cloud\Bigtable\Admin\V2\BackupInfo $var - * @return $this - */ - public function setBackupInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\BackupInfo::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * If exists, the name of the long-running operation that will be used to - * track the post-restore optimization process to optimize the performance of - * the restored table. The metadata type of the long-running operation is - * [OptimizeRestoreTableMetadata][]. The response type is - * [Empty][google.protobuf.Empty]. This long-running operation may be - * automatically created by the system if applicable after the - * RestoreTable long-running operation completes successfully. This operation - * may not be created if the table is already optimized or the restore was - * not successful. - * - * Generated from protobuf field string optimize_table_operation_name = 4; - * @return string - */ - public function getOptimizeTableOperationName() - { - return $this->optimize_table_operation_name; - } - - /** - * If exists, the name of the long-running operation that will be used to - * track the post-restore optimization process to optimize the performance of - * the restored table. The metadata type of the long-running operation is - * [OptimizeRestoreTableMetadata][]. The response type is - * [Empty][google.protobuf.Empty]. This long-running operation may be - * automatically created by the system if applicable after the - * RestoreTable long-running operation completes successfully. This operation - * may not be created if the table is already optimized or the restore was - * not successful. - * - * Generated from protobuf field string optimize_table_operation_name = 4; - * @param string $var - * @return $this - */ - public function setOptimizeTableOperationName($var) - { - GPBUtil::checkString($var, True); - $this->optimize_table_operation_name = $var; - - return $this; - } - - /** - * The progress of the - * [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable] - * operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.OperationProgress progress = 5; - * @return \Google\Cloud\Bigtable\Admin\V2\OperationProgress|null - */ - public function getProgress() - { - return $this->progress; - } - - public function hasProgress() - { - return isset($this->progress); - } - - public function clearProgress() - { - unset($this->progress); - } - - /** - * The progress of the - * [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable] - * operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.OperationProgress progress = 5; - * @param \Google\Cloud\Bigtable\Admin\V2\OperationProgress $var - * @return $this - */ - public function setProgress($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\OperationProgress::class); - $this->progress = $var; - - return $this; - } - - /** - * @return string - */ - public function getSourceInfo() - { - return $this->whichOneof("source_info"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/RestoreTableRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/RestoreTableRequest.php deleted file mode 100644 index 47beb2eedce4..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/RestoreTableRequest.php +++ /dev/null @@ -1,163 +0,0 @@ -google.bigtable.admin.v2.RestoreTableRequest - */ -class RestoreTableRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the instance in which to create the restored - * table. Values are of the form `projects//instances/`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The id of the table to create and restore to. This - * table must not already exist. The `table_id` appended to - * `parent` forms the full table name of the form - * `projects//instances//tables/`. - * - * Generated from protobuf field string table_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $table_id = ''; - protected $source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The name of the instance in which to create the restored - * table. Values are of the form `projects//instances/`. - * @type string $table_id - * Required. The id of the table to create and restore to. This - * table must not already exist. The `table_id` appended to - * `parent` forms the full table name of the form - * `projects//instances//tables/`. - * @type string $backup - * Name of the backup from which to restore. Values are of the form - * `projects//instances//clusters//backups/`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the instance in which to create the restored - * table. Values are of the form `projects//instances/`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The name of the instance in which to create the restored - * table. Values are of the form `projects//instances/`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The id of the table to create and restore to. This - * table must not already exist. The `table_id` appended to - * `parent` forms the full table name of the form - * `projects//instances//tables/`. - * - * Generated from protobuf field string table_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTableId() - { - return $this->table_id; - } - - /** - * Required. The id of the table to create and restore to. This - * table must not already exist. The `table_id` appended to - * `parent` forms the full table name of the form - * `projects//instances//tables/`. - * - * Generated from protobuf field string table_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTableId($var) - { - GPBUtil::checkString($var, True); - $this->table_id = $var; - - return $this; - } - - /** - * Name of the backup from which to restore. Values are of the form - * `projects//instances//clusters//backups/`. - * - * Generated from protobuf field string backup = 3 [(.google.api.resource_reference) = { - * @return string - */ - public function getBackup() - { - return $this->readOneof(3); - } - - public function hasBackup() - { - return $this->hasOneof(3); - } - - /** - * Name of the backup from which to restore. Values are of the form - * `projects//instances//clusters//backups/`. - * - * Generated from protobuf field string backup = 3 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setBackup($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getSource() - { - return $this->whichOneof("source"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/SchemaBundle.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/SchemaBundle.php deleted file mode 100644 index b728233c5d62..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/SchemaBundle.php +++ /dev/null @@ -1,163 +0,0 @@ -google.bigtable.admin.v2.SchemaBundle - */ -class SchemaBundle extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The unique name identifying this schema bundle. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Optional. The etag for this schema bundle. - * This may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. The server - * returns an ABORTED error on a mismatched etag. - * - * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The unique name identifying this schema bundle. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - * @type \Google\Cloud\Bigtable\Admin\V2\ProtoSchema $proto_schema - * Schema for Protobufs. - * @type string $etag - * Optional. The etag for this schema bundle. - * This may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. The server - * returns an ABORTED error on a mismatched etag. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The unique name identifying this schema bundle. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The unique name identifying this schema bundle. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Schema for Protobufs. - * - * Generated from protobuf field .google.bigtable.admin.v2.ProtoSchema proto_schema = 2; - * @return \Google\Cloud\Bigtable\Admin\V2\ProtoSchema|null - */ - public function getProtoSchema() - { - return $this->readOneof(2); - } - - public function hasProtoSchema() - { - return $this->hasOneof(2); - } - - /** - * Schema for Protobufs. - * - * Generated from protobuf field .google.bigtable.admin.v2.ProtoSchema proto_schema = 2; - * @param \Google\Cloud\Bigtable\Admin\V2\ProtoSchema $var - * @return $this - */ - public function setProtoSchema($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\ProtoSchema::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Optional. The etag for this schema bundle. - * This may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. The server - * returns an ABORTED error on a mismatched etag. - * - * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. The etag for this schema bundle. - * This may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. The server - * returns an ABORTED error on a mismatched etag. - * - * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Snapshot.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Snapshot.php deleted file mode 100644 index a83c939824bf..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Snapshot.php +++ /dev/null @@ -1,334 +0,0 @@ -google.bigtable.admin.v2.Snapshot - */ -class Snapshot extends \Google\Protobuf\Internal\Message -{ - /** - * The unique name of the snapshot. - * Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Output only. The source table at the time the snapshot was taken. - * - * Generated from protobuf field .google.bigtable.admin.v2.Table source_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $source_table = null; - /** - * Output only. The size of the data in the source table at the time the - * snapshot was taken. In some cases, this value may be computed - * asynchronously via a background process and a placeholder of 0 will be used - * in the meantime. - * - * Generated from protobuf field int64 data_size_bytes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $data_size_bytes = 0; - /** - * Output only. The time when the snapshot is created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * The time when the snapshot will be deleted. The maximum amount of time a - * snapshot can stay active is 365 days. If 'ttl' is not specified, - * the default maximum of 365 days will be used. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 5; - */ - protected $delete_time = null; - /** - * Output only. The current state of the snapshot. - * - * Generated from protobuf field .google.bigtable.admin.v2.Snapshot.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Description of the snapshot. - * - * Generated from protobuf field string description = 7; - */ - protected $description = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The unique name of the snapshot. - * Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - * @type \Google\Cloud\Bigtable\Admin\V2\Table $source_table - * Output only. The source table at the time the snapshot was taken. - * @type int|string $data_size_bytes - * Output only. The size of the data in the source table at the time the - * snapshot was taken. In some cases, this value may be computed - * asynchronously via a background process and a placeholder of 0 will be used - * in the meantime. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the snapshot is created. - * @type \Google\Protobuf\Timestamp $delete_time - * The time when the snapshot will be deleted. The maximum amount of time a - * snapshot can stay active is 365 days. If 'ttl' is not specified, - * the default maximum of 365 days will be used. - * @type int $state - * Output only. The current state of the snapshot. - * @type string $description - * Description of the snapshot. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); - parent::__construct($data); - } - - /** - * The unique name of the snapshot. - * Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The unique name of the snapshot. - * Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. The source table at the time the snapshot was taken. - * - * Generated from protobuf field .google.bigtable.admin.v2.Table source_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Bigtable\Admin\V2\Table|null - */ - public function getSourceTable() - { - return $this->source_table; - } - - public function hasSourceTable() - { - return isset($this->source_table); - } - - public function clearSourceTable() - { - unset($this->source_table); - } - - /** - * Output only. The source table at the time the snapshot was taken. - * - * Generated from protobuf field .google.bigtable.admin.v2.Table source_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Bigtable\Admin\V2\Table $var - * @return $this - */ - public function setSourceTable($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Table::class); - $this->source_table = $var; - - return $this; - } - - /** - * Output only. The size of the data in the source table at the time the - * snapshot was taken. In some cases, this value may be computed - * asynchronously via a background process and a placeholder of 0 will be used - * in the meantime. - * - * Generated from protobuf field int64 data_size_bytes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getDataSizeBytes() - { - return $this->data_size_bytes; - } - - /** - * Output only. The size of the data in the source table at the time the - * snapshot was taken. In some cases, this value may be computed - * asynchronously via a background process and a placeholder of 0 will be used - * in the meantime. - * - * Generated from protobuf field int64 data_size_bytes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setDataSizeBytes($var) - { - GPBUtil::checkInt64($var); - $this->data_size_bytes = $var; - - return $this; - } - - /** - * Output only. The time when the snapshot is created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time when the snapshot is created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * The time when the snapshot will be deleted. The maximum amount of time a - * snapshot can stay active is 365 days. If 'ttl' is not specified, - * the default maximum of 365 days will be used. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 5; - * @return \Google\Protobuf\Timestamp|null - */ - public function getDeleteTime() - { - return $this->delete_time; - } - - public function hasDeleteTime() - { - return isset($this->delete_time); - } - - public function clearDeleteTime() - { - unset($this->delete_time); - } - - /** - * The time when the snapshot will be deleted. The maximum amount of time a - * snapshot can stay active is 365 days. If 'ttl' is not specified, - * the default maximum of 365 days will be used. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 5; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setDeleteTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->delete_time = $var; - - return $this; - } - - /** - * Output only. The current state of the snapshot. - * - * Generated from protobuf field .google.bigtable.admin.v2.Snapshot.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current state of the snapshot. - * - * Generated from protobuf field .google.bigtable.admin.v2.Snapshot.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\Snapshot\State::class); - $this->state = $var; - - return $this; - } - - /** - * Description of the snapshot. - * - * Generated from protobuf field string description = 7; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Description of the snapshot. - * - * Generated from protobuf field string description = 7; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Snapshot/State.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Snapshot/State.php deleted file mode 100644 index e7cabe4033f7..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Snapshot/State.php +++ /dev/null @@ -1,63 +0,0 @@ -google.bigtable.admin.v2.Snapshot.State - */ -class State -{ - /** - * The state of the snapshot could not be determined. - * - * Generated from protobuf enum STATE_NOT_KNOWN = 0; - */ - const STATE_NOT_KNOWN = 0; - /** - * The snapshot has been successfully created and can serve all requests. - * - * Generated from protobuf enum READY = 1; - */ - const READY = 1; - /** - * The snapshot is currently being created, and may be destroyed if the - * creation process encounters an error. A snapshot may not be restored to a - * table while it is being created. - * - * Generated from protobuf enum CREATING = 2; - */ - const CREATING = 2; - - private static $valueToName = [ - self::STATE_NOT_KNOWN => 'STATE_NOT_KNOWN', - self::READY => 'READY', - self::CREATING => 'CREATING', - ]; - - 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/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/SnapshotTableMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/SnapshotTableMetadata.php deleted file mode 100644 index b8b0646de448..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/SnapshotTableMetadata.php +++ /dev/null @@ -1,169 +0,0 @@ -google.bigtable.admin.v2.SnapshotTableMetadata - */ -class SnapshotTableMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The request that prompted the initiation of this SnapshotTable operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.SnapshotTableRequest original_request = 1; - */ - protected $original_request = null; - /** - * The time at which the original request was received. - * - * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; - */ - protected $request_time = null; - /** - * The time at which the operation failed or was completed successfully. - * - * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; - */ - protected $finish_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\SnapshotTableRequest $original_request - * The request that prompted the initiation of this SnapshotTable operation. - * @type \Google\Protobuf\Timestamp $request_time - * The time at which the original request was received. - * @type \Google\Protobuf\Timestamp $finish_time - * The time at which the operation failed or was completed successfully. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The request that prompted the initiation of this SnapshotTable operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.SnapshotTableRequest original_request = 1; - * @return \Google\Cloud\Bigtable\Admin\V2\SnapshotTableRequest|null - */ - public function getOriginalRequest() - { - return $this->original_request; - } - - public function hasOriginalRequest() - { - return isset($this->original_request); - } - - public function clearOriginalRequest() - { - unset($this->original_request); - } - - /** - * The request that prompted the initiation of this SnapshotTable operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.SnapshotTableRequest original_request = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\SnapshotTableRequest $var - * @return $this - */ - public function setOriginalRequest($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\SnapshotTableRequest::class); - $this->original_request = $var; - - return $this; - } - - /** - * The time at which the original request was received. - * - * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRequestTime() - { - return $this->request_time; - } - - public function hasRequestTime() - { - return isset($this->request_time); - } - - public function clearRequestTime() - { - unset($this->request_time); - } - - /** - * The time at which the original request was received. - * - * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRequestTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->request_time = $var; - - return $this; - } - - /** - * The time at which the operation failed or was completed successfully. - * - * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getFinishTime() - { - return $this->finish_time; - } - - public function hasFinishTime() - { - return isset($this->finish_time); - } - - public function clearFinishTime() - { - unset($this->finish_time); - } - - /** - * The time at which the operation failed or was completed successfully. - * - * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setFinishTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->finish_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/SnapshotTableRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/SnapshotTableRequest.php deleted file mode 100644 index c5adaf5bbb40..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/SnapshotTableRequest.php +++ /dev/null @@ -1,286 +0,0 @@ -google.bigtable.admin.v2.SnapshotTableRequest - */ -class SnapshotTableRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the table to have the snapshot taken. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. The name of the cluster where the snapshot will be created in. - * Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}`. - * - * Generated from protobuf field string cluster = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $cluster = ''; - /** - * Required. The ID by which the new snapshot should be referred to within the - * parent cluster, e.g., `mysnapshot` of the form: - * `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than - * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`. - * - * Generated from protobuf field string snapshot_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $snapshot_id = ''; - /** - * The amount of time that the new snapshot can stay active after it is - * created. Once 'ttl' expires, the snapshot will get deleted. The maximum - * amount of time a snapshot can stay active is 7 days. If 'ttl' is not - * specified, the default value of 24 hours will be used. - * - * Generated from protobuf field .google.protobuf.Duration ttl = 4; - */ - protected $ttl = null; - /** - * Description of the snapshot. - * - * Generated from protobuf field string description = 5; - */ - protected $description = ''; - - /** - * @param string $name Required. The unique name of the table to have the snapshot taken. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. Please see - * {@see BigtableTableAdminClient::tableName()} for help formatting this field. - * @param string $cluster Required. The name of the cluster where the snapshot will be created in. - * Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}`. Please see - * {@see BigtableTableAdminClient::clusterName()} for help formatting this field. - * @param string $snapshotId Required. The ID by which the new snapshot should be referred to within the - * parent cluster, e.g., `mysnapshot` of the form: - * `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than - * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`. - * @param string $description Description of the snapshot. - * - * @return \Google\Cloud\Bigtable\Admin\V2\SnapshotTableRequest - * - * @experimental - */ - public static function build(string $name, string $cluster, string $snapshotId, string $description): self - { - return (new self()) - ->setName($name) - ->setCluster($cluster) - ->setSnapshotId($snapshotId) - ->setDescription($description); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The unique name of the table to have the snapshot taken. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * @type string $cluster - * Required. The name of the cluster where the snapshot will be created in. - * Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}`. - * @type string $snapshot_id - * Required. The ID by which the new snapshot should be referred to within the - * parent cluster, e.g., `mysnapshot` of the form: - * `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than - * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`. - * @type \Google\Protobuf\Duration $ttl - * The amount of time that the new snapshot can stay active after it is - * created. Once 'ttl' expires, the snapshot will get deleted. The maximum - * amount of time a snapshot can stay active is 7 days. If 'ttl' is not - * specified, the default value of 24 hours will be used. - * @type string $description - * Description of the snapshot. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the table to have the snapshot taken. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The unique name of the table to have the snapshot taken. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The name of the cluster where the snapshot will be created in. - * Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}`. - * - * Generated from protobuf field string cluster = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getCluster() - { - return $this->cluster; - } - - /** - * Required. The name of the cluster where the snapshot will be created in. - * Values are of the form - * `projects/{project}/instances/{instance}/clusters/{cluster}`. - * - * Generated from protobuf field string cluster = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setCluster($var) - { - GPBUtil::checkString($var, True); - $this->cluster = $var; - - return $this; - } - - /** - * Required. The ID by which the new snapshot should be referred to within the - * parent cluster, e.g., `mysnapshot` of the form: - * `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than - * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`. - * - * Generated from protobuf field string snapshot_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getSnapshotId() - { - return $this->snapshot_id; - } - - /** - * Required. The ID by which the new snapshot should be referred to within the - * parent cluster, e.g., `mysnapshot` of the form: - * `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than - * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`. - * - * Generated from protobuf field string snapshot_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setSnapshotId($var) - { - GPBUtil::checkString($var, True); - $this->snapshot_id = $var; - - return $this; - } - - /** - * The amount of time that the new snapshot can stay active after it is - * created. Once 'ttl' expires, the snapshot will get deleted. The maximum - * amount of time a snapshot can stay active is 7 days. If 'ttl' is not - * specified, the default value of 24 hours will be used. - * - * Generated from protobuf field .google.protobuf.Duration ttl = 4; - * @return \Google\Protobuf\Duration|null - */ - public function getTtl() - { - return $this->ttl; - } - - public function hasTtl() - { - return isset($this->ttl); - } - - public function clearTtl() - { - unset($this->ttl); - } - - /** - * The amount of time that the new snapshot can stay active after it is - * created. Once 'ttl' expires, the snapshot will get deleted. The maximum - * amount of time a snapshot can stay active is 7 days. If 'ttl' is not - * specified, the default value of 24 hours will be used. - * - * Generated from protobuf field .google.protobuf.Duration ttl = 4; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setTtl($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->ttl = $var; - - return $this; - } - - /** - * Description of the snapshot. - * - * Generated from protobuf field string description = 5; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Description of the snapshot. - * - * Generated from protobuf field string description = 5; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/StandardReadRemoteWrites.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/StandardReadRemoteWrites.php deleted file mode 100644 index 76fcfbeb6c69..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/StandardReadRemoteWrites.php +++ /dev/null @@ -1,34 +0,0 @@ -google.bigtable.admin.v2.StandardReadRemoteWrites - */ -class StandardReadRemoteWrites extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/StorageType.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/StorageType.php deleted file mode 100644 index 9bc95b2df390..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/StorageType.php +++ /dev/null @@ -1,61 +0,0 @@ -google.bigtable.admin.v2.StorageType - */ -class StorageType -{ - /** - * The user did not specify a storage type. - * - * Generated from protobuf enum STORAGE_TYPE_UNSPECIFIED = 0; - */ - const STORAGE_TYPE_UNSPECIFIED = 0; - /** - * Flash (SSD) storage should be used. - * - * Generated from protobuf enum SSD = 1; - */ - const SSD = 1; - /** - * Magnetic drive (HDD) storage should be used. - * - * Generated from protobuf enum HDD = 2; - */ - const HDD = 2; - - private static $valueToName = [ - self::STORAGE_TYPE_UNSPECIFIED => 'STORAGE_TYPE_UNSPECIFIED', - self::SSD => 'SSD', - self::HDD => 'HDD', - ]; - - 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/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table.php deleted file mode 100644 index 65881a8be02d..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table.php +++ /dev/null @@ -1,721 +0,0 @@ -google.bigtable.admin.v2.Table - */ -class Table extends \Google\Protobuf\Internal\Message -{ - /** - * The unique name of the table. Values are of the form - * `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. - * Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL` - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Output only. Map from cluster ID to per-cluster table state. - * If it could not be determined whether or not the table has data in a - * particular cluster (for example, if its zone is unavailable), then - * there will be an entry for the cluster with UNKNOWN `replication_status`. - * Views: `REPLICATION_VIEW`, `ENCRYPTION_VIEW`, `FULL` - * - * Generated from protobuf field map cluster_states = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $cluster_states; - /** - * The column families configured for this table, mapped by column family ID. - * Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL` - * - * Generated from protobuf field map column_families = 3; - */ - private $column_families; - /** - * Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored - * in this table. Timestamps not matching the granularity will be rejected. If - * unspecified at creation time, the value will be set to `MILLIS`. Views: - * `SCHEMA_VIEW`, `FULL`. - * - * Generated from protobuf field .google.bigtable.admin.v2.Table.TimestampGranularity granularity = 4 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $granularity = 0; - /** - * Output only. If this table was restored from another data source (e.g. a - * backup), this field will be populated with information about the restore. - * - * Generated from protobuf field .google.bigtable.admin.v2.RestoreInfo restore_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $restore_info = null; - /** - * If specified, enable the change stream on this table. - * Otherwise, the change stream is disabled and the change stream is not - * retained. - * - * Generated from protobuf field .google.bigtable.admin.v2.ChangeStreamConfig change_stream_config = 8; - */ - protected $change_stream_config = null; - /** - * Set to true to make the table protected against data loss. i.e. deleting - * the following resources through Admin APIs are prohibited: - * * The table. - * * The column families in the table. - * * The instance containing the table. - * Note one can still delete the data stored in the table through Data APIs. - * - * Generated from protobuf field bool deletion_protection = 9; - */ - protected $deletion_protection = false; - /** - * Rules to specify what data is stored in each storage tier. - * Different tiers store data differently, providing different trade-offs - * between cost and performance. Different parts of a table can be stored - * separately on different tiers. - * If a config is specified, tiered storage is enabled for this table. - * Otherwise, tiered storage is disabled. - * Only SSD instances can configure tiered storage. - * - * Generated from protobuf field .google.bigtable.admin.v2.TieredStorageConfig tiered_storage_config = 14; - */ - protected $tiered_storage_config = null; - /** - * The row key schema for this table. The schema is used to decode the raw row - * key bytes into a structured format. The order of field declarations in this - * schema is important, as it reflects how the raw row key bytes are - * structured. Currently, this only affects how the key is read via a - * GoogleSQL query from the ExecuteQuery API. - * For a SQL query, the _key column is still read as raw bytes. But queries - * can reference the key fields by name, which will be decoded from _key using - * provided type and encoding. Queries that reference key fields will fail if - * they encounter an invalid row key. - * For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the - * following schema: - * { - * fields { - * field_name: "id" - * type { string { encoding: utf8_bytes {} } } - * } - * fields { - * field_name: "date" - * type { string { encoding: utf8_bytes {} } } - * } - * fields { - * field_name: "product_code" - * type { int64 { encoding: big_endian_bytes {} } } - * } - * encoding { delimited_bytes { delimiter: "#" } } - * } - * The decoded key parts would be: - * id = "some_id", date = "2024-04-30", product_code = 1245427 - * The query "SELECT _key, product_code FROM table" will return two columns: - * /------------------------------------------------------\ - * | _key | product_code | - * | --------------------------------------|--------------| - * | "some_id#2024-04-30#\x00\x13\x00\xf3" | 1245427 | - * \------------------------------------------------------/ - * The schema has the following invariants: - * (1) The decoded field values are order-preserved. For read, the field - * values will be decoded in sorted mode from the raw bytes. - * (2) Every field in the schema must specify a non-empty name. - * (3) Every field must specify a type with an associated encoding. The type - * is limited to scalar types only: Array, Map, Aggregate, and Struct are not - * allowed. - * (4) The field names must not collide with existing column family - * names and reserved keywords "_key" and "_timestamp". - * The following update operations are allowed for row_key_schema: - * - Update from an empty schema to a new schema. - * - Remove the existing schema. This operation requires setting the - * `ignore_warnings` flag to `true`, since it might be a backward - * incompatible change. Without the flag, the update request will fail with - * an INVALID_ARGUMENT error. - * Any other row key schema update operation (e.g. update existing schema - * columns names or types) is currently unsupported. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Struct row_key_schema = 15; - */ - protected $row_key_schema = null; - protected $automated_backup_config; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The unique name of the table. Values are of the form - * `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. - * Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL` - * @type array|\Google\Protobuf\Internal\MapField $cluster_states - * Output only. Map from cluster ID to per-cluster table state. - * If it could not be determined whether or not the table has data in a - * particular cluster (for example, if its zone is unavailable), then - * there will be an entry for the cluster with UNKNOWN `replication_status`. - * Views: `REPLICATION_VIEW`, `ENCRYPTION_VIEW`, `FULL` - * @type array|\Google\Protobuf\Internal\MapField $column_families - * The column families configured for this table, mapped by column family ID. - * Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL` - * @type int $granularity - * Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored - * in this table. Timestamps not matching the granularity will be rejected. If - * unspecified at creation time, the value will be set to `MILLIS`. Views: - * `SCHEMA_VIEW`, `FULL`. - * @type \Google\Cloud\Bigtable\Admin\V2\RestoreInfo $restore_info - * Output only. If this table was restored from another data source (e.g. a - * backup), this field will be populated with information about the restore. - * @type \Google\Cloud\Bigtable\Admin\V2\ChangeStreamConfig $change_stream_config - * If specified, enable the change stream on this table. - * Otherwise, the change stream is disabled and the change stream is not - * retained. - * @type bool $deletion_protection - * Set to true to make the table protected against data loss. i.e. deleting - * the following resources through Admin APIs are prohibited: - * * The table. - * * The column families in the table. - * * The instance containing the table. - * Note one can still delete the data stored in the table through Data APIs. - * @type \Google\Cloud\Bigtable\Admin\V2\Table\AutomatedBackupPolicy $automated_backup_policy - * If specified, automated backups are enabled for this table. - * Otherwise, automated backups are disabled. - * @type \Google\Cloud\Bigtable\Admin\V2\TieredStorageConfig $tiered_storage_config - * Rules to specify what data is stored in each storage tier. - * Different tiers store data differently, providing different trade-offs - * between cost and performance. Different parts of a table can be stored - * separately on different tiers. - * If a config is specified, tiered storage is enabled for this table. - * Otherwise, tiered storage is disabled. - * Only SSD instances can configure tiered storage. - * @type \Google\Cloud\Bigtable\Admin\V2\Type\Struct $row_key_schema - * The row key schema for this table. The schema is used to decode the raw row - * key bytes into a structured format. The order of field declarations in this - * schema is important, as it reflects how the raw row key bytes are - * structured. Currently, this only affects how the key is read via a - * GoogleSQL query from the ExecuteQuery API. - * For a SQL query, the _key column is still read as raw bytes. But queries - * can reference the key fields by name, which will be decoded from _key using - * provided type and encoding. Queries that reference key fields will fail if - * they encounter an invalid row key. - * For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the - * following schema: - * { - * fields { - * field_name: "id" - * type { string { encoding: utf8_bytes {} } } - * } - * fields { - * field_name: "date" - * type { string { encoding: utf8_bytes {} } } - * } - * fields { - * field_name: "product_code" - * type { int64 { encoding: big_endian_bytes {} } } - * } - * encoding { delimited_bytes { delimiter: "#" } } - * } - * The decoded key parts would be: - * id = "some_id", date = "2024-04-30", product_code = 1245427 - * The query "SELECT _key, product_code FROM table" will return two columns: - * /------------------------------------------------------\ - * | _key | product_code | - * | --------------------------------------|--------------| - * | "some_id#2024-04-30#\x00\x13\x00\xf3" | 1245427 | - * \------------------------------------------------------/ - * The schema has the following invariants: - * (1) The decoded field values are order-preserved. For read, the field - * values will be decoded in sorted mode from the raw bytes. - * (2) Every field in the schema must specify a non-empty name. - * (3) Every field must specify a type with an associated encoding. The type - * is limited to scalar types only: Array, Map, Aggregate, and Struct are not - * allowed. - * (4) The field names must not collide with existing column family - * names and reserved keywords "_key" and "_timestamp". - * The following update operations are allowed for row_key_schema: - * - Update from an empty schema to a new schema. - * - Remove the existing schema. This operation requires setting the - * `ignore_warnings` flag to `true`, since it might be a backward - * incompatible change. Without the flag, the update request will fail with - * an INVALID_ARGUMENT error. - * Any other row key schema update operation (e.g. update existing schema - * columns names or types) is currently unsupported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); - parent::__construct($data); - } - - /** - * The unique name of the table. Values are of the form - * `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. - * Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL` - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The unique name of the table. Values are of the form - * `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. - * Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL` - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. Map from cluster ID to per-cluster table state. - * If it could not be determined whether or not the table has data in a - * particular cluster (for example, if its zone is unavailable), then - * there will be an entry for the cluster with UNKNOWN `replication_status`. - * Views: `REPLICATION_VIEW`, `ENCRYPTION_VIEW`, `FULL` - * - * Generated from protobuf field map cluster_states = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getClusterStates() - { - return $this->cluster_states; - } - - /** - * Output only. Map from cluster ID to per-cluster table state. - * If it could not be determined whether or not the table has data in a - * particular cluster (for example, if its zone is unavailable), then - * there will be an entry for the cluster with UNKNOWN `replication_status`. - * Views: `REPLICATION_VIEW`, `ENCRYPTION_VIEW`, `FULL` - * - * Generated from protobuf field map cluster_states = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setClusterStates($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\Table\ClusterState::class); - $this->cluster_states = $arr; - - return $this; - } - - /** - * The column families configured for this table, mapped by column family ID. - * Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL` - * - * Generated from protobuf field map column_families = 3; - * @return \Google\Protobuf\Internal\MapField - */ - public function getColumnFamilies() - { - return $this->column_families; - } - - /** - * The column families configured for this table, mapped by column family ID. - * Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL` - * - * Generated from protobuf field map column_families = 3; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setColumnFamilies($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\ColumnFamily::class); - $this->column_families = $arr; - - return $this; - } - - /** - * Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored - * in this table. Timestamps not matching the granularity will be rejected. If - * unspecified at creation time, the value will be set to `MILLIS`. Views: - * `SCHEMA_VIEW`, `FULL`. - * - * Generated from protobuf field .google.bigtable.admin.v2.Table.TimestampGranularity granularity = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getGranularity() - { - return $this->granularity; - } - - /** - * Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored - * in this table. Timestamps not matching the granularity will be rejected. If - * unspecified at creation time, the value will be set to `MILLIS`. Views: - * `SCHEMA_VIEW`, `FULL`. - * - * Generated from protobuf field .google.bigtable.admin.v2.Table.TimestampGranularity granularity = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setGranularity($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\Table\TimestampGranularity::class); - $this->granularity = $var; - - return $this; - } - - /** - * Output only. If this table was restored from another data source (e.g. a - * backup), this field will be populated with information about the restore. - * - * Generated from protobuf field .google.bigtable.admin.v2.RestoreInfo restore_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Bigtable\Admin\V2\RestoreInfo|null - */ - public function getRestoreInfo() - { - return $this->restore_info; - } - - public function hasRestoreInfo() - { - return isset($this->restore_info); - } - - public function clearRestoreInfo() - { - unset($this->restore_info); - } - - /** - * Output only. If this table was restored from another data source (e.g. a - * backup), this field will be populated with information about the restore. - * - * Generated from protobuf field .google.bigtable.admin.v2.RestoreInfo restore_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Bigtable\Admin\V2\RestoreInfo $var - * @return $this - */ - public function setRestoreInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\RestoreInfo::class); - $this->restore_info = $var; - - return $this; - } - - /** - * If specified, enable the change stream on this table. - * Otherwise, the change stream is disabled and the change stream is not - * retained. - * - * Generated from protobuf field .google.bigtable.admin.v2.ChangeStreamConfig change_stream_config = 8; - * @return \Google\Cloud\Bigtable\Admin\V2\ChangeStreamConfig|null - */ - public function getChangeStreamConfig() - { - return $this->change_stream_config; - } - - public function hasChangeStreamConfig() - { - return isset($this->change_stream_config); - } - - public function clearChangeStreamConfig() - { - unset($this->change_stream_config); - } - - /** - * If specified, enable the change stream on this table. - * Otherwise, the change stream is disabled and the change stream is not - * retained. - * - * Generated from protobuf field .google.bigtable.admin.v2.ChangeStreamConfig change_stream_config = 8; - * @param \Google\Cloud\Bigtable\Admin\V2\ChangeStreamConfig $var - * @return $this - */ - public function setChangeStreamConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\ChangeStreamConfig::class); - $this->change_stream_config = $var; - - return $this; - } - - /** - * Set to true to make the table protected against data loss. i.e. deleting - * the following resources through Admin APIs are prohibited: - * * The table. - * * The column families in the table. - * * The instance containing the table. - * Note one can still delete the data stored in the table through Data APIs. - * - * Generated from protobuf field bool deletion_protection = 9; - * @return bool - */ - public function getDeletionProtection() - { - return $this->deletion_protection; - } - - /** - * Set to true to make the table protected against data loss. i.e. deleting - * the following resources through Admin APIs are prohibited: - * * The table. - * * The column families in the table. - * * The instance containing the table. - * Note one can still delete the data stored in the table through Data APIs. - * - * Generated from protobuf field bool deletion_protection = 9; - * @param bool $var - * @return $this - */ - public function setDeletionProtection($var) - { - GPBUtil::checkBool($var); - $this->deletion_protection = $var; - - return $this; - } - - /** - * If specified, automated backups are enabled for this table. - * Otherwise, automated backups are disabled. - * - * Generated from protobuf field .google.bigtable.admin.v2.Table.AutomatedBackupPolicy automated_backup_policy = 13; - * @return \Google\Cloud\Bigtable\Admin\V2\Table\AutomatedBackupPolicy|null - */ - public function getAutomatedBackupPolicy() - { - return $this->readOneof(13); - } - - public function hasAutomatedBackupPolicy() - { - return $this->hasOneof(13); - } - - /** - * If specified, automated backups are enabled for this table. - * Otherwise, automated backups are disabled. - * - * Generated from protobuf field .google.bigtable.admin.v2.Table.AutomatedBackupPolicy automated_backup_policy = 13; - * @param \Google\Cloud\Bigtable\Admin\V2\Table\AutomatedBackupPolicy $var - * @return $this - */ - public function setAutomatedBackupPolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Table\AutomatedBackupPolicy::class); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * Rules to specify what data is stored in each storage tier. - * Different tiers store data differently, providing different trade-offs - * between cost and performance. Different parts of a table can be stored - * separately on different tiers. - * If a config is specified, tiered storage is enabled for this table. - * Otherwise, tiered storage is disabled. - * Only SSD instances can configure tiered storage. - * - * Generated from protobuf field .google.bigtable.admin.v2.TieredStorageConfig tiered_storage_config = 14; - * @return \Google\Cloud\Bigtable\Admin\V2\TieredStorageConfig|null - */ - public function getTieredStorageConfig() - { - return $this->tiered_storage_config; - } - - public function hasTieredStorageConfig() - { - return isset($this->tiered_storage_config); - } - - public function clearTieredStorageConfig() - { - unset($this->tiered_storage_config); - } - - /** - * Rules to specify what data is stored in each storage tier. - * Different tiers store data differently, providing different trade-offs - * between cost and performance. Different parts of a table can be stored - * separately on different tiers. - * If a config is specified, tiered storage is enabled for this table. - * Otherwise, tiered storage is disabled. - * Only SSD instances can configure tiered storage. - * - * Generated from protobuf field .google.bigtable.admin.v2.TieredStorageConfig tiered_storage_config = 14; - * @param \Google\Cloud\Bigtable\Admin\V2\TieredStorageConfig $var - * @return $this - */ - public function setTieredStorageConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\TieredStorageConfig::class); - $this->tiered_storage_config = $var; - - return $this; - } - - /** - * The row key schema for this table. The schema is used to decode the raw row - * key bytes into a structured format. The order of field declarations in this - * schema is important, as it reflects how the raw row key bytes are - * structured. Currently, this only affects how the key is read via a - * GoogleSQL query from the ExecuteQuery API. - * For a SQL query, the _key column is still read as raw bytes. But queries - * can reference the key fields by name, which will be decoded from _key using - * provided type and encoding. Queries that reference key fields will fail if - * they encounter an invalid row key. - * For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the - * following schema: - * { - * fields { - * field_name: "id" - * type { string { encoding: utf8_bytes {} } } - * } - * fields { - * field_name: "date" - * type { string { encoding: utf8_bytes {} } } - * } - * fields { - * field_name: "product_code" - * type { int64 { encoding: big_endian_bytes {} } } - * } - * encoding { delimited_bytes { delimiter: "#" } } - * } - * The decoded key parts would be: - * id = "some_id", date = "2024-04-30", product_code = 1245427 - * The query "SELECT _key, product_code FROM table" will return two columns: - * /------------------------------------------------------\ - * | _key | product_code | - * | --------------------------------------|--------------| - * | "some_id#2024-04-30#\x00\x13\x00\xf3" | 1245427 | - * \------------------------------------------------------/ - * The schema has the following invariants: - * (1) The decoded field values are order-preserved. For read, the field - * values will be decoded in sorted mode from the raw bytes. - * (2) Every field in the schema must specify a non-empty name. - * (3) Every field must specify a type with an associated encoding. The type - * is limited to scalar types only: Array, Map, Aggregate, and Struct are not - * allowed. - * (4) The field names must not collide with existing column family - * names and reserved keywords "_key" and "_timestamp". - * The following update operations are allowed for row_key_schema: - * - Update from an empty schema to a new schema. - * - Remove the existing schema. This operation requires setting the - * `ignore_warnings` flag to `true`, since it might be a backward - * incompatible change. Without the flag, the update request will fail with - * an INVALID_ARGUMENT error. - * Any other row key schema update operation (e.g. update existing schema - * columns names or types) is currently unsupported. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Struct row_key_schema = 15; - * @return \Google\Cloud\Bigtable\Admin\V2\Type\Struct|null - */ - public function getRowKeySchema() - { - return $this->row_key_schema; - } - - public function hasRowKeySchema() - { - return isset($this->row_key_schema); - } - - public function clearRowKeySchema() - { - unset($this->row_key_schema); - } - - /** - * The row key schema for this table. The schema is used to decode the raw row - * key bytes into a structured format. The order of field declarations in this - * schema is important, as it reflects how the raw row key bytes are - * structured. Currently, this only affects how the key is read via a - * GoogleSQL query from the ExecuteQuery API. - * For a SQL query, the _key column is still read as raw bytes. But queries - * can reference the key fields by name, which will be decoded from _key using - * provided type and encoding. Queries that reference key fields will fail if - * they encounter an invalid row key. - * For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the - * following schema: - * { - * fields { - * field_name: "id" - * type { string { encoding: utf8_bytes {} } } - * } - * fields { - * field_name: "date" - * type { string { encoding: utf8_bytes {} } } - * } - * fields { - * field_name: "product_code" - * type { int64 { encoding: big_endian_bytes {} } } - * } - * encoding { delimited_bytes { delimiter: "#" } } - * } - * The decoded key parts would be: - * id = "some_id", date = "2024-04-30", product_code = 1245427 - * The query "SELECT _key, product_code FROM table" will return two columns: - * /------------------------------------------------------\ - * | _key | product_code | - * | --------------------------------------|--------------| - * | "some_id#2024-04-30#\x00\x13\x00\xf3" | 1245427 | - * \------------------------------------------------------/ - * The schema has the following invariants: - * (1) The decoded field values are order-preserved. For read, the field - * values will be decoded in sorted mode from the raw bytes. - * (2) Every field in the schema must specify a non-empty name. - * (3) Every field must specify a type with an associated encoding. The type - * is limited to scalar types only: Array, Map, Aggregate, and Struct are not - * allowed. - * (4) The field names must not collide with existing column family - * names and reserved keywords "_key" and "_timestamp". - * The following update operations are allowed for row_key_schema: - * - Update from an empty schema to a new schema. - * - Remove the existing schema. This operation requires setting the - * `ignore_warnings` flag to `true`, since it might be a backward - * incompatible change. Without the flag, the update request will fail with - * an INVALID_ARGUMENT error. - * Any other row key schema update operation (e.g. update existing schema - * columns names or types) is currently unsupported. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Struct row_key_schema = 15; - * @param \Google\Cloud\Bigtable\Admin\V2\Type\Struct $var - * @return $this - */ - public function setRowKeySchema($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Struct::class); - $this->row_key_schema = $var; - - return $this; - } - - /** - * @return string - */ - public function getAutomatedBackupConfig() - { - return $this->whichOneof("automated_backup_config"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/AutomatedBackupPolicy.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/AutomatedBackupPolicy.php deleted file mode 100644 index 991c00e9a126..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/AutomatedBackupPolicy.php +++ /dev/null @@ -1,179 +0,0 @@ -google.bigtable.admin.v2.Table.AutomatedBackupPolicy - */ -class AutomatedBackupPolicy extends \Google\Protobuf\Internal\Message -{ - /** - * Required. How long the automated backups should be retained. Values must - * be at least 3 days and at most 90 days. - * - * Generated from protobuf field .google.protobuf.Duration retention_period = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $retention_period = null; - /** - * How frequently automated backups should occur. The only supported value - * at this time is 24 hours. An undefined frequency is treated as 24 hours. - * - * Generated from protobuf field .google.protobuf.Duration frequency = 2; - */ - protected $frequency = null; - /** - * Optional. A list of Cloud Bigtable zones where automated backups are - * allowed to be created. If empty, automated backups will be created in all - * zones of the instance. Locations are in the format - * `projects/{project}/locations/{zone}`. - * This field can only set for tables in Enterprise Plus instances. - * - * Generated from protobuf field repeated string locations = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $locations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Duration $retention_period - * Required. How long the automated backups should be retained. Values must - * be at least 3 days and at most 90 days. - * @type \Google\Protobuf\Duration $frequency - * How frequently automated backups should occur. The only supported value - * at this time is 24 hours. An undefined frequency is treated as 24 hours. - * @type string[] $locations - * Optional. A list of Cloud Bigtable zones where automated backups are - * allowed to be created. If empty, automated backups will be created in all - * zones of the instance. Locations are in the format - * `projects/{project}/locations/{zone}`. - * This field can only set for tables in Enterprise Plus instances. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); - parent::__construct($data); - } - - /** - * Required. How long the automated backups should be retained. Values must - * be at least 3 days and at most 90 days. - * - * Generated from protobuf field .google.protobuf.Duration retention_period = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Duration|null - */ - public function getRetentionPeriod() - { - return $this->retention_period; - } - - public function hasRetentionPeriod() - { - return isset($this->retention_period); - } - - public function clearRetentionPeriod() - { - unset($this->retention_period); - } - - /** - * Required. How long the automated backups should be retained. Values must - * be at least 3 days and at most 90 days. - * - * Generated from protobuf field .google.protobuf.Duration retention_period = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setRetentionPeriod($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->retention_period = $var; - - return $this; - } - - /** - * How frequently automated backups should occur. The only supported value - * at this time is 24 hours. An undefined frequency is treated as 24 hours. - * - * Generated from protobuf field .google.protobuf.Duration frequency = 2; - * @return \Google\Protobuf\Duration|null - */ - public function getFrequency() - { - return $this->frequency; - } - - public function hasFrequency() - { - return isset($this->frequency); - } - - public function clearFrequency() - { - unset($this->frequency); - } - - /** - * How frequently automated backups should occur. The only supported value - * at this time is 24 hours. An undefined frequency is treated as 24 hours. - * - * Generated from protobuf field .google.protobuf.Duration frequency = 2; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setFrequency($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->frequency = $var; - - return $this; - } - - /** - * Optional. A list of Cloud Bigtable zones where automated backups are - * allowed to be created. If empty, automated backups will be created in all - * zones of the instance. Locations are in the format - * `projects/{project}/locations/{zone}`. - * This field can only set for tables in Enterprise Plus instances. - * - * Generated from protobuf field repeated string locations = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return RepeatedField - */ - public function getLocations() - { - return $this->locations; - } - - /** - * Optional. A list of Cloud Bigtable zones where automated backups are - * allowed to be created. If empty, automated backups will be created in all - * zones of the instance. Locations are in the format - * `projects/{project}/locations/{zone}`. - * This field can only set for tables in Enterprise Plus instances. - * - * Generated from protobuf field repeated string locations = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string[] $var - * @return $this - */ - public function setLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->locations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/ClusterState.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/ClusterState.php deleted file mode 100644 index e98702103c8c..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/ClusterState.php +++ /dev/null @@ -1,117 +0,0 @@ -google.bigtable.admin.v2.Table.ClusterState - */ -class ClusterState extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The state of replication for the table in this cluster. - * - * Generated from protobuf field .google.bigtable.admin.v2.Table.ClusterState.ReplicationState replication_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $replication_state = 0; - /** - * Output only. The encryption information for the table in this cluster. - * If the encryption key protecting this resource is customer managed, then - * its version can be rotated in Cloud Key Management Service (Cloud KMS). - * The primary version of the key and its status will be reflected here when - * changes propagate from Cloud KMS. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $encryption_info; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $replication_state - * Output only. The state of replication for the table in this cluster. - * @type \Google\Cloud\Bigtable\Admin\V2\EncryptionInfo[] $encryption_info - * Output only. The encryption information for the table in this cluster. - * If the encryption key protecting this resource is customer managed, then - * its version can be rotated in Cloud Key Management Service (Cloud KMS). - * The primary version of the key and its status will be reflected here when - * changes propagate from Cloud KMS. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The state of replication for the table in this cluster. - * - * Generated from protobuf field .google.bigtable.admin.v2.Table.ClusterState.ReplicationState replication_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getReplicationState() - { - return $this->replication_state; - } - - /** - * Output only. The state of replication for the table in this cluster. - * - * Generated from protobuf field .google.bigtable.admin.v2.Table.ClusterState.ReplicationState replication_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setReplicationState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\Admin\V2\Table\ClusterState\ReplicationState::class); - $this->replication_state = $var; - - return $this; - } - - /** - * Output only. The encryption information for the table in this cluster. - * If the encryption key protecting this resource is customer managed, then - * its version can be rotated in Cloud Key Management Service (Cloud KMS). - * The primary version of the key and its status will be reflected here when - * changes propagate from Cloud KMS. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\Bigtable\Admin\V2\EncryptionInfo> - */ - public function getEncryptionInfo() - { - return $this->encryption_info; - } - - /** - * Output only. The encryption information for the table in this cluster. - * If the encryption key protecting this resource is customer managed, then - * its version can be rotated in Cloud Key Management Service (Cloud KMS). - * The primary version of the key and its status will be reflected here when - * changes propagate from Cloud KMS. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Bigtable\Admin\V2\EncryptionInfo[] $var - * @return $this - */ - public function setEncryptionInfo($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\EncryptionInfo::class); - $this->encryption_info = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/ClusterState/ReplicationState.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/ClusterState/ReplicationState.php deleted file mode 100644 index 1ce574fd5312..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/ClusterState/ReplicationState.php +++ /dev/null @@ -1,90 +0,0 @@ -google.bigtable.admin.v2.Table.ClusterState.ReplicationState - */ -class ReplicationState -{ - /** - * The replication state of the table is unknown in this cluster. - * - * Generated from protobuf enum STATE_NOT_KNOWN = 0; - */ - const STATE_NOT_KNOWN = 0; - /** - * The cluster was recently created, and the table must finish copying - * over pre-existing data from other clusters before it can begin - * receiving live replication updates and serving Data API requests. - * - * Generated from protobuf enum INITIALIZING = 1; - */ - const INITIALIZING = 1; - /** - * The table is temporarily unable to serve Data API requests from this - * cluster due to planned internal maintenance. - * - * Generated from protobuf enum PLANNED_MAINTENANCE = 2; - */ - const PLANNED_MAINTENANCE = 2; - /** - * The table is temporarily unable to serve Data API requests from this - * cluster due to unplanned or emergency maintenance. - * - * Generated from protobuf enum UNPLANNED_MAINTENANCE = 3; - */ - const UNPLANNED_MAINTENANCE = 3; - /** - * The table can serve Data API requests from this cluster. Depending on - * replication delay, reads may not immediately reflect the state of the - * table in other clusters. - * - * Generated from protobuf enum READY = 4; - */ - const READY = 4; - /** - * The table is fully created and ready for use after a restore, and is - * being optimized for performance. When optimizations are complete, the - * table will transition to `READY` state. - * - * Generated from protobuf enum READY_OPTIMIZING = 5; - */ - const READY_OPTIMIZING = 5; - - private static $valueToName = [ - self::STATE_NOT_KNOWN => 'STATE_NOT_KNOWN', - self::INITIALIZING => 'INITIALIZING', - self::PLANNED_MAINTENANCE => 'PLANNED_MAINTENANCE', - self::UNPLANNED_MAINTENANCE => 'UNPLANNED_MAINTENANCE', - self::READY => 'READY', - self::READY_OPTIMIZING => 'READY_OPTIMIZING', - ]; - - 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/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/TimestampGranularity.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/TimestampGranularity.php deleted file mode 100644 index df2edb453322..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/TimestampGranularity.php +++ /dev/null @@ -1,56 +0,0 @@ -google.bigtable.admin.v2.Table.TimestampGranularity - */ -class TimestampGranularity -{ - /** - * The user did not specify a granularity. Should not be returned. - * When specified during table creation, MILLIS will be used. - * - * Generated from protobuf enum TIMESTAMP_GRANULARITY_UNSPECIFIED = 0; - */ - const TIMESTAMP_GRANULARITY_UNSPECIFIED = 0; - /** - * The table keeps data versioned at a granularity of 1ms. - * - * Generated from protobuf enum MILLIS = 1; - */ - const MILLIS = 1; - - private static $valueToName = [ - self::TIMESTAMP_GRANULARITY_UNSPECIFIED => 'TIMESTAMP_GRANULARITY_UNSPECIFIED', - self::MILLIS => 'MILLIS', - ]; - - 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/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/View.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/View.php deleted file mode 100644 index 57306a4bc7bd..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Table/View.php +++ /dev/null @@ -1,83 +0,0 @@ -google.bigtable.admin.v2.Table.View - */ -class View -{ - /** - * Uses the default view for each method as documented in its request. - * - * Generated from protobuf enum VIEW_UNSPECIFIED = 0; - */ - const VIEW_UNSPECIFIED = 0; - /** - * Only populates `name`. - * - * Generated from protobuf enum NAME_ONLY = 1; - */ - const NAME_ONLY = 1; - /** - * Only populates `name` and fields related to the table's schema. - * - * Generated from protobuf enum SCHEMA_VIEW = 2; - */ - const SCHEMA_VIEW = 2; - /** - * Only populates `name` and fields related to the table's replication - * state. - * - * Generated from protobuf enum REPLICATION_VIEW = 3; - */ - const REPLICATION_VIEW = 3; - /** - * Only populates `name` and fields related to the table's encryption state. - * - * Generated from protobuf enum ENCRYPTION_VIEW = 5; - */ - const ENCRYPTION_VIEW = 5; - /** - * Populates all fields. - * - * Generated from protobuf enum FULL = 4; - */ - const FULL = 4; - - private static $valueToName = [ - self::VIEW_UNSPECIFIED => 'VIEW_UNSPECIFIED', - self::NAME_ONLY => 'NAME_ONLY', - self::SCHEMA_VIEW => 'SCHEMA_VIEW', - self::REPLICATION_VIEW => 'REPLICATION_VIEW', - self::ENCRYPTION_VIEW => 'ENCRYPTION_VIEW', - self::FULL => 'FULL', - ]; - - 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/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/TieredStorageConfig.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/TieredStorageConfig.php deleted file mode 100644 index 8eb26bc0e1dd..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/TieredStorageConfig.php +++ /dev/null @@ -1,85 +0,0 @@ -google.bigtable.admin.v2.TieredStorageConfig - */ -class TieredStorageConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Rule to specify what data is stored in the infrequent access(IA) tier. - * The IA tier allows storing more data per node with reduced performance. - * - * Generated from protobuf field .google.bigtable.admin.v2.TieredStorageRule infrequent_access = 1; - */ - protected $infrequent_access = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\TieredStorageRule $infrequent_access - * Rule to specify what data is stored in the infrequent access(IA) tier. - * The IA tier allows storing more data per node with reduced performance. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); - parent::__construct($data); - } - - /** - * Rule to specify what data is stored in the infrequent access(IA) tier. - * The IA tier allows storing more data per node with reduced performance. - * - * Generated from protobuf field .google.bigtable.admin.v2.TieredStorageRule infrequent_access = 1; - * @return \Google\Cloud\Bigtable\Admin\V2\TieredStorageRule|null - */ - public function getInfrequentAccess() - { - return $this->infrequent_access; - } - - public function hasInfrequentAccess() - { - return isset($this->infrequent_access); - } - - public function clearInfrequentAccess() - { - unset($this->infrequent_access); - } - - /** - * Rule to specify what data is stored in the infrequent access(IA) tier. - * The IA tier allows storing more data per node with reduced performance. - * - * Generated from protobuf field .google.bigtable.admin.v2.TieredStorageRule infrequent_access = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\TieredStorageRule $var - * @return $this - */ - public function setInfrequentAccess($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\TieredStorageRule::class); - $this->infrequent_access = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/TieredStorageRule.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/TieredStorageRule.php deleted file mode 100644 index b3e999dd98cf..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/TieredStorageRule.php +++ /dev/null @@ -1,78 +0,0 @@ -google.bigtable.admin.v2.TieredStorageRule - */ -class TieredStorageRule extends \Google\Protobuf\Internal\Message -{ - protected $rule; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Duration $include_if_older_than - * Include cells older than the given age. - * For the infrequent access tier, this value must be at least 30 days. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Table::initOnce(); - parent::__construct($data); - } - - /** - * Include cells older than the given age. - * For the infrequent access tier, this value must be at least 30 days. - * - * Generated from protobuf field .google.protobuf.Duration include_if_older_than = 1; - * @return \Google\Protobuf\Duration|null - */ - public function getIncludeIfOlderThan() - { - return $this->readOneof(1); - } - - public function hasIncludeIfOlderThan() - { - return $this->hasOneof(1); - } - - /** - * Include cells older than the given age. - * For the infrequent access tier, this value must be at least 30 days. - * - * Generated from protobuf field .google.protobuf.Duration include_if_older_than = 1; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setIncludeIfOlderThan($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getRule() - { - return $this->whichOneof("rule"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type.php deleted file mode 100644 index d39384a88b57..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type.php +++ /dev/null @@ -1,521 +0,0 @@ - INT64(-1)`, but - * `STRING("-00001") > STRING("00001")`. - * - * Generated from protobuf message google.bigtable.admin.v2.Type - */ -class Type extends \Google\Protobuf\Internal\Message -{ - protected $kind; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\Type\Bytes $bytes_type - * Bytes - * @type \Google\Cloud\Bigtable\Admin\V2\Type\PBString $string_type - * String - * @type \Google\Cloud\Bigtable\Admin\V2\Type\Int64 $int64_type - * Int64 - * @type \Google\Cloud\Bigtable\Admin\V2\Type\Float32 $float32_type - * Float32 - * @type \Google\Cloud\Bigtable\Admin\V2\Type\Float64 $float64_type - * Float64 - * @type \Google\Cloud\Bigtable\Admin\V2\Type\PBBool $bool_type - * Bool - * @type \Google\Cloud\Bigtable\Admin\V2\Type\Timestamp $timestamp_type - * Timestamp - * @type \Google\Cloud\Bigtable\Admin\V2\Type\Date $date_type - * Date - * @type \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate $aggregate_type - * Aggregate - * @type \Google\Cloud\Bigtable\Admin\V2\Type\Struct $struct_type - * Struct - * @type \Google\Cloud\Bigtable\Admin\V2\Type\PBArray $array_type - * Array - * @type \Google\Cloud\Bigtable\Admin\V2\Type\Map $map_type - * Map - * @type \Google\Cloud\Bigtable\Admin\V2\Type\Proto $proto_type - * Proto - * @type \Google\Cloud\Bigtable\Admin\V2\Type\Enum $enum_type - * Enum - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * Bytes - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Bytes bytes_type = 1; - * @return \Google\Cloud\Bigtable\Admin\V2\Type\Bytes|null - */ - public function getBytesType() - { - return $this->readOneof(1); - } - - public function hasBytesType() - { - return $this->hasOneof(1); - } - - /** - * Bytes - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Bytes bytes_type = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\Type\Bytes $var - * @return $this - */ - public function setBytesType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Bytes::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * String - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.String string_type = 2; - * @return \Google\Cloud\Bigtable\Admin\V2\Type\PBString|null - */ - public function getStringType() - { - return $this->readOneof(2); - } - - public function hasStringType() - { - return $this->hasOneof(2); - } - - /** - * String - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.String string_type = 2; - * @param \Google\Cloud\Bigtable\Admin\V2\Type\PBString $var - * @return $this - */ - public function setStringType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\PBString::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Int64 - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Int64 int64_type = 5; - * @return \Google\Cloud\Bigtable\Admin\V2\Type\Int64|null - */ - public function getInt64Type() - { - return $this->readOneof(5); - } - - public function hasInt64Type() - { - return $this->hasOneof(5); - } - - /** - * Int64 - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Int64 int64_type = 5; - * @param \Google\Cloud\Bigtable\Admin\V2\Type\Int64 $var - * @return $this - */ - public function setInt64Type($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Int64::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Float32 - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Float32 float32_type = 12; - * @return \Google\Cloud\Bigtable\Admin\V2\Type\Float32|null - */ - public function getFloat32Type() - { - return $this->readOneof(12); - } - - public function hasFloat32Type() - { - return $this->hasOneof(12); - } - - /** - * Float32 - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Float32 float32_type = 12; - * @param \Google\Cloud\Bigtable\Admin\V2\Type\Float32 $var - * @return $this - */ - public function setFloat32Type($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Float32::class); - $this->writeOneof(12, $var); - - return $this; - } - - /** - * Float64 - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Float64 float64_type = 9; - * @return \Google\Cloud\Bigtable\Admin\V2\Type\Float64|null - */ - public function getFloat64Type() - { - return $this->readOneof(9); - } - - public function hasFloat64Type() - { - return $this->hasOneof(9); - } - - /** - * Float64 - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Float64 float64_type = 9; - * @param \Google\Cloud\Bigtable\Admin\V2\Type\Float64 $var - * @return $this - */ - public function setFloat64Type($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Float64::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * Bool - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Bool bool_type = 8; - * @return \Google\Cloud\Bigtable\Admin\V2\Type\PBBool|null - */ - public function getBoolType() - { - return $this->readOneof(8); - } - - public function hasBoolType() - { - return $this->hasOneof(8); - } - - /** - * Bool - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Bool bool_type = 8; - * @param \Google\Cloud\Bigtable\Admin\V2\Type\PBBool $var - * @return $this - */ - public function setBoolType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\PBBool::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Timestamp - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Timestamp timestamp_type = 10; - * @return \Google\Cloud\Bigtable\Admin\V2\Type\Timestamp|null - */ - public function getTimestampType() - { - return $this->readOneof(10); - } - - public function hasTimestampType() - { - return $this->hasOneof(10); - } - - /** - * Timestamp - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Timestamp timestamp_type = 10; - * @param \Google\Cloud\Bigtable\Admin\V2\Type\Timestamp $var - * @return $this - */ - public function setTimestampType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Timestamp::class); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * Date - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Date date_type = 11; - * @return \Google\Cloud\Bigtable\Admin\V2\Type\Date|null - */ - public function getDateType() - { - return $this->readOneof(11); - } - - public function hasDateType() - { - return $this->hasOneof(11); - } - - /** - * Date - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Date date_type = 11; - * @param \Google\Cloud\Bigtable\Admin\V2\Type\Date $var - * @return $this - */ - public function setDateType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Date::class); - $this->writeOneof(11, $var); - - return $this; - } - - /** - * Aggregate - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Aggregate aggregate_type = 6; - * @return \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate|null - */ - public function getAggregateType() - { - return $this->readOneof(6); - } - - public function hasAggregateType() - { - return $this->hasOneof(6); - } - - /** - * Aggregate - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Aggregate aggregate_type = 6; - * @param \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate $var - * @return $this - */ - public function setAggregateType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Struct - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Struct struct_type = 7; - * @return \Google\Cloud\Bigtable\Admin\V2\Type\Struct|null - */ - public function getStructType() - { - return $this->readOneof(7); - } - - public function hasStructType() - { - return $this->hasOneof(7); - } - - /** - * Struct - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Struct struct_type = 7; - * @param \Google\Cloud\Bigtable\Admin\V2\Type\Struct $var - * @return $this - */ - public function setStructType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Struct::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Array - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Array array_type = 3; - * @return \Google\Cloud\Bigtable\Admin\V2\Type\PBArray|null - */ - public function getArrayType() - { - return $this->readOneof(3); - } - - public function hasArrayType() - { - return $this->hasOneof(3); - } - - /** - * Array - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Array array_type = 3; - * @param \Google\Cloud\Bigtable\Admin\V2\Type\PBArray $var - * @return $this - */ - public function setArrayType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\PBArray::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Map - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Map map_type = 4; - * @return \Google\Cloud\Bigtable\Admin\V2\Type\Map|null - */ - public function getMapType() - { - return $this->readOneof(4); - } - - public function hasMapType() - { - return $this->hasOneof(4); - } - - /** - * Map - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Map map_type = 4; - * @param \Google\Cloud\Bigtable\Admin\V2\Type\Map $var - * @return $this - */ - public function setMapType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Map::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Proto - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Proto proto_type = 13; - * @return \Google\Cloud\Bigtable\Admin\V2\Type\Proto|null - */ - public function getProtoType() - { - return $this->readOneof(13); - } - - public function hasProtoType() - { - return $this->hasOneof(13); - } - - /** - * Proto - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Proto proto_type = 13; - * @param \Google\Cloud\Bigtable\Admin\V2\Type\Proto $var - * @return $this - */ - public function setProtoType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Proto::class); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * Enum - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Enum enum_type = 14; - * @return \Google\Cloud\Bigtable\Admin\V2\Type\Enum|null - */ - public function getEnumType() - { - return $this->readOneof(14); - } - - public function hasEnumType() - { - return $this->hasOneof(14); - } - - /** - * Enum - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Enum enum_type = 14; - * @param \Google\Cloud\Bigtable\Admin\V2\Type\Enum $var - * @return $this - */ - public function setEnumType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Enum::class); - $this->writeOneof(14, $var); - - return $this; - } - - /** - * @return string - */ - public function getKind() - { - return $this->whichOneof("kind"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate.php deleted file mode 100644 index 7304bbfc22f6..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate.php +++ /dev/null @@ -1,281 +0,0 @@ -google.bigtable.admin.v2.Type.Aggregate - */ -class Aggregate extends \Google\Protobuf\Internal\Message -{ - /** - * Type of the inputs that are accumulated by this `Aggregate`, which must - * specify a full encoding. - * Use `AddInput` mutations to accumulate new inputs. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type input_type = 1; - */ - protected $input_type = null; - /** - * Output only. Type that holds the internal accumulator state for the - * `Aggregate`. This is a function of the `input_type` and `aggregator` - * chosen, and will always specify a full encoding. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type state_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state_type = null; - protected $aggregator; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\Type $input_type - * Type of the inputs that are accumulated by this `Aggregate`, which must - * specify a full encoding. - * Use `AddInput` mutations to accumulate new inputs. - * @type \Google\Cloud\Bigtable\Admin\V2\Type $state_type - * Output only. Type that holds the internal accumulator state for the - * `Aggregate`. This is a function of the `input_type` and `aggregator` - * chosen, and will always specify a full encoding. - * @type \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate\Sum $sum - * Sum aggregator. - * @type \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate\HyperLogLogPlusPlusUniqueCount $hllpp_unique_count - * HyperLogLogPlusPlusUniqueCount aggregator. - * @type \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate\Max $max - * Max aggregator. - * @type \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate\Min $min - * Min aggregator. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * Type of the inputs that are accumulated by this `Aggregate`, which must - * specify a full encoding. - * Use `AddInput` mutations to accumulate new inputs. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type input_type = 1; - * @return \Google\Cloud\Bigtable\Admin\V2\Type|null - */ - public function getInputType() - { - return $this->input_type; - } - - public function hasInputType() - { - return isset($this->input_type); - } - - public function clearInputType() - { - unset($this->input_type); - } - - /** - * Type of the inputs that are accumulated by this `Aggregate`, which must - * specify a full encoding. - * Use `AddInput` mutations to accumulate new inputs. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type input_type = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\Type $var - * @return $this - */ - public function setInputType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type::class); - $this->input_type = $var; - - return $this; - } - - /** - * Output only. Type that holds the internal accumulator state for the - * `Aggregate`. This is a function of the `input_type` and `aggregator` - * chosen, and will always specify a full encoding. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type state_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Bigtable\Admin\V2\Type|null - */ - public function getStateType() - { - return $this->state_type; - } - - public function hasStateType() - { - return isset($this->state_type); - } - - public function clearStateType() - { - unset($this->state_type); - } - - /** - * Output only. Type that holds the internal accumulator state for the - * `Aggregate`. This is a function of the `input_type` and `aggregator` - * chosen, and will always specify a full encoding. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type state_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Bigtable\Admin\V2\Type $var - * @return $this - */ - public function setStateType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type::class); - $this->state_type = $var; - - return $this; - } - - /** - * Sum aggregator. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Aggregate.Sum sum = 4; - * @return \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate\Sum|null - */ - public function getSum() - { - return $this->readOneof(4); - } - - public function hasSum() - { - return $this->hasOneof(4); - } - - /** - * Sum aggregator. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Aggregate.Sum sum = 4; - * @param \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate\Sum $var - * @return $this - */ - public function setSum($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate\Sum::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * HyperLogLogPlusPlusUniqueCount aggregator. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount hllpp_unique_count = 5; - * @return \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate\HyperLogLogPlusPlusUniqueCount|null - */ - public function getHllppUniqueCount() - { - return $this->readOneof(5); - } - - public function hasHllppUniqueCount() - { - return $this->hasOneof(5); - } - - /** - * HyperLogLogPlusPlusUniqueCount aggregator. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount hllpp_unique_count = 5; - * @param \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate\HyperLogLogPlusPlusUniqueCount $var - * @return $this - */ - public function setHllppUniqueCount($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate\HyperLogLogPlusPlusUniqueCount::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Max aggregator. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Aggregate.Max max = 6; - * @return \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate\Max|null - */ - public function getMax() - { - return $this->readOneof(6); - } - - public function hasMax() - { - return $this->hasOneof(6); - } - - /** - * Max aggregator. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Aggregate.Max max = 6; - * @param \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate\Max $var - * @return $this - */ - public function setMax($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate\Max::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Min aggregator. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Aggregate.Min min = 7; - * @return \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate\Min|null - */ - public function getMin() - { - return $this->readOneof(7); - } - - public function hasMin() - { - return $this->hasOneof(7); - } - - /** - * Min aggregator. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Aggregate.Min min = 7; - * @param \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate\Min $var - * @return $this - */ - public function setMin($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Aggregate\Min::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * @return string - */ - public function getAggregator() - { - return $this->whichOneof("aggregator"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate/HyperLogLogPlusPlusUniqueCount.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate/HyperLogLogPlusPlusUniqueCount.php deleted file mode 100644 index 9766958b1027..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate/HyperLogLogPlusPlusUniqueCount.php +++ /dev/null @@ -1,39 +0,0 @@ -google.bigtable.admin.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount - */ -class HyperLogLogPlusPlusUniqueCount extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate/Max.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate/Max.php deleted file mode 100644 index c48a536e3b91..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate/Max.php +++ /dev/null @@ -1,35 +0,0 @@ -google.bigtable.admin.v2.Type.Aggregate.Max - */ -class Max extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate/Min.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate/Min.php deleted file mode 100644 index 45ebd904bf52..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate/Min.php +++ /dev/null @@ -1,35 +0,0 @@ -google.bigtable.admin.v2.Type.Aggregate.Min - */ -class Min extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate/Sum.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate/Sum.php deleted file mode 100644 index 0d316912f3a0..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Aggregate/Sum.php +++ /dev/null @@ -1,35 +0,0 @@ -google.bigtable.admin.v2.Type.Aggregate.Sum - */ -class Sum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Bytes.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Bytes.php deleted file mode 100644 index 3cc75aa0d6a3..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Bytes.php +++ /dev/null @@ -1,78 +0,0 @@ -google.bigtable.admin.v2.Type.Bytes - */ -class Bytes extends \Google\Protobuf\Internal\Message -{ - /** - * The encoding to use when converting to or from lower level types. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Bytes.Encoding encoding = 1; - */ - protected $encoding = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\Type\Bytes\Encoding $encoding - * The encoding to use when converting to or from lower level types. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * The encoding to use when converting to or from lower level types. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Bytes.Encoding encoding = 1; - * @return \Google\Cloud\Bigtable\Admin\V2\Type\Bytes\Encoding|null - */ - public function getEncoding() - { - return $this->encoding; - } - - public function hasEncoding() - { - return isset($this->encoding); - } - - public function clearEncoding() - { - unset($this->encoding); - } - - /** - * The encoding to use when converting to or from lower level types. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Bytes.Encoding encoding = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\Type\Bytes\Encoding $var - * @return $this - */ - public function setEncoding($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Bytes\Encoding::class); - $this->encoding = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Bytes/Encoding.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Bytes/Encoding.php deleted file mode 100644 index 993b209ddf23..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Bytes/Encoding.php +++ /dev/null @@ -1,75 +0,0 @@ -google.bigtable.admin.v2.Type.Bytes.Encoding - */ -class Encoding extends \Google\Protobuf\Internal\Message -{ - protected $encoding; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\Type\Bytes\Encoding\Raw $raw - * Use `Raw` encoding. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * Use `Raw` encoding. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Bytes.Encoding.Raw raw = 1; - * @return \Google\Cloud\Bigtable\Admin\V2\Type\Bytes\Encoding\Raw|null - */ - public function getRaw() - { - return $this->readOneof(1); - } - - public function hasRaw() - { - return $this->hasOneof(1); - } - - /** - * Use `Raw` encoding. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Bytes.Encoding.Raw raw = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\Type\Bytes\Encoding\Raw $var - * @return $this - */ - public function setRaw($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Bytes\Encoding\Raw::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getEncoding() - { - return $this->whichOneof("encoding"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Bytes/Encoding/Raw.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Bytes/Encoding/Raw.php deleted file mode 100644 index d41d5e8c76e2..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Bytes/Encoding/Raw.php +++ /dev/null @@ -1,35 +0,0 @@ -google.bigtable.admin.v2.Type.Bytes.Encoding.Raw - */ -class Raw extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Date.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Date.php deleted file mode 100644 index 15dd64a0eecc..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Date.php +++ /dev/null @@ -1,34 +0,0 @@ -google.bigtable.admin.v2.Type.Date - */ -class Date extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Enum.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Enum.php deleted file mode 100644 index c062b81ea28c..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Enum.php +++ /dev/null @@ -1,106 +0,0 @@ -google.bigtable.admin.v2.Type.Enum - */ -class Enum extends \Google\Protobuf\Internal\Message -{ - /** - * The ID of the schema bundle that this enum is defined in. - * - * Generated from protobuf field string schema_bundle_id = 1; - */ - protected $schema_bundle_id = ''; - /** - * The fully qualified name of the protobuf enum message, including package. - * In the format of "foo.bar.EnumMessage". - * - * Generated from protobuf field string enum_name = 2; - */ - protected $enum_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $schema_bundle_id - * The ID of the schema bundle that this enum is defined in. - * @type string $enum_name - * The fully qualified name of the protobuf enum message, including package. - * In the format of "foo.bar.EnumMessage". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * The ID of the schema bundle that this enum is defined in. - * - * Generated from protobuf field string schema_bundle_id = 1; - * @return string - */ - public function getSchemaBundleId() - { - return $this->schema_bundle_id; - } - - /** - * The ID of the schema bundle that this enum is defined in. - * - * Generated from protobuf field string schema_bundle_id = 1; - * @param string $var - * @return $this - */ - public function setSchemaBundleId($var) - { - GPBUtil::checkString($var, True); - $this->schema_bundle_id = $var; - - return $this; - } - - /** - * The fully qualified name of the protobuf enum message, including package. - * In the format of "foo.bar.EnumMessage". - * - * Generated from protobuf field string enum_name = 2; - * @return string - */ - public function getEnumName() - { - return $this->enum_name; - } - - /** - * The fully qualified name of the protobuf enum message, including package. - * In the format of "foo.bar.EnumMessage". - * - * Generated from protobuf field string enum_name = 2; - * @param string $var - * @return $this - */ - public function setEnumName($var) - { - GPBUtil::checkString($var, True); - $this->enum_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Float32.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Float32.php deleted file mode 100644 index 5f49aa029d66..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Float32.php +++ /dev/null @@ -1,34 +0,0 @@ -google.bigtable.admin.v2.Type.Float32 - */ -class Float32 extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Float64.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Float64.php deleted file mode 100644 index 3b6811a39598..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Float64.php +++ /dev/null @@ -1,34 +0,0 @@ -google.bigtable.admin.v2.Type.Float64 - */ -class Float64 extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Int64.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Int64.php deleted file mode 100644 index 325abee6f69d..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Int64.php +++ /dev/null @@ -1,78 +0,0 @@ -google.bigtable.admin.v2.Type.Int64 - */ -class Int64 extends \Google\Protobuf\Internal\Message -{ - /** - * The encoding to use when converting to or from lower level types. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Int64.Encoding encoding = 1; - */ - protected $encoding = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\Type\Int64\Encoding $encoding - * The encoding to use when converting to or from lower level types. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * The encoding to use when converting to or from lower level types. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Int64.Encoding encoding = 1; - * @return \Google\Cloud\Bigtable\Admin\V2\Type\Int64\Encoding|null - */ - public function getEncoding() - { - return $this->encoding; - } - - public function hasEncoding() - { - return isset($this->encoding); - } - - public function clearEncoding() - { - unset($this->encoding); - } - - /** - * The encoding to use when converting to or from lower level types. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Int64.Encoding encoding = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\Type\Int64\Encoding $var - * @return $this - */ - public function setEncoding($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Int64\Encoding::class); - $this->encoding = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Int64/Encoding.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Int64/Encoding.php deleted file mode 100644 index 7fbd0d44ea0f..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Int64/Encoding.php +++ /dev/null @@ -1,108 +0,0 @@ -google.bigtable.admin.v2.Type.Int64.Encoding - */ -class Encoding extends \Google\Protobuf\Internal\Message -{ - protected $encoding; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\Type\Int64\Encoding\BigEndianBytes $big_endian_bytes - * Use `BigEndianBytes` encoding. - * @type \Google\Cloud\Bigtable\Admin\V2\Type\Int64\Encoding\OrderedCodeBytes $ordered_code_bytes - * Use `OrderedCodeBytes` encoding. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * Use `BigEndianBytes` encoding. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes big_endian_bytes = 1; - * @return \Google\Cloud\Bigtable\Admin\V2\Type\Int64\Encoding\BigEndianBytes|null - */ - public function getBigEndianBytes() - { - return $this->readOneof(1); - } - - public function hasBigEndianBytes() - { - return $this->hasOneof(1); - } - - /** - * Use `BigEndianBytes` encoding. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes big_endian_bytes = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\Type\Int64\Encoding\BigEndianBytes $var - * @return $this - */ - public function setBigEndianBytes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Int64\Encoding\BigEndianBytes::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Use `OrderedCodeBytes` encoding. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes ordered_code_bytes = 2; - * @return \Google\Cloud\Bigtable\Admin\V2\Type\Int64\Encoding\OrderedCodeBytes|null - */ - public function getOrderedCodeBytes() - { - return $this->readOneof(2); - } - - public function hasOrderedCodeBytes() - { - return $this->hasOneof(2); - } - - /** - * Use `OrderedCodeBytes` encoding. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes ordered_code_bytes = 2; - * @param \Google\Cloud\Bigtable\Admin\V2\Type\Int64\Encoding\OrderedCodeBytes $var - * @return $this - */ - public function setOrderedCodeBytes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Int64\Encoding\OrderedCodeBytes::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getEncoding() - { - return $this->whichOneof("encoding"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Int64/Encoding/BigEndianBytes.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Int64/Encoding/BigEndianBytes.php deleted file mode 100644 index 736c307b55a2..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Int64/Encoding/BigEndianBytes.php +++ /dev/null @@ -1,94 +0,0 @@ -google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes - */ -class BigEndianBytes extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated: ignored if set. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Bytes bytes_type = 1 [deprecated = true]; - * @deprecated - */ - protected $bytes_type = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\Type\Bytes $bytes_type - * Deprecated: ignored if set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated: ignored if set. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Bytes bytes_type = 1 [deprecated = true]; - * @return \Google\Cloud\Bigtable\Admin\V2\Type\Bytes|null - * @deprecated - */ - public function getBytesType() - { - if (isset($this->bytes_type)) { - @trigger_error('bytes_type is deprecated.', E_USER_DEPRECATED); - } - return $this->bytes_type; - } - - public function hasBytesType() - { - if (isset($this->bytes_type)) { - @trigger_error('bytes_type is deprecated.', E_USER_DEPRECATED); - } - return isset($this->bytes_type); - } - - public function clearBytesType() - { - @trigger_error('bytes_type is deprecated.', E_USER_DEPRECATED); - unset($this->bytes_type); - } - - /** - * Deprecated: ignored if set. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Bytes bytes_type = 1 [deprecated = true]; - * @param \Google\Cloud\Bigtable\Admin\V2\Type\Bytes $var - * @return $this - * @deprecated - */ - public function setBytesType($var) - { - @trigger_error('bytes_type is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Bytes::class); - $this->bytes_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Int64/Encoding/OrderedCodeBytes.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Int64/Encoding/OrderedCodeBytes.php deleted file mode 100644 index 18c29960fa3f..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Int64/Encoding/OrderedCodeBytes.php +++ /dev/null @@ -1,36 +0,0 @@ -google.bigtable.admin.v2.Type.Int64.Encoding.OrderedCodeBytes - */ -class OrderedCodeBytes extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Map.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Map.php deleted file mode 100644 index 191950d5cbfd..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Map.php +++ /dev/null @@ -1,131 +0,0 @@ -google.bigtable.admin.v2.Type.Map - */ -class Map extends \Google\Protobuf\Internal\Message -{ - /** - * The type of a map key. - * Only `Bytes`, `String`, and `Int64` are allowed as key types. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type key_type = 1; - */ - protected $key_type = null; - /** - * The type of the values in a map. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type value_type = 2; - */ - protected $value_type = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\Type $key_type - * The type of a map key. - * Only `Bytes`, `String`, and `Int64` are allowed as key types. - * @type \Google\Cloud\Bigtable\Admin\V2\Type $value_type - * The type of the values in a map. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * The type of a map key. - * Only `Bytes`, `String`, and `Int64` are allowed as key types. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type key_type = 1; - * @return \Google\Cloud\Bigtable\Admin\V2\Type|null - */ - public function getKeyType() - { - return $this->key_type; - } - - public function hasKeyType() - { - return isset($this->key_type); - } - - public function clearKeyType() - { - unset($this->key_type); - } - - /** - * The type of a map key. - * Only `Bytes`, `String`, and `Int64` are allowed as key types. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type key_type = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\Type $var - * @return $this - */ - public function setKeyType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type::class); - $this->key_type = $var; - - return $this; - } - - /** - * The type of the values in a map. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type value_type = 2; - * @return \Google\Cloud\Bigtable\Admin\V2\Type|null - */ - public function getValueType() - { - return $this->value_type; - } - - public function hasValueType() - { - return isset($this->value_type); - } - - public function clearValueType() - { - unset($this->value_type); - } - - /** - * The type of the values in a map. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type value_type = 2; - * @param \Google\Cloud\Bigtable\Admin\V2\Type $var - * @return $this - */ - public function setValueType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type::class); - $this->value_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBArray.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBArray.php deleted file mode 100644 index 8001121d0488..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBArray.php +++ /dev/null @@ -1,78 +0,0 @@ -google.bigtable.admin.v2.Type.Array - */ -class PBArray extends \Google\Protobuf\Internal\Message -{ - /** - * The type of the elements in the array. This must not be `Array`. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type element_type = 1; - */ - protected $element_type = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\Type $element_type - * The type of the elements in the array. This must not be `Array`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * The type of the elements in the array. This must not be `Array`. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type element_type = 1; - * @return \Google\Cloud\Bigtable\Admin\V2\Type|null - */ - public function getElementType() - { - return $this->element_type; - } - - public function hasElementType() - { - return isset($this->element_type); - } - - public function clearElementType() - { - unset($this->element_type); - } - - /** - * The type of the elements in the array. This must not be `Array`. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type element_type = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\Type $var - * @return $this - */ - public function setElementType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type::class); - $this->element_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBBool.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBBool.php deleted file mode 100644 index 29daecdd3e86..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBBool.php +++ /dev/null @@ -1,34 +0,0 @@ -google.bigtable.admin.v2.Type.Bool - */ -class PBBool extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBString.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBString.php deleted file mode 100644 index 4583cc1ce63f..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBString.php +++ /dev/null @@ -1,78 +0,0 @@ -google.bigtable.admin.v2.Type.String - */ -class PBString extends \Google\Protobuf\Internal\Message -{ - /** - * The encoding to use when converting to or from lower level types. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.String.Encoding encoding = 1; - */ - protected $encoding = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\Type\PBString\Encoding $encoding - * The encoding to use when converting to or from lower level types. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * The encoding to use when converting to or from lower level types. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.String.Encoding encoding = 1; - * @return \Google\Cloud\Bigtable\Admin\V2\Type\PBString\Encoding|null - */ - public function getEncoding() - { - return $this->encoding; - } - - public function hasEncoding() - { - return isset($this->encoding); - } - - public function clearEncoding() - { - unset($this->encoding); - } - - /** - * The encoding to use when converting to or from lower level types. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.String.Encoding encoding = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\Type\PBString\Encoding $var - * @return $this - */ - public function setEncoding($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\PBString\Encoding::class); - $this->encoding = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBString/Encoding.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBString/Encoding.php deleted file mode 100644 index 3fd433f39874..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBString/Encoding.php +++ /dev/null @@ -1,117 +0,0 @@ -google.bigtable.admin.v2.Type.String.Encoding - */ -class Encoding extends \Google\Protobuf\Internal\Message -{ - protected $encoding; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\Type\PBString\Encoding\Utf8Raw $utf8_raw - * Deprecated: if set, converts to an empty `utf8_bytes`. - * @type \Google\Cloud\Bigtable\Admin\V2\Type\PBString\Encoding\Utf8Bytes $utf8_bytes - * Use `Utf8Bytes` encoding. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated: if set, converts to an empty `utf8_bytes`. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw utf8_raw = 1 [deprecated = true]; - * @return \Google\Cloud\Bigtable\Admin\V2\Type\PBString\Encoding\Utf8Raw|null - * @deprecated - */ - public function getUtf8Raw() - { - if ($this->hasOneof(1)) { - @trigger_error('utf8_raw is deprecated.', E_USER_DEPRECATED); - } - return $this->readOneof(1); - } - - public function hasUtf8Raw() - { - if ($this->hasOneof(1)) { - @trigger_error('utf8_raw is deprecated.', E_USER_DEPRECATED); - } - return $this->hasOneof(1); - } - - /** - * Deprecated: if set, converts to an empty `utf8_bytes`. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw utf8_raw = 1 [deprecated = true]; - * @param \Google\Cloud\Bigtable\Admin\V2\Type\PBString\Encoding\Utf8Raw $var - * @return $this - * @deprecated - */ - public function setUtf8Raw($var) - { - @trigger_error('utf8_raw is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\PBString\Encoding\Utf8Raw::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Use `Utf8Bytes` encoding. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes utf8_bytes = 2; - * @return \Google\Cloud\Bigtable\Admin\V2\Type\PBString\Encoding\Utf8Bytes|null - */ - public function getUtf8Bytes() - { - return $this->readOneof(2); - } - - public function hasUtf8Bytes() - { - return $this->hasOneof(2); - } - - /** - * Use `Utf8Bytes` encoding. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes utf8_bytes = 2; - * @param \Google\Cloud\Bigtable\Admin\V2\Type\PBString\Encoding\Utf8Bytes $var - * @return $this - */ - public function setUtf8Bytes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\PBString\Encoding\Utf8Bytes::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getEncoding() - { - return $this->whichOneof("encoding"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBString/Encoding/Utf8Bytes.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBString/Encoding/Utf8Bytes.php deleted file mode 100644 index ab79a1b9eeb4..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBString/Encoding/Utf8Bytes.php +++ /dev/null @@ -1,41 +0,0 @@ -google.bigtable.admin.v2.Type.String.Encoding.Utf8Bytes - */ -class Utf8Bytes extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBString/Encoding/Utf8Raw.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBString/Encoding/Utf8Raw.php deleted file mode 100644 index f292bc602c83..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/PBString/Encoding/Utf8Raw.php +++ /dev/null @@ -1,34 +0,0 @@ -google.bigtable.admin.v2.Type.String.Encoding.Utf8Raw - */ -class Utf8Raw extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Proto.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Proto.php deleted file mode 100644 index 08adcf4ba2c1..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Proto.php +++ /dev/null @@ -1,106 +0,0 @@ -google.bigtable.admin.v2.Type.Proto - */ -class Proto extends \Google\Protobuf\Internal\Message -{ - /** - * The ID of the schema bundle that this proto is defined in. - * - * Generated from protobuf field string schema_bundle_id = 1; - */ - protected $schema_bundle_id = ''; - /** - * The fully qualified name of the protobuf message, including package. In - * the format of "foo.bar.Message". - * - * Generated from protobuf field string message_name = 2; - */ - protected $message_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $schema_bundle_id - * The ID of the schema bundle that this proto is defined in. - * @type string $message_name - * The fully qualified name of the protobuf message, including package. In - * the format of "foo.bar.Message". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * The ID of the schema bundle that this proto is defined in. - * - * Generated from protobuf field string schema_bundle_id = 1; - * @return string - */ - public function getSchemaBundleId() - { - return $this->schema_bundle_id; - } - - /** - * The ID of the schema bundle that this proto is defined in. - * - * Generated from protobuf field string schema_bundle_id = 1; - * @param string $var - * @return $this - */ - public function setSchemaBundleId($var) - { - GPBUtil::checkString($var, True); - $this->schema_bundle_id = $var; - - return $this; - } - - /** - * The fully qualified name of the protobuf message, including package. In - * the format of "foo.bar.Message". - * - * Generated from protobuf field string message_name = 2; - * @return string - */ - public function getMessageName() - { - return $this->message_name; - } - - /** - * The fully qualified name of the protobuf message, including package. In - * the format of "foo.bar.Message". - * - * Generated from protobuf field string message_name = 2; - * @param string $var - * @return $this - */ - public function setMessageName($var) - { - GPBUtil::checkString($var, True); - $this->message_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct.php deleted file mode 100644 index 2975abb23717..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct.php +++ /dev/null @@ -1,114 +0,0 @@ -google.bigtable.admin.v2.Type.Struct - */ -class Struct extends \Google\Protobuf\Internal\Message -{ - /** - * The names and types of the fields in this struct. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.Type.Struct.Field fields = 1; - */ - private $fields; - /** - * The encoding to use when converting to or from lower level types. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Struct.Encoding encoding = 2; - */ - protected $encoding = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Field[] $fields - * The names and types of the fields in this struct. - * @type \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Encoding $encoding - * The encoding to use when converting to or from lower level types. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * The names and types of the fields in this struct. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.Type.Struct.Field fields = 1; - * @return RepeatedField<\Google\Cloud\Bigtable\Admin\V2\Type\Struct\Field> - */ - public function getFields() - { - return $this->fields; - } - - /** - * The names and types of the fields in this struct. - * - * Generated from protobuf field repeated .google.bigtable.admin.v2.Type.Struct.Field fields = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Field[] $var - * @return $this - */ - public function setFields($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Field::class); - $this->fields = $arr; - - return $this; - } - - /** - * The encoding to use when converting to or from lower level types. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Struct.Encoding encoding = 2; - * @return \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Encoding|null - */ - public function getEncoding() - { - return $this->encoding; - } - - public function hasEncoding() - { - return isset($this->encoding); - } - - public function clearEncoding() - { - unset($this->encoding); - } - - /** - * The encoding to use when converting to or from lower level types. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Struct.Encoding encoding = 2; - * @param \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Encoding $var - * @return $this - */ - public function setEncoding($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Encoding::class); - $this->encoding = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Encoding.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Encoding.php deleted file mode 100644 index 3830c5205d0e..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Encoding.php +++ /dev/null @@ -1,141 +0,0 @@ -google.bigtable.admin.v2.Type.Struct.Encoding - */ -class Encoding extends \Google\Protobuf\Internal\Message -{ - protected $encoding; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Encoding\Singleton $singleton - * Use `Singleton` encoding. - * @type \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Encoding\DelimitedBytes $delimited_bytes - * Use `DelimitedBytes` encoding. - * @type \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Encoding\OrderedCodeBytes $ordered_code_bytes - * User `OrderedCodeBytes` encoding. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * Use `Singleton` encoding. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Struct.Encoding.Singleton singleton = 1; - * @return \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Encoding\Singleton|null - */ - public function getSingleton() - { - return $this->readOneof(1); - } - - public function hasSingleton() - { - return $this->hasOneof(1); - } - - /** - * Use `Singleton` encoding. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Struct.Encoding.Singleton singleton = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Encoding\Singleton $var - * @return $this - */ - public function setSingleton($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Encoding\Singleton::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Use `DelimitedBytes` encoding. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes delimited_bytes = 2; - * @return \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Encoding\DelimitedBytes|null - */ - public function getDelimitedBytes() - { - return $this->readOneof(2); - } - - public function hasDelimitedBytes() - { - return $this->hasOneof(2); - } - - /** - * Use `DelimitedBytes` encoding. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes delimited_bytes = 2; - * @param \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Encoding\DelimitedBytes $var - * @return $this - */ - public function setDelimitedBytes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Encoding\DelimitedBytes::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * User `OrderedCodeBytes` encoding. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes ordered_code_bytes = 3; - * @return \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Encoding\OrderedCodeBytes|null - */ - public function getOrderedCodeBytes() - { - return $this->readOneof(3); - } - - public function hasOrderedCodeBytes() - { - return $this->hasOneof(3); - } - - /** - * User `OrderedCodeBytes` encoding. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes ordered_code_bytes = 3; - * @param \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Encoding\OrderedCodeBytes $var - * @return $this - */ - public function setOrderedCodeBytes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Struct\Encoding\OrderedCodeBytes::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getEncoding() - { - return $this->whichOneof("encoding"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Encoding/DelimitedBytes.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Encoding/DelimitedBytes.php deleted file mode 100644 index 9e787b1699ac..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Encoding/DelimitedBytes.php +++ /dev/null @@ -1,81 +0,0 @@ -google.bigtable.admin.v2.Type.Struct.Encoding.DelimitedBytes - */ -class DelimitedBytes extends \Google\Protobuf\Internal\Message -{ - /** - * Byte sequence used to delimit concatenated fields. The delimiter must - * contain at least 1 character and at most 50 characters. - * - * Generated from protobuf field bytes delimiter = 1; - */ - protected $delimiter = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $delimiter - * Byte sequence used to delimit concatenated fields. The delimiter must - * contain at least 1 character and at most 50 characters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * Byte sequence used to delimit concatenated fields. The delimiter must - * contain at least 1 character and at most 50 characters. - * - * Generated from protobuf field bytes delimiter = 1; - * @return string - */ - public function getDelimiter() - { - return $this->delimiter; - } - - /** - * Byte sequence used to delimit concatenated fields. The delimiter must - * contain at least 1 character and at most 50 characters. - * - * Generated from protobuf field bytes delimiter = 1; - * @param string $var - * @return $this - */ - public function setDelimiter($var) - { - GPBUtil::checkString($var, False); - $this->delimiter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Encoding/OrderedCodeBytes.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Encoding/OrderedCodeBytes.php deleted file mode 100644 index ffecbff176e8..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Encoding/OrderedCodeBytes.php +++ /dev/null @@ -1,62 +0,0 @@ - "\00\00" - * - STRUCT("") -> "\00\00" - * - STRUCT("", "") -> "\00\00" - * - STRUCT("", "B") -> "\00\00" + "\00\01" + "B" - * - STRUCT("A", "") -> "A" - * - STRUCT("", "B", "") -> "\00\00" + "\00\01" + "B" - * - STRUCT("A", "", "C") -> "A" + "\00\01" + "\00\00" + "\00\01" + "C" - * Since null bytes are always escaped, this encoding can cause size - * blowup for encodings like `Int64.BigEndianBytes` that are likely to - * produce many such bytes. - * Sorted mode: - * - Fields are encoded in sorted mode. - * - All values supported by the field encodings are allowed - * - Element-wise order is preserved: `A < B` if `A[0] < B[0]`, or if - * `A[0] == B[0] && A[1] < B[1]`, etc. Strict prefixes sort first. - * Distinct mode: - * - Fields are encoded in distinct mode. - * - All values supported by the field encodings are allowed. - * - * Generated from protobuf message google.bigtable.admin.v2.Type.Struct.Encoding.OrderedCodeBytes - */ -class OrderedCodeBytes extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Encoding/Singleton.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Encoding/Singleton.php deleted file mode 100644 index c1632a6b60f6..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Encoding/Singleton.php +++ /dev/null @@ -1,34 +0,0 @@ -google.bigtable.admin.v2.Type.Struct.Encoding.Singleton - */ -class Singleton extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Field.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Field.php deleted file mode 100644 index 8dbc5e0d4c50..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Struct/Field.php +++ /dev/null @@ -1,115 +0,0 @@ -google.bigtable.admin.v2.Type.Struct.Field - */ -class Field extends \Google\Protobuf\Internal\Message -{ - /** - * The field name (optional). Fields without a `field_name` are considered - * anonymous and cannot be referenced by name. - * - * Generated from protobuf field string field_name = 1; - */ - protected $field_name = ''; - /** - * The type of values in this field. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type type = 2; - */ - protected $type = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $field_name - * The field name (optional). Fields without a `field_name` are considered - * anonymous and cannot be referenced by name. - * @type \Google\Cloud\Bigtable\Admin\V2\Type $type - * The type of values in this field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * The field name (optional). Fields without a `field_name` are considered - * anonymous and cannot be referenced by name. - * - * Generated from protobuf field string field_name = 1; - * @return string - */ - public function getFieldName() - { - return $this->field_name; - } - - /** - * The field name (optional). Fields without a `field_name` are considered - * anonymous and cannot be referenced by name. - * - * Generated from protobuf field string field_name = 1; - * @param string $var - * @return $this - */ - public function setFieldName($var) - { - GPBUtil::checkString($var, True); - $this->field_name = $var; - - return $this; - } - - /** - * The type of values in this field. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type type = 2; - * @return \Google\Cloud\Bigtable\Admin\V2\Type|null - */ - public function getType() - { - return $this->type; - } - - public function hasType() - { - return isset($this->type); - } - - public function clearType() - { - unset($this->type); - } - - /** - * The type of values in this field. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type type = 2; - * @param \Google\Cloud\Bigtable\Admin\V2\Type $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type::class); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Timestamp.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Timestamp.php deleted file mode 100644 index b1e2a22ec9fe..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Timestamp.php +++ /dev/null @@ -1,78 +0,0 @@ -google.bigtable.admin.v2.Type.Timestamp - */ -class Timestamp extends \Google\Protobuf\Internal\Message -{ - /** - * The encoding to use when converting to or from lower level types. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Timestamp.Encoding encoding = 1; - */ - protected $encoding = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\Type\Timestamp\Encoding $encoding - * The encoding to use when converting to or from lower level types. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * The encoding to use when converting to or from lower level types. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Timestamp.Encoding encoding = 1; - * @return \Google\Cloud\Bigtable\Admin\V2\Type\Timestamp\Encoding|null - */ - public function getEncoding() - { - return $this->encoding; - } - - public function hasEncoding() - { - return isset($this->encoding); - } - - public function clearEncoding() - { - unset($this->encoding); - } - - /** - * The encoding to use when converting to or from lower level types. - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Timestamp.Encoding encoding = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\Type\Timestamp\Encoding $var - * @return $this - */ - public function setEncoding($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Timestamp\Encoding::class); - $this->encoding = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Timestamp/Encoding.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Timestamp/Encoding.php deleted file mode 100644 index 09f3d6eeaf5e..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/Type/Timestamp/Encoding.php +++ /dev/null @@ -1,84 +0,0 @@ -google.bigtable.admin.v2.Type.Timestamp.Encoding - */ -class Encoding extends \Google\Protobuf\Internal\Message -{ - protected $encoding; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\Type\Int64\Encoding $unix_micros_int64 - * Encodes the number of microseconds since the Unix epoch using the - * given `Int64` encoding. Values must be microsecond-aligned. - * Compatible with: - * - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * Encodes the number of microseconds since the Unix epoch using the - * given `Int64` encoding. Values must be microsecond-aligned. - * Compatible with: - * - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS` - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Int64.Encoding unix_micros_int64 = 1; - * @return \Google\Cloud\Bigtable\Admin\V2\Type\Int64\Encoding|null - */ - public function getUnixMicrosInt64() - { - return $this->readOneof(1); - } - - public function hasUnixMicrosInt64() - { - return $this->hasOneof(1); - } - - /** - * Encodes the number of microseconds since the Unix epoch using the - * given `Int64` encoding. Values must be microsecond-aligned. - * Compatible with: - * - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS` - * - * Generated from protobuf field .google.bigtable.admin.v2.Type.Int64.Encoding unix_micros_int64 = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\Type\Int64\Encoding $var - * @return $this - */ - public function setUnixMicrosInt64($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Int64\Encoding::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getEncoding() - { - return $this->whichOneof("encoding"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UndeleteTableMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UndeleteTableMetadata.php deleted file mode 100644 index 843a9e86df51..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UndeleteTableMetadata.php +++ /dev/null @@ -1,156 +0,0 @@ -google.bigtable.admin.v2.UndeleteTableMetadata - */ -class UndeleteTableMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the table being restored. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The time at which this operation started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - */ - protected $start_time = null; - /** - * If set, the time at which this operation finished or was cancelled. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; - */ - protected $end_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the table being restored. - * @type \Google\Protobuf\Timestamp $start_time - * The time at which this operation started. - * @type \Google\Protobuf\Timestamp $end_time - * If set, the time at which this operation finished or was cancelled. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The name of the table being restored. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the table being restored. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The time at which this operation started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - * @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 at which this operation started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * If set, the time at which this operation finished or was cancelled. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; - * @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); - } - - /** - * If set, the time at which this operation finished or was cancelled. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UndeleteTableRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UndeleteTableRequest.php deleted file mode 100644 index e177268e6c75..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UndeleteTableRequest.php +++ /dev/null @@ -1,92 +0,0 @@ -google.bigtable.admin.v2.UndeleteTableRequest - */ -class UndeleteTableRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the table to be restored. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The unique name of the table to be restored. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. Please see - * {@see BigtableTableAdminClient::tableName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\Admin\V2\UndeleteTableRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The unique name of the table to be restored. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the table to be restored. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The unique name of the table to be restored. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateAppProfileMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateAppProfileMetadata.php deleted file mode 100644 index b9f8cc371bae..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateAppProfileMetadata.php +++ /dev/null @@ -1,33 +0,0 @@ -google.bigtable.admin.v2.UpdateAppProfileMetadata - */ -class UpdateAppProfileMetadata extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateAppProfileRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateAppProfileRequest.php deleted file mode 100644 index 4b567f7c1c26..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateAppProfileRequest.php +++ /dev/null @@ -1,175 +0,0 @@ -google.bigtable.admin.v2.UpdateAppProfileRequest - */ -class UpdateAppProfileRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The app profile which will (partially) replace the current value. - * - * Generated from protobuf field .google.bigtable.admin.v2.AppProfile app_profile = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $app_profile = null; - /** - * Required. The subset of app profile fields which should be replaced. - * If unset, all fields will be replaced. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * If true, ignore safety checks when updating the app profile. - * - * Generated from protobuf field bool ignore_warnings = 3; - */ - protected $ignore_warnings = false; - - /** - * @param \Google\Cloud\Bigtable\Admin\V2\AppProfile $appProfile Required. The app profile which will (partially) replace the current value. - * @param \Google\Protobuf\FieldMask $updateMask Required. The subset of app profile fields which should be replaced. - * If unset, all fields will be replaced. - * - * @return \Google\Cloud\Bigtable\Admin\V2\UpdateAppProfileRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Bigtable\Admin\V2\AppProfile $appProfile, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setAppProfile($appProfile) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\AppProfile $app_profile - * Required. The app profile which will (partially) replace the current value. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The subset of app profile fields which should be replaced. - * If unset, all fields will be replaced. - * @type bool $ignore_warnings - * If true, ignore safety checks when updating the app profile. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The app profile which will (partially) replace the current value. - * - * Generated from protobuf field .google.bigtable.admin.v2.AppProfile app_profile = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Bigtable\Admin\V2\AppProfile|null - */ - public function getAppProfile() - { - return $this->app_profile; - } - - public function hasAppProfile() - { - return isset($this->app_profile); - } - - public function clearAppProfile() - { - unset($this->app_profile); - } - - /** - * Required. The app profile which will (partially) replace the current value. - * - * Generated from protobuf field .google.bigtable.admin.v2.AppProfile app_profile = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Bigtable\Admin\V2\AppProfile $var - * @return $this - */ - public function setAppProfile($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\AppProfile::class); - $this->app_profile = $var; - - return $this; - } - - /** - * Required. The subset of app profile fields which should be replaced. - * If unset, all fields will be replaced. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The subset of app profile fields which should be replaced. - * If unset, all fields will be replaced. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * If true, ignore safety checks when updating the app profile. - * - * Generated from protobuf field bool ignore_warnings = 3; - * @return bool - */ - public function getIgnoreWarnings() - { - return $this->ignore_warnings; - } - - /** - * If true, ignore safety checks when updating the app profile. - * - * Generated from protobuf field bool ignore_warnings = 3; - * @param bool $var - * @return $this - */ - public function setIgnoreWarnings($var) - { - GPBUtil::checkBool($var); - $this->ignore_warnings = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateAuthorizedViewMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateAuthorizedViewMetadata.php deleted file mode 100644 index 4d78c94037b6..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateAuthorizedViewMetadata.php +++ /dev/null @@ -1,170 +0,0 @@ -google.bigtable.admin.v2.UpdateAuthorizedViewMetadata - */ -class UpdateAuthorizedViewMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The request that prompted the initiation of this UpdateAuthorizedView - * operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.UpdateAuthorizedViewRequest original_request = 1; - */ - protected $original_request = null; - /** - * The time at which the original request was received. - * - * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; - */ - protected $request_time = null; - /** - * The time at which the operation failed or was completed successfully. - * - * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; - */ - protected $finish_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\UpdateAuthorizedViewRequest $original_request - * The request that prompted the initiation of this UpdateAuthorizedView - * operation. - * @type \Google\Protobuf\Timestamp $request_time - * The time at which the original request was received. - * @type \Google\Protobuf\Timestamp $finish_time - * The time at which the operation failed or was completed successfully. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The request that prompted the initiation of this UpdateAuthorizedView - * operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.UpdateAuthorizedViewRequest original_request = 1; - * @return \Google\Cloud\Bigtable\Admin\V2\UpdateAuthorizedViewRequest|null - */ - public function getOriginalRequest() - { - return $this->original_request; - } - - public function hasOriginalRequest() - { - return isset($this->original_request); - } - - public function clearOriginalRequest() - { - unset($this->original_request); - } - - /** - * The request that prompted the initiation of this UpdateAuthorizedView - * operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.UpdateAuthorizedViewRequest original_request = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\UpdateAuthorizedViewRequest $var - * @return $this - */ - public function setOriginalRequest($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\UpdateAuthorizedViewRequest::class); - $this->original_request = $var; - - return $this; - } - - /** - * The time at which the original request was received. - * - * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRequestTime() - { - return $this->request_time; - } - - public function hasRequestTime() - { - return isset($this->request_time); - } - - public function clearRequestTime() - { - unset($this->request_time); - } - - /** - * The time at which the original request was received. - * - * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRequestTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->request_time = $var; - - return $this; - } - - /** - * The time at which the operation failed or was completed successfully. - * - * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getFinishTime() - { - return $this->finish_time; - } - - public function hasFinishTime() - { - return isset($this->finish_time); - } - - public function clearFinishTime() - { - unset($this->finish_time); - } - - /** - * The time at which the operation failed or was completed successfully. - * - * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setFinishTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->finish_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateAuthorizedViewRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateAuthorizedViewRequest.php deleted file mode 100644 index f53334143f16..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateAuthorizedViewRequest.php +++ /dev/null @@ -1,220 +0,0 @@ -google.bigtable.admin.v2.UpdateAuthorizedViewRequest - */ -class UpdateAuthorizedViewRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The AuthorizedView to update. The `name` in `authorized_view` is - * used to identify the AuthorizedView. AuthorizedView name must in this - * format: - * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. - * - * Generated from protobuf field .google.bigtable.admin.v2.AuthorizedView authorized_view = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $authorized_view = null; - /** - * Optional. The list of fields to update. - * A mask specifying which fields in the AuthorizedView resource should be - * updated. This mask is relative to the AuthorizedView resource, not to the - * request message. A field will be overwritten if it is in the mask. If - * empty, all fields set in the request will be overwritten. A special value - * `*` means to overwrite all fields (including fields not set in the - * request). - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - /** - * Optional. If true, ignore the safety checks when updating the - * AuthorizedView. - * - * Generated from protobuf field bool ignore_warnings = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $ignore_warnings = false; - - /** - * @param \Google\Cloud\Bigtable\Admin\V2\AuthorizedView $authorizedView Required. The AuthorizedView to update. The `name` in `authorized_view` is - * used to identify the AuthorizedView. AuthorizedView name must in this - * format: - * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. - * @param \Google\Protobuf\FieldMask $updateMask Optional. The list of fields to update. - * A mask specifying which fields in the AuthorizedView resource should be - * updated. This mask is relative to the AuthorizedView resource, not to the - * request message. A field will be overwritten if it is in the mask. If - * empty, all fields set in the request will be overwritten. A special value - * `*` means to overwrite all fields (including fields not set in the - * request). - * - * @return \Google\Cloud\Bigtable\Admin\V2\UpdateAuthorizedViewRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Bigtable\Admin\V2\AuthorizedView $authorizedView, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setAuthorizedView($authorizedView) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\AuthorizedView $authorized_view - * Required. The AuthorizedView to update. The `name` in `authorized_view` is - * used to identify the AuthorizedView. AuthorizedView name must in this - * format: - * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. The list of fields to update. - * A mask specifying which fields in the AuthorizedView resource should be - * updated. This mask is relative to the AuthorizedView resource, not to the - * request message. A field will be overwritten if it is in the mask. If - * empty, all fields set in the request will be overwritten. A special value - * `*` means to overwrite all fields (including fields not set in the - * request). - * @type bool $ignore_warnings - * Optional. If true, ignore the safety checks when updating the - * AuthorizedView. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The AuthorizedView to update. The `name` in `authorized_view` is - * used to identify the AuthorizedView. AuthorizedView name must in this - * format: - * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. - * - * Generated from protobuf field .google.bigtable.admin.v2.AuthorizedView authorized_view = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Bigtable\Admin\V2\AuthorizedView|null - */ - public function getAuthorizedView() - { - return $this->authorized_view; - } - - public function hasAuthorizedView() - { - return isset($this->authorized_view); - } - - public function clearAuthorizedView() - { - unset($this->authorized_view); - } - - /** - * Required. The AuthorizedView to update. The `name` in `authorized_view` is - * used to identify the AuthorizedView. AuthorizedView name must in this - * format: - * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. - * - * Generated from protobuf field .google.bigtable.admin.v2.AuthorizedView authorized_view = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Bigtable\Admin\V2\AuthorizedView $var - * @return $this - */ - public function setAuthorizedView($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\AuthorizedView::class); - $this->authorized_view = $var; - - return $this; - } - - /** - * Optional. The list of fields to update. - * A mask specifying which fields in the AuthorizedView resource should be - * updated. This mask is relative to the AuthorizedView resource, not to the - * request message. A field will be overwritten if it is in the mask. If - * empty, all fields set in the request will be overwritten. A special value - * `*` means to overwrite all fields (including fields not set in the - * request). - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Optional. The list of fields to update. - * A mask specifying which fields in the AuthorizedView resource should be - * updated. This mask is relative to the AuthorizedView resource, not to the - * request message. A field will be overwritten if it is in the mask. If - * empty, all fields set in the request will be overwritten. A special value - * `*` means to overwrite all fields (including fields not set in the - * request). - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Optional. If true, ignore the safety checks when updating the - * AuthorizedView. - * - * Generated from protobuf field bool ignore_warnings = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getIgnoreWarnings() - { - return $this->ignore_warnings; - } - - /** - * Optional. If true, ignore the safety checks when updating the - * AuthorizedView. - * - * Generated from protobuf field bool ignore_warnings = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setIgnoreWarnings($var) - { - GPBUtil::checkBool($var); - $this->ignore_warnings = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateBackupRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateBackupRequest.php deleted file mode 100644 index 9edda2e6eb45..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateBackupRequest.php +++ /dev/null @@ -1,173 +0,0 @@ -google.bigtable.admin.v2.UpdateBackupRequest - */ -class UpdateBackupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The backup to update. `backup.name`, and the fields to be updated - * as specified by `update_mask` are required. Other fields are ignored. - * Update is only supported for the following fields: - * * `backup.expire_time`. - * - * Generated from protobuf field .google.bigtable.admin.v2.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $backup = null; - /** - * Required. A mask specifying which fields (e.g. `expire_time`) in the - * Backup resource should be updated. This mask is relative to the Backup - * resource, not to the request message. The field mask must always be - * specified; this prevents any future fields from being erased accidentally - * by clients that do not know about them. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\Bigtable\Admin\V2\Backup $backup Required. The backup to update. `backup.name`, and the fields to be updated - * as specified by `update_mask` are required. Other fields are ignored. - * Update is only supported for the following fields: - * - * * `backup.expire_time`. - * @param \Google\Protobuf\FieldMask $updateMask Required. A mask specifying which fields (e.g. `expire_time`) in the - * Backup resource should be updated. This mask is relative to the Backup - * resource, not to the request message. The field mask must always be - * specified; this prevents any future fields from being erased accidentally - * by clients that do not know about them. - * - * @return \Google\Cloud\Bigtable\Admin\V2\UpdateBackupRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Bigtable\Admin\V2\Backup $backup, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setBackup($backup) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\Backup $backup - * Required. The backup to update. `backup.name`, and the fields to be updated - * as specified by `update_mask` are required. Other fields are ignored. - * Update is only supported for the following fields: - * * `backup.expire_time`. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. A mask specifying which fields (e.g. `expire_time`) in the - * Backup resource should be updated. This mask is relative to the Backup - * resource, not to the request message. The field mask must always be - * specified; this prevents any future fields from being erased accidentally - * by clients that do not know about them. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The backup to update. `backup.name`, and the fields to be updated - * as specified by `update_mask` are required. Other fields are ignored. - * Update is only supported for the following fields: - * * `backup.expire_time`. - * - * Generated from protobuf field .google.bigtable.admin.v2.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Bigtable\Admin\V2\Backup|null - */ - public function getBackup() - { - return $this->backup; - } - - public function hasBackup() - { - return isset($this->backup); - } - - public function clearBackup() - { - unset($this->backup); - } - - /** - * Required. The backup to update. `backup.name`, and the fields to be updated - * as specified by `update_mask` are required. Other fields are ignored. - * Update is only supported for the following fields: - * * `backup.expire_time`. - * - * Generated from protobuf field .google.bigtable.admin.v2.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Bigtable\Admin\V2\Backup $var - * @return $this - */ - public function setBackup($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Backup::class); - $this->backup = $var; - - return $this; - } - - /** - * Required. A mask specifying which fields (e.g. `expire_time`) in the - * Backup resource should be updated. This mask is relative to the Backup - * resource, not to the request message. The field mask must always be - * specified; this prevents any future fields from being erased accidentally - * by clients that do not know about them. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. A mask specifying which fields (e.g. `expire_time`) in the - * Backup resource should be updated. This mask is relative to the Backup - * resource, not to the request message. The field mask must always be - * specified; this prevents any future fields from being erased accidentally - * by clients that do not know about them. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateClusterMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateClusterMetadata.php deleted file mode 100644 index d7139cf84ced..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateClusterMetadata.php +++ /dev/null @@ -1,165 +0,0 @@ -google.bigtable.admin.v2.UpdateClusterMetadata - */ -class UpdateClusterMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The request that prompted the initiation of this UpdateCluster operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.Cluster original_request = 1; - */ - protected $original_request = null; - /** - * The time at which the original request was received. - * - * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; - */ - protected $request_time = null; - /** - * The time at which the operation failed or was completed successfully. - * - * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; - */ - protected $finish_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\Cluster $original_request - * The request that prompted the initiation of this UpdateCluster operation. - * @type \Google\Protobuf\Timestamp $request_time - * The time at which the original request was received. - * @type \Google\Protobuf\Timestamp $finish_time - * The time at which the operation failed or was completed successfully. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The request that prompted the initiation of this UpdateCluster operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.Cluster original_request = 1; - * @return \Google\Cloud\Bigtable\Admin\V2\Cluster|null - */ - public function getOriginalRequest() - { - return $this->original_request; - } - - public function hasOriginalRequest() - { - return isset($this->original_request); - } - - public function clearOriginalRequest() - { - unset($this->original_request); - } - - /** - * The request that prompted the initiation of this UpdateCluster operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.Cluster original_request = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\Cluster $var - * @return $this - */ - public function setOriginalRequest($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Cluster::class); - $this->original_request = $var; - - return $this; - } - - /** - * The time at which the original request was received. - * - * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRequestTime() - { - return $this->request_time; - } - - public function hasRequestTime() - { - return isset($this->request_time); - } - - public function clearRequestTime() - { - unset($this->request_time); - } - - /** - * The time at which the original request was received. - * - * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRequestTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->request_time = $var; - - return $this; - } - - /** - * The time at which the operation failed or was completed successfully. - * - * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getFinishTime() - { - return $this->finish_time; - } - - public function hasFinishTime() - { - return isset($this->finish_time); - } - - public function clearFinishTime() - { - unset($this->finish_time); - } - - /** - * The time at which the operation failed or was completed successfully. - * - * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setFinishTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->finish_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateInstanceMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateInstanceMetadata.php deleted file mode 100644 index 7fcdbe7516d3..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateInstanceMetadata.php +++ /dev/null @@ -1,165 +0,0 @@ -google.bigtable.admin.v2.UpdateInstanceMetadata - */ -class UpdateInstanceMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The request that prompted the initiation of this UpdateInstance operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.PartialUpdateInstanceRequest original_request = 1; - */ - protected $original_request = null; - /** - * The time at which the original request was received. - * - * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; - */ - protected $request_time = null; - /** - * The time at which the operation failed or was completed successfully. - * - * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; - */ - protected $finish_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\PartialUpdateInstanceRequest $original_request - * The request that prompted the initiation of this UpdateInstance operation. - * @type \Google\Protobuf\Timestamp $request_time - * The time at which the original request was received. - * @type \Google\Protobuf\Timestamp $finish_time - * The time at which the operation failed or was completed successfully. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The request that prompted the initiation of this UpdateInstance operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.PartialUpdateInstanceRequest original_request = 1; - * @return \Google\Cloud\Bigtable\Admin\V2\PartialUpdateInstanceRequest|null - */ - public function getOriginalRequest() - { - return $this->original_request; - } - - public function hasOriginalRequest() - { - return isset($this->original_request); - } - - public function clearOriginalRequest() - { - unset($this->original_request); - } - - /** - * The request that prompted the initiation of this UpdateInstance operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.PartialUpdateInstanceRequest original_request = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\PartialUpdateInstanceRequest $var - * @return $this - */ - public function setOriginalRequest($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\PartialUpdateInstanceRequest::class); - $this->original_request = $var; - - return $this; - } - - /** - * The time at which the original request was received. - * - * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRequestTime() - { - return $this->request_time; - } - - public function hasRequestTime() - { - return isset($this->request_time); - } - - public function clearRequestTime() - { - unset($this->request_time); - } - - /** - * The time at which the original request was received. - * - * Generated from protobuf field .google.protobuf.Timestamp request_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRequestTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->request_time = $var; - - return $this; - } - - /** - * The time at which the operation failed or was completed successfully. - * - * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getFinishTime() - { - return $this->finish_time; - } - - public function hasFinishTime() - { - return isset($this->finish_time); - } - - public function clearFinishTime() - { - unset($this->finish_time); - } - - /** - * The time at which the operation failed or was completed successfully. - * - * Generated from protobuf field .google.protobuf.Timestamp finish_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setFinishTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->finish_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateLogicalViewMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateLogicalViewMetadata.php deleted file mode 100644 index 876b577a1c09..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateLogicalViewMetadata.php +++ /dev/null @@ -1,169 +0,0 @@ -google.bigtable.admin.v2.UpdateLogicalViewMetadata - */ -class UpdateLogicalViewMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The request that prompted the initiation of this UpdateLogicalView - * operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.UpdateLogicalViewRequest original_request = 1; - */ - protected $original_request = null; - /** - * The time at which this operation was started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - */ - protected $start_time = null; - /** - * If set, the time at which this operation finished or was canceled. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; - */ - protected $end_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\UpdateLogicalViewRequest $original_request - * The request that prompted the initiation of this UpdateLogicalView - * operation. - * @type \Google\Protobuf\Timestamp $start_time - * The time at which this operation was started. - * @type \Google\Protobuf\Timestamp $end_time - * If set, the time at which this operation finished or was canceled. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The request that prompted the initiation of this UpdateLogicalView - * operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.UpdateLogicalViewRequest original_request = 1; - * @return \Google\Cloud\Bigtable\Admin\V2\UpdateLogicalViewRequest|null - */ - public function getOriginalRequest() - { - return $this->original_request; - } - - public function hasOriginalRequest() - { - return isset($this->original_request); - } - - public function clearOriginalRequest() - { - unset($this->original_request); - } - - /** - * The request that prompted the initiation of this UpdateLogicalView - * operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.UpdateLogicalViewRequest original_request = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\UpdateLogicalViewRequest $var - * @return $this - */ - public function setOriginalRequest($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\UpdateLogicalViewRequest::class); - $this->original_request = $var; - - return $this; - } - - /** - * The time at which this operation was started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - * @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 at which this operation was started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * If set, the time at which this operation finished or was canceled. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; - * @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); - } - - /** - * If set, the time at which this operation finished or was canceled. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateLogicalViewRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateLogicalViewRequest.php deleted file mode 100644 index 8bd3742a86ee..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateLogicalViewRequest.php +++ /dev/null @@ -1,152 +0,0 @@ -google.bigtable.admin.v2.UpdateLogicalViewRequest - */ -class UpdateLogicalViewRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The logical view to update. - * The logical view's `name` field is used to identify the view to update. - * Format: - * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. - * - * Generated from protobuf field .google.bigtable.admin.v2.LogicalView logical_view = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $logical_view = null; - /** - * Optional. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\Bigtable\Admin\V2\LogicalView $logicalView Required. The logical view to update. - * - * The logical view's `name` field is used to identify the view to update. - * Format: - * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. - * @param \Google\Protobuf\FieldMask $updateMask Optional. The list of fields to update. - * - * @return \Google\Cloud\Bigtable\Admin\V2\UpdateLogicalViewRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Bigtable\Admin\V2\LogicalView $logicalView, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setLogicalView($logicalView) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\LogicalView $logical_view - * Required. The logical view to update. - * The logical view's `name` field is used to identify the view to update. - * Format: - * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. The list of fields to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The logical view to update. - * The logical view's `name` field is used to identify the view to update. - * Format: - * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. - * - * Generated from protobuf field .google.bigtable.admin.v2.LogicalView logical_view = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Bigtable\Admin\V2\LogicalView|null - */ - public function getLogicalView() - { - return $this->logical_view; - } - - public function hasLogicalView() - { - return isset($this->logical_view); - } - - public function clearLogicalView() - { - unset($this->logical_view); - } - - /** - * Required. The logical view to update. - * The logical view's `name` field is used to identify the view to update. - * Format: - * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. - * - * Generated from protobuf field .google.bigtable.admin.v2.LogicalView logical_view = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Bigtable\Admin\V2\LogicalView $var - * @return $this - */ - public function setLogicalView($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\LogicalView::class); - $this->logical_view = $var; - - return $this; - } - - /** - * Optional. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Optional. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateMaterializedViewMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateMaterializedViewMetadata.php deleted file mode 100644 index 8251e78e78af..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateMaterializedViewMetadata.php +++ /dev/null @@ -1,169 +0,0 @@ -google.bigtable.admin.v2.UpdateMaterializedViewMetadata - */ -class UpdateMaterializedViewMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The request that prompted the initiation of this UpdateMaterializedView - * operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.UpdateMaterializedViewRequest original_request = 1; - */ - protected $original_request = null; - /** - * The time at which this operation was started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - */ - protected $start_time = null; - /** - * If set, the time at which this operation finished or was canceled. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; - */ - protected $end_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\UpdateMaterializedViewRequest $original_request - * The request that prompted the initiation of this UpdateMaterializedView - * operation. - * @type \Google\Protobuf\Timestamp $start_time - * The time at which this operation was started. - * @type \Google\Protobuf\Timestamp $end_time - * If set, the time at which this operation finished or was canceled. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The request that prompted the initiation of this UpdateMaterializedView - * operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.UpdateMaterializedViewRequest original_request = 1; - * @return \Google\Cloud\Bigtable\Admin\V2\UpdateMaterializedViewRequest|null - */ - public function getOriginalRequest() - { - return $this->original_request; - } - - public function hasOriginalRequest() - { - return isset($this->original_request); - } - - public function clearOriginalRequest() - { - unset($this->original_request); - } - - /** - * The request that prompted the initiation of this UpdateMaterializedView - * operation. - * - * Generated from protobuf field .google.bigtable.admin.v2.UpdateMaterializedViewRequest original_request = 1; - * @param \Google\Cloud\Bigtable\Admin\V2\UpdateMaterializedViewRequest $var - * @return $this - */ - public function setOriginalRequest($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\UpdateMaterializedViewRequest::class); - $this->original_request = $var; - - return $this; - } - - /** - * The time at which this operation was started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - * @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 at which this operation was started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * If set, the time at which this operation finished or was canceled. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; - * @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); - } - - /** - * If set, the time at which this operation finished or was canceled. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateMaterializedViewRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateMaterializedViewRequest.php deleted file mode 100644 index 7bca5a110f88..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateMaterializedViewRequest.php +++ /dev/null @@ -1,152 +0,0 @@ -google.bigtable.admin.v2.UpdateMaterializedViewRequest - */ -class UpdateMaterializedViewRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The materialized view to update. - * The materialized view's `name` field is used to identify the view to - * update. Format: - * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. - * - * Generated from protobuf field .google.bigtable.admin.v2.MaterializedView materialized_view = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $materialized_view = null; - /** - * Optional. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\Bigtable\Admin\V2\MaterializedView $materializedView Required. The materialized view to update. - * - * The materialized view's `name` field is used to identify the view to - * update. Format: - * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. - * @param \Google\Protobuf\FieldMask $updateMask Optional. The list of fields to update. - * - * @return \Google\Cloud\Bigtable\Admin\V2\UpdateMaterializedViewRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Bigtable\Admin\V2\MaterializedView $materializedView, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setMaterializedView($materializedView) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\MaterializedView $materialized_view - * Required. The materialized view to update. - * The materialized view's `name` field is used to identify the view to - * update. Format: - * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. The list of fields to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The materialized view to update. - * The materialized view's `name` field is used to identify the view to - * update. Format: - * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. - * - * Generated from protobuf field .google.bigtable.admin.v2.MaterializedView materialized_view = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Bigtable\Admin\V2\MaterializedView|null - */ - public function getMaterializedView() - { - return $this->materialized_view; - } - - public function hasMaterializedView() - { - return isset($this->materialized_view); - } - - public function clearMaterializedView() - { - unset($this->materialized_view); - } - - /** - * Required. The materialized view to update. - * The materialized view's `name` field is used to identify the view to - * update. Format: - * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. - * - * Generated from protobuf field .google.bigtable.admin.v2.MaterializedView materialized_view = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Bigtable\Admin\V2\MaterializedView $var - * @return $this - */ - public function setMaterializedView($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\MaterializedView::class); - $this->materialized_view = $var; - - return $this; - } - - /** - * Optional. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Optional. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateSchemaBundleMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateSchemaBundleMetadata.php deleted file mode 100644 index efbbafae3700..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateSchemaBundleMetadata.php +++ /dev/null @@ -1,164 +0,0 @@ -google.bigtable.admin.v2.UpdateSchemaBundleMetadata - */ -class UpdateSchemaBundleMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The unique name identifying this schema bundle. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The time at which this operation started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - */ - protected $start_time = null; - /** - * If set, the time at which this operation finished or was canceled. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; - */ - protected $end_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The unique name identifying this schema bundle. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - * @type \Google\Protobuf\Timestamp $start_time - * The time at which this operation started. - * @type \Google\Protobuf\Timestamp $end_time - * If set, the time at which this operation finished or was canceled. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The unique name identifying this schema bundle. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The unique name identifying this schema bundle. - * Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The time at which this operation started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - * @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 at which this operation started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * If set, the time at which this operation finished or was canceled. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; - * @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); - } - - /** - * If set, the time at which this operation finished or was canceled. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateSchemaBundleRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateSchemaBundleRequest.php deleted file mode 100644 index 44e9ca35100e..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateSchemaBundleRequest.php +++ /dev/null @@ -1,199 +0,0 @@ -google.bigtable.admin.v2.UpdateSchemaBundleRequest - */ -class UpdateSchemaBundleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The schema bundle to update. - * The schema bundle's `name` field is used to identify the schema bundle to - * update. Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - * - * Generated from protobuf field .google.bigtable.admin.v2.SchemaBundle schema_bundle = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $schema_bundle = null; - /** - * Optional. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - /** - * Optional. If set, ignore the safety checks when updating the Schema Bundle. - * The safety checks are: - * - The new Schema Bundle is backwards compatible with the existing Schema - * Bundle. - * - * Generated from protobuf field bool ignore_warnings = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $ignore_warnings = false; - - /** - * @param \Google\Cloud\Bigtable\Admin\V2\SchemaBundle $schemaBundle Required. The schema bundle to update. - * - * The schema bundle's `name` field is used to identify the schema bundle to - * update. Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - * @param \Google\Protobuf\FieldMask $updateMask Optional. The list of fields to update. - * - * @return \Google\Cloud\Bigtable\Admin\V2\UpdateSchemaBundleRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Bigtable\Admin\V2\SchemaBundle $schemaBundle, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setSchemaBundle($schemaBundle) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\SchemaBundle $schema_bundle - * Required. The schema bundle to update. - * The schema bundle's `name` field is used to identify the schema bundle to - * update. Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. The list of fields to update. - * @type bool $ignore_warnings - * Optional. If set, ignore the safety checks when updating the Schema Bundle. - * The safety checks are: - * - The new Schema Bundle is backwards compatible with the existing Schema - * Bundle. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The schema bundle to update. - * The schema bundle's `name` field is used to identify the schema bundle to - * update. Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - * - * Generated from protobuf field .google.bigtable.admin.v2.SchemaBundle schema_bundle = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Bigtable\Admin\V2\SchemaBundle|null - */ - public function getSchemaBundle() - { - return $this->schema_bundle; - } - - public function hasSchemaBundle() - { - return isset($this->schema_bundle); - } - - public function clearSchemaBundle() - { - unset($this->schema_bundle); - } - - /** - * Required. The schema bundle to update. - * The schema bundle's `name` field is used to identify the schema bundle to - * update. Values are of the form - * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` - * - * Generated from protobuf field .google.bigtable.admin.v2.SchemaBundle schema_bundle = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Bigtable\Admin\V2\SchemaBundle $var - * @return $this - */ - public function setSchemaBundle($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\SchemaBundle::class); - $this->schema_bundle = $var; - - return $this; - } - - /** - * Optional. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Optional. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Optional. If set, ignore the safety checks when updating the Schema Bundle. - * The safety checks are: - * - The new Schema Bundle is backwards compatible with the existing Schema - * Bundle. - * - * Generated from protobuf field bool ignore_warnings = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getIgnoreWarnings() - { - return $this->ignore_warnings; - } - - /** - * Optional. If set, ignore the safety checks when updating the Schema Bundle. - * The safety checks are: - * - The new Schema Bundle is backwards compatible with the existing Schema - * Bundle. - * - * Generated from protobuf field bool ignore_warnings = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setIgnoreWarnings($var) - { - GPBUtil::checkBool($var); - $this->ignore_warnings = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateTableMetadata.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateTableMetadata.php deleted file mode 100644 index 37698ff4ff7f..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateTableMetadata.php +++ /dev/null @@ -1,156 +0,0 @@ -google.bigtable.admin.v2.UpdateTableMetadata - */ -class UpdateTableMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the table being updated. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The time at which this operation started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - */ - protected $start_time = null; - /** - * If set, the time at which this operation finished or was canceled. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; - */ - protected $end_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the table being updated. - * @type \Google\Protobuf\Timestamp $start_time - * The time at which this operation started. - * @type \Google\Protobuf\Timestamp $end_time - * If set, the time at which this operation finished or was canceled. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The name of the table being updated. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the table being updated. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The time at which this operation started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - * @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 at which this operation started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * If set, the time at which this operation finished or was canceled. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; - * @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); - } - - /** - * If set, the time at which this operation finished or was canceled. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateTableRequest.php b/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateTableRequest.php deleted file mode 100644 index e79976c2d793..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/proto/src/Google/Cloud/Bigtable/Admin/V2/UpdateTableRequest.php +++ /dev/null @@ -1,228 +0,0 @@ -google.bigtable.admin.v2.UpdateTableRequest - */ -class UpdateTableRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The table to update. - * The table's `name` field is used to identify the table to update. - * - * Generated from protobuf field .google.bigtable.admin.v2.Table table = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $table = null; - /** - * Required. The list of fields to update. - * A mask specifying which fields (e.g. `change_stream_config`) in the `table` - * field should be updated. This mask is relative to the `table` field, not to - * the request message. The wildcard (*) path is currently not supported. - * Currently UpdateTable is only supported for the following fields: - * * `change_stream_config` - * * `change_stream_config.retention_period` - * * `deletion_protection` - * * `row_key_schema` - * If `column_families` is set in `update_mask`, it will return an - * UNIMPLEMENTED error. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Optional. If true, ignore safety checks when updating the table. - * - * Generated from protobuf field bool ignore_warnings = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $ignore_warnings = false; - - /** - * @param \Google\Cloud\Bigtable\Admin\V2\Table $table Required. The table to update. - * The table's `name` field is used to identify the table to update. - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. - * A mask specifying which fields (e.g. `change_stream_config`) in the `table` - * field should be updated. This mask is relative to the `table` field, not to - * the request message. The wildcard (*) path is currently not supported. - * Currently UpdateTable is only supported for the following fields: - * - * * `change_stream_config` - * * `change_stream_config.retention_period` - * * `deletion_protection` - * * `row_key_schema` - * - * If `column_families` is set in `update_mask`, it will return an - * UNIMPLEMENTED error. - * - * @return \Google\Cloud\Bigtable\Admin\V2\UpdateTableRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Bigtable\Admin\V2\Table $table, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setTable($table) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\Admin\V2\Table $table - * Required. The table to update. - * The table's `name` field is used to identify the table to update. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to update. - * A mask specifying which fields (e.g. `change_stream_config`) in the `table` - * field should be updated. This mask is relative to the `table` field, not to - * the request message. The wildcard (*) path is currently not supported. - * Currently UpdateTable is only supported for the following fields: - * * `change_stream_config` - * * `change_stream_config.retention_period` - * * `deletion_protection` - * * `row_key_schema` - * If `column_families` is set in `update_mask`, it will return an - * UNIMPLEMENTED error. - * @type bool $ignore_warnings - * Optional. If true, ignore safety checks when updating the table. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\Admin\V2\BigtableTableAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The table to update. - * The table's `name` field is used to identify the table to update. - * - * Generated from protobuf field .google.bigtable.admin.v2.Table table = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Bigtable\Admin\V2\Table|null - */ - public function getTable() - { - return $this->table; - } - - public function hasTable() - { - return isset($this->table); - } - - public function clearTable() - { - unset($this->table); - } - - /** - * Required. The table to update. - * The table's `name` field is used to identify the table to update. - * - * Generated from protobuf field .google.bigtable.admin.v2.Table table = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Bigtable\Admin\V2\Table $var - * @return $this - */ - public function setTable($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Table::class); - $this->table = $var; - - return $this; - } - - /** - * Required. The list of fields to update. - * A mask specifying which fields (e.g. `change_stream_config`) in the `table` - * field should be updated. This mask is relative to the `table` field, not to - * the request message. The wildcard (*) path is currently not supported. - * Currently UpdateTable is only supported for the following fields: - * * `change_stream_config` - * * `change_stream_config.retention_period` - * * `deletion_protection` - * * `row_key_schema` - * If `column_families` is set in `update_mask`, it will return an - * UNIMPLEMENTED error. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to update. - * A mask specifying which fields (e.g. `change_stream_config`) in the `table` - * field should be updated. This mask is relative to the `table` field, not to - * the request message. The wildcard (*) path is currently not supported. - * Currently UpdateTable is only supported for the following fields: - * * `change_stream_config` - * * `change_stream_config.retention_period` - * * `deletion_protection` - * * `row_key_schema` - * If `column_families` is set in `update_mask`, it will return an - * UNIMPLEMENTED error. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Optional. If true, ignore safety checks when updating the table. - * - * Generated from protobuf field bool ignore_warnings = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getIgnoreWarnings() - { - return $this->ignore_warnings; - } - - /** - * Optional. If true, ignore safety checks when updating the table. - * - * Generated from protobuf field bool ignore_warnings = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setIgnoreWarnings($var) - { - GPBUtil::checkBool($var); - $this->ignore_warnings = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_app_profile.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_app_profile.php deleted file mode 100644 index 744a7cb0bf2b..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_app_profile.php +++ /dev/null @@ -1,79 +0,0 @@ -setParent($formattedParent) - ->setAppProfileId($appProfileId) - ->setAppProfile($appProfile); - - // Call the API and handle any network failures. - try { - /** @var AppProfile $response */ - $response = $bigtableInstanceAdminClient->createAppProfile($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = BigtableInstanceAdminClient::instanceName('[PROJECT]', '[INSTANCE]'); - $appProfileId = '[APP_PROFILE_ID]'; - - create_app_profile_sample($formattedParent, $appProfileId); -} -// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_cluster.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_cluster.php deleted file mode 100644 index 1d27410e8d63..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_cluster.php +++ /dev/null @@ -1,97 +0,0 @@ -setParent($formattedParent) - ->setClusterId($clusterId) - ->setCluster($cluster); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $bigtableInstanceAdminClient->createCluster($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Cluster $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = BigtableInstanceAdminClient::instanceName('[PROJECT]', '[INSTANCE]'); - $clusterId = '[CLUSTER_ID]'; - - create_cluster_sample($formattedParent, $clusterId); -} -// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_instance.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_instance.php deleted file mode 100644 index 62082d3b982c..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_instance.php +++ /dev/null @@ -1,107 +0,0 @@ -setDisplayName($instanceDisplayName); - $clusters = []; - $request = (new CreateInstanceRequest()) - ->setParent($formattedParent) - ->setInstanceId($instanceId) - ->setInstance($instance) - ->setClusters($clusters); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $bigtableInstanceAdminClient->createInstance($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Instance $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = BigtableInstanceAdminClient::projectName('[PROJECT]'); - $instanceId = '[INSTANCE_ID]'; - $instanceDisplayName = '[DISPLAY_NAME]'; - - create_instance_sample($formattedParent, $instanceId, $instanceDisplayName); -} -// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_logical_view.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_logical_view.php deleted file mode 100644 index d31695d623b6..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_logical_view.php +++ /dev/null @@ -1,96 +0,0 @@ -setQuery($logicalViewQuery); - $request = (new CreateLogicalViewRequest()) - ->setParent($formattedParent) - ->setLogicalViewId($logicalViewId) - ->setLogicalView($logicalView); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $bigtableInstanceAdminClient->createLogicalView($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var LogicalView $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = BigtableInstanceAdminClient::instanceName('[PROJECT]', '[INSTANCE]'); - $logicalViewId = '[LOGICAL_VIEW_ID]'; - $logicalViewQuery = '[QUERY]'; - - create_logical_view_sample($formattedParent, $logicalViewId, $logicalViewQuery); -} -// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateLogicalView_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_materialized_view.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_materialized_view.php deleted file mode 100644 index 468f68efd44e..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/create_materialized_view.php +++ /dev/null @@ -1,96 +0,0 @@ -setQuery($materializedViewQuery); - $request = (new CreateMaterializedViewRequest()) - ->setParent($formattedParent) - ->setMaterializedViewId($materializedViewId) - ->setMaterializedView($materializedView); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $bigtableInstanceAdminClient->createMaterializedView($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var MaterializedView $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = BigtableInstanceAdminClient::instanceName('[PROJECT]', '[INSTANCE]'); - $materializedViewId = '[MATERIALIZED_VIEW_ID]'; - $materializedViewQuery = '[QUERY]'; - - create_materialized_view_sample($formattedParent, $materializedViewId, $materializedViewQuery); -} -// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateMaterializedView_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_app_profile.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_app_profile.php deleted file mode 100644 index b16f879f7d8f..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_app_profile.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName) - ->setIgnoreWarnings($ignoreWarnings); - - // Call the API and handle any network failures. - try { - $bigtableInstanceAdminClient->deleteAppProfile($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BigtableInstanceAdminClient::appProfileName( - '[PROJECT]', - '[INSTANCE]', - '[APP_PROFILE]' - ); - $ignoreWarnings = false; - - delete_app_profile_sample($formattedName, $ignoreWarnings); -} -// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_cluster.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_cluster.php deleted file mode 100644 index 7f2ee487f57e..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_cluster.php +++ /dev/null @@ -1,70 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $bigtableInstanceAdminClient->deleteCluster($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BigtableInstanceAdminClient::clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); - - delete_cluster_sample($formattedName); -} -// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_instance.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_instance.php deleted file mode 100644 index d203cfce54fa..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_instance.php +++ /dev/null @@ -1,70 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $bigtableInstanceAdminClient->deleteInstance($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BigtableInstanceAdminClient::instanceName('[PROJECT]', '[INSTANCE]'); - - delete_instance_sample($formattedName); -} -// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_logical_view.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_logical_view.php deleted file mode 100644 index a5853c1a1e2b..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_logical_view.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $bigtableInstanceAdminClient->deleteLogicalView($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BigtableInstanceAdminClient::logicalViewName( - '[PROJECT]', - '[INSTANCE]', - '[LOGICAL_VIEW]' - ); - - delete_logical_view_sample($formattedName); -} -// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteLogicalView_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_materialized_view.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_materialized_view.php deleted file mode 100644 index e861dbdad22c..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/delete_materialized_view.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $bigtableInstanceAdminClient->deleteMaterializedView($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BigtableInstanceAdminClient::materializedViewName( - '[PROJECT]', - '[INSTANCE]', - '[MATERIALIZED_VIEW]' - ); - - delete_materialized_view_sample($formattedName); -} -// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteMaterializedView_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_app_profile.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_app_profile.php deleted file mode 100644 index a2887eef350a..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_app_profile.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var AppProfile $response */ - $response = $bigtableInstanceAdminClient->getAppProfile($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BigtableInstanceAdminClient::appProfileName( - '[PROJECT]', - '[INSTANCE]', - '[APP_PROFILE]' - ); - - get_app_profile_sample($formattedName); -} -// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_cluster.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_cluster.php deleted file mode 100644 index 96097273c073..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_cluster.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Cluster $response */ - $response = $bigtableInstanceAdminClient->getCluster($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BigtableInstanceAdminClient::clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); - - get_cluster_sample($formattedName); -} -// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_iam_policy.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_iam_policy.php deleted file mode 100644 index 17ca22f1ea7f..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_iam_policy.php +++ /dev/null @@ -1,72 +0,0 @@ -setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $bigtableInstanceAdminClient->getIamPolicy($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 -{ - $resource = '[RESOURCE]'; - - get_iam_policy_sample($resource); -} -// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_instance.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_instance.php deleted file mode 100644 index c309298fac75..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_instance.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Instance $response */ - $response = $bigtableInstanceAdminClient->getInstance($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BigtableInstanceAdminClient::instanceName('[PROJECT]', '[INSTANCE]'); - - get_instance_sample($formattedName); -} -// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_logical_view.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_logical_view.php deleted file mode 100644 index e5e8383687ff..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_logical_view.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var LogicalView $response */ - $response = $bigtableInstanceAdminClient->getLogicalView($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BigtableInstanceAdminClient::logicalViewName( - '[PROJECT]', - '[INSTANCE]', - '[LOGICAL_VIEW]' - ); - - get_logical_view_sample($formattedName); -} -// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetLogicalView_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_materialized_view.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_materialized_view.php deleted file mode 100644 index 97636f2e4935..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/get_materialized_view.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var MaterializedView $response */ - $response = $bigtableInstanceAdminClient->getMaterializedView($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BigtableInstanceAdminClient::materializedViewName( - '[PROJECT]', - '[INSTANCE]', - '[MATERIALIZED_VIEW]' - ); - - get_materialized_view_sample($formattedName); -} -// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetMaterializedView_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_app_profiles.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_app_profiles.php deleted file mode 100644 index 50ec536ac823..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_app_profiles.php +++ /dev/null @@ -1,80 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $bigtableInstanceAdminClient->listAppProfiles($request); - - /** @var AppProfile $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = BigtableInstanceAdminClient::instanceName('[PROJECT]', '[INSTANCE]'); - - list_app_profiles_sample($formattedParent); -} -// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_clusters.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_clusters.php deleted file mode 100644 index 2a14a470e2fa..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_clusters.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var ListClustersResponse $response */ - $response = $bigtableInstanceAdminClient->listClusters($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = BigtableInstanceAdminClient::instanceName('[PROJECT]', '[INSTANCE]'); - - list_clusters_sample($formattedParent); -} -// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_hot_tablets.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_hot_tablets.php deleted file mode 100644 index fc16cd170564..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_hot_tablets.php +++ /dev/null @@ -1,79 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $bigtableInstanceAdminClient->listHotTablets($request); - - /** @var HotTablet $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = BigtableInstanceAdminClient::clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); - - list_hot_tablets_sample($formattedParent); -} -// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_instances.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_instances.php deleted file mode 100644 index 3282496dfc9d..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_instances.php +++ /dev/null @@ -1,72 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var ListInstancesResponse $response */ - $response = $bigtableInstanceAdminClient->listInstances($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = BigtableInstanceAdminClient::projectName('[PROJECT]'); - - list_instances_sample($formattedParent); -} -// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_logical_views.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_logical_views.php deleted file mode 100644 index 901240be505c..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_logical_views.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $bigtableInstanceAdminClient->listLogicalViews($request); - - /** @var LogicalView $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = BigtableInstanceAdminClient::instanceName('[PROJECT]', '[INSTANCE]'); - - list_logical_views_sample($formattedParent); -} -// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListLogicalViews_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_materialized_views.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_materialized_views.php deleted file mode 100644 index 5ad8dad74387..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/list_materialized_views.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $bigtableInstanceAdminClient->listMaterializedViews($request); - - /** @var MaterializedView $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = BigtableInstanceAdminClient::instanceName('[PROJECT]', '[INSTANCE]'); - - list_materialized_views_sample($formattedParent); -} -// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListMaterializedViews_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/partial_update_cluster.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/partial_update_cluster.php deleted file mode 100644 index ad0be3d66ea9..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/partial_update_cluster.php +++ /dev/null @@ -1,85 +0,0 @@ -setCluster($cluster) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $bigtableInstanceAdminClient->partialUpdateCluster($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Cluster $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/partial_update_instance.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/partial_update_instance.php deleted file mode 100644 index 9f5a6d5303d6..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/partial_update_instance.php +++ /dev/null @@ -1,90 +0,0 @@ -setDisplayName($instanceDisplayName); - $updateMask = new FieldMask(); - $request = (new PartialUpdateInstanceRequest()) - ->setInstance($instance) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $bigtableInstanceAdminClient->partialUpdateInstance($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Instance $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->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 -{ - $instanceDisplayName = '[DISPLAY_NAME]'; - - partial_update_instance_sample($instanceDisplayName); -} -// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/set_iam_policy.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/set_iam_policy.php deleted file mode 100644 index da536e9b47f9..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/set_iam_policy.php +++ /dev/null @@ -1,74 +0,0 @@ -setResource($resource) - ->setPolicy($policy); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $bigtableInstanceAdminClient->setIamPolicy($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 -{ - $resource = '[RESOURCE]'; - - set_iam_policy_sample($resource); -} -// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/test_iam_permissions.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/test_iam_permissions.php deleted file mode 100644 index 7edfde9e90ef..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/test_iam_permissions.php +++ /dev/null @@ -1,78 +0,0 @@ -setResource($resource) - ->setPermissions($permissions); - - // Call the API and handle any network failures. - try { - /** @var TestIamPermissionsResponse $response */ - $response = $bigtableInstanceAdminClient->testIamPermissions($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 -{ - $resource = '[RESOURCE]'; - $permissionsElement = '[PERMISSIONS]'; - - test_iam_permissions_sample($resource, $permissionsElement); -} -// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_app_profile.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_app_profile.php deleted file mode 100644 index f028673d8c8c..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_app_profile.php +++ /dev/null @@ -1,74 +0,0 @@ -setAppProfile($appProfile) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $bigtableInstanceAdminClient->updateAppProfile($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AppProfile $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_cluster.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_cluster.php deleted file mode 100644 index 4db75150127e..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_cluster.php +++ /dev/null @@ -1,91 +0,0 @@ -setName($name) - ->setServeNodes($serveNodes); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $bigtableInstanceAdminClient->updateCluster($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Cluster $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->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 -{ - $name = '[NAME]'; - $serveNodes = 0; - - update_cluster_sample($name, $serveNodes); -} -// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateCluster_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_instance.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_instance.php deleted file mode 100644 index 65a8127b9b4d..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_instance.php +++ /dev/null @@ -1,83 +0,0 @@ -setName($name) - ->setDisplayName($displayName) - ->setType($type) - ->setLabels($labels); - - // Call the API and handle any network failures. - try { - /** @var Instance $response */ - $response = $bigtableInstanceAdminClient->updateInstance($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 -{ - $name = '[NAME]'; - $displayName = '[DISPLAY_NAME]'; - $type = Type::TYPE_UNSPECIFIED; - - update_instance_sample($name, $displayName, $type); -} -// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateInstance_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_logical_view.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_logical_view.php deleted file mode 100644 index 49ea82c9532a..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_logical_view.php +++ /dev/null @@ -1,84 +0,0 @@ -setQuery($logicalViewQuery); - $request = (new UpdateLogicalViewRequest()) - ->setLogicalView($logicalView); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $bigtableInstanceAdminClient->updateLogicalView($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var LogicalView $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->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 -{ - $logicalViewQuery = '[QUERY]'; - - update_logical_view_sample($logicalViewQuery); -} -// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateLogicalView_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_materialized_view.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_materialized_view.php deleted file mode 100644 index 205f4dc4804a..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableInstanceAdminClient/update_materialized_view.php +++ /dev/null @@ -1,84 +0,0 @@ -setQuery($materializedViewQuery); - $request = (new UpdateMaterializedViewRequest()) - ->setMaterializedView($materializedView); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $bigtableInstanceAdminClient->updateMaterializedView($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var MaterializedView $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->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 -{ - $materializedViewQuery = '[QUERY]'; - - update_materialized_view_sample($materializedViewQuery); -} -// [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateMaterializedView_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/check_consistency.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/check_consistency.php deleted file mode 100644 index 989cc64c0167..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/check_consistency.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName) - ->setConsistencyToken($consistencyToken); - - // Call the API and handle any network failures. - try { - /** @var CheckConsistencyResponse $response */ - $response = $bigtableTableAdminClient->checkConsistency($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BigtableTableAdminClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $consistencyToken = '[CONSISTENCY_TOKEN]'; - - check_consistency_sample($formattedName, $consistencyToken); -} -// [END bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/copy_backup.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/copy_backup.php deleted file mode 100644 index 984cef9fa2cf..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/copy_backup.php +++ /dev/null @@ -1,115 +0,0 @@ -/instances//clusters//backups/`. Please see - * {@see BigtableTableAdminClient::backupName()} for help formatting this field. - */ -function copy_backup_sample( - string $formattedParent, - string $backupId, - string $formattedSourceBackup -): void { - // Create a client. - $bigtableTableAdminClient = new BigtableTableAdminClient(); - - // Prepare the request message. - $expireTime = new Timestamp(); - $request = (new CopyBackupRequest()) - ->setParent($formattedParent) - ->setBackupId($backupId) - ->setSourceBackup($formattedSourceBackup) - ->setExpireTime($expireTime); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $bigtableTableAdminClient->copyBackup($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Backup $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = BigtableTableAdminClient::clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); - $backupId = '[BACKUP_ID]'; - $formattedSourceBackup = BigtableTableAdminClient::backupName( - '[PROJECT]', - '[INSTANCE]', - '[CLUSTER]', - '[BACKUP]' - ); - - copy_backup_sample($formattedParent, $backupId, $formattedSourceBackup); -} -// [END bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_authorized_view.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_authorized_view.php deleted file mode 100644 index fdf560b122c0..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_authorized_view.php +++ /dev/null @@ -1,93 +0,0 @@ -setParent($formattedParent) - ->setAuthorizedViewId($authorizedViewId) - ->setAuthorizedView($authorizedView); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $bigtableTableAdminClient->createAuthorizedView($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AuthorizedView $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = BigtableTableAdminClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $authorizedViewId = '[AUTHORIZED_VIEW_ID]'; - - create_authorized_view_sample($formattedParent, $authorizedViewId); -} -// [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_backup.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_backup.php deleted file mode 100644 index e72b3f58b9e4..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_backup.php +++ /dev/null @@ -1,113 +0,0 @@ -setSourceTable($backupSourceTable) - ->setExpireTime($backupExpireTime); - $request = (new CreateBackupRequest()) - ->setParent($formattedParent) - ->setBackupId($backupId) - ->setBackup($backup); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $bigtableTableAdminClient->createBackup($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Backup $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = BigtableTableAdminClient::clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); - $backupId = '[BACKUP_ID]'; - $backupSourceTable = '[SOURCE_TABLE]'; - - create_backup_sample($formattedParent, $backupId, $backupSourceTable); -} -// [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_schema_bundle.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_schema_bundle.php deleted file mode 100644 index 91d252913315..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_schema_bundle.php +++ /dev/null @@ -1,91 +0,0 @@ -setParent($formattedParent) - ->setSchemaBundleId($schemaBundleId) - ->setSchemaBundle($schemaBundle); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $bigtableTableAdminClient->createSchemaBundle($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var SchemaBundle $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = BigtableTableAdminClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $schemaBundleId = '[SCHEMA_BUNDLE_ID]'; - - create_schema_bundle_sample($formattedParent, $schemaBundleId); -} -// [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateSchemaBundle_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_table.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_table.php deleted file mode 100644 index f027483edc1c..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_table.php +++ /dev/null @@ -1,81 +0,0 @@ -setParent($formattedParent) - ->setTableId($tableId) - ->setTable($table); - - // Call the API and handle any network failures. - try { - /** @var Table $response */ - $response = $bigtableTableAdminClient->createTable($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = BigtableTableAdminClient::instanceName('[PROJECT]', '[INSTANCE]'); - $tableId = '[TABLE_ID]'; - - create_table_sample($formattedParent, $tableId); -} -// [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_table_from_snapshot.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_table_from_snapshot.php deleted file mode 100644 index 1f091cff8e36..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/create_table_from_snapshot.php +++ /dev/null @@ -1,110 +0,0 @@ -setParent($formattedParent) - ->setTableId($tableId) - ->setSourceSnapshot($formattedSourceSnapshot); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $bigtableTableAdminClient->createTableFromSnapshot($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Table $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = BigtableTableAdminClient::instanceName('[PROJECT]', '[INSTANCE]'); - $tableId = '[TABLE_ID]'; - $formattedSourceSnapshot = BigtableTableAdminClient::snapshotName( - '[PROJECT]', - '[INSTANCE]', - '[CLUSTER]', - '[SNAPSHOT]' - ); - - create_table_from_snapshot_sample($formattedParent, $tableId, $formattedSourceSnapshot); -} -// [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_authorized_view.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_authorized_view.php deleted file mode 100644 index 00af6cc8371f..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_authorized_view.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $bigtableTableAdminClient->deleteAuthorizedView($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BigtableTableAdminClient::authorizedViewName( - '[PROJECT]', - '[INSTANCE]', - '[TABLE]', - '[AUTHORIZED_VIEW]' - ); - - delete_authorized_view_sample($formattedName); -} -// [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_backup.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_backup.php deleted file mode 100644 index 1295399b40d4..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_backup.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $bigtableTableAdminClient->deleteBackup($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BigtableTableAdminClient::backupName( - '[PROJECT]', - '[INSTANCE]', - '[CLUSTER]', - '[BACKUP]' - ); - - delete_backup_sample($formattedName); -} -// [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_schema_bundle.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_schema_bundle.php deleted file mode 100644 index 4036441c18c4..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_schema_bundle.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $bigtableTableAdminClient->deleteSchemaBundle($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BigtableTableAdminClient::schemaBundleName( - '[PROJECT]', - '[INSTANCE]', - '[TABLE]', - '[SCHEMA_BUNDLE]' - ); - - delete_schema_bundle_sample($formattedName); -} -// [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSchemaBundle_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_snapshot.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_snapshot.php deleted file mode 100644 index b72e1aba3e28..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_snapshot.php +++ /dev/null @@ -1,82 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $bigtableTableAdminClient->deleteSnapshot($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BigtableTableAdminClient::snapshotName( - '[PROJECT]', - '[INSTANCE]', - '[CLUSTER]', - '[SNAPSHOT]' - ); - - delete_snapshot_sample($formattedName); -} -// [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_table.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_table.php deleted file mode 100644 index 39413f4935b7..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/delete_table.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $bigtableTableAdminClient->deleteTable($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BigtableTableAdminClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - - delete_table_sample($formattedName); -} -// [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/drop_row_range.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/drop_row_range.php deleted file mode 100644 index a10f821ec8b2..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/drop_row_range.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $bigtableTableAdminClient->dropRowRange($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BigtableTableAdminClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - - drop_row_range_sample($formattedName); -} -// [END bigtableadmin_v2_generated_BigtableTableAdmin_DropRowRange_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/generate_consistency_token.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/generate_consistency_token.php deleted file mode 100644 index a20dd630f22f..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/generate_consistency_token.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var GenerateConsistencyTokenResponse $response */ - $response = $bigtableTableAdminClient->generateConsistencyToken($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BigtableTableAdminClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - - generate_consistency_token_sample($formattedName); -} -// [END bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_authorized_view.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_authorized_view.php deleted file mode 100644 index 47c3aab01f0f..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_authorized_view.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var AuthorizedView $response */ - $response = $bigtableTableAdminClient->getAuthorizedView($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BigtableTableAdminClient::authorizedViewName( - '[PROJECT]', - '[INSTANCE]', - '[TABLE]', - '[AUTHORIZED_VIEW]' - ); - - get_authorized_view_sample($formattedName); -} -// [END bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_backup.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_backup.php deleted file mode 100644 index 410abe345856..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_backup.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Backup $response */ - $response = $bigtableTableAdminClient->getBackup($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BigtableTableAdminClient::backupName( - '[PROJECT]', - '[INSTANCE]', - '[CLUSTER]', - '[BACKUP]' - ); - - get_backup_sample($formattedName); -} -// [END bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_iam_policy.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_iam_policy.php deleted file mode 100644 index d6af14bcb52e..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_iam_policy.php +++ /dev/null @@ -1,73 +0,0 @@ -setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $bigtableTableAdminClient->getIamPolicy($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 -{ - $resource = '[RESOURCE]'; - - get_iam_policy_sample($resource); -} -// [END bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_schema_bundle.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_schema_bundle.php deleted file mode 100644 index fa8a213c2844..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_schema_bundle.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var SchemaBundle $response */ - $response = $bigtableTableAdminClient->getSchemaBundle($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BigtableTableAdminClient::schemaBundleName( - '[PROJECT]', - '[INSTANCE]', - '[TABLE]', - '[SCHEMA_BUNDLE]' - ); - - get_schema_bundle_sample($formattedName); -} -// [END bigtableadmin_v2_generated_BigtableTableAdmin_GetSchemaBundle_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_snapshot.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_snapshot.php deleted file mode 100644 index 1735de5824a2..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_snapshot.php +++ /dev/null @@ -1,84 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Snapshot $response */ - $response = $bigtableTableAdminClient->getSnapshot($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BigtableTableAdminClient::snapshotName( - '[PROJECT]', - '[INSTANCE]', - '[CLUSTER]', - '[SNAPSHOT]' - ); - - get_snapshot_sample($formattedName); -} -// [END bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_table.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_table.php deleted file mode 100644 index 48308955b255..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/get_table.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Table $response */ - $response = $bigtableTableAdminClient->getTable($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BigtableTableAdminClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - - get_table_sample($formattedName); -} -// [END bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_authorized_views.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_authorized_views.php deleted file mode 100644 index 825af93b1d1d..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_authorized_views.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $bigtableTableAdminClient->listAuthorizedViews($request); - - /** @var AuthorizedView $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = BigtableTableAdminClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - - list_authorized_views_sample($formattedParent); -} -// [END bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_backups.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_backups.php deleted file mode 100644 index 0e95887d9886..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_backups.php +++ /dev/null @@ -1,80 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $bigtableTableAdminClient->listBackups($request); - - /** @var Backup $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = BigtableTableAdminClient::clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); - - list_backups_sample($formattedParent); -} -// [END bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_schema_bundles.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_schema_bundles.php deleted file mode 100644 index 172546d31a27..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_schema_bundles.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $bigtableTableAdminClient->listSchemaBundles($request); - - /** @var SchemaBundle $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = BigtableTableAdminClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - - list_schema_bundles_sample($formattedParent); -} -// [END bigtableadmin_v2_generated_BigtableTableAdmin_ListSchemaBundles_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_snapshots.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_snapshots.php deleted file mode 100644 index f82d2f9a1803..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_snapshots.php +++ /dev/null @@ -1,86 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $bigtableTableAdminClient->listSnapshots($request); - - /** @var Snapshot $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = BigtableTableAdminClient::clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); - - list_snapshots_sample($formattedParent); -} -// [END bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_tables.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_tables.php deleted file mode 100644 index dbc5a9dc47c4..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/list_tables.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $bigtableTableAdminClient->listTables($request); - - /** @var Table $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = BigtableTableAdminClient::instanceName('[PROJECT]', '[INSTANCE]'); - - list_tables_sample($formattedParent); -} -// [END bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/modify_column_families.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/modify_column_families.php deleted file mode 100644 index f66169868020..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/modify_column_families.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedName) - ->setModifications($modifications); - - // Call the API and handle any network failures. - try { - /** @var Table $response */ - $response = $bigtableTableAdminClient->modifyColumnFamilies($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BigtableTableAdminClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - - modify_column_families_sample($formattedName); -} -// [END bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/restore_table.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/restore_table.php deleted file mode 100644 index 47790c3eba5a..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/restore_table.php +++ /dev/null @@ -1,96 +0,0 @@ -/instances/`. Please see - * {@see BigtableTableAdminClient::instanceName()} for help formatting this field. - * @param string $tableId The id of the table to create and restore to. This - * table must not already exist. The `table_id` appended to - * `parent` forms the full table name of the form - * `projects//instances//tables/`. - */ -function restore_table_sample(string $formattedParent, string $tableId): void -{ - // Create a client. - $bigtableTableAdminClient = new BigtableTableAdminClient(); - - // Prepare the request message. - $request = (new RestoreTableRequest()) - ->setParent($formattedParent) - ->setTableId($tableId); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $bigtableTableAdminClient->restoreTable($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Table $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = BigtableTableAdminClient::instanceName('[PROJECT]', '[INSTANCE]'); - $tableId = '[TABLE_ID]'; - - restore_table_sample($formattedParent, $tableId); -} -// [END bigtableadmin_v2_generated_BigtableTableAdmin_RestoreTable_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/set_iam_policy.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/set_iam_policy.php deleted file mode 100644 index 41733ffdbca2..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/set_iam_policy.php +++ /dev/null @@ -1,74 +0,0 @@ -setResource($resource) - ->setPolicy($policy); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $bigtableTableAdminClient->setIamPolicy($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 -{ - $resource = '[RESOURCE]'; - - set_iam_policy_sample($resource); -} -// [END bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/snapshot_table.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/snapshot_table.php deleted file mode 100644 index 31c25bd486db..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/snapshot_table.php +++ /dev/null @@ -1,107 +0,0 @@ -setName($formattedName) - ->setCluster($formattedCluster) - ->setSnapshotId($snapshotId); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $bigtableTableAdminClient->snapshotTable($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Snapshot $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BigtableTableAdminClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $formattedCluster = BigtableTableAdminClient::clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); - $snapshotId = '[SNAPSHOT_ID]'; - - snapshot_table_sample($formattedName, $formattedCluster, $snapshotId); -} -// [END bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/test_iam_permissions.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/test_iam_permissions.php deleted file mode 100644 index 2e9c42b62f0d..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/test_iam_permissions.php +++ /dev/null @@ -1,79 +0,0 @@ -setResource($resource) - ->setPermissions($permissions); - - // Call the API and handle any network failures. - try { - /** @var TestIamPermissionsResponse $response */ - $response = $bigtableTableAdminClient->testIamPermissions($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 -{ - $resource = '[RESOURCE]'; - $permissionsElement = '[PERMISSIONS]'; - - test_iam_permissions_sample($resource, $permissionsElement); -} -// [END bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/undelete_table.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/undelete_table.php deleted file mode 100644 index c57255e7f00e..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/undelete_table.php +++ /dev/null @@ -1,85 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $bigtableTableAdminClient->undeleteTable($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Table $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BigtableTableAdminClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - - undelete_table_sample($formattedName); -} -// [END bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/update_authorized_view.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/update_authorized_view.php deleted file mode 100644 index bca462c4d0ae..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/update_authorized_view.php +++ /dev/null @@ -1,71 +0,0 @@ -setAuthorizedView($authorizedView); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $bigtableTableAdminClient->updateAuthorizedView($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AuthorizedView $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/update_backup.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/update_backup.php deleted file mode 100644 index d2aad9eaa9bf..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/update_backup.php +++ /dev/null @@ -1,80 +0,0 @@ -setSourceTable($backupSourceTable) - ->setExpireTime($backupExpireTime); - $updateMask = new FieldMask(); - $request = (new UpdateBackupRequest()) - ->setBackup($backup) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var Backup $response */ - $response = $bigtableTableAdminClient->updateBackup($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 -{ - $backupSourceTable = '[SOURCE_TABLE]'; - - update_backup_sample($backupSourceTable); -} -// [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/update_schema_bundle.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/update_schema_bundle.php deleted file mode 100644 index 5e79ced2a810..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/update_schema_bundle.php +++ /dev/null @@ -1,71 +0,0 @@ -setSchemaBundle($schemaBundle); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $bigtableTableAdminClient->updateSchemaBundle($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var SchemaBundle $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateSchemaBundle_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/update_table.php b/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/update_table.php deleted file mode 100644 index c3af7971cf8c..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/samples/V2/BigtableTableAdminClient/update_table.php +++ /dev/null @@ -1,74 +0,0 @@ -setTable($table) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $bigtableTableAdminClient->updateTable($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Table $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_sync] diff --git a/owl-bot-staging/Bigtable/v2/Admin/src/V2/Client/BigtableInstanceAdminClient.php b/owl-bot-staging/Bigtable/v2/Admin/src/V2/Client/BigtableInstanceAdminClient.php deleted file mode 100644 index 2a63b634c358..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/src/V2/Client/BigtableInstanceAdminClient.php +++ /dev/null @@ -1,1366 +0,0 @@ - createAppProfileAsync(CreateAppProfileRequest $request, array $optionalArgs = []) - * @method PromiseInterface createClusterAsync(CreateClusterRequest $request, array $optionalArgs = []) - * @method PromiseInterface createInstanceAsync(CreateInstanceRequest $request, array $optionalArgs = []) - * @method PromiseInterface createLogicalViewAsync(CreateLogicalViewRequest $request, array $optionalArgs = []) - * @method PromiseInterface createMaterializedViewAsync(CreateMaterializedViewRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteAppProfileAsync(DeleteAppProfileRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteClusterAsync(DeleteClusterRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteInstanceAsync(DeleteInstanceRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteLogicalViewAsync(DeleteLogicalViewRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteMaterializedViewAsync(DeleteMaterializedViewRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAppProfileAsync(GetAppProfileRequest $request, array $optionalArgs = []) - * @method PromiseInterface getClusterAsync(GetClusterRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface getInstanceAsync(GetInstanceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLogicalViewAsync(GetLogicalViewRequest $request, array $optionalArgs = []) - * @method PromiseInterface getMaterializedViewAsync(GetMaterializedViewRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAppProfilesAsync(ListAppProfilesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listClustersAsync(ListClustersRequest $request, array $optionalArgs = []) - * @method PromiseInterface listHotTabletsAsync(ListHotTabletsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listInstancesAsync(ListInstancesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLogicalViewsAsync(ListLogicalViewsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listMaterializedViewsAsync(ListMaterializedViewsRequest $request, array $optionalArgs = []) - * @method PromiseInterface partialUpdateClusterAsync(PartialUpdateClusterRequest $request, array $optionalArgs = []) - * @method PromiseInterface partialUpdateInstanceAsync(PartialUpdateInstanceRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateAppProfileAsync(UpdateAppProfileRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateClusterAsync(Cluster $request, array $optionalArgs = []) - * @method PromiseInterface updateInstanceAsync(Instance $request, array $optionalArgs = []) - * @method PromiseInterface updateLogicalViewAsync(UpdateLogicalViewRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateMaterializedViewAsync(UpdateMaterializedViewRequest $request, array $optionalArgs = []) - */ -final class BigtableInstanceAdminClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.bigtable.admin.v2.BigtableInstanceAdmin'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'bigtableadmin.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'bigtableadmin.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/bigtable.admin', - 'https://www.googleapis.com/auth/bigtable.admin.cluster', - 'https://www.googleapis.com/auth/bigtable.admin.instance', - 'https://www.googleapis.com/auth/cloud-bigtable.admin', - 'https://www.googleapis.com/auth/cloud-bigtable.admin.cluster', - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/cloud-platform.read-only', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/bigtable_instance_admin_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/bigtable_instance_admin_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/bigtable_instance_admin_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/bigtable_instance_admin_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = $this->descriptors[$methodName]['longRunning'] ?? []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Formats a string containing the fully-qualified path to represent a app_profile - * resource. - * - * @param string $project - * @param string $instance - * @param string $appProfile - * - * @return string The formatted app_profile resource. - */ - public static function appProfileName(string $project, string $instance, string $appProfile): string - { - return self::getPathTemplate('appProfile')->render([ - 'project' => $project, - 'instance' => $instance, - 'app_profile' => $appProfile, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a cluster - * resource. - * - * @param string $project - * @param string $instance - * @param string $cluster - * - * @return string The formatted cluster resource. - */ - public static function clusterName(string $project, string $instance, string $cluster): string - { - return self::getPathTemplate('cluster')->render([ - 'project' => $project, - 'instance' => $instance, - 'cluster' => $cluster, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a crypto_key - * resource. - * - * @param string $project - * @param string $location - * @param string $keyRing - * @param string $cryptoKey - * - * @return string The formatted crypto_key resource. - */ - public static function cryptoKeyName(string $project, string $location, string $keyRing, string $cryptoKey): string - { - return self::getPathTemplate('cryptoKey')->render([ - 'project' => $project, - 'location' => $location, - 'key_ring' => $keyRing, - 'crypto_key' => $cryptoKey, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a instance - * resource. - * - * @param string $project - * @param string $instance - * - * @return string The formatted instance resource. - */ - public static function instanceName(string $project, string $instance): string - { - return self::getPathTemplate('instance')->render([ - 'project' => $project, - 'instance' => $instance, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted location resource. - */ - public static function locationName(string $project, string $location): string - { - return self::getPathTemplate('location')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a logical_view - * resource. - * - * @param string $project - * @param string $instance - * @param string $logicalView - * - * @return string The formatted logical_view resource. - */ - public static function logicalViewName(string $project, string $instance, string $logicalView): string - { - return self::getPathTemplate('logicalView')->render([ - 'project' => $project, - 'instance' => $instance, - 'logical_view' => $logicalView, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * materialized_view resource. - * - * @param string $project - * @param string $instance - * @param string $materializedView - * - * @return string The formatted materialized_view resource. - */ - public static function materializedViewName(string $project, string $instance, string $materializedView): string - { - return self::getPathTemplate('materializedView')->render([ - 'project' => $project, - 'instance' => $instance, - 'materialized_view' => $materializedView, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a project - * resource. - * - * @param string $project - * - * @return string The formatted project resource. - */ - public static function projectName(string $project): string - { - return self::getPathTemplate('project')->render([ - 'project' => $project, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - appProfile: projects/{project}/instances/{instance}/appProfiles/{app_profile} - * - cluster: projects/{project}/instances/{instance}/clusters/{cluster} - * - cryptoKey: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key} - * - instance: projects/{project}/instances/{instance} - * - location: projects/{project}/locations/{location} - * - logicalView: projects/{project}/instances/{instance}/logicalViews/{logical_view} - * - materializedView: projects/{project}/instances/{instance}/materializedViews/{materialized_view} - * - project: projects/{project} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * Setting the "BIGTABLE_EMULATOR_HOST" environment variable will automatically set - * the API Endpoint to the value specified in the variable, as well as ensure that - * empty credentials are used in the transport layer. - * - * @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 'bigtableadmin.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\Bigtable\Admin\V2\BigtableInstanceAdminClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new BigtableInstanceAdminClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $options = $this->setDefaultEmulatorConfig($options); - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($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); - } - - /** - * Creates an app profile within an instance. - * - * The async variant is {@see BigtableInstanceAdminClient::createAppProfileAsync()} - * . - * - * @example samples/V2/BigtableInstanceAdminClient/create_app_profile.php - * - * @param CreateAppProfileRequest $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 AppProfile - * - * @throws ApiException Thrown if the API call fails. - */ - public function createAppProfile(CreateAppProfileRequest $request, array $callOptions = []): AppProfile - { - return $this->startApiCall('CreateAppProfile', $request, $callOptions)->wait(); - } - - /** - * Creates a cluster within an instance. - * - * Note that exactly one of Cluster.serve_nodes and - * Cluster.cluster_config.cluster_autoscaling_config can be set. If - * serve_nodes is set to non-zero, then the cluster is manually scaled. If - * cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is - * enabled. - * - * The async variant is {@see BigtableInstanceAdminClient::createClusterAsync()} . - * - * @example samples/V2/BigtableInstanceAdminClient/create_cluster.php - * - * @param CreateClusterRequest $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 OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createCluster(CreateClusterRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateCluster', $request, $callOptions)->wait(); - } - - /** - * Create an instance within a project. - * - * Note that exactly one of Cluster.serve_nodes and - * Cluster.cluster_config.cluster_autoscaling_config can be set. If - * serve_nodes is set to non-zero, then the cluster is manually scaled. If - * cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is - * enabled. - * - * The async variant is {@see BigtableInstanceAdminClient::createInstanceAsync()} . - * - * @example samples/V2/BigtableInstanceAdminClient/create_instance.php - * - * @param CreateInstanceRequest $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 OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createInstance(CreateInstanceRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateInstance', $request, $callOptions)->wait(); - } - - /** - * Creates a logical view within an instance. - * - * The async variant is - * {@see BigtableInstanceAdminClient::createLogicalViewAsync()} . - * - * @example samples/V2/BigtableInstanceAdminClient/create_logical_view.php - * - * @param CreateLogicalViewRequest $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 OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createLogicalView(CreateLogicalViewRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateLogicalView', $request, $callOptions)->wait(); - } - - /** - * Creates a materialized view within an instance. - * - * The async variant is - * {@see BigtableInstanceAdminClient::createMaterializedViewAsync()} . - * - * @example samples/V2/BigtableInstanceAdminClient/create_materialized_view.php - * - * @param CreateMaterializedViewRequest $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 OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createMaterializedView(CreateMaterializedViewRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateMaterializedView', $request, $callOptions)->wait(); - } - - /** - * Deletes an app profile from an instance. - * - * The async variant is {@see BigtableInstanceAdminClient::deleteAppProfileAsync()} - * . - * - * @example samples/V2/BigtableInstanceAdminClient/delete_app_profile.php - * - * @param DeleteAppProfileRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteAppProfile(DeleteAppProfileRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteAppProfile', $request, $callOptions)->wait(); - } - - /** - * Deletes a cluster from an instance. - * - * The async variant is {@see BigtableInstanceAdminClient::deleteClusterAsync()} . - * - * @example samples/V2/BigtableInstanceAdminClient/delete_cluster.php - * - * @param DeleteClusterRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteCluster(DeleteClusterRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteCluster', $request, $callOptions)->wait(); - } - - /** - * Delete an instance from a project. - * - * The async variant is {@see BigtableInstanceAdminClient::deleteInstanceAsync()} . - * - * @example samples/V2/BigtableInstanceAdminClient/delete_instance.php - * - * @param DeleteInstanceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteInstance(DeleteInstanceRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteInstance', $request, $callOptions)->wait(); - } - - /** - * Deletes a logical view from an instance. - * - * The async variant is - * {@see BigtableInstanceAdminClient::deleteLogicalViewAsync()} . - * - * @example samples/V2/BigtableInstanceAdminClient/delete_logical_view.php - * - * @param DeleteLogicalViewRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteLogicalView(DeleteLogicalViewRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteLogicalView', $request, $callOptions)->wait(); - } - - /** - * Deletes a materialized view from an instance. - * - * The async variant is - * {@see BigtableInstanceAdminClient::deleteMaterializedViewAsync()} . - * - * @example samples/V2/BigtableInstanceAdminClient/delete_materialized_view.php - * - * @param DeleteMaterializedViewRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteMaterializedView(DeleteMaterializedViewRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteMaterializedView', $request, $callOptions)->wait(); - } - - /** - * Gets information about an app profile. - * - * The async variant is {@see BigtableInstanceAdminClient::getAppProfileAsync()} . - * - * @example samples/V2/BigtableInstanceAdminClient/get_app_profile.php - * - * @param GetAppProfileRequest $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 AppProfile - * - * @throws ApiException Thrown if the API call fails. - */ - public function getAppProfile(GetAppProfileRequest $request, array $callOptions = []): AppProfile - { - return $this->startApiCall('GetAppProfile', $request, $callOptions)->wait(); - } - - /** - * Gets information about a cluster. - * - * The async variant is {@see BigtableInstanceAdminClient::getClusterAsync()} . - * - * @example samples/V2/BigtableInstanceAdminClient/get_cluster.php - * - * @param GetClusterRequest $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 Cluster - * - * @throws ApiException Thrown if the API call fails. - */ - public function getCluster(GetClusterRequest $request, array $callOptions = []): Cluster - { - return $this->startApiCall('GetCluster', $request, $callOptions)->wait(); - } - - /** - * Gets the access control policy for an instance resource. Returns an empty - * policy if an instance exists but does not have a policy set. - * - * The async variant is {@see BigtableInstanceAdminClient::getIamPolicyAsync()} . - * - * @example samples/V2/BigtableInstanceAdminClient/get_iam_policy.php - * - * @param GetIamPolicyRequest $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 Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Gets information about an instance. - * - * The async variant is {@see BigtableInstanceAdminClient::getInstanceAsync()} . - * - * @example samples/V2/BigtableInstanceAdminClient/get_instance.php - * - * @param GetInstanceRequest $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 Instance - * - * @throws ApiException Thrown if the API call fails. - */ - public function getInstance(GetInstanceRequest $request, array $callOptions = []): Instance - { - return $this->startApiCall('GetInstance', $request, $callOptions)->wait(); - } - - /** - * Gets information about a logical view. - * - * The async variant is {@see BigtableInstanceAdminClient::getLogicalViewAsync()} . - * - * @example samples/V2/BigtableInstanceAdminClient/get_logical_view.php - * - * @param GetLogicalViewRequest $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 LogicalView - * - * @throws ApiException Thrown if the API call fails. - */ - public function getLogicalView(GetLogicalViewRequest $request, array $callOptions = []): LogicalView - { - return $this->startApiCall('GetLogicalView', $request, $callOptions)->wait(); - } - - /** - * Gets information about a materialized view. - * - * The async variant is - * {@see BigtableInstanceAdminClient::getMaterializedViewAsync()} . - * - * @example samples/V2/BigtableInstanceAdminClient/get_materialized_view.php - * - * @param GetMaterializedViewRequest $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 MaterializedView - * - * @throws ApiException Thrown if the API call fails. - */ - public function getMaterializedView(GetMaterializedViewRequest $request, array $callOptions = []): MaterializedView - { - return $this->startApiCall('GetMaterializedView', $request, $callOptions)->wait(); - } - - /** - * Lists information about app profiles in an instance. - * - * The async variant is {@see BigtableInstanceAdminClient::listAppProfilesAsync()} - * . - * - * @example samples/V2/BigtableInstanceAdminClient/list_app_profiles.php - * - * @param ListAppProfilesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listAppProfiles(ListAppProfilesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListAppProfiles', $request, $callOptions); - } - - /** - * Lists information about clusters in an instance. - * - * The async variant is {@see BigtableInstanceAdminClient::listClustersAsync()} . - * - * @example samples/V2/BigtableInstanceAdminClient/list_clusters.php - * - * @param ListClustersRequest $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 ListClustersResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listClusters(ListClustersRequest $request, array $callOptions = []): ListClustersResponse - { - return $this->startApiCall('ListClusters', $request, $callOptions)->wait(); - } - - /** - * Lists hot tablets in a cluster, within the time range provided. Hot - * tablets are ordered based on CPU usage. - * - * The async variant is {@see BigtableInstanceAdminClient::listHotTabletsAsync()} . - * - * @example samples/V2/BigtableInstanceAdminClient/list_hot_tablets.php - * - * @param ListHotTabletsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listHotTablets(ListHotTabletsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListHotTablets', $request, $callOptions); - } - - /** - * Lists information about instances in a project. - * - * The async variant is {@see BigtableInstanceAdminClient::listInstancesAsync()} . - * - * @example samples/V2/BigtableInstanceAdminClient/list_instances.php - * - * @param ListInstancesRequest $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 ListInstancesResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listInstances(ListInstancesRequest $request, array $callOptions = []): ListInstancesResponse - { - return $this->startApiCall('ListInstances', $request, $callOptions)->wait(); - } - - /** - * Lists information about logical views in an instance. - * - * The async variant is {@see BigtableInstanceAdminClient::listLogicalViewsAsync()} - * . - * - * @example samples/V2/BigtableInstanceAdminClient/list_logical_views.php - * - * @param ListLogicalViewsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listLogicalViews(ListLogicalViewsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListLogicalViews', $request, $callOptions); - } - - /** - * Lists information about materialized views in an instance. - * - * The async variant is - * {@see BigtableInstanceAdminClient::listMaterializedViewsAsync()} . - * - * @example samples/V2/BigtableInstanceAdminClient/list_materialized_views.php - * - * @param ListMaterializedViewsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listMaterializedViews(ListMaterializedViewsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListMaterializedViews', $request, $callOptions); - } - - /** - * Partially updates a cluster within a project. This method is the preferred - * way to update a Cluster. - * - * To enable and update autoscaling, set - * cluster_config.cluster_autoscaling_config. When autoscaling is enabled, - * serve_nodes is treated as an OUTPUT_ONLY field, meaning that updates to it - * are ignored. Note that an update cannot simultaneously set serve_nodes to - * non-zero and cluster_config.cluster_autoscaling_config to non-empty, and - * also specify both in the update_mask. - * - * To disable autoscaling, clear cluster_config.cluster_autoscaling_config, - * and explicitly set a serve_node count via the update_mask. - * - * The async variant is - * {@see BigtableInstanceAdminClient::partialUpdateClusterAsync()} . - * - * @example samples/V2/BigtableInstanceAdminClient/partial_update_cluster.php - * - * @param PartialUpdateClusterRequest $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 OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function partialUpdateCluster(PartialUpdateClusterRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('PartialUpdateCluster', $request, $callOptions)->wait(); - } - - /** - * Partially updates an instance within a project. This method can modify all - * fields of an Instance and is the preferred way to update an Instance. - * - * The async variant is - * {@see BigtableInstanceAdminClient::partialUpdateInstanceAsync()} . - * - * @example samples/V2/BigtableInstanceAdminClient/partial_update_instance.php - * - * @param PartialUpdateInstanceRequest $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 OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function partialUpdateInstance(PartialUpdateInstanceRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('PartialUpdateInstance', $request, $callOptions)->wait(); - } - - /** - * Sets the access control policy on an instance resource. Replaces any - * existing policy. - * - * The async variant is {@see BigtableInstanceAdminClient::setIamPolicyAsync()} . - * - * @example samples/V2/BigtableInstanceAdminClient/set_iam_policy.php - * - * @param SetIamPolicyRequest $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 Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Returns permissions that the caller has on the specified instance resource. - * - * The async variant is - * {@see BigtableInstanceAdminClient::testIamPermissionsAsync()} . - * - * @example samples/V2/BigtableInstanceAdminClient/test_iam_permissions.php - * - * @param TestIamPermissionsRequest $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 TestIamPermissionsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse - { - return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); - } - - /** - * Updates an app profile within an instance. - * - * The async variant is {@see BigtableInstanceAdminClient::updateAppProfileAsync()} - * . - * - * @example samples/V2/BigtableInstanceAdminClient/update_app_profile.php - * - * @param UpdateAppProfileRequest $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 OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateAppProfile(UpdateAppProfileRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateAppProfile', $request, $callOptions)->wait(); - } - - /** - * Updates a cluster within an instance. - * - * Note that UpdateCluster does not support updating - * cluster_config.cluster_autoscaling_config. In order to update it, you - * must use PartialUpdateCluster. - * - * The async variant is {@see BigtableInstanceAdminClient::updateClusterAsync()} . - * - * @example samples/V2/BigtableInstanceAdminClient/update_cluster.php - * - * @param Cluster $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 OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateCluster(Cluster $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateCluster', $request, $callOptions)->wait(); - } - - /** - * Updates an instance within a project. This method updates only the display - * name and type for an Instance. To update other Instance properties, such as - * labels, use PartialUpdateInstance. - * - * The async variant is {@see BigtableInstanceAdminClient::updateInstanceAsync()} . - * - * @example samples/V2/BigtableInstanceAdminClient/update_instance.php - * - * @param Instance $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 Instance - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateInstance(Instance $request, array $callOptions = []): Instance - { - return $this->startApiCall('UpdateInstance', $request, $callOptions)->wait(); - } - - /** - * Updates a logical view within an instance. - * - * The async variant is - * {@see BigtableInstanceAdminClient::updateLogicalViewAsync()} . - * - * @example samples/V2/BigtableInstanceAdminClient/update_logical_view.php - * - * @param UpdateLogicalViewRequest $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 OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateLogicalView(UpdateLogicalViewRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateLogicalView', $request, $callOptions)->wait(); - } - - /** - * Updates a materialized view within an instance. - * - * The async variant is - * {@see BigtableInstanceAdminClient::updateMaterializedViewAsync()} . - * - * @example samples/V2/BigtableInstanceAdminClient/update_materialized_view.php - * - * @param UpdateMaterializedViewRequest $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 OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateMaterializedView(UpdateMaterializedViewRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateMaterializedView', $request, $callOptions)->wait(); - } - - /** Configure the gapic configuration to use a service emulator. */ - private function setDefaultEmulatorConfig(array $options): array - { - $emulatorHost = getenv('BIGTABLE_EMULATOR_HOST'); - if (empty($emulatorHost)) { - return $options; - } - - if ($scheme = parse_url($emulatorHost, PHP_URL_SCHEME)) { - $search = $scheme . '://'; - $emulatorHost = str_replace($search, '', $emulatorHost); - } - - $options['apiEndpoint'] ??= $emulatorHost; - if (class_exists(ChannelCredentials::class)) { - $options['transportConfig']['grpc']['stubOpts']['credentials'] ??= ChannelCredentials::createInsecure(); - } - - $options['credentials'] ??= new InsecureCredentialsWrapper(); - return $options; - } -} diff --git a/owl-bot-staging/Bigtable/v2/Admin/src/V2/Client/BigtableTableAdminClient.php b/owl-bot-staging/Bigtable/v2/Admin/src/V2/Client/BigtableTableAdminClient.php deleted file mode 100644 index 732192f8fc91..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/src/V2/Client/BigtableTableAdminClient.php +++ /dev/null @@ -1,1540 +0,0 @@ - checkConsistencyAsync(CheckConsistencyRequest $request, array $optionalArgs = []) - * @method PromiseInterface copyBackupAsync(CopyBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface createAuthorizedViewAsync(CreateAuthorizedViewRequest $request, array $optionalArgs = []) - * @method PromiseInterface createBackupAsync(CreateBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface createSchemaBundleAsync(CreateSchemaBundleRequest $request, array $optionalArgs = []) - * @method PromiseInterface
createTableAsync(CreateTableRequest $request, array $optionalArgs = []) - * @method PromiseInterface createTableFromSnapshotAsync(CreateTableFromSnapshotRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteAuthorizedViewAsync(DeleteAuthorizedViewRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteBackupAsync(DeleteBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteSchemaBundleAsync(DeleteSchemaBundleRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteSnapshotAsync(DeleteSnapshotRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteTableAsync(DeleteTableRequest $request, array $optionalArgs = []) - * @method PromiseInterface dropRowRangeAsync(DropRowRangeRequest $request, array $optionalArgs = []) - * @method PromiseInterface generateConsistencyTokenAsync(GenerateConsistencyTokenRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAuthorizedViewAsync(GetAuthorizedViewRequest $request, array $optionalArgs = []) - * @method PromiseInterface getBackupAsync(GetBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSchemaBundleAsync(GetSchemaBundleRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSnapshotAsync(GetSnapshotRequest $request, array $optionalArgs = []) - * @method PromiseInterface
getTableAsync(GetTableRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAuthorizedViewsAsync(ListAuthorizedViewsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listBackupsAsync(ListBackupsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listSchemaBundlesAsync(ListSchemaBundlesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listSnapshotsAsync(ListSnapshotsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listTablesAsync(ListTablesRequest $request, array $optionalArgs = []) - * @method PromiseInterface
modifyColumnFamiliesAsync(ModifyColumnFamiliesRequest $request, array $optionalArgs = []) - * @method PromiseInterface restoreTableAsync(RestoreTableRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface snapshotTableAsync(SnapshotTableRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface undeleteTableAsync(UndeleteTableRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateAuthorizedViewAsync(UpdateAuthorizedViewRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateBackupAsync(UpdateBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateSchemaBundleAsync(UpdateSchemaBundleRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateTableAsync(UpdateTableRequest $request, array $optionalArgs = []) - */ -final class BigtableTableAdminClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.bigtable.admin.v2.BigtableTableAdmin'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'bigtableadmin.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'bigtableadmin.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/bigtable.admin', - 'https://www.googleapis.com/auth/bigtable.admin.table', - 'https://www.googleapis.com/auth/cloud-bigtable.admin', - 'https://www.googleapis.com/auth/cloud-bigtable.admin.table', - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/cloud-platform.read-only', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/bigtable_table_admin_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/bigtable_table_admin_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/bigtable_table_admin_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/bigtable_table_admin_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = $this->descriptors[$methodName]['longRunning'] ?? []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * authorized_view resource. - * - * @param string $project - * @param string $instance - * @param string $table - * @param string $authorizedView - * - * @return string The formatted authorized_view resource. - */ - public static function authorizedViewName(string $project, string $instance, string $table, string $authorizedView): string - { - return self::getPathTemplate('authorizedView')->render([ - 'project' => $project, - 'instance' => $instance, - 'table' => $table, - 'authorized_view' => $authorizedView, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a backup - * resource. - * - * @param string $project - * @param string $instance - * @param string $cluster - * @param string $backup - * - * @return string The formatted backup resource. - */ - public static function backupName(string $project, string $instance, string $cluster, string $backup): string - { - return self::getPathTemplate('backup')->render([ - 'project' => $project, - 'instance' => $instance, - 'cluster' => $cluster, - 'backup' => $backup, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a cluster - * resource. - * - * @param string $project - * @param string $instance - * @param string $cluster - * - * @return string The formatted cluster resource. - */ - public static function clusterName(string $project, string $instance, string $cluster): string - { - return self::getPathTemplate('cluster')->render([ - 'project' => $project, - 'instance' => $instance, - 'cluster' => $cluster, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * crypto_key_version resource. - * - * @param string $project - * @param string $location - * @param string $keyRing - * @param string $cryptoKey - * @param string $cryptoKeyVersion - * - * @return string The formatted crypto_key_version resource. - */ - public static function cryptoKeyVersionName(string $project, string $location, string $keyRing, string $cryptoKey, string $cryptoKeyVersion): string - { - return self::getPathTemplate('cryptoKeyVersion')->render([ - 'project' => $project, - 'location' => $location, - 'key_ring' => $keyRing, - 'crypto_key' => $cryptoKey, - 'crypto_key_version' => $cryptoKeyVersion, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a instance - * resource. - * - * @param string $project - * @param string $instance - * - * @return string The formatted instance resource. - */ - public static function instanceName(string $project, string $instance): string - { - return self::getPathTemplate('instance')->render([ - 'project' => $project, - 'instance' => $instance, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted location resource. - */ - public static function locationName(string $project, string $location): string - { - return self::getPathTemplate('location')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * schema_bundle resource. - * - * @param string $project - * @param string $instance - * @param string $table - * @param string $schemaBundle - * - * @return string The formatted schema_bundle resource. - */ - public static function schemaBundleName(string $project, string $instance, string $table, string $schemaBundle): string - { - return self::getPathTemplate('schemaBundle')->render([ - 'project' => $project, - 'instance' => $instance, - 'table' => $table, - 'schema_bundle' => $schemaBundle, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a snapshot - * resource. - * - * @param string $project - * @param string $instance - * @param string $cluster - * @param string $snapshot - * - * @return string The formatted snapshot resource. - */ - public static function snapshotName(string $project, string $instance, string $cluster, string $snapshot): string - { - return self::getPathTemplate('snapshot')->render([ - 'project' => $project, - 'instance' => $instance, - 'cluster' => $cluster, - 'snapshot' => $snapshot, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a table - * resource. - * - * @param string $project - * @param string $instance - * @param string $table - * - * @return string The formatted table resource. - */ - public static function tableName(string $project, string $instance, string $table): string - { - return self::getPathTemplate('table')->render([ - 'project' => $project, - 'instance' => $instance, - 'table' => $table, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - authorizedView: projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view} - * - backup: projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup} - * - cluster: projects/{project}/instances/{instance}/clusters/{cluster} - * - cryptoKeyVersion: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version} - * - instance: projects/{project}/instances/{instance} - * - location: projects/{project}/locations/{location} - * - schemaBundle: projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle} - * - snapshot: projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot} - * - table: projects/{project}/instances/{instance}/tables/{table} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * Setting the "BIGTABLE_EMULATOR_HOST" environment variable will automatically set - * the API Endpoint to the value specified in the variable, as well as ensure that - * empty credentials are used in the transport layer. - * - * @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 'bigtableadmin.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\Bigtable\Admin\V2\BigtableTableAdminClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new BigtableTableAdminClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $options = $this->setDefaultEmulatorConfig($options); - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($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); - } - - /** - * Checks replication consistency based on a consistency token, that is, if - * replication has caught up based on the conditions specified in the token - * and the check request. - * - * The async variant is {@see BigtableTableAdminClient::checkConsistencyAsync()} . - * - * @example samples/V2/BigtableTableAdminClient/check_consistency.php - * - * @param CheckConsistencyRequest $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 CheckConsistencyResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function checkConsistency(CheckConsistencyRequest $request, array $callOptions = []): CheckConsistencyResponse - { - return $this->startApiCall('CheckConsistency', $request, $callOptions)->wait(); - } - - /** - * Copy a Cloud Bigtable backup to a new backup in the destination cluster - * located in the destination instance and project. - * - * The async variant is {@see BigtableTableAdminClient::copyBackupAsync()} . - * - * @example samples/V2/BigtableTableAdminClient/copy_backup.php - * - * @param CopyBackupRequest $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 OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function copyBackup(CopyBackupRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CopyBackup', $request, $callOptions)->wait(); - } - - /** - * Creates a new AuthorizedView in a table. - * - * The async variant is - * {@see BigtableTableAdminClient::createAuthorizedViewAsync()} . - * - * @example samples/V2/BigtableTableAdminClient/create_authorized_view.php - * - * @param CreateAuthorizedViewRequest $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 OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createAuthorizedView(CreateAuthorizedViewRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateAuthorizedView', $request, $callOptions)->wait(); - } - - /** - * Starts creating a new Cloud Bigtable Backup. The returned backup - * [long-running operation][google.longrunning.Operation] can be used to - * track creation of the backup. The - * [metadata][google.longrunning.Operation.metadata] field type is - * [CreateBackupMetadata][google.bigtable.admin.v2.CreateBackupMetadata]. The - * [response][google.longrunning.Operation.response] field type is - * [Backup][google.bigtable.admin.v2.Backup], if successful. Cancelling the - * returned operation will stop the creation and delete the backup. - * - * The async variant is {@see BigtableTableAdminClient::createBackupAsync()} . - * - * @example samples/V2/BigtableTableAdminClient/create_backup.php - * - * @param CreateBackupRequest $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 OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createBackup(CreateBackupRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateBackup', $request, $callOptions)->wait(); - } - - /** - * Creates a new schema bundle in the specified table. - * - * The async variant is {@see BigtableTableAdminClient::createSchemaBundleAsync()} - * . - * - * @example samples/V2/BigtableTableAdminClient/create_schema_bundle.php - * - * @param CreateSchemaBundleRequest $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 OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createSchemaBundle(CreateSchemaBundleRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateSchemaBundle', $request, $callOptions)->wait(); - } - - /** - * Creates a new table in the specified instance. - * The table can be created with a full set of initial column families, - * specified in the request. - * - * The async variant is {@see BigtableTableAdminClient::createTableAsync()} . - * - * @example samples/V2/BigtableTableAdminClient/create_table.php - * - * @param CreateTableRequest $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 Table - * - * @throws ApiException Thrown if the API call fails. - */ - public function createTable(CreateTableRequest $request, array $callOptions = []): Table - { - return $this->startApiCall('CreateTable', $request, $callOptions)->wait(); - } - - /** - * Creates a new table from the specified snapshot. The target table must - * not exist. The snapshot and the table must be in the same instance. - * - * Note: This is a private alpha release of Cloud Bigtable snapshots. This - * feature is not currently available to most Cloud Bigtable customers. This - * feature might be changed in backward-incompatible ways and is not - * recommended for production use. It is not subject to any SLA or deprecation - * policy. - * - * The async variant is - * {@see BigtableTableAdminClient::createTableFromSnapshotAsync()} . - * - * @example samples/V2/BigtableTableAdminClient/create_table_from_snapshot.php - * - * @param CreateTableFromSnapshotRequest $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 OperationResponse
- * - * @throws ApiException Thrown if the API call fails. - */ - public function createTableFromSnapshot(CreateTableFromSnapshotRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateTableFromSnapshot', $request, $callOptions)->wait(); - } - - /** - * Permanently deletes a specified AuthorizedView. - * - * The async variant is - * {@see BigtableTableAdminClient::deleteAuthorizedViewAsync()} . - * - * @example samples/V2/BigtableTableAdminClient/delete_authorized_view.php - * - * @param DeleteAuthorizedViewRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteAuthorizedView(DeleteAuthorizedViewRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteAuthorizedView', $request, $callOptions)->wait(); - } - - /** - * Deletes a pending or completed Cloud Bigtable backup. - * - * The async variant is {@see BigtableTableAdminClient::deleteBackupAsync()} . - * - * @example samples/V2/BigtableTableAdminClient/delete_backup.php - * - * @param DeleteBackupRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteBackup(DeleteBackupRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteBackup', $request, $callOptions)->wait(); - } - - /** - * Deletes a schema bundle in the specified table. - * - * The async variant is {@see BigtableTableAdminClient::deleteSchemaBundleAsync()} - * . - * - * @example samples/V2/BigtableTableAdminClient/delete_schema_bundle.php - * - * @param DeleteSchemaBundleRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteSchemaBundle(DeleteSchemaBundleRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteSchemaBundle', $request, $callOptions)->wait(); - } - - /** - * Permanently deletes the specified snapshot. - * - * Note: This is a private alpha release of Cloud Bigtable snapshots. This - * feature is not currently available to most Cloud Bigtable customers. This - * feature might be changed in backward-incompatible ways and is not - * recommended for production use. It is not subject to any SLA or deprecation - * policy. - * - * The async variant is {@see BigtableTableAdminClient::deleteSnapshotAsync()} . - * - * @example samples/V2/BigtableTableAdminClient/delete_snapshot.php - * - * @param DeleteSnapshotRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteSnapshot(DeleteSnapshotRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteSnapshot', $request, $callOptions)->wait(); - } - - /** - * Permanently deletes a specified table and all of its data. - * - * The async variant is {@see BigtableTableAdminClient::deleteTableAsync()} . - * - * @example samples/V2/BigtableTableAdminClient/delete_table.php - * - * @param DeleteTableRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteTable(DeleteTableRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteTable', $request, $callOptions)->wait(); - } - - /** - * Permanently drop/delete a row range from a specified table. The request can - * specify whether to delete all rows in a table, or only those that match a - * particular prefix. - * - * The async variant is {@see BigtableTableAdminClient::dropRowRangeAsync()} . - * - * @example samples/V2/BigtableTableAdminClient/drop_row_range.php - * - * @param DropRowRangeRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function dropRowRange(DropRowRangeRequest $request, array $callOptions = []): void - { - $this->startApiCall('DropRowRange', $request, $callOptions)->wait(); - } - - /** - * Generates a consistency token for a Table, which can be used in - * CheckConsistency to check whether mutations to the table that finished - * before this call started have been replicated. The tokens will be available - * for 90 days. - * - * The async variant is - * {@see BigtableTableAdminClient::generateConsistencyTokenAsync()} . - * - * @example samples/V2/BigtableTableAdminClient/generate_consistency_token.php - * - * @param GenerateConsistencyTokenRequest $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 GenerateConsistencyTokenResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function generateConsistencyToken(GenerateConsistencyTokenRequest $request, array $callOptions = []): GenerateConsistencyTokenResponse - { - return $this->startApiCall('GenerateConsistencyToken', $request, $callOptions)->wait(); - } - - /** - * Gets information from a specified AuthorizedView. - * - * The async variant is {@see BigtableTableAdminClient::getAuthorizedViewAsync()} . - * - * @example samples/V2/BigtableTableAdminClient/get_authorized_view.php - * - * @param GetAuthorizedViewRequest $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 AuthorizedView - * - * @throws ApiException Thrown if the API call fails. - */ - public function getAuthorizedView(GetAuthorizedViewRequest $request, array $callOptions = []): AuthorizedView - { - return $this->startApiCall('GetAuthorizedView', $request, $callOptions)->wait(); - } - - /** - * Gets metadata on a pending or completed Cloud Bigtable Backup. - * - * The async variant is {@see BigtableTableAdminClient::getBackupAsync()} . - * - * @example samples/V2/BigtableTableAdminClient/get_backup.php - * - * @param GetBackupRequest $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 Backup - * - * @throws ApiException Thrown if the API call fails. - */ - public function getBackup(GetBackupRequest $request, array $callOptions = []): Backup - { - return $this->startApiCall('GetBackup', $request, $callOptions)->wait(); - } - - /** - * Gets the access control policy for a Bigtable resource. - * Returns an empty policy if the resource exists but does not have a policy - * set. - * - * The async variant is {@see BigtableTableAdminClient::getIamPolicyAsync()} . - * - * @example samples/V2/BigtableTableAdminClient/get_iam_policy.php - * - * @param GetIamPolicyRequest $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 Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Gets metadata information about the specified schema bundle. - * - * The async variant is {@see BigtableTableAdminClient::getSchemaBundleAsync()} . - * - * @example samples/V2/BigtableTableAdminClient/get_schema_bundle.php - * - * @param GetSchemaBundleRequest $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 SchemaBundle - * - * @throws ApiException Thrown if the API call fails. - */ - public function getSchemaBundle(GetSchemaBundleRequest $request, array $callOptions = []): SchemaBundle - { - return $this->startApiCall('GetSchemaBundle', $request, $callOptions)->wait(); - } - - /** - * Gets metadata information about the specified snapshot. - * - * Note: This is a private alpha release of Cloud Bigtable snapshots. This - * feature is not currently available to most Cloud Bigtable customers. This - * feature might be changed in backward-incompatible ways and is not - * recommended for production use. It is not subject to any SLA or deprecation - * policy. - * - * The async variant is {@see BigtableTableAdminClient::getSnapshotAsync()} . - * - * @example samples/V2/BigtableTableAdminClient/get_snapshot.php - * - * @param GetSnapshotRequest $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 Snapshot - * - * @throws ApiException Thrown if the API call fails. - */ - public function getSnapshot(GetSnapshotRequest $request, array $callOptions = []): Snapshot - { - return $this->startApiCall('GetSnapshot', $request, $callOptions)->wait(); - } - - /** - * Gets metadata information about the specified table. - * - * The async variant is {@see BigtableTableAdminClient::getTableAsync()} . - * - * @example samples/V2/BigtableTableAdminClient/get_table.php - * - * @param GetTableRequest $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 Table - * - * @throws ApiException Thrown if the API call fails. - */ - public function getTable(GetTableRequest $request, array $callOptions = []): Table - { - return $this->startApiCall('GetTable', $request, $callOptions)->wait(); - } - - /** - * Lists all AuthorizedViews from a specific table. - * - * The async variant is {@see BigtableTableAdminClient::listAuthorizedViewsAsync()} - * . - * - * @example samples/V2/BigtableTableAdminClient/list_authorized_views.php - * - * @param ListAuthorizedViewsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listAuthorizedViews(ListAuthorizedViewsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListAuthorizedViews', $request, $callOptions); - } - - /** - * Lists Cloud Bigtable backups. Returns both completed and pending - * backups. - * - * The async variant is {@see BigtableTableAdminClient::listBackupsAsync()} . - * - * @example samples/V2/BigtableTableAdminClient/list_backups.php - * - * @param ListBackupsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listBackups(ListBackupsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListBackups', $request, $callOptions); - } - - /** - * Lists all schema bundles associated with the specified table. - * - * The async variant is {@see BigtableTableAdminClient::listSchemaBundlesAsync()} . - * - * @example samples/V2/BigtableTableAdminClient/list_schema_bundles.php - * - * @param ListSchemaBundlesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listSchemaBundles(ListSchemaBundlesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListSchemaBundles', $request, $callOptions); - } - - /** - * Lists all snapshots associated with the specified cluster. - * - * Note: This is a private alpha release of Cloud Bigtable snapshots. This - * feature is not currently available to most Cloud Bigtable customers. This - * feature might be changed in backward-incompatible ways and is not - * recommended for production use. It is not subject to any SLA or deprecation - * policy. - * - * The async variant is {@see BigtableTableAdminClient::listSnapshotsAsync()} . - * - * @example samples/V2/BigtableTableAdminClient/list_snapshots.php - * - * @param ListSnapshotsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listSnapshots(ListSnapshotsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListSnapshots', $request, $callOptions); - } - - /** - * Lists all tables served from a specified instance. - * - * The async variant is {@see BigtableTableAdminClient::listTablesAsync()} . - * - * @example samples/V2/BigtableTableAdminClient/list_tables.php - * - * @param ListTablesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listTables(ListTablesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListTables', $request, $callOptions); - } - - /** - * Performs a series of column family modifications on the specified table. - * Either all or none of the modifications will occur before this method - * returns, but data requests received prior to that point may see a table - * where only some modifications have taken effect. - * - * The async variant is - * {@see BigtableTableAdminClient::modifyColumnFamiliesAsync()} . - * - * @example samples/V2/BigtableTableAdminClient/modify_column_families.php - * - * @param ModifyColumnFamiliesRequest $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 Table - * - * @throws ApiException Thrown if the API call fails. - */ - public function modifyColumnFamilies(ModifyColumnFamiliesRequest $request, array $callOptions = []): Table - { - return $this->startApiCall('ModifyColumnFamilies', $request, $callOptions)->wait(); - } - - /** - * Create a new table by restoring from a completed backup. The - * returned table [long-running operation][google.longrunning.Operation] can - * be used to track the progress of the operation, and to cancel it. The - * [metadata][google.longrunning.Operation.metadata] field type is - * [RestoreTableMetadata][google.bigtable.admin.v2.RestoreTableMetadata]. The - * [response][google.longrunning.Operation.response] type is - * [Table][google.bigtable.admin.v2.Table], if successful. - * - * The async variant is {@see BigtableTableAdminClient::restoreTableAsync()} . - * - * @example samples/V2/BigtableTableAdminClient/restore_table.php - * - * @param RestoreTableRequest $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 OperationResponse
- * - * @throws ApiException Thrown if the API call fails. - */ - public function restoreTable(RestoreTableRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('RestoreTable', $request, $callOptions)->wait(); - } - - /** - * Sets the access control policy on a Bigtable resource. - * Replaces any existing policy. - * - * The async variant is {@see BigtableTableAdminClient::setIamPolicyAsync()} . - * - * @example samples/V2/BigtableTableAdminClient/set_iam_policy.php - * - * @param SetIamPolicyRequest $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 Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Creates a new snapshot in the specified cluster from the specified - * source table. The cluster and the table must be in the same instance. - * - * Note: This is a private alpha release of Cloud Bigtable snapshots. This - * feature is not currently available to most Cloud Bigtable customers. This - * feature might be changed in backward-incompatible ways and is not - * recommended for production use. It is not subject to any SLA or deprecation - * policy. - * - * The async variant is {@see BigtableTableAdminClient::snapshotTableAsync()} . - * - * @example samples/V2/BigtableTableAdminClient/snapshot_table.php - * - * @param SnapshotTableRequest $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 OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function snapshotTable(SnapshotTableRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('SnapshotTable', $request, $callOptions)->wait(); - } - - /** - * Returns permissions that the caller has on the specified Bigtable - * resource. - * - * The async variant is {@see BigtableTableAdminClient::testIamPermissionsAsync()} - * . - * - * @example samples/V2/BigtableTableAdminClient/test_iam_permissions.php - * - * @param TestIamPermissionsRequest $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 TestIamPermissionsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse - { - return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); - } - - /** - * Restores a specified table which was accidentally deleted. - * - * The async variant is {@see BigtableTableAdminClient::undeleteTableAsync()} . - * - * @example samples/V2/BigtableTableAdminClient/undelete_table.php - * - * @param UndeleteTableRequest $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 OperationResponse
- * - * @throws ApiException Thrown if the API call fails. - */ - public function undeleteTable(UndeleteTableRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UndeleteTable', $request, $callOptions)->wait(); - } - - /** - * Updates an AuthorizedView in a table. - * - * The async variant is - * {@see BigtableTableAdminClient::updateAuthorizedViewAsync()} . - * - * @example samples/V2/BigtableTableAdminClient/update_authorized_view.php - * - * @param UpdateAuthorizedViewRequest $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 OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateAuthorizedView(UpdateAuthorizedViewRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateAuthorizedView', $request, $callOptions)->wait(); - } - - /** - * Updates a pending or completed Cloud Bigtable Backup. - * - * The async variant is {@see BigtableTableAdminClient::updateBackupAsync()} . - * - * @example samples/V2/BigtableTableAdminClient/update_backup.php - * - * @param UpdateBackupRequest $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 Backup - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateBackup(UpdateBackupRequest $request, array $callOptions = []): Backup - { - return $this->startApiCall('UpdateBackup', $request, $callOptions)->wait(); - } - - /** - * Updates a schema bundle in the specified table. - * - * The async variant is {@see BigtableTableAdminClient::updateSchemaBundleAsync()} - * . - * - * @example samples/V2/BigtableTableAdminClient/update_schema_bundle.php - * - * @param UpdateSchemaBundleRequest $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 OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateSchemaBundle(UpdateSchemaBundleRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateSchemaBundle', $request, $callOptions)->wait(); - } - - /** - * Updates a specified table. - * - * The async variant is {@see BigtableTableAdminClient::updateTableAsync()} . - * - * @example samples/V2/BigtableTableAdminClient/update_table.php - * - * @param UpdateTableRequest $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 OperationResponse
- * - * @throws ApiException Thrown if the API call fails. - */ - public function updateTable(UpdateTableRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateTable', $request, $callOptions)->wait(); - } - - /** Configure the gapic configuration to use a service emulator. */ - private function setDefaultEmulatorConfig(array $options): array - { - $emulatorHost = getenv('BIGTABLE_EMULATOR_HOST'); - if (empty($emulatorHost)) { - return $options; - } - - if ($scheme = parse_url($emulatorHost, PHP_URL_SCHEME)) { - $search = $scheme . '://'; - $emulatorHost = str_replace($search, '', $emulatorHost); - } - - $options['apiEndpoint'] ??= $emulatorHost; - if (class_exists(ChannelCredentials::class)) { - $options['transportConfig']['grpc']['stubOpts']['credentials'] ??= ChannelCredentials::createInsecure(); - } - - $options['credentials'] ??= new InsecureCredentialsWrapper(); - return $options; - } -} diff --git a/owl-bot-staging/Bigtable/v2/Admin/src/V2/gapic_metadata.json b/owl-bot-staging/Bigtable/v2/Admin/src/V2/gapic_metadata.json deleted file mode 100644 index 20a64eaa6612..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/src/V2/gapic_metadata.json +++ /dev/null @@ -1,357 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.bigtable.admin.v2", - "libraryPackage": "Google\\Cloud\\Bigtable\\Admin\\V2", - "services": { - "BigtableInstanceAdmin": { - "clients": { - "grpc": { - "libraryClient": "BigtableInstanceAdminGapicClient", - "rpcs": { - "CreateAppProfile": { - "methods": [ - "createAppProfile" - ] - }, - "CreateCluster": { - "methods": [ - "createCluster" - ] - }, - "CreateInstance": { - "methods": [ - "createInstance" - ] - }, - "CreateLogicalView": { - "methods": [ - "createLogicalView" - ] - }, - "CreateMaterializedView": { - "methods": [ - "createMaterializedView" - ] - }, - "DeleteAppProfile": { - "methods": [ - "deleteAppProfile" - ] - }, - "DeleteCluster": { - "methods": [ - "deleteCluster" - ] - }, - "DeleteInstance": { - "methods": [ - "deleteInstance" - ] - }, - "DeleteLogicalView": { - "methods": [ - "deleteLogicalView" - ] - }, - "DeleteMaterializedView": { - "methods": [ - "deleteMaterializedView" - ] - }, - "GetAppProfile": { - "methods": [ - "getAppProfile" - ] - }, - "GetCluster": { - "methods": [ - "getCluster" - ] - }, - "GetIamPolicy": { - "methods": [ - "getIamPolicy" - ] - }, - "GetInstance": { - "methods": [ - "getInstance" - ] - }, - "GetLogicalView": { - "methods": [ - "getLogicalView" - ] - }, - "GetMaterializedView": { - "methods": [ - "getMaterializedView" - ] - }, - "ListAppProfiles": { - "methods": [ - "listAppProfiles" - ] - }, - "ListClusters": { - "methods": [ - "listClusters" - ] - }, - "ListHotTablets": { - "methods": [ - "listHotTablets" - ] - }, - "ListInstances": { - "methods": [ - "listInstances" - ] - }, - "ListLogicalViews": { - "methods": [ - "listLogicalViews" - ] - }, - "ListMaterializedViews": { - "methods": [ - "listMaterializedViews" - ] - }, - "PartialUpdateCluster": { - "methods": [ - "partialUpdateCluster" - ] - }, - "PartialUpdateInstance": { - "methods": [ - "partialUpdateInstance" - ] - }, - "SetIamPolicy": { - "methods": [ - "setIamPolicy" - ] - }, - "TestIamPermissions": { - "methods": [ - "testIamPermissions" - ] - }, - "UpdateAppProfile": { - "methods": [ - "updateAppProfile" - ] - }, - "UpdateCluster": { - "methods": [ - "updateCluster" - ] - }, - "UpdateInstance": { - "methods": [ - "updateInstance" - ] - }, - "UpdateLogicalView": { - "methods": [ - "updateLogicalView" - ] - }, - "UpdateMaterializedView": { - "methods": [ - "updateMaterializedView" - ] - } - } - } - } - }, - "BigtableTableAdmin": { - "clients": { - "grpc": { - "libraryClient": "BigtableTableAdminGapicClient", - "rpcs": { - "CheckConsistency": { - "methods": [ - "checkConsistency" - ] - }, - "CopyBackup": { - "methods": [ - "copyBackup" - ] - }, - "CreateAuthorizedView": { - "methods": [ - "createAuthorizedView" - ] - }, - "CreateBackup": { - "methods": [ - "createBackup" - ] - }, - "CreateSchemaBundle": { - "methods": [ - "createSchemaBundle" - ] - }, - "CreateTable": { - "methods": [ - "createTable" - ] - }, - "CreateTableFromSnapshot": { - "methods": [ - "createTableFromSnapshot" - ] - }, - "DeleteAuthorizedView": { - "methods": [ - "deleteAuthorizedView" - ] - }, - "DeleteBackup": { - "methods": [ - "deleteBackup" - ] - }, - "DeleteSchemaBundle": { - "methods": [ - "deleteSchemaBundle" - ] - }, - "DeleteSnapshot": { - "methods": [ - "deleteSnapshot" - ] - }, - "DeleteTable": { - "methods": [ - "deleteTable" - ] - }, - "DropRowRange": { - "methods": [ - "dropRowRange" - ] - }, - "GenerateConsistencyToken": { - "methods": [ - "generateConsistencyToken" - ] - }, - "GetAuthorizedView": { - "methods": [ - "getAuthorizedView" - ] - }, - "GetBackup": { - "methods": [ - "getBackup" - ] - }, - "GetIamPolicy": { - "methods": [ - "getIamPolicy" - ] - }, - "GetSchemaBundle": { - "methods": [ - "getSchemaBundle" - ] - }, - "GetSnapshot": { - "methods": [ - "getSnapshot" - ] - }, - "GetTable": { - "methods": [ - "getTable" - ] - }, - "ListAuthorizedViews": { - "methods": [ - "listAuthorizedViews" - ] - }, - "ListBackups": { - "methods": [ - "listBackups" - ] - }, - "ListSchemaBundles": { - "methods": [ - "listSchemaBundles" - ] - }, - "ListSnapshots": { - "methods": [ - "listSnapshots" - ] - }, - "ListTables": { - "methods": [ - "listTables" - ] - }, - "ModifyColumnFamilies": { - "methods": [ - "modifyColumnFamilies" - ] - }, - "RestoreTable": { - "methods": [ - "restoreTable" - ] - }, - "SetIamPolicy": { - "methods": [ - "setIamPolicy" - ] - }, - "SnapshotTable": { - "methods": [ - "snapshotTable" - ] - }, - "TestIamPermissions": { - "methods": [ - "testIamPermissions" - ] - }, - "UndeleteTable": { - "methods": [ - "undeleteTable" - ] - }, - "UpdateAuthorizedView": { - "methods": [ - "updateAuthorizedView" - ] - }, - "UpdateBackup": { - "methods": [ - "updateBackup" - ] - }, - "UpdateSchemaBundle": { - "methods": [ - "updateSchemaBundle" - ] - }, - "UpdateTable": { - "methods": [ - "updateTable" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_instance_admin_client_config.json b/owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_instance_admin_client_config.json deleted file mode 100644 index 47e1b111a246..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_instance_admin_client_config.json +++ /dev/null @@ -1,181 +0,0 @@ -{ - "interfaces": { - "google.bigtable.admin.v2.BigtableInstanceAdmin": { - "retry_codes": { - "idempotent": [ - "DEADLINE_EXCEEDED", - "UNAVAILABLE" - ], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 100, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 20000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 20000, - "total_timeout_millis": 600000 - } - }, - "methods": { - "CreateAppProfile": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "CreateCluster": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "CreateInstance": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "CreateLogicalView": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "CreateMaterializedView": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "DeleteAppProfile": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "DeleteCluster": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "DeleteInstance": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "DeleteLogicalView": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "DeleteMaterializedView": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "GetAppProfile": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "GetCluster": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "GetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "GetInstance": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "GetLogicalView": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "GetMaterializedView": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "ListAppProfiles": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "ListClusters": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "ListHotTablets": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "ListInstances": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "ListLogicalViews": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "ListMaterializedViews": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "PartialUpdateCluster": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "PartialUpdateInstance": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "SetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "TestIamPermissions": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "UpdateAppProfile": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "UpdateCluster": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "UpdateInstance": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "UpdateLogicalView": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "UpdateMaterializedView": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_instance_admin_descriptor_config.php b/owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_instance_admin_descriptor_config.php deleted file mode 100644 index a0a46eb0dc78..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_instance_admin_descriptor_config.php +++ /dev/null @@ -1,517 +0,0 @@ - [ - 'google.bigtable.admin.v2.BigtableInstanceAdmin' => [ - 'CreateCluster' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\Cluster', - 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\CreateClusterMetadata', - 'initialPollDelayMillis' => '5000', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '60000', - 'totalPollTimeoutMillis' => '21600000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateInstance' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\Instance', - 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\CreateInstanceMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '600000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateLogicalView' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\LogicalView', - 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\CreateLogicalViewMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateMaterializedView' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\MaterializedView', - 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\CreateMaterializedViewMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'PartialUpdateCluster' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\Cluster', - 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\PartialUpdateClusterMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '600000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'cluster.name', - 'fieldAccessors' => [ - 'getCluster', - 'getName', - ], - ], - ], - ], - 'PartialUpdateInstance' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\Instance', - 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\UpdateInstanceMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '600000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'instance.name', - 'fieldAccessors' => [ - 'getInstance', - 'getName', - ], - ], - ], - ], - 'UpdateAppProfile' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\AppProfile', - 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\UpdateAppProfileMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '600000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'app_profile.name', - 'fieldAccessors' => [ - 'getAppProfile', - 'getName', - ], - ], - ], - ], - 'UpdateCluster' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\Cluster', - 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\UpdateClusterMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '600000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateLogicalView' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\LogicalView', - 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\UpdateLogicalViewMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'logical_view.name', - 'fieldAccessors' => [ - 'getLogicalView', - 'getName', - ], - ], - ], - ], - 'UpdateMaterializedView' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\MaterializedView', - 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\UpdateMaterializedViewMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'materialized_view.name', - 'fieldAccessors' => [ - 'getMaterializedView', - 'getName', - ], - ], - ], - ], - 'CreateAppProfile' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\AppProfile', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteAppProfile' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteCluster' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteInstance' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteLogicalView' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteMaterializedView' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetAppProfile' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\AppProfile', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetCluster' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\Cluster', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - ], - 'GetInstance' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\Instance', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetLogicalView' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\LogicalView', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetMaterializedView' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\MaterializedView', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListAppProfiles' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAppProfiles', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\ListAppProfilesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListClusters' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\ListClustersResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListHotTablets' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getHotTablets', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\ListHotTabletsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListInstances' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\ListInstancesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListLogicalViews' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getLogicalViews', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\ListLogicalViewsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListMaterializedViews' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getMaterializedViews', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\ListMaterializedViewsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - ], - 'UpdateInstance' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\Instance', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'appProfile' => 'projects/{project}/instances/{instance}/appProfiles/{app_profile}', - 'cluster' => 'projects/{project}/instances/{instance}/clusters/{cluster}', - 'cryptoKey' => 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}', - 'instance' => 'projects/{project}/instances/{instance}', - 'location' => 'projects/{project}/locations/{location}', - 'logicalView' => 'projects/{project}/instances/{instance}/logicalViews/{logical_view}', - 'materializedView' => 'projects/{project}/instances/{instance}/materializedViews/{materialized_view}', - 'project' => 'projects/{project}', - ], - ], - ], -]; diff --git a/owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_instance_admin_rest_client_config.php b/owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_instance_admin_rest_client_config.php deleted file mode 100644 index 2527f6ccfbc2..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_instance_admin_rest_client_config.php +++ /dev/null @@ -1,496 +0,0 @@ - [ - 'google.bigtable.admin.v2.BigtableInstanceAdmin' => [ - 'CreateAppProfile' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/instances/*}/appProfiles', - 'body' => 'app_profile', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'app_profile_id', - ], - ], - 'CreateCluster' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/instances/*}/clusters', - 'body' => 'cluster', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'cluster_id', - ], - ], - 'CreateInstance' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*}/instances', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateLogicalView' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/instances/*}/logicalViews', - 'body' => 'logical_view', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'logical_view_id', - ], - ], - 'CreateMaterializedView' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/instances/*}/materializedViews', - 'body' => 'materialized_view', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'materialized_view_id', - ], - ], - 'DeleteAppProfile' => [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/instances/*/appProfiles/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - 'queryParams' => [ - 'ignore_warnings', - ], - ], - 'DeleteCluster' => [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/instances/*/clusters/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteInstance' => [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/instances/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteLogicalView' => [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/instances/*/logicalViews/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteMaterializedView' => [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/instances/*/materializedViews/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAppProfile' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/instances/*/appProfiles/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetCluster' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/instances/*/clusters/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{resource=projects/*/instances/*}:getIamPolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{resource=projects/*/instances/*/materializedViews/*}:getIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{resource=projects/*/instances/*/logicalViews/*}:getIamPolicy', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'GetInstance' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/instances/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetLogicalView' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/instances/*/logicalViews/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetMaterializedView' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/instances/*/materializedViews/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListAppProfiles' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/instances/*}/appProfiles', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListClusters' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/instances/*}/clusters', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListHotTablets' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/instances/*/clusters/*}/hotTablets', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListInstances' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*}/instances', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListLogicalViews' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/instances/*}/logicalViews', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListMaterializedViews' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/instances/*}/materializedViews', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'PartialUpdateCluster' => [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{cluster.name=projects/*/instances/*/clusters/*}', - 'body' => 'cluster', - 'placeholders' => [ - 'cluster.name' => [ - 'getters' => [ - 'getCluster', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'PartialUpdateInstance' => [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{instance.name=projects/*/instances/*}', - 'body' => 'instance', - 'placeholders' => [ - 'instance.name' => [ - 'getters' => [ - 'getInstance', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{resource=projects/*/instances/*}:setIamPolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{resource=projects/*/instances/*/materializedViews/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{resource=projects/*/instances/*/logicalViews/*}:setIamPolicy', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{resource=projects/*/instances/*}:testIamPermissions', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{resource=projects/*/instances/*/materializedViews/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{resource=projects/*/instances/*/logicalViews/*}:testIamPermissions', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'UpdateAppProfile' => [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{app_profile.name=projects/*/instances/*/appProfiles/*}', - 'body' => 'app_profile', - 'placeholders' => [ - 'app_profile.name' => [ - 'getters' => [ - 'getAppProfile', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateCluster' => [ - 'method' => 'put', - 'uriTemplate' => '/v2/{name=projects/*/instances/*/clusters/*}', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'UpdateInstance' => [ - 'method' => 'put', - 'uriTemplate' => '/v2/{name=projects/*/instances/*}', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'UpdateLogicalView' => [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{logical_view.name=projects/*/instances/*/logicalViews/*}', - 'body' => 'logical_view', - 'placeholders' => [ - 'logical_view.name' => [ - 'getters' => [ - 'getLogicalView', - 'getName', - ], - ], - ], - ], - 'UpdateMaterializedView' => [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{materialized_view.name=projects/*/instances/*/materializedViews/*}', - 'body' => 'materialized_view', - 'placeholders' => [ - 'materialized_view.name' => [ - 'getters' => [ - 'getMaterializedView', - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{name=operations/**}:cancel', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=operations/**}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=operations/**}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=operations/projects/**}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_table_admin_client_config.json b/owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_table_admin_client_config.json deleted file mode 100644 index e92f3cdcbf41..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_table_admin_client_config.json +++ /dev/null @@ -1,201 +0,0 @@ -{ - "interfaces": { - "google.bigtable.admin.v2.BigtableTableAdmin": { - "retry_codes": { - "idempotent": [ - "DEADLINE_EXCEEDED", - "UNAVAILABLE" - ], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 100, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 20000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 20000, - "total_timeout_millis": 600000 - } - }, - "methods": { - "CheckConsistency": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "CopyBackup": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "CreateAuthorizedView": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "CreateBackup": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "CreateSchemaBundle": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "CreateTable": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "CreateTableFromSnapshot": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "DeleteAuthorizedView": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "DeleteBackup": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "DeleteSchemaBundle": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "DeleteSnapshot": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "DeleteTable": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "DropRowRange": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "GenerateConsistencyToken": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "GetAuthorizedView": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "GetBackup": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "GetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "GetSchemaBundle": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "GetSnapshot": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "GetTable": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "ListAuthorizedViews": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "ListBackups": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "ListSchemaBundles": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "ListSnapshots": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "ListTables": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "ModifyColumnFamilies": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "RestoreTable": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "SetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "SnapshotTable": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "TestIamPermissions": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "UndeleteTable": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "UpdateAuthorizedView": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "UpdateBackup": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "UpdateSchemaBundle": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "UpdateTable": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_table_admin_descriptor_config.php b/owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_table_admin_descriptor_config.php deleted file mode 100644 index 0a9a06511f7d..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_table_admin_descriptor_config.php +++ /dev/null @@ -1,580 +0,0 @@ - [ - 'google.bigtable.admin.v2.BigtableTableAdmin' => [ - 'CopyBackup' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\Backup', - 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\CopyBackupMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateAuthorizedView' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\AuthorizedView', - 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\CreateAuthorizedViewMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateBackup' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\Backup', - 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\CreateBackupMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '600000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateSchemaBundle' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\SchemaBundle', - 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\CreateSchemaBundleMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateTableFromSnapshot' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\Table', - 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\CreateTableFromSnapshotMetadata', - 'initialPollDelayMillis' => '5000', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '60000', - 'totalPollTimeoutMillis' => '3600000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'RestoreTable' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\Table', - 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\RestoreTableMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '600000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'SnapshotTable' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\Snapshot', - 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\SnapshotTableMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '600000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UndeleteTable' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\Table', - 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\UndeleteTableMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateAuthorizedView' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\AuthorizedView', - 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\UpdateAuthorizedViewMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'authorized_view.name', - 'fieldAccessors' => [ - 'getAuthorizedView', - 'getName', - ], - ], - ], - ], - 'UpdateSchemaBundle' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\SchemaBundle', - 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\UpdateSchemaBundleMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'schema_bundle.name', - 'fieldAccessors' => [ - 'getSchemaBundle', - 'getName', - ], - ], - ], - ], - 'UpdateTable' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Bigtable\Admin\V2\Table', - 'metadataReturnType' => '\Google\Cloud\Bigtable\Admin\V2\UpdateTableMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'table.name', - 'fieldAccessors' => [ - 'getTable', - 'getName', - ], - ], - ], - ], - 'CheckConsistency' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\CheckConsistencyResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'CreateTable' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\Table', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteAuthorizedView' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteBackup' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteSchemaBundle' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteSnapshot' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteTable' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DropRowRange' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GenerateConsistencyToken' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\GenerateConsistencyTokenResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetAuthorizedView' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\AuthorizedView', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetBackup' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\Backup', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - ], - 'GetSchemaBundle' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\SchemaBundle', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetSnapshot' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\Snapshot', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetTable' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\Table', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListAuthorizedViews' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAuthorizedViews', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\ListAuthorizedViewsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListBackups' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getBackups', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\ListBackupsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListSchemaBundles' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getSchemaBundles', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\ListSchemaBundlesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListSnapshots' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getSnapshots', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\ListSnapshotsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListTables' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getTables', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\ListTablesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ModifyColumnFamilies' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\Table', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - ], - 'UpdateBackup' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Bigtable\Admin\V2\Backup', - 'headerParams' => [ - [ - 'keyName' => 'backup.name', - 'fieldAccessors' => [ - 'getBackup', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'authorizedView' => 'projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}', - 'backup' => 'projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}', - 'cluster' => 'projects/{project}/instances/{instance}/clusters/{cluster}', - 'cryptoKeyVersion' => 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}', - 'instance' => 'projects/{project}/instances/{instance}', - 'location' => 'projects/{project}/locations/{location}', - 'schemaBundle' => 'projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}', - 'snapshot' => 'projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}', - 'table' => 'projects/{project}/instances/{instance}/tables/{table}', - ], - ], - ], -]; diff --git a/owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_table_admin_rest_client_config.php b/owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_table_admin_rest_client_config.php deleted file mode 100644 index 7a822ae06cd6..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/src/V2/resources/bigtable_table_admin_rest_client_config.php +++ /dev/null @@ -1,550 +0,0 @@ - [ - 'google.bigtable.admin.v2.BigtableTableAdmin' => [ - 'CheckConsistency' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{name=projects/*/instances/*/tables/*}:checkConsistency', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'CopyBackup' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/instances/*/clusters/*}/backups:copy', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateAuthorizedView' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/instances/*/tables/*}/authorizedViews', - 'body' => 'authorized_view', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'authorized_view_id', - ], - ], - 'CreateBackup' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/instances/*/clusters/*}/backups', - 'body' => 'backup', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'backup_id', - ], - ], - 'CreateSchemaBundle' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/instances/*/tables/*}/schemaBundles', - 'body' => 'schema_bundle', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'schema_bundle_id', - ], - ], - 'CreateTable' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/instances/*}/tables', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateTableFromSnapshot' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/instances/*}/tables:createFromSnapshot', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteAuthorizedView' => [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/instances/*/tables/*/authorizedViews/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteBackup' => [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/instances/*/clusters/*/backups/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteSchemaBundle' => [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/instances/*/tables/*/schemaBundles/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteSnapshot' => [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/instances/*/clusters/*/snapshots/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteTable' => [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/instances/*/tables/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DropRowRange' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{name=projects/*/instances/*/tables/*}:dropRowRange', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GenerateConsistencyToken' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{name=projects/*/instances/*/tables/*}:generateConsistencyToken', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAuthorizedView' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/instances/*/tables/*/authorizedViews/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetBackup' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/instances/*/clusters/*/backups/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{resource=projects/*/instances/*/tables/*}:getIamPolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{resource=projects/*/instances/*/clusters/*/backups/*}:getIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{resource=projects/*/instances/*/tables/*/authorizedViews/*}:getIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{resource=projects/*/instances/*/tables/*/schemaBundles/*}:getIamPolicy', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'GetSchemaBundle' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/instances/*/tables/*/schemaBundles/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetSnapshot' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/instances/*/clusters/*/snapshots/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetTable' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/instances/*/tables/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListAuthorizedViews' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/instances/*/tables/*}/authorizedViews', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListBackups' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/instances/*/clusters/*}/backups', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListSchemaBundles' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/instances/*/tables/*}/schemaBundles', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListSnapshots' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/instances/*/clusters/*}/snapshots', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListTables' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/instances/*}/tables', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ModifyColumnFamilies' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{name=projects/*/instances/*/tables/*}:modifyColumnFamilies', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'RestoreTable' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/instances/*}/tables:restore', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{resource=projects/*/instances/*/tables/*}:setIamPolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{resource=projects/*/instances/*/clusters/*/backups/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{resource=projects/*/instances/*/tables/*/authorizedViews/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{resource=projects/*/instances/*/tables/*/schemaBundles/*}:setIamPolicy', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'SnapshotTable' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{name=projects/*/instances/*/tables/*}:snapshot', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{resource=projects/*/instances/*/tables/*}:testIamPermissions', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{resource=projects/*/instances/*/clusters/*/backups/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{resource=projects/*/instances/*/tables/*/authorizedViews/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{resource=projects/*/instances/*/tables/*/schemaBundles/*}:testIamPermissions', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'UndeleteTable' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{name=projects/*/instances/*/tables/*}:undelete', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'UpdateAuthorizedView' => [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{authorized_view.name=projects/*/instances/*/tables/*/authorizedViews/*}', - 'body' => 'authorized_view', - 'placeholders' => [ - 'authorized_view.name' => [ - 'getters' => [ - 'getAuthorizedView', - 'getName', - ], - ], - ], - ], - 'UpdateBackup' => [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{backup.name=projects/*/instances/*/clusters/*/backups/*}', - 'body' => 'backup', - 'placeholders' => [ - 'backup.name' => [ - 'getters' => [ - 'getBackup', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateSchemaBundle' => [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{schema_bundle.name=projects/*/instances/*/tables/*/schemaBundles/*}', - 'body' => 'schema_bundle', - 'placeholders' => [ - 'schema_bundle.name' => [ - 'getters' => [ - 'getSchemaBundle', - 'getName', - ], - ], - ], - ], - 'UpdateTable' => [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{table.name=projects/*/instances/*/tables/*}', - 'body' => 'table', - 'placeholders' => [ - 'table.name' => [ - 'getters' => [ - 'getTable', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{name=operations/**}:cancel', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=operations/**}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=operations/**}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=operations/projects/**}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Bigtable/v2/Admin/tests/Unit/V2/Client/BigtableInstanceAdminClientTest.php b/owl-bot-staging/Bigtable/v2/Admin/tests/Unit/V2/Client/BigtableInstanceAdminClientTest.php deleted file mode 100644 index 3ed1fb08e4f2..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/tests/Unit/V2/Client/BigtableInstanceAdminClientTest.php +++ /dev/null @@ -1,3054 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return BigtableInstanceAdminClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new BigtableInstanceAdminClient($options); - } - - /** @test */ - public function createAppProfileTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $etag = 'etag3123477'; - $description = 'description-1724546052'; - $expectedResponse = new AppProfile(); - $expectedResponse->setName($name); - $expectedResponse->setEtag($etag); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); - $appProfileId = 'appProfileId1262094415'; - $appProfile = new AppProfile(); - $request = (new CreateAppProfileRequest()) - ->setParent($formattedParent) - ->setAppProfileId($appProfileId) - ->setAppProfile($appProfile); - $response = $gapicClient->createAppProfile($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/CreateAppProfile', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getAppProfileId(); - $this->assertProtobufEquals($appProfileId, $actualValue); - $actualValue = $actualRequestObject->getAppProfile(); - $this->assertProtobufEquals($appProfile, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createAppProfileExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); - $appProfileId = 'appProfileId1262094415'; - $appProfile = new AppProfile(); - $request = (new CreateAppProfileRequest()) - ->setParent($formattedParent) - ->setAppProfileId($appProfileId) - ->setAppProfile($appProfile); - try { - $gapicClient->createAppProfile($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 createClusterTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createClusterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $location = 'location1901043637'; - $serveNodes = 1288838783; - $expectedResponse = new Cluster(); - $expectedResponse->setName($name); - $expectedResponse->setLocation($location); - $expectedResponse->setServeNodes($serveNodes); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createClusterTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); - $clusterId = 'clusterId240280960'; - $cluster = new Cluster(); - $clusterName = 'clusterName-1141738587'; - $cluster->setName($clusterName); - $clusterServeNodes = 1434304124; - $cluster->setServeNodes($clusterServeNodes); - $request = (new CreateClusterRequest()) - ->setParent($formattedParent) - ->setClusterId($clusterId) - ->setCluster($cluster); - $response = $gapicClient->createCluster($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/CreateCluster', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getClusterId(); - $this->assertProtobufEquals($clusterId, $actualValue); - $actualValue = $actualApiRequestObject->getCluster(); - $this->assertProtobufEquals($cluster, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createClusterTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createClusterExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createClusterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $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); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); - $clusterId = 'clusterId240280960'; - $cluster = new Cluster(); - $clusterName = 'clusterName-1141738587'; - $cluster->setName($clusterName); - $clusterServeNodes = 1434304124; - $cluster->setServeNodes($clusterServeNodes); - $request = (new CreateClusterRequest()) - ->setParent($formattedParent) - ->setClusterId($clusterId) - ->setCluster($cluster); - $response = $gapicClient->createCluster($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createClusterTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() 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 stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createInstanceTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createInstanceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $satisfiesPzs = false; - $satisfiesPzi = false; - $expectedResponse = new Instance(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $expectedResponse->setSatisfiesPzi($satisfiesPzi); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createInstanceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $instanceId = 'instanceId-2101995259'; - $instance = new Instance(); - $instanceName = 'instanceName-737857344'; - $instance->setName($instanceName); - $instanceDisplayName = 'instanceDisplayName1824500376'; - $instance->setDisplayName($instanceDisplayName); - $instanceType = Type::TYPE_UNSPECIFIED; - $instance->setType($instanceType); - $labelsValue = 'labelsValue950036658'; - $instanceLabels = [ - 'labelsKey' => $labelsValue, - ]; - $instance->setLabels($instanceLabels); - $clustersValue = new Cluster(); - $valueName = 'valueName-765894756'; - $clustersValue->setName($valueName); - $valueServeNodes = 370436813; - $clustersValue->setServeNodes($valueServeNodes); - $clusters = [ - 'clustersKey' => $clustersValue, - ]; - $request = (new CreateInstanceRequest()) - ->setParent($formattedParent) - ->setInstanceId($instanceId) - ->setInstance($instance) - ->setClusters($clusters); - $response = $gapicClient->createInstance($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/CreateInstance', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getInstanceId(); - $this->assertProtobufEquals($instanceId, $actualValue); - $actualValue = $actualApiRequestObject->getInstance(); - $this->assertProtobufEquals($instance, $actualValue); - $actualValue = $actualApiRequestObject->getClusters(); - $this->assertProtobufEquals($clusters, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createInstanceTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createInstanceExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createInstanceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $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); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $instanceId = 'instanceId-2101995259'; - $instance = new Instance(); - $instanceName = 'instanceName-737857344'; - $instance->setName($instanceName); - $instanceDisplayName = 'instanceDisplayName1824500376'; - $instance->setDisplayName($instanceDisplayName); - $instanceType = Type::TYPE_UNSPECIFIED; - $instance->setType($instanceType); - $labelsValue = 'labelsValue950036658'; - $instanceLabels = [ - 'labelsKey' => $labelsValue, - ]; - $instance->setLabels($instanceLabels); - $clustersValue = new Cluster(); - $valueName = 'valueName-765894756'; - $clustersValue->setName($valueName); - $valueServeNodes = 370436813; - $clustersValue->setServeNodes($valueServeNodes); - $clusters = [ - 'clustersKey' => $clustersValue, - ]; - $request = (new CreateInstanceRequest()) - ->setParent($formattedParent) - ->setInstanceId($instanceId) - ->setInstance($instance) - ->setClusters($clusters); - $response = $gapicClient->createInstance($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createInstanceTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() 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 stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createLogicalViewTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createLogicalViewTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $query = 'query107944136'; - $etag = 'etag3123477'; - $deletionProtection = true; - $expectedResponse = new LogicalView(); - $expectedResponse->setName($name); - $expectedResponse->setQuery($query); - $expectedResponse->setEtag($etag); - $expectedResponse->setDeletionProtection($deletionProtection); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createLogicalViewTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); - $logicalViewId = 'logicalViewId1326850751'; - $logicalView = new LogicalView(); - $logicalViewQuery = 'logicalViewQuery1609026330'; - $logicalView->setQuery($logicalViewQuery); - $request = (new CreateLogicalViewRequest()) - ->setParent($formattedParent) - ->setLogicalViewId($logicalViewId) - ->setLogicalView($logicalView); - $response = $gapicClient->createLogicalView($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/CreateLogicalView', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getLogicalViewId(); - $this->assertProtobufEquals($logicalViewId, $actualValue); - $actualValue = $actualApiRequestObject->getLogicalView(); - $this->assertProtobufEquals($logicalView, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createLogicalViewTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createLogicalViewExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createLogicalViewTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $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); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); - $logicalViewId = 'logicalViewId1326850751'; - $logicalView = new LogicalView(); - $logicalViewQuery = 'logicalViewQuery1609026330'; - $logicalView->setQuery($logicalViewQuery); - $request = (new CreateLogicalViewRequest()) - ->setParent($formattedParent) - ->setLogicalViewId($logicalViewId) - ->setLogicalView($logicalView); - $response = $gapicClient->createLogicalView($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createLogicalViewTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() 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 stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createMaterializedViewTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createMaterializedViewTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $query = 'query107944136'; - $etag = 'etag3123477'; - $deletionProtection = true; - $expectedResponse = new MaterializedView(); - $expectedResponse->setName($name); - $expectedResponse->setQuery($query); - $expectedResponse->setEtag($etag); - $expectedResponse->setDeletionProtection($deletionProtection); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createMaterializedViewTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); - $materializedViewId = 'materializedViewId84640749'; - $materializedView = new MaterializedView(); - $materializedViewQuery = 'materializedViewQuery1755221932'; - $materializedView->setQuery($materializedViewQuery); - $request = (new CreateMaterializedViewRequest()) - ->setParent($formattedParent) - ->setMaterializedViewId($materializedViewId) - ->setMaterializedView($materializedView); - $response = $gapicClient->createMaterializedView($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/CreateMaterializedView', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getMaterializedViewId(); - $this->assertProtobufEquals($materializedViewId, $actualValue); - $actualValue = $actualApiRequestObject->getMaterializedView(); - $this->assertProtobufEquals($materializedView, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createMaterializedViewTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createMaterializedViewExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createMaterializedViewTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $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); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); - $materializedViewId = 'materializedViewId84640749'; - $materializedView = new MaterializedView(); - $materializedViewQuery = 'materializedViewQuery1755221932'; - $materializedView->setQuery($materializedViewQuery); - $request = (new CreateMaterializedViewRequest()) - ->setParent($formattedParent) - ->setMaterializedViewId($materializedViewId) - ->setMaterializedView($materializedView); - $response = $gapicClient->createMaterializedView($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createMaterializedViewTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() 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 stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteAppProfileTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->appProfileName('[PROJECT]', '[INSTANCE]', '[APP_PROFILE]'); - $ignoreWarnings = true; - $request = (new DeleteAppProfileRequest()) - ->setName($formattedName) - ->setIgnoreWarnings($ignoreWarnings); - $gapicClient->deleteAppProfile($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/DeleteAppProfile', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getIgnoreWarnings(); - $this->assertProtobufEquals($ignoreWarnings, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAppProfileExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->appProfileName('[PROJECT]', '[INSTANCE]', '[APP_PROFILE]'); - $ignoreWarnings = true; - $request = (new DeleteAppProfileRequest()) - ->setName($formattedName) - ->setIgnoreWarnings($ignoreWarnings); - try { - $gapicClient->deleteAppProfile($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 deleteClusterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); - $request = (new DeleteClusterRequest()) - ->setName($formattedName); - $gapicClient->deleteCluster($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/DeleteCluster', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteClusterExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); - $request = (new DeleteClusterRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteCluster($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 deleteInstanceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); - $request = (new DeleteInstanceRequest()) - ->setName($formattedName); - $gapicClient->deleteInstance($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/DeleteInstance', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteInstanceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); - $request = (new DeleteInstanceRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteInstance($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 deleteLogicalViewTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->logicalViewName('[PROJECT]', '[INSTANCE]', '[LOGICAL_VIEW]'); - $request = (new DeleteLogicalViewRequest()) - ->setName($formattedName); - $gapicClient->deleteLogicalView($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/DeleteLogicalView', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteLogicalViewExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->logicalViewName('[PROJECT]', '[INSTANCE]', '[LOGICAL_VIEW]'); - $request = (new DeleteLogicalViewRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteLogicalView($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 deleteMaterializedViewTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->materializedViewName('[PROJECT]', '[INSTANCE]', '[MATERIALIZED_VIEW]'); - $request = (new DeleteMaterializedViewRequest()) - ->setName($formattedName); - $gapicClient->deleteMaterializedView($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/DeleteMaterializedView', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteMaterializedViewExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->materializedViewName('[PROJECT]', '[INSTANCE]', '[MATERIALIZED_VIEW]'); - $request = (new DeleteMaterializedViewRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteMaterializedView($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 getAppProfileTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $etag = 'etag3123477'; - $description = 'description-1724546052'; - $expectedResponse = new AppProfile(); - $expectedResponse->setName($name2); - $expectedResponse->setEtag($etag); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->appProfileName('[PROJECT]', '[INSTANCE]', '[APP_PROFILE]'); - $request = (new GetAppProfileRequest()) - ->setName($formattedName); - $response = $gapicClient->getAppProfile($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/GetAppProfile', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAppProfileExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->appProfileName('[PROJECT]', '[INSTANCE]', '[APP_PROFILE]'); - $request = (new GetAppProfileRequest()) - ->setName($formattedName); - try { - $gapicClient->getAppProfile($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 getClusterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $location = 'location1901043637'; - $serveNodes = 1288838783; - $expectedResponse = new Cluster(); - $expectedResponse->setName($name2); - $expectedResponse->setLocation($location); - $expectedResponse->setServeNodes($serveNodes); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); - $request = (new GetClusterRequest()) - ->setName($formattedName); - $response = $gapicClient->getCluster($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/GetCluster', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getClusterExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); - $request = (new GetClusterRequest()) - ->setName($formattedName); - try { - $gapicClient->getCluster($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 getIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - $response = $gapicClient->getIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/GetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIamPolicyExceptionTest() - { - $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 - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - try { - $gapicClient->getIamPolicy($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 getInstanceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $satisfiesPzs = false; - $satisfiesPzi = false; - $expectedResponse = new Instance(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $expectedResponse->setSatisfiesPzi($satisfiesPzi); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); - $request = (new GetInstanceRequest()) - ->setName($formattedName); - $response = $gapicClient->getInstance($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/GetInstance', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getInstanceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); - $request = (new GetInstanceRequest()) - ->setName($formattedName); - try { - $gapicClient->getInstance($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 getLogicalViewTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $query = 'query107944136'; - $etag = 'etag3123477'; - $deletionProtection = true; - $expectedResponse = new LogicalView(); - $expectedResponse->setName($name2); - $expectedResponse->setQuery($query); - $expectedResponse->setEtag($etag); - $expectedResponse->setDeletionProtection($deletionProtection); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->logicalViewName('[PROJECT]', '[INSTANCE]', '[LOGICAL_VIEW]'); - $request = (new GetLogicalViewRequest()) - ->setName($formattedName); - $response = $gapicClient->getLogicalView($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/GetLogicalView', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLogicalViewExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->logicalViewName('[PROJECT]', '[INSTANCE]', '[LOGICAL_VIEW]'); - $request = (new GetLogicalViewRequest()) - ->setName($formattedName); - try { - $gapicClient->getLogicalView($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 getMaterializedViewTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $query = 'query107944136'; - $etag = 'etag3123477'; - $deletionProtection = true; - $expectedResponse = new MaterializedView(); - $expectedResponse->setName($name2); - $expectedResponse->setQuery($query); - $expectedResponse->setEtag($etag); - $expectedResponse->setDeletionProtection($deletionProtection); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->materializedViewName('[PROJECT]', '[INSTANCE]', '[MATERIALIZED_VIEW]'); - $request = (new GetMaterializedViewRequest()) - ->setName($formattedName); - $response = $gapicClient->getMaterializedView($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/GetMaterializedView', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMaterializedViewExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->materializedViewName('[PROJECT]', '[INSTANCE]', '[MATERIALIZED_VIEW]'); - $request = (new GetMaterializedViewRequest()) - ->setName($formattedName); - try { - $gapicClient->getMaterializedView($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 listAppProfilesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $appProfilesElement = new AppProfile(); - $appProfiles = [ - $appProfilesElement, - ]; - $expectedResponse = new ListAppProfilesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAppProfiles($appProfiles); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); - $request = (new ListAppProfilesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listAppProfiles($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAppProfiles()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/ListAppProfiles', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAppProfilesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); - $request = (new ListAppProfilesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listAppProfiles($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 listClustersTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = 'nextPageToken-1530815211'; - $expectedResponse = new ListClustersResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); - $request = (new ListClustersRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listClusters($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/ListClusters', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listClustersExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); - $request = (new ListClustersRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listClusters($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 listHotTabletsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $hotTabletsElement = new HotTablet(); - $hotTablets = [ - $hotTabletsElement, - ]; - $expectedResponse = new ListHotTabletsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setHotTablets($hotTablets); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); - $request = (new ListHotTabletsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listHotTablets($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getHotTablets()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/ListHotTablets', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listHotTabletsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); - $request = (new ListHotTabletsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listHotTablets($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 listInstancesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = 'nextPageToken-1530815211'; - $expectedResponse = new ListInstancesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $request = (new ListInstancesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listInstances($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/ListInstances', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listInstancesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $request = (new ListInstancesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listInstances($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 listLogicalViewsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $logicalViewsElement = new LogicalView(); - $logicalViews = [ - $logicalViewsElement, - ]; - $expectedResponse = new ListLogicalViewsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setLogicalViews($logicalViews); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); - $request = (new ListLogicalViewsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listLogicalViews($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getLogicalViews()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/ListLogicalViews', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLogicalViewsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); - $request = (new ListLogicalViewsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listLogicalViews($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 listMaterializedViewsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $materializedViewsElement = new MaterializedView(); - $materializedViews = [ - $materializedViewsElement, - ]; - $expectedResponse = new ListMaterializedViewsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setMaterializedViews($materializedViews); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); - $request = (new ListMaterializedViewsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listMaterializedViews($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getMaterializedViews()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/ListMaterializedViews', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMaterializedViewsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); - $request = (new ListMaterializedViewsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listMaterializedViews($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 partialUpdateClusterTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/partialUpdateClusterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $location = 'location1901043637'; - $serveNodes = 1288838783; - $expectedResponse = new Cluster(); - $expectedResponse->setName($name); - $expectedResponse->setLocation($location); - $expectedResponse->setServeNodes($serveNodes); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/partialUpdateClusterTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $cluster = new Cluster(); - $clusterName = 'clusterName-1141738587'; - $cluster->setName($clusterName); - $clusterServeNodes = 1434304124; - $cluster->setServeNodes($clusterServeNodes); - $updateMask = new FieldMask(); - $request = (new PartialUpdateClusterRequest()) - ->setCluster($cluster) - ->setUpdateMask($updateMask); - $response = $gapicClient->partialUpdateCluster($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/PartialUpdateCluster', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getCluster(); - $this->assertProtobufEquals($cluster, $actualValue); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/partialUpdateClusterTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function partialUpdateClusterExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/partialUpdateClusterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $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); - $operationsTransport->addResponse(null, $status); - // Mock request - $cluster = new Cluster(); - $clusterName = 'clusterName-1141738587'; - $cluster->setName($clusterName); - $clusterServeNodes = 1434304124; - $cluster->setServeNodes($clusterServeNodes); - $updateMask = new FieldMask(); - $request = (new PartialUpdateClusterRequest()) - ->setCluster($cluster) - ->setUpdateMask($updateMask); - $response = $gapicClient->partialUpdateCluster($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/partialUpdateClusterTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() 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 stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function partialUpdateInstanceTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/partialUpdateInstanceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $satisfiesPzs = false; - $satisfiesPzi = false; - $expectedResponse = new Instance(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $expectedResponse->setSatisfiesPzi($satisfiesPzi); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/partialUpdateInstanceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $instance = new Instance(); - $instanceName = 'instanceName-737857344'; - $instance->setName($instanceName); - $instanceDisplayName = 'instanceDisplayName1824500376'; - $instance->setDisplayName($instanceDisplayName); - $instanceType = Type::TYPE_UNSPECIFIED; - $instance->setType($instanceType); - $labelsValue = 'labelsValue950036658'; - $instanceLabels = [ - 'labelsKey' => $labelsValue, - ]; - $instance->setLabels($instanceLabels); - $updateMask = new FieldMask(); - $request = (new PartialUpdateInstanceRequest()) - ->setInstance($instance) - ->setUpdateMask($updateMask); - $response = $gapicClient->partialUpdateInstance($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/PartialUpdateInstance', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getInstance(); - $this->assertProtobufEquals($instance, $actualValue); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/partialUpdateInstanceTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function partialUpdateInstanceExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/partialUpdateInstanceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $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); - $operationsTransport->addResponse(null, $status); - // Mock request - $instance = new Instance(); - $instanceName = 'instanceName-737857344'; - $instance->setName($instanceName); - $instanceDisplayName = 'instanceDisplayName1824500376'; - $instance->setDisplayName($instanceDisplayName); - $instanceType = Type::TYPE_UNSPECIFIED; - $instance->setType($instanceType); - $labelsValue = 'labelsValue950036658'; - $instanceLabels = [ - 'labelsKey' => $labelsValue, - ]; - $instance->setLabels($instanceLabels); - $updateMask = new FieldMask(); - $request = (new PartialUpdateInstanceRequest()) - ->setInstance($instance) - ->setUpdateMask($updateMask); - $response = $gapicClient->partialUpdateInstance($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/partialUpdateInstanceTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() 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 stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function setIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - $response = $gapicClient->setIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/SetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPolicy(); - $this->assertProtobufEquals($policy, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setIamPolicyExceptionTest() - { - $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 - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - try { - $gapicClient->setIamPolicy($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 testIamPermissionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new TestIamPermissionsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - $response = $gapicClient->testIamPermissions($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/TestIamPermissions', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPermissions(); - $this->assertProtobufEquals($permissions, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function testIamPermissionsExceptionTest() - { - $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 - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - try { - $gapicClient->testIamPermissions($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 updateAppProfileTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateAppProfileTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $etag = 'etag3123477'; - $description = 'description-1724546052'; - $expectedResponse = new AppProfile(); - $expectedResponse->setName($name); - $expectedResponse->setEtag($etag); - $expectedResponse->setDescription($description); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateAppProfileTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $appProfile = new AppProfile(); - $updateMask = new FieldMask(); - $request = (new UpdateAppProfileRequest()) - ->setAppProfile($appProfile) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateAppProfile($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/UpdateAppProfile', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getAppProfile(); - $this->assertProtobufEquals($appProfile, $actualValue); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateAppProfileTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateAppProfileExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateAppProfileTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $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); - $operationsTransport->addResponse(null, $status); - // Mock request - $appProfile = new AppProfile(); - $updateMask = new FieldMask(); - $request = (new UpdateAppProfileRequest()) - ->setAppProfile($appProfile) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateAppProfile($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateAppProfileTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() 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 stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateClusterTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateClusterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name2 = 'name2-1052831874'; - $location2 = 'location21541837352'; - $serveNodes2 = 1623486220; - $expectedResponse = new Cluster(); - $expectedResponse->setName($name2); - $expectedResponse->setLocation($location2); - $expectedResponse->setServeNodes($serveNodes2); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateClusterTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $name = 'name3373707'; - $serveNodes = 1288838783; - $request = (new Cluster()) - ->setName($name) - ->setServeNodes($serveNodes); - $response = $gapicClient->updateCluster($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/UpdateCluster', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $actualValue = $actualApiRequestObject->getServeNodes(); - $this->assertProtobufEquals($serveNodes, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateClusterTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateClusterExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateClusterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $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); - $operationsTransport->addResponse(null, $status); - // Mock request - $name = 'name3373707'; - $serveNodes = 1288838783; - $request = (new Cluster()) - ->setName($name) - ->setServeNodes($serveNodes); - $response = $gapicClient->updateCluster($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateClusterTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() 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 stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateInstanceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName2 = 'displayName21615000987'; - $satisfiesPzs2 = true; - $satisfiesPzi2 = true; - $expectedResponse = new Instance(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName2); - $expectedResponse->setSatisfiesPzs($satisfiesPzs2); - $expectedResponse->setSatisfiesPzi($satisfiesPzi2); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $type = Type::TYPE_UNSPECIFIED; - $labelsValue = 'labelsValue950036658'; - $labels = [ - 'labelsKey' => $labelsValue, - ]; - $request = (new Instance()) - ->setName($name) - ->setDisplayName($displayName) - ->setType($type) - ->setLabels($labels); - $response = $gapicClient->updateInstance($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/UpdateInstance', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $actualValue = $actualRequestObject->getDisplayName(); - $this->assertProtobufEquals($displayName, $actualValue); - $actualValue = $actualRequestObject->getType(); - $this->assertProtobufEquals($type, $actualValue); - $actualValue = $actualRequestObject->getLabels(); - $this->assertProtobufEquals($labels, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateInstanceExceptionTest() - { - $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 - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $type = Type::TYPE_UNSPECIFIED; - $labelsValue = 'labelsValue950036658'; - $labels = [ - 'labelsKey' => $labelsValue, - ]; - $request = (new Instance()) - ->setName($name) - ->setDisplayName($displayName) - ->setType($type) - ->setLabels($labels); - try { - $gapicClient->updateInstance($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 updateLogicalViewTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateLogicalViewTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $query = 'query107944136'; - $etag = 'etag3123477'; - $deletionProtection = true; - $expectedResponse = new LogicalView(); - $expectedResponse->setName($name); - $expectedResponse->setQuery($query); - $expectedResponse->setEtag($etag); - $expectedResponse->setDeletionProtection($deletionProtection); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateLogicalViewTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $logicalView = new LogicalView(); - $logicalViewQuery = 'logicalViewQuery1609026330'; - $logicalView->setQuery($logicalViewQuery); - $request = (new UpdateLogicalViewRequest()) - ->setLogicalView($logicalView); - $response = $gapicClient->updateLogicalView($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/UpdateLogicalView', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getLogicalView(); - $this->assertProtobufEquals($logicalView, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateLogicalViewTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateLogicalViewExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateLogicalViewTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $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); - $operationsTransport->addResponse(null, $status); - // Mock request - $logicalView = new LogicalView(); - $logicalViewQuery = 'logicalViewQuery1609026330'; - $logicalView->setQuery($logicalViewQuery); - $request = (new UpdateLogicalViewRequest()) - ->setLogicalView($logicalView); - $response = $gapicClient->updateLogicalView($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateLogicalViewTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() 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 stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateMaterializedViewTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateMaterializedViewTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $query = 'query107944136'; - $etag = 'etag3123477'; - $deletionProtection = true; - $expectedResponse = new MaterializedView(); - $expectedResponse->setName($name); - $expectedResponse->setQuery($query); - $expectedResponse->setEtag($etag); - $expectedResponse->setDeletionProtection($deletionProtection); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateMaterializedViewTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $materializedView = new MaterializedView(); - $materializedViewQuery = 'materializedViewQuery1755221932'; - $materializedView->setQuery($materializedViewQuery); - $request = (new UpdateMaterializedViewRequest()) - ->setMaterializedView($materializedView); - $response = $gapicClient->updateMaterializedView($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/UpdateMaterializedView', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getMaterializedView(); - $this->assertProtobufEquals($materializedView, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateMaterializedViewTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateMaterializedViewExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateMaterializedViewTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $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); - $operationsTransport->addResponse(null, $status); - // Mock request - $materializedView = new MaterializedView(); - $materializedViewQuery = 'materializedViewQuery1755221932'; - $materializedView->setQuery($materializedViewQuery); - $request = (new UpdateMaterializedViewRequest()) - ->setMaterializedView($materializedView); - $response = $gapicClient->updateMaterializedView($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateMaterializedViewTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() 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 stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createAppProfileAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $etag = 'etag3123477'; - $description = 'description-1724546052'; - $expectedResponse = new AppProfile(); - $expectedResponse->setName($name); - $expectedResponse->setEtag($etag); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); - $appProfileId = 'appProfileId1262094415'; - $appProfile = new AppProfile(); - $request = (new CreateAppProfileRequest()) - ->setParent($formattedParent) - ->setAppProfileId($appProfileId) - ->setAppProfile($appProfile); - $response = $gapicClient->createAppProfileAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableInstanceAdmin/CreateAppProfile', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getAppProfileId(); - $this->assertProtobufEquals($appProfileId, $actualValue); - $actualValue = $actualRequestObject->getAppProfile(); - $this->assertProtobufEquals($appProfile, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Bigtable/v2/Admin/tests/Unit/V2/Client/BigtableTableAdminClientTest.php b/owl-bot-staging/Bigtable/v2/Admin/tests/Unit/V2/Client/BigtableTableAdminClientTest.php deleted file mode 100644 index 6f3c02b3e241..000000000000 --- a/owl-bot-staging/Bigtable/v2/Admin/tests/Unit/V2/Client/BigtableTableAdminClientTest.php +++ /dev/null @@ -1,3274 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return BigtableTableAdminClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new BigtableTableAdminClient($options); - } - - /** @test */ - public function checkConsistencyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $consistent = true; - $expectedResponse = new CheckConsistencyResponse(); - $expectedResponse->setConsistent($consistent); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $consistencyToken = 'consistencyToken-1090516718'; - $request = (new CheckConsistencyRequest()) - ->setName($formattedName) - ->setConsistencyToken($consistencyToken); - $response = $gapicClient->checkConsistency($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/CheckConsistency', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getConsistencyToken(); - $this->assertProtobufEquals($consistencyToken, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function checkConsistencyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $consistencyToken = 'consistencyToken-1090516718'; - $request = (new CheckConsistencyRequest()) - ->setName($formattedName) - ->setConsistencyToken($consistencyToken); - try { - $gapicClient->checkConsistency($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 copyBackupTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/copyBackupTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $sourceTable = 'sourceTable1670858410'; - $sourceBackup2 = 'sourceBackup2889376921'; - $sizeBytes = 1796325715; - $expectedResponse = new Backup(); - $expectedResponse->setName($name); - $expectedResponse->setSourceTable($sourceTable); - $expectedResponse->setSourceBackup($sourceBackup2); - $expectedResponse->setSizeBytes($sizeBytes); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/copyBackupTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); - $backupId = 'backupId1355353272'; - $formattedSourceBackup = $gapicClient->backupName('[PROJECT]', '[INSTANCE]', '[CLUSTER]', '[BACKUP]'); - $expireTime = new Timestamp(); - $request = (new CopyBackupRequest()) - ->setParent($formattedParent) - ->setBackupId($backupId) - ->setSourceBackup($formattedSourceBackup) - ->setExpireTime($expireTime); - $response = $gapicClient->copyBackup($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/CopyBackup', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getBackupId(); - $this->assertProtobufEquals($backupId, $actualValue); - $actualValue = $actualApiRequestObject->getSourceBackup(); - $this->assertProtobufEquals($formattedSourceBackup, $actualValue); - $actualValue = $actualApiRequestObject->getExpireTime(); - $this->assertProtobufEquals($expireTime, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/copyBackupTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function copyBackupExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/copyBackupTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $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); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); - $backupId = 'backupId1355353272'; - $formattedSourceBackup = $gapicClient->backupName('[PROJECT]', '[INSTANCE]', '[CLUSTER]', '[BACKUP]'); - $expireTime = new Timestamp(); - $request = (new CopyBackupRequest()) - ->setParent($formattedParent) - ->setBackupId($backupId) - ->setSourceBackup($formattedSourceBackup) - ->setExpireTime($expireTime); - $response = $gapicClient->copyBackup($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/copyBackupTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() 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 stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createAuthorizedViewTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createAuthorizedViewTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $etag = 'etag3123477'; - $deletionProtection = true; - $expectedResponse = new AuthorizedView(); - $expectedResponse->setName($name); - $expectedResponse->setEtag($etag); - $expectedResponse->setDeletionProtection($deletionProtection); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createAuthorizedViewTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $authorizedViewId = 'authorizedViewId1171901009'; - $authorizedView = new AuthorizedView(); - $request = (new CreateAuthorizedViewRequest()) - ->setParent($formattedParent) - ->setAuthorizedViewId($authorizedViewId) - ->setAuthorizedView($authorizedView); - $response = $gapicClient->createAuthorizedView($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/CreateAuthorizedView', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getAuthorizedViewId(); - $this->assertProtobufEquals($authorizedViewId, $actualValue); - $actualValue = $actualApiRequestObject->getAuthorizedView(); - $this->assertProtobufEquals($authorizedView, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAuthorizedViewTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createAuthorizedViewExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createAuthorizedViewTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $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); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $authorizedViewId = 'authorizedViewId1171901009'; - $authorizedView = new AuthorizedView(); - $request = (new CreateAuthorizedViewRequest()) - ->setParent($formattedParent) - ->setAuthorizedViewId($authorizedViewId) - ->setAuthorizedView($authorizedView); - $response = $gapicClient->createAuthorizedView($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAuthorizedViewTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() 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 stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createBackupTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createBackupTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $sourceTable = 'sourceTable1670858410'; - $sourceBackup = 'sourceBackup-258292122'; - $sizeBytes = 1796325715; - $expectedResponse = new Backup(); - $expectedResponse->setName($name); - $expectedResponse->setSourceTable($sourceTable); - $expectedResponse->setSourceBackup($sourceBackup); - $expectedResponse->setSizeBytes($sizeBytes); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createBackupTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); - $backupId = 'backupId1355353272'; - $backup = new Backup(); - $backupSourceTable = 'backupSourceTable1043210577'; - $backup->setSourceTable($backupSourceTable); - $backupExpireTime = new Timestamp(); - $backup->setExpireTime($backupExpireTime); - $request = (new CreateBackupRequest()) - ->setParent($formattedParent) - ->setBackupId($backupId) - ->setBackup($backup); - $response = $gapicClient->createBackup($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/CreateBackup', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getBackupId(); - $this->assertProtobufEquals($backupId, $actualValue); - $actualValue = $actualApiRequestObject->getBackup(); - $this->assertProtobufEquals($backup, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createBackupTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createBackupExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createBackupTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $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); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); - $backupId = 'backupId1355353272'; - $backup = new Backup(); - $backupSourceTable = 'backupSourceTable1043210577'; - $backup->setSourceTable($backupSourceTable); - $backupExpireTime = new Timestamp(); - $backup->setExpireTime($backupExpireTime); - $request = (new CreateBackupRequest()) - ->setParent($formattedParent) - ->setBackupId($backupId) - ->setBackup($backup); - $response = $gapicClient->createBackup($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createBackupTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() 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 stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createSchemaBundleTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createSchemaBundleTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $etag = 'etag3123477'; - $expectedResponse = new SchemaBundle(); - $expectedResponse->setName($name); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createSchemaBundleTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $schemaBundleId = 'schemaBundleId-259541798'; - $schemaBundle = new SchemaBundle(); - $request = (new CreateSchemaBundleRequest()) - ->setParent($formattedParent) - ->setSchemaBundleId($schemaBundleId) - ->setSchemaBundle($schemaBundle); - $response = $gapicClient->createSchemaBundle($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/CreateSchemaBundle', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getSchemaBundleId(); - $this->assertProtobufEquals($schemaBundleId, $actualValue); - $actualValue = $actualApiRequestObject->getSchemaBundle(); - $this->assertProtobufEquals($schemaBundle, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createSchemaBundleTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createSchemaBundleExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createSchemaBundleTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $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); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $schemaBundleId = 'schemaBundleId-259541798'; - $schemaBundle = new SchemaBundle(); - $request = (new CreateSchemaBundleRequest()) - ->setParent($formattedParent) - ->setSchemaBundleId($schemaBundleId) - ->setSchemaBundle($schemaBundle); - $response = $gapicClient->createSchemaBundle($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createSchemaBundleTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() 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 stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createTableTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $deletionProtection = true; - $expectedResponse = new Table(); - $expectedResponse->setName($name); - $expectedResponse->setDeletionProtection($deletionProtection); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); - $tableId = 'tableId-895419604'; - $table = new Table(); - $request = (new CreateTableRequest()) - ->setParent($formattedParent) - ->setTableId($tableId) - ->setTable($table); - $response = $gapicClient->createTable($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/CreateTable', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getTableId(); - $this->assertProtobufEquals($tableId, $actualValue); - $actualValue = $actualRequestObject->getTable(); - $this->assertProtobufEquals($table, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createTableExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); - $tableId = 'tableId-895419604'; - $table = new Table(); - $request = (new CreateTableRequest()) - ->setParent($formattedParent) - ->setTableId($tableId) - ->setTable($table); - try { - $gapicClient->createTable($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 createTableFromSnapshotTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createTableFromSnapshotTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $deletionProtection = true; - $expectedResponse = new Table(); - $expectedResponse->setName($name); - $expectedResponse->setDeletionProtection($deletionProtection); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createTableFromSnapshotTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); - $tableId = 'tableId-895419604'; - $formattedSourceSnapshot = $gapicClient->snapshotName('[PROJECT]', '[INSTANCE]', '[CLUSTER]', '[SNAPSHOT]'); - $request = (new CreateTableFromSnapshotRequest()) - ->setParent($formattedParent) - ->setTableId($tableId) - ->setSourceSnapshot($formattedSourceSnapshot); - $response = $gapicClient->createTableFromSnapshot($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/CreateTableFromSnapshot', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getTableId(); - $this->assertProtobufEquals($tableId, $actualValue); - $actualValue = $actualApiRequestObject->getSourceSnapshot(); - $this->assertProtobufEquals($formattedSourceSnapshot, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createTableFromSnapshotTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createTableFromSnapshotExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createTableFromSnapshotTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $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); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); - $tableId = 'tableId-895419604'; - $formattedSourceSnapshot = $gapicClient->snapshotName('[PROJECT]', '[INSTANCE]', '[CLUSTER]', '[SNAPSHOT]'); - $request = (new CreateTableFromSnapshotRequest()) - ->setParent($formattedParent) - ->setTableId($tableId) - ->setSourceSnapshot($formattedSourceSnapshot); - $response = $gapicClient->createTableFromSnapshot($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createTableFromSnapshotTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() 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 stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteAuthorizedViewTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->authorizedViewName('[PROJECT]', '[INSTANCE]', '[TABLE]', '[AUTHORIZED_VIEW]'); - $request = (new DeleteAuthorizedViewRequest()) - ->setName($formattedName); - $gapicClient->deleteAuthorizedView($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/DeleteAuthorizedView', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAuthorizedViewExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->authorizedViewName('[PROJECT]', '[INSTANCE]', '[TABLE]', '[AUTHORIZED_VIEW]'); - $request = (new DeleteAuthorizedViewRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteAuthorizedView($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 deleteBackupTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->backupName('[PROJECT]', '[INSTANCE]', '[CLUSTER]', '[BACKUP]'); - $request = (new DeleteBackupRequest()) - ->setName($formattedName); - $gapicClient->deleteBackup($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/DeleteBackup', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteBackupExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->backupName('[PROJECT]', '[INSTANCE]', '[CLUSTER]', '[BACKUP]'); - $request = (new DeleteBackupRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteBackup($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 deleteSchemaBundleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->schemaBundleName('[PROJECT]', '[INSTANCE]', '[TABLE]', '[SCHEMA_BUNDLE]'); - $request = (new DeleteSchemaBundleRequest()) - ->setName($formattedName); - $gapicClient->deleteSchemaBundle($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/DeleteSchemaBundle', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteSchemaBundleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->schemaBundleName('[PROJECT]', '[INSTANCE]', '[TABLE]', '[SCHEMA_BUNDLE]'); - $request = (new DeleteSchemaBundleRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteSchemaBundle($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 deleteSnapshotTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->snapshotName('[PROJECT]', '[INSTANCE]', '[CLUSTER]', '[SNAPSHOT]'); - $request = (new DeleteSnapshotRequest()) - ->setName($formattedName); - $gapicClient->deleteSnapshot($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/DeleteSnapshot', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteSnapshotExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->snapshotName('[PROJECT]', '[INSTANCE]', '[CLUSTER]', '[SNAPSHOT]'); - $request = (new DeleteSnapshotRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteSnapshot($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 deleteTableTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $request = (new DeleteTableRequest()) - ->setName($formattedName); - $gapicClient->deleteTable($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/DeleteTable', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteTableExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $request = (new DeleteTableRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteTable($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 dropRowRangeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $request = (new DropRowRangeRequest()) - ->setName($formattedName); - $gapicClient->dropRowRange($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/DropRowRange', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function dropRowRangeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $request = (new DropRowRangeRequest()) - ->setName($formattedName); - try { - $gapicClient->dropRowRange($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 generateConsistencyTokenTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $consistencyToken = 'consistencyToken-1090516718'; - $expectedResponse = new GenerateConsistencyTokenResponse(); - $expectedResponse->setConsistencyToken($consistencyToken); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $request = (new GenerateConsistencyTokenRequest()) - ->setName($formattedName); - $response = $gapicClient->generateConsistencyToken($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/GenerateConsistencyToken', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function generateConsistencyTokenExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $request = (new GenerateConsistencyTokenRequest()) - ->setName($formattedName); - try { - $gapicClient->generateConsistencyToken($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 getAuthorizedViewTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $etag = 'etag3123477'; - $deletionProtection = true; - $expectedResponse = new AuthorizedView(); - $expectedResponse->setName($name2); - $expectedResponse->setEtag($etag); - $expectedResponse->setDeletionProtection($deletionProtection); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->authorizedViewName('[PROJECT]', '[INSTANCE]', '[TABLE]', '[AUTHORIZED_VIEW]'); - $request = (new GetAuthorizedViewRequest()) - ->setName($formattedName); - $response = $gapicClient->getAuthorizedView($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/GetAuthorizedView', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAuthorizedViewExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->authorizedViewName('[PROJECT]', '[INSTANCE]', '[TABLE]', '[AUTHORIZED_VIEW]'); - $request = (new GetAuthorizedViewRequest()) - ->setName($formattedName); - try { - $gapicClient->getAuthorizedView($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 getBackupTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $sourceTable = 'sourceTable1670858410'; - $sourceBackup = 'sourceBackup-258292122'; - $sizeBytes = 1796325715; - $expectedResponse = new Backup(); - $expectedResponse->setName($name2); - $expectedResponse->setSourceTable($sourceTable); - $expectedResponse->setSourceBackup($sourceBackup); - $expectedResponse->setSizeBytes($sizeBytes); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->backupName('[PROJECT]', '[INSTANCE]', '[CLUSTER]', '[BACKUP]'); - $request = (new GetBackupRequest()) - ->setName($formattedName); - $response = $gapicClient->getBackup($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/GetBackup', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getBackupExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->backupName('[PROJECT]', '[INSTANCE]', '[CLUSTER]', '[BACKUP]'); - $request = (new GetBackupRequest()) - ->setName($formattedName); - try { - $gapicClient->getBackup($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 getIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - $response = $gapicClient->getIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/GetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIamPolicyExceptionTest() - { - $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 - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - try { - $gapicClient->getIamPolicy($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 getSchemaBundleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $etag = 'etag3123477'; - $expectedResponse = new SchemaBundle(); - $expectedResponse->setName($name2); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->schemaBundleName('[PROJECT]', '[INSTANCE]', '[TABLE]', '[SCHEMA_BUNDLE]'); - $request = (new GetSchemaBundleRequest()) - ->setName($formattedName); - $response = $gapicClient->getSchemaBundle($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/GetSchemaBundle', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSchemaBundleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->schemaBundleName('[PROJECT]', '[INSTANCE]', '[TABLE]', '[SCHEMA_BUNDLE]'); - $request = (new GetSchemaBundleRequest()) - ->setName($formattedName); - try { - $gapicClient->getSchemaBundle($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 getSnapshotTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $dataSizeBytes = 2110122398; - $description = 'description-1724546052'; - $expectedResponse = new Snapshot(); - $expectedResponse->setName($name2); - $expectedResponse->setDataSizeBytes($dataSizeBytes); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->snapshotName('[PROJECT]', '[INSTANCE]', '[CLUSTER]', '[SNAPSHOT]'); - $request = (new GetSnapshotRequest()) - ->setName($formattedName); - $response = $gapicClient->getSnapshot($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/GetSnapshot', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSnapshotExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->snapshotName('[PROJECT]', '[INSTANCE]', '[CLUSTER]', '[SNAPSHOT]'); - $request = (new GetSnapshotRequest()) - ->setName($formattedName); - try { - $gapicClient->getSnapshot($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 getTableTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $deletionProtection = true; - $expectedResponse = new Table(); - $expectedResponse->setName($name2); - $expectedResponse->setDeletionProtection($deletionProtection); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $request = (new GetTableRequest()) - ->setName($formattedName); - $response = $gapicClient->getTable($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/GetTable', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTableExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $request = (new GetTableRequest()) - ->setName($formattedName); - try { - $gapicClient->getTable($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 listAuthorizedViewsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $authorizedViewsElement = new AuthorizedView(); - $authorizedViews = [ - $authorizedViewsElement, - ]; - $expectedResponse = new ListAuthorizedViewsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAuthorizedViews($authorizedViews); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $request = (new ListAuthorizedViewsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listAuthorizedViews($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAuthorizedViews()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/ListAuthorizedViews', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAuthorizedViewsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $request = (new ListAuthorizedViewsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listAuthorizedViews($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 listBackupsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $backupsElement = new Backup(); - $backups = [ - $backupsElement, - ]; - $expectedResponse = new ListBackupsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setBackups($backups); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); - $request = (new ListBackupsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listBackups($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getBackups()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/ListBackups', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listBackupsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); - $request = (new ListBackupsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listBackups($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 listSchemaBundlesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $schemaBundlesElement = new SchemaBundle(); - $schemaBundles = [ - $schemaBundlesElement, - ]; - $expectedResponse = new ListSchemaBundlesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setSchemaBundles($schemaBundles); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $request = (new ListSchemaBundlesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listSchemaBundles($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSchemaBundles()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/ListSchemaBundles', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSchemaBundlesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $request = (new ListSchemaBundlesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listSchemaBundles($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 listSnapshotsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $snapshotsElement = new Snapshot(); - $snapshots = [ - $snapshotsElement, - ]; - $expectedResponse = new ListSnapshotsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setSnapshots($snapshots); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); - $request = (new ListSnapshotsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listSnapshots($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSnapshots()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/ListSnapshots', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSnapshotsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); - $request = (new ListSnapshotsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listSnapshots($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 listTablesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $tablesElement = new Table(); - $tables = [ - $tablesElement, - ]; - $expectedResponse = new ListTablesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTables($tables); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); - $request = (new ListTablesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listTables($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getTables()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/ListTables', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listTablesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); - $request = (new ListTablesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listTables($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 modifyColumnFamiliesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $deletionProtection = true; - $expectedResponse = new Table(); - $expectedResponse->setName($name2); - $expectedResponse->setDeletionProtection($deletionProtection); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $modifications = []; - $request = (new ModifyColumnFamiliesRequest()) - ->setName($formattedName) - ->setModifications($modifications); - $response = $gapicClient->modifyColumnFamilies($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/ModifyColumnFamilies', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getModifications(); - $this->assertProtobufEquals($modifications, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function modifyColumnFamiliesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $modifications = []; - $request = (new ModifyColumnFamiliesRequest()) - ->setName($formattedName) - ->setModifications($modifications); - try { - $gapicClient->modifyColumnFamilies($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 restoreTableTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/restoreTableTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $deletionProtection = true; - $expectedResponse = new Table(); - $expectedResponse->setName($name); - $expectedResponse->setDeletionProtection($deletionProtection); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/restoreTableTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); - $tableId = 'tableId-895419604'; - $request = (new RestoreTableRequest()) - ->setParent($formattedParent) - ->setTableId($tableId); - $response = $gapicClient->restoreTable($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/RestoreTable', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getTableId(); - $this->assertProtobufEquals($tableId, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/restoreTableTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function restoreTableExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/restoreTableTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $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); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); - $tableId = 'tableId-895419604'; - $request = (new RestoreTableRequest()) - ->setParent($formattedParent) - ->setTableId($tableId); - $response = $gapicClient->restoreTable($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/restoreTableTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() 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 stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function setIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - $response = $gapicClient->setIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/SetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPolicy(); - $this->assertProtobufEquals($policy, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setIamPolicyExceptionTest() - { - $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 - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - try { - $gapicClient->setIamPolicy($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 snapshotTableTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/snapshotTableTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name2 = 'name2-1052831874'; - $dataSizeBytes = 2110122398; - $description2 = 'description2568623279'; - $expectedResponse = new Snapshot(); - $expectedResponse->setName($name2); - $expectedResponse->setDataSizeBytes($dataSizeBytes); - $expectedResponse->setDescription($description2); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/snapshotTableTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $formattedCluster = $gapicClient->clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); - $snapshotId = 'snapshotId-168585866'; - $request = (new SnapshotTableRequest()) - ->setName($formattedName) - ->setCluster($formattedCluster) - ->setSnapshotId($snapshotId); - $response = $gapicClient->snapshotTable($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/SnapshotTable', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualApiRequestObject->getCluster(); - $this->assertProtobufEquals($formattedCluster, $actualValue); - $actualValue = $actualApiRequestObject->getSnapshotId(); - $this->assertProtobufEquals($snapshotId, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/snapshotTableTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function snapshotTableExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/snapshotTableTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $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); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $formattedCluster = $gapicClient->clusterName('[PROJECT]', '[INSTANCE]', '[CLUSTER]'); - $snapshotId = 'snapshotId-168585866'; - $request = (new SnapshotTableRequest()) - ->setName($formattedName) - ->setCluster($formattedCluster) - ->setSnapshotId($snapshotId); - $response = $gapicClient->snapshotTable($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/snapshotTableTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() 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 stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function testIamPermissionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new TestIamPermissionsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - $response = $gapicClient->testIamPermissions($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/TestIamPermissions', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPermissions(); - $this->assertProtobufEquals($permissions, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function testIamPermissionsExceptionTest() - { - $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 - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - try { - $gapicClient->testIamPermissions($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 undeleteTableTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/undeleteTableTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name2 = 'name2-1052831874'; - $deletionProtection = true; - $expectedResponse = new Table(); - $expectedResponse->setName($name2); - $expectedResponse->setDeletionProtection($deletionProtection); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/undeleteTableTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $request = (new UndeleteTableRequest()) - ->setName($formattedName); - $response = $gapicClient->undeleteTable($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/UndeleteTable', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/undeleteTableTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function undeleteTableExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/undeleteTableTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $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); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $request = (new UndeleteTableRequest()) - ->setName($formattedName); - $response = $gapicClient->undeleteTable($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/undeleteTableTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() 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 stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateAuthorizedViewTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateAuthorizedViewTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $etag = 'etag3123477'; - $deletionProtection = true; - $expectedResponse = new AuthorizedView(); - $expectedResponse->setName($name); - $expectedResponse->setEtag($etag); - $expectedResponse->setDeletionProtection($deletionProtection); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateAuthorizedViewTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $authorizedView = new AuthorizedView(); - $request = (new UpdateAuthorizedViewRequest()) - ->setAuthorizedView($authorizedView); - $response = $gapicClient->updateAuthorizedView($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/UpdateAuthorizedView', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getAuthorizedView(); - $this->assertProtobufEquals($authorizedView, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateAuthorizedViewTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateAuthorizedViewExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateAuthorizedViewTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $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); - $operationsTransport->addResponse(null, $status); - // Mock request - $authorizedView = new AuthorizedView(); - $request = (new UpdateAuthorizedViewRequest()) - ->setAuthorizedView($authorizedView); - $response = $gapicClient->updateAuthorizedView($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateAuthorizedViewTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() 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 stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateBackupTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $sourceTable = 'sourceTable1670858410'; - $sourceBackup = 'sourceBackup-258292122'; - $sizeBytes = 1796325715; - $expectedResponse = new Backup(); - $expectedResponse->setName($name); - $expectedResponse->setSourceTable($sourceTable); - $expectedResponse->setSourceBackup($sourceBackup); - $expectedResponse->setSizeBytes($sizeBytes); - $transport->addResponse($expectedResponse); - // Mock request - $backup = new Backup(); - $backupSourceTable = 'backupSourceTable1043210577'; - $backup->setSourceTable($backupSourceTable); - $backupExpireTime = new Timestamp(); - $backup->setExpireTime($backupExpireTime); - $updateMask = new FieldMask(); - $request = (new UpdateBackupRequest()) - ->setBackup($backup) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateBackup($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/UpdateBackup', $actualFuncCall); - $actualValue = $actualRequestObject->getBackup(); - $this->assertProtobufEquals($backup, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateBackupExceptionTest() - { - $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 - $backup = new Backup(); - $backupSourceTable = 'backupSourceTable1043210577'; - $backup->setSourceTable($backupSourceTable); - $backupExpireTime = new Timestamp(); - $backup->setExpireTime($backupExpireTime); - $updateMask = new FieldMask(); - $request = (new UpdateBackupRequest()) - ->setBackup($backup) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateBackup($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 updateSchemaBundleTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateSchemaBundleTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $etag = 'etag3123477'; - $expectedResponse = new SchemaBundle(); - $expectedResponse->setName($name); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateSchemaBundleTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $schemaBundle = new SchemaBundle(); - $request = (new UpdateSchemaBundleRequest()) - ->setSchemaBundle($schemaBundle); - $response = $gapicClient->updateSchemaBundle($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/UpdateSchemaBundle', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getSchemaBundle(); - $this->assertProtobufEquals($schemaBundle, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateSchemaBundleTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateSchemaBundleExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateSchemaBundleTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $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); - $operationsTransport->addResponse(null, $status); - // Mock request - $schemaBundle = new SchemaBundle(); - $request = (new UpdateSchemaBundleRequest()) - ->setSchemaBundle($schemaBundle); - $response = $gapicClient->updateSchemaBundle($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateSchemaBundleTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() 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 stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateTableTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateTableTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $deletionProtection = true; - $expectedResponse = new Table(); - $expectedResponse->setName($name); - $expectedResponse->setDeletionProtection($deletionProtection); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateTableTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $table = new Table(); - $updateMask = new FieldMask(); - $request = (new UpdateTableRequest()) - ->setTable($table) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateTable($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/UpdateTable', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getTable(); - $this->assertProtobufEquals($table, $actualValue); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateTableTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateTableExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateTableTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $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); - $operationsTransport->addResponse(null, $status); - // Mock request - $table = new Table(); - $updateMask = new FieldMask(); - $request = (new UpdateTableRequest()) - ->setTable($table) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateTable($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateTableTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() 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 stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function checkConsistencyAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $consistent = true; - $expectedResponse = new CheckConsistencyResponse(); - $expectedResponse->setConsistent($consistent); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $consistencyToken = 'consistencyToken-1090516718'; - $request = (new CheckConsistencyRequest()) - ->setName($formattedName) - ->setConsistencyToken($consistencyToken); - $response = $gapicClient->checkConsistencyAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.admin.v2.BigtableTableAdmin/CheckConsistency', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getConsistencyToken(); - $this->assertProtobufEquals($consistencyToken, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/Bigtable.php b/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/Bigtable.php deleted file mode 100644 index eff71ec7cc0b..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/Bigtable.php +++ /dev/null @@ -1,36 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x81b\x0A!google/bigtable/v2/bigtable.proto\x12\x12google.bigtable.v2\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A\x18google/api/routing.proto\x1A\x1Dgoogle/bigtable/v2/data.proto\x1A&google/bigtable/v2/request_stats.proto\x1A\x1Egoogle/bigtable/v2/types.proto\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x1Egoogle/protobuf/wrappers.proto\x1A\x17google/rpc/status.proto\"\xCC\x04\x0A\x0FReadRowsRequest\x12>\x0A\x0Atable_name\x18\x01 \x01(\x09B*\xE0A\x01\xFAA\$\x0A\"bigtableadmin.googleapis.com/Table\x12Q\x0A\x14authorized_view_name\x18\x09 \x01(\x09B3\xE0A\x01\xFAA-\x0A+bigtableadmin.googleapis.com/AuthorizedView\x12U\x0A\x16materialized_view_name\x18\x0B \x01(\x09B5\xE0A\x01\xFAA/\x0A-bigtableadmin.googleapis.com/MaterializedView\x12\x16\x0A\x0Eapp_profile_id\x18\x05 \x01(\x09\x12(\x0A\x04rows\x18\x02 \x01(\x0B2\x1A.google.bigtable.v2.RowSet\x12-\x0A\x06filter\x18\x03 \x01(\x0B2\x1D.google.bigtable.v2.RowFilter\x12\x12\x0A\x0Arows_limit\x18\x04 \x01(\x03\x12P\x0A\x12request_stats_view\x18\x06 \x01(\x0E24.google.bigtable.v2.ReadRowsRequest.RequestStatsView\x12\x10\x0A\x08reversed\x18\x07 \x01(\x08\"f\x0A\x10RequestStatsView\x12\"\x0A\x1EREQUEST_STATS_VIEW_UNSPECIFIED\x10\x00\x12\x16\x0A\x12REQUEST_STATS_NONE\x10\x01\x12\x16\x0A\x12REQUEST_STATS_FULL\x10\x02\"\xB1\x03\x0A\x10ReadRowsResponse\x12>\x0A\x06chunks\x18\x01 \x03(\x0B2..google.bigtable.v2.ReadRowsResponse.CellChunk\x12\x1C\x0A\x14last_scanned_row_key\x18\x02 \x01(\x0C\x127\x0A\x0Drequest_stats\x18\x03 \x01(\x0B2 .google.bigtable.v2.RequestStats\x1A\x85\x02\x0A\x09CellChunk\x12\x0F\x0A\x07row_key\x18\x01 \x01(\x0C\x121\x0A\x0Bfamily_name\x18\x02 \x01(\x0B2\x1C.google.protobuf.StringValue\x12.\x0A\x09qualifier\x18\x03 \x01(\x0B2\x1B.google.protobuf.BytesValue\x12\x18\x0A\x10timestamp_micros\x18\x04 \x01(\x03\x12\x0E\x0A\x06labels\x18\x05 \x03(\x09\x12\x0D\x0A\x05value\x18\x06 \x01(\x0C\x12\x12\x0A\x0Avalue_size\x18\x07 \x01(\x05\x12\x13\x0A\x09reset_row\x18\x08 \x01(\x08H\x00\x12\x14\x0A\x0Acommit_row\x18\x09 \x01(\x08H\x00B\x0C\x0A\x0Arow_status\"\x98\x02\x0A\x14SampleRowKeysRequest\x12>\x0A\x0Atable_name\x18\x01 \x01(\x09B*\xE0A\x01\xFAA\$\x0A\"bigtableadmin.googleapis.com/Table\x12Q\x0A\x14authorized_view_name\x18\x04 \x01(\x09B3\xE0A\x01\xFAA-\x0A+bigtableadmin.googleapis.com/AuthorizedView\x12U\x0A\x16materialized_view_name\x18\x05 \x01(\x09B5\xE0A\x01\xFAA/\x0A-bigtableadmin.googleapis.com/MaterializedView\x12\x16\x0A\x0Eapp_profile_id\x18\x02 \x01(\x09\">\x0A\x15SampleRowKeysResponse\x12\x0F\x0A\x07row_key\x18\x01 \x01(\x0C\x12\x14\x0A\x0Coffset_bytes\x18\x02 \x01(\x03\"\xBF\x02\x0A\x10MutateRowRequest\x12>\x0A\x0Atable_name\x18\x01 \x01(\x09B*\xE0A\x01\xFAA\$\x0A\"bigtableadmin.googleapis.com/Table\x12Q\x0A\x14authorized_view_name\x18\x06 \x01(\x09B3\xE0A\x01\xFAA-\x0A+bigtableadmin.googleapis.com/AuthorizedView\x12\x16\x0A\x0Eapp_profile_id\x18\x04 \x01(\x09\x12\x14\x0A\x07row_key\x18\x02 \x01(\x0CB\x03\xE0A\x02\x124\x0A\x09mutations\x18\x03 \x03(\x0B2\x1C.google.bigtable.v2.MutationB\x03\xE0A\x02\x124\x0A\x0Bidempotency\x18\x08 \x01(\x0B2\x1F.google.bigtable.v2.Idempotency\"\x13\x0A\x11MutateRowResponse\"\x88\x03\x0A\x11MutateRowsRequest\x12>\x0A\x0Atable_name\x18\x01 \x01(\x09B*\xE0A\x01\xFAA\$\x0A\"bigtableadmin.googleapis.com/Table\x12Q\x0A\x14authorized_view_name\x18\x05 \x01(\x09B3\xE0A\x01\xFAA-\x0A+bigtableadmin.googleapis.com/AuthorizedView\x12\x16\x0A\x0Eapp_profile_id\x18\x03 \x01(\x09\x12A\x0A\x07entries\x18\x02 \x03(\x0B2+.google.bigtable.v2.MutateRowsRequest.EntryB\x03\xE0A\x02\x1A\x84\x01\x0A\x05Entry\x12\x0F\x0A\x07row_key\x18\x01 \x01(\x0C\x124\x0A\x09mutations\x18\x02 \x03(\x0B2\x1C.google.bigtable.v2.MutationB\x03\xE0A\x02\x124\x0A\x0Bidempotency\x18\x03 \x01(\x0B2\x1F.google.bigtable.v2.Idempotency\"\xE4\x01\x0A\x12MutateRowsResponse\x12=\x0A\x07entries\x18\x01 \x03(\x0B2,.google.bigtable.v2.MutateRowsResponse.Entry\x12?\x0A\x0Frate_limit_info\x18\x03 \x01(\x0B2!.google.bigtable.v2.RateLimitInfoH\x00\x88\x01\x01\x1A:\x0A\x05Entry\x12\x0D\x0A\x05index\x18\x01 \x01(\x03\x12\"\x0A\x06status\x18\x02 \x01(\x0B2\x12.google.rpc.StatusB\x12\x0A\x10_rate_limit_info\"J\x0A\x0DRateLimitInfo\x12)\x0A\x06period\x18\x01 \x01(\x0B2\x19.google.protobuf.Duration\x12\x0E\x0A\x06factor\x18\x02 \x01(\x01\"\x81\x03\x0A\x18CheckAndMutateRowRequest\x12>\x0A\x0Atable_name\x18\x01 \x01(\x09B*\xE0A\x01\xFAA\$\x0A\"bigtableadmin.googleapis.com/Table\x12Q\x0A\x14authorized_view_name\x18\x09 \x01(\x09B3\xE0A\x01\xFAA-\x0A+bigtableadmin.googleapis.com/AuthorizedView\x12\x16\x0A\x0Eapp_profile_id\x18\x07 \x01(\x09\x12\x14\x0A\x07row_key\x18\x02 \x01(\x0CB\x03\xE0A\x02\x127\x0A\x10predicate_filter\x18\x06 \x01(\x0B2\x1D.google.bigtable.v2.RowFilter\x124\x0A\x0Etrue_mutations\x18\x04 \x03(\x0B2\x1C.google.bigtable.v2.Mutation\x125\x0A\x0Ffalse_mutations\x18\x05 \x03(\x0B2\x1C.google.bigtable.v2.Mutation\"6\x0A\x19CheckAndMutateRowResponse\x12\x19\x0A\x11predicate_matched\x18\x01 \x01(\x08\"i\x0A\x12PingAndWarmRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%bigtableadmin.googleapis.com/Instance\x12\x16\x0A\x0Eapp_profile_id\x18\x02 \x01(\x09\"\x15\x0A\x13PingAndWarmResponse\"\x99\x02\x0A\x19ReadModifyWriteRowRequest\x12>\x0A\x0Atable_name\x18\x01 \x01(\x09B*\xE0A\x01\xFAA\$\x0A\"bigtableadmin.googleapis.com/Table\x12Q\x0A\x14authorized_view_name\x18\x06 \x01(\x09B3\xE0A\x01\xFAA-\x0A+bigtableadmin.googleapis.com/AuthorizedView\x12\x16\x0A\x0Eapp_profile_id\x18\x04 \x01(\x09\x12\x14\x0A\x07row_key\x18\x02 \x01(\x0CB\x03\xE0A\x02\x12;\x0A\x05rules\x18\x03 \x03(\x0B2'.google.bigtable.v2.ReadModifyWriteRuleB\x03\xE0A\x02\"B\x0A\x1AReadModifyWriteRowResponse\x12\$\x0A\x03row\x18\x01 \x01(\x0B2\x17.google.bigtable.v2.Row\"\x86\x01\x0A,GenerateInitialChangeStreamPartitionsRequest\x12>\x0A\x0Atable_name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"bigtableadmin.googleapis.com/Table\x12\x16\x0A\x0Eapp_profile_id\x18\x02 \x01(\x09\"g\x0A-GenerateInitialChangeStreamPartitionsResponse\x126\x0A\x09partition\x18\x01 \x01(\x0B2#.google.bigtable.v2.StreamPartition\"\x9B\x03\x0A\x17ReadChangeStreamRequest\x12>\x0A\x0Atable_name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"bigtableadmin.googleapis.com/Table\x12\x16\x0A\x0Eapp_profile_id\x18\x02 \x01(\x09\x126\x0A\x09partition\x18\x03 \x01(\x0B2#.google.bigtable.v2.StreamPartition\x120\x0A\x0Astart_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampH\x00\x12K\x0A\x13continuation_tokens\x18\x06 \x01(\x0B2,.google.bigtable.v2.StreamContinuationTokensH\x00\x12,\x0A\x08end_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.Timestamp\x125\x0A\x12heartbeat_duration\x18\x07 \x01(\x0B2\x19.google.protobuf.DurationB\x0C\x0A\x0Astart_from\"\xA9\x0A\x0A\x18ReadChangeStreamResponse\x12N\x0A\x0Bdata_change\x18\x01 \x01(\x0B27.google.bigtable.v2.ReadChangeStreamResponse.DataChangeH\x00\x12K\x0A\x09heartbeat\x18\x02 \x01(\x0B26.google.bigtable.v2.ReadChangeStreamResponse.HeartbeatH\x00\x12P\x0A\x0Cclose_stream\x18\x03 \x01(\x0B28.google.bigtable.v2.ReadChangeStreamResponse.CloseStreamH\x00\x1A\xF4\x01\x0A\x0DMutationChunk\x12X\x0A\x0Achunk_info\x18\x01 \x01(\x0B2D.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo\x12.\x0A\x08mutation\x18\x02 \x01(\x0B2\x1C.google.bigtable.v2.Mutation\x1AY\x0A\x09ChunkInfo\x12\x1A\x0A\x12chunked_value_size\x18\x01 \x01(\x05\x12\x1C\x0A\x14chunked_value_offset\x18\x02 \x01(\x05\x12\x12\x0A\x0Alast_chunk\x18\x03 \x01(\x08\x1A\xC6\x03\x0A\x0ADataChange\x12J\x0A\x04type\x18\x01 \x01(\x0E2<.google.bigtable.v2.ReadChangeStreamResponse.DataChange.Type\x12\x19\x0A\x11source_cluster_id\x18\x02 \x01(\x09\x12\x0F\x0A\x07row_key\x18\x03 \x01(\x0C\x124\x0A\x10commit_timestamp\x18\x04 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x12\x0A\x0Atiebreaker\x18\x05 \x01(\x05\x12J\x0A\x06chunks\x18\x06 \x03(\x0B2:.google.bigtable.v2.ReadChangeStreamResponse.MutationChunk\x12\x0C\x0A\x04done\x18\x08 \x01(\x08\x12\x0D\x0A\x05token\x18\x09 \x01(\x09\x12;\x0A\x17estimated_low_watermark\x18\x0A \x01(\x0B2\x1A.google.protobuf.Timestamp\"P\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04USER\x10\x01\x12\x16\x0A\x12GARBAGE_COLLECTION\x10\x02\x12\x10\x0A\x0CCONTINUATION\x10\x03\x1A\x91\x01\x0A\x09Heartbeat\x12G\x0A\x12continuation_token\x18\x01 \x01(\x0B2+.google.bigtable.v2.StreamContinuationToken\x12;\x0A\x17estimated_low_watermark\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x1A\xB8\x01\x0A\x0BCloseStream\x12\"\x0A\x06status\x18\x01 \x01(\x0B2\x12.google.rpc.Status\x12H\x0A\x13continuation_tokens\x18\x02 \x03(\x0B2+.google.bigtable.v2.StreamContinuationToken\x12;\x0A\x0Enew_partitions\x18\x03 \x03(\x0B2#.google.bigtable.v2.StreamPartitionB\x0F\x0A\x0Dstream_record\"\xA1\x03\x0A\x13ExecuteQueryRequest\x12D\x0A\x0Dinstance_name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%bigtableadmin.googleapis.com/Instance\x12\x1B\x0A\x0Eapp_profile_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x14\x0A\x05query\x18\x03 \x01(\x09B\x05\x18\x01\xE0A\x02\x12\x16\x0A\x0Eprepared_query\x18\x09 \x01(\x0C\x12;\x0A\x0Cproto_format\x18\x04 \x01(\x0B2\x1F.google.bigtable.v2.ProtoFormatB\x02\x18\x01H\x00\x12\x19\x0A\x0Cresume_token\x18\x08 \x01(\x0CB\x03\xE0A\x01\x12H\x0A\x06params\x18\x07 \x03(\x0B23.google.bigtable.v2.ExecuteQueryRequest.ParamsEntryB\x03\xE0A\x02\x1AH\x0A\x0BParamsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12(\x0A\x05value\x18\x02 \x01(\x0B2\x19.google.bigtable.v2.Value:\x028\x01B\x0D\x0A\x0Bdata_format\"\x96\x01\x0A\x14ExecuteQueryResponse\x129\x0A\x08metadata\x18\x01 \x01(\x0B2%.google.bigtable.v2.ResultSetMetadataH\x00\x127\x0A\x07results\x18\x02 \x01(\x0B2\$.google.bigtable.v2.PartialResultSetH\x00B\x0A\x0A\x08response\"\xF4\x02\x0A\x13PrepareQueryRequest\x12D\x0A\x0Dinstance_name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%bigtableadmin.googleapis.com/Instance\x12\x1B\x0A\x0Eapp_profile_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x12\x0A\x05query\x18\x03 \x01(\x09B\x03\xE0A\x02\x127\x0A\x0Cproto_format\x18\x04 \x01(\x0B2\x1F.google.bigtable.v2.ProtoFormatH\x00\x12Q\x0A\x0Bparam_types\x18\x06 \x03(\x0B27.google.bigtable.v2.PrepareQueryRequest.ParamTypesEntryB\x03\xE0A\x02\x1AK\x0A\x0FParamTypesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12'\x0A\x05value\x18\x02 \x01(\x0B2\x18.google.bigtable.v2.Type:\x028\x01B\x0D\x0A\x0Bdata_format\"\x98\x01\x0A\x14PrepareQueryResponse\x127\x0A\x08metadata\x18\x01 \x01(\x0B2%.google.bigtable.v2.ResultSetMetadata\x12\x16\x0A\x0Eprepared_query\x18\x02 \x01(\x0C\x12/\x0A\x0Bvalid_until\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp2\xDB'\x0A\x08Bigtable\x12\xD5\x04\x0A\x08ReadRows\x12#.google.bigtable.v2.ReadRowsRequest\x1A\$.google.bigtable.v2.ReadRowsResponse\"\xFB\x03\xDAA\x0Atable_name\xDAA\x19table_name,app_profile_id\x82\xD3\xE4\x93\x02\xF1\x01\"9/v2/{table_name=projects/*/instances/*/tables/*}:readRows:\x01*ZZ\"U/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:readRows:\x01*ZU\"P/v2/{materialized_view_name=projects/*/instances/*/materializedViews/*}:readRows:\x01*\x8A\xD3\xE4\x93\x02\xD3\x01\x12:\x0A\x0Atable_name\x12,{table_name=projects/*/instances/*/tables/*}\x12\x10\x0A\x0Eapp_profile_id\x12G\x0A\x14authorized_view_name\x12/{table_name=projects/*/instances/*/tables/*}/**\x12:\x0A\x16materialized_view_name\x12 {name=projects/*/instances/*}/**0\x01\x12\xEA\x04\x0A\x0DSampleRowKeys\x12(.google.bigtable.v2.SampleRowKeysRequest\x1A).google.bigtable.v2.SampleRowKeysResponse\"\x81\x04\xDAA\x0Atable_name\xDAA\x19table_name,app_profile_id\x82\xD3\xE4\x93\x02\xF7\x01\x12>/v2/{table_name=projects/*/instances/*/tables/*}:sampleRowKeysZ\\\x12Z/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:sampleRowKeysZW\x12U/v2/{materialized_view_name=projects/*/instances/*/materializedViews/*}:sampleRowKeys\x8A\xD3\xE4\x93\x02\xD3\x01\x12:\x0A\x0Atable_name\x12,{table_name=projects/*/instances/*/tables/*}\x12\x10\x0A\x0Eapp_profile_id\x12G\x0A\x14authorized_view_name\x12/{table_name=projects/*/instances/*/tables/*}/**\x12:\x0A\x16materialized_view_name\x12 {name=projects/*/instances/*}/**0\x01\x12\xE9\x03\x0A\x09MutateRow\x12\$.google.bigtable.v2.MutateRowRequest\x1A%.google.bigtable.v2.MutateRowResponse\"\x8E\x03\xDAA\x1Ctable_name,row_key,mutations\xDAA+table_name,row_key,mutations,app_profile_id\x82\xD3\xE4\x93\x02\x9C\x01\":/v2/{table_name=projects/*/instances/*/tables/*}:mutateRow:\x01*Z[\"V/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:mutateRow:\x01*\x8A\xD3\xE4\x93\x02\x97\x01\x12:\x0A\x0Atable_name\x12,{table_name=projects/*/instances/*/tables/*}\x12\x10\x0A\x0Eapp_profile_id\x12G\x0A\x14authorized_view_name\x12/{table_name=projects/*/instances/*/tables/*}/**\x12\xDC\x03\x0A\x0AMutateRows\x12%.google.bigtable.v2.MutateRowsRequest\x1A&.google.bigtable.v2.MutateRowsResponse\"\xFC\x02\xDAA\x12table_name,entries\xDAA!table_name,entries,app_profile_id\x82\xD3\xE4\x93\x02\x9E\x01\";/v2/{table_name=projects/*/instances/*/tables/*}:mutateRows:\x01*Z\\\"W/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:mutateRows:\x01*\x8A\xD3\xE4\x93\x02\x97\x01\x12:\x0A\x0Atable_name\x12,{table_name=projects/*/instances/*/tables/*}\x12\x10\x0A\x0Eapp_profile_id\x12G\x0A\x14authorized_view_name\x12/{table_name=projects/*/instances/*/tables/*}/**0\x01\x12\xDD\x04\x0A\x11CheckAndMutateRow\x12,.google.bigtable.v2.CheckAndMutateRowRequest\x1A-.google.bigtable.v2.CheckAndMutateRowResponse\"\xEA\x03\xDAABtable_name,row_key,predicate_filter,true_mutations,false_mutations\xDAAQtable_name,row_key,predicate_filter,true_mutations,false_mutations,app_profile_id\x82\xD3\xE4\x93\x02\xAC\x01\"B/v2/{table_name=projects/*/instances/*/tables/*}:checkAndMutateRow:\x01*Zc\"^/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:checkAndMutateRow:\x01*\x8A\xD3\xE4\x93\x02\x97\x01\x12:\x0A\x0Atable_name\x12,{table_name=projects/*/instances/*/tables/*}\x12\x10\x0A\x0Eapp_profile_id\x12G\x0A\x14authorized_view_name\x12/{table_name=projects/*/instances/*/tables/*}/**\x12\xEE\x01\x0A\x0BPingAndWarm\x12&.google.bigtable.v2.PingAndWarmRequest\x1A'.google.bigtable.v2.PingAndWarmResponse\"\x8D\x01\xDAA\x04name\xDAA\x13name,app_profile_id\x82\xD3\xE4\x93\x02+\"&/v2/{name=projects/*/instances/*}:ping:\x01*\x8A\xD3\xE4\x93\x029\x12%\x0A\x04name\x12\x1D{name=projects/*/instances/*}\x12\x10\x0A\x0Eapp_profile_id\x12\x8E\x04\x0A\x12ReadModifyWriteRow\x12-.google.bigtable.v2.ReadModifyWriteRowRequest\x1A..google.bigtable.v2.ReadModifyWriteRowResponse\"\x98\x03\xDAA\x18table_name,row_key,rules\xDAA'table_name,row_key,rules,app_profile_id\x82\xD3\xE4\x93\x02\xAE\x01\"C/v2/{table_name=projects/*/instances/*/tables/*}:readModifyWriteRow:\x01*Zd\"_/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:readModifyWriteRow:\x01*\x8A\xD3\xE4\x93\x02\x97\x01\x12:\x0A\x0Atable_name\x12,{table_name=projects/*/instances/*/tables/*}\x12\x10\x0A\x0Eapp_profile_id\x12G\x0A\x14authorized_view_name\x12/{table_name=projects/*/instances/*/tables/*}/**\x12\xBB\x02\x0A%GenerateInitialChangeStreamPartitions\x12@.google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest\x1AA.google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse\"\x8A\x01\xDAA\x0Atable_name\xDAA\x19table_name,app_profile_id\x82\xD3\xE4\x93\x02[\"V/v2/{table_name=projects/*/instances/*/tables/*}:generateInitialChangeStreamPartitions:\x01*0\x01\x12\xE6\x01\x0A\x10ReadChangeStream\x12+.google.bigtable.v2.ReadChangeStreamRequest\x1A,.google.bigtable.v2.ReadChangeStreamResponse\"u\xDAA\x0Atable_name\xDAA\x19table_name,app_profile_id\x82\xD3\xE4\x93\x02F\"A/v2/{table_name=projects/*/instances/*/tables/*}:readChangeStream:\x01*0\x01\x12\xA9\x02\x0A\x0CPrepareQuery\x12'.google.bigtable.v2.PrepareQueryRequest\x1A(.google.bigtable.v2.PrepareQueryResponse\"\xC5\x01\xDAA\x13instance_name,query\xDAA\"instance_name,query,app_profile_id\x82\xD3\xE4\x93\x02<\"7/v2/{instance_name=projects/*/instances/*}:prepareQuery:\x01*\x8A\xD3\xE4\x93\x02B\x12.\x0A\x0Dinstance_name\x12\x1D{name=projects/*/instances/*}\x12\x10\x0A\x0Eapp_profile_id\x12\xAB\x02\x0A\x0CExecuteQuery\x12'.google.bigtable.v2.ExecuteQueryRequest\x1A(.google.bigtable.v2.ExecuteQueryResponse\"\xC5\x01\xDAA\x13instance_name,query\xDAA\"instance_name,query,app_profile_id\x82\xD3\xE4\x93\x02<\"7/v2/{instance_name=projects/*/instances/*}:executeQuery:\x01*\x8A\xD3\xE4\x93\x02B\x12.\x0A\x0Dinstance_name\x12\x1D{name=projects/*/instances/*}\x12\x10\x0A\x0Eapp_profile_id0\x01\x1A\xDB\x02\xCAA\x17bigtable.googleapis.com\xD2A\xBD\x02https://www.googleapis.com/auth/bigtable.data,https://www.googleapis.com/auth/bigtable.data.readonly,https://www.googleapis.com/auth/cloud-bigtable.data,https://www.googleapis.com/auth/cloud-bigtable.data.readonly,https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-onlyB\xF5\x04\x0A\x16com.google.bigtable.v2B\x0DBigtableProtoP\x01Z8cloud.google.com/go/bigtable/apiv2/bigtablepb;bigtablepb\xAA\x02\x18Google.Cloud.Bigtable.V2\xCA\x02\x18Google\\Cloud\\Bigtable\\V2\xEA\x02\x1BGoogle::Cloud::Bigtable::V2\xEAAP\x0A%bigtableadmin.googleapis.com/Instance\x12'projects/{project}/instances/{instance}\xEAA\\\x0A\"bigtableadmin.googleapis.com/Table\x126projects/{project}/instances/{instance}/tables/{table}\xEAA\x87\x01\x0A+bigtableadmin.googleapis.com/AuthorizedView\x12Xprojects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}\xEAA~\x0A-bigtableadmin.googleapis.com/MaterializedView\x12Mprojects/{project}/instances/{instance}/materializedViews/{materialized_view}b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/Data.php b/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/Data.php deleted file mode 100644 index f717d8f3ddbb..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/Data.php +++ /dev/null @@ -1,28 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xA2&\x0A\x1Dgoogle/bigtable/v2/data.proto\x12\x12google.bigtable.v2\x1A\x1Egoogle/bigtable/v2/types.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x16google/type/date.proto\"@\x0A\x03Row\x12\x0B\x0A\x03key\x18\x01 \x01(\x0C\x12,\x0A\x08families\x18\x02 \x03(\x0B2\x1A.google.bigtable.v2.Family\"C\x0A\x06Family\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12+\x0A\x07columns\x18\x02 \x03(\x0B2\x1A.google.bigtable.v2.Column\"D\x0A\x06Column\x12\x11\x0A\x09qualifier\x18\x01 \x01(\x0C\x12'\x0A\x05cells\x18\x02 \x03(\x0B2\x18.google.bigtable.v2.Cell\"?\x0A\x04Cell\x12\x18\x0A\x10timestamp_micros\x18\x01 \x01(\x03\x12\x0D\x0A\x05value\x18\x02 \x01(\x0C\x12\x0E\x0A\x06labels\x18\x03 \x03(\x09\"\xF4\x02\x0A\x05Value\x12&\x0A\x04type\x18\x07 \x01(\x0B2\x18.google.bigtable.v2.Type\x12\x13\x0A\x09raw_value\x18\x08 \x01(\x0CH\x00\x12\x1E\x0A\x14raw_timestamp_micros\x18\x09 \x01(\x03H\x00\x12\x15\x0A\x0Bbytes_value\x18\x02 \x01(\x0CH\x00\x12\x16\x0A\x0Cstring_value\x18\x03 \x01(\x09H\x00\x12\x13\x0A\x09int_value\x18\x06 \x01(\x03H\x00\x12\x14\x0A\x0Abool_value\x18\x0A \x01(\x08H\x00\x12\x15\x0A\x0Bfloat_value\x18\x0B \x01(\x01H\x00\x125\x0A\x0Ftimestamp_value\x18\x0C \x01(\x0B2\x1A.google.protobuf.TimestampH\x00\x12'\x0A\x0Adate_value\x18\x0D \x01(\x0B2\x11.google.type.DateH\x00\x125\x0A\x0Barray_value\x18\x04 \x01(\x0B2\x1E.google.bigtable.v2.ArrayValueH\x00B\x06\x0A\x04kind\"7\x0A\x0AArrayValue\x12)\x0A\x06values\x18\x01 \x03(\x0B2\x19.google.bigtable.v2.Value\"\x8A\x01\x0A\x08RowRange\x12\x1A\x0A\x10start_key_closed\x18\x01 \x01(\x0CH\x00\x12\x18\x0A\x0Estart_key_open\x18\x02 \x01(\x0CH\x00\x12\x16\x0A\x0Cend_key_open\x18\x03 \x01(\x0CH\x01\x12\x18\x0A\x0Eend_key_closed\x18\x04 \x01(\x0CH\x01B\x0B\x0A\x09start_keyB\x09\x0A\x07end_key\"L\x0A\x06RowSet\x12\x10\x0A\x08row_keys\x18\x01 \x03(\x0C\x120\x0A\x0Arow_ranges\x18\x02 \x03(\x0B2\x1C.google.bigtable.v2.RowRange\"\xC6\x01\x0A\x0BColumnRange\x12\x13\x0A\x0Bfamily_name\x18\x01 \x01(\x09\x12 \x0A\x16start_qualifier_closed\x18\x02 \x01(\x0CH\x00\x12\x1E\x0A\x14start_qualifier_open\x18\x03 \x01(\x0CH\x00\x12\x1E\x0A\x14end_qualifier_closed\x18\x04 \x01(\x0CH\x01\x12\x1C\x0A\x12end_qualifier_open\x18\x05 \x01(\x0CH\x01B\x11\x0A\x0Fstart_qualifierB\x0F\x0A\x0Dend_qualifier\"N\x0A\x0ETimestampRange\x12\x1E\x0A\x16start_timestamp_micros\x18\x01 \x01(\x03\x12\x1C\x0A\x14end_timestamp_micros\x18\x02 \x01(\x03\"\x98\x01\x0A\x0AValueRange\x12\x1C\x0A\x12start_value_closed\x18\x01 \x01(\x0CH\x00\x12\x1A\x0A\x10start_value_open\x18\x02 \x01(\x0CH\x00\x12\x1A\x0A\x10end_value_closed\x18\x03 \x01(\x0CH\x01\x12\x18\x0A\x0Eend_value_open\x18\x04 \x01(\x0CH\x01B\x0D\x0A\x0Bstart_valueB\x0B\x0A\x09end_value\"\xDF\x08\x0A\x09RowFilter\x124\x0A\x05chain\x18\x01 \x01(\x0B2#.google.bigtable.v2.RowFilter.ChainH\x00\x12>\x0A\x0Ainterleave\x18\x02 \x01(\x0B2(.google.bigtable.v2.RowFilter.InterleaveH\x00\x12<\x0A\x09condition\x18\x03 \x01(\x0B2'.google.bigtable.v2.RowFilter.ConditionH\x00\x12\x0E\x0A\x04sink\x18\x10 \x01(\x08H\x00\x12\x19\x0A\x0Fpass_all_filter\x18\x11 \x01(\x08H\x00\x12\x1A\x0A\x10block_all_filter\x18\x12 \x01(\x08H\x00\x12\x1E\x0A\x14row_key_regex_filter\x18\x04 \x01(\x0CH\x00\x12\x1B\x0A\x11row_sample_filter\x18\x0E \x01(\x01H\x00\x12\"\x0A\x18family_name_regex_filter\x18\x05 \x01(\x09H\x00\x12'\x0A\x1Dcolumn_qualifier_regex_filter\x18\x06 \x01(\x0CH\x00\x12>\x0A\x13column_range_filter\x18\x07 \x01(\x0B2\x1F.google.bigtable.v2.ColumnRangeH\x00\x12D\x0A\x16timestamp_range_filter\x18\x08 \x01(\x0B2\".google.bigtable.v2.TimestampRangeH\x00\x12\x1C\x0A\x12value_regex_filter\x18\x09 \x01(\x0CH\x00\x12<\x0A\x12value_range_filter\x18\x0F \x01(\x0B2\x1E.google.bigtable.v2.ValueRangeH\x00\x12%\x0A\x1Bcells_per_row_offset_filter\x18\x0A \x01(\x05H\x00\x12\$\x0A\x1Acells_per_row_limit_filter\x18\x0B \x01(\x05H\x00\x12'\x0A\x1Dcells_per_column_limit_filter\x18\x0C \x01(\x05H\x00\x12!\x0A\x17strip_value_transformer\x18\x0D \x01(\x08H\x00\x12!\x0A\x17apply_label_transformer\x18\x13 \x01(\x09H\x00\x1A7\x0A\x05Chain\x12.\x0A\x07filters\x18\x01 \x03(\x0B2\x1D.google.bigtable.v2.RowFilter\x1A<\x0A\x0AInterleave\x12.\x0A\x07filters\x18\x01 \x03(\x0B2\x1D.google.bigtable.v2.RowFilter\x1A\xAD\x01\x0A\x09Condition\x127\x0A\x10predicate_filter\x18\x01 \x01(\x0B2\x1D.google.bigtable.v2.RowFilter\x122\x0A\x0Btrue_filter\x18\x02 \x01(\x0B2\x1D.google.bigtable.v2.RowFilter\x123\x0A\x0Cfalse_filter\x18\x03 \x01(\x0B2\x1D.google.bigtable.v2.RowFilterB\x08\x0A\x06filter\"\xAD\x08\x0A\x08Mutation\x128\x0A\x08set_cell\x18\x01 \x01(\x0B2\$.google.bigtable.v2.Mutation.SetCellH\x00\x12=\x0A\x0Badd_to_cell\x18\x05 \x01(\x0B2&.google.bigtable.v2.Mutation.AddToCellH\x00\x12A\x0A\x0Dmerge_to_cell\x18\x06 \x01(\x0B2(.google.bigtable.v2.Mutation.MergeToCellH\x00\x12K\x0A\x12delete_from_column\x18\x02 \x01(\x0B2-.google.bigtable.v2.Mutation.DeleteFromColumnH\x00\x12K\x0A\x12delete_from_family\x18\x03 \x01(\x0B2-.google.bigtable.v2.Mutation.DeleteFromFamilyH\x00\x12E\x0A\x0Fdelete_from_row\x18\x04 \x01(\x0B2*.google.bigtable.v2.Mutation.DeleteFromRowH\x00\x1Aa\x0A\x07SetCell\x12\x13\x0A\x0Bfamily_name\x18\x01 \x01(\x09\x12\x18\x0A\x10column_qualifier\x18\x02 \x01(\x0C\x12\x18\x0A\x10timestamp_micros\x18\x03 \x01(\x03\x12\x0D\x0A\x05value\x18\x04 \x01(\x0C\x1A\xAD\x01\x0A\x09AddToCell\x12\x13\x0A\x0Bfamily_name\x18\x01 \x01(\x09\x123\x0A\x10column_qualifier\x18\x02 \x01(\x0B2\x19.google.bigtable.v2.Value\x12,\x0A\x09timestamp\x18\x03 \x01(\x0B2\x19.google.bigtable.v2.Value\x12(\x0A\x05input\x18\x04 \x01(\x0B2\x19.google.bigtable.v2.Value\x1A\xAF\x01\x0A\x0BMergeToCell\x12\x13\x0A\x0Bfamily_name\x18\x01 \x01(\x09\x123\x0A\x10column_qualifier\x18\x02 \x01(\x0B2\x19.google.bigtable.v2.Value\x12,\x0A\x09timestamp\x18\x03 \x01(\x0B2\x19.google.bigtable.v2.Value\x12(\x0A\x05input\x18\x04 \x01(\x0B2\x19.google.bigtable.v2.Value\x1Ay\x0A\x10DeleteFromColumn\x12\x13\x0A\x0Bfamily_name\x18\x01 \x01(\x09\x12\x18\x0A\x10column_qualifier\x18\x02 \x01(\x0C\x126\x0A\x0Atime_range\x18\x03 \x01(\x0B2\".google.bigtable.v2.TimestampRange\x1A'\x0A\x10DeleteFromFamily\x12\x13\x0A\x0Bfamily_name\x18\x01 \x01(\x09\x1A\x0F\x0A\x0DDeleteFromRowB\x0A\x0A\x08mutation\"\x80\x01\x0A\x13ReadModifyWriteRule\x12\x13\x0A\x0Bfamily_name\x18\x01 \x01(\x09\x12\x18\x0A\x10column_qualifier\x18\x02 \x01(\x0C\x12\x16\x0A\x0Cappend_value\x18\x03 \x01(\x0CH\x00\x12\x1A\x0A\x10increment_amount\x18\x04 \x01(\x03H\x00B\x06\x0A\x04rule\"B\x0A\x0FStreamPartition\x12/\x0A\x09row_range\x18\x01 \x01(\x0B2\x1C.google.bigtable.v2.RowRange\"W\x0A\x18StreamContinuationTokens\x12;\x0A\x06tokens\x18\x01 \x03(\x0B2+.google.bigtable.v2.StreamContinuationToken\"`\x0A\x17StreamContinuationToken\x126\x0A\x09partition\x18\x01 \x01(\x0B2#.google.bigtable.v2.StreamPartition\x12\x0D\x0A\x05token\x18\x02 \x01(\x09\"\x0D\x0A\x0BProtoFormat\"F\x0A\x0EColumnMetadata\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12&\x0A\x04type\x18\x02 \x01(\x0B2\x18.google.bigtable.v2.Type\"B\x0A\x0BProtoSchema\x123\x0A\x07columns\x18\x01 \x03(\x0B2\".google.bigtable.v2.ColumnMetadata\"V\x0A\x11ResultSetMetadata\x127\x0A\x0Cproto_schema\x18\x01 \x01(\x0B2\x1F.google.bigtable.v2.ProtoSchemaH\x00B\x08\x0A\x06schema\"6\x0A\x09ProtoRows\x12)\x0A\x06values\x18\x02 \x03(\x0B2\x19.google.bigtable.v2.Value\"\$\x0A\x0EProtoRowsBatch\x12\x12\x0A\x0Abatch_data\x18\x01 \x01(\x0C\"\xD5\x01\x0A\x10PartialResultSet\x12>\x0A\x10proto_rows_batch\x18\x03 \x01(\x0B2\".google.bigtable.v2.ProtoRowsBatchH\x00\x12\x1B\x0A\x0Ebatch_checksum\x18\x06 \x01(\x0DH\x01\x88\x01\x01\x12\x14\x0A\x0Cresume_token\x18\x05 \x01(\x0C\x12\x0D\x0A\x05reset\x18\x07 \x01(\x08\x12\x1C\x0A\x14estimated_batch_size\x18\x04 \x01(\x05B\x0E\x0A\x0Cpartial_rowsB\x11\x0A\x0F_batch_checksum\"L\x0A\x0BIdempotency\x12\x0D\x0A\x05token\x18\x01 \x01(\x0C\x12.\x0A\x0Astart_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\xB3\x01\x0A\x16com.google.bigtable.v2B\x09DataProtoP\x01Z8cloud.google.com/go/bigtable/apiv2/bigtablepb;bigtablepb\xAA\x02\x18Google.Cloud.Bigtable.V2\xCA\x02\x18Google\\Cloud\\Bigtable\\V2\xEA\x02\x1BGoogle::Cloud::Bigtable::V2b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/FeatureFlags.php b/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/FeatureFlags.php deleted file mode 100644 index e61f0dfaca92..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/FeatureFlags.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xB6\x04\x0A&google/bigtable/v2/feature_flags.proto\x12\x12google.bigtable.v2\"\xB1\x02\x0A\x0CFeatureFlags\x12\x15\x0A\x0Dreverse_scans\x18\x01 \x01(\x08\x12\x1E\x0A\x16mutate_rows_rate_limit\x18\x03 \x01(\x08\x12\x1F\x0A\x17mutate_rows_rate_limit2\x18\x05 \x01(\x08\x12\"\x0A\x1Alast_scanned_row_responses\x18\x04 \x01(\x08\x12\x16\x0A\x0Erouting_cookie\x18\x06 \x01(\x08\x12\x12\x0A\x0Aretry_info\x18\x07 \x01(\x08\x12#\x0A\x1Bclient_side_metrics_enabled\x18\x08 \x01(\x08\x12 \x0A\x18traffic_director_enabled\x18\x09 \x01(\x08\x12\x1F\x0A\x17direct_access_requested\x18\x0A \x01(\x08\x12\x11\x0A\x09peer_info\x18\x0B \x01(\x08B\xBB\x01\x0A\x16com.google.bigtable.v2B\x11FeatureFlagsProtoP\x01Z8cloud.google.com/go/bigtable/apiv2/bigtablepb;bigtablepb\xAA\x02\x18Google.Cloud.Bigtable.V2\xCA\x02\x18Google\\Cloud\\Bigtable\\V2\xEA\x02\x1BGoogle::Cloud::Bigtable::V2b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/PeerInfo.php b/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/PeerInfo.php deleted file mode 100644 index 87f25f93fd89..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/PeerInfo.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xF7\x05\x0A\"google/bigtable/v2/peer_info.proto\x12\x12google.bigtable.v2\"\xFA\x03\x0A\x08PeerInfo\x12\x1A\x0A\x12google_frontend_id\x18\x01 \x01(\x03\x12\x1F\x0A\x17application_frontend_id\x18\x02 \x01(\x03\x12!\x0A\x19application_frontend_zone\x18\x03 \x01(\x09\x12\$\x0A\x1Capplication_frontend_subzone\x18\x04 \x01(\x09\x12B\x0A\x0Etransport_type\x18\x05 \x01(\x0E2*.google.bigtable.v2.PeerInfo.TransportType\"\xA3\x02\x0A\x0DTransportType\x12\x1A\x0A\x16TRANSPORT_TYPE_UNKNOWN\x10\x00\x12\x1B\x0A\x17TRANSPORT_TYPE_EXTERNAL\x10\x01\x12\x1D\x0A\x19TRANSPORT_TYPE_CLOUD_PATH\x10\x02\x12 \x0A\x1CTRANSPORT_TYPE_DIRECT_ACCESS\x10\x03\x12\"\x0A\x1ETRANSPORT_TYPE_SESSION_UNKNOWN\x10\x04\x12#\x0A\x1FTRANSPORT_TYPE_SESSION_EXTERNAL\x10\x05\x12%\x0A!TRANSPORT_TYPE_SESSION_CLOUD_PATH\x10\x06\x12(\x0A\$TRANSPORT_TYPE_SESSION_DIRECT_ACCESS\x10\x07B\xB7\x01\x0A\x16com.google.bigtable.v2B\x0DPeerInfoProtoP\x01Z8cloud.google.com/go/bigtable/apiv2/bigtablepb;bigtablepb\xAA\x02\x18Google.Cloud.Bigtable.V2\xCA\x02\x18Google\\Cloud\\Bigtable\\V2\xEA\x02\x1BGoogle::Cloud::Bigtable::V2b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/RequestStats.php b/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/RequestStats.php deleted file mode 100644 index 861dbd204c88..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/RequestStats.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xE3\x05\x0A&google/bigtable/v2/request_stats.proto\x12\x12google.bigtable.v2\"\x82\x01\x0A\x12ReadIterationStats\x12\x17\x0A\x0Frows_seen_count\x18\x01 \x01(\x03\x12\x1B\x0A\x13rows_returned_count\x18\x02 \x01(\x03\x12\x18\x0A\x10cells_seen_count\x18\x03 \x01(\x03\x12\x1C\x0A\x14cells_returned_count\x18\x04 \x01(\x03\"Q\x0A\x13RequestLatencyStats\x12:\x0A\x17frontend_server_latency\x18\x01 \x01(\x0B2\x19.google.protobuf.Duration\"\xA1\x01\x0A\x11FullReadStatsView\x12D\x0A\x14read_iteration_stats\x18\x01 \x01(\x0B2&.google.bigtable.v2.ReadIterationStats\x12F\x0A\x15request_latency_stats\x18\x02 \x01(\x0B2'.google.bigtable.v2.RequestLatencyStats\"c\x0A\x0CRequestStats\x12E\x0A\x14full_read_stats_view\x18\x01 \x01(\x0B2%.google.bigtable.v2.FullReadStatsViewH\x00B\x0C\x0A\x0Astats_viewB\xBB\x01\x0A\x16com.google.bigtable.v2B\x11RequestStatsProtoP\x01Z8cloud.google.com/go/bigtable/apiv2/bigtablepb;bigtablepb\xAA\x02\x18Google.Cloud.Bigtable.V2\xCA\x02\x18Google\\Cloud\\Bigtable\\V2\xEA\x02\x1BGoogle::Cloud::Bigtable::V2b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/ResponseParams.php b/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/ResponseParams.php deleted file mode 100644 index 3aa59f156669..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/ResponseParams.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x82\x03\x0A(google/bigtable/v2/response_params.proto\x12\x12google.bigtable.v2\"z\x0A\x0EResponseParams\x12\x14\x0A\x07zone_id\x18\x01 \x01(\x09H\x00\x88\x01\x01\x12\x17\x0A\x0Acluster_id\x18\x02 \x01(\x09H\x01\x88\x01\x01\x12\x13\x0A\x06afe_id\x18\x03 \x01(\x03H\x02\x88\x01\x01B\x0A\x0A\x08_zone_idB\x0D\x0A\x0B_cluster_idB\x09\x0A\x07_afe_idB\xBD\x01\x0A\x16com.google.bigtable.v2B\x13ResponseParamsProtoP\x01Z8cloud.google.com/go/bigtable/apiv2/bigtablepb;bigtablepb\xAA\x02\x18Google.Cloud.Bigtable.V2\xCA\x02\x18Google\\Cloud\\Bigtable\\V2\xEA\x02\x1BGoogle::Cloud::Bigtable::V2b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/Types.php b/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/Types.php deleted file mode 100644 index 22732f7abedd..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/GPBMetadata/Google/Bigtable/V2/Types.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xFD\x19\x0A\x1Egoogle/bigtable/v2/types.proto\x12\x12google.bigtable.v2\"\x87\x18\x0A\x04Type\x124\x0A\x0Abytes_type\x18\x01 \x01(\x0B2\x1E.google.bigtable.v2.Type.BytesH\x00\x126\x0A\x0Bstring_type\x18\x02 \x01(\x0B2\x1F.google.bigtable.v2.Type.StringH\x00\x124\x0A\x0Aint64_type\x18\x05 \x01(\x0B2\x1E.google.bigtable.v2.Type.Int64H\x00\x128\x0A\x0Cfloat32_type\x18\x0C \x01(\x0B2 .google.bigtable.v2.Type.Float32H\x00\x128\x0A\x0Cfloat64_type\x18\x09 \x01(\x0B2 .google.bigtable.v2.Type.Float64H\x00\x122\x0A\x09bool_type\x18\x08 \x01(\x0B2\x1D.google.bigtable.v2.Type.BoolH\x00\x12<\x0A\x0Etimestamp_type\x18\x0A \x01(\x0B2\".google.bigtable.v2.Type.TimestampH\x00\x122\x0A\x09date_type\x18\x0B \x01(\x0B2\x1D.google.bigtable.v2.Type.DateH\x00\x12<\x0A\x0Eaggregate_type\x18\x06 \x01(\x0B2\".google.bigtable.v2.Type.AggregateH\x00\x126\x0A\x0Bstruct_type\x18\x07 \x01(\x0B2\x1F.google.bigtable.v2.Type.StructH\x00\x124\x0A\x0Aarray_type\x18\x03 \x01(\x0B2\x1E.google.bigtable.v2.Type.ArrayH\x00\x120\x0A\x08map_type\x18\x04 \x01(\x0B2\x1C.google.bigtable.v2.Type.MapH\x00\x124\x0A\x0Aproto_type\x18\x0D \x01(\x0B2\x1E.google.bigtable.v2.Type.ProtoH\x00\x122\x0A\x09enum_type\x18\x0E \x01(\x0B2\x1D.google.bigtable.v2.Type.EnumH\x00\x1A\xB3\x01\x0A\x05Bytes\x129\x0A\x08encoding\x18\x01 \x01(\x0B2'.google.bigtable.v2.Type.Bytes.Encoding\x1Ao\x0A\x08Encoding\x12:\x0A\x03raw\x18\x01 \x01(\x0B2+.google.bigtable.v2.Type.Bytes.Encoding.RawH\x00\x1A\x1B\x0A\x03Raw\x12\x14\x0A\x0Cescape_nulls\x18\x01 \x01(\x08B\x0A\x0A\x08encoding\x1A\xA7\x02\x0A\x06String\x12:\x0A\x08encoding\x18\x01 \x01(\x0B2(.google.bigtable.v2.Type.String.Encoding\x1A\xE0\x01\x0A\x08Encoding\x12H\x0A\x08utf8_raw\x18\x01 \x01(\x0B20.google.bigtable.v2.Type.String.Encoding.Utf8RawB\x02\x18\x01H\x00\x12H\x0A\x0Autf8_bytes\x18\x02 \x01(\x0B22.google.bigtable.v2.Type.String.Encoding.Utf8BytesH\x00\x1A\x0D\x0A\x07Utf8Raw:\x02\x18\x01\x1A%\x0A\x09Utf8Bytes\x12\x18\x0A\x10null_escape_char\x18\x01 \x01(\x09B\x0A\x0A\x08encoding\x1A\xE5\x02\x0A\x05Int64\x129\x0A\x08encoding\x18\x01 \x01(\x0B2'.google.bigtable.v2.Type.Int64.Encoding\x1A\xA0\x02\x0A\x08Encoding\x12R\x0A\x10big_endian_bytes\x18\x01 \x01(\x0B26.google.bigtable.v2.Type.Int64.Encoding.BigEndianBytesH\x00\x12V\x0A\x12ordered_code_bytes\x18\x02 \x01(\x0B28.google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytesH\x00\x1AH\x0A\x0EBigEndianBytes\x126\x0A\x0Abytes_type\x18\x01 \x01(\x0B2\x1E.google.bigtable.v2.Type.BytesB\x02\x18\x01\x1A\x12\x0A\x10OrderedCodeBytesB\x0A\x0A\x08encoding\x1A\x06\x0A\x04Bool\x1A\x09\x0A\x07Float32\x1A\x09\x0A\x07Float64\x1A\xA8\x01\x0A\x09Timestamp\x12=\x0A\x08encoding\x18\x01 \x01(\x0B2+.google.bigtable.v2.Type.Timestamp.Encoding\x1A\\\x0A\x08Encoding\x12D\x0A\x11unix_micros_int64\x18\x01 \x01(\x0B2'.google.bigtable.v2.Type.Int64.EncodingH\x00B\x0A\x0A\x08encoding\x1A\x06\x0A\x04Date\x1A\x95\x04\x0A\x06Struct\x125\x0A\x06fields\x18\x01 \x03(\x0B2%.google.bigtable.v2.Type.Struct.Field\x12:\x0A\x08encoding\x18\x02 \x01(\x0B2(.google.bigtable.v2.Type.Struct.Encoding\x1AC\x0A\x05Field\x12\x12\x0A\x0Afield_name\x18\x01 \x01(\x09\x12&\x0A\x04type\x18\x02 \x01(\x0B2\x18.google.bigtable.v2.Type\x1A\xD2\x02\x0A\x08Encoding\x12G\x0A\x09singleton\x18\x01 \x01(\x0B22.google.bigtable.v2.Type.Struct.Encoding.SingletonH\x00\x12R\x0A\x0Fdelimited_bytes\x18\x02 \x01(\x0B27.google.bigtable.v2.Type.Struct.Encoding.DelimitedBytesH\x00\x12W\x0A\x12ordered_code_bytes\x18\x03 \x01(\x0B29.google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytesH\x00\x1A\x0B\x0A\x09Singleton\x1A#\x0A\x0EDelimitedBytes\x12\x11\x0A\x09delimiter\x18\x01 \x01(\x0C\x1A\x12\x0A\x10OrderedCodeBytesB\x0A\x0A\x08encoding\x1A7\x0A\x05Proto\x12\x18\x0A\x10schema_bundle_id\x18\x01 \x01(\x09\x12\x14\x0A\x0Cmessage_name\x18\x02 \x01(\x09\x1A3\x0A\x04Enum\x12\x18\x0A\x10schema_bundle_id\x18\x01 \x01(\x09\x12\x11\x0A\x09enum_name\x18\x02 \x01(\x09\x1A7\x0A\x05Array\x12.\x0A\x0Celement_type\x18\x01 \x01(\x0B2\x18.google.bigtable.v2.Type\x1A_\x0A\x03Map\x12*\x0A\x08key_type\x18\x01 \x01(\x0B2\x18.google.bigtable.v2.Type\x12,\x0A\x0Avalue_type\x18\x02 \x01(\x0B2\x18.google.bigtable.v2.Type\x1A\xB7\x03\x0A\x09Aggregate\x12,\x0A\x0Ainput_type\x18\x01 \x01(\x0B2\x18.google.bigtable.v2.Type\x121\x0A\x0Astate_type\x18\x02 \x01(\x0B2\x18.google.bigtable.v2.TypeB\x03\xE0A\x03\x125\x0A\x03sum\x18\x04 \x01(\x0B2&.google.bigtable.v2.Type.Aggregate.SumH\x00\x12_\x0A\x12hllpp_unique_count\x18\x05 \x01(\x0B2A.google.bigtable.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCountH\x00\x125\x0A\x03max\x18\x06 \x01(\x0B2&.google.bigtable.v2.Type.Aggregate.MaxH\x00\x125\x0A\x03min\x18\x07 \x01(\x0B2&.google.bigtable.v2.Type.Aggregate.MinH\x00\x1A\x05\x0A\x03Sum\x1A\x05\x0A\x03Max\x1A\x05\x0A\x03Min\x1A \x0A\x1EHyperLogLogPlusPlusUniqueCountB\x0C\x0A\x0AaggregatorB\x06\x0A\x04kindB\xB4\x01\x0A\x16com.google.bigtable.v2B\x0ATypesProtoP\x01Z8cloud.google.com/go/bigtable/apiv2/bigtablepb;bigtablepb\xAA\x02\x18Google.Cloud.Bigtable.V2\xCA\x02\x18Google\\Cloud\\Bigtable\\V2\xEA\x02\x1BGoogle::Cloud::Bigtable::V2b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ArrayValue.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ArrayValue.php deleted file mode 100644 index 88a88072bdd3..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ArrayValue.php +++ /dev/null @@ -1,67 +0,0 @@ -google.bigtable.v2.ArrayValue - */ -class ArrayValue extends \Google\Protobuf\Internal\Message -{ - /** - * The ordered elements in the array. - * - * Generated from protobuf field repeated .google.bigtable.v2.Value values = 1; - */ - private $values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\Value[] $values - * The ordered elements in the array. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * The ordered elements in the array. - * - * Generated from protobuf field repeated .google.bigtable.v2.Value values = 1; - * @return RepeatedField<\Google\Cloud\Bigtable\V2\Value> - */ - public function getValues() - { - return $this->values; - } - - /** - * The ordered elements in the array. - * - * Generated from protobuf field repeated .google.bigtable.v2.Value values = 1; - * @param \Google\Cloud\Bigtable\V2\Value[] $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\Value::class); - $this->values = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Cell.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Cell.php deleted file mode 100644 index d3d11ad27e82..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Cell.php +++ /dev/null @@ -1,163 +0,0 @@ -google.bigtable.v2.Cell - */ -class Cell extends \Google\Protobuf\Internal\Message -{ - /** - * The cell's stored timestamp, which also uniquely identifies it within - * its column. - * Values are always expressed in microseconds, but individual tables may set - * a coarser granularity to further restrict the allowed values. For - * example, a table which specifies millisecond granularity will only allow - * values of `timestamp_micros` which are multiples of 1000. - * - * Generated from protobuf field int64 timestamp_micros = 1; - */ - protected $timestamp_micros = 0; - /** - * The value stored in the cell. - * May contain any byte string, including the empty string, up to 100MiB in - * length. - * - * Generated from protobuf field bytes value = 2; - */ - protected $value = ''; - /** - * Labels applied to the cell by a [RowFilter][google.bigtable.v2.RowFilter]. - * - * Generated from protobuf field repeated string labels = 3; - */ - private $labels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $timestamp_micros - * The cell's stored timestamp, which also uniquely identifies it within - * its column. - * Values are always expressed in microseconds, but individual tables may set - * a coarser granularity to further restrict the allowed values. For - * example, a table which specifies millisecond granularity will only allow - * values of `timestamp_micros` which are multiples of 1000. - * @type string $value - * The value stored in the cell. - * May contain any byte string, including the empty string, up to 100MiB in - * length. - * @type string[] $labels - * Labels applied to the cell by a [RowFilter][google.bigtable.v2.RowFilter]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * The cell's stored timestamp, which also uniquely identifies it within - * its column. - * Values are always expressed in microseconds, but individual tables may set - * a coarser granularity to further restrict the allowed values. For - * example, a table which specifies millisecond granularity will only allow - * values of `timestamp_micros` which are multiples of 1000. - * - * Generated from protobuf field int64 timestamp_micros = 1; - * @return int|string - */ - public function getTimestampMicros() - { - return $this->timestamp_micros; - } - - /** - * The cell's stored timestamp, which also uniquely identifies it within - * its column. - * Values are always expressed in microseconds, but individual tables may set - * a coarser granularity to further restrict the allowed values. For - * example, a table which specifies millisecond granularity will only allow - * values of `timestamp_micros` which are multiples of 1000. - * - * Generated from protobuf field int64 timestamp_micros = 1; - * @param int|string $var - * @return $this - */ - public function setTimestampMicros($var) - { - GPBUtil::checkInt64($var); - $this->timestamp_micros = $var; - - return $this; - } - - /** - * The value stored in the cell. - * May contain any byte string, including the empty string, up to 100MiB in - * length. - * - * Generated from protobuf field bytes value = 2; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The value stored in the cell. - * May contain any byte string, including the empty string, up to 100MiB in - * length. - * - * Generated from protobuf field bytes value = 2; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, False); - $this->value = $var; - - return $this; - } - - /** - * Labels applied to the cell by a [RowFilter][google.bigtable.v2.RowFilter]. - * - * Generated from protobuf field repeated string labels = 3; - * @return RepeatedField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Labels applied to the cell by a [RowFilter][google.bigtable.v2.RowFilter]. - * - * Generated from protobuf field repeated string labels = 3; - * @param string[] $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/CheckAndMutateRowRequest.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/CheckAndMutateRowRequest.php deleted file mode 100644 index 6a2e215f8b0b..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/CheckAndMutateRowRequest.php +++ /dev/null @@ -1,436 +0,0 @@ -google.bigtable.v2.CheckAndMutateRowRequest - */ -class CheckAndMutateRowRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The unique name of the table to which the conditional mutation - * should be applied. - * Values are of the form - * `projects//instances//tables/
`. - * - * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $table_name = ''; - /** - * Optional. The unique name of the AuthorizedView to which the conditional - * mutation should be applied. - * Values are of the form - * `projects//instances//tables/
/authorizedViews/`. - * - * Generated from protobuf field string authorized_view_name = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $authorized_view_name = ''; - /** - * This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * - * Generated from protobuf field string app_profile_id = 7; - */ - protected $app_profile_id = ''; - /** - * Required. The key of the row to which the conditional mutation should be - * applied. - * - * Generated from protobuf field bytes row_key = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $row_key = ''; - /** - * The filter to be applied to the contents of the specified row. Depending - * on whether or not any results are yielded, either `true_mutations` or - * `false_mutations` will be executed. If unset, checks that the row contains - * any values at all. - * - * Generated from protobuf field .google.bigtable.v2.RowFilter predicate_filter = 6; - */ - protected $predicate_filter = null; - /** - * Changes to be atomically applied to the specified row if `predicate_filter` - * yields at least one cell when applied to `row_key`. Entries are applied in - * order, meaning that earlier mutations can be masked by later ones. - * Must contain at least one entry if `false_mutations` is empty, and at most - * 100000. - * - * Generated from protobuf field repeated .google.bigtable.v2.Mutation true_mutations = 4; - */ - private $true_mutations; - /** - * Changes to be atomically applied to the specified row if `predicate_filter` - * does not yield any cells when applied to `row_key`. Entries are applied in - * order, meaning that earlier mutations can be masked by later ones. - * Must contain at least one entry if `true_mutations` is empty, and at most - * 100000. - * - * Generated from protobuf field repeated .google.bigtable.v2.Mutation false_mutations = 5; - */ - private $false_mutations; - - /** - * @param string $tableName Optional. The unique name of the table to which the conditional mutation - * should be applied. - * - * Values are of the form - * `projects//instances//tables/
`. Please see - * {@see BigtableClient::tableName()} for help formatting this field. - * @param string $rowKey Required. The key of the row to which the conditional mutation should be - * applied. - * @param \Google\Cloud\Bigtable\V2\RowFilter $predicateFilter The filter to be applied to the contents of the specified row. Depending - * on whether or not any results are yielded, either `true_mutations` or - * `false_mutations` will be executed. If unset, checks that the row contains - * any values at all. - * @param \Google\Cloud\Bigtable\V2\Mutation[] $trueMutations Changes to be atomically applied to the specified row if `predicate_filter` - * yields at least one cell when applied to `row_key`. Entries are applied in - * order, meaning that earlier mutations can be masked by later ones. - * Must contain at least one entry if `false_mutations` is empty, and at most - * 100000. - * @param \Google\Cloud\Bigtable\V2\Mutation[] $falseMutations Changes to be atomically applied to the specified row if `predicate_filter` - * does not yield any cells when applied to `row_key`. Entries are applied in - * order, meaning that earlier mutations can be masked by later ones. - * Must contain at least one entry if `true_mutations` is empty, and at most - * 100000. - * - * @return \Google\Cloud\Bigtable\V2\CheckAndMutateRowRequest - * - * @experimental - */ - public static function build(string $tableName, string $rowKey, \Google\Cloud\Bigtable\V2\RowFilter $predicateFilter, array $trueMutations, array $falseMutations): self - { - return (new self()) - ->setTableName($tableName) - ->setRowKey($rowKey) - ->setPredicateFilter($predicateFilter) - ->setTrueMutations($trueMutations) - ->setFalseMutations($falseMutations); - } - - /** - * @param string $tableName Optional. The unique name of the table to which the conditional mutation - * should be applied. - * - * Values are of the form - * `projects//instances//tables/
`. Please see - * {@see BigtableClient::tableName()} for help formatting this field. - * @param string $rowKey Required. The key of the row to which the conditional mutation should be - * applied. - * @param \Google\Cloud\Bigtable\V2\RowFilter $predicateFilter The filter to be applied to the contents of the specified row. Depending - * on whether or not any results are yielded, either `true_mutations` or - * `false_mutations` will be executed. If unset, checks that the row contains - * any values at all. - * @param \Google\Cloud\Bigtable\V2\Mutation[] $trueMutations Changes to be atomically applied to the specified row if `predicate_filter` - * yields at least one cell when applied to `row_key`. Entries are applied in - * order, meaning that earlier mutations can be masked by later ones. - * Must contain at least one entry if `false_mutations` is empty, and at most - * 100000. - * @param \Google\Cloud\Bigtable\V2\Mutation[] $falseMutations Changes to be atomically applied to the specified row if `predicate_filter` - * does not yield any cells when applied to `row_key`. Entries are applied in - * order, meaning that earlier mutations can be masked by later ones. - * Must contain at least one entry if `true_mutations` is empty, and at most - * 100000. - * @param string $appProfileId This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * - * @return \Google\Cloud\Bigtable\V2\CheckAndMutateRowRequest - * - * @experimental - */ - public static function buildFromTableNameRowKeyPredicateFilterTrueMutationsFalseMutationsAppProfileId(string $tableName, string $rowKey, \Google\Cloud\Bigtable\V2\RowFilter $predicateFilter, array $trueMutations, array $falseMutations, string $appProfileId): self - { - return (new self()) - ->setTableName($tableName) - ->setRowKey($rowKey) - ->setPredicateFilter($predicateFilter) - ->setTrueMutations($trueMutations) - ->setFalseMutations($falseMutations) - ->setAppProfileId($appProfileId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $table_name - * Optional. The unique name of the table to which the conditional mutation - * should be applied. - * Values are of the form - * `projects//instances//tables/
`. - * @type string $authorized_view_name - * Optional. The unique name of the AuthorizedView to which the conditional - * mutation should be applied. - * Values are of the form - * `projects//instances//tables/
/authorizedViews/`. - * @type string $app_profile_id - * This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * @type string $row_key - * Required. The key of the row to which the conditional mutation should be - * applied. - * @type \Google\Cloud\Bigtable\V2\RowFilter $predicate_filter - * The filter to be applied to the contents of the specified row. Depending - * on whether or not any results are yielded, either `true_mutations` or - * `false_mutations` will be executed. If unset, checks that the row contains - * any values at all. - * @type \Google\Cloud\Bigtable\V2\Mutation[] $true_mutations - * Changes to be atomically applied to the specified row if `predicate_filter` - * yields at least one cell when applied to `row_key`. Entries are applied in - * order, meaning that earlier mutations can be masked by later ones. - * Must contain at least one entry if `false_mutations` is empty, and at most - * 100000. - * @type \Google\Cloud\Bigtable\V2\Mutation[] $false_mutations - * Changes to be atomically applied to the specified row if `predicate_filter` - * does not yield any cells when applied to `row_key`. Entries are applied in - * order, meaning that earlier mutations can be masked by later ones. - * Must contain at least one entry if `true_mutations` is empty, and at most - * 100000. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The unique name of the table to which the conditional mutation - * should be applied. - * Values are of the form - * `projects//instances//tables/
`. - * - * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getTableName() - { - return $this->table_name; - } - - /** - * Optional. The unique name of the table to which the conditional mutation - * should be applied. - * Values are of the form - * `projects//instances//tables/
`. - * - * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setTableName($var) - { - GPBUtil::checkString($var, True); - $this->table_name = $var; - - return $this; - } - - /** - * Optional. The unique name of the AuthorizedView to which the conditional - * mutation should be applied. - * Values are of the form - * `projects//instances//tables/
/authorizedViews/`. - * - * Generated from protobuf field string authorized_view_name = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getAuthorizedViewName() - { - return $this->authorized_view_name; - } - - /** - * Optional. The unique name of the AuthorizedView to which the conditional - * mutation should be applied. - * Values are of the form - * `projects//instances//tables/
/authorizedViews/`. - * - * Generated from protobuf field string authorized_view_name = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setAuthorizedViewName($var) - { - GPBUtil::checkString($var, True); - $this->authorized_view_name = $var; - - return $this; - } - - /** - * This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * - * Generated from protobuf field string app_profile_id = 7; - * @return string - */ - public function getAppProfileId() - { - return $this->app_profile_id; - } - - /** - * This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * - * Generated from protobuf field string app_profile_id = 7; - * @param string $var - * @return $this - */ - public function setAppProfileId($var) - { - GPBUtil::checkString($var, True); - $this->app_profile_id = $var; - - return $this; - } - - /** - * Required. The key of the row to which the conditional mutation should be - * applied. - * - * Generated from protobuf field bytes row_key = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getRowKey() - { - return $this->row_key; - } - - /** - * Required. The key of the row to which the conditional mutation should be - * applied. - * - * Generated from protobuf field bytes row_key = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setRowKey($var) - { - GPBUtil::checkString($var, False); - $this->row_key = $var; - - return $this; - } - - /** - * The filter to be applied to the contents of the specified row. Depending - * on whether or not any results are yielded, either `true_mutations` or - * `false_mutations` will be executed. If unset, checks that the row contains - * any values at all. - * - * Generated from protobuf field .google.bigtable.v2.RowFilter predicate_filter = 6; - * @return \Google\Cloud\Bigtable\V2\RowFilter|null - */ - public function getPredicateFilter() - { - return $this->predicate_filter; - } - - public function hasPredicateFilter() - { - return isset($this->predicate_filter); - } - - public function clearPredicateFilter() - { - unset($this->predicate_filter); - } - - /** - * The filter to be applied to the contents of the specified row. Depending - * on whether or not any results are yielded, either `true_mutations` or - * `false_mutations` will be executed. If unset, checks that the row contains - * any values at all. - * - * Generated from protobuf field .google.bigtable.v2.RowFilter predicate_filter = 6; - * @param \Google\Cloud\Bigtable\V2\RowFilter $var - * @return $this - */ - public function setPredicateFilter($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\RowFilter::class); - $this->predicate_filter = $var; - - return $this; - } - - /** - * Changes to be atomically applied to the specified row if `predicate_filter` - * yields at least one cell when applied to `row_key`. Entries are applied in - * order, meaning that earlier mutations can be masked by later ones. - * Must contain at least one entry if `false_mutations` is empty, and at most - * 100000. - * - * Generated from protobuf field repeated .google.bigtable.v2.Mutation true_mutations = 4; - * @return RepeatedField<\Google\Cloud\Bigtable\V2\Mutation> - */ - public function getTrueMutations() - { - return $this->true_mutations; - } - - /** - * Changes to be atomically applied to the specified row if `predicate_filter` - * yields at least one cell when applied to `row_key`. Entries are applied in - * order, meaning that earlier mutations can be masked by later ones. - * Must contain at least one entry if `false_mutations` is empty, and at most - * 100000. - * - * Generated from protobuf field repeated .google.bigtable.v2.Mutation true_mutations = 4; - * @param \Google\Cloud\Bigtable\V2\Mutation[] $var - * @return $this - */ - public function setTrueMutations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\Mutation::class); - $this->true_mutations = $arr; - - return $this; - } - - /** - * Changes to be atomically applied to the specified row if `predicate_filter` - * does not yield any cells when applied to `row_key`. Entries are applied in - * order, meaning that earlier mutations can be masked by later ones. - * Must contain at least one entry if `true_mutations` is empty, and at most - * 100000. - * - * Generated from protobuf field repeated .google.bigtable.v2.Mutation false_mutations = 5; - * @return RepeatedField<\Google\Cloud\Bigtable\V2\Mutation> - */ - public function getFalseMutations() - { - return $this->false_mutations; - } - - /** - * Changes to be atomically applied to the specified row if `predicate_filter` - * does not yield any cells when applied to `row_key`. Entries are applied in - * order, meaning that earlier mutations can be masked by later ones. - * Must contain at least one entry if `true_mutations` is empty, and at most - * 100000. - * - * Generated from protobuf field repeated .google.bigtable.v2.Mutation false_mutations = 5; - * @param \Google\Cloud\Bigtable\V2\Mutation[] $var - * @return $this - */ - public function setFalseMutations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\Mutation::class); - $this->false_mutations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/CheckAndMutateRowResponse.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/CheckAndMutateRowResponse.php deleted file mode 100644 index 4efd11f80ffa..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/CheckAndMutateRowResponse.php +++ /dev/null @@ -1,71 +0,0 @@ -google.bigtable.v2.CheckAndMutateRowResponse - */ -class CheckAndMutateRowResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Whether or not the request's `predicate_filter` yielded any results for - * the specified row. - * - * Generated from protobuf field bool predicate_matched = 1; - */ - protected $predicate_matched = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $predicate_matched - * Whether or not the request's `predicate_filter` yielded any results for - * the specified row. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); - parent::__construct($data); - } - - /** - * Whether or not the request's `predicate_filter` yielded any results for - * the specified row. - * - * Generated from protobuf field bool predicate_matched = 1; - * @return bool - */ - public function getPredicateMatched() - { - return $this->predicate_matched; - } - - /** - * Whether or not the request's `predicate_filter` yielded any results for - * the specified row. - * - * Generated from protobuf field bool predicate_matched = 1; - * @param bool $var - * @return $this - */ - public function setPredicateMatched($var) - { - GPBUtil::checkBool($var); - $this->predicate_matched = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Column.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Column.php deleted file mode 100644 index 8bcede78d40e..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Column.php +++ /dev/null @@ -1,118 +0,0 @@ -google.bigtable.v2.Column - */ -class Column extends \Google\Protobuf\Internal\Message -{ - /** - * The unique key which identifies this column within its family. This is the - * same key that's used to identify the column in, for example, a RowFilter - * which sets its `column_qualifier_regex_filter` field. - * May contain any byte string, including the empty string, up to 16kiB in - * length. - * - * Generated from protobuf field bytes qualifier = 1; - */ - protected $qualifier = ''; - /** - * Must not be empty. Sorted in order of decreasing "timestamp_micros". - * - * Generated from protobuf field repeated .google.bigtable.v2.Cell cells = 2; - */ - private $cells; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $qualifier - * The unique key which identifies this column within its family. This is the - * same key that's used to identify the column in, for example, a RowFilter - * which sets its `column_qualifier_regex_filter` field. - * May contain any byte string, including the empty string, up to 16kiB in - * length. - * @type \Google\Cloud\Bigtable\V2\Cell[] $cells - * Must not be empty. Sorted in order of decreasing "timestamp_micros". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * The unique key which identifies this column within its family. This is the - * same key that's used to identify the column in, for example, a RowFilter - * which sets its `column_qualifier_regex_filter` field. - * May contain any byte string, including the empty string, up to 16kiB in - * length. - * - * Generated from protobuf field bytes qualifier = 1; - * @return string - */ - public function getQualifier() - { - return $this->qualifier; - } - - /** - * The unique key which identifies this column within its family. This is the - * same key that's used to identify the column in, for example, a RowFilter - * which sets its `column_qualifier_regex_filter` field. - * May contain any byte string, including the empty string, up to 16kiB in - * length. - * - * Generated from protobuf field bytes qualifier = 1; - * @param string $var - * @return $this - */ - public function setQualifier($var) - { - GPBUtil::checkString($var, False); - $this->qualifier = $var; - - return $this; - } - - /** - * Must not be empty. Sorted in order of decreasing "timestamp_micros". - * - * Generated from protobuf field repeated .google.bigtable.v2.Cell cells = 2; - * @return RepeatedField<\Google\Cloud\Bigtable\V2\Cell> - */ - public function getCells() - { - return $this->cells; - } - - /** - * Must not be empty. Sorted in order of decreasing "timestamp_micros". - * - * Generated from protobuf field repeated .google.bigtable.v2.Cell cells = 2; - * @param \Google\Cloud\Bigtable\V2\Cell[] $var - * @return $this - */ - public function setCells($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\Cell::class); - $this->cells = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ColumnMetadata.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ColumnMetadata.php deleted file mode 100644 index 4738addc9a74..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ColumnMetadata.php +++ /dev/null @@ -1,111 +0,0 @@ -google.bigtable.v2.ColumnMetadata - */ -class ColumnMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the column. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The type of the column. - * - * Generated from protobuf field .google.bigtable.v2.Type type = 2; - */ - protected $type = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the column. - * @type \Google\Cloud\Bigtable\V2\Type $type - * The type of the column. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * The name of the column. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the column. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The type of the column. - * - * Generated from protobuf field .google.bigtable.v2.Type type = 2; - * @return \Google\Cloud\Bigtable\V2\Type|null - */ - public function getType() - { - return $this->type; - } - - public function hasType() - { - return isset($this->type); - } - - public function clearType() - { - unset($this->type); - } - - /** - * The type of the column. - * - * Generated from protobuf field .google.bigtable.v2.Type type = 2; - * @param \Google\Cloud\Bigtable\V2\Type $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type::class); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ColumnRange.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ColumnRange.php deleted file mode 100644 index 5a7c43ac4185..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ColumnRange.php +++ /dev/null @@ -1,220 +0,0 @@ -google.bigtable.v2.ColumnRange - */ -class ColumnRange extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the column family within which this range falls. - * - * Generated from protobuf field string family_name = 1; - */ - protected $family_name = ''; - protected $start_qualifier; - protected $end_qualifier; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $family_name - * The name of the column family within which this range falls. - * @type string $start_qualifier_closed - * Used when giving an inclusive lower bound for the range. - * @type string $start_qualifier_open - * Used when giving an exclusive lower bound for the range. - * @type string $end_qualifier_closed - * Used when giving an inclusive upper bound for the range. - * @type string $end_qualifier_open - * Used when giving an exclusive upper bound for the range. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * The name of the column family within which this range falls. - * - * Generated from protobuf field string family_name = 1; - * @return string - */ - public function getFamilyName() - { - return $this->family_name; - } - - /** - * The name of the column family within which this range falls. - * - * Generated from protobuf field string family_name = 1; - * @param string $var - * @return $this - */ - public function setFamilyName($var) - { - GPBUtil::checkString($var, True); - $this->family_name = $var; - - return $this; - } - - /** - * Used when giving an inclusive lower bound for the range. - * - * Generated from protobuf field bytes start_qualifier_closed = 2; - * @return string - */ - public function getStartQualifierClosed() - { - return $this->readOneof(2); - } - - public function hasStartQualifierClosed() - { - return $this->hasOneof(2); - } - - /** - * Used when giving an inclusive lower bound for the range. - * - * Generated from protobuf field bytes start_qualifier_closed = 2; - * @param string $var - * @return $this - */ - public function setStartQualifierClosed($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Used when giving an exclusive lower bound for the range. - * - * Generated from protobuf field bytes start_qualifier_open = 3; - * @return string - */ - public function getStartQualifierOpen() - { - return $this->readOneof(3); - } - - public function hasStartQualifierOpen() - { - return $this->hasOneof(3); - } - - /** - * Used when giving an exclusive lower bound for the range. - * - * Generated from protobuf field bytes start_qualifier_open = 3; - * @param string $var - * @return $this - */ - public function setStartQualifierOpen($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Used when giving an inclusive upper bound for the range. - * - * Generated from protobuf field bytes end_qualifier_closed = 4; - * @return string - */ - public function getEndQualifierClosed() - { - return $this->readOneof(4); - } - - public function hasEndQualifierClosed() - { - return $this->hasOneof(4); - } - - /** - * Used when giving an inclusive upper bound for the range. - * - * Generated from protobuf field bytes end_qualifier_closed = 4; - * @param string $var - * @return $this - */ - public function setEndQualifierClosed($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Used when giving an exclusive upper bound for the range. - * - * Generated from protobuf field bytes end_qualifier_open = 5; - * @return string - */ - public function getEndQualifierOpen() - { - return $this->readOneof(5); - } - - public function hasEndQualifierOpen() - { - return $this->hasOneof(5); - } - - /** - * Used when giving an exclusive upper bound for the range. - * - * Generated from protobuf field bytes end_qualifier_open = 5; - * @param string $var - * @return $this - */ - public function setEndQualifierOpen($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * @return string - */ - public function getStartQualifier() - { - return $this->whichOneof("start_qualifier"); - } - - /** - * @return string - */ - public function getEndQualifier() - { - return $this->whichOneof("end_qualifier"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ExecuteQueryRequest.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ExecuteQueryRequest.php deleted file mode 100644 index 5885a4f8debd..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ExecuteQueryRequest.php +++ /dev/null @@ -1,483 +0,0 @@ -google.bigtable.v2.ExecuteQueryRequest - */ -class ExecuteQueryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the instance against which the query should be - * executed. - * Values are of the form `projects//instances/` - * - * Generated from protobuf field string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $instance_name = ''; - /** - * Optional. This value specifies routing for replication. If not specified, - * the `default` application profile will be used. - * - * Generated from protobuf field string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $app_profile_id = ''; - /** - * Required. The query string. - * Exactly one of `query` and `prepared_query` is required. Setting both - * or neither is an `INVALID_ARGUMENT`. - * - * Generated from protobuf field string query = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated - */ - protected $query = ''; - /** - * A prepared query that was returned from `PrepareQueryResponse`. - * Exactly one of `query` and `prepared_query` is required. Setting both - * or neither is an `INVALID_ARGUMENT`. - * Setting this field also places restrictions on several other fields: - * - `data_format` must be empty. - * - `validate_only` must be false. - * - `params` must match the `param_types` set in the `PrepareQueryRequest`. - * - * Generated from protobuf field bytes prepared_query = 9; - */ - protected $prepared_query = ''; - /** - * Optional. If this request is resuming a previously interrupted query - * execution, `resume_token` should be copied from the last - * PartialResultSet yielded before the interruption. Doing this - * enables the query execution to resume where the last one left - * off. - * The rest of the request parameters must exactly match the - * request that yielded this token. Otherwise the request will fail. - * - * Generated from protobuf field bytes resume_token = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $resume_token = ''; - /** - * Required. params contains string type keys and Bigtable type values that - * bind to placeholders in the query string. In query string, a parameter - * placeholder consists of the - * `\@` character followed by the parameter name (for example, `\@firstName`) in - * the query string. - * For example, if - * `params["firstName"] = bytes_value: "foo" type {bytes_type {}}` - * then `\@firstName` will be replaced with googlesql bytes value "foo" in the - * query string during query evaluation. - * If `Value.kind` is not set, the value is treated as a NULL value of the - * given type. For example, if - * `params["firstName"] = type {string_type {}}` - * then `\@firstName` will be replaced with googlesql null string. - * If `query` is set, any empty `Value.type` in the map will be rejected with - * `INVALID_ARGUMENT`. - * If `prepared_query` is set, any empty `Value.type` in the map will be - * inferred from the `param_types` in the `PrepareQueryRequest`. Any non-empty - * `Value.type` must match the corresponding `param_types` entry, or be - * rejected with `INVALID_ARGUMENT`. - * - * Generated from protobuf field map params = 7 [(.google.api.field_behavior) = REQUIRED]; - */ - private $params; - protected $data_format; - - /** - * @param string $instanceName Required. The unique name of the instance against which the query should be - * executed. - * Values are of the form `projects//instances/` - * Please see {@see BigtableClient::instanceName()} for help formatting this field. - * @param string $query Required. The query string. - * - * Exactly one of `query` and `prepared_query` is required. Setting both - * or neither is an `INVALID_ARGUMENT`. - * - * @return \Google\Cloud\Bigtable\V2\ExecuteQueryRequest - * - * @experimental - */ - public static function build(string $instanceName, string $query): self - { - return (new self()) - ->setInstanceName($instanceName) - ->setQuery($query); - } - - /** - * @param string $instanceName Required. The unique name of the instance against which the query should be - * executed. - * Values are of the form `projects//instances/` - * Please see {@see BigtableClient::instanceName()} for help formatting this field. - * @param string $query Required. The query string. - * - * Exactly one of `query` and `prepared_query` is required. Setting both - * or neither is an `INVALID_ARGUMENT`. - * @param string $appProfileId Optional. This value specifies routing for replication. If not specified, - * the `default` application profile will be used. - * - * @return \Google\Cloud\Bigtable\V2\ExecuteQueryRequest - * - * @experimental - */ - public static function buildFromInstanceNameQueryAppProfileId(string $instanceName, string $query, string $appProfileId): self - { - return (new self()) - ->setInstanceName($instanceName) - ->setQuery($query) - ->setAppProfileId($appProfileId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $instance_name - * Required. The unique name of the instance against which the query should be - * executed. - * Values are of the form `projects//instances/` - * @type string $app_profile_id - * Optional. This value specifies routing for replication. If not specified, - * the `default` application profile will be used. - * @type string $query - * Required. The query string. - * Exactly one of `query` and `prepared_query` is required. Setting both - * or neither is an `INVALID_ARGUMENT`. - * @type string $prepared_query - * A prepared query that was returned from `PrepareQueryResponse`. - * Exactly one of `query` and `prepared_query` is required. Setting both - * or neither is an `INVALID_ARGUMENT`. - * Setting this field also places restrictions on several other fields: - * - `data_format` must be empty. - * - `validate_only` must be false. - * - `params` must match the `param_types` set in the `PrepareQueryRequest`. - * @type \Google\Cloud\Bigtable\V2\ProtoFormat $proto_format - * Protocol buffer format as described by ProtoSchema and ProtoRows - * messages. - * @type string $resume_token - * Optional. If this request is resuming a previously interrupted query - * execution, `resume_token` should be copied from the last - * PartialResultSet yielded before the interruption. Doing this - * enables the query execution to resume where the last one left - * off. - * The rest of the request parameters must exactly match the - * request that yielded this token. Otherwise the request will fail. - * @type array|\Google\Protobuf\Internal\MapField $params - * Required. params contains string type keys and Bigtable type values that - * bind to placeholders in the query string. In query string, a parameter - * placeholder consists of the - * `\@` character followed by the parameter name (for example, `\@firstName`) in - * the query string. - * For example, if - * `params["firstName"] = bytes_value: "foo" type {bytes_type {}}` - * then `\@firstName` will be replaced with googlesql bytes value "foo" in the - * query string during query evaluation. - * If `Value.kind` is not set, the value is treated as a NULL value of the - * given type. For example, if - * `params["firstName"] = type {string_type {}}` - * then `\@firstName` will be replaced with googlesql null string. - * If `query` is set, any empty `Value.type` in the map will be rejected with - * `INVALID_ARGUMENT`. - * If `prepared_query` is set, any empty `Value.type` in the map will be - * inferred from the `param_types` in the `PrepareQueryRequest`. Any non-empty - * `Value.type` must match the corresponding `param_types` entry, or be - * rejected with `INVALID_ARGUMENT`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the instance against which the query should be - * executed. - * Values are of the form `projects//instances/` - * - * Generated from protobuf field string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getInstanceName() - { - return $this->instance_name; - } - - /** - * Required. The unique name of the instance against which the query should be - * executed. - * Values are of the form `projects//instances/` - * - * Generated from protobuf field string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setInstanceName($var) - { - GPBUtil::checkString($var, True); - $this->instance_name = $var; - - return $this; - } - - /** - * Optional. This value specifies routing for replication. If not specified, - * the `default` application profile will be used. - * - * Generated from protobuf field string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getAppProfileId() - { - return $this->app_profile_id; - } - - /** - * Optional. This value specifies routing for replication. If not specified, - * the `default` application profile will be used. - * - * Generated from protobuf field string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setAppProfileId($var) - { - GPBUtil::checkString($var, True); - $this->app_profile_id = $var; - - return $this; - } - - /** - * Required. The query string. - * Exactly one of `query` and `prepared_query` is required. Setting both - * or neither is an `INVALID_ARGUMENT`. - * - * Generated from protobuf field string query = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @return string - * @deprecated - */ - public function getQuery() - { - if ($this->query !== '') { - @trigger_error('query is deprecated.', E_USER_DEPRECATED); - } - return $this->query; - } - - /** - * Required. The query string. - * Exactly one of `query` and `prepared_query` is required. Setting both - * or neither is an `INVALID_ARGUMENT`. - * - * Generated from protobuf field string query = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - * @deprecated - */ - public function setQuery($var) - { - @trigger_error('query is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->query = $var; - - return $this; - } - - /** - * A prepared query that was returned from `PrepareQueryResponse`. - * Exactly one of `query` and `prepared_query` is required. Setting both - * or neither is an `INVALID_ARGUMENT`. - * Setting this field also places restrictions on several other fields: - * - `data_format` must be empty. - * - `validate_only` must be false. - * - `params` must match the `param_types` set in the `PrepareQueryRequest`. - * - * Generated from protobuf field bytes prepared_query = 9; - * @return string - */ - public function getPreparedQuery() - { - return $this->prepared_query; - } - - /** - * A prepared query that was returned from `PrepareQueryResponse`. - * Exactly one of `query` and `prepared_query` is required. Setting both - * or neither is an `INVALID_ARGUMENT`. - * Setting this field also places restrictions on several other fields: - * - `data_format` must be empty. - * - `validate_only` must be false. - * - `params` must match the `param_types` set in the `PrepareQueryRequest`. - * - * Generated from protobuf field bytes prepared_query = 9; - * @param string $var - * @return $this - */ - public function setPreparedQuery($var) - { - GPBUtil::checkString($var, False); - $this->prepared_query = $var; - - return $this; - } - - /** - * Protocol buffer format as described by ProtoSchema and ProtoRows - * messages. - * - * Generated from protobuf field .google.bigtable.v2.ProtoFormat proto_format = 4 [deprecated = true]; - * @return \Google\Cloud\Bigtable\V2\ProtoFormat|null - * @deprecated - */ - public function getProtoFormat() - { - if ($this->hasOneof(4)) { - @trigger_error('proto_format is deprecated.', E_USER_DEPRECATED); - } - return $this->readOneof(4); - } - - public function hasProtoFormat() - { - if ($this->hasOneof(4)) { - @trigger_error('proto_format is deprecated.', E_USER_DEPRECATED); - } - return $this->hasOneof(4); - } - - /** - * Protocol buffer format as described by ProtoSchema and ProtoRows - * messages. - * - * Generated from protobuf field .google.bigtable.v2.ProtoFormat proto_format = 4 [deprecated = true]; - * @param \Google\Cloud\Bigtable\V2\ProtoFormat $var - * @return $this - * @deprecated - */ - public function setProtoFormat($var) - { - @trigger_error('proto_format is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\ProtoFormat::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Optional. If this request is resuming a previously interrupted query - * execution, `resume_token` should be copied from the last - * PartialResultSet yielded before the interruption. Doing this - * enables the query execution to resume where the last one left - * off. - * The rest of the request parameters must exactly match the - * request that yielded this token. Otherwise the request will fail. - * - * Generated from protobuf field bytes resume_token = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getResumeToken() - { - return $this->resume_token; - } - - /** - * Optional. If this request is resuming a previously interrupted query - * execution, `resume_token` should be copied from the last - * PartialResultSet yielded before the interruption. Doing this - * enables the query execution to resume where the last one left - * off. - * The rest of the request parameters must exactly match the - * request that yielded this token. Otherwise the request will fail. - * - * Generated from protobuf field bytes resume_token = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setResumeToken($var) - { - GPBUtil::checkString($var, False); - $this->resume_token = $var; - - return $this; - } - - /** - * Required. params contains string type keys and Bigtable type values that - * bind to placeholders in the query string. In query string, a parameter - * placeholder consists of the - * `\@` character followed by the parameter name (for example, `\@firstName`) in - * the query string. - * For example, if - * `params["firstName"] = bytes_value: "foo" type {bytes_type {}}` - * then `\@firstName` will be replaced with googlesql bytes value "foo" in the - * query string during query evaluation. - * If `Value.kind` is not set, the value is treated as a NULL value of the - * given type. For example, if - * `params["firstName"] = type {string_type {}}` - * then `\@firstName` will be replaced with googlesql null string. - * If `query` is set, any empty `Value.type` in the map will be rejected with - * `INVALID_ARGUMENT`. - * If `prepared_query` is set, any empty `Value.type` in the map will be - * inferred from the `param_types` in the `PrepareQueryRequest`. Any non-empty - * `Value.type` must match the corresponding `param_types` entry, or be - * rejected with `INVALID_ARGUMENT`. - * - * Generated from protobuf field map params = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getParams() - { - return $this->params; - } - - /** - * Required. params contains string type keys and Bigtable type values that - * bind to placeholders in the query string. In query string, a parameter - * placeholder consists of the - * `\@` character followed by the parameter name (for example, `\@firstName`) in - * the query string. - * For example, if - * `params["firstName"] = bytes_value: "foo" type {bytes_type {}}` - * then `\@firstName` will be replaced with googlesql bytes value "foo" in the - * query string during query evaluation. - * If `Value.kind` is not set, the value is treated as a NULL value of the - * given type. For example, if - * `params["firstName"] = type {string_type {}}` - * then `\@firstName` will be replaced with googlesql null string. - * If `query` is set, any empty `Value.type` in the map will be rejected with - * `INVALID_ARGUMENT`. - * If `prepared_query` is set, any empty `Value.type` in the map will be - * inferred from the `param_types` in the `PrepareQueryRequest`. Any non-empty - * `Value.type` must match the corresponding `param_types` entry, or be - * rejected with `INVALID_ARGUMENT`. - * - * Generated from protobuf field map params = 7 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setParams($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\Value::class); - $this->params = $arr; - - return $this; - } - - /** - * @return string - */ - public function getDataFormat() - { - return $this->whichOneof("data_format"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ExecuteQueryResponse.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ExecuteQueryResponse.php deleted file mode 100644 index ceb7b1d23857..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ExecuteQueryResponse.php +++ /dev/null @@ -1,117 +0,0 @@ -google.bigtable.v2.ExecuteQueryResponse - */ -class ExecuteQueryResponse extends \Google\Protobuf\Internal\Message -{ - protected $response; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\ResultSetMetadata $metadata - * Structure of rows in this response stream. The first (and only the first) - * response streamed from the server will be of this type. - * @type \Google\Cloud\Bigtable\V2\PartialResultSet $results - * A partial result set with row data potentially including additional - * instructions on how recent past and future partial responses should be - * interpreted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); - parent::__construct($data); - } - - /** - * Structure of rows in this response stream. The first (and only the first) - * response streamed from the server will be of this type. - * - * Generated from protobuf field .google.bigtable.v2.ResultSetMetadata metadata = 1; - * @return \Google\Cloud\Bigtable\V2\ResultSetMetadata|null - */ - public function getMetadata() - { - return $this->readOneof(1); - } - - public function hasMetadata() - { - return $this->hasOneof(1); - } - - /** - * Structure of rows in this response stream. The first (and only the first) - * response streamed from the server will be of this type. - * - * Generated from protobuf field .google.bigtable.v2.ResultSetMetadata metadata = 1; - * @param \Google\Cloud\Bigtable\V2\ResultSetMetadata $var - * @return $this - */ - public function setMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\ResultSetMetadata::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A partial result set with row data potentially including additional - * instructions on how recent past and future partial responses should be - * interpreted. - * - * Generated from protobuf field .google.bigtable.v2.PartialResultSet results = 2; - * @return \Google\Cloud\Bigtable\V2\PartialResultSet|null - */ - public function getResults() - { - return $this->readOneof(2); - } - - public function hasResults() - { - return $this->hasOneof(2); - } - - /** - * A partial result set with row data potentially including additional - * instructions on how recent past and future partial responses should be - * interpreted. - * - * Generated from protobuf field .google.bigtable.v2.PartialResultSet results = 2; - * @param \Google\Cloud\Bigtable\V2\PartialResultSet $var - * @return $this - */ - public function setResults($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\PartialResultSet::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getResponse() - { - return $this->whichOneof("response"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Family.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Family.php deleted file mode 100644 index eac2d588ee54..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Family.php +++ /dev/null @@ -1,122 +0,0 @@ -google.bigtable.v2.Family - */ -class Family extends \Google\Protobuf\Internal\Message -{ - /** - * The unique key which identifies this family within its row. This is the - * same key that's used to identify the family in, for example, a RowFilter - * which sets its "family_name_regex_filter" field. - * Must match `[-_.a-zA-Z0-9]+`, except that AggregatingRowProcessors may - * produce cells in a sentinel family with an empty name. - * Must be no greater than 64 characters in length. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Must not be empty. Sorted in order of increasing "qualifier". - * - * Generated from protobuf field repeated .google.bigtable.v2.Column columns = 2; - */ - private $columns; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The unique key which identifies this family within its row. This is the - * same key that's used to identify the family in, for example, a RowFilter - * which sets its "family_name_regex_filter" field. - * Must match `[-_.a-zA-Z0-9]+`, except that AggregatingRowProcessors may - * produce cells in a sentinel family with an empty name. - * Must be no greater than 64 characters in length. - * @type \Google\Cloud\Bigtable\V2\Column[] $columns - * Must not be empty. Sorted in order of increasing "qualifier". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * The unique key which identifies this family within its row. This is the - * same key that's used to identify the family in, for example, a RowFilter - * which sets its "family_name_regex_filter" field. - * Must match `[-_.a-zA-Z0-9]+`, except that AggregatingRowProcessors may - * produce cells in a sentinel family with an empty name. - * Must be no greater than 64 characters in length. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The unique key which identifies this family within its row. This is the - * same key that's used to identify the family in, for example, a RowFilter - * which sets its "family_name_regex_filter" field. - * Must match `[-_.a-zA-Z0-9]+`, except that AggregatingRowProcessors may - * produce cells in a sentinel family with an empty name. - * Must be no greater than 64 characters in length. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Must not be empty. Sorted in order of increasing "qualifier". - * - * Generated from protobuf field repeated .google.bigtable.v2.Column columns = 2; - * @return RepeatedField<\Google\Cloud\Bigtable\V2\Column> - */ - public function getColumns() - { - return $this->columns; - } - - /** - * Must not be empty. Sorted in order of increasing "qualifier". - * - * Generated from protobuf field repeated .google.bigtable.v2.Column columns = 2; - * @param \Google\Cloud\Bigtable\V2\Column[] $var - * @return $this - */ - public function setColumns($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\Column::class); - $this->columns = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/FeatureFlags.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/FeatureFlags.php deleted file mode 100644 index b70fa1d23e87..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/FeatureFlags.php +++ /dev/null @@ -1,412 +0,0 @@ -google.bigtable.v2.FeatureFlags - */ -class FeatureFlags extends \Google\Protobuf\Internal\Message -{ - /** - * Notify the server that the client supports reverse scans. The server will - * reject ReadRowsRequests with the reverse bit set when this is absent. - * - * Generated from protobuf field bool reverse_scans = 1; - */ - protected $reverse_scans = false; - /** - * Notify the server that the client enables batch write flow control by - * requesting RateLimitInfo from MutateRowsResponse. Due to technical reasons, - * this disables partial retries. - * - * Generated from protobuf field bool mutate_rows_rate_limit = 3; - */ - protected $mutate_rows_rate_limit = false; - /** - * Notify the server that the client enables batch write flow control by - * requesting RateLimitInfo from MutateRowsResponse. With partial retries - * enabled. - * - * Generated from protobuf field bool mutate_rows_rate_limit2 = 5; - */ - protected $mutate_rows_rate_limit2 = false; - /** - * Notify the server that the client supports the last_scanned_row field - * in ReadRowsResponse for long-running scans. - * - * Generated from protobuf field bool last_scanned_row_responses = 4; - */ - protected $last_scanned_row_responses = false; - /** - * Notify the server that the client supports using encoded routing cookie - * strings to retry requests with. - * - * Generated from protobuf field bool routing_cookie = 6; - */ - protected $routing_cookie = false; - /** - * Notify the server that the client supports using retry info back off - * durations to retry requests with. - * - * Generated from protobuf field bool retry_info = 7; - */ - protected $retry_info = false; - /** - * Notify the server that the client has client side metrics enabled. - * - * Generated from protobuf field bool client_side_metrics_enabled = 8; - */ - protected $client_side_metrics_enabled = false; - /** - * Notify the server that the client using Traffic Director endpoint. - * - * Generated from protobuf field bool traffic_director_enabled = 9; - */ - protected $traffic_director_enabled = false; - /** - * Notify the server that the client explicitly opted in for Direct Access. - * - * Generated from protobuf field bool direct_access_requested = 10; - */ - protected $direct_access_requested = false; - /** - * If the client can support using BigtablePeerInfo. - * - * Generated from protobuf field bool peer_info = 11; - */ - protected $peer_info = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $reverse_scans - * Notify the server that the client supports reverse scans. The server will - * reject ReadRowsRequests with the reverse bit set when this is absent. - * @type bool $mutate_rows_rate_limit - * Notify the server that the client enables batch write flow control by - * requesting RateLimitInfo from MutateRowsResponse. Due to technical reasons, - * this disables partial retries. - * @type bool $mutate_rows_rate_limit2 - * Notify the server that the client enables batch write flow control by - * requesting RateLimitInfo from MutateRowsResponse. With partial retries - * enabled. - * @type bool $last_scanned_row_responses - * Notify the server that the client supports the last_scanned_row field - * in ReadRowsResponse for long-running scans. - * @type bool $routing_cookie - * Notify the server that the client supports using encoded routing cookie - * strings to retry requests with. - * @type bool $retry_info - * Notify the server that the client supports using retry info back off - * durations to retry requests with. - * @type bool $client_side_metrics_enabled - * Notify the server that the client has client side metrics enabled. - * @type bool $traffic_director_enabled - * Notify the server that the client using Traffic Director endpoint. - * @type bool $direct_access_requested - * Notify the server that the client explicitly opted in for Direct Access. - * @type bool $peer_info - * If the client can support using BigtablePeerInfo. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\FeatureFlags::initOnce(); - parent::__construct($data); - } - - /** - * Notify the server that the client supports reverse scans. The server will - * reject ReadRowsRequests with the reverse bit set when this is absent. - * - * Generated from protobuf field bool reverse_scans = 1; - * @return bool - */ - public function getReverseScans() - { - return $this->reverse_scans; - } - - /** - * Notify the server that the client supports reverse scans. The server will - * reject ReadRowsRequests with the reverse bit set when this is absent. - * - * Generated from protobuf field bool reverse_scans = 1; - * @param bool $var - * @return $this - */ - public function setReverseScans($var) - { - GPBUtil::checkBool($var); - $this->reverse_scans = $var; - - return $this; - } - - /** - * Notify the server that the client enables batch write flow control by - * requesting RateLimitInfo from MutateRowsResponse. Due to technical reasons, - * this disables partial retries. - * - * Generated from protobuf field bool mutate_rows_rate_limit = 3; - * @return bool - */ - public function getMutateRowsRateLimit() - { - return $this->mutate_rows_rate_limit; - } - - /** - * Notify the server that the client enables batch write flow control by - * requesting RateLimitInfo from MutateRowsResponse. Due to technical reasons, - * this disables partial retries. - * - * Generated from protobuf field bool mutate_rows_rate_limit = 3; - * @param bool $var - * @return $this - */ - public function setMutateRowsRateLimit($var) - { - GPBUtil::checkBool($var); - $this->mutate_rows_rate_limit = $var; - - return $this; - } - - /** - * Notify the server that the client enables batch write flow control by - * requesting RateLimitInfo from MutateRowsResponse. With partial retries - * enabled. - * - * Generated from protobuf field bool mutate_rows_rate_limit2 = 5; - * @return bool - */ - public function getMutateRowsRateLimit2() - { - return $this->mutate_rows_rate_limit2; - } - - /** - * Notify the server that the client enables batch write flow control by - * requesting RateLimitInfo from MutateRowsResponse. With partial retries - * enabled. - * - * Generated from protobuf field bool mutate_rows_rate_limit2 = 5; - * @param bool $var - * @return $this - */ - public function setMutateRowsRateLimit2($var) - { - GPBUtil::checkBool($var); - $this->mutate_rows_rate_limit2 = $var; - - return $this; - } - - /** - * Notify the server that the client supports the last_scanned_row field - * in ReadRowsResponse for long-running scans. - * - * Generated from protobuf field bool last_scanned_row_responses = 4; - * @return bool - */ - public function getLastScannedRowResponses() - { - return $this->last_scanned_row_responses; - } - - /** - * Notify the server that the client supports the last_scanned_row field - * in ReadRowsResponse for long-running scans. - * - * Generated from protobuf field bool last_scanned_row_responses = 4; - * @param bool $var - * @return $this - */ - public function setLastScannedRowResponses($var) - { - GPBUtil::checkBool($var); - $this->last_scanned_row_responses = $var; - - return $this; - } - - /** - * Notify the server that the client supports using encoded routing cookie - * strings to retry requests with. - * - * Generated from protobuf field bool routing_cookie = 6; - * @return bool - */ - public function getRoutingCookie() - { - return $this->routing_cookie; - } - - /** - * Notify the server that the client supports using encoded routing cookie - * strings to retry requests with. - * - * Generated from protobuf field bool routing_cookie = 6; - * @param bool $var - * @return $this - */ - public function setRoutingCookie($var) - { - GPBUtil::checkBool($var); - $this->routing_cookie = $var; - - return $this; - } - - /** - * Notify the server that the client supports using retry info back off - * durations to retry requests with. - * - * Generated from protobuf field bool retry_info = 7; - * @return bool - */ - public function getRetryInfo() - { - return $this->retry_info; - } - - /** - * Notify the server that the client supports using retry info back off - * durations to retry requests with. - * - * Generated from protobuf field bool retry_info = 7; - * @param bool $var - * @return $this - */ - public function setRetryInfo($var) - { - GPBUtil::checkBool($var); - $this->retry_info = $var; - - return $this; - } - - /** - * Notify the server that the client has client side metrics enabled. - * - * Generated from protobuf field bool client_side_metrics_enabled = 8; - * @return bool - */ - public function getClientSideMetricsEnabled() - { - return $this->client_side_metrics_enabled; - } - - /** - * Notify the server that the client has client side metrics enabled. - * - * Generated from protobuf field bool client_side_metrics_enabled = 8; - * @param bool $var - * @return $this - */ - public function setClientSideMetricsEnabled($var) - { - GPBUtil::checkBool($var); - $this->client_side_metrics_enabled = $var; - - return $this; - } - - /** - * Notify the server that the client using Traffic Director endpoint. - * - * Generated from protobuf field bool traffic_director_enabled = 9; - * @return bool - */ - public function getTrafficDirectorEnabled() - { - return $this->traffic_director_enabled; - } - - /** - * Notify the server that the client using Traffic Director endpoint. - * - * Generated from protobuf field bool traffic_director_enabled = 9; - * @param bool $var - * @return $this - */ - public function setTrafficDirectorEnabled($var) - { - GPBUtil::checkBool($var); - $this->traffic_director_enabled = $var; - - return $this; - } - - /** - * Notify the server that the client explicitly opted in for Direct Access. - * - * Generated from protobuf field bool direct_access_requested = 10; - * @return bool - */ - public function getDirectAccessRequested() - { - return $this->direct_access_requested; - } - - /** - * Notify the server that the client explicitly opted in for Direct Access. - * - * Generated from protobuf field bool direct_access_requested = 10; - * @param bool $var - * @return $this - */ - public function setDirectAccessRequested($var) - { - GPBUtil::checkBool($var); - $this->direct_access_requested = $var; - - return $this; - } - - /** - * If the client can support using BigtablePeerInfo. - * - * Generated from protobuf field bool peer_info = 11; - * @return bool - */ - public function getPeerInfo() - { - return $this->peer_info; - } - - /** - * If the client can support using BigtablePeerInfo. - * - * Generated from protobuf field bool peer_info = 11; - * @param bool $var - * @return $this - */ - public function setPeerInfo($var) - { - GPBUtil::checkBool($var); - $this->peer_info = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/FullReadStatsView.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/FullReadStatsView.php deleted file mode 100644 index f1e5d5e430ca..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/FullReadStatsView.php +++ /dev/null @@ -1,137 +0,0 @@ -google.bigtable.v2.FullReadStatsView - */ -class FullReadStatsView extends \Google\Protobuf\Internal\Message -{ - /** - * Iteration stats describe how efficient the read is, e.g. comparing - * rows seen vs. rows returned or cells seen vs cells returned can provide an - * indication of read efficiency (the higher the ratio of seen to retuned the - * better). - * - * Generated from protobuf field .google.bigtable.v2.ReadIterationStats read_iteration_stats = 1; - */ - protected $read_iteration_stats = null; - /** - * Request latency stats describe the time taken to complete a request, from - * the server side. - * - * Generated from protobuf field .google.bigtable.v2.RequestLatencyStats request_latency_stats = 2; - */ - protected $request_latency_stats = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\ReadIterationStats $read_iteration_stats - * Iteration stats describe how efficient the read is, e.g. comparing - * rows seen vs. rows returned or cells seen vs cells returned can provide an - * indication of read efficiency (the higher the ratio of seen to retuned the - * better). - * @type \Google\Cloud\Bigtable\V2\RequestLatencyStats $request_latency_stats - * Request latency stats describe the time taken to complete a request, from - * the server side. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\RequestStats::initOnce(); - parent::__construct($data); - } - - /** - * Iteration stats describe how efficient the read is, e.g. comparing - * rows seen vs. rows returned or cells seen vs cells returned can provide an - * indication of read efficiency (the higher the ratio of seen to retuned the - * better). - * - * Generated from protobuf field .google.bigtable.v2.ReadIterationStats read_iteration_stats = 1; - * @return \Google\Cloud\Bigtable\V2\ReadIterationStats|null - */ - public function getReadIterationStats() - { - return $this->read_iteration_stats; - } - - public function hasReadIterationStats() - { - return isset($this->read_iteration_stats); - } - - public function clearReadIterationStats() - { - unset($this->read_iteration_stats); - } - - /** - * Iteration stats describe how efficient the read is, e.g. comparing - * rows seen vs. rows returned or cells seen vs cells returned can provide an - * indication of read efficiency (the higher the ratio of seen to retuned the - * better). - * - * Generated from protobuf field .google.bigtable.v2.ReadIterationStats read_iteration_stats = 1; - * @param \Google\Cloud\Bigtable\V2\ReadIterationStats $var - * @return $this - */ - public function setReadIterationStats($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\ReadIterationStats::class); - $this->read_iteration_stats = $var; - - return $this; - } - - /** - * Request latency stats describe the time taken to complete a request, from - * the server side. - * - * Generated from protobuf field .google.bigtable.v2.RequestLatencyStats request_latency_stats = 2; - * @return \Google\Cloud\Bigtable\V2\RequestLatencyStats|null - */ - public function getRequestLatencyStats() - { - return $this->request_latency_stats; - } - - public function hasRequestLatencyStats() - { - return isset($this->request_latency_stats); - } - - public function clearRequestLatencyStats() - { - unset($this->request_latency_stats); - } - - /** - * Request latency stats describe the time taken to complete a request, from - * the server side. - * - * Generated from protobuf field .google.bigtable.v2.RequestLatencyStats request_latency_stats = 2; - * @param \Google\Cloud\Bigtable\V2\RequestLatencyStats $var - * @return $this - */ - public function setRequestLatencyStats($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\RequestLatencyStats::class); - $this->request_latency_stats = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/GenerateInitialChangeStreamPartitionsRequest.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/GenerateInitialChangeStreamPartitionsRequest.php deleted file mode 100644 index 674d75fbcac1..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/GenerateInitialChangeStreamPartitionsRequest.php +++ /dev/null @@ -1,160 +0,0 @@ -google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest - */ -class GenerateInitialChangeStreamPartitionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the table from which to get change stream - * partitions. Values are of the form - * `projects//instances//tables/
`. - * Change streaming must be enabled on the table. - * - * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $table_name = ''; - /** - * This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * Single cluster routing must be configured on the profile. - * - * Generated from protobuf field string app_profile_id = 2; - */ - protected $app_profile_id = ''; - - /** - * @param string $tableName Required. The unique name of the table from which to get change stream - * partitions. Values are of the form - * `projects//instances//tables/
`. - * Change streaming must be enabled on the table. Please see - * {@see BigtableClient::tableName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\V2\GenerateInitialChangeStreamPartitionsRequest - * - * @experimental - */ - public static function build(string $tableName): self - { - return (new self()) - ->setTableName($tableName); - } - - /** - * @param string $tableName Required. The unique name of the table from which to get change stream - * partitions. Values are of the form - * `projects//instances//tables/
`. - * Change streaming must be enabled on the table. Please see - * {@see BigtableClient::tableName()} for help formatting this field. - * @param string $appProfileId This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * Single cluster routing must be configured on the profile. - * - * @return \Google\Cloud\Bigtable\V2\GenerateInitialChangeStreamPartitionsRequest - * - * @experimental - */ - public static function buildFromTableNameAppProfileId(string $tableName, string $appProfileId): self - { - return (new self()) - ->setTableName($tableName) - ->setAppProfileId($appProfileId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $table_name - * Required. The unique name of the table from which to get change stream - * partitions. Values are of the form - * `projects//instances//tables/
`. - * Change streaming must be enabled on the table. - * @type string $app_profile_id - * This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * Single cluster routing must be configured on the profile. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the table from which to get change stream - * partitions. Values are of the form - * `projects//instances//tables/
`. - * Change streaming must be enabled on the table. - * - * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getTableName() - { - return $this->table_name; - } - - /** - * Required. The unique name of the table from which to get change stream - * partitions. Values are of the form - * `projects//instances//tables/
`. - * Change streaming must be enabled on the table. - * - * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setTableName($var) - { - GPBUtil::checkString($var, True); - $this->table_name = $var; - - return $this; - } - - /** - * This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * Single cluster routing must be configured on the profile. - * - * Generated from protobuf field string app_profile_id = 2; - * @return string - */ - public function getAppProfileId() - { - return $this->app_profile_id; - } - - /** - * This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * Single cluster routing must be configured on the profile. - * - * Generated from protobuf field string app_profile_id = 2; - * @param string $var - * @return $this - */ - public function setAppProfileId($var) - { - GPBUtil::checkString($var, True); - $this->app_profile_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/GenerateInitialChangeStreamPartitionsResponse.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/GenerateInitialChangeStreamPartitionsResponse.php deleted file mode 100644 index 9fe28a539fbd..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/GenerateInitialChangeStreamPartitionsResponse.php +++ /dev/null @@ -1,78 +0,0 @@ -google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse - */ -class GenerateInitialChangeStreamPartitionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A partition of the change stream. - * - * Generated from protobuf field .google.bigtable.v2.StreamPartition partition = 1; - */ - protected $partition = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\StreamPartition $partition - * A partition of the change stream. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); - parent::__construct($data); - } - - /** - * A partition of the change stream. - * - * Generated from protobuf field .google.bigtable.v2.StreamPartition partition = 1; - * @return \Google\Cloud\Bigtable\V2\StreamPartition|null - */ - public function getPartition() - { - return $this->partition; - } - - public function hasPartition() - { - return isset($this->partition); - } - - public function clearPartition() - { - unset($this->partition); - } - - /** - * A partition of the change stream. - * - * Generated from protobuf field .google.bigtable.v2.StreamPartition partition = 1; - * @param \Google\Cloud\Bigtable\V2\StreamPartition $var - * @return $this - */ - public function setPartition($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\StreamPartition::class); - $this->partition = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Idempotency.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Idempotency.php deleted file mode 100644 index 82c4c421096a..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Idempotency.php +++ /dev/null @@ -1,133 +0,0 @@ -google.bigtable.v2.Idempotency - */ -class Idempotency extends \Google\Protobuf\Internal\Message -{ - /** - * Unique token used to identify replays of this mutation. - * Must be at least 8 bytes long. - * - * Generated from protobuf field bytes token = 1; - */ - protected $token = ''; - /** - * Client-assigned timestamp when the mutation's first attempt was sent. - * Used to reject mutations that arrive after idempotency protection may - * have expired. May cause spurious rejections if clock skew is too high. - * Leave unset or zero to always accept the mutation, at the risk of - * double counting if the protection for previous attempts has expired. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - */ - protected $start_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $token - * Unique token used to identify replays of this mutation. - * Must be at least 8 bytes long. - * @type \Google\Protobuf\Timestamp $start_time - * Client-assigned timestamp when the mutation's first attempt was sent. - * Used to reject mutations that arrive after idempotency protection may - * have expired. May cause spurious rejections if clock skew is too high. - * Leave unset or zero to always accept the mutation, at the risk of - * double counting if the protection for previous attempts has expired. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * Unique token used to identify replays of this mutation. - * Must be at least 8 bytes long. - * - * Generated from protobuf field bytes token = 1; - * @return string - */ - public function getToken() - { - return $this->token; - } - - /** - * Unique token used to identify replays of this mutation. - * Must be at least 8 bytes long. - * - * Generated from protobuf field bytes token = 1; - * @param string $var - * @return $this - */ - public function setToken($var) - { - GPBUtil::checkString($var, False); - $this->token = $var; - - return $this; - } - - /** - * Client-assigned timestamp when the mutation's first attempt was sent. - * Used to reject mutations that arrive after idempotency protection may - * have expired. May cause spurious rejections if clock skew is too high. - * Leave unset or zero to always accept the mutation, at the risk of - * double counting if the protection for previous attempts has expired. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - * @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); - } - - /** - * Client-assigned timestamp when the mutation's first attempt was sent. - * Used to reject mutations that arrive after idempotency protection may - * have expired. May cause spurious rejections if clock skew is too high. - * Leave unset or zero to always accept the mutation, at the risk of - * double counting if the protection for previous attempts has expired. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowRequest.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowRequest.php deleted file mode 100644 index 34179938a13f..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowRequest.php +++ /dev/null @@ -1,338 +0,0 @@ -google.bigtable.v2.MutateRowRequest - */ -class MutateRowRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The unique name of the table to which the mutation should be - * applied. - * Values are of the form - * `projects//instances//tables/
`. - * - * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $table_name = ''; - /** - * Optional. The unique name of the AuthorizedView to which the mutation - * should be applied. - * Values are of the form - * `projects//instances//tables/
/authorizedViews/`. - * - * Generated from protobuf field string authorized_view_name = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $authorized_view_name = ''; - /** - * This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * - * Generated from protobuf field string app_profile_id = 4; - */ - protected $app_profile_id = ''; - /** - * Required. The key of the row to which the mutation should be applied. - * - * Generated from protobuf field bytes row_key = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $row_key = ''; - /** - * Required. Changes to be atomically applied to the specified row. Entries - * are applied in order, meaning that earlier mutations can be masked by later - * ones. Must contain at least one entry and at most 100000. - * - * Generated from protobuf field repeated .google.bigtable.v2.Mutation mutations = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - private $mutations; - /** - * If set consistently across retries, prevents this mutation from being - * double applied to aggregate column families within a 15m window. - * - * Generated from protobuf field .google.bigtable.v2.Idempotency idempotency = 8; - */ - protected $idempotency = null; - - /** - * @param string $tableName Optional. The unique name of the table to which the mutation should be - * applied. - * - * Values are of the form - * `projects//instances//tables/
`. Please see - * {@see BigtableClient::tableName()} for help formatting this field. - * @param string $rowKey Required. The key of the row to which the mutation should be applied. - * @param \Google\Cloud\Bigtable\V2\Mutation[] $mutations Required. Changes to be atomically applied to the specified row. Entries - * are applied in order, meaning that earlier mutations can be masked by later - * ones. Must contain at least one entry and at most 100000. - * - * @return \Google\Cloud\Bigtable\V2\MutateRowRequest - * - * @experimental - */ - public static function build(string $tableName, string $rowKey, array $mutations): self - { - return (new self()) - ->setTableName($tableName) - ->setRowKey($rowKey) - ->setMutations($mutations); - } - - /** - * @param string $tableName Optional. The unique name of the table to which the mutation should be - * applied. - * - * Values are of the form - * `projects//instances//tables/
`. Please see - * {@see BigtableClient::tableName()} for help formatting this field. - * @param string $rowKey Required. The key of the row to which the mutation should be applied. - * @param \Google\Cloud\Bigtable\V2\Mutation[] $mutations Required. Changes to be atomically applied to the specified row. Entries - * are applied in order, meaning that earlier mutations can be masked by later - * ones. Must contain at least one entry and at most 100000. - * @param string $appProfileId This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * - * @return \Google\Cloud\Bigtable\V2\MutateRowRequest - * - * @experimental - */ - public static function buildFromTableNameRowKeyMutationsAppProfileId(string $tableName, string $rowKey, array $mutations, string $appProfileId): self - { - return (new self()) - ->setTableName($tableName) - ->setRowKey($rowKey) - ->setMutations($mutations) - ->setAppProfileId($appProfileId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $table_name - * Optional. The unique name of the table to which the mutation should be - * applied. - * Values are of the form - * `projects//instances//tables/
`. - * @type string $authorized_view_name - * Optional. The unique name of the AuthorizedView to which the mutation - * should be applied. - * Values are of the form - * `projects//instances//tables/
/authorizedViews/`. - * @type string $app_profile_id - * This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * @type string $row_key - * Required. The key of the row to which the mutation should be applied. - * @type \Google\Cloud\Bigtable\V2\Mutation[] $mutations - * Required. Changes to be atomically applied to the specified row. Entries - * are applied in order, meaning that earlier mutations can be masked by later - * ones. Must contain at least one entry and at most 100000. - * @type \Google\Cloud\Bigtable\V2\Idempotency $idempotency - * If set consistently across retries, prevents this mutation from being - * double applied to aggregate column families within a 15m window. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The unique name of the table to which the mutation should be - * applied. - * Values are of the form - * `projects//instances//tables/
`. - * - * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getTableName() - { - return $this->table_name; - } - - /** - * Optional. The unique name of the table to which the mutation should be - * applied. - * Values are of the form - * `projects//instances//tables/
`. - * - * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setTableName($var) - { - GPBUtil::checkString($var, True); - $this->table_name = $var; - - return $this; - } - - /** - * Optional. The unique name of the AuthorizedView to which the mutation - * should be applied. - * Values are of the form - * `projects//instances//tables/
/authorizedViews/`. - * - * Generated from protobuf field string authorized_view_name = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getAuthorizedViewName() - { - return $this->authorized_view_name; - } - - /** - * Optional. The unique name of the AuthorizedView to which the mutation - * should be applied. - * Values are of the form - * `projects//instances//tables/
/authorizedViews/`. - * - * Generated from protobuf field string authorized_view_name = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setAuthorizedViewName($var) - { - GPBUtil::checkString($var, True); - $this->authorized_view_name = $var; - - return $this; - } - - /** - * This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * - * Generated from protobuf field string app_profile_id = 4; - * @return string - */ - public function getAppProfileId() - { - return $this->app_profile_id; - } - - /** - * This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * - * Generated from protobuf field string app_profile_id = 4; - * @param string $var - * @return $this - */ - public function setAppProfileId($var) - { - GPBUtil::checkString($var, True); - $this->app_profile_id = $var; - - return $this; - } - - /** - * Required. The key of the row to which the mutation should be applied. - * - * Generated from protobuf field bytes row_key = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getRowKey() - { - return $this->row_key; - } - - /** - * Required. The key of the row to which the mutation should be applied. - * - * Generated from protobuf field bytes row_key = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setRowKey($var) - { - GPBUtil::checkString($var, False); - $this->row_key = $var; - - return $this; - } - - /** - * Required. Changes to be atomically applied to the specified row. Entries - * are applied in order, meaning that earlier mutations can be masked by later - * ones. Must contain at least one entry and at most 100000. - * - * Generated from protobuf field repeated .google.bigtable.v2.Mutation mutations = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\Bigtable\V2\Mutation> - */ - public function getMutations() - { - return $this->mutations; - } - - /** - * Required. Changes to be atomically applied to the specified row. Entries - * are applied in order, meaning that earlier mutations can be masked by later - * ones. Must contain at least one entry and at most 100000. - * - * Generated from protobuf field repeated .google.bigtable.v2.Mutation mutations = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Bigtable\V2\Mutation[] $var - * @return $this - */ - public function setMutations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\Mutation::class); - $this->mutations = $arr; - - return $this; - } - - /** - * If set consistently across retries, prevents this mutation from being - * double applied to aggregate column families within a 15m window. - * - * Generated from protobuf field .google.bigtable.v2.Idempotency idempotency = 8; - * @return \Google\Cloud\Bigtable\V2\Idempotency|null - */ - public function getIdempotency() - { - return $this->idempotency; - } - - public function hasIdempotency() - { - return isset($this->idempotency); - } - - public function clearIdempotency() - { - unset($this->idempotency); - } - - /** - * If set consistently across retries, prevents this mutation from being - * double applied to aggregate column families within a 15m window. - * - * Generated from protobuf field .google.bigtable.v2.Idempotency idempotency = 8; - * @param \Google\Cloud\Bigtable\V2\Idempotency $var - * @return $this - */ - public function setIdempotency($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Idempotency::class); - $this->idempotency = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowResponse.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowResponse.php deleted file mode 100644 index 3430a3917d03..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.bigtable.v2.MutateRowResponse - */ -class MutateRowResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowsRequest.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowsRequest.php deleted file mode 100644 index c01b0bb6feae..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowsRequest.php +++ /dev/null @@ -1,264 +0,0 @@ -google.bigtable.v2.MutateRowsRequest - */ -class MutateRowsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The unique name of the table to which the mutations should be - * applied. - * Values are of the form - * `projects//instances//tables/
`. - * - * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $table_name = ''; - /** - * Optional. The unique name of the AuthorizedView to which the mutations - * should be applied. - * Values are of the form - * `projects//instances//tables/
/authorizedViews/`. - * - * Generated from protobuf field string authorized_view_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $authorized_view_name = ''; - /** - * This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * - * Generated from protobuf field string app_profile_id = 3; - */ - protected $app_profile_id = ''; - /** - * Required. The row keys and corresponding mutations to be applied in bulk. - * Each entry is applied as an atomic mutation, but the entries may be - * applied in arbitrary order (even between entries for the same row). - * At least one entry must be specified, and in total the entries can - * contain at most 100000 mutations. - * - * Generated from protobuf field repeated .google.bigtable.v2.MutateRowsRequest.Entry entries = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $entries; - - /** - * @param string $tableName Optional. The unique name of the table to which the mutations should be - * applied. - * - * Values are of the form - * `projects//instances//tables/
`. Please see - * {@see BigtableClient::tableName()} for help formatting this field. - * @param \Google\Cloud\Bigtable\V2\MutateRowsRequest\Entry[] $entries Required. The row keys and corresponding mutations to be applied in bulk. - * Each entry is applied as an atomic mutation, but the entries may be - * applied in arbitrary order (even between entries for the same row). - * At least one entry must be specified, and in total the entries can - * contain at most 100000 mutations. - * - * @return \Google\Cloud\Bigtable\V2\MutateRowsRequest - * - * @experimental - */ - public static function build(string $tableName, array $entries): self - { - return (new self()) - ->setTableName($tableName) - ->setEntries($entries); - } - - /** - * @param string $tableName Optional. The unique name of the table to which the mutations should be - * applied. - * - * Values are of the form - * `projects//instances//tables/
`. Please see - * {@see BigtableClient::tableName()} for help formatting this field. - * @param \Google\Cloud\Bigtable\V2\MutateRowsRequest\Entry[] $entries Required. The row keys and corresponding mutations to be applied in bulk. - * Each entry is applied as an atomic mutation, but the entries may be - * applied in arbitrary order (even between entries for the same row). - * At least one entry must be specified, and in total the entries can - * contain at most 100000 mutations. - * @param string $appProfileId This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * - * @return \Google\Cloud\Bigtable\V2\MutateRowsRequest - * - * @experimental - */ - public static function buildFromTableNameEntriesAppProfileId(string $tableName, array $entries, string $appProfileId): self - { - return (new self()) - ->setTableName($tableName) - ->setEntries($entries) - ->setAppProfileId($appProfileId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $table_name - * Optional. The unique name of the table to which the mutations should be - * applied. - * Values are of the form - * `projects//instances//tables/
`. - * @type string $authorized_view_name - * Optional. The unique name of the AuthorizedView to which the mutations - * should be applied. - * Values are of the form - * `projects//instances//tables/
/authorizedViews/`. - * @type string $app_profile_id - * This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * @type \Google\Cloud\Bigtable\V2\MutateRowsRequest\Entry[] $entries - * Required. The row keys and corresponding mutations to be applied in bulk. - * Each entry is applied as an atomic mutation, but the entries may be - * applied in arbitrary order (even between entries for the same row). - * At least one entry must be specified, and in total the entries can - * contain at most 100000 mutations. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The unique name of the table to which the mutations should be - * applied. - * Values are of the form - * `projects//instances//tables/
`. - * - * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getTableName() - { - return $this->table_name; - } - - /** - * Optional. The unique name of the table to which the mutations should be - * applied. - * Values are of the form - * `projects//instances//tables/
`. - * - * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setTableName($var) - { - GPBUtil::checkString($var, True); - $this->table_name = $var; - - return $this; - } - - /** - * Optional. The unique name of the AuthorizedView to which the mutations - * should be applied. - * Values are of the form - * `projects//instances//tables/
/authorizedViews/`. - * - * Generated from protobuf field string authorized_view_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getAuthorizedViewName() - { - return $this->authorized_view_name; - } - - /** - * Optional. The unique name of the AuthorizedView to which the mutations - * should be applied. - * Values are of the form - * `projects//instances//tables/
/authorizedViews/`. - * - * Generated from protobuf field string authorized_view_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setAuthorizedViewName($var) - { - GPBUtil::checkString($var, True); - $this->authorized_view_name = $var; - - return $this; - } - - /** - * This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * - * Generated from protobuf field string app_profile_id = 3; - * @return string - */ - public function getAppProfileId() - { - return $this->app_profile_id; - } - - /** - * This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * - * Generated from protobuf field string app_profile_id = 3; - * @param string $var - * @return $this - */ - public function setAppProfileId($var) - { - GPBUtil::checkString($var, True); - $this->app_profile_id = $var; - - return $this; - } - - /** - * Required. The row keys and corresponding mutations to be applied in bulk. - * Each entry is applied as an atomic mutation, but the entries may be - * applied in arbitrary order (even between entries for the same row). - * At least one entry must be specified, and in total the entries can - * contain at most 100000 mutations. - * - * Generated from protobuf field repeated .google.bigtable.v2.MutateRowsRequest.Entry entries = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\Bigtable\V2\MutateRowsRequest\Entry> - */ - public function getEntries() - { - return $this->entries; - } - - /** - * Required. The row keys and corresponding mutations to be applied in bulk. - * Each entry is applied as an atomic mutation, but the entries may be - * applied in arbitrary order (even between entries for the same row). - * At least one entry must be specified, and in total the entries can - * contain at most 100000 mutations. - * - * Generated from protobuf field repeated .google.bigtable.v2.MutateRowsRequest.Entry entries = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Bigtable\V2\MutateRowsRequest\Entry[] $var - * @return $this - */ - public function setEntries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\MutateRowsRequest\Entry::class); - $this->entries = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowsRequest/Entry.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowsRequest/Entry.php deleted file mode 100644 index 65d678fb953a..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowsRequest/Entry.php +++ /dev/null @@ -1,157 +0,0 @@ -google.bigtable.v2.MutateRowsRequest.Entry - */ -class Entry extends \Google\Protobuf\Internal\Message -{ - /** - * The key of the row to which the `mutations` should be applied. - * - * Generated from protobuf field bytes row_key = 1; - */ - protected $row_key = ''; - /** - * Required. Changes to be atomically applied to the specified row. - * Mutations are applied in order, meaning that earlier mutations can be - * masked by later ones. You must specify at least one mutation. - * - * Generated from protobuf field repeated .google.bigtable.v2.Mutation mutations = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $mutations; - /** - * If set consistently across retries, prevents this mutation from being - * double applied to aggregate column families within a 15m window. - * - * Generated from protobuf field .google.bigtable.v2.Idempotency idempotency = 3; - */ - protected $idempotency = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $row_key - * The key of the row to which the `mutations` should be applied. - * @type \Google\Cloud\Bigtable\V2\Mutation[] $mutations - * Required. Changes to be atomically applied to the specified row. - * Mutations are applied in order, meaning that earlier mutations can be - * masked by later ones. You must specify at least one mutation. - * @type \Google\Cloud\Bigtable\V2\Idempotency $idempotency - * If set consistently across retries, prevents this mutation from being - * double applied to aggregate column families within a 15m window. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); - parent::__construct($data); - } - - /** - * The key of the row to which the `mutations` should be applied. - * - * Generated from protobuf field bytes row_key = 1; - * @return string - */ - public function getRowKey() - { - return $this->row_key; - } - - /** - * The key of the row to which the `mutations` should be applied. - * - * Generated from protobuf field bytes row_key = 1; - * @param string $var - * @return $this - */ - public function setRowKey($var) - { - GPBUtil::checkString($var, False); - $this->row_key = $var; - - return $this; - } - - /** - * Required. Changes to be atomically applied to the specified row. - * Mutations are applied in order, meaning that earlier mutations can be - * masked by later ones. You must specify at least one mutation. - * - * Generated from protobuf field repeated .google.bigtable.v2.Mutation mutations = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\Bigtable\V2\Mutation> - */ - public function getMutations() - { - return $this->mutations; - } - - /** - * Required. Changes to be atomically applied to the specified row. - * Mutations are applied in order, meaning that earlier mutations can be - * masked by later ones. You must specify at least one mutation. - * - * Generated from protobuf field repeated .google.bigtable.v2.Mutation mutations = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Bigtable\V2\Mutation[] $var - * @return $this - */ - public function setMutations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\Mutation::class); - $this->mutations = $arr; - - return $this; - } - - /** - * If set consistently across retries, prevents this mutation from being - * double applied to aggregate column families within a 15m window. - * - * Generated from protobuf field .google.bigtable.v2.Idempotency idempotency = 3; - * @return \Google\Cloud\Bigtable\V2\Idempotency|null - */ - public function getIdempotency() - { - return $this->idempotency; - } - - public function hasIdempotency() - { - return isset($this->idempotency); - } - - public function clearIdempotency() - { - unset($this->idempotency); - } - - /** - * If set consistently across retries, prevents this mutation from being - * double applied to aggregate column families within a 15m window. - * - * Generated from protobuf field .google.bigtable.v2.Idempotency idempotency = 3; - * @param \Google\Cloud\Bigtable\V2\Idempotency $var - * @return $this - */ - public function setIdempotency($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Idempotency::class); - $this->idempotency = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowsResponse.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowsResponse.php deleted file mode 100644 index a56b8e8d2a6c..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowsResponse.php +++ /dev/null @@ -1,119 +0,0 @@ -google.bigtable.v2.MutateRowsResponse - */ -class MutateRowsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * One or more results for Entries from the batch request. - * - * Generated from protobuf field repeated .google.bigtable.v2.MutateRowsResponse.Entry entries = 1; - */ - private $entries; - /** - * Information about how client should limit the rate (QPS). Primirily used by - * supported official Cloud Bigtable clients. If unset, the rate limit info is - * not provided by the server. - * - * Generated from protobuf field optional .google.bigtable.v2.RateLimitInfo rate_limit_info = 3; - */ - protected $rate_limit_info = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\MutateRowsResponse\Entry[] $entries - * One or more results for Entries from the batch request. - * @type \Google\Cloud\Bigtable\V2\RateLimitInfo $rate_limit_info - * Information about how client should limit the rate (QPS). Primirily used by - * supported official Cloud Bigtable clients. If unset, the rate limit info is - * not provided by the server. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); - parent::__construct($data); - } - - /** - * One or more results for Entries from the batch request. - * - * Generated from protobuf field repeated .google.bigtable.v2.MutateRowsResponse.Entry entries = 1; - * @return RepeatedField<\Google\Cloud\Bigtable\V2\MutateRowsResponse\Entry> - */ - public function getEntries() - { - return $this->entries; - } - - /** - * One or more results for Entries from the batch request. - * - * Generated from protobuf field repeated .google.bigtable.v2.MutateRowsResponse.Entry entries = 1; - * @param \Google\Cloud\Bigtable\V2\MutateRowsResponse\Entry[] $var - * @return $this - */ - public function setEntries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\MutateRowsResponse\Entry::class); - $this->entries = $arr; - - return $this; - } - - /** - * Information about how client should limit the rate (QPS). Primirily used by - * supported official Cloud Bigtable clients. If unset, the rate limit info is - * not provided by the server. - * - * Generated from protobuf field optional .google.bigtable.v2.RateLimitInfo rate_limit_info = 3; - * @return \Google\Cloud\Bigtable\V2\RateLimitInfo|null - */ - public function getRateLimitInfo() - { - return $this->rate_limit_info; - } - - public function hasRateLimitInfo() - { - return isset($this->rate_limit_info); - } - - public function clearRateLimitInfo() - { - unset($this->rate_limit_info); - } - - /** - * Information about how client should limit the rate (QPS). Primirily used by - * supported official Cloud Bigtable clients. If unset, the rate limit info is - * not provided by the server. - * - * Generated from protobuf field optional .google.bigtable.v2.RateLimitInfo rate_limit_info = 3; - * @param \Google\Cloud\Bigtable\V2\RateLimitInfo $var - * @return $this - */ - public function setRateLimitInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\RateLimitInfo::class); - $this->rate_limit_info = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowsResponse/Entry.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowsResponse/Entry.php deleted file mode 100644 index 18528e12b129..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/MutateRowsResponse/Entry.php +++ /dev/null @@ -1,127 +0,0 @@ -google.bigtable.v2.MutateRowsResponse.Entry - */ -class Entry extends \Google\Protobuf\Internal\Message -{ - /** - * The index into the original request's `entries` list of the Entry - * for which a result is being reported. - * - * Generated from protobuf field int64 index = 1; - */ - protected $index = 0; - /** - * The result of the request Entry identified by `index`. - * Depending on how requests are batched during execution, it is possible - * for one Entry to fail due to an error with another Entry. In the event - * that this occurs, the same error will be reported for both entries. - * - * Generated from protobuf field .google.rpc.Status status = 2; - */ - protected $status = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $index - * The index into the original request's `entries` list of the Entry - * for which a result is being reported. - * @type \Google\Rpc\Status $status - * The result of the request Entry identified by `index`. - * Depending on how requests are batched during execution, it is possible - * for one Entry to fail due to an error with another Entry. In the event - * that this occurs, the same error will be reported for both entries. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); - parent::__construct($data); - } - - /** - * The index into the original request's `entries` list of the Entry - * for which a result is being reported. - * - * Generated from protobuf field int64 index = 1; - * @return int|string - */ - public function getIndex() - { - return $this->index; - } - - /** - * The index into the original request's `entries` list of the Entry - * for which a result is being reported. - * - * Generated from protobuf field int64 index = 1; - * @param int|string $var - * @return $this - */ - public function setIndex($var) - { - GPBUtil::checkInt64($var); - $this->index = $var; - - return $this; - } - - /** - * The result of the request Entry identified by `index`. - * Depending on how requests are batched during execution, it is possible - * for one Entry to fail due to an error with another Entry. In the event - * that this occurs, the same error will be reported for both entries. - * - * Generated from protobuf field .google.rpc.Status status = 2; - * @return \Google\Rpc\Status|null - */ - public function getStatus() - { - return $this->status; - } - - public function hasStatus() - { - return isset($this->status); - } - - public function clearStatus() - { - unset($this->status); - } - - /** - * The result of the request Entry identified by `index`. - * Depending on how requests are batched during execution, it is possible - * for one Entry to fail due to an error with another Entry. In the event - * that this occurs, the same error will be reported for both entries. - * - * Generated from protobuf field .google.rpc.Status status = 2; - * @param \Google\Rpc\Status $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Status::class); - $this->status = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation.php deleted file mode 100644 index 6953dfd5a830..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation.php +++ /dev/null @@ -1,240 +0,0 @@ -google.bigtable.v2.Mutation - */ -class Mutation extends \Google\Protobuf\Internal\Message -{ - protected $mutation; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\Mutation\SetCell $set_cell - * Set a cell's value. - * @type \Google\Cloud\Bigtable\V2\Mutation\AddToCell $add_to_cell - * Incrementally updates an `Aggregate` cell. - * @type \Google\Cloud\Bigtable\V2\Mutation\MergeToCell $merge_to_cell - * Merges accumulated state to an `Aggregate` cell. - * @type \Google\Cloud\Bigtable\V2\Mutation\DeleteFromColumn $delete_from_column - * Deletes cells from a column. - * @type \Google\Cloud\Bigtable\V2\Mutation\DeleteFromFamily $delete_from_family - * Deletes cells from a column family. - * @type \Google\Cloud\Bigtable\V2\Mutation\DeleteFromRow $delete_from_row - * Deletes cells from the entire row. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * Set a cell's value. - * - * Generated from protobuf field .google.bigtable.v2.Mutation.SetCell set_cell = 1; - * @return \Google\Cloud\Bigtable\V2\Mutation\SetCell|null - */ - public function getSetCell() - { - return $this->readOneof(1); - } - - public function hasSetCell() - { - return $this->hasOneof(1); - } - - /** - * Set a cell's value. - * - * Generated from protobuf field .google.bigtable.v2.Mutation.SetCell set_cell = 1; - * @param \Google\Cloud\Bigtable\V2\Mutation\SetCell $var - * @return $this - */ - public function setSetCell($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Mutation\SetCell::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Incrementally updates an `Aggregate` cell. - * - * Generated from protobuf field .google.bigtable.v2.Mutation.AddToCell add_to_cell = 5; - * @return \Google\Cloud\Bigtable\V2\Mutation\AddToCell|null - */ - public function getAddToCell() - { - return $this->readOneof(5); - } - - public function hasAddToCell() - { - return $this->hasOneof(5); - } - - /** - * Incrementally updates an `Aggregate` cell. - * - * Generated from protobuf field .google.bigtable.v2.Mutation.AddToCell add_to_cell = 5; - * @param \Google\Cloud\Bigtable\V2\Mutation\AddToCell $var - * @return $this - */ - public function setAddToCell($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Mutation\AddToCell::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Merges accumulated state to an `Aggregate` cell. - * - * Generated from protobuf field .google.bigtable.v2.Mutation.MergeToCell merge_to_cell = 6; - * @return \Google\Cloud\Bigtable\V2\Mutation\MergeToCell|null - */ - public function getMergeToCell() - { - return $this->readOneof(6); - } - - public function hasMergeToCell() - { - return $this->hasOneof(6); - } - - /** - * Merges accumulated state to an `Aggregate` cell. - * - * Generated from protobuf field .google.bigtable.v2.Mutation.MergeToCell merge_to_cell = 6; - * @param \Google\Cloud\Bigtable\V2\Mutation\MergeToCell $var - * @return $this - */ - public function setMergeToCell($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Mutation\MergeToCell::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Deletes cells from a column. - * - * Generated from protobuf field .google.bigtable.v2.Mutation.DeleteFromColumn delete_from_column = 2; - * @return \Google\Cloud\Bigtable\V2\Mutation\DeleteFromColumn|null - */ - public function getDeleteFromColumn() - { - return $this->readOneof(2); - } - - public function hasDeleteFromColumn() - { - return $this->hasOneof(2); - } - - /** - * Deletes cells from a column. - * - * Generated from protobuf field .google.bigtable.v2.Mutation.DeleteFromColumn delete_from_column = 2; - * @param \Google\Cloud\Bigtable\V2\Mutation\DeleteFromColumn $var - * @return $this - */ - public function setDeleteFromColumn($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Mutation\DeleteFromColumn::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Deletes cells from a column family. - * - * Generated from protobuf field .google.bigtable.v2.Mutation.DeleteFromFamily delete_from_family = 3; - * @return \Google\Cloud\Bigtable\V2\Mutation\DeleteFromFamily|null - */ - public function getDeleteFromFamily() - { - return $this->readOneof(3); - } - - public function hasDeleteFromFamily() - { - return $this->hasOneof(3); - } - - /** - * Deletes cells from a column family. - * - * Generated from protobuf field .google.bigtable.v2.Mutation.DeleteFromFamily delete_from_family = 3; - * @param \Google\Cloud\Bigtable\V2\Mutation\DeleteFromFamily $var - * @return $this - */ - public function setDeleteFromFamily($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Mutation\DeleteFromFamily::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Deletes cells from the entire row. - * - * Generated from protobuf field .google.bigtable.v2.Mutation.DeleteFromRow delete_from_row = 4; - * @return \Google\Cloud\Bigtable\V2\Mutation\DeleteFromRow|null - */ - public function getDeleteFromRow() - { - return $this->readOneof(4); - } - - public function hasDeleteFromRow() - { - return $this->hasOneof(4); - } - - /** - * Deletes cells from the entire row. - * - * Generated from protobuf field .google.bigtable.v2.Mutation.DeleteFromRow delete_from_row = 4; - * @param \Google\Cloud\Bigtable\V2\Mutation\DeleteFromRow $var - * @return $this - */ - public function setDeleteFromRow($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Mutation\DeleteFromRow::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getMutation() - { - return $this->whichOneof("mutation"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/AddToCell.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/AddToCell.php deleted file mode 100644 index aec294ebca32..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/AddToCell.php +++ /dev/null @@ -1,219 +0,0 @@ -google.bigtable.v2.Mutation.AddToCell - */ -class AddToCell extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the `Aggregate` family into which new data should be added. - * This must be a family with a `value_type` of `Aggregate`. - * Format: `[-_.a-zA-Z0-9]+` - * - * Generated from protobuf field string family_name = 1; - */ - protected $family_name = ''; - /** - * The qualifier of the column into which new data should be added. This - * must be a `raw_value`. - * - * Generated from protobuf field .google.bigtable.v2.Value column_qualifier = 2; - */ - protected $column_qualifier = null; - /** - * The timestamp of the cell to which new data should be added. This must - * be a `raw_timestamp_micros` that matches the table's `granularity`. - * - * Generated from protobuf field .google.bigtable.v2.Value timestamp = 3; - */ - protected $timestamp = null; - /** - * The input value to be accumulated into the specified cell. This must be - * compatible with the family's `value_type.input_type`. - * - * Generated from protobuf field .google.bigtable.v2.Value input = 4; - */ - protected $input = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $family_name - * The name of the `Aggregate` family into which new data should be added. - * This must be a family with a `value_type` of `Aggregate`. - * Format: `[-_.a-zA-Z0-9]+` - * @type \Google\Cloud\Bigtable\V2\Value $column_qualifier - * The qualifier of the column into which new data should be added. This - * must be a `raw_value`. - * @type \Google\Cloud\Bigtable\V2\Value $timestamp - * The timestamp of the cell to which new data should be added. This must - * be a `raw_timestamp_micros` that matches the table's `granularity`. - * @type \Google\Cloud\Bigtable\V2\Value $input - * The input value to be accumulated into the specified cell. This must be - * compatible with the family's `value_type.input_type`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * The name of the `Aggregate` family into which new data should be added. - * This must be a family with a `value_type` of `Aggregate`. - * Format: `[-_.a-zA-Z0-9]+` - * - * Generated from protobuf field string family_name = 1; - * @return string - */ - public function getFamilyName() - { - return $this->family_name; - } - - /** - * The name of the `Aggregate` family into which new data should be added. - * This must be a family with a `value_type` of `Aggregate`. - * Format: `[-_.a-zA-Z0-9]+` - * - * Generated from protobuf field string family_name = 1; - * @param string $var - * @return $this - */ - public function setFamilyName($var) - { - GPBUtil::checkString($var, True); - $this->family_name = $var; - - return $this; - } - - /** - * The qualifier of the column into which new data should be added. This - * must be a `raw_value`. - * - * Generated from protobuf field .google.bigtable.v2.Value column_qualifier = 2; - * @return \Google\Cloud\Bigtable\V2\Value|null - */ - public function getColumnQualifier() - { - return $this->column_qualifier; - } - - public function hasColumnQualifier() - { - return isset($this->column_qualifier); - } - - public function clearColumnQualifier() - { - unset($this->column_qualifier); - } - - /** - * The qualifier of the column into which new data should be added. This - * must be a `raw_value`. - * - * Generated from protobuf field .google.bigtable.v2.Value column_qualifier = 2; - * @param \Google\Cloud\Bigtable\V2\Value $var - * @return $this - */ - public function setColumnQualifier($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Value::class); - $this->column_qualifier = $var; - - return $this; - } - - /** - * The timestamp of the cell to which new data should be added. This must - * be a `raw_timestamp_micros` that matches the table's `granularity`. - * - * Generated from protobuf field .google.bigtable.v2.Value timestamp = 3; - * @return \Google\Cloud\Bigtable\V2\Value|null - */ - public function getTimestamp() - { - return $this->timestamp; - } - - public function hasTimestamp() - { - return isset($this->timestamp); - } - - public function clearTimestamp() - { - unset($this->timestamp); - } - - /** - * The timestamp of the cell to which new data should be added. This must - * be a `raw_timestamp_micros` that matches the table's `granularity`. - * - * Generated from protobuf field .google.bigtable.v2.Value timestamp = 3; - * @param \Google\Cloud\Bigtable\V2\Value $var - * @return $this - */ - public function setTimestamp($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Value::class); - $this->timestamp = $var; - - return $this; - } - - /** - * The input value to be accumulated into the specified cell. This must be - * compatible with the family's `value_type.input_type`. - * - * Generated from protobuf field .google.bigtable.v2.Value input = 4; - * @return \Google\Cloud\Bigtable\V2\Value|null - */ - public function getInput() - { - return $this->input; - } - - public function hasInput() - { - return isset($this->input); - } - - public function clearInput() - { - unset($this->input); - } - - /** - * The input value to be accumulated into the specified cell. This must be - * compatible with the family's `value_type.input_type`. - * - * Generated from protobuf field .google.bigtable.v2.Value input = 4; - * @param \Google\Cloud\Bigtable\V2\Value $var - * @return $this - */ - public function setInput($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Value::class); - $this->input = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/DeleteFromColumn.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/DeleteFromColumn.php deleted file mode 100644 index ad5dfcf7cd70..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/DeleteFromColumn.php +++ /dev/null @@ -1,154 +0,0 @@ -google.bigtable.v2.Mutation.DeleteFromColumn - */ -class DeleteFromColumn extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the family from which cells should be deleted. - * Must match `[-_.a-zA-Z0-9]+` - * - * Generated from protobuf field string family_name = 1; - */ - protected $family_name = ''; - /** - * The qualifier of the column from which cells should be deleted. - * Can be any byte string, including the empty string. - * - * Generated from protobuf field bytes column_qualifier = 2; - */ - protected $column_qualifier = ''; - /** - * The range of timestamps within which cells should be deleted. - * - * Generated from protobuf field .google.bigtable.v2.TimestampRange time_range = 3; - */ - protected $time_range = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $family_name - * The name of the family from which cells should be deleted. - * Must match `[-_.a-zA-Z0-9]+` - * @type string $column_qualifier - * The qualifier of the column from which cells should be deleted. - * Can be any byte string, including the empty string. - * @type \Google\Cloud\Bigtable\V2\TimestampRange $time_range - * The range of timestamps within which cells should be deleted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * The name of the family from which cells should be deleted. - * Must match `[-_.a-zA-Z0-9]+` - * - * Generated from protobuf field string family_name = 1; - * @return string - */ - public function getFamilyName() - { - return $this->family_name; - } - - /** - * The name of the family from which cells should be deleted. - * Must match `[-_.a-zA-Z0-9]+` - * - * Generated from protobuf field string family_name = 1; - * @param string $var - * @return $this - */ - public function setFamilyName($var) - { - GPBUtil::checkString($var, True); - $this->family_name = $var; - - return $this; - } - - /** - * The qualifier of the column from which cells should be deleted. - * Can be any byte string, including the empty string. - * - * Generated from protobuf field bytes column_qualifier = 2; - * @return string - */ - public function getColumnQualifier() - { - return $this->column_qualifier; - } - - /** - * The qualifier of the column from which cells should be deleted. - * Can be any byte string, including the empty string. - * - * Generated from protobuf field bytes column_qualifier = 2; - * @param string $var - * @return $this - */ - public function setColumnQualifier($var) - { - GPBUtil::checkString($var, False); - $this->column_qualifier = $var; - - return $this; - } - - /** - * The range of timestamps within which cells should be deleted. - * - * Generated from protobuf field .google.bigtable.v2.TimestampRange time_range = 3; - * @return \Google\Cloud\Bigtable\V2\TimestampRange|null - */ - public function getTimeRange() - { - return $this->time_range; - } - - public function hasTimeRange() - { - return isset($this->time_range); - } - - public function clearTimeRange() - { - unset($this->time_range); - } - - /** - * The range of timestamps within which cells should be deleted. - * - * Generated from protobuf field .google.bigtable.v2.TimestampRange time_range = 3; - * @param \Google\Cloud\Bigtable\V2\TimestampRange $var - * @return $this - */ - public function setTimeRange($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\TimestampRange::class); - $this->time_range = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/DeleteFromFamily.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/DeleteFromFamily.php deleted file mode 100644 index 4de40638b789..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/DeleteFromFamily.php +++ /dev/null @@ -1,71 +0,0 @@ -google.bigtable.v2.Mutation.DeleteFromFamily - */ -class DeleteFromFamily extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the family from which cells should be deleted. - * Must match `[-_.a-zA-Z0-9]+` - * - * Generated from protobuf field string family_name = 1; - */ - protected $family_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $family_name - * The name of the family from which cells should be deleted. - * Must match `[-_.a-zA-Z0-9]+` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * The name of the family from which cells should be deleted. - * Must match `[-_.a-zA-Z0-9]+` - * - * Generated from protobuf field string family_name = 1; - * @return string - */ - public function getFamilyName() - { - return $this->family_name; - } - - /** - * The name of the family from which cells should be deleted. - * Must match `[-_.a-zA-Z0-9]+` - * - * Generated from protobuf field string family_name = 1; - * @param string $var - * @return $this - */ - public function setFamilyName($var) - { - GPBUtil::checkString($var, True); - $this->family_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/DeleteFromRow.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/DeleteFromRow.php deleted file mode 100644 index aaaeaf2d1f7a..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/DeleteFromRow.php +++ /dev/null @@ -1,33 +0,0 @@ -google.bigtable.v2.Mutation.DeleteFromRow - */ -class DeleteFromRow extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/MergeToCell.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/MergeToCell.php deleted file mode 100644 index e29ed7c0484c..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/MergeToCell.php +++ /dev/null @@ -1,224 +0,0 @@ -google.bigtable.v2.Mutation.MergeToCell - */ -class MergeToCell extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the `Aggregate` family into which new data should be added. - * This must be a family with a `value_type` of `Aggregate`. - * Format: `[-_.a-zA-Z0-9]+` - * - * Generated from protobuf field string family_name = 1; - */ - protected $family_name = ''; - /** - * The qualifier of the column into which new data should be added. This - * must be a `raw_value`. - * - * Generated from protobuf field .google.bigtable.v2.Value column_qualifier = 2; - */ - protected $column_qualifier = null; - /** - * The timestamp of the cell to which new data should be added. This must - * be a `raw_timestamp_micros` that matches the table's `granularity`. - * - * Generated from protobuf field .google.bigtable.v2.Value timestamp = 3; - */ - protected $timestamp = null; - /** - * The input value to be merged into the specified cell. This must be - * compatible with the family's `value_type.state_type`. Merging `NULL` is - * allowed, but has no effect. - * - * Generated from protobuf field .google.bigtable.v2.Value input = 4; - */ - protected $input = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $family_name - * The name of the `Aggregate` family into which new data should be added. - * This must be a family with a `value_type` of `Aggregate`. - * Format: `[-_.a-zA-Z0-9]+` - * @type \Google\Cloud\Bigtable\V2\Value $column_qualifier - * The qualifier of the column into which new data should be added. This - * must be a `raw_value`. - * @type \Google\Cloud\Bigtable\V2\Value $timestamp - * The timestamp of the cell to which new data should be added. This must - * be a `raw_timestamp_micros` that matches the table's `granularity`. - * @type \Google\Cloud\Bigtable\V2\Value $input - * The input value to be merged into the specified cell. This must be - * compatible with the family's `value_type.state_type`. Merging `NULL` is - * allowed, but has no effect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * The name of the `Aggregate` family into which new data should be added. - * This must be a family with a `value_type` of `Aggregate`. - * Format: `[-_.a-zA-Z0-9]+` - * - * Generated from protobuf field string family_name = 1; - * @return string - */ - public function getFamilyName() - { - return $this->family_name; - } - - /** - * The name of the `Aggregate` family into which new data should be added. - * This must be a family with a `value_type` of `Aggregate`. - * Format: `[-_.a-zA-Z0-9]+` - * - * Generated from protobuf field string family_name = 1; - * @param string $var - * @return $this - */ - public function setFamilyName($var) - { - GPBUtil::checkString($var, True); - $this->family_name = $var; - - return $this; - } - - /** - * The qualifier of the column into which new data should be added. This - * must be a `raw_value`. - * - * Generated from protobuf field .google.bigtable.v2.Value column_qualifier = 2; - * @return \Google\Cloud\Bigtable\V2\Value|null - */ - public function getColumnQualifier() - { - return $this->column_qualifier; - } - - public function hasColumnQualifier() - { - return isset($this->column_qualifier); - } - - public function clearColumnQualifier() - { - unset($this->column_qualifier); - } - - /** - * The qualifier of the column into which new data should be added. This - * must be a `raw_value`. - * - * Generated from protobuf field .google.bigtable.v2.Value column_qualifier = 2; - * @param \Google\Cloud\Bigtable\V2\Value $var - * @return $this - */ - public function setColumnQualifier($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Value::class); - $this->column_qualifier = $var; - - return $this; - } - - /** - * The timestamp of the cell to which new data should be added. This must - * be a `raw_timestamp_micros` that matches the table's `granularity`. - * - * Generated from protobuf field .google.bigtable.v2.Value timestamp = 3; - * @return \Google\Cloud\Bigtable\V2\Value|null - */ - public function getTimestamp() - { - return $this->timestamp; - } - - public function hasTimestamp() - { - return isset($this->timestamp); - } - - public function clearTimestamp() - { - unset($this->timestamp); - } - - /** - * The timestamp of the cell to which new data should be added. This must - * be a `raw_timestamp_micros` that matches the table's `granularity`. - * - * Generated from protobuf field .google.bigtable.v2.Value timestamp = 3; - * @param \Google\Cloud\Bigtable\V2\Value $var - * @return $this - */ - public function setTimestamp($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Value::class); - $this->timestamp = $var; - - return $this; - } - - /** - * The input value to be merged into the specified cell. This must be - * compatible with the family's `value_type.state_type`. Merging `NULL` is - * allowed, but has no effect. - * - * Generated from protobuf field .google.bigtable.v2.Value input = 4; - * @return \Google\Cloud\Bigtable\V2\Value|null - */ - public function getInput() - { - return $this->input; - } - - public function hasInput() - { - return isset($this->input); - } - - public function clearInput() - { - unset($this->input); - } - - /** - * The input value to be merged into the specified cell. This must be - * compatible with the family's `value_type.state_type`. Merging `NULL` is - * allowed, but has no effect. - * - * Generated from protobuf field .google.bigtable.v2.Value input = 4; - * @param \Google\Cloud\Bigtable\V2\Value $var - * @return $this - */ - public function setInput($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Value::class); - $this->input = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/SetCell.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/SetCell.php deleted file mode 100644 index 06de56b590d8..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Mutation/SetCell.php +++ /dev/null @@ -1,193 +0,0 @@ -google.bigtable.v2.Mutation.SetCell - */ -class SetCell extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the family into which new data should be written. - * Must match `[-_.a-zA-Z0-9]+` - * - * Generated from protobuf field string family_name = 1; - */ - protected $family_name = ''; - /** - * The qualifier of the column into which new data should be written. - * Can be any byte string, including the empty string. - * - * Generated from protobuf field bytes column_qualifier = 2; - */ - protected $column_qualifier = ''; - /** - * The timestamp of the cell into which new data should be written. - * Use -1 for current Bigtable server time. - * Otherwise, the client should set this value itself, noting that the - * default value is a timestamp of zero if the field is left unspecified. - * Values must match the granularity of the table (e.g. micros, millis). - * - * Generated from protobuf field int64 timestamp_micros = 3; - */ - protected $timestamp_micros = 0; - /** - * The value to be written into the specified cell. - * - * Generated from protobuf field bytes value = 4; - */ - protected $value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $family_name - * The name of the family into which new data should be written. - * Must match `[-_.a-zA-Z0-9]+` - * @type string $column_qualifier - * The qualifier of the column into which new data should be written. - * Can be any byte string, including the empty string. - * @type int|string $timestamp_micros - * The timestamp of the cell into which new data should be written. - * Use -1 for current Bigtable server time. - * Otherwise, the client should set this value itself, noting that the - * default value is a timestamp of zero if the field is left unspecified. - * Values must match the granularity of the table (e.g. micros, millis). - * @type string $value - * The value to be written into the specified cell. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * The name of the family into which new data should be written. - * Must match `[-_.a-zA-Z0-9]+` - * - * Generated from protobuf field string family_name = 1; - * @return string - */ - public function getFamilyName() - { - return $this->family_name; - } - - /** - * The name of the family into which new data should be written. - * Must match `[-_.a-zA-Z0-9]+` - * - * Generated from protobuf field string family_name = 1; - * @param string $var - * @return $this - */ - public function setFamilyName($var) - { - GPBUtil::checkString($var, True); - $this->family_name = $var; - - return $this; - } - - /** - * The qualifier of the column into which new data should be written. - * Can be any byte string, including the empty string. - * - * Generated from protobuf field bytes column_qualifier = 2; - * @return string - */ - public function getColumnQualifier() - { - return $this->column_qualifier; - } - - /** - * The qualifier of the column into which new data should be written. - * Can be any byte string, including the empty string. - * - * Generated from protobuf field bytes column_qualifier = 2; - * @param string $var - * @return $this - */ - public function setColumnQualifier($var) - { - GPBUtil::checkString($var, False); - $this->column_qualifier = $var; - - return $this; - } - - /** - * The timestamp of the cell into which new data should be written. - * Use -1 for current Bigtable server time. - * Otherwise, the client should set this value itself, noting that the - * default value is a timestamp of zero if the field is left unspecified. - * Values must match the granularity of the table (e.g. micros, millis). - * - * Generated from protobuf field int64 timestamp_micros = 3; - * @return int|string - */ - public function getTimestampMicros() - { - return $this->timestamp_micros; - } - - /** - * The timestamp of the cell into which new data should be written. - * Use -1 for current Bigtable server time. - * Otherwise, the client should set this value itself, noting that the - * default value is a timestamp of zero if the field is left unspecified. - * Values must match the granularity of the table (e.g. micros, millis). - * - * Generated from protobuf field int64 timestamp_micros = 3; - * @param int|string $var - * @return $this - */ - public function setTimestampMicros($var) - { - GPBUtil::checkInt64($var); - $this->timestamp_micros = $var; - - return $this; - } - - /** - * The value to be written into the specified cell. - * - * Generated from protobuf field bytes value = 4; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The value to be written into the specified cell. - * - * Generated from protobuf field bytes value = 4; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, False); - $this->value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PartialResultSet.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PartialResultSet.php deleted file mode 100644 index 98531f4aea1b..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PartialResultSet.php +++ /dev/null @@ -1,391 +0,0 @@ -google.bigtable.v2.PartialResultSet - */ -class PartialResultSet extends \Google\Protobuf\Internal\Message -{ - /** - * CRC32C checksum of concatenated `partial_rows` data for the current batch. - * When present, the buffered data from `partial_rows` forms a complete - * parseable message of the appropriate type. - * The client should mark the end of a parseable message and prepare to - * receive a new one starting from the next `PartialResultSet` message. - * Clients must verify the checksum of the serialized batch before yielding it - * to the caller. - * This does NOT mean the values can be yielded to the callers since a - * `resume_token` is required to safely do so. - * If `resume_token` is non-empty and any data has been received since the - * last one, this field is guaranteed to be non-empty. In other words, clients - * may assume that a batch will never cross a `resume_token` boundary. - * - * Generated from protobuf field optional uint32 batch_checksum = 6; - */ - protected $batch_checksum = null; - /** - * An opaque token sent by the server to allow query resumption and signal - * that the buffered values constructed from received `partial_rows` can be - * yielded to the caller. Clients can provide this token in a subsequent - * request to resume the result stream from the current point. - * When `resume_token` is non-empty, the buffered values received from - * `partial_rows` since the last non-empty `resume_token` can be yielded to - * the callers, provided that the client keeps the value of `resume_token` and - * uses it on subsequent retries. - * A `resume_token` may be sent without information in `partial_rows` to - * checkpoint the progress of a sparse query. Any previous `partial_rows` data - * should still be yielded in this case, and the new `resume_token` should be - * saved for future retries as normal. - * A `resume_token` will only be sent on a boundary where there is either no - * ongoing result batch, or `batch_checksum` is also populated. - * The server will also send a sentinel `resume_token` when last batch of - * `partial_rows` is sent. If the client retries the ExecuteQueryRequest with - * the sentinel `resume_token`, the server will emit it again without any - * data in `partial_rows`, then return OK. - * - * Generated from protobuf field bytes resume_token = 5; - */ - protected $resume_token = ''; - /** - * If `true`, any data buffered since the last non-empty `resume_token` must - * be discarded before the other parts of this message, if any, are handled. - * - * Generated from protobuf field bool reset = 7; - */ - protected $reset = false; - /** - * Estimated size of the buffer required to hold the next batch of results. - * This value will be sent with the first `partial_rows` of a batch. That is, - * on the first `partial_rows` received in a stream, on the first message - * after a `batch_checksum` message, and any time `reset` is true. - * The client can use this estimate to allocate a buffer for the next batch of - * results. This helps minimize the number of allocations required, though the - * buffer size may still need to be increased if the estimate is too low. - * - * Generated from protobuf field int32 estimated_batch_size = 4; - */ - protected $estimated_batch_size = 0; - protected $partial_rows; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\ProtoRowsBatch $proto_rows_batch - * Partial rows in serialized ProtoRows format. - * @type int $batch_checksum - * CRC32C checksum of concatenated `partial_rows` data for the current batch. - * When present, the buffered data from `partial_rows` forms a complete - * parseable message of the appropriate type. - * The client should mark the end of a parseable message and prepare to - * receive a new one starting from the next `PartialResultSet` message. - * Clients must verify the checksum of the serialized batch before yielding it - * to the caller. - * This does NOT mean the values can be yielded to the callers since a - * `resume_token` is required to safely do so. - * If `resume_token` is non-empty and any data has been received since the - * last one, this field is guaranteed to be non-empty. In other words, clients - * may assume that a batch will never cross a `resume_token` boundary. - * @type string $resume_token - * An opaque token sent by the server to allow query resumption and signal - * that the buffered values constructed from received `partial_rows` can be - * yielded to the caller. Clients can provide this token in a subsequent - * request to resume the result stream from the current point. - * When `resume_token` is non-empty, the buffered values received from - * `partial_rows` since the last non-empty `resume_token` can be yielded to - * the callers, provided that the client keeps the value of `resume_token` and - * uses it on subsequent retries. - * A `resume_token` may be sent without information in `partial_rows` to - * checkpoint the progress of a sparse query. Any previous `partial_rows` data - * should still be yielded in this case, and the new `resume_token` should be - * saved for future retries as normal. - * A `resume_token` will only be sent on a boundary where there is either no - * ongoing result batch, or `batch_checksum` is also populated. - * The server will also send a sentinel `resume_token` when last batch of - * `partial_rows` is sent. If the client retries the ExecuteQueryRequest with - * the sentinel `resume_token`, the server will emit it again without any - * data in `partial_rows`, then return OK. - * @type bool $reset - * If `true`, any data buffered since the last non-empty `resume_token` must - * be discarded before the other parts of this message, if any, are handled. - * @type int $estimated_batch_size - * Estimated size of the buffer required to hold the next batch of results. - * This value will be sent with the first `partial_rows` of a batch. That is, - * on the first `partial_rows` received in a stream, on the first message - * after a `batch_checksum` message, and any time `reset` is true. - * The client can use this estimate to allocate a buffer for the next batch of - * results. This helps minimize the number of allocations required, though the - * buffer size may still need to be increased if the estimate is too low. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * Partial rows in serialized ProtoRows format. - * - * Generated from protobuf field .google.bigtable.v2.ProtoRowsBatch proto_rows_batch = 3; - * @return \Google\Cloud\Bigtable\V2\ProtoRowsBatch|null - */ - public function getProtoRowsBatch() - { - return $this->readOneof(3); - } - - public function hasProtoRowsBatch() - { - return $this->hasOneof(3); - } - - /** - * Partial rows in serialized ProtoRows format. - * - * Generated from protobuf field .google.bigtable.v2.ProtoRowsBatch proto_rows_batch = 3; - * @param \Google\Cloud\Bigtable\V2\ProtoRowsBatch $var - * @return $this - */ - public function setProtoRowsBatch($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\ProtoRowsBatch::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * CRC32C checksum of concatenated `partial_rows` data for the current batch. - * When present, the buffered data from `partial_rows` forms a complete - * parseable message of the appropriate type. - * The client should mark the end of a parseable message and prepare to - * receive a new one starting from the next `PartialResultSet` message. - * Clients must verify the checksum of the serialized batch before yielding it - * to the caller. - * This does NOT mean the values can be yielded to the callers since a - * `resume_token` is required to safely do so. - * If `resume_token` is non-empty and any data has been received since the - * last one, this field is guaranteed to be non-empty. In other words, clients - * may assume that a batch will never cross a `resume_token` boundary. - * - * Generated from protobuf field optional uint32 batch_checksum = 6; - * @return int - */ - public function getBatchChecksum() - { - return isset($this->batch_checksum) ? $this->batch_checksum : 0; - } - - public function hasBatchChecksum() - { - return isset($this->batch_checksum); - } - - public function clearBatchChecksum() - { - unset($this->batch_checksum); - } - - /** - * CRC32C checksum of concatenated `partial_rows` data for the current batch. - * When present, the buffered data from `partial_rows` forms a complete - * parseable message of the appropriate type. - * The client should mark the end of a parseable message and prepare to - * receive a new one starting from the next `PartialResultSet` message. - * Clients must verify the checksum of the serialized batch before yielding it - * to the caller. - * This does NOT mean the values can be yielded to the callers since a - * `resume_token` is required to safely do so. - * If `resume_token` is non-empty and any data has been received since the - * last one, this field is guaranteed to be non-empty. In other words, clients - * may assume that a batch will never cross a `resume_token` boundary. - * - * Generated from protobuf field optional uint32 batch_checksum = 6; - * @param int $var - * @return $this - */ - public function setBatchChecksum($var) - { - GPBUtil::checkUint32($var); - $this->batch_checksum = $var; - - return $this; - } - - /** - * An opaque token sent by the server to allow query resumption and signal - * that the buffered values constructed from received `partial_rows` can be - * yielded to the caller. Clients can provide this token in a subsequent - * request to resume the result stream from the current point. - * When `resume_token` is non-empty, the buffered values received from - * `partial_rows` since the last non-empty `resume_token` can be yielded to - * the callers, provided that the client keeps the value of `resume_token` and - * uses it on subsequent retries. - * A `resume_token` may be sent without information in `partial_rows` to - * checkpoint the progress of a sparse query. Any previous `partial_rows` data - * should still be yielded in this case, and the new `resume_token` should be - * saved for future retries as normal. - * A `resume_token` will only be sent on a boundary where there is either no - * ongoing result batch, or `batch_checksum` is also populated. - * The server will also send a sentinel `resume_token` when last batch of - * `partial_rows` is sent. If the client retries the ExecuteQueryRequest with - * the sentinel `resume_token`, the server will emit it again without any - * data in `partial_rows`, then return OK. - * - * Generated from protobuf field bytes resume_token = 5; - * @return string - */ - public function getResumeToken() - { - return $this->resume_token; - } - - /** - * An opaque token sent by the server to allow query resumption and signal - * that the buffered values constructed from received `partial_rows` can be - * yielded to the caller. Clients can provide this token in a subsequent - * request to resume the result stream from the current point. - * When `resume_token` is non-empty, the buffered values received from - * `partial_rows` since the last non-empty `resume_token` can be yielded to - * the callers, provided that the client keeps the value of `resume_token` and - * uses it on subsequent retries. - * A `resume_token` may be sent without information in `partial_rows` to - * checkpoint the progress of a sparse query. Any previous `partial_rows` data - * should still be yielded in this case, and the new `resume_token` should be - * saved for future retries as normal. - * A `resume_token` will only be sent on a boundary where there is either no - * ongoing result batch, or `batch_checksum` is also populated. - * The server will also send a sentinel `resume_token` when last batch of - * `partial_rows` is sent. If the client retries the ExecuteQueryRequest with - * the sentinel `resume_token`, the server will emit it again without any - * data in `partial_rows`, then return OK. - * - * Generated from protobuf field bytes resume_token = 5; - * @param string $var - * @return $this - */ - public function setResumeToken($var) - { - GPBUtil::checkString($var, False); - $this->resume_token = $var; - - return $this; - } - - /** - * If `true`, any data buffered since the last non-empty `resume_token` must - * be discarded before the other parts of this message, if any, are handled. - * - * Generated from protobuf field bool reset = 7; - * @return bool - */ - public function getReset() - { - return $this->reset; - } - - /** - * If `true`, any data buffered since the last non-empty `resume_token` must - * be discarded before the other parts of this message, if any, are handled. - * - * Generated from protobuf field bool reset = 7; - * @param bool $var - * @return $this - */ - public function setReset($var) - { - GPBUtil::checkBool($var); - $this->reset = $var; - - return $this; - } - - /** - * Estimated size of the buffer required to hold the next batch of results. - * This value will be sent with the first `partial_rows` of a batch. That is, - * on the first `partial_rows` received in a stream, on the first message - * after a `batch_checksum` message, and any time `reset` is true. - * The client can use this estimate to allocate a buffer for the next batch of - * results. This helps minimize the number of allocations required, though the - * buffer size may still need to be increased if the estimate is too low. - * - * Generated from protobuf field int32 estimated_batch_size = 4; - * @return int - */ - public function getEstimatedBatchSize() - { - return $this->estimated_batch_size; - } - - /** - * Estimated size of the buffer required to hold the next batch of results. - * This value will be sent with the first `partial_rows` of a batch. That is, - * on the first `partial_rows` received in a stream, on the first message - * after a `batch_checksum` message, and any time `reset` is true. - * The client can use this estimate to allocate a buffer for the next batch of - * results. This helps minimize the number of allocations required, though the - * buffer size may still need to be increased if the estimate is too low. - * - * Generated from protobuf field int32 estimated_batch_size = 4; - * @param int $var - * @return $this - */ - public function setEstimatedBatchSize($var) - { - GPBUtil::checkInt32($var); - $this->estimated_batch_size = $var; - - return $this; - } - - /** - * @return string - */ - public function getPartialRows() - { - return $this->whichOneof("partial_rows"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PeerInfo.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PeerInfo.php deleted file mode 100644 index 7c958236187c..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PeerInfo.php +++ /dev/null @@ -1,209 +0,0 @@ -google.bigtable.v2.PeerInfo - */ -class PeerInfo extends \Google\Protobuf\Internal\Message -{ - /** - * An opaque identifier for the Google Frontend which serviced this request. - * Only set when not using DirectAccess. - * - * Generated from protobuf field int64 google_frontend_id = 1; - */ - protected $google_frontend_id = 0; - /** - * An opaque identifier for the application frontend which serviced this - * request. - * - * Generated from protobuf field int64 application_frontend_id = 2; - */ - protected $application_frontend_id = 0; - /** - * The Cloud zone of the application frontend that served this request. - * - * Generated from protobuf field string application_frontend_zone = 3; - */ - protected $application_frontend_zone = ''; - /** - * The subzone of the application frontend that served this request, e.g. an - * identifier for where within the zone the application frontend is. - * - * Generated from protobuf field string application_frontend_subzone = 4; - */ - protected $application_frontend_subzone = ''; - /** - * Generated from protobuf field .google.bigtable.v2.PeerInfo.TransportType transport_type = 5; - */ - protected $transport_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $google_frontend_id - * An opaque identifier for the Google Frontend which serviced this request. - * Only set when not using DirectAccess. - * @type int|string $application_frontend_id - * An opaque identifier for the application frontend which serviced this - * request. - * @type string $application_frontend_zone - * The Cloud zone of the application frontend that served this request. - * @type string $application_frontend_subzone - * The subzone of the application frontend that served this request, e.g. an - * identifier for where within the zone the application frontend is. - * @type int $transport_type - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\PeerInfo::initOnce(); - parent::__construct($data); - } - - /** - * An opaque identifier for the Google Frontend which serviced this request. - * Only set when not using DirectAccess. - * - * Generated from protobuf field int64 google_frontend_id = 1; - * @return int|string - */ - public function getGoogleFrontendId() - { - return $this->google_frontend_id; - } - - /** - * An opaque identifier for the Google Frontend which serviced this request. - * Only set when not using DirectAccess. - * - * Generated from protobuf field int64 google_frontend_id = 1; - * @param int|string $var - * @return $this - */ - public function setGoogleFrontendId($var) - { - GPBUtil::checkInt64($var); - $this->google_frontend_id = $var; - - return $this; - } - - /** - * An opaque identifier for the application frontend which serviced this - * request. - * - * Generated from protobuf field int64 application_frontend_id = 2; - * @return int|string - */ - public function getApplicationFrontendId() - { - return $this->application_frontend_id; - } - - /** - * An opaque identifier for the application frontend which serviced this - * request. - * - * Generated from protobuf field int64 application_frontend_id = 2; - * @param int|string $var - * @return $this - */ - public function setApplicationFrontendId($var) - { - GPBUtil::checkInt64($var); - $this->application_frontend_id = $var; - - return $this; - } - - /** - * The Cloud zone of the application frontend that served this request. - * - * Generated from protobuf field string application_frontend_zone = 3; - * @return string - */ - public function getApplicationFrontendZone() - { - return $this->application_frontend_zone; - } - - /** - * The Cloud zone of the application frontend that served this request. - * - * Generated from protobuf field string application_frontend_zone = 3; - * @param string $var - * @return $this - */ - public function setApplicationFrontendZone($var) - { - GPBUtil::checkString($var, True); - $this->application_frontend_zone = $var; - - return $this; - } - - /** - * The subzone of the application frontend that served this request, e.g. an - * identifier for where within the zone the application frontend is. - * - * Generated from protobuf field string application_frontend_subzone = 4; - * @return string - */ - public function getApplicationFrontendSubzone() - { - return $this->application_frontend_subzone; - } - - /** - * The subzone of the application frontend that served this request, e.g. an - * identifier for where within the zone the application frontend is. - * - * Generated from protobuf field string application_frontend_subzone = 4; - * @param string $var - * @return $this - */ - public function setApplicationFrontendSubzone($var) - { - GPBUtil::checkString($var, True); - $this->application_frontend_subzone = $var; - - return $this; - } - - /** - * Generated from protobuf field .google.bigtable.v2.PeerInfo.TransportType transport_type = 5; - * @return int - */ - public function getTransportType() - { - return $this->transport_type; - } - - /** - * Generated from protobuf field .google.bigtable.v2.PeerInfo.TransportType transport_type = 5; - * @param int $var - * @return $this - */ - public function setTransportType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\V2\PeerInfo\TransportType::class); - $this->transport_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PeerInfo/TransportType.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PeerInfo/TransportType.php deleted file mode 100644 index 1630e34a1f7a..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PeerInfo/TransportType.php +++ /dev/null @@ -1,100 +0,0 @@ -google.bigtable.v2.PeerInfo.TransportType - */ -class TransportType -{ - /** - * The transport type is unknown. - * - * Generated from protobuf enum TRANSPORT_TYPE_UNKNOWN = 0; - */ - const TRANSPORT_TYPE_UNKNOWN = 0; - /** - * The client connected to this peer via an external network - * (e.g. outside Google Coud). - * - * Generated from protobuf enum TRANSPORT_TYPE_EXTERNAL = 1; - */ - const TRANSPORT_TYPE_EXTERNAL = 1; - /** - * The client connected to this peer via CloudPath. - * - * Generated from protobuf enum TRANSPORT_TYPE_CLOUD_PATH = 2; - */ - const TRANSPORT_TYPE_CLOUD_PATH = 2; - /** - * The client connected to this peer via DirectAccess. - * - * Generated from protobuf enum TRANSPORT_TYPE_DIRECT_ACCESS = 3; - */ - const TRANSPORT_TYPE_DIRECT_ACCESS = 3; - /** - * The client connected to this peer via Bigtable Sessions using an unknown - * transport type. - * - * Generated from protobuf enum TRANSPORT_TYPE_SESSION_UNKNOWN = 4; - */ - const TRANSPORT_TYPE_SESSION_UNKNOWN = 4; - /** - * The client connected to this peer via Bigtable Sessions on an external - * network (e.g. outside Google Cloud). - * - * Generated from protobuf enum TRANSPORT_TYPE_SESSION_EXTERNAL = 5; - */ - const TRANSPORT_TYPE_SESSION_EXTERNAL = 5; - /** - * The client connected to this peer via Bigtable Sessions using CloudPath. - * - * Generated from protobuf enum TRANSPORT_TYPE_SESSION_CLOUD_PATH = 6; - */ - const TRANSPORT_TYPE_SESSION_CLOUD_PATH = 6; - /** - * The client connected to this peer via Bigtable Sessions using - * DirectAccess. - * - * Generated from protobuf enum TRANSPORT_TYPE_SESSION_DIRECT_ACCESS = 7; - */ - const TRANSPORT_TYPE_SESSION_DIRECT_ACCESS = 7; - - private static $valueToName = [ - self::TRANSPORT_TYPE_UNKNOWN => 'TRANSPORT_TYPE_UNKNOWN', - self::TRANSPORT_TYPE_EXTERNAL => 'TRANSPORT_TYPE_EXTERNAL', - self::TRANSPORT_TYPE_CLOUD_PATH => 'TRANSPORT_TYPE_CLOUD_PATH', - self::TRANSPORT_TYPE_DIRECT_ACCESS => 'TRANSPORT_TYPE_DIRECT_ACCESS', - self::TRANSPORT_TYPE_SESSION_UNKNOWN => 'TRANSPORT_TYPE_SESSION_UNKNOWN', - self::TRANSPORT_TYPE_SESSION_EXTERNAL => 'TRANSPORT_TYPE_SESSION_EXTERNAL', - self::TRANSPORT_TYPE_SESSION_CLOUD_PATH => 'TRANSPORT_TYPE_SESSION_CLOUD_PATH', - self::TRANSPORT_TYPE_SESSION_DIRECT_ACCESS => 'TRANSPORT_TYPE_SESSION_DIRECT_ACCESS', - ]; - - 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/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PingAndWarmRequest.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PingAndWarmRequest.php deleted file mode 100644 index 1220a3bb167b..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PingAndWarmRequest.php +++ /dev/null @@ -1,148 +0,0 @@ -google.bigtable.v2.PingAndWarmRequest - */ -class PingAndWarmRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the instance to check permissions for as well - * as respond. Values are of the form - * `projects//instances/`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * - * Generated from protobuf field string app_profile_id = 2; - */ - protected $app_profile_id = ''; - - /** - * @param string $name Required. The unique name of the instance to check permissions for as well - * as respond. Values are of the form - * `projects//instances/`. Please see - * {@see BigtableClient::instanceName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\V2\PingAndWarmRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * @param string $name Required. The unique name of the instance to check permissions for as well - * as respond. Values are of the form - * `projects//instances/`. Please see - * {@see BigtableClient::instanceName()} for help formatting this field. - * @param string $appProfileId This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * - * @return \Google\Cloud\Bigtable\V2\PingAndWarmRequest - * - * @experimental - */ - public static function buildFromNameAppProfileId(string $name, string $appProfileId): self - { - return (new self()) - ->setName($name) - ->setAppProfileId($appProfileId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The unique name of the instance to check permissions for as well - * as respond. Values are of the form - * `projects//instances/`. - * @type string $app_profile_id - * This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the instance to check permissions for as well - * as respond. Values are of the form - * `projects//instances/`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The unique name of the instance to check permissions for as well - * as respond. Values are of the form - * `projects//instances/`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * - * Generated from protobuf field string app_profile_id = 2; - * @return string - */ - public function getAppProfileId() - { - return $this->app_profile_id; - } - - /** - * This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * - * Generated from protobuf field string app_profile_id = 2; - * @param string $var - * @return $this - */ - public function setAppProfileId($var) - { - GPBUtil::checkString($var, True); - $this->app_profile_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PingAndWarmResponse.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PingAndWarmResponse.php deleted file mode 100644 index fb68c25dfec2..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PingAndWarmResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.bigtable.v2.PingAndWarmResponse - */ -class PingAndWarmResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PrepareQueryRequest.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PrepareQueryRequest.php deleted file mode 100644 index 7523d30bc56f..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PrepareQueryRequest.php +++ /dev/null @@ -1,308 +0,0 @@ -google.bigtable.v2.PrepareQueryRequest - */ -class PrepareQueryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the instance against which the query should be - * executed. - * Values are of the form `projects//instances/` - * - * Generated from protobuf field string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $instance_name = ''; - /** - * Optional. This value specifies routing for preparing the query. Note that - * this `app_profile_id` is only used for preparing the query. The actual - * query execution will use the app profile specified in the - * `ExecuteQueryRequest`. If not specified, the `default` application profile - * will be used. - * - * Generated from protobuf field string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $app_profile_id = ''; - /** - * Required. The query string. - * - * Generated from protobuf field string query = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $query = ''; - /** - * Required. `param_types` is a map of parameter identifier strings to their - * `Type`s. - * In query string, a parameter placeholder consists of the - * `\@` character followed by the parameter name (for example, `\@firstName`) in - * the query string. - * For example, if param_types["firstName"] = Bytes then \@firstName will be a - * query parameter of type Bytes. The specific `Value` to be used for the - * query execution must be sent in `ExecuteQueryRequest` in the `params` map. - * - * Generated from protobuf field map param_types = 6 [(.google.api.field_behavior) = REQUIRED]; - */ - private $param_types; - protected $data_format; - - /** - * @param string $instanceName Required. The unique name of the instance against which the query should be - * executed. - * Values are of the form `projects//instances/` - * Please see {@see BigtableClient::instanceName()} for help formatting this field. - * @param string $query Required. The query string. - * - * @return \Google\Cloud\Bigtable\V2\PrepareQueryRequest - * - * @experimental - */ - public static function build(string $instanceName, string $query): self - { - return (new self()) - ->setInstanceName($instanceName) - ->setQuery($query); - } - - /** - * @param string $instanceName Required. The unique name of the instance against which the query should be - * executed. - * Values are of the form `projects//instances/` - * Please see {@see BigtableClient::instanceName()} for help formatting this field. - * @param string $query Required. The query string. - * @param string $appProfileId Optional. This value specifies routing for preparing the query. Note that - * this `app_profile_id` is only used for preparing the query. The actual - * query execution will use the app profile specified in the - * `ExecuteQueryRequest`. If not specified, the `default` application profile - * will be used. - * - * @return \Google\Cloud\Bigtable\V2\PrepareQueryRequest - * - * @experimental - */ - public static function buildFromInstanceNameQueryAppProfileId(string $instanceName, string $query, string $appProfileId): self - { - return (new self()) - ->setInstanceName($instanceName) - ->setQuery($query) - ->setAppProfileId($appProfileId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $instance_name - * Required. The unique name of the instance against which the query should be - * executed. - * Values are of the form `projects//instances/` - * @type string $app_profile_id - * Optional. This value specifies routing for preparing the query. Note that - * this `app_profile_id` is only used for preparing the query. The actual - * query execution will use the app profile specified in the - * `ExecuteQueryRequest`. If not specified, the `default` application profile - * will be used. - * @type string $query - * Required. The query string. - * @type \Google\Cloud\Bigtable\V2\ProtoFormat $proto_format - * Protocol buffer format as described by ProtoSchema and ProtoRows - * messages. - * @type array|\Google\Protobuf\Internal\MapField $param_types - * Required. `param_types` is a map of parameter identifier strings to their - * `Type`s. - * In query string, a parameter placeholder consists of the - * `\@` character followed by the parameter name (for example, `\@firstName`) in - * the query string. - * For example, if param_types["firstName"] = Bytes then \@firstName will be a - * query parameter of type Bytes. The specific `Value` to be used for the - * query execution must be sent in `ExecuteQueryRequest` in the `params` map. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the instance against which the query should be - * executed. - * Values are of the form `projects//instances/` - * - * Generated from protobuf field string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getInstanceName() - { - return $this->instance_name; - } - - /** - * Required. The unique name of the instance against which the query should be - * executed. - * Values are of the form `projects//instances/` - * - * Generated from protobuf field string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setInstanceName($var) - { - GPBUtil::checkString($var, True); - $this->instance_name = $var; - - return $this; - } - - /** - * Optional. This value specifies routing for preparing the query. Note that - * this `app_profile_id` is only used for preparing the query. The actual - * query execution will use the app profile specified in the - * `ExecuteQueryRequest`. If not specified, the `default` application profile - * will be used. - * - * Generated from protobuf field string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getAppProfileId() - { - return $this->app_profile_id; - } - - /** - * Optional. This value specifies routing for preparing the query. Note that - * this `app_profile_id` is only used for preparing the query. The actual - * query execution will use the app profile specified in the - * `ExecuteQueryRequest`. If not specified, the `default` application profile - * will be used. - * - * Generated from protobuf field string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setAppProfileId($var) - { - GPBUtil::checkString($var, True); - $this->app_profile_id = $var; - - return $this; - } - - /** - * Required. The query string. - * - * Generated from protobuf field string query = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getQuery() - { - return $this->query; - } - - /** - * Required. The query string. - * - * Generated from protobuf field string query = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkString($var, True); - $this->query = $var; - - return $this; - } - - /** - * Protocol buffer format as described by ProtoSchema and ProtoRows - * messages. - * - * Generated from protobuf field .google.bigtable.v2.ProtoFormat proto_format = 4; - * @return \Google\Cloud\Bigtable\V2\ProtoFormat|null - */ - public function getProtoFormat() - { - return $this->readOneof(4); - } - - public function hasProtoFormat() - { - return $this->hasOneof(4); - } - - /** - * Protocol buffer format as described by ProtoSchema and ProtoRows - * messages. - * - * Generated from protobuf field .google.bigtable.v2.ProtoFormat proto_format = 4; - * @param \Google\Cloud\Bigtable\V2\ProtoFormat $var - * @return $this - */ - public function setProtoFormat($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\ProtoFormat::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Required. `param_types` is a map of parameter identifier strings to their - * `Type`s. - * In query string, a parameter placeholder consists of the - * `\@` character followed by the parameter name (for example, `\@firstName`) in - * the query string. - * For example, if param_types["firstName"] = Bytes then \@firstName will be a - * query parameter of type Bytes. The specific `Value` to be used for the - * query execution must be sent in `ExecuteQueryRequest` in the `params` map. - * - * Generated from protobuf field map param_types = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getParamTypes() - { - return $this->param_types; - } - - /** - * Required. `param_types` is a map of parameter identifier strings to their - * `Type`s. - * In query string, a parameter placeholder consists of the - * `\@` character followed by the parameter name (for example, `\@firstName`) in - * the query string. - * For example, if param_types["firstName"] = Bytes then \@firstName will be a - * query parameter of type Bytes. The specific `Value` to be used for the - * query execution must be sent in `ExecuteQueryRequest` in the `params` map. - * - * Generated from protobuf field map param_types = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setParamTypes($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\Type::class); - $this->param_types = $arr; - - return $this; - } - - /** - * @return string - */ - public function getDataFormat() - { - return $this->whichOneof("data_format"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PrepareQueryResponse.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PrepareQueryResponse.php deleted file mode 100644 index a0c58f80a4b4..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/PrepareQueryResponse.php +++ /dev/null @@ -1,171 +0,0 @@ -google.bigtable.v2.PrepareQueryResponse - */ -class PrepareQueryResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Structure of rows in the response stream of `ExecuteQueryResponse` for the - * returned `prepared_query`. - * - * Generated from protobuf field .google.bigtable.v2.ResultSetMetadata metadata = 1; - */ - protected $metadata = null; - /** - * A serialized prepared query. Clients should treat this as an opaque - * blob of bytes to send in `ExecuteQueryRequest`. - * - * Generated from protobuf field bytes prepared_query = 2; - */ - protected $prepared_query = ''; - /** - * The time at which the prepared query token becomes invalid. - * A token may become invalid early due to changes in the data being read, but - * it provides a guideline to refresh query plans asynchronously. - * - * Generated from protobuf field .google.protobuf.Timestamp valid_until = 3; - */ - protected $valid_until = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\ResultSetMetadata $metadata - * Structure of rows in the response stream of `ExecuteQueryResponse` for the - * returned `prepared_query`. - * @type string $prepared_query - * A serialized prepared query. Clients should treat this as an opaque - * blob of bytes to send in `ExecuteQueryRequest`. - * @type \Google\Protobuf\Timestamp $valid_until - * The time at which the prepared query token becomes invalid. - * A token may become invalid early due to changes in the data being read, but - * it provides a guideline to refresh query plans asynchronously. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); - parent::__construct($data); - } - - /** - * Structure of rows in the response stream of `ExecuteQueryResponse` for the - * returned `prepared_query`. - * - * Generated from protobuf field .google.bigtable.v2.ResultSetMetadata metadata = 1; - * @return \Google\Cloud\Bigtable\V2\ResultSetMetadata|null - */ - public function getMetadata() - { - return $this->metadata; - } - - public function hasMetadata() - { - return isset($this->metadata); - } - - public function clearMetadata() - { - unset($this->metadata); - } - - /** - * Structure of rows in the response stream of `ExecuteQueryResponse` for the - * returned `prepared_query`. - * - * Generated from protobuf field .google.bigtable.v2.ResultSetMetadata metadata = 1; - * @param \Google\Cloud\Bigtable\V2\ResultSetMetadata $var - * @return $this - */ - public function setMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\ResultSetMetadata::class); - $this->metadata = $var; - - return $this; - } - - /** - * A serialized prepared query. Clients should treat this as an opaque - * blob of bytes to send in `ExecuteQueryRequest`. - * - * Generated from protobuf field bytes prepared_query = 2; - * @return string - */ - public function getPreparedQuery() - { - return $this->prepared_query; - } - - /** - * A serialized prepared query. Clients should treat this as an opaque - * blob of bytes to send in `ExecuteQueryRequest`. - * - * Generated from protobuf field bytes prepared_query = 2; - * @param string $var - * @return $this - */ - public function setPreparedQuery($var) - { - GPBUtil::checkString($var, False); - $this->prepared_query = $var; - - return $this; - } - - /** - * The time at which the prepared query token becomes invalid. - * A token may become invalid early due to changes in the data being read, but - * it provides a guideline to refresh query plans asynchronously. - * - * Generated from protobuf field .google.protobuf.Timestamp valid_until = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getValidUntil() - { - return $this->valid_until; - } - - public function hasValidUntil() - { - return isset($this->valid_until); - } - - public function clearValidUntil() - { - unset($this->valid_until); - } - - /** - * The time at which the prepared query token becomes invalid. - * A token may become invalid early due to changes in the data being read, but - * it provides a guideline to refresh query plans asynchronously. - * - * Generated from protobuf field .google.protobuf.Timestamp valid_until = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setValidUntil($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->valid_until = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ProtoFormat.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ProtoFormat.php deleted file mode 100644 index 36b5d95ef7c0..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ProtoFormat.php +++ /dev/null @@ -1,34 +0,0 @@ -google.bigtable.v2.ProtoFormat - */ -class ProtoFormat extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ProtoRows.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ProtoRows.php deleted file mode 100644 index f5afe029a8c9..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ProtoRows.php +++ /dev/null @@ -1,78 +0,0 @@ -google.bigtable.v2.ProtoRows - */ -class ProtoRows extends \Google\Protobuf\Internal\Message -{ - /** - * A proto rows message consists of a list of values. Every N complete values - * defines a row, where N is equal to the number of entries in the - * `metadata.proto_schema.columns` value received in the first response. - * - * Generated from protobuf field repeated .google.bigtable.v2.Value values = 2; - */ - private $values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\Value[] $values - * A proto rows message consists of a list of values. Every N complete values - * defines a row, where N is equal to the number of entries in the - * `metadata.proto_schema.columns` value received in the first response. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * A proto rows message consists of a list of values. Every N complete values - * defines a row, where N is equal to the number of entries in the - * `metadata.proto_schema.columns` value received in the first response. - * - * Generated from protobuf field repeated .google.bigtable.v2.Value values = 2; - * @return RepeatedField<\Google\Cloud\Bigtable\V2\Value> - */ - public function getValues() - { - return $this->values; - } - - /** - * A proto rows message consists of a list of values. Every N complete values - * defines a row, where N is equal to the number of entries in the - * `metadata.proto_schema.columns` value received in the first response. - * - * Generated from protobuf field repeated .google.bigtable.v2.Value values = 2; - * @param \Google\Cloud\Bigtable\V2\Value[] $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\Value::class); - $this->values = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ProtoRowsBatch.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ProtoRowsBatch.php deleted file mode 100644 index ee67558f7420..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ProtoRowsBatch.php +++ /dev/null @@ -1,83 +0,0 @@ -google.bigtable.v2.ProtoRowsBatch - */ -class ProtoRowsBatch extends \Google\Protobuf\Internal\Message -{ - /** - * Part of a serialized `ProtoRows` message. - * A complete, parseable ProtoRows message is constructed by - * concatenating `batch_data` from multiple `ProtoRowsBatch` messages. The - * `PartialResultSet` that contains the last part has `complete_batch` set to - * `true`. - * - * Generated from protobuf field bytes batch_data = 1; - */ - protected $batch_data = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $batch_data - * Part of a serialized `ProtoRows` message. - * A complete, parseable ProtoRows message is constructed by - * concatenating `batch_data` from multiple `ProtoRowsBatch` messages. The - * `PartialResultSet` that contains the last part has `complete_batch` set to - * `true`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * Part of a serialized `ProtoRows` message. - * A complete, parseable ProtoRows message is constructed by - * concatenating `batch_data` from multiple `ProtoRowsBatch` messages. The - * `PartialResultSet` that contains the last part has `complete_batch` set to - * `true`. - * - * Generated from protobuf field bytes batch_data = 1; - * @return string - */ - public function getBatchData() - { - return $this->batch_data; - } - - /** - * Part of a serialized `ProtoRows` message. - * A complete, parseable ProtoRows message is constructed by - * concatenating `batch_data` from multiple `ProtoRowsBatch` messages. The - * `PartialResultSet` that contains the last part has `complete_batch` set to - * `true`. - * - * Generated from protobuf field bytes batch_data = 1; - * @param string $var - * @return $this - */ - public function setBatchData($var) - { - GPBUtil::checkString($var, False); - $this->batch_data = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ProtoSchema.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ProtoSchema.php deleted file mode 100644 index 70d004f67c09..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ProtoSchema.php +++ /dev/null @@ -1,67 +0,0 @@ -google.bigtable.v2.ProtoSchema - */ -class ProtoSchema extends \Google\Protobuf\Internal\Message -{ - /** - * The columns in the result set. - * - * Generated from protobuf field repeated .google.bigtable.v2.ColumnMetadata columns = 1; - */ - private $columns; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\ColumnMetadata[] $columns - * The columns in the result set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * The columns in the result set. - * - * Generated from protobuf field repeated .google.bigtable.v2.ColumnMetadata columns = 1; - * @return RepeatedField<\Google\Cloud\Bigtable\V2\ColumnMetadata> - */ - public function getColumns() - { - return $this->columns; - } - - /** - * The columns in the result set. - * - * Generated from protobuf field repeated .google.bigtable.v2.ColumnMetadata columns = 1; - * @param \Google\Cloud\Bigtable\V2\ColumnMetadata[] $var - * @return $this - */ - public function setColumns($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\ColumnMetadata::class); - $this->columns = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RateLimitInfo.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RateLimitInfo.php deleted file mode 100644 index 90be8af42fde..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RateLimitInfo.php +++ /dev/null @@ -1,159 +0,0 @@ -google.bigtable.v2.RateLimitInfo - */ -class RateLimitInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Time that clients should wait before adjusting the target rate again. - * If clients adjust rate too frequently, the impact of the previous - * adjustment may not have been taken into account and may - * over-throttle or under-throttle. If clients adjust rate too slowly, they - * will not be responsive to load changes on server side, and may - * over-throttle or under-throttle. - * - * Generated from protobuf field .google.protobuf.Duration period = 1; - */ - protected $period = null; - /** - * If it has been at least one `period` since the last load adjustment, the - * client should multiply the current load by this value to get the new target - * load. For example, if the current load is 100 and `factor` is 0.8, the new - * target load should be 80. After adjusting, the client should ignore - * `factor` until another `period` has passed. - * The client can measure its load using any unit that's comparable over time. - * For example, QPS can be used as long as each request involves a similar - * amount of work. - * - * Generated from protobuf field double factor = 2; - */ - protected $factor = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Duration $period - * Time that clients should wait before adjusting the target rate again. - * If clients adjust rate too frequently, the impact of the previous - * adjustment may not have been taken into account and may - * over-throttle or under-throttle. If clients adjust rate too slowly, they - * will not be responsive to load changes on server side, and may - * over-throttle or under-throttle. - * @type float $factor - * If it has been at least one `period` since the last load adjustment, the - * client should multiply the current load by this value to get the new target - * load. For example, if the current load is 100 and `factor` is 0.8, the new - * target load should be 80. After adjusting, the client should ignore - * `factor` until another `period` has passed. - * The client can measure its load using any unit that's comparable over time. - * For example, QPS can be used as long as each request involves a similar - * amount of work. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); - parent::__construct($data); - } - - /** - * Time that clients should wait before adjusting the target rate again. - * If clients adjust rate too frequently, the impact of the previous - * adjustment may not have been taken into account and may - * over-throttle or under-throttle. If clients adjust rate too slowly, they - * will not be responsive to load changes on server side, and may - * over-throttle or under-throttle. - * - * Generated from protobuf field .google.protobuf.Duration period = 1; - * @return \Google\Protobuf\Duration|null - */ - public function getPeriod() - { - return $this->period; - } - - public function hasPeriod() - { - return isset($this->period); - } - - public function clearPeriod() - { - unset($this->period); - } - - /** - * Time that clients should wait before adjusting the target rate again. - * If clients adjust rate too frequently, the impact of the previous - * adjustment may not have been taken into account and may - * over-throttle or under-throttle. If clients adjust rate too slowly, they - * will not be responsive to load changes on server side, and may - * over-throttle or under-throttle. - * - * Generated from protobuf field .google.protobuf.Duration period = 1; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setPeriod($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->period = $var; - - return $this; - } - - /** - * If it has been at least one `period` since the last load adjustment, the - * client should multiply the current load by this value to get the new target - * load. For example, if the current load is 100 and `factor` is 0.8, the new - * target load should be 80. After adjusting, the client should ignore - * `factor` until another `period` has passed. - * The client can measure its load using any unit that's comparable over time. - * For example, QPS can be used as long as each request involves a similar - * amount of work. - * - * Generated from protobuf field double factor = 2; - * @return float - */ - public function getFactor() - { - return $this->factor; - } - - /** - * If it has been at least one `period` since the last load adjustment, the - * client should multiply the current load by this value to get the new target - * load. For example, if the current load is 100 and `factor` is 0.8, the new - * target load should be 80. After adjusting, the client should ignore - * `factor` until another `period` has passed. - * The client can measure its load using any unit that's comparable over time. - * For example, QPS can be used as long as each request involves a similar - * amount of work. - * - * Generated from protobuf field double factor = 2; - * @param float $var - * @return $this - */ - public function setFactor($var) - { - GPBUtil::checkDouble($var); - $this->factor = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamRequest.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamRequest.php deleted file mode 100644 index a80c119f70db..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamRequest.php +++ /dev/null @@ -1,412 +0,0 @@ -google.bigtable.v2.ReadChangeStreamRequest - */ -class ReadChangeStreamRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique name of the table from which to read a change stream. - * Values are of the form - * `projects//instances//tables/
`. - * Change streaming must be enabled on the table. - * - * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $table_name = ''; - /** - * This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * Single cluster routing must be configured on the profile. - * - * Generated from protobuf field string app_profile_id = 2; - */ - protected $app_profile_id = ''; - /** - * The partition to read changes from. - * - * Generated from protobuf field .google.bigtable.v2.StreamPartition partition = 3; - */ - protected $partition = null; - /** - * If specified, OK will be returned when the stream advances beyond - * this time. Otherwise, changes will be continuously delivered on the stream. - * This value is inclusive and will be truncated to microsecond granularity. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 5; - */ - protected $end_time = null; - /** - * If specified, the duration between `Heartbeat` messages on the stream. - * Otherwise, defaults to 5 seconds. - * - * Generated from protobuf field .google.protobuf.Duration heartbeat_duration = 7; - */ - protected $heartbeat_duration = null; - protected $start_from; - - /** - * @param string $tableName Required. The unique name of the table from which to read a change stream. - * Values are of the form - * `projects//instances//tables/
`. - * Change streaming must be enabled on the table. Please see - * {@see BigtableClient::tableName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\V2\ReadChangeStreamRequest - * - * @experimental - */ - public static function build(string $tableName): self - { - return (new self()) - ->setTableName($tableName); - } - - /** - * @param string $tableName Required. The unique name of the table from which to read a change stream. - * Values are of the form - * `projects//instances//tables/
`. - * Change streaming must be enabled on the table. Please see - * {@see BigtableClient::tableName()} for help formatting this field. - * @param string $appProfileId This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * Single cluster routing must be configured on the profile. - * - * @return \Google\Cloud\Bigtable\V2\ReadChangeStreamRequest - * - * @experimental - */ - public static function buildFromTableNameAppProfileId(string $tableName, string $appProfileId): self - { - return (new self()) - ->setTableName($tableName) - ->setAppProfileId($appProfileId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $table_name - * Required. The unique name of the table from which to read a change stream. - * Values are of the form - * `projects//instances//tables/
`. - * Change streaming must be enabled on the table. - * @type string $app_profile_id - * This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * Single cluster routing must be configured on the profile. - * @type \Google\Cloud\Bigtable\V2\StreamPartition $partition - * The partition to read changes from. - * @type \Google\Protobuf\Timestamp $start_time - * Start reading the stream at the specified timestamp. This timestamp must - * be within the change stream retention period, less than or equal to the - * current time, and after change stream creation, whichever is greater. - * This value is inclusive and will be truncated to microsecond granularity. - * @type \Google\Cloud\Bigtable\V2\StreamContinuationTokens $continuation_tokens - * Tokens that describe how to resume reading a stream where reading - * previously left off. If specified, changes will be read starting at the - * the position. Tokens are delivered on the stream as part of `Heartbeat` - * and `CloseStream` messages. - * If a single token is provided, the token's partition must exactly match - * the request's partition. If multiple tokens are provided, as in the case - * of a partition merge, the union of the token partitions must exactly - * cover the request's partition. Otherwise, INVALID_ARGUMENT will be - * returned. - * @type \Google\Protobuf\Timestamp $end_time - * If specified, OK will be returned when the stream advances beyond - * this time. Otherwise, changes will be continuously delivered on the stream. - * This value is inclusive and will be truncated to microsecond granularity. - * @type \Google\Protobuf\Duration $heartbeat_duration - * If specified, the duration between `Heartbeat` messages on the stream. - * Otherwise, defaults to 5 seconds. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique name of the table from which to read a change stream. - * Values are of the form - * `projects//instances//tables/
`. - * Change streaming must be enabled on the table. - * - * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getTableName() - { - return $this->table_name; - } - - /** - * Required. The unique name of the table from which to read a change stream. - * Values are of the form - * `projects//instances//tables/
`. - * Change streaming must be enabled on the table. - * - * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setTableName($var) - { - GPBUtil::checkString($var, True); - $this->table_name = $var; - - return $this; - } - - /** - * This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * Single cluster routing must be configured on the profile. - * - * Generated from protobuf field string app_profile_id = 2; - * @return string - */ - public function getAppProfileId() - { - return $this->app_profile_id; - } - - /** - * This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * Single cluster routing must be configured on the profile. - * - * Generated from protobuf field string app_profile_id = 2; - * @param string $var - * @return $this - */ - public function setAppProfileId($var) - { - GPBUtil::checkString($var, True); - $this->app_profile_id = $var; - - return $this; - } - - /** - * The partition to read changes from. - * - * Generated from protobuf field .google.bigtable.v2.StreamPartition partition = 3; - * @return \Google\Cloud\Bigtable\V2\StreamPartition|null - */ - public function getPartition() - { - return $this->partition; - } - - public function hasPartition() - { - return isset($this->partition); - } - - public function clearPartition() - { - unset($this->partition); - } - - /** - * The partition to read changes from. - * - * Generated from protobuf field .google.bigtable.v2.StreamPartition partition = 3; - * @param \Google\Cloud\Bigtable\V2\StreamPartition $var - * @return $this - */ - public function setPartition($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\StreamPartition::class); - $this->partition = $var; - - return $this; - } - - /** - * Start reading the stream at the specified timestamp. This timestamp must - * be within the change stream retention period, less than or equal to the - * current time, and after change stream creation, whichever is greater. - * This value is inclusive and will be truncated to microsecond granularity. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 4; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->readOneof(4); - } - - public function hasStartTime() - { - return $this->hasOneof(4); - } - - /** - * Start reading the stream at the specified timestamp. This timestamp must - * be within the change stream retention period, less than or equal to the - * current time, and after change stream creation, whichever is greater. - * This value is inclusive and will be truncated to microsecond granularity. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Tokens that describe how to resume reading a stream where reading - * previously left off. If specified, changes will be read starting at the - * the position. Tokens are delivered on the stream as part of `Heartbeat` - * and `CloseStream` messages. - * If a single token is provided, the token's partition must exactly match - * the request's partition. If multiple tokens are provided, as in the case - * of a partition merge, the union of the token partitions must exactly - * cover the request's partition. Otherwise, INVALID_ARGUMENT will be - * returned. - * - * Generated from protobuf field .google.bigtable.v2.StreamContinuationTokens continuation_tokens = 6; - * @return \Google\Cloud\Bigtable\V2\StreamContinuationTokens|null - */ - public function getContinuationTokens() - { - return $this->readOneof(6); - } - - public function hasContinuationTokens() - { - return $this->hasOneof(6); - } - - /** - * Tokens that describe how to resume reading a stream where reading - * previously left off. If specified, changes will be read starting at the - * the position. Tokens are delivered on the stream as part of `Heartbeat` - * and `CloseStream` messages. - * If a single token is provided, the token's partition must exactly match - * the request's partition. If multiple tokens are provided, as in the case - * of a partition merge, the union of the token partitions must exactly - * cover the request's partition. Otherwise, INVALID_ARGUMENT will be - * returned. - * - * Generated from protobuf field .google.bigtable.v2.StreamContinuationTokens continuation_tokens = 6; - * @param \Google\Cloud\Bigtable\V2\StreamContinuationTokens $var - * @return $this - */ - public function setContinuationTokens($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\StreamContinuationTokens::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * If specified, OK will be returned when the stream advances beyond - * this time. Otherwise, changes will be continuously delivered on the stream. - * This value is inclusive and will be truncated to microsecond granularity. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 5; - * @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); - } - - /** - * If specified, OK will be returned when the stream advances beyond - * this time. Otherwise, changes will be continuously delivered on the stream. - * This value is inclusive and will be truncated to microsecond granularity. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 5; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * If specified, the duration between `Heartbeat` messages on the stream. - * Otherwise, defaults to 5 seconds. - * - * Generated from protobuf field .google.protobuf.Duration heartbeat_duration = 7; - * @return \Google\Protobuf\Duration|null - */ - public function getHeartbeatDuration() - { - return $this->heartbeat_duration; - } - - public function hasHeartbeatDuration() - { - return isset($this->heartbeat_duration); - } - - public function clearHeartbeatDuration() - { - unset($this->heartbeat_duration); - } - - /** - * If specified, the duration between `Heartbeat` messages on the stream. - * Otherwise, defaults to 5 seconds. - * - * Generated from protobuf field .google.protobuf.Duration heartbeat_duration = 7; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setHeartbeatDuration($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->heartbeat_duration = $var; - - return $this; - } - - /** - * @return string - */ - public function getStartFrom() - { - return $this->whichOneof("start_from"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse.php deleted file mode 100644 index eb65b2eb99cc..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse.php +++ /dev/null @@ -1,142 +0,0 @@ -google.bigtable.v2.ReadChangeStreamResponse - */ -class ReadChangeStreamResponse extends \Google\Protobuf\Internal\Message -{ - protected $stream_record; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\DataChange $data_change - * A mutation to the partition. - * @type \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\Heartbeat $heartbeat - * A periodic heartbeat message. - * @type \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\CloseStream $close_stream - * An indication that the stream should be closed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); - parent::__construct($data); - } - - /** - * A mutation to the partition. - * - * Generated from protobuf field .google.bigtable.v2.ReadChangeStreamResponse.DataChange data_change = 1; - * @return \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\DataChange|null - */ - public function getDataChange() - { - return $this->readOneof(1); - } - - public function hasDataChange() - { - return $this->hasOneof(1); - } - - /** - * A mutation to the partition. - * - * Generated from protobuf field .google.bigtable.v2.ReadChangeStreamResponse.DataChange data_change = 1; - * @param \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\DataChange $var - * @return $this - */ - public function setDataChange($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\DataChange::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A periodic heartbeat message. - * - * Generated from protobuf field .google.bigtable.v2.ReadChangeStreamResponse.Heartbeat heartbeat = 2; - * @return \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\Heartbeat|null - */ - public function getHeartbeat() - { - return $this->readOneof(2); - } - - public function hasHeartbeat() - { - return $this->hasOneof(2); - } - - /** - * A periodic heartbeat message. - * - * Generated from protobuf field .google.bigtable.v2.ReadChangeStreamResponse.Heartbeat heartbeat = 2; - * @param \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\Heartbeat $var - * @return $this - */ - public function setHeartbeat($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\Heartbeat::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * An indication that the stream should be closed. - * - * Generated from protobuf field .google.bigtable.v2.ReadChangeStreamResponse.CloseStream close_stream = 3; - * @return \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\CloseStream|null - */ - public function getCloseStream() - { - return $this->readOneof(3); - } - - public function hasCloseStream() - { - return $this->hasOneof(3); - } - - /** - * An indication that the stream should be closed. - * - * Generated from protobuf field .google.bigtable.v2.ReadChangeStreamResponse.CloseStream close_stream = 3; - * @param \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\CloseStream $var - * @return $this - */ - public function setCloseStream($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\CloseStream::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getStreamRecord() - { - return $this->whichOneof("stream_record"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/CloseStream.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/CloseStream.php deleted file mode 100644 index d20c88c0c265..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/CloseStream.php +++ /dev/null @@ -1,176 +0,0 @@ -google.bigtable.v2.ReadChangeStreamResponse.CloseStream - */ -class CloseStream extends \Google\Protobuf\Internal\Message -{ - /** - * The status of the stream. - * - * Generated from protobuf field .google.rpc.Status status = 1; - */ - protected $status = null; - /** - * If non-empty, contains the information needed to resume reading their - * associated partitions. - * - * Generated from protobuf field repeated .google.bigtable.v2.StreamContinuationToken continuation_tokens = 2; - */ - private $continuation_tokens; - /** - * If non-empty, contains the new partitions to start reading from, which - * are related to but not necessarily identical to the partitions for the - * above `continuation_tokens`. - * - * Generated from protobuf field repeated .google.bigtable.v2.StreamPartition new_partitions = 3; - */ - private $new_partitions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Rpc\Status $status - * The status of the stream. - * @type \Google\Cloud\Bigtable\V2\StreamContinuationToken[] $continuation_tokens - * If non-empty, contains the information needed to resume reading their - * associated partitions. - * @type \Google\Cloud\Bigtable\V2\StreamPartition[] $new_partitions - * If non-empty, contains the new partitions to start reading from, which - * are related to but not necessarily identical to the partitions for the - * above `continuation_tokens`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); - parent::__construct($data); - } - - /** - * The status of the stream. - * - * Generated from protobuf field .google.rpc.Status status = 1; - * @return \Google\Rpc\Status|null - */ - public function getStatus() - { - return $this->status; - } - - public function hasStatus() - { - return isset($this->status); - } - - public function clearStatus() - { - unset($this->status); - } - - /** - * The status of the stream. - * - * Generated from protobuf field .google.rpc.Status status = 1; - * @param \Google\Rpc\Status $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Status::class); - $this->status = $var; - - return $this; - } - - /** - * If non-empty, contains the information needed to resume reading their - * associated partitions. - * - * Generated from protobuf field repeated .google.bigtable.v2.StreamContinuationToken continuation_tokens = 2; - * @return RepeatedField<\Google\Cloud\Bigtable\V2\StreamContinuationToken> - */ - public function getContinuationTokens() - { - return $this->continuation_tokens; - } - - /** - * If non-empty, contains the information needed to resume reading their - * associated partitions. - * - * Generated from protobuf field repeated .google.bigtable.v2.StreamContinuationToken continuation_tokens = 2; - * @param \Google\Cloud\Bigtable\V2\StreamContinuationToken[] $var - * @return $this - */ - public function setContinuationTokens($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\StreamContinuationToken::class); - $this->continuation_tokens = $arr; - - return $this; - } - - /** - * If non-empty, contains the new partitions to start reading from, which - * are related to but not necessarily identical to the partitions for the - * above `continuation_tokens`. - * - * Generated from protobuf field repeated .google.bigtable.v2.StreamPartition new_partitions = 3; - * @return RepeatedField<\Google\Cloud\Bigtable\V2\StreamPartition> - */ - public function getNewPartitions() - { - return $this->new_partitions; - } - - /** - * If non-empty, contains the new partitions to start reading from, which - * are related to but not necessarily identical to the partitions for the - * above `continuation_tokens`. - * - * Generated from protobuf field repeated .google.bigtable.v2.StreamPartition new_partitions = 3; - * @param \Google\Cloud\Bigtable\V2\StreamPartition[] $var - * @return $this - */ - public function setNewPartitions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\StreamPartition::class); - $this->new_partitions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/DataChange.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/DataChange.php deleted file mode 100644 index 2a7017ba9c82..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/DataChange.php +++ /dev/null @@ -1,436 +0,0 @@ -google.bigtable.v2.ReadChangeStreamResponse.DataChange - */ -class DataChange extends \Google\Protobuf\Internal\Message -{ - /** - * The type of the mutation. - * - * Generated from protobuf field .google.bigtable.v2.ReadChangeStreamResponse.DataChange.Type type = 1; - */ - protected $type = 0; - /** - * The cluster where the mutation was applied. - * Not set when `type` is `GARBAGE_COLLECTION`. - * - * Generated from protobuf field string source_cluster_id = 2; - */ - protected $source_cluster_id = ''; - /** - * The row key for all mutations that are part of this `DataChange`. - * If the `DataChange` is chunked across multiple messages, then this field - * will only be set for the first message. - * - * Generated from protobuf field bytes row_key = 3; - */ - protected $row_key = ''; - /** - * The timestamp at which the mutation was applied on the Bigtable server. - * - * Generated from protobuf field .google.protobuf.Timestamp commit_timestamp = 4; - */ - protected $commit_timestamp = null; - /** - * A value that lets stream consumers reconstruct Bigtable's - * conflict resolution semantics. - * https://cloud.google.com/bigtable/docs/writes#conflict-resolution - * In the event that the same row key, column family, column qualifier, - * timestamp are modified on different clusters at the same - * `commit_timestamp`, the mutation with the larger `tiebreaker` will be the - * one chosen for the eventually consistent state of the system. - * - * Generated from protobuf field int32 tiebreaker = 5; - */ - protected $tiebreaker = 0; - /** - * The mutations associated with this change to the partition. - * May contain complete mutations or chunks of a multi-message chunked - * `DataChange` record. - * - * Generated from protobuf field repeated .google.bigtable.v2.ReadChangeStreamResponse.MutationChunk chunks = 6; - */ - private $chunks; - /** - * When true, indicates that the entire `DataChange` has been read - * and the client can safely process the message. - * - * Generated from protobuf field bool done = 8; - */ - protected $done = false; - /** - * An encoded position for this stream's partition to restart reading from. - * This token is for the StreamPartition from the request. - * - * Generated from protobuf field string token = 9; - */ - protected $token = ''; - /** - * An estimate of the commit timestamp that is usually lower than or equal - * to any timestamp for a record that will be delivered in the future on the - * stream. It is possible that, under particular circumstances that a future - * record has a timestamp that is lower than a previously seen timestamp. - * For an example usage see - * https://beam.apache.org/documentation/basics/#watermarks - * - * Generated from protobuf field .google.protobuf.Timestamp estimated_low_watermark = 10; - */ - protected $estimated_low_watermark = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * The type of the mutation. - * @type string $source_cluster_id - * The cluster where the mutation was applied. - * Not set when `type` is `GARBAGE_COLLECTION`. - * @type string $row_key - * The row key for all mutations that are part of this `DataChange`. - * If the `DataChange` is chunked across multiple messages, then this field - * will only be set for the first message. - * @type \Google\Protobuf\Timestamp $commit_timestamp - * The timestamp at which the mutation was applied on the Bigtable server. - * @type int $tiebreaker - * A value that lets stream consumers reconstruct Bigtable's - * conflict resolution semantics. - * https://cloud.google.com/bigtable/docs/writes#conflict-resolution - * In the event that the same row key, column family, column qualifier, - * timestamp are modified on different clusters at the same - * `commit_timestamp`, the mutation with the larger `tiebreaker` will be the - * one chosen for the eventually consistent state of the system. - * @type \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\MutationChunk[] $chunks - * The mutations associated with this change to the partition. - * May contain complete mutations or chunks of a multi-message chunked - * `DataChange` record. - * @type bool $done - * When true, indicates that the entire `DataChange` has been read - * and the client can safely process the message. - * @type string $token - * An encoded position for this stream's partition to restart reading from. - * This token is for the StreamPartition from the request. - * @type \Google\Protobuf\Timestamp $estimated_low_watermark - * An estimate of the commit timestamp that is usually lower than or equal - * to any timestamp for a record that will be delivered in the future on the - * stream. It is possible that, under particular circumstances that a future - * record has a timestamp that is lower than a previously seen timestamp. - * For an example usage see - * https://beam.apache.org/documentation/basics/#watermarks - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); - parent::__construct($data); - } - - /** - * The type of the mutation. - * - * Generated from protobuf field .google.bigtable.v2.ReadChangeStreamResponse.DataChange.Type type = 1; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of the mutation. - * - * Generated from protobuf field .google.bigtable.v2.ReadChangeStreamResponse.DataChange.Type type = 1; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\DataChange\Type::class); - $this->type = $var; - - return $this; - } - - /** - * The cluster where the mutation was applied. - * Not set when `type` is `GARBAGE_COLLECTION`. - * - * Generated from protobuf field string source_cluster_id = 2; - * @return string - */ - public function getSourceClusterId() - { - return $this->source_cluster_id; - } - - /** - * The cluster where the mutation was applied. - * Not set when `type` is `GARBAGE_COLLECTION`. - * - * Generated from protobuf field string source_cluster_id = 2; - * @param string $var - * @return $this - */ - public function setSourceClusterId($var) - { - GPBUtil::checkString($var, True); - $this->source_cluster_id = $var; - - return $this; - } - - /** - * The row key for all mutations that are part of this `DataChange`. - * If the `DataChange` is chunked across multiple messages, then this field - * will only be set for the first message. - * - * Generated from protobuf field bytes row_key = 3; - * @return string - */ - public function getRowKey() - { - return $this->row_key; - } - - /** - * The row key for all mutations that are part of this `DataChange`. - * If the `DataChange` is chunked across multiple messages, then this field - * will only be set for the first message. - * - * Generated from protobuf field bytes row_key = 3; - * @param string $var - * @return $this - */ - public function setRowKey($var) - { - GPBUtil::checkString($var, False); - $this->row_key = $var; - - return $this; - } - - /** - * The timestamp at which the mutation was applied on the Bigtable server. - * - * Generated from protobuf field .google.protobuf.Timestamp commit_timestamp = 4; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCommitTimestamp() - { - return $this->commit_timestamp; - } - - public function hasCommitTimestamp() - { - return isset($this->commit_timestamp); - } - - public function clearCommitTimestamp() - { - unset($this->commit_timestamp); - } - - /** - * The timestamp at which the mutation was applied on the Bigtable server. - * - * Generated from protobuf field .google.protobuf.Timestamp commit_timestamp = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCommitTimestamp($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->commit_timestamp = $var; - - return $this; - } - - /** - * A value that lets stream consumers reconstruct Bigtable's - * conflict resolution semantics. - * https://cloud.google.com/bigtable/docs/writes#conflict-resolution - * In the event that the same row key, column family, column qualifier, - * timestamp are modified on different clusters at the same - * `commit_timestamp`, the mutation with the larger `tiebreaker` will be the - * one chosen for the eventually consistent state of the system. - * - * Generated from protobuf field int32 tiebreaker = 5; - * @return int - */ - public function getTiebreaker() - { - return $this->tiebreaker; - } - - /** - * A value that lets stream consumers reconstruct Bigtable's - * conflict resolution semantics. - * https://cloud.google.com/bigtable/docs/writes#conflict-resolution - * In the event that the same row key, column family, column qualifier, - * timestamp are modified on different clusters at the same - * `commit_timestamp`, the mutation with the larger `tiebreaker` will be the - * one chosen for the eventually consistent state of the system. - * - * Generated from protobuf field int32 tiebreaker = 5; - * @param int $var - * @return $this - */ - public function setTiebreaker($var) - { - GPBUtil::checkInt32($var); - $this->tiebreaker = $var; - - return $this; - } - - /** - * The mutations associated with this change to the partition. - * May contain complete mutations or chunks of a multi-message chunked - * `DataChange` record. - * - * Generated from protobuf field repeated .google.bigtable.v2.ReadChangeStreamResponse.MutationChunk chunks = 6; - * @return RepeatedField<\Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\MutationChunk> - */ - public function getChunks() - { - return $this->chunks; - } - - /** - * The mutations associated with this change to the partition. - * May contain complete mutations or chunks of a multi-message chunked - * `DataChange` record. - * - * Generated from protobuf field repeated .google.bigtable.v2.ReadChangeStreamResponse.MutationChunk chunks = 6; - * @param \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\MutationChunk[] $var - * @return $this - */ - public function setChunks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\MutationChunk::class); - $this->chunks = $arr; - - return $this; - } - - /** - * When true, indicates that the entire `DataChange` has been read - * and the client can safely process the message. - * - * Generated from protobuf field bool done = 8; - * @return bool - */ - public function getDone() - { - return $this->done; - } - - /** - * When true, indicates that the entire `DataChange` has been read - * and the client can safely process the message. - * - * Generated from protobuf field bool done = 8; - * @param bool $var - * @return $this - */ - public function setDone($var) - { - GPBUtil::checkBool($var); - $this->done = $var; - - return $this; - } - - /** - * An encoded position for this stream's partition to restart reading from. - * This token is for the StreamPartition from the request. - * - * Generated from protobuf field string token = 9; - * @return string - */ - public function getToken() - { - return $this->token; - } - - /** - * An encoded position for this stream's partition to restart reading from. - * This token is for the StreamPartition from the request. - * - * Generated from protobuf field string token = 9; - * @param string $var - * @return $this - */ - public function setToken($var) - { - GPBUtil::checkString($var, True); - $this->token = $var; - - return $this; - } - - /** - * An estimate of the commit timestamp that is usually lower than or equal - * to any timestamp for a record that will be delivered in the future on the - * stream. It is possible that, under particular circumstances that a future - * record has a timestamp that is lower than a previously seen timestamp. - * For an example usage see - * https://beam.apache.org/documentation/basics/#watermarks - * - * Generated from protobuf field .google.protobuf.Timestamp estimated_low_watermark = 10; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEstimatedLowWatermark() - { - return $this->estimated_low_watermark; - } - - public function hasEstimatedLowWatermark() - { - return isset($this->estimated_low_watermark); - } - - public function clearEstimatedLowWatermark() - { - unset($this->estimated_low_watermark); - } - - /** - * An estimate of the commit timestamp that is usually lower than or equal - * to any timestamp for a record that will be delivered in the future on the - * stream. It is possible that, under particular circumstances that a future - * record has a timestamp that is lower than a previously seen timestamp. - * For an example usage see - * https://beam.apache.org/documentation/basics/#watermarks - * - * Generated from protobuf field .google.protobuf.Timestamp estimated_low_watermark = 10; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEstimatedLowWatermark($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->estimated_low_watermark = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/DataChange/Type.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/DataChange/Type.php deleted file mode 100644 index 7ec3437cf671..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/DataChange/Type.php +++ /dev/null @@ -1,69 +0,0 @@ -google.bigtable.v2.ReadChangeStreamResponse.DataChange.Type - */ -class Type -{ - /** - * The type is unspecified. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * A user-initiated mutation. - * - * Generated from protobuf enum USER = 1; - */ - const USER = 1; - /** - * A system-initiated mutation as part of garbage collection. - * https://cloud.google.com/bigtable/docs/garbage-collection - * - * Generated from protobuf enum GARBAGE_COLLECTION = 2; - */ - const GARBAGE_COLLECTION = 2; - /** - * This is a continuation of a multi-message change. - * - * Generated from protobuf enum CONTINUATION = 3; - */ - const CONTINUATION = 3; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::USER => 'USER', - self::GARBAGE_COLLECTION => 'GARBAGE_COLLECTION', - self::CONTINUATION => 'CONTINUATION', - ]; - - 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/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/Heartbeat.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/Heartbeat.php deleted file mode 100644 index 83cd2e0e6fc1..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/Heartbeat.php +++ /dev/null @@ -1,146 +0,0 @@ -google.bigtable.v2.ReadChangeStreamResponse.Heartbeat - */ -class Heartbeat extends \Google\Protobuf\Internal\Message -{ - /** - * A token that can be provided to a subsequent `ReadChangeStream` call - * to pick up reading at the current stream position. - * - * Generated from protobuf field .google.bigtable.v2.StreamContinuationToken continuation_token = 1; - */ - protected $continuation_token = null; - /** - * An estimate of the commit timestamp that is usually lower than or equal - * to any timestamp for a record that will be delivered in the future on the - * stream. It is possible that, under particular circumstances that a future - * record has a timestamp that is lower than a previously seen timestamp. - * For an example usage see - * https://beam.apache.org/documentation/basics/#watermarks - * - * Generated from protobuf field .google.protobuf.Timestamp estimated_low_watermark = 2; - */ - protected $estimated_low_watermark = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\StreamContinuationToken $continuation_token - * A token that can be provided to a subsequent `ReadChangeStream` call - * to pick up reading at the current stream position. - * @type \Google\Protobuf\Timestamp $estimated_low_watermark - * An estimate of the commit timestamp that is usually lower than or equal - * to any timestamp for a record that will be delivered in the future on the - * stream. It is possible that, under particular circumstances that a future - * record has a timestamp that is lower than a previously seen timestamp. - * For an example usage see - * https://beam.apache.org/documentation/basics/#watermarks - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); - parent::__construct($data); - } - - /** - * A token that can be provided to a subsequent `ReadChangeStream` call - * to pick up reading at the current stream position. - * - * Generated from protobuf field .google.bigtable.v2.StreamContinuationToken continuation_token = 1; - * @return \Google\Cloud\Bigtable\V2\StreamContinuationToken|null - */ - public function getContinuationToken() - { - return $this->continuation_token; - } - - public function hasContinuationToken() - { - return isset($this->continuation_token); - } - - public function clearContinuationToken() - { - unset($this->continuation_token); - } - - /** - * A token that can be provided to a subsequent `ReadChangeStream` call - * to pick up reading at the current stream position. - * - * Generated from protobuf field .google.bigtable.v2.StreamContinuationToken continuation_token = 1; - * @param \Google\Cloud\Bigtable\V2\StreamContinuationToken $var - * @return $this - */ - public function setContinuationToken($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\StreamContinuationToken::class); - $this->continuation_token = $var; - - return $this; - } - - /** - * An estimate of the commit timestamp that is usually lower than or equal - * to any timestamp for a record that will be delivered in the future on the - * stream. It is possible that, under particular circumstances that a future - * record has a timestamp that is lower than a previously seen timestamp. - * For an example usage see - * https://beam.apache.org/documentation/basics/#watermarks - * - * Generated from protobuf field .google.protobuf.Timestamp estimated_low_watermark = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEstimatedLowWatermark() - { - return $this->estimated_low_watermark; - } - - public function hasEstimatedLowWatermark() - { - return isset($this->estimated_low_watermark); - } - - public function clearEstimatedLowWatermark() - { - unset($this->estimated_low_watermark); - } - - /** - * An estimate of the commit timestamp that is usually lower than or equal - * to any timestamp for a record that will be delivered in the future on the - * stream. It is possible that, under particular circumstances that a future - * record has a timestamp that is lower than a previously seen timestamp. - * For an example usage see - * https://beam.apache.org/documentation/basics/#watermarks - * - * Generated from protobuf field .google.protobuf.Timestamp estimated_low_watermark = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEstimatedLowWatermark($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->estimated_low_watermark = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/MutationChunk.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/MutationChunk.php deleted file mode 100644 index 34cf91422ec1..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/MutationChunk.php +++ /dev/null @@ -1,133 +0,0 @@ -google.bigtable.v2.ReadChangeStreamResponse.MutationChunk - */ -class MutationChunk extends \Google\Protobuf\Internal\Message -{ - /** - * If set, then the mutation is a `SetCell` with a chunked value across - * multiple messages. - * - * Generated from protobuf field .google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo chunk_info = 1; - */ - protected $chunk_info = null; - /** - * If this is a continuation of a chunked message (`chunked_value_offset` > - * 0), ignore all fields except the `SetCell`'s value and merge it with - * the previous message by concatenating the value fields. - * - * Generated from protobuf field .google.bigtable.v2.Mutation mutation = 2; - */ - protected $mutation = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\MutationChunk\ChunkInfo $chunk_info - * If set, then the mutation is a `SetCell` with a chunked value across - * multiple messages. - * @type \Google\Cloud\Bigtable\V2\Mutation $mutation - * If this is a continuation of a chunked message (`chunked_value_offset` > - * 0), ignore all fields except the `SetCell`'s value and merge it with - * the previous message by concatenating the value fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); - parent::__construct($data); - } - - /** - * If set, then the mutation is a `SetCell` with a chunked value across - * multiple messages. - * - * Generated from protobuf field .google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo chunk_info = 1; - * @return \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\MutationChunk\ChunkInfo|null - */ - public function getChunkInfo() - { - return $this->chunk_info; - } - - public function hasChunkInfo() - { - return isset($this->chunk_info); - } - - public function clearChunkInfo() - { - unset($this->chunk_info); - } - - /** - * If set, then the mutation is a `SetCell` with a chunked value across - * multiple messages. - * - * Generated from protobuf field .google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo chunk_info = 1; - * @param \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\MutationChunk\ChunkInfo $var - * @return $this - */ - public function setChunkInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\ReadChangeStreamResponse\MutationChunk\ChunkInfo::class); - $this->chunk_info = $var; - - return $this; - } - - /** - * If this is a continuation of a chunked message (`chunked_value_offset` > - * 0), ignore all fields except the `SetCell`'s value and merge it with - * the previous message by concatenating the value fields. - * - * Generated from protobuf field .google.bigtable.v2.Mutation mutation = 2; - * @return \Google\Cloud\Bigtable\V2\Mutation|null - */ - public function getMutation() - { - return $this->mutation; - } - - public function hasMutation() - { - return isset($this->mutation); - } - - public function clearMutation() - { - unset($this->mutation); - } - - /** - * If this is a continuation of a chunked message (`chunked_value_offset` > - * 0), ignore all fields except the `SetCell`'s value and merge it with - * the previous message by concatenating the value fields. - * - * Generated from protobuf field .google.bigtable.v2.Mutation mutation = 2; - * @param \Google\Cloud\Bigtable\V2\Mutation $var - * @return $this - */ - public function setMutation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Mutation::class); - $this->mutation = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/MutationChunk/ChunkInfo.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/MutationChunk/ChunkInfo.php deleted file mode 100644 index a4ff7736a1f9..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadChangeStreamResponse/MutationChunk/ChunkInfo.php +++ /dev/null @@ -1,141 +0,0 @@ -google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo - */ -class ChunkInfo extends \Google\Protobuf\Internal\Message -{ - /** - * The total value size of all the chunks that make up the `SetCell`. - * - * Generated from protobuf field int32 chunked_value_size = 1; - */ - protected $chunked_value_size = 0; - /** - * The byte offset of this chunk into the total value size of the - * mutation. - * - * Generated from protobuf field int32 chunked_value_offset = 2; - */ - protected $chunked_value_offset = 0; - /** - * When true, this is the last chunk of a chunked `SetCell`. - * - * Generated from protobuf field bool last_chunk = 3; - */ - protected $last_chunk = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $chunked_value_size - * The total value size of all the chunks that make up the `SetCell`. - * @type int $chunked_value_offset - * The byte offset of this chunk into the total value size of the - * mutation. - * @type bool $last_chunk - * When true, this is the last chunk of a chunked `SetCell`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); - parent::__construct($data); - } - - /** - * The total value size of all the chunks that make up the `SetCell`. - * - * Generated from protobuf field int32 chunked_value_size = 1; - * @return int - */ - public function getChunkedValueSize() - { - return $this->chunked_value_size; - } - - /** - * The total value size of all the chunks that make up the `SetCell`. - * - * Generated from protobuf field int32 chunked_value_size = 1; - * @param int $var - * @return $this - */ - public function setChunkedValueSize($var) - { - GPBUtil::checkInt32($var); - $this->chunked_value_size = $var; - - return $this; - } - - /** - * The byte offset of this chunk into the total value size of the - * mutation. - * - * Generated from protobuf field int32 chunked_value_offset = 2; - * @return int - */ - public function getChunkedValueOffset() - { - return $this->chunked_value_offset; - } - - /** - * The byte offset of this chunk into the total value size of the - * mutation. - * - * Generated from protobuf field int32 chunked_value_offset = 2; - * @param int $var - * @return $this - */ - public function setChunkedValueOffset($var) - { - GPBUtil::checkInt32($var); - $this->chunked_value_offset = $var; - - return $this; - } - - /** - * When true, this is the last chunk of a chunked `SetCell`. - * - * Generated from protobuf field bool last_chunk = 3; - * @return bool - */ - public function getLastChunk() - { - return $this->last_chunk; - } - - /** - * When true, this is the last chunk of a chunked `SetCell`. - * - * Generated from protobuf field bool last_chunk = 3; - * @param bool $var - * @return $this - */ - public function setLastChunk($var) - { - GPBUtil::checkBool($var); - $this->last_chunk = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadIterationStats.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadIterationStats.php deleted file mode 100644 index 2f9fbf18b90c..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadIterationStats.php +++ /dev/null @@ -1,179 +0,0 @@ -google.bigtable.v2.ReadIterationStats - */ -class ReadIterationStats extends \Google\Protobuf\Internal\Message -{ - /** - * The rows seen (scanned) as part of the request. This includes the count of - * rows returned, as captured below. - * - * Generated from protobuf field int64 rows_seen_count = 1; - */ - protected $rows_seen_count = 0; - /** - * The rows returned as part of the request. - * - * Generated from protobuf field int64 rows_returned_count = 2; - */ - protected $rows_returned_count = 0; - /** - * The cells seen (scanned) as part of the request. This includes the count of - * cells returned, as captured below. - * - * Generated from protobuf field int64 cells_seen_count = 3; - */ - protected $cells_seen_count = 0; - /** - * The cells returned as part of the request. - * - * Generated from protobuf field int64 cells_returned_count = 4; - */ - protected $cells_returned_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $rows_seen_count - * The rows seen (scanned) as part of the request. This includes the count of - * rows returned, as captured below. - * @type int|string $rows_returned_count - * The rows returned as part of the request. - * @type int|string $cells_seen_count - * The cells seen (scanned) as part of the request. This includes the count of - * cells returned, as captured below. - * @type int|string $cells_returned_count - * The cells returned as part of the request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\RequestStats::initOnce(); - parent::__construct($data); - } - - /** - * The rows seen (scanned) as part of the request. This includes the count of - * rows returned, as captured below. - * - * Generated from protobuf field int64 rows_seen_count = 1; - * @return int|string - */ - public function getRowsSeenCount() - { - return $this->rows_seen_count; - } - - /** - * The rows seen (scanned) as part of the request. This includes the count of - * rows returned, as captured below. - * - * Generated from protobuf field int64 rows_seen_count = 1; - * @param int|string $var - * @return $this - */ - public function setRowsSeenCount($var) - { - GPBUtil::checkInt64($var); - $this->rows_seen_count = $var; - - return $this; - } - - /** - * The rows returned as part of the request. - * - * Generated from protobuf field int64 rows_returned_count = 2; - * @return int|string - */ - public function getRowsReturnedCount() - { - return $this->rows_returned_count; - } - - /** - * The rows returned as part of the request. - * - * Generated from protobuf field int64 rows_returned_count = 2; - * @param int|string $var - * @return $this - */ - public function setRowsReturnedCount($var) - { - GPBUtil::checkInt64($var); - $this->rows_returned_count = $var; - - return $this; - } - - /** - * The cells seen (scanned) as part of the request. This includes the count of - * cells returned, as captured below. - * - * Generated from protobuf field int64 cells_seen_count = 3; - * @return int|string - */ - public function getCellsSeenCount() - { - return $this->cells_seen_count; - } - - /** - * The cells seen (scanned) as part of the request. This includes the count of - * cells returned, as captured below. - * - * Generated from protobuf field int64 cells_seen_count = 3; - * @param int|string $var - * @return $this - */ - public function setCellsSeenCount($var) - { - GPBUtil::checkInt64($var); - $this->cells_seen_count = $var; - - return $this; - } - - /** - * The cells returned as part of the request. - * - * Generated from protobuf field int64 cells_returned_count = 4; - * @return int|string - */ - public function getCellsReturnedCount() - { - return $this->cells_returned_count; - } - - /** - * The cells returned as part of the request. - * - * Generated from protobuf field int64 cells_returned_count = 4; - * @param int|string $var - * @return $this - */ - public function setCellsReturnedCount($var) - { - GPBUtil::checkInt64($var); - $this->cells_returned_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadModifyWriteRowRequest.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadModifyWriteRowRequest.php deleted file mode 100644 index 566cff663dce..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadModifyWriteRowRequest.php +++ /dev/null @@ -1,302 +0,0 @@ -google.bigtable.v2.ReadModifyWriteRowRequest - */ -class ReadModifyWriteRowRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The unique name of the table to which the read/modify/write rules - * should be applied. - * Values are of the form - * `projects//instances//tables/
`. - * - * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $table_name = ''; - /** - * Optional. The unique name of the AuthorizedView to which the - * read/modify/write rules should be applied. - * Values are of the form - * `projects//instances//tables/
/authorizedViews/`. - * - * Generated from protobuf field string authorized_view_name = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $authorized_view_name = ''; - /** - * This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * - * Generated from protobuf field string app_profile_id = 4; - */ - protected $app_profile_id = ''; - /** - * Required. The key of the row to which the read/modify/write rules should be - * applied. - * - * Generated from protobuf field bytes row_key = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $row_key = ''; - /** - * Required. Rules specifying how the specified row's contents are to be - * transformed into writes. Entries are applied in order, meaning that earlier - * rules will affect the results of later ones. At least one entry must be - * specified, and there can be at most 100000 rules. - * - * Generated from protobuf field repeated .google.bigtable.v2.ReadModifyWriteRule rules = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - private $rules; - - /** - * @param string $tableName Optional. The unique name of the table to which the read/modify/write rules - * should be applied. - * - * Values are of the form - * `projects//instances//tables/
`. Please see - * {@see BigtableClient::tableName()} for help formatting this field. - * @param string $rowKey Required. The key of the row to which the read/modify/write rules should be - * applied. - * @param \Google\Cloud\Bigtable\V2\ReadModifyWriteRule[] $rules Required. Rules specifying how the specified row's contents are to be - * transformed into writes. Entries are applied in order, meaning that earlier - * rules will affect the results of later ones. At least one entry must be - * specified, and there can be at most 100000 rules. - * - * @return \Google\Cloud\Bigtable\V2\ReadModifyWriteRowRequest - * - * @experimental - */ - public static function build(string $tableName, string $rowKey, array $rules): self - { - return (new self()) - ->setTableName($tableName) - ->setRowKey($rowKey) - ->setRules($rules); - } - - /** - * @param string $tableName Optional. The unique name of the table to which the read/modify/write rules - * should be applied. - * - * Values are of the form - * `projects//instances//tables/
`. Please see - * {@see BigtableClient::tableName()} for help formatting this field. - * @param string $rowKey Required. The key of the row to which the read/modify/write rules should be - * applied. - * @param \Google\Cloud\Bigtable\V2\ReadModifyWriteRule[] $rules Required. Rules specifying how the specified row's contents are to be - * transformed into writes. Entries are applied in order, meaning that earlier - * rules will affect the results of later ones. At least one entry must be - * specified, and there can be at most 100000 rules. - * @param string $appProfileId This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * - * @return \Google\Cloud\Bigtable\V2\ReadModifyWriteRowRequest - * - * @experimental - */ - public static function buildFromTableNameRowKeyRulesAppProfileId(string $tableName, string $rowKey, array $rules, string $appProfileId): self - { - return (new self()) - ->setTableName($tableName) - ->setRowKey($rowKey) - ->setRules($rules) - ->setAppProfileId($appProfileId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $table_name - * Optional. The unique name of the table to which the read/modify/write rules - * should be applied. - * Values are of the form - * `projects//instances//tables/
`. - * @type string $authorized_view_name - * Optional. The unique name of the AuthorizedView to which the - * read/modify/write rules should be applied. - * Values are of the form - * `projects//instances//tables/
/authorizedViews/`. - * @type string $app_profile_id - * This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * @type string $row_key - * Required. The key of the row to which the read/modify/write rules should be - * applied. - * @type \Google\Cloud\Bigtable\V2\ReadModifyWriteRule[] $rules - * Required. Rules specifying how the specified row's contents are to be - * transformed into writes. Entries are applied in order, meaning that earlier - * rules will affect the results of later ones. At least one entry must be - * specified, and there can be at most 100000 rules. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The unique name of the table to which the read/modify/write rules - * should be applied. - * Values are of the form - * `projects//instances//tables/
`. - * - * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getTableName() - { - return $this->table_name; - } - - /** - * Optional. The unique name of the table to which the read/modify/write rules - * should be applied. - * Values are of the form - * `projects//instances//tables/
`. - * - * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setTableName($var) - { - GPBUtil::checkString($var, True); - $this->table_name = $var; - - return $this; - } - - /** - * Optional. The unique name of the AuthorizedView to which the - * read/modify/write rules should be applied. - * Values are of the form - * `projects//instances//tables/
/authorizedViews/`. - * - * Generated from protobuf field string authorized_view_name = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getAuthorizedViewName() - { - return $this->authorized_view_name; - } - - /** - * Optional. The unique name of the AuthorizedView to which the - * read/modify/write rules should be applied. - * Values are of the form - * `projects//instances//tables/
/authorizedViews/`. - * - * Generated from protobuf field string authorized_view_name = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setAuthorizedViewName($var) - { - GPBUtil::checkString($var, True); - $this->authorized_view_name = $var; - - return $this; - } - - /** - * This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * - * Generated from protobuf field string app_profile_id = 4; - * @return string - */ - public function getAppProfileId() - { - return $this->app_profile_id; - } - - /** - * This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * - * Generated from protobuf field string app_profile_id = 4; - * @param string $var - * @return $this - */ - public function setAppProfileId($var) - { - GPBUtil::checkString($var, True); - $this->app_profile_id = $var; - - return $this; - } - - /** - * Required. The key of the row to which the read/modify/write rules should be - * applied. - * - * Generated from protobuf field bytes row_key = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getRowKey() - { - return $this->row_key; - } - - /** - * Required. The key of the row to which the read/modify/write rules should be - * applied. - * - * Generated from protobuf field bytes row_key = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setRowKey($var) - { - GPBUtil::checkString($var, False); - $this->row_key = $var; - - return $this; - } - - /** - * Required. Rules specifying how the specified row's contents are to be - * transformed into writes. Entries are applied in order, meaning that earlier - * rules will affect the results of later ones. At least one entry must be - * specified, and there can be at most 100000 rules. - * - * Generated from protobuf field repeated .google.bigtable.v2.ReadModifyWriteRule rules = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\Bigtable\V2\ReadModifyWriteRule> - */ - public function getRules() - { - return $this->rules; - } - - /** - * Required. Rules specifying how the specified row's contents are to be - * transformed into writes. Entries are applied in order, meaning that earlier - * rules will affect the results of later ones. At least one entry must be - * specified, and there can be at most 100000 rules. - * - * Generated from protobuf field repeated .google.bigtable.v2.ReadModifyWriteRule rules = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Bigtable\V2\ReadModifyWriteRule[] $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\ReadModifyWriteRule::class); - $this->rules = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadModifyWriteRowResponse.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadModifyWriteRowResponse.php deleted file mode 100644 index 6b06171fd145..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadModifyWriteRowResponse.php +++ /dev/null @@ -1,77 +0,0 @@ -google.bigtable.v2.ReadModifyWriteRowResponse - */ -class ReadModifyWriteRowResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A Row containing the new contents of all cells modified by the request. - * - * Generated from protobuf field .google.bigtable.v2.Row row = 1; - */ - protected $row = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\Row $row - * A Row containing the new contents of all cells modified by the request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); - parent::__construct($data); - } - - /** - * A Row containing the new contents of all cells modified by the request. - * - * Generated from protobuf field .google.bigtable.v2.Row row = 1; - * @return \Google\Cloud\Bigtable\V2\Row|null - */ - public function getRow() - { - return $this->row; - } - - public function hasRow() - { - return isset($this->row); - } - - public function clearRow() - { - unset($this->row); - } - - /** - * A Row containing the new contents of all cells modified by the request. - * - * Generated from protobuf field .google.bigtable.v2.Row row = 1; - * @param \Google\Cloud\Bigtable\V2\Row $var - * @return $this - */ - public function setRow($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Row::class); - $this->row = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadModifyWriteRule.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadModifyWriteRule.php deleted file mode 100644 index 3c48cb605ab5..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadModifyWriteRule.php +++ /dev/null @@ -1,204 +0,0 @@ -google.bigtable.v2.ReadModifyWriteRule - */ -class ReadModifyWriteRule extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the family to which the read/modify/write should be applied. - * Must match `[-_.a-zA-Z0-9]+` - * - * Generated from protobuf field string family_name = 1; - */ - protected $family_name = ''; - /** - * The qualifier of the column to which the read/modify/write should be - * applied. - * Can be any byte string, including the empty string. - * - * Generated from protobuf field bytes column_qualifier = 2; - */ - protected $column_qualifier = ''; - protected $rule; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $family_name - * The name of the family to which the read/modify/write should be applied. - * Must match `[-_.a-zA-Z0-9]+` - * @type string $column_qualifier - * The qualifier of the column to which the read/modify/write should be - * applied. - * Can be any byte string, including the empty string. - * @type string $append_value - * Rule specifying that `append_value` be appended to the existing value. - * If the targeted cell is unset, it will be treated as containing the - * empty string. - * @type int|string $increment_amount - * Rule specifying that `increment_amount` be added to the existing value. - * If the targeted cell is unset, it will be treated as containing a zero. - * Otherwise, the targeted cell must contain an 8-byte value (interpreted - * as a 64-bit big-endian signed integer), or the entire request will fail. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * The name of the family to which the read/modify/write should be applied. - * Must match `[-_.a-zA-Z0-9]+` - * - * Generated from protobuf field string family_name = 1; - * @return string - */ - public function getFamilyName() - { - return $this->family_name; - } - - /** - * The name of the family to which the read/modify/write should be applied. - * Must match `[-_.a-zA-Z0-9]+` - * - * Generated from protobuf field string family_name = 1; - * @param string $var - * @return $this - */ - public function setFamilyName($var) - { - GPBUtil::checkString($var, True); - $this->family_name = $var; - - return $this; - } - - /** - * The qualifier of the column to which the read/modify/write should be - * applied. - * Can be any byte string, including the empty string. - * - * Generated from protobuf field bytes column_qualifier = 2; - * @return string - */ - public function getColumnQualifier() - { - return $this->column_qualifier; - } - - /** - * The qualifier of the column to which the read/modify/write should be - * applied. - * Can be any byte string, including the empty string. - * - * Generated from protobuf field bytes column_qualifier = 2; - * @param string $var - * @return $this - */ - public function setColumnQualifier($var) - { - GPBUtil::checkString($var, False); - $this->column_qualifier = $var; - - return $this; - } - - /** - * Rule specifying that `append_value` be appended to the existing value. - * If the targeted cell is unset, it will be treated as containing the - * empty string. - * - * Generated from protobuf field bytes append_value = 3; - * @return string - */ - public function getAppendValue() - { - return $this->readOneof(3); - } - - public function hasAppendValue() - { - return $this->hasOneof(3); - } - - /** - * Rule specifying that `append_value` be appended to the existing value. - * If the targeted cell is unset, it will be treated as containing the - * empty string. - * - * Generated from protobuf field bytes append_value = 3; - * @param string $var - * @return $this - */ - public function setAppendValue($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Rule specifying that `increment_amount` be added to the existing value. - * If the targeted cell is unset, it will be treated as containing a zero. - * Otherwise, the targeted cell must contain an 8-byte value (interpreted - * as a 64-bit big-endian signed integer), or the entire request will fail. - * - * Generated from protobuf field int64 increment_amount = 4; - * @return int|string - */ - public function getIncrementAmount() - { - return $this->readOneof(4); - } - - public function hasIncrementAmount() - { - return $this->hasOneof(4); - } - - /** - * Rule specifying that `increment_amount` be added to the existing value. - * If the targeted cell is unset, it will be treated as containing a zero. - * Otherwise, the targeted cell must contain an 8-byte value (interpreted - * as a 64-bit big-endian signed integer), or the entire request will fail. - * - * Generated from protobuf field int64 increment_amount = 4; - * @param int|string $var - * @return $this - */ - public function setIncrementAmount($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getRule() - { - return $this->whichOneof("rule"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadRowsRequest.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadRowsRequest.php deleted file mode 100644 index 0315e2c54645..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadRowsRequest.php +++ /dev/null @@ -1,468 +0,0 @@ -google.bigtable.v2.ReadRowsRequest - */ -class ReadRowsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The unique name of the table from which to read. - * Values are of the form - * `projects//instances//tables/
`. - * - * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $table_name = ''; - /** - * Optional. The unique name of the AuthorizedView from which to read. - * Values are of the form - * `projects//instances//tables/
/authorizedViews/`. - * - * Generated from protobuf field string authorized_view_name = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $authorized_view_name = ''; - /** - * Optional. The unique name of the MaterializedView from which to read. - * Values are of the form - * `projects//instances//materializedViews/`. - * - * Generated from protobuf field string materialized_view_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $materialized_view_name = ''; - /** - * This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * - * Generated from protobuf field string app_profile_id = 5; - */ - protected $app_profile_id = ''; - /** - * The row keys and/or ranges to read sequentially. If not specified, reads - * from all rows. - * - * Generated from protobuf field .google.bigtable.v2.RowSet rows = 2; - */ - protected $rows = null; - /** - * The filter to apply to the contents of the specified row(s). If unset, - * reads the entirety of each row. - * - * Generated from protobuf field .google.bigtable.v2.RowFilter filter = 3; - */ - protected $filter = null; - /** - * The read will stop after committing to N rows' worth of results. The - * default (zero) is to return all results. - * - * Generated from protobuf field int64 rows_limit = 4; - */ - protected $rows_limit = 0; - /** - * The view into RequestStats, as described above. - * - * Generated from protobuf field .google.bigtable.v2.ReadRowsRequest.RequestStatsView request_stats_view = 6; - */ - protected $request_stats_view = 0; - /** - * Experimental API - Please note that this API is currently experimental - * and can change in the future. - * Return rows in lexiographical descending order of the row keys. The row - * contents will not be affected by this flag. - * Example result set: - * [ - * {key: "k2", "f:col1": "v1", "f:col2": "v1"}, - * {key: "k1", "f:col1": "v2", "f:col2": "v2"} - * ] - * - * Generated from protobuf field bool reversed = 7; - */ - protected $reversed = false; - - /** - * @param string $tableName Optional. The unique name of the table from which to read. - * - * Values are of the form - * `projects//instances//tables/
`. Please see - * {@see BigtableClient::tableName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\V2\ReadRowsRequest - * - * @experimental - */ - public static function build(string $tableName): self - { - return (new self()) - ->setTableName($tableName); - } - - /** - * @param string $tableName Optional. The unique name of the table from which to read. - * - * Values are of the form - * `projects//instances//tables/
`. Please see - * {@see BigtableClient::tableName()} for help formatting this field. - * @param string $appProfileId This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * - * @return \Google\Cloud\Bigtable\V2\ReadRowsRequest - * - * @experimental - */ - public static function buildFromTableNameAppProfileId(string $tableName, string $appProfileId): self - { - return (new self()) - ->setTableName($tableName) - ->setAppProfileId($appProfileId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $table_name - * Optional. The unique name of the table from which to read. - * Values are of the form - * `projects//instances//tables/
`. - * @type string $authorized_view_name - * Optional. The unique name of the AuthorizedView from which to read. - * Values are of the form - * `projects//instances//tables/
/authorizedViews/`. - * @type string $materialized_view_name - * Optional. The unique name of the MaterializedView from which to read. - * Values are of the form - * `projects//instances//materializedViews/`. - * @type string $app_profile_id - * This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * @type \Google\Cloud\Bigtable\V2\RowSet $rows - * The row keys and/or ranges to read sequentially. If not specified, reads - * from all rows. - * @type \Google\Cloud\Bigtable\V2\RowFilter $filter - * The filter to apply to the contents of the specified row(s). If unset, - * reads the entirety of each row. - * @type int|string $rows_limit - * The read will stop after committing to N rows' worth of results. The - * default (zero) is to return all results. - * @type int $request_stats_view - * The view into RequestStats, as described above. - * @type bool $reversed - * Experimental API - Please note that this API is currently experimental - * and can change in the future. - * Return rows in lexiographical descending order of the row keys. The row - * contents will not be affected by this flag. - * Example result set: - * [ - * {key: "k2", "f:col1": "v1", "f:col2": "v1"}, - * {key: "k1", "f:col1": "v2", "f:col2": "v2"} - * ] - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The unique name of the table from which to read. - * Values are of the form - * `projects//instances//tables/
`. - * - * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getTableName() - { - return $this->table_name; - } - - /** - * Optional. The unique name of the table from which to read. - * Values are of the form - * `projects//instances//tables/
`. - * - * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setTableName($var) - { - GPBUtil::checkString($var, True); - $this->table_name = $var; - - return $this; - } - - /** - * Optional. The unique name of the AuthorizedView from which to read. - * Values are of the form - * `projects//instances//tables/
/authorizedViews/`. - * - * Generated from protobuf field string authorized_view_name = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getAuthorizedViewName() - { - return $this->authorized_view_name; - } - - /** - * Optional. The unique name of the AuthorizedView from which to read. - * Values are of the form - * `projects//instances//tables/
/authorizedViews/`. - * - * Generated from protobuf field string authorized_view_name = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setAuthorizedViewName($var) - { - GPBUtil::checkString($var, True); - $this->authorized_view_name = $var; - - return $this; - } - - /** - * Optional. The unique name of the MaterializedView from which to read. - * Values are of the form - * `projects//instances//materializedViews/`. - * - * Generated from protobuf field string materialized_view_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getMaterializedViewName() - { - return $this->materialized_view_name; - } - - /** - * Optional. The unique name of the MaterializedView from which to read. - * Values are of the form - * `projects//instances//materializedViews/`. - * - * Generated from protobuf field string materialized_view_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setMaterializedViewName($var) - { - GPBUtil::checkString($var, True); - $this->materialized_view_name = $var; - - return $this; - } - - /** - * This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * - * Generated from protobuf field string app_profile_id = 5; - * @return string - */ - public function getAppProfileId() - { - return $this->app_profile_id; - } - - /** - * This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * - * Generated from protobuf field string app_profile_id = 5; - * @param string $var - * @return $this - */ - public function setAppProfileId($var) - { - GPBUtil::checkString($var, True); - $this->app_profile_id = $var; - - return $this; - } - - /** - * The row keys and/or ranges to read sequentially. If not specified, reads - * from all rows. - * - * Generated from protobuf field .google.bigtable.v2.RowSet rows = 2; - * @return \Google\Cloud\Bigtable\V2\RowSet|null - */ - public function getRows() - { - return $this->rows; - } - - public function hasRows() - { - return isset($this->rows); - } - - public function clearRows() - { - unset($this->rows); - } - - /** - * The row keys and/or ranges to read sequentially. If not specified, reads - * from all rows. - * - * Generated from protobuf field .google.bigtable.v2.RowSet rows = 2; - * @param \Google\Cloud\Bigtable\V2\RowSet $var - * @return $this - */ - public function setRows($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\RowSet::class); - $this->rows = $var; - - return $this; - } - - /** - * The filter to apply to the contents of the specified row(s). If unset, - * reads the entirety of each row. - * - * Generated from protobuf field .google.bigtable.v2.RowFilter filter = 3; - * @return \Google\Cloud\Bigtable\V2\RowFilter|null - */ - public function getFilter() - { - return $this->filter; - } - - public function hasFilter() - { - return isset($this->filter); - } - - public function clearFilter() - { - unset($this->filter); - } - - /** - * The filter to apply to the contents of the specified row(s). If unset, - * reads the entirety of each row. - * - * Generated from protobuf field .google.bigtable.v2.RowFilter filter = 3; - * @param \Google\Cloud\Bigtable\V2\RowFilter $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\RowFilter::class); - $this->filter = $var; - - return $this; - } - - /** - * The read will stop after committing to N rows' worth of results. The - * default (zero) is to return all results. - * - * Generated from protobuf field int64 rows_limit = 4; - * @return int|string - */ - public function getRowsLimit() - { - return $this->rows_limit; - } - - /** - * The read will stop after committing to N rows' worth of results. The - * default (zero) is to return all results. - * - * Generated from protobuf field int64 rows_limit = 4; - * @param int|string $var - * @return $this - */ - public function setRowsLimit($var) - { - GPBUtil::checkInt64($var); - $this->rows_limit = $var; - - return $this; - } - - /** - * The view into RequestStats, as described above. - * - * Generated from protobuf field .google.bigtable.v2.ReadRowsRequest.RequestStatsView request_stats_view = 6; - * @return int - */ - public function getRequestStatsView() - { - return $this->request_stats_view; - } - - /** - * The view into RequestStats, as described above. - * - * Generated from protobuf field .google.bigtable.v2.ReadRowsRequest.RequestStatsView request_stats_view = 6; - * @param int $var - * @return $this - */ - public function setRequestStatsView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\V2\ReadRowsRequest\RequestStatsView::class); - $this->request_stats_view = $var; - - return $this; - } - - /** - * Experimental API - Please note that this API is currently experimental - * and can change in the future. - * Return rows in lexiographical descending order of the row keys. The row - * contents will not be affected by this flag. - * Example result set: - * [ - * {key: "k2", "f:col1": "v1", "f:col2": "v1"}, - * {key: "k1", "f:col1": "v2", "f:col2": "v2"} - * ] - * - * Generated from protobuf field bool reversed = 7; - * @return bool - */ - public function getReversed() - { - return $this->reversed; - } - - /** - * Experimental API - Please note that this API is currently experimental - * and can change in the future. - * Return rows in lexiographical descending order of the row keys. The row - * contents will not be affected by this flag. - * Example result set: - * [ - * {key: "k2", "f:col1": "v1", "f:col2": "v1"}, - * {key: "k1", "f:col1": "v2", "f:col2": "v2"} - * ] - * - * Generated from protobuf field bool reversed = 7; - * @param bool $var - * @return $this - */ - public function setReversed($var) - { - GPBUtil::checkBool($var); - $this->reversed = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadRowsRequest/RequestStatsView.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadRowsRequest/RequestStatsView.php deleted file mode 100644 index dca09d863b82..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadRowsRequest/RequestStatsView.php +++ /dev/null @@ -1,64 +0,0 @@ -google.bigtable.v2.ReadRowsRequest.RequestStatsView - */ -class RequestStatsView -{ - /** - * The default / unset value. The API will default to the NONE option below. - * - * Generated from protobuf enum REQUEST_STATS_VIEW_UNSPECIFIED = 0; - */ - const REQUEST_STATS_VIEW_UNSPECIFIED = 0; - /** - * Do not include any RequestStats in the response. This will leave the - * RequestStats embedded message unset in the response. - * - * Generated from protobuf enum REQUEST_STATS_NONE = 1; - */ - const REQUEST_STATS_NONE = 1; - /** - * Include the full set of available RequestStats in the response, - * applicable to this read. - * - * Generated from protobuf enum REQUEST_STATS_FULL = 2; - */ - const REQUEST_STATS_FULL = 2; - - private static $valueToName = [ - self::REQUEST_STATS_VIEW_UNSPECIFIED => 'REQUEST_STATS_VIEW_UNSPECIFIED', - self::REQUEST_STATS_NONE => 'REQUEST_STATS_NONE', - self::REQUEST_STATS_FULL => 'REQUEST_STATS_FULL', - ]; - - 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/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadRowsResponse.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadRowsResponse.php deleted file mode 100644 index 162fc0564b5d..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadRowsResponse.php +++ /dev/null @@ -1,185 +0,0 @@ -google.bigtable.v2.ReadRowsResponse - */ -class ReadRowsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A collection of a row's contents as part of the read request. - * - * Generated from protobuf field repeated .google.bigtable.v2.ReadRowsResponse.CellChunk chunks = 1; - */ - private $chunks; - /** - * Optionally the server might return the row key of the last row it - * has scanned. The client can use this to construct a more - * efficient retry request if needed: any row keys or portions of - * ranges less than this row key can be dropped from the request. - * This is primarily useful for cases where the server has read a - * lot of data that was filtered out since the last committed row - * key, allowing the client to skip that work on a retry. - * - * Generated from protobuf field bytes last_scanned_row_key = 2; - */ - protected $last_scanned_row_key = ''; - /** - * If requested, return enhanced query performance statistics. The field - * request_stats is empty in a streamed response unless the ReadRowsResponse - * message contains request_stats in the last message of the stream. Always - * returned when requested, even when the read request returns an empty - * response. - * - * Generated from protobuf field .google.bigtable.v2.RequestStats request_stats = 3; - */ - protected $request_stats = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\ReadRowsResponse\CellChunk[] $chunks - * A collection of a row's contents as part of the read request. - * @type string $last_scanned_row_key - * Optionally the server might return the row key of the last row it - * has scanned. The client can use this to construct a more - * efficient retry request if needed: any row keys or portions of - * ranges less than this row key can be dropped from the request. - * This is primarily useful for cases where the server has read a - * lot of data that was filtered out since the last committed row - * key, allowing the client to skip that work on a retry. - * @type \Google\Cloud\Bigtable\V2\RequestStats $request_stats - * If requested, return enhanced query performance statistics. The field - * request_stats is empty in a streamed response unless the ReadRowsResponse - * message contains request_stats in the last message of the stream. Always - * returned when requested, even when the read request returns an empty - * response. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); - parent::__construct($data); - } - - /** - * A collection of a row's contents as part of the read request. - * - * Generated from protobuf field repeated .google.bigtable.v2.ReadRowsResponse.CellChunk chunks = 1; - * @return RepeatedField<\Google\Cloud\Bigtable\V2\ReadRowsResponse\CellChunk> - */ - public function getChunks() - { - return $this->chunks; - } - - /** - * A collection of a row's contents as part of the read request. - * - * Generated from protobuf field repeated .google.bigtable.v2.ReadRowsResponse.CellChunk chunks = 1; - * @param \Google\Cloud\Bigtable\V2\ReadRowsResponse\CellChunk[] $var - * @return $this - */ - public function setChunks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\ReadRowsResponse\CellChunk::class); - $this->chunks = $arr; - - return $this; - } - - /** - * Optionally the server might return the row key of the last row it - * has scanned. The client can use this to construct a more - * efficient retry request if needed: any row keys or portions of - * ranges less than this row key can be dropped from the request. - * This is primarily useful for cases where the server has read a - * lot of data that was filtered out since the last committed row - * key, allowing the client to skip that work on a retry. - * - * Generated from protobuf field bytes last_scanned_row_key = 2; - * @return string - */ - public function getLastScannedRowKey() - { - return $this->last_scanned_row_key; - } - - /** - * Optionally the server might return the row key of the last row it - * has scanned. The client can use this to construct a more - * efficient retry request if needed: any row keys or portions of - * ranges less than this row key can be dropped from the request. - * This is primarily useful for cases where the server has read a - * lot of data that was filtered out since the last committed row - * key, allowing the client to skip that work on a retry. - * - * Generated from protobuf field bytes last_scanned_row_key = 2; - * @param string $var - * @return $this - */ - public function setLastScannedRowKey($var) - { - GPBUtil::checkString($var, False); - $this->last_scanned_row_key = $var; - - return $this; - } - - /** - * If requested, return enhanced query performance statistics. The field - * request_stats is empty in a streamed response unless the ReadRowsResponse - * message contains request_stats in the last message of the stream. Always - * returned when requested, even when the read request returns an empty - * response. - * - * Generated from protobuf field .google.bigtable.v2.RequestStats request_stats = 3; - * @return \Google\Cloud\Bigtable\V2\RequestStats|null - */ - public function getRequestStats() - { - return $this->request_stats; - } - - public function hasRequestStats() - { - return isset($this->request_stats); - } - - public function clearRequestStats() - { - unset($this->request_stats); - } - - /** - * If requested, return enhanced query performance statistics. The field - * request_stats is empty in a streamed response unless the ReadRowsResponse - * message contains request_stats in the last message of the stream. Always - * returned when requested, even when the read request returns an empty - * response. - * - * Generated from protobuf field .google.bigtable.v2.RequestStats request_stats = 3; - * @param \Google\Cloud\Bigtable\V2\RequestStats $var - * @return $this - */ - public function setRequestStats($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\RequestStats::class); - $this->request_stats = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadRowsResponse/CellChunk.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadRowsResponse/CellChunk.php deleted file mode 100644 index 5b45ccafeb20..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ReadRowsResponse/CellChunk.php +++ /dev/null @@ -1,557 +0,0 @@ -google.bigtable.v2.ReadRowsResponse.CellChunk - */ -class CellChunk extends \Google\Protobuf\Internal\Message -{ - /** - * The row key for this chunk of data. If the row key is empty, - * this CellChunk is a continuation of the same row as the previous - * CellChunk in the response stream, even if that CellChunk was in a - * previous ReadRowsResponse message. - * - * Generated from protobuf field bytes row_key = 1; - */ - protected $row_key = ''; - /** - * The column family name for this chunk of data. If this message - * is not present this CellChunk is a continuation of the same column - * family as the previous CellChunk. The empty string can occur as a - * column family name in a response so clients must check - * explicitly for the presence of this message, not just for - * `family_name.value` being non-empty. - * - * Generated from protobuf field .google.protobuf.StringValue family_name = 2; - */ - protected $family_name = null; - /** - * The column qualifier for this chunk of data. If this message - * is not present, this CellChunk is a continuation of the same column - * as the previous CellChunk. Column qualifiers may be empty so - * clients must check for the presence of this message, not just - * for `qualifier.value` being non-empty. - * - * Generated from protobuf field .google.protobuf.BytesValue qualifier = 3; - */ - protected $qualifier = null; - /** - * The cell's stored timestamp, which also uniquely identifies it - * within its column. Values are always expressed in - * microseconds, but individual tables may set a coarser - * granularity to further restrict the allowed values. For - * example, a table which specifies millisecond granularity will - * only allow values of `timestamp_micros` which are multiples of - * 1000. Timestamps are only set in the first CellChunk per cell - * (for cells split into multiple chunks). - * - * Generated from protobuf field int64 timestamp_micros = 4; - */ - protected $timestamp_micros = 0; - /** - * Labels applied to the cell by a - * [RowFilter][google.bigtable.v2.RowFilter]. Labels are only set - * on the first CellChunk per cell. - * - * Generated from protobuf field repeated string labels = 5; - */ - private $labels; - /** - * The value stored in the cell. Cell values can be split across - * multiple CellChunks. In that case only the value field will be - * set in CellChunks after the first: the timestamp and labels - * will only be present in the first CellChunk, even if the first - * CellChunk came in a previous ReadRowsResponse. - * - * Generated from protobuf field bytes value = 6; - */ - protected $value = ''; - /** - * If this CellChunk is part of a chunked cell value and this is - * not the final chunk of that cell, value_size will be set to the - * total length of the cell value. The client can use this size - * to pre-allocate memory to hold the full cell value. - * - * Generated from protobuf field int32 value_size = 7; - */ - protected $value_size = 0; - protected $row_status; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $row_key - * The row key for this chunk of data. If the row key is empty, - * this CellChunk is a continuation of the same row as the previous - * CellChunk in the response stream, even if that CellChunk was in a - * previous ReadRowsResponse message. - * @type \Google\Protobuf\StringValue $family_name - * The column family name for this chunk of data. If this message - * is not present this CellChunk is a continuation of the same column - * family as the previous CellChunk. The empty string can occur as a - * column family name in a response so clients must check - * explicitly for the presence of this message, not just for - * `family_name.value` being non-empty. - * @type \Google\Protobuf\BytesValue $qualifier - * The column qualifier for this chunk of data. If this message - * is not present, this CellChunk is a continuation of the same column - * as the previous CellChunk. Column qualifiers may be empty so - * clients must check for the presence of this message, not just - * for `qualifier.value` being non-empty. - * @type int|string $timestamp_micros - * The cell's stored timestamp, which also uniquely identifies it - * within its column. Values are always expressed in - * microseconds, but individual tables may set a coarser - * granularity to further restrict the allowed values. For - * example, a table which specifies millisecond granularity will - * only allow values of `timestamp_micros` which are multiples of - * 1000. Timestamps are only set in the first CellChunk per cell - * (for cells split into multiple chunks). - * @type string[] $labels - * Labels applied to the cell by a - * [RowFilter][google.bigtable.v2.RowFilter]. Labels are only set - * on the first CellChunk per cell. - * @type string $value - * The value stored in the cell. Cell values can be split across - * multiple CellChunks. In that case only the value field will be - * set in CellChunks after the first: the timestamp and labels - * will only be present in the first CellChunk, even if the first - * CellChunk came in a previous ReadRowsResponse. - * @type int $value_size - * If this CellChunk is part of a chunked cell value and this is - * not the final chunk of that cell, value_size will be set to the - * total length of the cell value. The client can use this size - * to pre-allocate memory to hold the full cell value. - * @type bool $reset_row - * Indicates that the client should drop all previous chunks for - * `row_key`, as it will be re-read from the beginning. - * @type bool $commit_row - * Indicates that the client can safely process all previous chunks for - * `row_key`, as its data has been fully read. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); - parent::__construct($data); - } - - /** - * The row key for this chunk of data. If the row key is empty, - * this CellChunk is a continuation of the same row as the previous - * CellChunk in the response stream, even if that CellChunk was in a - * previous ReadRowsResponse message. - * - * Generated from protobuf field bytes row_key = 1; - * @return string - */ - public function getRowKey() - { - return $this->row_key; - } - - /** - * The row key for this chunk of data. If the row key is empty, - * this CellChunk is a continuation of the same row as the previous - * CellChunk in the response stream, even if that CellChunk was in a - * previous ReadRowsResponse message. - * - * Generated from protobuf field bytes row_key = 1; - * @param string $var - * @return $this - */ - public function setRowKey($var) - { - GPBUtil::checkString($var, False); - $this->row_key = $var; - - return $this; - } - - /** - * The column family name for this chunk of data. If this message - * is not present this CellChunk is a continuation of the same column - * family as the previous CellChunk. The empty string can occur as a - * column family name in a response so clients must check - * explicitly for the presence of this message, not just for - * `family_name.value` being non-empty. - * - * Generated from protobuf field .google.protobuf.StringValue family_name = 2; - * @return \Google\Protobuf\StringValue|null - */ - public function getFamilyName() - { - return $this->family_name; - } - - public function hasFamilyName() - { - return isset($this->family_name); - } - - public function clearFamilyName() - { - unset($this->family_name); - } - - /** - * Returns the unboxed value from getFamilyName() - - * The column family name for this chunk of data. If this message - * is not present this CellChunk is a continuation of the same column - * family as the previous CellChunk. The empty string can occur as a - * column family name in a response so clients must check - * explicitly for the presence of this message, not just for - * `family_name.value` being non-empty. - * - * Generated from protobuf field .google.protobuf.StringValue family_name = 2; - * @return string|null - */ - public function getFamilyNameUnwrapped() - { - return $this->readWrapperValue("family_name"); - } - - /** - * The column family name for this chunk of data. If this message - * is not present this CellChunk is a continuation of the same column - * family as the previous CellChunk. The empty string can occur as a - * column family name in a response so clients must check - * explicitly for the presence of this message, not just for - * `family_name.value` being non-empty. - * - * Generated from protobuf field .google.protobuf.StringValue family_name = 2; - * @param \Google\Protobuf\StringValue $var - * @return $this - */ - public function setFamilyName($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\StringValue::class); - $this->family_name = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\StringValue object. - - * The column family name for this chunk of data. If this message - * is not present this CellChunk is a continuation of the same column - * family as the previous CellChunk. The empty string can occur as a - * column family name in a response so clients must check - * explicitly for the presence of this message, not just for - * `family_name.value` being non-empty. - * - * Generated from protobuf field .google.protobuf.StringValue family_name = 2; - * @param string|null $var - * @return $this - */ - public function setFamilyNameUnwrapped($var) - { - $this->writeWrapperValue("family_name", $var); - return $this;} - - /** - * The column qualifier for this chunk of data. If this message - * is not present, this CellChunk is a continuation of the same column - * as the previous CellChunk. Column qualifiers may be empty so - * clients must check for the presence of this message, not just - * for `qualifier.value` being non-empty. - * - * Generated from protobuf field .google.protobuf.BytesValue qualifier = 3; - * @return \Google\Protobuf\BytesValue|null - */ - public function getQualifier() - { - return $this->qualifier; - } - - public function hasQualifier() - { - return isset($this->qualifier); - } - - public function clearQualifier() - { - unset($this->qualifier); - } - - /** - * Returns the unboxed value from getQualifier() - - * The column qualifier for this chunk of data. If this message - * is not present, this CellChunk is a continuation of the same column - * as the previous CellChunk. Column qualifiers may be empty so - * clients must check for the presence of this message, not just - * for `qualifier.value` being non-empty. - * - * Generated from protobuf field .google.protobuf.BytesValue qualifier = 3; - * @return string|null - */ - public function getQualifierUnwrapped() - { - return $this->readWrapperValue("qualifier"); - } - - /** - * The column qualifier for this chunk of data. If this message - * is not present, this CellChunk is a continuation of the same column - * as the previous CellChunk. Column qualifiers may be empty so - * clients must check for the presence of this message, not just - * for `qualifier.value` being non-empty. - * - * Generated from protobuf field .google.protobuf.BytesValue qualifier = 3; - * @param \Google\Protobuf\BytesValue $var - * @return $this - */ - public function setQualifier($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BytesValue::class); - $this->qualifier = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BytesValue object. - - * The column qualifier for this chunk of data. If this message - * is not present, this CellChunk is a continuation of the same column - * as the previous CellChunk. Column qualifiers may be empty so - * clients must check for the presence of this message, not just - * for `qualifier.value` being non-empty. - * - * Generated from protobuf field .google.protobuf.BytesValue qualifier = 3; - * @param string|null $var - * @return $this - */ - public function setQualifierUnwrapped($var) - { - $this->writeWrapperValue("qualifier", $var); - return $this;} - - /** - * The cell's stored timestamp, which also uniquely identifies it - * within its column. Values are always expressed in - * microseconds, but individual tables may set a coarser - * granularity to further restrict the allowed values. For - * example, a table which specifies millisecond granularity will - * only allow values of `timestamp_micros` which are multiples of - * 1000. Timestamps are only set in the first CellChunk per cell - * (for cells split into multiple chunks). - * - * Generated from protobuf field int64 timestamp_micros = 4; - * @return int|string - */ - public function getTimestampMicros() - { - return $this->timestamp_micros; - } - - /** - * The cell's stored timestamp, which also uniquely identifies it - * within its column. Values are always expressed in - * microseconds, but individual tables may set a coarser - * granularity to further restrict the allowed values. For - * example, a table which specifies millisecond granularity will - * only allow values of `timestamp_micros` which are multiples of - * 1000. Timestamps are only set in the first CellChunk per cell - * (for cells split into multiple chunks). - * - * Generated from protobuf field int64 timestamp_micros = 4; - * @param int|string $var - * @return $this - */ - public function setTimestampMicros($var) - { - GPBUtil::checkInt64($var); - $this->timestamp_micros = $var; - - return $this; - } - - /** - * Labels applied to the cell by a - * [RowFilter][google.bigtable.v2.RowFilter]. Labels are only set - * on the first CellChunk per cell. - * - * Generated from protobuf field repeated string labels = 5; - * @return RepeatedField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Labels applied to the cell by a - * [RowFilter][google.bigtable.v2.RowFilter]. Labels are only set - * on the first CellChunk per cell. - * - * Generated from protobuf field repeated string labels = 5; - * @param string[] $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * The value stored in the cell. Cell values can be split across - * multiple CellChunks. In that case only the value field will be - * set in CellChunks after the first: the timestamp and labels - * will only be present in the first CellChunk, even if the first - * CellChunk came in a previous ReadRowsResponse. - * - * Generated from protobuf field bytes value = 6; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The value stored in the cell. Cell values can be split across - * multiple CellChunks. In that case only the value field will be - * set in CellChunks after the first: the timestamp and labels - * will only be present in the first CellChunk, even if the first - * CellChunk came in a previous ReadRowsResponse. - * - * Generated from protobuf field bytes value = 6; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, False); - $this->value = $var; - - return $this; - } - - /** - * If this CellChunk is part of a chunked cell value and this is - * not the final chunk of that cell, value_size will be set to the - * total length of the cell value. The client can use this size - * to pre-allocate memory to hold the full cell value. - * - * Generated from protobuf field int32 value_size = 7; - * @return int - */ - public function getValueSize() - { - return $this->value_size; - } - - /** - * If this CellChunk is part of a chunked cell value and this is - * not the final chunk of that cell, value_size will be set to the - * total length of the cell value. The client can use this size - * to pre-allocate memory to hold the full cell value. - * - * Generated from protobuf field int32 value_size = 7; - * @param int $var - * @return $this - */ - public function setValueSize($var) - { - GPBUtil::checkInt32($var); - $this->value_size = $var; - - return $this; - } - - /** - * Indicates that the client should drop all previous chunks for - * `row_key`, as it will be re-read from the beginning. - * - * Generated from protobuf field bool reset_row = 8; - * @return bool - */ - public function getResetRow() - { - return $this->readOneof(8); - } - - public function hasResetRow() - { - return $this->hasOneof(8); - } - - /** - * Indicates that the client should drop all previous chunks for - * `row_key`, as it will be re-read from the beginning. - * - * Generated from protobuf field bool reset_row = 8; - * @param bool $var - * @return $this - */ - public function setResetRow($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Indicates that the client can safely process all previous chunks for - * `row_key`, as its data has been fully read. - * - * Generated from protobuf field bool commit_row = 9; - * @return bool - */ - public function getCommitRow() - { - return $this->readOneof(9); - } - - public function hasCommitRow() - { - return $this->hasOneof(9); - } - - /** - * Indicates that the client can safely process all previous chunks for - * `row_key`, as its data has been fully read. - * - * Generated from protobuf field bool commit_row = 9; - * @param bool $var - * @return $this - */ - public function setCommitRow($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * @return string - */ - public function getRowStatus() - { - return $this->whichOneof("row_status"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RequestLatencyStats.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RequestLatencyStats.php deleted file mode 100644 index d1c8e1a63121..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RequestLatencyStats.php +++ /dev/null @@ -1,135 +0,0 @@ -google.bigtable.v2.RequestLatencyStats - */ -class RequestLatencyStats extends \Google\Protobuf\Internal\Message -{ - /** - * The latency measured by the frontend server handling this request, from - * when the request was received, to when this value is sent back in the - * response. For more context on the component that is measuring this latency, - * see: https://cloud.google.com/bigtable/docs/overview - * Note: This value may be slightly shorter than the value reported into - * aggregate latency metrics in Monitoring for this request - * (https://cloud.google.com/bigtable/docs/monitoring-instance) as this value - * needs to be sent in the response before the latency measurement including - * that transmission is finalized. - * Note: This value includes the end-to-end latency of contacting nodes in - * the targeted cluster, e.g. measuring from when the first byte arrives at - * the frontend server, to when this value is sent back as the last value in - * the response, including any latency incurred by contacting nodes, waiting - * for results from nodes, and finally sending results from nodes back to the - * caller. - * - * Generated from protobuf field .google.protobuf.Duration frontend_server_latency = 1; - */ - protected $frontend_server_latency = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Duration $frontend_server_latency - * The latency measured by the frontend server handling this request, from - * when the request was received, to when this value is sent back in the - * response. For more context on the component that is measuring this latency, - * see: https://cloud.google.com/bigtable/docs/overview - * Note: This value may be slightly shorter than the value reported into - * aggregate latency metrics in Monitoring for this request - * (https://cloud.google.com/bigtable/docs/monitoring-instance) as this value - * needs to be sent in the response before the latency measurement including - * that transmission is finalized. - * Note: This value includes the end-to-end latency of contacting nodes in - * the targeted cluster, e.g. measuring from when the first byte arrives at - * the frontend server, to when this value is sent back as the last value in - * the response, including any latency incurred by contacting nodes, waiting - * for results from nodes, and finally sending results from nodes back to the - * caller. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\RequestStats::initOnce(); - parent::__construct($data); - } - - /** - * The latency measured by the frontend server handling this request, from - * when the request was received, to when this value is sent back in the - * response. For more context on the component that is measuring this latency, - * see: https://cloud.google.com/bigtable/docs/overview - * Note: This value may be slightly shorter than the value reported into - * aggregate latency metrics in Monitoring for this request - * (https://cloud.google.com/bigtable/docs/monitoring-instance) as this value - * needs to be sent in the response before the latency measurement including - * that transmission is finalized. - * Note: This value includes the end-to-end latency of contacting nodes in - * the targeted cluster, e.g. measuring from when the first byte arrives at - * the frontend server, to when this value is sent back as the last value in - * the response, including any latency incurred by contacting nodes, waiting - * for results from nodes, and finally sending results from nodes back to the - * caller. - * - * Generated from protobuf field .google.protobuf.Duration frontend_server_latency = 1; - * @return \Google\Protobuf\Duration|null - */ - public function getFrontendServerLatency() - { - return $this->frontend_server_latency; - } - - public function hasFrontendServerLatency() - { - return isset($this->frontend_server_latency); - } - - public function clearFrontendServerLatency() - { - unset($this->frontend_server_latency); - } - - /** - * The latency measured by the frontend server handling this request, from - * when the request was received, to when this value is sent back in the - * response. For more context on the component that is measuring this latency, - * see: https://cloud.google.com/bigtable/docs/overview - * Note: This value may be slightly shorter than the value reported into - * aggregate latency metrics in Monitoring for this request - * (https://cloud.google.com/bigtable/docs/monitoring-instance) as this value - * needs to be sent in the response before the latency measurement including - * that transmission is finalized. - * Note: This value includes the end-to-end latency of contacting nodes in - * the targeted cluster, e.g. measuring from when the first byte arrives at - * the frontend server, to when this value is sent back as the last value in - * the response, including any latency incurred by contacting nodes, waiting - * for results from nodes, and finally sending results from nodes back to the - * caller. - * - * Generated from protobuf field .google.protobuf.Duration frontend_server_latency = 1; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setFrontendServerLatency($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->frontend_server_latency = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RequestStats.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RequestStats.php deleted file mode 100644 index 1a0afe79fa16..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RequestStats.php +++ /dev/null @@ -1,80 +0,0 @@ -google.bigtable.v2.RequestStats - */ -class RequestStats extends \Google\Protobuf\Internal\Message -{ - protected $stats_view; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\FullReadStatsView $full_read_stats_view - * Available with the ReadRowsRequest.RequestStatsView.REQUEST_STATS_FULL - * view, see package google.bigtable.v2. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\RequestStats::initOnce(); - parent::__construct($data); - } - - /** - * Available with the ReadRowsRequest.RequestStatsView.REQUEST_STATS_FULL - * view, see package google.bigtable.v2. - * - * Generated from protobuf field .google.bigtable.v2.FullReadStatsView full_read_stats_view = 1; - * @return \Google\Cloud\Bigtable\V2\FullReadStatsView|null - */ - public function getFullReadStatsView() - { - return $this->readOneof(1); - } - - public function hasFullReadStatsView() - { - return $this->hasOneof(1); - } - - /** - * Available with the ReadRowsRequest.RequestStatsView.REQUEST_STATS_FULL - * view, see package google.bigtable.v2. - * - * Generated from protobuf field .google.bigtable.v2.FullReadStatsView full_read_stats_view = 1; - * @param \Google\Cloud\Bigtable\V2\FullReadStatsView $var - * @return $this - */ - public function setFullReadStatsView($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\FullReadStatsView::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getStatsView() - { - return $this->whichOneof("stats_view"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ResponseParams.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ResponseParams.php deleted file mode 100644 index d4173d64c814..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ResponseParams.php +++ /dev/null @@ -1,169 +0,0 @@ -google.bigtable.v2.ResponseParams - */ -class ResponseParams extends \Google\Protobuf\Internal\Message -{ - /** - * The cloud bigtable zone associated with the cluster. - * - * Generated from protobuf field optional string zone_id = 1; - */ - protected $zone_id = null; - /** - * Identifier for a cluster that represents set of - * bigtable resources. - * - * Generated from protobuf field optional string cluster_id = 2; - */ - protected $cluster_id = null; - /** - * The AFE ID for the AFE that is served this request. - * - * Generated from protobuf field optional int64 afe_id = 3; - */ - protected $afe_id = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $zone_id - * The cloud bigtable zone associated with the cluster. - * @type string $cluster_id - * Identifier for a cluster that represents set of - * bigtable resources. - * @type int|string $afe_id - * The AFE ID for the AFE that is served this request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\ResponseParams::initOnce(); - parent::__construct($data); - } - - /** - * The cloud bigtable zone associated with the cluster. - * - * Generated from protobuf field optional string zone_id = 1; - * @return string - */ - public function getZoneId() - { - return isset($this->zone_id) ? $this->zone_id : ''; - } - - public function hasZoneId() - { - return isset($this->zone_id); - } - - public function clearZoneId() - { - unset($this->zone_id); - } - - /** - * The cloud bigtable zone associated with the cluster. - * - * Generated from protobuf field optional string zone_id = 1; - * @param string $var - * @return $this - */ - public function setZoneId($var) - { - GPBUtil::checkString($var, True); - $this->zone_id = $var; - - return $this; - } - - /** - * Identifier for a cluster that represents set of - * bigtable resources. - * - * Generated from protobuf field optional string cluster_id = 2; - * @return string - */ - public function getClusterId() - { - return isset($this->cluster_id) ? $this->cluster_id : ''; - } - - public function hasClusterId() - { - return isset($this->cluster_id); - } - - public function clearClusterId() - { - unset($this->cluster_id); - } - - /** - * Identifier for a cluster that represents set of - * bigtable resources. - * - * Generated from protobuf field optional string cluster_id = 2; - * @param string $var - * @return $this - */ - public function setClusterId($var) - { - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * The AFE ID for the AFE that is served this request. - * - * Generated from protobuf field optional int64 afe_id = 3; - * @return int|string - */ - public function getAfeId() - { - return isset($this->afe_id) ? $this->afe_id : 0; - } - - public function hasAfeId() - { - return isset($this->afe_id); - } - - public function clearAfeId() - { - unset($this->afe_id); - } - - /** - * The AFE ID for the AFE that is served this request. - * - * Generated from protobuf field optional int64 afe_id = 3; - * @param int|string $var - * @return $this - */ - public function setAfeId($var) - { - GPBUtil::checkInt64($var); - $this->afe_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ResultSetMetadata.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ResultSetMetadata.php deleted file mode 100644 index 5d1ae458d85b..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ResultSetMetadata.php +++ /dev/null @@ -1,75 +0,0 @@ -google.bigtable.v2.ResultSetMetadata - */ -class ResultSetMetadata extends \Google\Protobuf\Internal\Message -{ - protected $schema; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\ProtoSchema $proto_schema - * Schema in proto format - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * Schema in proto format - * - * Generated from protobuf field .google.bigtable.v2.ProtoSchema proto_schema = 1; - * @return \Google\Cloud\Bigtable\V2\ProtoSchema|null - */ - public function getProtoSchema() - { - return $this->readOneof(1); - } - - public function hasProtoSchema() - { - return $this->hasOneof(1); - } - - /** - * Schema in proto format - * - * Generated from protobuf field .google.bigtable.v2.ProtoSchema proto_schema = 1; - * @param \Google\Cloud\Bigtable\V2\ProtoSchema $var - * @return $this - */ - public function setProtoSchema($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\ProtoSchema::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getSchema() - { - return $this->whichOneof("schema"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Row.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Row.php deleted file mode 100644 index 871a946202da..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Row.php +++ /dev/null @@ -1,114 +0,0 @@ -google.bigtable.v2.Row - */ -class Row extends \Google\Protobuf\Internal\Message -{ - /** - * The unique key which identifies this row within its table. This is the same - * key that's used to identify the row in, for example, a MutateRowRequest. - * May contain any non-empty byte string up to 4KiB in length. - * - * Generated from protobuf field bytes key = 1; - */ - protected $key = ''; - /** - * May be empty, but only if the entire row is empty. - * The mutual ordering of column families is not specified. - * - * Generated from protobuf field repeated .google.bigtable.v2.Family families = 2; - */ - private $families; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key - * The unique key which identifies this row within its table. This is the same - * key that's used to identify the row in, for example, a MutateRowRequest. - * May contain any non-empty byte string up to 4KiB in length. - * @type \Google\Cloud\Bigtable\V2\Family[] $families - * May be empty, but only if the entire row is empty. - * The mutual ordering of column families is not specified. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * The unique key which identifies this row within its table. This is the same - * key that's used to identify the row in, for example, a MutateRowRequest. - * May contain any non-empty byte string up to 4KiB in length. - * - * Generated from protobuf field bytes key = 1; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * The unique key which identifies this row within its table. This is the same - * key that's used to identify the row in, for example, a MutateRowRequest. - * May contain any non-empty byte string up to 4KiB in length. - * - * Generated from protobuf field bytes key = 1; - * @param string $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkString($var, False); - $this->key = $var; - - return $this; - } - - /** - * May be empty, but only if the entire row is empty. - * The mutual ordering of column families is not specified. - * - * Generated from protobuf field repeated .google.bigtable.v2.Family families = 2; - * @return RepeatedField<\Google\Cloud\Bigtable\V2\Family> - */ - public function getFamilies() - { - return $this->families; - } - - /** - * May be empty, but only if the entire row is empty. - * The mutual ordering of column families is not specified. - * - * Generated from protobuf field repeated .google.bigtable.v2.Family families = 2; - * @param \Google\Cloud\Bigtable\V2\Family[] $var - * @return $this - */ - public function setFamilies($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\Family::class); - $this->families = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowFilter.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowFilter.php deleted file mode 100644 index c728a28a7fe6..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowFilter.php +++ /dev/null @@ -1,990 +0,0 @@ -google.bigtable.v2.RowFilter - */ -class RowFilter extends \Google\Protobuf\Internal\Message -{ - protected $filter; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\RowFilter\Chain $chain - * Applies several RowFilters to the data in sequence, progressively - * narrowing the results. - * @type \Google\Cloud\Bigtable\V2\RowFilter\Interleave $interleave - * Applies several RowFilters to the data in parallel and combines the - * results. - * @type \Google\Cloud\Bigtable\V2\RowFilter\Condition $condition - * Applies one of two possible RowFilters to the data based on the output of - * a predicate RowFilter. - * @type bool $sink - * ADVANCED USE ONLY. - * Hook for introspection into the RowFilter. Outputs all cells directly to - * the output of the read rather than to any parent filter. Consider the - * following example: - * Chain( - * FamilyRegex("A"), - * Interleave( - * All(), - * Chain(Label("foo"), Sink()) - * ), - * QualifierRegex("B") - * ) - * A,A,1,w - * A,B,2,x - * B,B,4,z - * | - * FamilyRegex("A") - * | - * A,A,1,w - * A,B,2,x - * | - * +------------+-------------+ - * | | - * All() Label(foo) - * | | - * A,A,1,w A,A,1,w,labels:[foo] - * A,B,2,x A,B,2,x,labels:[foo] - * | | - * | Sink() --------------+ - * | | | - * +------------+ x------+ A,A,1,w,labels:[foo] - * | A,B,2,x,labels:[foo] - * A,A,1,w | - * A,B,2,x | - * | | - * QualifierRegex("B") | - * | | - * A,B,2,x | - * | | - * +--------------------------------+ - * | - * A,A,1,w,labels:[foo] - * A,B,2,x,labels:[foo] // could be switched - * A,B,2,x // could be switched - * Despite being excluded by the qualifier filter, a copy of every cell - * that reaches the sink is present in the final result. - * As with an [Interleave][google.bigtable.v2.RowFilter.Interleave], - * duplicate cells are possible, and appear in an unspecified mutual order. - * In this case we have a duplicate with column "A:B" and timestamp 2, - * because one copy passed through the all filter while the other was - * passed through the label and sink. Note that one copy has label "foo", - * while the other does not. - * Cannot be used within the `predicate_filter`, `true_filter`, or - * `false_filter` of a [Condition][google.bigtable.v2.RowFilter.Condition]. - * @type bool $pass_all_filter - * Matches all cells, regardless of input. Functionally equivalent to - * leaving `filter` unset, but included for completeness. - * @type bool $block_all_filter - * Does not match any cells, regardless of input. Useful for temporarily - * disabling just part of a filter. - * @type string $row_key_regex_filter - * Matches only cells from rows whose keys satisfy the given RE2 regex. In - * other words, passes through the entire row when the key matches, and - * otherwise produces an empty row. - * Note that, since row keys can contain arbitrary bytes, the `\C` escape - * sequence must be used if a true wildcard is desired. The `.` character - * will not match the new line character `\n`, which may be present in a - * binary key. - * @type float $row_sample_filter - * Matches all cells from a row with probability p, and matches no cells - * from the row with probability 1-p. - * @type string $family_name_regex_filter - * Matches only cells from columns whose families satisfy the given RE2 - * regex. For technical reasons, the regex must not contain the `:` - * character, even if it is not being used as a literal. - * Note that, since column families cannot contain the new line character - * `\n`, it is sufficient to use `.` as a full wildcard when matching - * column family names. - * @type string $column_qualifier_regex_filter - * Matches only cells from columns whose qualifiers satisfy the given RE2 - * regex. - * Note that, since column qualifiers can contain arbitrary bytes, the `\C` - * escape sequence must be used if a true wildcard is desired. The `.` - * character will not match the new line character `\n`, which may be - * present in a binary qualifier. - * @type \Google\Cloud\Bigtable\V2\ColumnRange $column_range_filter - * Matches only cells from columns within the given range. - * @type \Google\Cloud\Bigtable\V2\TimestampRange $timestamp_range_filter - * Matches only cells with timestamps within the given range. - * @type string $value_regex_filter - * Matches only cells with values that satisfy the given regular expression. - * Note that, since cell values can contain arbitrary bytes, the `\C` escape - * sequence must be used if a true wildcard is desired. The `.` character - * will not match the new line character `\n`, which may be present in a - * binary value. - * @type \Google\Cloud\Bigtable\V2\ValueRange $value_range_filter - * Matches only cells with values that fall within the given range. - * @type int $cells_per_row_offset_filter - * Skips the first N cells of each row, matching all subsequent cells. - * If duplicate cells are present, as is possible when using an Interleave, - * each copy of the cell is counted separately. - * @type int $cells_per_row_limit_filter - * Matches only the first N cells of each row. - * If duplicate cells are present, as is possible when using an Interleave, - * each copy of the cell is counted separately. - * @type int $cells_per_column_limit_filter - * Matches only the most recent N cells within each column. For example, - * if N=2, this filter would match column `foo:bar` at timestamps 10 and 9, - * skip all earlier cells in `foo:bar`, and then begin matching again in - * column `foo:bar2`. - * If duplicate cells are present, as is possible when using an Interleave, - * each copy of the cell is counted separately. - * @type bool $strip_value_transformer - * Replaces each cell's value with the empty string. - * @type string $apply_label_transformer - * Applies the given label to all cells in the output row. This allows - * the client to determine which results were produced from which part of - * the filter. - * Values must be at most 15 characters in length, and match the RE2 - * pattern `[a-z0-9\\-]+` - * Due to a technical limitation, it is not currently possible to apply - * multiple labels to a cell. As a result, a Chain may have no more than - * one sub-filter which contains a `apply_label_transformer`. It is okay for - * an Interleave to contain multiple `apply_label_transformers`, as they - * will be applied to separate copies of the input. This may be relaxed in - * the future. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * Applies several RowFilters to the data in sequence, progressively - * narrowing the results. - * - * Generated from protobuf field .google.bigtable.v2.RowFilter.Chain chain = 1; - * @return \Google\Cloud\Bigtable\V2\RowFilter\Chain|null - */ - public function getChain() - { - return $this->readOneof(1); - } - - public function hasChain() - { - return $this->hasOneof(1); - } - - /** - * Applies several RowFilters to the data in sequence, progressively - * narrowing the results. - * - * Generated from protobuf field .google.bigtable.v2.RowFilter.Chain chain = 1; - * @param \Google\Cloud\Bigtable\V2\RowFilter\Chain $var - * @return $this - */ - public function setChain($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\RowFilter\Chain::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Applies several RowFilters to the data in parallel and combines the - * results. - * - * Generated from protobuf field .google.bigtable.v2.RowFilter.Interleave interleave = 2; - * @return \Google\Cloud\Bigtable\V2\RowFilter\Interleave|null - */ - public function getInterleave() - { - return $this->readOneof(2); - } - - public function hasInterleave() - { - return $this->hasOneof(2); - } - - /** - * Applies several RowFilters to the data in parallel and combines the - * results. - * - * Generated from protobuf field .google.bigtable.v2.RowFilter.Interleave interleave = 2; - * @param \Google\Cloud\Bigtable\V2\RowFilter\Interleave $var - * @return $this - */ - public function setInterleave($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\RowFilter\Interleave::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Applies one of two possible RowFilters to the data based on the output of - * a predicate RowFilter. - * - * Generated from protobuf field .google.bigtable.v2.RowFilter.Condition condition = 3; - * @return \Google\Cloud\Bigtable\V2\RowFilter\Condition|null - */ - public function getCondition() - { - return $this->readOneof(3); - } - - public function hasCondition() - { - return $this->hasOneof(3); - } - - /** - * Applies one of two possible RowFilters to the data based on the output of - * a predicate RowFilter. - * - * Generated from protobuf field .google.bigtable.v2.RowFilter.Condition condition = 3; - * @param \Google\Cloud\Bigtable\V2\RowFilter\Condition $var - * @return $this - */ - public function setCondition($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\RowFilter\Condition::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * ADVANCED USE ONLY. - * Hook for introspection into the RowFilter. Outputs all cells directly to - * the output of the read rather than to any parent filter. Consider the - * following example: - * Chain( - * FamilyRegex("A"), - * Interleave( - * All(), - * Chain(Label("foo"), Sink()) - * ), - * QualifierRegex("B") - * ) - * A,A,1,w - * A,B,2,x - * B,B,4,z - * | - * FamilyRegex("A") - * | - * A,A,1,w - * A,B,2,x - * | - * +------------+-------------+ - * | | - * All() Label(foo) - * | | - * A,A,1,w A,A,1,w,labels:[foo] - * A,B,2,x A,B,2,x,labels:[foo] - * | | - * | Sink() --------------+ - * | | | - * +------------+ x------+ A,A,1,w,labels:[foo] - * | A,B,2,x,labels:[foo] - * A,A,1,w | - * A,B,2,x | - * | | - * QualifierRegex("B") | - * | | - * A,B,2,x | - * | | - * +--------------------------------+ - * | - * A,A,1,w,labels:[foo] - * A,B,2,x,labels:[foo] // could be switched - * A,B,2,x // could be switched - * Despite being excluded by the qualifier filter, a copy of every cell - * that reaches the sink is present in the final result. - * As with an [Interleave][google.bigtable.v2.RowFilter.Interleave], - * duplicate cells are possible, and appear in an unspecified mutual order. - * In this case we have a duplicate with column "A:B" and timestamp 2, - * because one copy passed through the all filter while the other was - * passed through the label and sink. Note that one copy has label "foo", - * while the other does not. - * Cannot be used within the `predicate_filter`, `true_filter`, or - * `false_filter` of a [Condition][google.bigtable.v2.RowFilter.Condition]. - * - * Generated from protobuf field bool sink = 16; - * @return bool - */ - public function getSink() - { - return $this->readOneof(16); - } - - public function hasSink() - { - return $this->hasOneof(16); - } - - /** - * ADVANCED USE ONLY. - * Hook for introspection into the RowFilter. Outputs all cells directly to - * the output of the read rather than to any parent filter. Consider the - * following example: - * Chain( - * FamilyRegex("A"), - * Interleave( - * All(), - * Chain(Label("foo"), Sink()) - * ), - * QualifierRegex("B") - * ) - * A,A,1,w - * A,B,2,x - * B,B,4,z - * | - * FamilyRegex("A") - * | - * A,A,1,w - * A,B,2,x - * | - * +------------+-------------+ - * | | - * All() Label(foo) - * | | - * A,A,1,w A,A,1,w,labels:[foo] - * A,B,2,x A,B,2,x,labels:[foo] - * | | - * | Sink() --------------+ - * | | | - * +------------+ x------+ A,A,1,w,labels:[foo] - * | A,B,2,x,labels:[foo] - * A,A,1,w | - * A,B,2,x | - * | | - * QualifierRegex("B") | - * | | - * A,B,2,x | - * | | - * +--------------------------------+ - * | - * A,A,1,w,labels:[foo] - * A,B,2,x,labels:[foo] // could be switched - * A,B,2,x // could be switched - * Despite being excluded by the qualifier filter, a copy of every cell - * that reaches the sink is present in the final result. - * As with an [Interleave][google.bigtable.v2.RowFilter.Interleave], - * duplicate cells are possible, and appear in an unspecified mutual order. - * In this case we have a duplicate with column "A:B" and timestamp 2, - * because one copy passed through the all filter while the other was - * passed through the label and sink. Note that one copy has label "foo", - * while the other does not. - * Cannot be used within the `predicate_filter`, `true_filter`, or - * `false_filter` of a [Condition][google.bigtable.v2.RowFilter.Condition]. - * - * Generated from protobuf field bool sink = 16; - * @param bool $var - * @return $this - */ - public function setSink($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(16, $var); - - return $this; - } - - /** - * Matches all cells, regardless of input. Functionally equivalent to - * leaving `filter` unset, but included for completeness. - * - * Generated from protobuf field bool pass_all_filter = 17; - * @return bool - */ - public function getPassAllFilter() - { - return $this->readOneof(17); - } - - public function hasPassAllFilter() - { - return $this->hasOneof(17); - } - - /** - * Matches all cells, regardless of input. Functionally equivalent to - * leaving `filter` unset, but included for completeness. - * - * Generated from protobuf field bool pass_all_filter = 17; - * @param bool $var - * @return $this - */ - public function setPassAllFilter($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(17, $var); - - return $this; - } - - /** - * Does not match any cells, regardless of input. Useful for temporarily - * disabling just part of a filter. - * - * Generated from protobuf field bool block_all_filter = 18; - * @return bool - */ - public function getBlockAllFilter() - { - return $this->readOneof(18); - } - - public function hasBlockAllFilter() - { - return $this->hasOneof(18); - } - - /** - * Does not match any cells, regardless of input. Useful for temporarily - * disabling just part of a filter. - * - * Generated from protobuf field bool block_all_filter = 18; - * @param bool $var - * @return $this - */ - public function setBlockAllFilter($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(18, $var); - - return $this; - } - - /** - * Matches only cells from rows whose keys satisfy the given RE2 regex. In - * other words, passes through the entire row when the key matches, and - * otherwise produces an empty row. - * Note that, since row keys can contain arbitrary bytes, the `\C` escape - * sequence must be used if a true wildcard is desired. The `.` character - * will not match the new line character `\n`, which may be present in a - * binary key. - * - * Generated from protobuf field bytes row_key_regex_filter = 4; - * @return string - */ - public function getRowKeyRegexFilter() - { - return $this->readOneof(4); - } - - public function hasRowKeyRegexFilter() - { - return $this->hasOneof(4); - } - - /** - * Matches only cells from rows whose keys satisfy the given RE2 regex. In - * other words, passes through the entire row when the key matches, and - * otherwise produces an empty row. - * Note that, since row keys can contain arbitrary bytes, the `\C` escape - * sequence must be used if a true wildcard is desired. The `.` character - * will not match the new line character `\n`, which may be present in a - * binary key. - * - * Generated from protobuf field bytes row_key_regex_filter = 4; - * @param string $var - * @return $this - */ - public function setRowKeyRegexFilter($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Matches all cells from a row with probability p, and matches no cells - * from the row with probability 1-p. - * - * Generated from protobuf field double row_sample_filter = 14; - * @return float - */ - public function getRowSampleFilter() - { - return $this->readOneof(14); - } - - public function hasRowSampleFilter() - { - return $this->hasOneof(14); - } - - /** - * Matches all cells from a row with probability p, and matches no cells - * from the row with probability 1-p. - * - * Generated from protobuf field double row_sample_filter = 14; - * @param float $var - * @return $this - */ - public function setRowSampleFilter($var) - { - GPBUtil::checkDouble($var); - $this->writeOneof(14, $var); - - return $this; - } - - /** - * Matches only cells from columns whose families satisfy the given RE2 - * regex. For technical reasons, the regex must not contain the `:` - * character, even if it is not being used as a literal. - * Note that, since column families cannot contain the new line character - * `\n`, it is sufficient to use `.` as a full wildcard when matching - * column family names. - * - * Generated from protobuf field string family_name_regex_filter = 5; - * @return string - */ - public function getFamilyNameRegexFilter() - { - return $this->readOneof(5); - } - - public function hasFamilyNameRegexFilter() - { - return $this->hasOneof(5); - } - - /** - * Matches only cells from columns whose families satisfy the given RE2 - * regex. For technical reasons, the regex must not contain the `:` - * character, even if it is not being used as a literal. - * Note that, since column families cannot contain the new line character - * `\n`, it is sufficient to use `.` as a full wildcard when matching - * column family names. - * - * Generated from protobuf field string family_name_regex_filter = 5; - * @param string $var - * @return $this - */ - public function setFamilyNameRegexFilter($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Matches only cells from columns whose qualifiers satisfy the given RE2 - * regex. - * Note that, since column qualifiers can contain arbitrary bytes, the `\C` - * escape sequence must be used if a true wildcard is desired. The `.` - * character will not match the new line character `\n`, which may be - * present in a binary qualifier. - * - * Generated from protobuf field bytes column_qualifier_regex_filter = 6; - * @return string - */ - public function getColumnQualifierRegexFilter() - { - return $this->readOneof(6); - } - - public function hasColumnQualifierRegexFilter() - { - return $this->hasOneof(6); - } - - /** - * Matches only cells from columns whose qualifiers satisfy the given RE2 - * regex. - * Note that, since column qualifiers can contain arbitrary bytes, the `\C` - * escape sequence must be used if a true wildcard is desired. The `.` - * character will not match the new line character `\n`, which may be - * present in a binary qualifier. - * - * Generated from protobuf field bytes column_qualifier_regex_filter = 6; - * @param string $var - * @return $this - */ - public function setColumnQualifierRegexFilter($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Matches only cells from columns within the given range. - * - * Generated from protobuf field .google.bigtable.v2.ColumnRange column_range_filter = 7; - * @return \Google\Cloud\Bigtable\V2\ColumnRange|null - */ - public function getColumnRangeFilter() - { - return $this->readOneof(7); - } - - public function hasColumnRangeFilter() - { - return $this->hasOneof(7); - } - - /** - * Matches only cells from columns within the given range. - * - * Generated from protobuf field .google.bigtable.v2.ColumnRange column_range_filter = 7; - * @param \Google\Cloud\Bigtable\V2\ColumnRange $var - * @return $this - */ - public function setColumnRangeFilter($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\ColumnRange::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Matches only cells with timestamps within the given range. - * - * Generated from protobuf field .google.bigtable.v2.TimestampRange timestamp_range_filter = 8; - * @return \Google\Cloud\Bigtable\V2\TimestampRange|null - */ - public function getTimestampRangeFilter() - { - return $this->readOneof(8); - } - - public function hasTimestampRangeFilter() - { - return $this->hasOneof(8); - } - - /** - * Matches only cells with timestamps within the given range. - * - * Generated from protobuf field .google.bigtable.v2.TimestampRange timestamp_range_filter = 8; - * @param \Google\Cloud\Bigtable\V2\TimestampRange $var - * @return $this - */ - public function setTimestampRangeFilter($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\TimestampRange::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Matches only cells with values that satisfy the given regular expression. - * Note that, since cell values can contain arbitrary bytes, the `\C` escape - * sequence must be used if a true wildcard is desired. The `.` character - * will not match the new line character `\n`, which may be present in a - * binary value. - * - * Generated from protobuf field bytes value_regex_filter = 9; - * @return string - */ - public function getValueRegexFilter() - { - return $this->readOneof(9); - } - - public function hasValueRegexFilter() - { - return $this->hasOneof(9); - } - - /** - * Matches only cells with values that satisfy the given regular expression. - * Note that, since cell values can contain arbitrary bytes, the `\C` escape - * sequence must be used if a true wildcard is desired. The `.` character - * will not match the new line character `\n`, which may be present in a - * binary value. - * - * Generated from protobuf field bytes value_regex_filter = 9; - * @param string $var - * @return $this - */ - public function setValueRegexFilter($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * Matches only cells with values that fall within the given range. - * - * Generated from protobuf field .google.bigtable.v2.ValueRange value_range_filter = 15; - * @return \Google\Cloud\Bigtable\V2\ValueRange|null - */ - public function getValueRangeFilter() - { - return $this->readOneof(15); - } - - public function hasValueRangeFilter() - { - return $this->hasOneof(15); - } - - /** - * Matches only cells with values that fall within the given range. - * - * Generated from protobuf field .google.bigtable.v2.ValueRange value_range_filter = 15; - * @param \Google\Cloud\Bigtable\V2\ValueRange $var - * @return $this - */ - public function setValueRangeFilter($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\ValueRange::class); - $this->writeOneof(15, $var); - - return $this; - } - - /** - * Skips the first N cells of each row, matching all subsequent cells. - * If duplicate cells are present, as is possible when using an Interleave, - * each copy of the cell is counted separately. - * - * Generated from protobuf field int32 cells_per_row_offset_filter = 10; - * @return int - */ - public function getCellsPerRowOffsetFilter() - { - return $this->readOneof(10); - } - - public function hasCellsPerRowOffsetFilter() - { - return $this->hasOneof(10); - } - - /** - * Skips the first N cells of each row, matching all subsequent cells. - * If duplicate cells are present, as is possible when using an Interleave, - * each copy of the cell is counted separately. - * - * Generated from protobuf field int32 cells_per_row_offset_filter = 10; - * @param int $var - * @return $this - */ - public function setCellsPerRowOffsetFilter($var) - { - GPBUtil::checkInt32($var); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * Matches only the first N cells of each row. - * If duplicate cells are present, as is possible when using an Interleave, - * each copy of the cell is counted separately. - * - * Generated from protobuf field int32 cells_per_row_limit_filter = 11; - * @return int - */ - public function getCellsPerRowLimitFilter() - { - return $this->readOneof(11); - } - - public function hasCellsPerRowLimitFilter() - { - return $this->hasOneof(11); - } - - /** - * Matches only the first N cells of each row. - * If duplicate cells are present, as is possible when using an Interleave, - * each copy of the cell is counted separately. - * - * Generated from protobuf field int32 cells_per_row_limit_filter = 11; - * @param int $var - * @return $this - */ - public function setCellsPerRowLimitFilter($var) - { - GPBUtil::checkInt32($var); - $this->writeOneof(11, $var); - - return $this; - } - - /** - * Matches only the most recent N cells within each column. For example, - * if N=2, this filter would match column `foo:bar` at timestamps 10 and 9, - * skip all earlier cells in `foo:bar`, and then begin matching again in - * column `foo:bar2`. - * If duplicate cells are present, as is possible when using an Interleave, - * each copy of the cell is counted separately. - * - * Generated from protobuf field int32 cells_per_column_limit_filter = 12; - * @return int - */ - public function getCellsPerColumnLimitFilter() - { - return $this->readOneof(12); - } - - public function hasCellsPerColumnLimitFilter() - { - return $this->hasOneof(12); - } - - /** - * Matches only the most recent N cells within each column. For example, - * if N=2, this filter would match column `foo:bar` at timestamps 10 and 9, - * skip all earlier cells in `foo:bar`, and then begin matching again in - * column `foo:bar2`. - * If duplicate cells are present, as is possible when using an Interleave, - * each copy of the cell is counted separately. - * - * Generated from protobuf field int32 cells_per_column_limit_filter = 12; - * @param int $var - * @return $this - */ - public function setCellsPerColumnLimitFilter($var) - { - GPBUtil::checkInt32($var); - $this->writeOneof(12, $var); - - return $this; - } - - /** - * Replaces each cell's value with the empty string. - * - * Generated from protobuf field bool strip_value_transformer = 13; - * @return bool - */ - public function getStripValueTransformer() - { - return $this->readOneof(13); - } - - public function hasStripValueTransformer() - { - return $this->hasOneof(13); - } - - /** - * Replaces each cell's value with the empty string. - * - * Generated from protobuf field bool strip_value_transformer = 13; - * @param bool $var - * @return $this - */ - public function setStripValueTransformer($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * Applies the given label to all cells in the output row. This allows - * the client to determine which results were produced from which part of - * the filter. - * Values must be at most 15 characters in length, and match the RE2 - * pattern `[a-z0-9\\-]+` - * Due to a technical limitation, it is not currently possible to apply - * multiple labels to a cell. As a result, a Chain may have no more than - * one sub-filter which contains a `apply_label_transformer`. It is okay for - * an Interleave to contain multiple `apply_label_transformers`, as they - * will be applied to separate copies of the input. This may be relaxed in - * the future. - * - * Generated from protobuf field string apply_label_transformer = 19; - * @return string - */ - public function getApplyLabelTransformer() - { - return $this->readOneof(19); - } - - public function hasApplyLabelTransformer() - { - return $this->hasOneof(19); - } - - /** - * Applies the given label to all cells in the output row. This allows - * the client to determine which results were produced from which part of - * the filter. - * Values must be at most 15 characters in length, and match the RE2 - * pattern `[a-z0-9\\-]+` - * Due to a technical limitation, it is not currently possible to apply - * multiple labels to a cell. As a result, a Chain may have no more than - * one sub-filter which contains a `apply_label_transformer`. It is okay for - * an Interleave to contain multiple `apply_label_transformers`, as they - * will be applied to separate copies of the input. This may be relaxed in - * the future. - * - * Generated from protobuf field string apply_label_transformer = 19; - * @param string $var - * @return $this - */ - public function setApplyLabelTransformer($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(19, $var); - - return $this; - } - - /** - * @return string - */ - public function getFilter() - { - return $this->whichOneof("filter"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowFilter/Chain.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowFilter/Chain.php deleted file mode 100644 index e787c62b001f..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowFilter/Chain.php +++ /dev/null @@ -1,75 +0,0 @@ -google.bigtable.v2.RowFilter.Chain - */ -class Chain extends \Google\Protobuf\Internal\Message -{ - /** - * The elements of "filters" are chained together to process the input row: - * in row -> f(0) -> intermediate row -> f(1) -> ... -> f(N) -> out row - * The full chain is executed atomically. - * - * Generated from protobuf field repeated .google.bigtable.v2.RowFilter filters = 1; - */ - private $filters; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\RowFilter[] $filters - * The elements of "filters" are chained together to process the input row: - * in row -> f(0) -> intermediate row -> f(1) -> ... -> f(N) -> out row - * The full chain is executed atomically. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * The elements of "filters" are chained together to process the input row: - * in row -> f(0) -> intermediate row -> f(1) -> ... -> f(N) -> out row - * The full chain is executed atomically. - * - * Generated from protobuf field repeated .google.bigtable.v2.RowFilter filters = 1; - * @return RepeatedField<\Google\Cloud\Bigtable\V2\RowFilter> - */ - public function getFilters() - { - return $this->filters; - } - - /** - * The elements of "filters" are chained together to process the input row: - * in row -> f(0) -> intermediate row -> f(1) -> ... -> f(N) -> out row - * The full chain is executed atomically. - * - * Generated from protobuf field repeated .google.bigtable.v2.RowFilter filters = 1; - * @param \Google\Cloud\Bigtable\V2\RowFilter[] $var - * @return $this - */ - public function setFilters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\RowFilter::class); - $this->filters = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowFilter/Condition.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowFilter/Condition.php deleted file mode 100644 index be91977c48d5..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowFilter/Condition.php +++ /dev/null @@ -1,186 +0,0 @@ -google.bigtable.v2.RowFilter.Condition - */ -class Condition extends \Google\Protobuf\Internal\Message -{ - /** - * If `predicate_filter` outputs any cells, then `true_filter` will be - * evaluated on the input row. Otherwise, `false_filter` will be evaluated. - * - * Generated from protobuf field .google.bigtable.v2.RowFilter predicate_filter = 1; - */ - protected $predicate_filter = null; - /** - * The filter to apply to the input row if `predicate_filter` returns any - * results. If not provided, no results will be returned in the true case. - * - * Generated from protobuf field .google.bigtable.v2.RowFilter true_filter = 2; - */ - protected $true_filter = null; - /** - * The filter to apply to the input row if `predicate_filter` does not - * return any results. If not provided, no results will be returned in the - * false case. - * - * Generated from protobuf field .google.bigtable.v2.RowFilter false_filter = 3; - */ - protected $false_filter = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\RowFilter $predicate_filter - * If `predicate_filter` outputs any cells, then `true_filter` will be - * evaluated on the input row. Otherwise, `false_filter` will be evaluated. - * @type \Google\Cloud\Bigtable\V2\RowFilter $true_filter - * The filter to apply to the input row if `predicate_filter` returns any - * results. If not provided, no results will be returned in the true case. - * @type \Google\Cloud\Bigtable\V2\RowFilter $false_filter - * The filter to apply to the input row if `predicate_filter` does not - * return any results. If not provided, no results will be returned in the - * false case. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * If `predicate_filter` outputs any cells, then `true_filter` will be - * evaluated on the input row. Otherwise, `false_filter` will be evaluated. - * - * Generated from protobuf field .google.bigtable.v2.RowFilter predicate_filter = 1; - * @return \Google\Cloud\Bigtable\V2\RowFilter|null - */ - public function getPredicateFilter() - { - return $this->predicate_filter; - } - - public function hasPredicateFilter() - { - return isset($this->predicate_filter); - } - - public function clearPredicateFilter() - { - unset($this->predicate_filter); - } - - /** - * If `predicate_filter` outputs any cells, then `true_filter` will be - * evaluated on the input row. Otherwise, `false_filter` will be evaluated. - * - * Generated from protobuf field .google.bigtable.v2.RowFilter predicate_filter = 1; - * @param \Google\Cloud\Bigtable\V2\RowFilter $var - * @return $this - */ - public function setPredicateFilter($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\RowFilter::class); - $this->predicate_filter = $var; - - return $this; - } - - /** - * The filter to apply to the input row if `predicate_filter` returns any - * results. If not provided, no results will be returned in the true case. - * - * Generated from protobuf field .google.bigtable.v2.RowFilter true_filter = 2; - * @return \Google\Cloud\Bigtable\V2\RowFilter|null - */ - public function getTrueFilter() - { - return $this->true_filter; - } - - public function hasTrueFilter() - { - return isset($this->true_filter); - } - - public function clearTrueFilter() - { - unset($this->true_filter); - } - - /** - * The filter to apply to the input row if `predicate_filter` returns any - * results. If not provided, no results will be returned in the true case. - * - * Generated from protobuf field .google.bigtable.v2.RowFilter true_filter = 2; - * @param \Google\Cloud\Bigtable\V2\RowFilter $var - * @return $this - */ - public function setTrueFilter($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\RowFilter::class); - $this->true_filter = $var; - - return $this; - } - - /** - * The filter to apply to the input row if `predicate_filter` does not - * return any results. If not provided, no results will be returned in the - * false case. - * - * Generated from protobuf field .google.bigtable.v2.RowFilter false_filter = 3; - * @return \Google\Cloud\Bigtable\V2\RowFilter|null - */ - public function getFalseFilter() - { - return $this->false_filter; - } - - public function hasFalseFilter() - { - return isset($this->false_filter); - } - - public function clearFalseFilter() - { - unset($this->false_filter); - } - - /** - * The filter to apply to the input row if `predicate_filter` does not - * return any results. If not provided, no results will be returned in the - * false case. - * - * Generated from protobuf field .google.bigtable.v2.RowFilter false_filter = 3; - * @param \Google\Cloud\Bigtable\V2\RowFilter $var - * @return $this - */ - public function setFalseFilter($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\RowFilter::class); - $this->false_filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowFilter/Interleave.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowFilter/Interleave.php deleted file mode 100644 index 0d67d0ae5ad0..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowFilter/Interleave.php +++ /dev/null @@ -1,156 +0,0 @@ -google.bigtable.v2.RowFilter.Interleave - */ -class Interleave extends \Google\Protobuf\Internal\Message -{ - /** - * The elements of "filters" all process a copy of the input row, and the - * results are pooled, sorted, and combined into a single output row. - * If multiple cells are produced with the same column and timestamp, - * they will all appear in the output row in an unspecified mutual order. - * Consider the following example, with three filters: - * input row - * | - * ----------------------------------------------------- - * | | | - * f(0) f(1) f(2) - * | | | - * 1: foo,bar,10,x foo,bar,10,z far,bar,7,a - * 2: foo,blah,11,z far,blah,5,x far,blah,5,x - * | | | - * ----------------------------------------------------- - * | - * 1: foo,bar,10,z // could have switched with #2 - * 2: foo,bar,10,x // could have switched with #1 - * 3: foo,blah,11,z - * 4: far,bar,7,a - * 5: far,blah,5,x // identical to #6 - * 6: far,blah,5,x // identical to #5 - * All interleaved filters are executed atomically. - * - * Generated from protobuf field repeated .google.bigtable.v2.RowFilter filters = 1; - */ - private $filters; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\RowFilter[] $filters - * The elements of "filters" all process a copy of the input row, and the - * results are pooled, sorted, and combined into a single output row. - * If multiple cells are produced with the same column and timestamp, - * they will all appear in the output row in an unspecified mutual order. - * Consider the following example, with three filters: - * input row - * | - * ----------------------------------------------------- - * | | | - * f(0) f(1) f(2) - * | | | - * 1: foo,bar,10,x foo,bar,10,z far,bar,7,a - * 2: foo,blah,11,z far,blah,5,x far,blah,5,x - * | | | - * ----------------------------------------------------- - * | - * 1: foo,bar,10,z // could have switched with #2 - * 2: foo,bar,10,x // could have switched with #1 - * 3: foo,blah,11,z - * 4: far,bar,7,a - * 5: far,blah,5,x // identical to #6 - * 6: far,blah,5,x // identical to #5 - * All interleaved filters are executed atomically. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * The elements of "filters" all process a copy of the input row, and the - * results are pooled, sorted, and combined into a single output row. - * If multiple cells are produced with the same column and timestamp, - * they will all appear in the output row in an unspecified mutual order. - * Consider the following example, with three filters: - * input row - * | - * ----------------------------------------------------- - * | | | - * f(0) f(1) f(2) - * | | | - * 1: foo,bar,10,x foo,bar,10,z far,bar,7,a - * 2: foo,blah,11,z far,blah,5,x far,blah,5,x - * | | | - * ----------------------------------------------------- - * | - * 1: foo,bar,10,z // could have switched with #2 - * 2: foo,bar,10,x // could have switched with #1 - * 3: foo,blah,11,z - * 4: far,bar,7,a - * 5: far,blah,5,x // identical to #6 - * 6: far,blah,5,x // identical to #5 - * All interleaved filters are executed atomically. - * - * Generated from protobuf field repeated .google.bigtable.v2.RowFilter filters = 1; - * @return RepeatedField<\Google\Cloud\Bigtable\V2\RowFilter> - */ - public function getFilters() - { - return $this->filters; - } - - /** - * The elements of "filters" all process a copy of the input row, and the - * results are pooled, sorted, and combined into a single output row. - * If multiple cells are produced with the same column and timestamp, - * they will all appear in the output row in an unspecified mutual order. - * Consider the following example, with three filters: - * input row - * | - * ----------------------------------------------------- - * | | | - * f(0) f(1) f(2) - * | | | - * 1: foo,bar,10,x foo,bar,10,z far,bar,7,a - * 2: foo,blah,11,z far,blah,5,x far,blah,5,x - * | | | - * ----------------------------------------------------- - * | - * 1: foo,bar,10,z // could have switched with #2 - * 2: foo,bar,10,x // could have switched with #1 - * 3: foo,blah,11,z - * 4: far,bar,7,a - * 5: far,blah,5,x // identical to #6 - * 6: far,blah,5,x // identical to #5 - * All interleaved filters are executed atomically. - * - * Generated from protobuf field repeated .google.bigtable.v2.RowFilter filters = 1; - * @param \Google\Cloud\Bigtable\V2\RowFilter[] $var - * @return $this - */ - public function setFilters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\RowFilter::class); - $this->filters = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowRange.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowRange.php deleted file mode 100644 index 9f3d47997a59..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowRange.php +++ /dev/null @@ -1,183 +0,0 @@ -google.bigtable.v2.RowRange - */ -class RowRange extends \Google\Protobuf\Internal\Message -{ - protected $start_key; - protected $end_key; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $start_key_closed - * Used when giving an inclusive lower bound for the range. - * @type string $start_key_open - * Used when giving an exclusive lower bound for the range. - * @type string $end_key_open - * Used when giving an exclusive upper bound for the range. - * @type string $end_key_closed - * Used when giving an inclusive upper bound for the range. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * Used when giving an inclusive lower bound for the range. - * - * Generated from protobuf field bytes start_key_closed = 1; - * @return string - */ - public function getStartKeyClosed() - { - return $this->readOneof(1); - } - - public function hasStartKeyClosed() - { - return $this->hasOneof(1); - } - - /** - * Used when giving an inclusive lower bound for the range. - * - * Generated from protobuf field bytes start_key_closed = 1; - * @param string $var - * @return $this - */ - public function setStartKeyClosed($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Used when giving an exclusive lower bound for the range. - * - * Generated from protobuf field bytes start_key_open = 2; - * @return string - */ - public function getStartKeyOpen() - { - return $this->readOneof(2); - } - - public function hasStartKeyOpen() - { - return $this->hasOneof(2); - } - - /** - * Used when giving an exclusive lower bound for the range. - * - * Generated from protobuf field bytes start_key_open = 2; - * @param string $var - * @return $this - */ - public function setStartKeyOpen($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Used when giving an exclusive upper bound for the range. - * - * Generated from protobuf field bytes end_key_open = 3; - * @return string - */ - public function getEndKeyOpen() - { - return $this->readOneof(3); - } - - public function hasEndKeyOpen() - { - return $this->hasOneof(3); - } - - /** - * Used when giving an exclusive upper bound for the range. - * - * Generated from protobuf field bytes end_key_open = 3; - * @param string $var - * @return $this - */ - public function setEndKeyOpen($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Used when giving an inclusive upper bound for the range. - * - * Generated from protobuf field bytes end_key_closed = 4; - * @return string - */ - public function getEndKeyClosed() - { - return $this->readOneof(4); - } - - public function hasEndKeyClosed() - { - return $this->hasOneof(4); - } - - /** - * Used when giving an inclusive upper bound for the range. - * - * Generated from protobuf field bytes end_key_closed = 4; - * @param string $var - * @return $this - */ - public function setEndKeyClosed($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getStartKey() - { - return $this->whichOneof("start_key"); - } - - /** - * @return string - */ - public function getEndKey() - { - return $this->whichOneof("end_key"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowSet.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowSet.php deleted file mode 100644 index 6ba6a39ae425..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/RowSet.php +++ /dev/null @@ -1,101 +0,0 @@ -google.bigtable.v2.RowSet - */ -class RowSet extends \Google\Protobuf\Internal\Message -{ - /** - * Single rows included in the set. - * - * Generated from protobuf field repeated bytes row_keys = 1; - */ - private $row_keys; - /** - * Contiguous row ranges included in the set. - * - * Generated from protobuf field repeated .google.bigtable.v2.RowRange row_ranges = 2; - */ - private $row_ranges; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $row_keys - * Single rows included in the set. - * @type \Google\Cloud\Bigtable\V2\RowRange[] $row_ranges - * Contiguous row ranges included in the set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * Single rows included in the set. - * - * Generated from protobuf field repeated bytes row_keys = 1; - * @return RepeatedField - */ - public function getRowKeys() - { - return $this->row_keys; - } - - /** - * Single rows included in the set. - * - * Generated from protobuf field repeated bytes row_keys = 1; - * @param string[] $var - * @return $this - */ - public function setRowKeys($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::BYTES); - $this->row_keys = $arr; - - return $this; - } - - /** - * Contiguous row ranges included in the set. - * - * Generated from protobuf field repeated .google.bigtable.v2.RowRange row_ranges = 2; - * @return RepeatedField<\Google\Cloud\Bigtable\V2\RowRange> - */ - public function getRowRanges() - { - return $this->row_ranges; - } - - /** - * Contiguous row ranges included in the set. - * - * Generated from protobuf field repeated .google.bigtable.v2.RowRange row_ranges = 2; - * @param \Google\Cloud\Bigtable\V2\RowRange[] $var - * @return $this - */ - public function setRowRanges($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\RowRange::class); - $this->row_ranges = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/SampleRowKeysRequest.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/SampleRowKeysRequest.php deleted file mode 100644 index 995d244018aa..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/SampleRowKeysRequest.php +++ /dev/null @@ -1,238 +0,0 @@ -google.bigtable.v2.SampleRowKeysRequest - */ -class SampleRowKeysRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The unique name of the table from which to sample row keys. - * Values are of the form - * `projects//instances//tables/
`. - * - * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $table_name = ''; - /** - * Optional. The unique name of the AuthorizedView from which to sample row - * keys. - * Values are of the form - * `projects//instances//tables/
/authorizedViews/`. - * - * Generated from protobuf field string authorized_view_name = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $authorized_view_name = ''; - /** - * Optional. The unique name of the MaterializedView from which to read. - * Values are of the form - * `projects//instances//materializedViews/`. - * - * Generated from protobuf field string materialized_view_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $materialized_view_name = ''; - /** - * This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * - * Generated from protobuf field string app_profile_id = 2; - */ - protected $app_profile_id = ''; - - /** - * @param string $tableName Optional. The unique name of the table from which to sample row keys. - * - * Values are of the form - * `projects//instances//tables/
`. Please see - * {@see BigtableClient::tableName()} for help formatting this field. - * - * @return \Google\Cloud\Bigtable\V2\SampleRowKeysRequest - * - * @experimental - */ - public static function build(string $tableName): self - { - return (new self()) - ->setTableName($tableName); - } - - /** - * @param string $tableName Optional. The unique name of the table from which to sample row keys. - * - * Values are of the form - * `projects//instances//tables/
`. Please see - * {@see BigtableClient::tableName()} for help formatting this field. - * @param string $appProfileId This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * - * @return \Google\Cloud\Bigtable\V2\SampleRowKeysRequest - * - * @experimental - */ - public static function buildFromTableNameAppProfileId(string $tableName, string $appProfileId): self - { - return (new self()) - ->setTableName($tableName) - ->setAppProfileId($appProfileId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $table_name - * Optional. The unique name of the table from which to sample row keys. - * Values are of the form - * `projects//instances//tables/
`. - * @type string $authorized_view_name - * Optional. The unique name of the AuthorizedView from which to sample row - * keys. - * Values are of the form - * `projects//instances//tables/
/authorizedViews/`. - * @type string $materialized_view_name - * Optional. The unique name of the MaterializedView from which to read. - * Values are of the form - * `projects//instances//materializedViews/`. - * @type string $app_profile_id - * This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The unique name of the table from which to sample row keys. - * Values are of the form - * `projects//instances//tables/
`. - * - * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getTableName() - { - return $this->table_name; - } - - /** - * Optional. The unique name of the table from which to sample row keys. - * Values are of the form - * `projects//instances//tables/
`. - * - * Generated from protobuf field string table_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setTableName($var) - { - GPBUtil::checkString($var, True); - $this->table_name = $var; - - return $this; - } - - /** - * Optional. The unique name of the AuthorizedView from which to sample row - * keys. - * Values are of the form - * `projects//instances//tables/
/authorizedViews/`. - * - * Generated from protobuf field string authorized_view_name = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getAuthorizedViewName() - { - return $this->authorized_view_name; - } - - /** - * Optional. The unique name of the AuthorizedView from which to sample row - * keys. - * Values are of the form - * `projects//instances//tables/
/authorizedViews/`. - * - * Generated from protobuf field string authorized_view_name = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setAuthorizedViewName($var) - { - GPBUtil::checkString($var, True); - $this->authorized_view_name = $var; - - return $this; - } - - /** - * Optional. The unique name of the MaterializedView from which to read. - * Values are of the form - * `projects//instances//materializedViews/`. - * - * Generated from protobuf field string materialized_view_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getMaterializedViewName() - { - return $this->materialized_view_name; - } - - /** - * Optional. The unique name of the MaterializedView from which to read. - * Values are of the form - * `projects//instances//materializedViews/`. - * - * Generated from protobuf field string materialized_view_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setMaterializedViewName($var) - { - GPBUtil::checkString($var, True); - $this->materialized_view_name = $var; - - return $this; - } - - /** - * This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * - * Generated from protobuf field string app_profile_id = 2; - * @return string - */ - public function getAppProfileId() - { - return $this->app_profile_id; - } - - /** - * This value specifies routing for replication. If not specified, the - * "default" application profile will be used. - * - * Generated from protobuf field string app_profile_id = 2; - * @param string $var - * @return $this - */ - public function setAppProfileId($var) - { - GPBUtil::checkString($var, True); - $this->app_profile_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/SampleRowKeysResponse.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/SampleRowKeysResponse.php deleted file mode 100644 index d261b6417f82..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/SampleRowKeysResponse.php +++ /dev/null @@ -1,137 +0,0 @@ -google.bigtable.v2.SampleRowKeysResponse - */ -class SampleRowKeysResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Sorted streamed sequence of sample row keys in the table. The table might - * have contents before the first row key in the list and after the last one, - * but a key containing the empty string indicates "end of table" and will be - * the last response given, if present. - * Note that row keys in this list may not have ever been written to or read - * from, and users should therefore not make any assumptions about the row key - * structure that are specific to their use case. - * - * Generated from protobuf field bytes row_key = 1; - */ - protected $row_key = ''; - /** - * Approximate total storage space used by all rows in the table which precede - * `row_key`. Buffering the contents of all rows between two subsequent - * samples would require space roughly equal to the difference in their - * `offset_bytes` fields. - * - * Generated from protobuf field int64 offset_bytes = 2; - */ - protected $offset_bytes = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $row_key - * Sorted streamed sequence of sample row keys in the table. The table might - * have contents before the first row key in the list and after the last one, - * but a key containing the empty string indicates "end of table" and will be - * the last response given, if present. - * Note that row keys in this list may not have ever been written to or read - * from, and users should therefore not make any assumptions about the row key - * structure that are specific to their use case. - * @type int|string $offset_bytes - * Approximate total storage space used by all rows in the table which precede - * `row_key`. Buffering the contents of all rows between two subsequent - * samples would require space roughly equal to the difference in their - * `offset_bytes` fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce(); - parent::__construct($data); - } - - /** - * Sorted streamed sequence of sample row keys in the table. The table might - * have contents before the first row key in the list and after the last one, - * but a key containing the empty string indicates "end of table" and will be - * the last response given, if present. - * Note that row keys in this list may not have ever been written to or read - * from, and users should therefore not make any assumptions about the row key - * structure that are specific to their use case. - * - * Generated from protobuf field bytes row_key = 1; - * @return string - */ - public function getRowKey() - { - return $this->row_key; - } - - /** - * Sorted streamed sequence of sample row keys in the table. The table might - * have contents before the first row key in the list and after the last one, - * but a key containing the empty string indicates "end of table" and will be - * the last response given, if present. - * Note that row keys in this list may not have ever been written to or read - * from, and users should therefore not make any assumptions about the row key - * structure that are specific to their use case. - * - * Generated from protobuf field bytes row_key = 1; - * @param string $var - * @return $this - */ - public function setRowKey($var) - { - GPBUtil::checkString($var, False); - $this->row_key = $var; - - return $this; - } - - /** - * Approximate total storage space used by all rows in the table which precede - * `row_key`. Buffering the contents of all rows between two subsequent - * samples would require space roughly equal to the difference in their - * `offset_bytes` fields. - * - * Generated from protobuf field int64 offset_bytes = 2; - * @return int|string - */ - public function getOffsetBytes() - { - return $this->offset_bytes; - } - - /** - * Approximate total storage space used by all rows in the table which precede - * `row_key`. Buffering the contents of all rows between two subsequent - * samples would require space roughly equal to the difference in their - * `offset_bytes` fields. - * - * Generated from protobuf field int64 offset_bytes = 2; - * @param int|string $var - * @return $this - */ - public function setOffsetBytes($var) - { - GPBUtil::checkInt64($var); - $this->offset_bytes = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/StreamContinuationToken.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/StreamContinuationToken.php deleted file mode 100644 index 928fe8f6da84..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/StreamContinuationToken.php +++ /dev/null @@ -1,113 +0,0 @@ -google.bigtable.v2.StreamContinuationToken - */ -class StreamContinuationToken extends \Google\Protobuf\Internal\Message -{ - /** - * The partition that this token applies to. - * - * Generated from protobuf field .google.bigtable.v2.StreamPartition partition = 1; - */ - protected $partition = null; - /** - * An encoded position in the stream to restart reading from. - * - * Generated from protobuf field string token = 2; - */ - protected $token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\StreamPartition $partition - * The partition that this token applies to. - * @type string $token - * An encoded position in the stream to restart reading from. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * The partition that this token applies to. - * - * Generated from protobuf field .google.bigtable.v2.StreamPartition partition = 1; - * @return \Google\Cloud\Bigtable\V2\StreamPartition|null - */ - public function getPartition() - { - return $this->partition; - } - - public function hasPartition() - { - return isset($this->partition); - } - - public function clearPartition() - { - unset($this->partition); - } - - /** - * The partition that this token applies to. - * - * Generated from protobuf field .google.bigtable.v2.StreamPartition partition = 1; - * @param \Google\Cloud\Bigtable\V2\StreamPartition $var - * @return $this - */ - public function setPartition($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\StreamPartition::class); - $this->partition = $var; - - return $this; - } - - /** - * An encoded position in the stream to restart reading from. - * - * Generated from protobuf field string token = 2; - * @return string - */ - public function getToken() - { - return $this->token; - } - - /** - * An encoded position in the stream to restart reading from. - * - * Generated from protobuf field string token = 2; - * @param string $var - * @return $this - */ - public function setToken($var) - { - GPBUtil::checkString($var, True); - $this->token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/StreamContinuationTokens.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/StreamContinuationTokens.php deleted file mode 100644 index cbade22e3170..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/StreamContinuationTokens.php +++ /dev/null @@ -1,69 +0,0 @@ -google.bigtable.v2.StreamContinuationTokens - */ -class StreamContinuationTokens extends \Google\Protobuf\Internal\Message -{ - /** - * List of continuation tokens. - * - * Generated from protobuf field repeated .google.bigtable.v2.StreamContinuationToken tokens = 1; - */ - private $tokens; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\StreamContinuationToken[] $tokens - * List of continuation tokens. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * List of continuation tokens. - * - * Generated from protobuf field repeated .google.bigtable.v2.StreamContinuationToken tokens = 1; - * @return RepeatedField<\Google\Cloud\Bigtable\V2\StreamContinuationToken> - */ - public function getTokens() - { - return $this->tokens; - } - - /** - * List of continuation tokens. - * - * Generated from protobuf field repeated .google.bigtable.v2.StreamContinuationToken tokens = 1; - * @param \Google\Cloud\Bigtable\V2\StreamContinuationToken[] $var - * @return $this - */ - public function setTokens($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\StreamContinuationToken::class); - $this->tokens = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/StreamPartition.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/StreamPartition.php deleted file mode 100644 index e10cd04fd0c4..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/StreamPartition.php +++ /dev/null @@ -1,82 +0,0 @@ -google.bigtable.v2.StreamPartition - */ -class StreamPartition extends \Google\Protobuf\Internal\Message -{ - /** - * The row range covered by this partition and is specified by - * [`start_key_closed`, `end_key_open`). - * - * Generated from protobuf field .google.bigtable.v2.RowRange row_range = 1; - */ - protected $row_range = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\RowRange $row_range - * The row range covered by this partition and is specified by - * [`start_key_closed`, `end_key_open`). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * The row range covered by this partition and is specified by - * [`start_key_closed`, `end_key_open`). - * - * Generated from protobuf field .google.bigtable.v2.RowRange row_range = 1; - * @return \Google\Cloud\Bigtable\V2\RowRange|null - */ - public function getRowRange() - { - return $this->row_range; - } - - public function hasRowRange() - { - return isset($this->row_range); - } - - public function clearRowRange() - { - unset($this->row_range); - } - - /** - * The row range covered by this partition and is specified by - * [`start_key_closed`, `end_key_open`). - * - * Generated from protobuf field .google.bigtable.v2.RowRange row_range = 1; - * @param \Google\Cloud\Bigtable\V2\RowRange $var - * @return $this - */ - public function setRowRange($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\RowRange::class); - $this->row_range = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/TimestampRange.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/TimestampRange.php deleted file mode 100644 index 221d079b7fa6..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/TimestampRange.php +++ /dev/null @@ -1,101 +0,0 @@ -google.bigtable.v2.TimestampRange - */ -class TimestampRange extends \Google\Protobuf\Internal\Message -{ - /** - * Inclusive lower bound. If left empty, interpreted as 0. - * - * Generated from protobuf field int64 start_timestamp_micros = 1; - */ - protected $start_timestamp_micros = 0; - /** - * Exclusive upper bound. If left empty, interpreted as infinity. - * - * Generated from protobuf field int64 end_timestamp_micros = 2; - */ - protected $end_timestamp_micros = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $start_timestamp_micros - * Inclusive lower bound. If left empty, interpreted as 0. - * @type int|string $end_timestamp_micros - * Exclusive upper bound. If left empty, interpreted as infinity. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * Inclusive lower bound. If left empty, interpreted as 0. - * - * Generated from protobuf field int64 start_timestamp_micros = 1; - * @return int|string - */ - public function getStartTimestampMicros() - { - return $this->start_timestamp_micros; - } - - /** - * Inclusive lower bound. If left empty, interpreted as 0. - * - * Generated from protobuf field int64 start_timestamp_micros = 1; - * @param int|string $var - * @return $this - */ - public function setStartTimestampMicros($var) - { - GPBUtil::checkInt64($var); - $this->start_timestamp_micros = $var; - - return $this; - } - - /** - * Exclusive upper bound. If left empty, interpreted as infinity. - * - * Generated from protobuf field int64 end_timestamp_micros = 2; - * @return int|string - */ - public function getEndTimestampMicros() - { - return $this->end_timestamp_micros; - } - - /** - * Exclusive upper bound. If left empty, interpreted as infinity. - * - * Generated from protobuf field int64 end_timestamp_micros = 2; - * @param int|string $var - * @return $this - */ - public function setEndTimestampMicros($var) - { - GPBUtil::checkInt64($var); - $this->end_timestamp_micros = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type.php deleted file mode 100644 index 64f69d060e5d..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type.php +++ /dev/null @@ -1,521 +0,0 @@ - INT64(-1)`, but - * `STRING("-00001") > STRING("00001")`. - * - * Generated from protobuf message google.bigtable.v2.Type - */ -class Type extends \Google\Protobuf\Internal\Message -{ - protected $kind; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\Type\Bytes $bytes_type - * Bytes - * @type \Google\Cloud\Bigtable\V2\Type\PBString $string_type - * String - * @type \Google\Cloud\Bigtable\V2\Type\Int64 $int64_type - * Int64 - * @type \Google\Cloud\Bigtable\V2\Type\Float32 $float32_type - * Float32 - * @type \Google\Cloud\Bigtable\V2\Type\Float64 $float64_type - * Float64 - * @type \Google\Cloud\Bigtable\V2\Type\PBBool $bool_type - * Bool - * @type \Google\Cloud\Bigtable\V2\Type\Timestamp $timestamp_type - * Timestamp - * @type \Google\Cloud\Bigtable\V2\Type\Date $date_type - * Date - * @type \Google\Cloud\Bigtable\V2\Type\Aggregate $aggregate_type - * Aggregate - * @type \Google\Cloud\Bigtable\V2\Type\Struct $struct_type - * Struct - * @type \Google\Cloud\Bigtable\V2\Type\PBArray $array_type - * Array - * @type \Google\Cloud\Bigtable\V2\Type\Map $map_type - * Map - * @type \Google\Cloud\Bigtable\V2\Type\Proto $proto_type - * Proto - * @type \Google\Cloud\Bigtable\V2\Type\Enum $enum_type - * Enum - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * Bytes - * - * Generated from protobuf field .google.bigtable.v2.Type.Bytes bytes_type = 1; - * @return \Google\Cloud\Bigtable\V2\Type\Bytes|null - */ - public function getBytesType() - { - return $this->readOneof(1); - } - - public function hasBytesType() - { - return $this->hasOneof(1); - } - - /** - * Bytes - * - * Generated from protobuf field .google.bigtable.v2.Type.Bytes bytes_type = 1; - * @param \Google\Cloud\Bigtable\V2\Type\Bytes $var - * @return $this - */ - public function setBytesType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Bytes::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * String - * - * Generated from protobuf field .google.bigtable.v2.Type.String string_type = 2; - * @return \Google\Cloud\Bigtable\V2\Type\PBString|null - */ - public function getStringType() - { - return $this->readOneof(2); - } - - public function hasStringType() - { - return $this->hasOneof(2); - } - - /** - * String - * - * Generated from protobuf field .google.bigtable.v2.Type.String string_type = 2; - * @param \Google\Cloud\Bigtable\V2\Type\PBString $var - * @return $this - */ - public function setStringType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\PBString::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Int64 - * - * Generated from protobuf field .google.bigtable.v2.Type.Int64 int64_type = 5; - * @return \Google\Cloud\Bigtable\V2\Type\Int64|null - */ - public function getInt64Type() - { - return $this->readOneof(5); - } - - public function hasInt64Type() - { - return $this->hasOneof(5); - } - - /** - * Int64 - * - * Generated from protobuf field .google.bigtable.v2.Type.Int64 int64_type = 5; - * @param \Google\Cloud\Bigtable\V2\Type\Int64 $var - * @return $this - */ - public function setInt64Type($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Int64::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Float32 - * - * Generated from protobuf field .google.bigtable.v2.Type.Float32 float32_type = 12; - * @return \Google\Cloud\Bigtable\V2\Type\Float32|null - */ - public function getFloat32Type() - { - return $this->readOneof(12); - } - - public function hasFloat32Type() - { - return $this->hasOneof(12); - } - - /** - * Float32 - * - * Generated from protobuf field .google.bigtable.v2.Type.Float32 float32_type = 12; - * @param \Google\Cloud\Bigtable\V2\Type\Float32 $var - * @return $this - */ - public function setFloat32Type($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Float32::class); - $this->writeOneof(12, $var); - - return $this; - } - - /** - * Float64 - * - * Generated from protobuf field .google.bigtable.v2.Type.Float64 float64_type = 9; - * @return \Google\Cloud\Bigtable\V2\Type\Float64|null - */ - public function getFloat64Type() - { - return $this->readOneof(9); - } - - public function hasFloat64Type() - { - return $this->hasOneof(9); - } - - /** - * Float64 - * - * Generated from protobuf field .google.bigtable.v2.Type.Float64 float64_type = 9; - * @param \Google\Cloud\Bigtable\V2\Type\Float64 $var - * @return $this - */ - public function setFloat64Type($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Float64::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * Bool - * - * Generated from protobuf field .google.bigtable.v2.Type.Bool bool_type = 8; - * @return \Google\Cloud\Bigtable\V2\Type\PBBool|null - */ - public function getBoolType() - { - return $this->readOneof(8); - } - - public function hasBoolType() - { - return $this->hasOneof(8); - } - - /** - * Bool - * - * Generated from protobuf field .google.bigtable.v2.Type.Bool bool_type = 8; - * @param \Google\Cloud\Bigtable\V2\Type\PBBool $var - * @return $this - */ - public function setBoolType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\PBBool::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Timestamp - * - * Generated from protobuf field .google.bigtable.v2.Type.Timestamp timestamp_type = 10; - * @return \Google\Cloud\Bigtable\V2\Type\Timestamp|null - */ - public function getTimestampType() - { - return $this->readOneof(10); - } - - public function hasTimestampType() - { - return $this->hasOneof(10); - } - - /** - * Timestamp - * - * Generated from protobuf field .google.bigtable.v2.Type.Timestamp timestamp_type = 10; - * @param \Google\Cloud\Bigtable\V2\Type\Timestamp $var - * @return $this - */ - public function setTimestampType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Timestamp::class); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * Date - * - * Generated from protobuf field .google.bigtable.v2.Type.Date date_type = 11; - * @return \Google\Cloud\Bigtable\V2\Type\Date|null - */ - public function getDateType() - { - return $this->readOneof(11); - } - - public function hasDateType() - { - return $this->hasOneof(11); - } - - /** - * Date - * - * Generated from protobuf field .google.bigtable.v2.Type.Date date_type = 11; - * @param \Google\Cloud\Bigtable\V2\Type\Date $var - * @return $this - */ - public function setDateType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Date::class); - $this->writeOneof(11, $var); - - return $this; - } - - /** - * Aggregate - * - * Generated from protobuf field .google.bigtable.v2.Type.Aggregate aggregate_type = 6; - * @return \Google\Cloud\Bigtable\V2\Type\Aggregate|null - */ - public function getAggregateType() - { - return $this->readOneof(6); - } - - public function hasAggregateType() - { - return $this->hasOneof(6); - } - - /** - * Aggregate - * - * Generated from protobuf field .google.bigtable.v2.Type.Aggregate aggregate_type = 6; - * @param \Google\Cloud\Bigtable\V2\Type\Aggregate $var - * @return $this - */ - public function setAggregateType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Aggregate::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Struct - * - * Generated from protobuf field .google.bigtable.v2.Type.Struct struct_type = 7; - * @return \Google\Cloud\Bigtable\V2\Type\Struct|null - */ - public function getStructType() - { - return $this->readOneof(7); - } - - public function hasStructType() - { - return $this->hasOneof(7); - } - - /** - * Struct - * - * Generated from protobuf field .google.bigtable.v2.Type.Struct struct_type = 7; - * @param \Google\Cloud\Bigtable\V2\Type\Struct $var - * @return $this - */ - public function setStructType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Struct::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Array - * - * Generated from protobuf field .google.bigtable.v2.Type.Array array_type = 3; - * @return \Google\Cloud\Bigtable\V2\Type\PBArray|null - */ - public function getArrayType() - { - return $this->readOneof(3); - } - - public function hasArrayType() - { - return $this->hasOneof(3); - } - - /** - * Array - * - * Generated from protobuf field .google.bigtable.v2.Type.Array array_type = 3; - * @param \Google\Cloud\Bigtable\V2\Type\PBArray $var - * @return $this - */ - public function setArrayType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\PBArray::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Map - * - * Generated from protobuf field .google.bigtable.v2.Type.Map map_type = 4; - * @return \Google\Cloud\Bigtable\V2\Type\Map|null - */ - public function getMapType() - { - return $this->readOneof(4); - } - - public function hasMapType() - { - return $this->hasOneof(4); - } - - /** - * Map - * - * Generated from protobuf field .google.bigtable.v2.Type.Map map_type = 4; - * @param \Google\Cloud\Bigtable\V2\Type\Map $var - * @return $this - */ - public function setMapType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Map::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Proto - * - * Generated from protobuf field .google.bigtable.v2.Type.Proto proto_type = 13; - * @return \Google\Cloud\Bigtable\V2\Type\Proto|null - */ - public function getProtoType() - { - return $this->readOneof(13); - } - - public function hasProtoType() - { - return $this->hasOneof(13); - } - - /** - * Proto - * - * Generated from protobuf field .google.bigtable.v2.Type.Proto proto_type = 13; - * @param \Google\Cloud\Bigtable\V2\Type\Proto $var - * @return $this - */ - public function setProtoType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Proto::class); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * Enum - * - * Generated from protobuf field .google.bigtable.v2.Type.Enum enum_type = 14; - * @return \Google\Cloud\Bigtable\V2\Type\Enum|null - */ - public function getEnumType() - { - return $this->readOneof(14); - } - - public function hasEnumType() - { - return $this->hasOneof(14); - } - - /** - * Enum - * - * Generated from protobuf field .google.bigtable.v2.Type.Enum enum_type = 14; - * @param \Google\Cloud\Bigtable\V2\Type\Enum $var - * @return $this - */ - public function setEnumType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Enum::class); - $this->writeOneof(14, $var); - - return $this; - } - - /** - * @return string - */ - public function getKind() - { - return $this->whichOneof("kind"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate.php deleted file mode 100644 index bb7fbcf9abf5..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate.php +++ /dev/null @@ -1,277 +0,0 @@ -google.bigtable.v2.Type.Aggregate - */ -class Aggregate extends \Google\Protobuf\Internal\Message -{ - /** - * Type of the inputs that are accumulated by this `Aggregate`. - * Use `AddInput` mutations to accumulate new inputs. - * - * Generated from protobuf field .google.bigtable.v2.Type input_type = 1; - */ - protected $input_type = null; - /** - * Output only. Type that holds the internal accumulator state for the - * `Aggregate`. This is a function of the `input_type` and `aggregator` - * chosen. - * - * Generated from protobuf field .google.bigtable.v2.Type state_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state_type = null; - protected $aggregator; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\Type $input_type - * Type of the inputs that are accumulated by this `Aggregate`. - * Use `AddInput` mutations to accumulate new inputs. - * @type \Google\Cloud\Bigtable\V2\Type $state_type - * Output only. Type that holds the internal accumulator state for the - * `Aggregate`. This is a function of the `input_type` and `aggregator` - * chosen. - * @type \Google\Cloud\Bigtable\V2\Type\Aggregate\Sum $sum - * Sum aggregator. - * @type \Google\Cloud\Bigtable\V2\Type\Aggregate\HyperLogLogPlusPlusUniqueCount $hllpp_unique_count - * HyperLogLogPlusPlusUniqueCount aggregator. - * @type \Google\Cloud\Bigtable\V2\Type\Aggregate\Max $max - * Max aggregator. - * @type \Google\Cloud\Bigtable\V2\Type\Aggregate\Min $min - * Min aggregator. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * Type of the inputs that are accumulated by this `Aggregate`. - * Use `AddInput` mutations to accumulate new inputs. - * - * Generated from protobuf field .google.bigtable.v2.Type input_type = 1; - * @return \Google\Cloud\Bigtable\V2\Type|null - */ - public function getInputType() - { - return $this->input_type; - } - - public function hasInputType() - { - return isset($this->input_type); - } - - public function clearInputType() - { - unset($this->input_type); - } - - /** - * Type of the inputs that are accumulated by this `Aggregate`. - * Use `AddInput` mutations to accumulate new inputs. - * - * Generated from protobuf field .google.bigtable.v2.Type input_type = 1; - * @param \Google\Cloud\Bigtable\V2\Type $var - * @return $this - */ - public function setInputType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type::class); - $this->input_type = $var; - - return $this; - } - - /** - * Output only. Type that holds the internal accumulator state for the - * `Aggregate`. This is a function of the `input_type` and `aggregator` - * chosen. - * - * Generated from protobuf field .google.bigtable.v2.Type state_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Bigtable\V2\Type|null - */ - public function getStateType() - { - return $this->state_type; - } - - public function hasStateType() - { - return isset($this->state_type); - } - - public function clearStateType() - { - unset($this->state_type); - } - - /** - * Output only. Type that holds the internal accumulator state for the - * `Aggregate`. This is a function of the `input_type` and `aggregator` - * chosen. - * - * Generated from protobuf field .google.bigtable.v2.Type state_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Bigtable\V2\Type $var - * @return $this - */ - public function setStateType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type::class); - $this->state_type = $var; - - return $this; - } - - /** - * Sum aggregator. - * - * Generated from protobuf field .google.bigtable.v2.Type.Aggregate.Sum sum = 4; - * @return \Google\Cloud\Bigtable\V2\Type\Aggregate\Sum|null - */ - public function getSum() - { - return $this->readOneof(4); - } - - public function hasSum() - { - return $this->hasOneof(4); - } - - /** - * Sum aggregator. - * - * Generated from protobuf field .google.bigtable.v2.Type.Aggregate.Sum sum = 4; - * @param \Google\Cloud\Bigtable\V2\Type\Aggregate\Sum $var - * @return $this - */ - public function setSum($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Aggregate\Sum::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * HyperLogLogPlusPlusUniqueCount aggregator. - * - * Generated from protobuf field .google.bigtable.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount hllpp_unique_count = 5; - * @return \Google\Cloud\Bigtable\V2\Type\Aggregate\HyperLogLogPlusPlusUniqueCount|null - */ - public function getHllppUniqueCount() - { - return $this->readOneof(5); - } - - public function hasHllppUniqueCount() - { - return $this->hasOneof(5); - } - - /** - * HyperLogLogPlusPlusUniqueCount aggregator. - * - * Generated from protobuf field .google.bigtable.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount hllpp_unique_count = 5; - * @param \Google\Cloud\Bigtable\V2\Type\Aggregate\HyperLogLogPlusPlusUniqueCount $var - * @return $this - */ - public function setHllppUniqueCount($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Aggregate\HyperLogLogPlusPlusUniqueCount::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Max aggregator. - * - * Generated from protobuf field .google.bigtable.v2.Type.Aggregate.Max max = 6; - * @return \Google\Cloud\Bigtable\V2\Type\Aggregate\Max|null - */ - public function getMax() - { - return $this->readOneof(6); - } - - public function hasMax() - { - return $this->hasOneof(6); - } - - /** - * Max aggregator. - * - * Generated from protobuf field .google.bigtable.v2.Type.Aggregate.Max max = 6; - * @param \Google\Cloud\Bigtable\V2\Type\Aggregate\Max $var - * @return $this - */ - public function setMax($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Aggregate\Max::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Min aggregator. - * - * Generated from protobuf field .google.bigtable.v2.Type.Aggregate.Min min = 7; - * @return \Google\Cloud\Bigtable\V2\Type\Aggregate\Min|null - */ - public function getMin() - { - return $this->readOneof(7); - } - - public function hasMin() - { - return $this->hasOneof(7); - } - - /** - * Min aggregator. - * - * Generated from protobuf field .google.bigtable.v2.Type.Aggregate.Min min = 7; - * @param \Google\Cloud\Bigtable\V2\Type\Aggregate\Min $var - * @return $this - */ - public function setMin($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Aggregate\Min::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * @return string - */ - public function getAggregator() - { - return $this->whichOneof("aggregator"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate/HyperLogLogPlusPlusUniqueCount.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate/HyperLogLogPlusPlusUniqueCount.php deleted file mode 100644 index aaff34217e4b..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate/HyperLogLogPlusPlusUniqueCount.php +++ /dev/null @@ -1,39 +0,0 @@ -google.bigtable.v2.Type.Aggregate.HyperLogLogPlusPlusUniqueCount - */ -class HyperLogLogPlusPlusUniqueCount extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate/Max.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate/Max.php deleted file mode 100644 index f5a95ba6be6f..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate/Max.php +++ /dev/null @@ -1,35 +0,0 @@ -google.bigtable.v2.Type.Aggregate.Max - */ -class Max extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate/Min.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate/Min.php deleted file mode 100644 index 0e29f67740b0..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate/Min.php +++ /dev/null @@ -1,35 +0,0 @@ -google.bigtable.v2.Type.Aggregate.Min - */ -class Min extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate/Sum.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate/Sum.php deleted file mode 100644 index da948f5ca5ef..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Aggregate/Sum.php +++ /dev/null @@ -1,35 +0,0 @@ -google.bigtable.v2.Type.Aggregate.Sum - */ -class Sum extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Bytes.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Bytes.php deleted file mode 100644 index ff0ee34a558d..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Bytes.php +++ /dev/null @@ -1,78 +0,0 @@ -google.bigtable.v2.Type.Bytes - */ -class Bytes extends \Google\Protobuf\Internal\Message -{ - /** - * The encoding to use when converting to or from lower level types. - * - * Generated from protobuf field .google.bigtable.v2.Type.Bytes.Encoding encoding = 1; - */ - protected $encoding = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\Type\Bytes\Encoding $encoding - * The encoding to use when converting to or from lower level types. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * The encoding to use when converting to or from lower level types. - * - * Generated from protobuf field .google.bigtable.v2.Type.Bytes.Encoding encoding = 1; - * @return \Google\Cloud\Bigtable\V2\Type\Bytes\Encoding|null - */ - public function getEncoding() - { - return $this->encoding; - } - - public function hasEncoding() - { - return isset($this->encoding); - } - - public function clearEncoding() - { - unset($this->encoding); - } - - /** - * The encoding to use when converting to or from lower level types. - * - * Generated from protobuf field .google.bigtable.v2.Type.Bytes.Encoding encoding = 1; - * @param \Google\Cloud\Bigtable\V2\Type\Bytes\Encoding $var - * @return $this - */ - public function setEncoding($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Bytes\Encoding::class); - $this->encoding = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Bytes/Encoding.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Bytes/Encoding.php deleted file mode 100644 index 7678a4016f7d..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Bytes/Encoding.php +++ /dev/null @@ -1,75 +0,0 @@ -google.bigtable.v2.Type.Bytes.Encoding - */ -class Encoding extends \Google\Protobuf\Internal\Message -{ - protected $encoding; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\Type\Bytes\Encoding\Raw $raw - * Use `Raw` encoding. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * Use `Raw` encoding. - * - * Generated from protobuf field .google.bigtable.v2.Type.Bytes.Encoding.Raw raw = 1; - * @return \Google\Cloud\Bigtable\V2\Type\Bytes\Encoding\Raw|null - */ - public function getRaw() - { - return $this->readOneof(1); - } - - public function hasRaw() - { - return $this->hasOneof(1); - } - - /** - * Use `Raw` encoding. - * - * Generated from protobuf field .google.bigtable.v2.Type.Bytes.Encoding.Raw raw = 1; - * @param \Google\Cloud\Bigtable\V2\Type\Bytes\Encoding\Raw $var - * @return $this - */ - public function setRaw($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Bytes\Encoding\Raw::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getEncoding() - { - return $this->whichOneof("encoding"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Bytes/Encoding/Raw.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Bytes/Encoding/Raw.php deleted file mode 100644 index 3fca5b77eac6..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Bytes/Encoding/Raw.php +++ /dev/null @@ -1,77 +0,0 @@ -google.bigtable.v2.Type.Bytes.Encoding.Raw - */ -class Raw extends \Google\Protobuf\Internal\Message -{ - /** - * If set, allows NULL values to be encoded as the empty string "". - * The actual empty string, or any value which only contains the - * null byte `0x00`, has one more null byte appended. - * - * Generated from protobuf field bool escape_nulls = 1; - */ - protected $escape_nulls = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $escape_nulls - * If set, allows NULL values to be encoded as the empty string "". - * The actual empty string, or any value which only contains the - * null byte `0x00`, has one more null byte appended. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * If set, allows NULL values to be encoded as the empty string "". - * The actual empty string, or any value which only contains the - * null byte `0x00`, has one more null byte appended. - * - * Generated from protobuf field bool escape_nulls = 1; - * @return bool - */ - public function getEscapeNulls() - { - return $this->escape_nulls; - } - - /** - * If set, allows NULL values to be encoded as the empty string "". - * The actual empty string, or any value which only contains the - * null byte `0x00`, has one more null byte appended. - * - * Generated from protobuf field bool escape_nulls = 1; - * @param bool $var - * @return $this - */ - public function setEscapeNulls($var) - { - GPBUtil::checkBool($var); - $this->escape_nulls = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Date.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Date.php deleted file mode 100644 index 77d15d9afd8a..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Date.php +++ /dev/null @@ -1,34 +0,0 @@ -google.bigtable.v2.Type.Date - */ -class Date extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Enum.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Enum.php deleted file mode 100644 index 836e2d25dea9..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Enum.php +++ /dev/null @@ -1,106 +0,0 @@ -google.bigtable.v2.Type.Enum - */ -class Enum extends \Google\Protobuf\Internal\Message -{ - /** - * The ID of the schema bundle that this enum is defined in. - * - * Generated from protobuf field string schema_bundle_id = 1; - */ - protected $schema_bundle_id = ''; - /** - * The fully qualified name of the protobuf enum message, including package. - * In the format of "foo.bar.EnumMessage". - * - * Generated from protobuf field string enum_name = 2; - */ - protected $enum_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $schema_bundle_id - * The ID of the schema bundle that this enum is defined in. - * @type string $enum_name - * The fully qualified name of the protobuf enum message, including package. - * In the format of "foo.bar.EnumMessage". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * The ID of the schema bundle that this enum is defined in. - * - * Generated from protobuf field string schema_bundle_id = 1; - * @return string - */ - public function getSchemaBundleId() - { - return $this->schema_bundle_id; - } - - /** - * The ID of the schema bundle that this enum is defined in. - * - * Generated from protobuf field string schema_bundle_id = 1; - * @param string $var - * @return $this - */ - public function setSchemaBundleId($var) - { - GPBUtil::checkString($var, True); - $this->schema_bundle_id = $var; - - return $this; - } - - /** - * The fully qualified name of the protobuf enum message, including package. - * In the format of "foo.bar.EnumMessage". - * - * Generated from protobuf field string enum_name = 2; - * @return string - */ - public function getEnumName() - { - return $this->enum_name; - } - - /** - * The fully qualified name of the protobuf enum message, including package. - * In the format of "foo.bar.EnumMessage". - * - * Generated from protobuf field string enum_name = 2; - * @param string $var - * @return $this - */ - public function setEnumName($var) - { - GPBUtil::checkString($var, True); - $this->enum_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Float32.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Float32.php deleted file mode 100644 index 89b481f884c2..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Float32.php +++ /dev/null @@ -1,34 +0,0 @@ -google.bigtable.v2.Type.Float32 - */ -class Float32 extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Float64.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Float64.php deleted file mode 100644 index 6407fc30e3e8..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Float64.php +++ /dev/null @@ -1,34 +0,0 @@ -google.bigtable.v2.Type.Float64 - */ -class Float64 extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Int64.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Int64.php deleted file mode 100644 index b98eae059dd8..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Int64.php +++ /dev/null @@ -1,78 +0,0 @@ -google.bigtable.v2.Type.Int64 - */ -class Int64 extends \Google\Protobuf\Internal\Message -{ - /** - * The encoding to use when converting to or from lower level types. - * - * Generated from protobuf field .google.bigtable.v2.Type.Int64.Encoding encoding = 1; - */ - protected $encoding = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\Type\Int64\Encoding $encoding - * The encoding to use when converting to or from lower level types. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * The encoding to use when converting to or from lower level types. - * - * Generated from protobuf field .google.bigtable.v2.Type.Int64.Encoding encoding = 1; - * @return \Google\Cloud\Bigtable\V2\Type\Int64\Encoding|null - */ - public function getEncoding() - { - return $this->encoding; - } - - public function hasEncoding() - { - return isset($this->encoding); - } - - public function clearEncoding() - { - unset($this->encoding); - } - - /** - * The encoding to use when converting to or from lower level types. - * - * Generated from protobuf field .google.bigtable.v2.Type.Int64.Encoding encoding = 1; - * @param \Google\Cloud\Bigtable\V2\Type\Int64\Encoding $var - * @return $this - */ - public function setEncoding($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Int64\Encoding::class); - $this->encoding = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Int64/Encoding.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Int64/Encoding.php deleted file mode 100644 index cc46e5216faf..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Int64/Encoding.php +++ /dev/null @@ -1,108 +0,0 @@ -google.bigtable.v2.Type.Int64.Encoding - */ -class Encoding extends \Google\Protobuf\Internal\Message -{ - protected $encoding; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\Type\Int64\Encoding\BigEndianBytes $big_endian_bytes - * Use `BigEndianBytes` encoding. - * @type \Google\Cloud\Bigtable\V2\Type\Int64\Encoding\OrderedCodeBytes $ordered_code_bytes - * Use `OrderedCodeBytes` encoding. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * Use `BigEndianBytes` encoding. - * - * Generated from protobuf field .google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes big_endian_bytes = 1; - * @return \Google\Cloud\Bigtable\V2\Type\Int64\Encoding\BigEndianBytes|null - */ - public function getBigEndianBytes() - { - return $this->readOneof(1); - } - - public function hasBigEndianBytes() - { - return $this->hasOneof(1); - } - - /** - * Use `BigEndianBytes` encoding. - * - * Generated from protobuf field .google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes big_endian_bytes = 1; - * @param \Google\Cloud\Bigtable\V2\Type\Int64\Encoding\BigEndianBytes $var - * @return $this - */ - public function setBigEndianBytes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Int64\Encoding\BigEndianBytes::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Use `OrderedCodeBytes` encoding. - * - * Generated from protobuf field .google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes ordered_code_bytes = 2; - * @return \Google\Cloud\Bigtable\V2\Type\Int64\Encoding\OrderedCodeBytes|null - */ - public function getOrderedCodeBytes() - { - return $this->readOneof(2); - } - - public function hasOrderedCodeBytes() - { - return $this->hasOneof(2); - } - - /** - * Use `OrderedCodeBytes` encoding. - * - * Generated from protobuf field .google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes ordered_code_bytes = 2; - * @param \Google\Cloud\Bigtable\V2\Type\Int64\Encoding\OrderedCodeBytes $var - * @return $this - */ - public function setOrderedCodeBytes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Int64\Encoding\OrderedCodeBytes::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getEncoding() - { - return $this->whichOneof("encoding"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Int64/Encoding/BigEndianBytes.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Int64/Encoding/BigEndianBytes.php deleted file mode 100644 index ea09145311c7..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Int64/Encoding/BigEndianBytes.php +++ /dev/null @@ -1,94 +0,0 @@ -google.bigtable.v2.Type.Int64.Encoding.BigEndianBytes - */ -class BigEndianBytes extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated: ignored if set. - * - * Generated from protobuf field .google.bigtable.v2.Type.Bytes bytes_type = 1 [deprecated = true]; - * @deprecated - */ - protected $bytes_type = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\Type\Bytes $bytes_type - * Deprecated: ignored if set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated: ignored if set. - * - * Generated from protobuf field .google.bigtable.v2.Type.Bytes bytes_type = 1 [deprecated = true]; - * @return \Google\Cloud\Bigtable\V2\Type\Bytes|null - * @deprecated - */ - public function getBytesType() - { - if (isset($this->bytes_type)) { - @trigger_error('bytes_type is deprecated.', E_USER_DEPRECATED); - } - return $this->bytes_type; - } - - public function hasBytesType() - { - if (isset($this->bytes_type)) { - @trigger_error('bytes_type is deprecated.', E_USER_DEPRECATED); - } - return isset($this->bytes_type); - } - - public function clearBytesType() - { - @trigger_error('bytes_type is deprecated.', E_USER_DEPRECATED); - unset($this->bytes_type); - } - - /** - * Deprecated: ignored if set. - * - * Generated from protobuf field .google.bigtable.v2.Type.Bytes bytes_type = 1 [deprecated = true]; - * @param \Google\Cloud\Bigtable\V2\Type\Bytes $var - * @return $this - * @deprecated - */ - public function setBytesType($var) - { - @trigger_error('bytes_type is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Bytes::class); - $this->bytes_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Int64/Encoding/OrderedCodeBytes.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Int64/Encoding/OrderedCodeBytes.php deleted file mode 100644 index 883d75b7ced4..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Int64/Encoding/OrderedCodeBytes.php +++ /dev/null @@ -1,36 +0,0 @@ -google.bigtable.v2.Type.Int64.Encoding.OrderedCodeBytes - */ -class OrderedCodeBytes extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Map.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Map.php deleted file mode 100644 index 4ce046163ff3..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Map.php +++ /dev/null @@ -1,131 +0,0 @@ -google.bigtable.v2.Type.Map - */ -class Map extends \Google\Protobuf\Internal\Message -{ - /** - * The type of a map key. - * Only `Bytes`, `String`, and `Int64` are allowed as key types. - * - * Generated from protobuf field .google.bigtable.v2.Type key_type = 1; - */ - protected $key_type = null; - /** - * The type of the values in a map. - * - * Generated from protobuf field .google.bigtable.v2.Type value_type = 2; - */ - protected $value_type = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\Type $key_type - * The type of a map key. - * Only `Bytes`, `String`, and `Int64` are allowed as key types. - * @type \Google\Cloud\Bigtable\V2\Type $value_type - * The type of the values in a map. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * The type of a map key. - * Only `Bytes`, `String`, and `Int64` are allowed as key types. - * - * Generated from protobuf field .google.bigtable.v2.Type key_type = 1; - * @return \Google\Cloud\Bigtable\V2\Type|null - */ - public function getKeyType() - { - return $this->key_type; - } - - public function hasKeyType() - { - return isset($this->key_type); - } - - public function clearKeyType() - { - unset($this->key_type); - } - - /** - * The type of a map key. - * Only `Bytes`, `String`, and `Int64` are allowed as key types. - * - * Generated from protobuf field .google.bigtable.v2.Type key_type = 1; - * @param \Google\Cloud\Bigtable\V2\Type $var - * @return $this - */ - public function setKeyType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type::class); - $this->key_type = $var; - - return $this; - } - - /** - * The type of the values in a map. - * - * Generated from protobuf field .google.bigtable.v2.Type value_type = 2; - * @return \Google\Cloud\Bigtable\V2\Type|null - */ - public function getValueType() - { - return $this->value_type; - } - - public function hasValueType() - { - return isset($this->value_type); - } - - public function clearValueType() - { - unset($this->value_type); - } - - /** - * The type of the values in a map. - * - * Generated from protobuf field .google.bigtable.v2.Type value_type = 2; - * @param \Google\Cloud\Bigtable\V2\Type $var - * @return $this - */ - public function setValueType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type::class); - $this->value_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBArray.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBArray.php deleted file mode 100644 index 81dd868fe574..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBArray.php +++ /dev/null @@ -1,78 +0,0 @@ -google.bigtable.v2.Type.Array - */ -class PBArray extends \Google\Protobuf\Internal\Message -{ - /** - * The type of the elements in the array. This must not be `Array`. - * - * Generated from protobuf field .google.bigtable.v2.Type element_type = 1; - */ - protected $element_type = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\Type $element_type - * The type of the elements in the array. This must not be `Array`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * The type of the elements in the array. This must not be `Array`. - * - * Generated from protobuf field .google.bigtable.v2.Type element_type = 1; - * @return \Google\Cloud\Bigtable\V2\Type|null - */ - public function getElementType() - { - return $this->element_type; - } - - public function hasElementType() - { - return isset($this->element_type); - } - - public function clearElementType() - { - unset($this->element_type); - } - - /** - * The type of the elements in the array. This must not be `Array`. - * - * Generated from protobuf field .google.bigtable.v2.Type element_type = 1; - * @param \Google\Cloud\Bigtable\V2\Type $var - * @return $this - */ - public function setElementType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type::class); - $this->element_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBBool.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBBool.php deleted file mode 100644 index cd89d0e61987..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBBool.php +++ /dev/null @@ -1,34 +0,0 @@ -google.bigtable.v2.Type.Bool - */ -class PBBool extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBString.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBString.php deleted file mode 100644 index cd57897fb756..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBString.php +++ /dev/null @@ -1,78 +0,0 @@ -google.bigtable.v2.Type.String - */ -class PBString extends \Google\Protobuf\Internal\Message -{ - /** - * The encoding to use when converting to or from lower level types. - * - * Generated from protobuf field .google.bigtable.v2.Type.String.Encoding encoding = 1; - */ - protected $encoding = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\Type\PBString\Encoding $encoding - * The encoding to use when converting to or from lower level types. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * The encoding to use when converting to or from lower level types. - * - * Generated from protobuf field .google.bigtable.v2.Type.String.Encoding encoding = 1; - * @return \Google\Cloud\Bigtable\V2\Type\PBString\Encoding|null - */ - public function getEncoding() - { - return $this->encoding; - } - - public function hasEncoding() - { - return isset($this->encoding); - } - - public function clearEncoding() - { - unset($this->encoding); - } - - /** - * The encoding to use when converting to or from lower level types. - * - * Generated from protobuf field .google.bigtable.v2.Type.String.Encoding encoding = 1; - * @param \Google\Cloud\Bigtable\V2\Type\PBString\Encoding $var - * @return $this - */ - public function setEncoding($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\PBString\Encoding::class); - $this->encoding = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBString/Encoding.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBString/Encoding.php deleted file mode 100644 index e2d39c02eafc..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBString/Encoding.php +++ /dev/null @@ -1,117 +0,0 @@ -google.bigtable.v2.Type.String.Encoding - */ -class Encoding extends \Google\Protobuf\Internal\Message -{ - protected $encoding; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\Type\PBString\Encoding\Utf8Raw $utf8_raw - * Deprecated: if set, converts to an empty `utf8_bytes`. - * @type \Google\Cloud\Bigtable\V2\Type\PBString\Encoding\Utf8Bytes $utf8_bytes - * Use `Utf8Bytes` encoding. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated: if set, converts to an empty `utf8_bytes`. - * - * Generated from protobuf field .google.bigtable.v2.Type.String.Encoding.Utf8Raw utf8_raw = 1 [deprecated = true]; - * @return \Google\Cloud\Bigtable\V2\Type\PBString\Encoding\Utf8Raw|null - * @deprecated - */ - public function getUtf8Raw() - { - if ($this->hasOneof(1)) { - @trigger_error('utf8_raw is deprecated.', E_USER_DEPRECATED); - } - return $this->readOneof(1); - } - - public function hasUtf8Raw() - { - if ($this->hasOneof(1)) { - @trigger_error('utf8_raw is deprecated.', E_USER_DEPRECATED); - } - return $this->hasOneof(1); - } - - /** - * Deprecated: if set, converts to an empty `utf8_bytes`. - * - * Generated from protobuf field .google.bigtable.v2.Type.String.Encoding.Utf8Raw utf8_raw = 1 [deprecated = true]; - * @param \Google\Cloud\Bigtable\V2\Type\PBString\Encoding\Utf8Raw $var - * @return $this - * @deprecated - */ - public function setUtf8Raw($var) - { - @trigger_error('utf8_raw is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\PBString\Encoding\Utf8Raw::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Use `Utf8Bytes` encoding. - * - * Generated from protobuf field .google.bigtable.v2.Type.String.Encoding.Utf8Bytes utf8_bytes = 2; - * @return \Google\Cloud\Bigtable\V2\Type\PBString\Encoding\Utf8Bytes|null - */ - public function getUtf8Bytes() - { - return $this->readOneof(2); - } - - public function hasUtf8Bytes() - { - return $this->hasOneof(2); - } - - /** - * Use `Utf8Bytes` encoding. - * - * Generated from protobuf field .google.bigtable.v2.Type.String.Encoding.Utf8Bytes utf8_bytes = 2; - * @param \Google\Cloud\Bigtable\V2\Type\PBString\Encoding\Utf8Bytes $var - * @return $this - */ - public function setUtf8Bytes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\PBString\Encoding\Utf8Bytes::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getEncoding() - { - return $this->whichOneof("encoding"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBString/Encoding/Utf8Bytes.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBString/Encoding/Utf8Bytes.php deleted file mode 100644 index aacdc881792e..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBString/Encoding/Utf8Bytes.php +++ /dev/null @@ -1,99 +0,0 @@ -google.bigtable.v2.Type.String.Encoding.Utf8Bytes - */ -class Utf8Bytes extends \Google\Protobuf\Internal\Message -{ - /** - * Single-character escape sequence used to support NULL values. - * If set, allows NULL values to be encoded as the empty string "". - * The actual empty string, or any value where every character equals - * `null_escape_char`, has one more `null_escape_char` appended. - * If `null_escape_char` is set and does not equal the ASCII null - * character `0x00`, then the encoding will not support sorted mode. - * . - * - * Generated from protobuf field string null_escape_char = 1; - */ - protected $null_escape_char = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $null_escape_char - * Single-character escape sequence used to support NULL values. - * If set, allows NULL values to be encoded as the empty string "". - * The actual empty string, or any value where every character equals - * `null_escape_char`, has one more `null_escape_char` appended. - * If `null_escape_char` is set and does not equal the ASCII null - * character `0x00`, then the encoding will not support sorted mode. - * . - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * Single-character escape sequence used to support NULL values. - * If set, allows NULL values to be encoded as the empty string "". - * The actual empty string, or any value where every character equals - * `null_escape_char`, has one more `null_escape_char` appended. - * If `null_escape_char` is set and does not equal the ASCII null - * character `0x00`, then the encoding will not support sorted mode. - * . - * - * Generated from protobuf field string null_escape_char = 1; - * @return string - */ - public function getNullEscapeChar() - { - return $this->null_escape_char; - } - - /** - * Single-character escape sequence used to support NULL values. - * If set, allows NULL values to be encoded as the empty string "". - * The actual empty string, or any value where every character equals - * `null_escape_char`, has one more `null_escape_char` appended. - * If `null_escape_char` is set and does not equal the ASCII null - * character `0x00`, then the encoding will not support sorted mode. - * . - * - * Generated from protobuf field string null_escape_char = 1; - * @param string $var - * @return $this - */ - public function setNullEscapeChar($var) - { - GPBUtil::checkString($var, True); - $this->null_escape_char = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBString/Encoding/Utf8Raw.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBString/Encoding/Utf8Raw.php deleted file mode 100644 index 727aeed07210..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/PBString/Encoding/Utf8Raw.php +++ /dev/null @@ -1,34 +0,0 @@ -google.bigtable.v2.Type.String.Encoding.Utf8Raw - */ -class Utf8Raw extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Proto.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Proto.php deleted file mode 100644 index b216efdc72fb..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Proto.php +++ /dev/null @@ -1,106 +0,0 @@ -google.bigtable.v2.Type.Proto - */ -class Proto extends \Google\Protobuf\Internal\Message -{ - /** - * The ID of the schema bundle that this proto is defined in. - * - * Generated from protobuf field string schema_bundle_id = 1; - */ - protected $schema_bundle_id = ''; - /** - * The fully qualified name of the protobuf message, including package. In - * the format of "foo.bar.Message". - * - * Generated from protobuf field string message_name = 2; - */ - protected $message_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $schema_bundle_id - * The ID of the schema bundle that this proto is defined in. - * @type string $message_name - * The fully qualified name of the protobuf message, including package. In - * the format of "foo.bar.Message". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * The ID of the schema bundle that this proto is defined in. - * - * Generated from protobuf field string schema_bundle_id = 1; - * @return string - */ - public function getSchemaBundleId() - { - return $this->schema_bundle_id; - } - - /** - * The ID of the schema bundle that this proto is defined in. - * - * Generated from protobuf field string schema_bundle_id = 1; - * @param string $var - * @return $this - */ - public function setSchemaBundleId($var) - { - GPBUtil::checkString($var, True); - $this->schema_bundle_id = $var; - - return $this; - } - - /** - * The fully qualified name of the protobuf message, including package. In - * the format of "foo.bar.Message". - * - * Generated from protobuf field string message_name = 2; - * @return string - */ - public function getMessageName() - { - return $this->message_name; - } - - /** - * The fully qualified name of the protobuf message, including package. In - * the format of "foo.bar.Message". - * - * Generated from protobuf field string message_name = 2; - * @param string $var - * @return $this - */ - public function setMessageName($var) - { - GPBUtil::checkString($var, True); - $this->message_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct.php deleted file mode 100644 index 35bd81647102..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct.php +++ /dev/null @@ -1,114 +0,0 @@ -google.bigtable.v2.Type.Struct - */ -class Struct extends \Google\Protobuf\Internal\Message -{ - /** - * The names and types of the fields in this struct. - * - * Generated from protobuf field repeated .google.bigtable.v2.Type.Struct.Field fields = 1; - */ - private $fields; - /** - * The encoding to use when converting to or from lower level types. - * - * Generated from protobuf field .google.bigtable.v2.Type.Struct.Encoding encoding = 2; - */ - protected $encoding = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\Type\Struct\Field[] $fields - * The names and types of the fields in this struct. - * @type \Google\Cloud\Bigtable\V2\Type\Struct\Encoding $encoding - * The encoding to use when converting to or from lower level types. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * The names and types of the fields in this struct. - * - * Generated from protobuf field repeated .google.bigtable.v2.Type.Struct.Field fields = 1; - * @return RepeatedField<\Google\Cloud\Bigtable\V2\Type\Struct\Field> - */ - public function getFields() - { - return $this->fields; - } - - /** - * The names and types of the fields in this struct. - * - * Generated from protobuf field repeated .google.bigtable.v2.Type.Struct.Field fields = 1; - * @param \Google\Cloud\Bigtable\V2\Type\Struct\Field[] $var - * @return $this - */ - public function setFields($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Bigtable\V2\Type\Struct\Field::class); - $this->fields = $arr; - - return $this; - } - - /** - * The encoding to use when converting to or from lower level types. - * - * Generated from protobuf field .google.bigtable.v2.Type.Struct.Encoding encoding = 2; - * @return \Google\Cloud\Bigtable\V2\Type\Struct\Encoding|null - */ - public function getEncoding() - { - return $this->encoding; - } - - public function hasEncoding() - { - return isset($this->encoding); - } - - public function clearEncoding() - { - unset($this->encoding); - } - - /** - * The encoding to use when converting to or from lower level types. - * - * Generated from protobuf field .google.bigtable.v2.Type.Struct.Encoding encoding = 2; - * @param \Google\Cloud\Bigtable\V2\Type\Struct\Encoding $var - * @return $this - */ - public function setEncoding($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Struct\Encoding::class); - $this->encoding = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Encoding.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Encoding.php deleted file mode 100644 index a66b52335d34..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Encoding.php +++ /dev/null @@ -1,141 +0,0 @@ -google.bigtable.v2.Type.Struct.Encoding - */ -class Encoding extends \Google\Protobuf\Internal\Message -{ - protected $encoding; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\Type\Struct\Encoding\Singleton $singleton - * Use `Singleton` encoding. - * @type \Google\Cloud\Bigtable\V2\Type\Struct\Encoding\DelimitedBytes $delimited_bytes - * Use `DelimitedBytes` encoding. - * @type \Google\Cloud\Bigtable\V2\Type\Struct\Encoding\OrderedCodeBytes $ordered_code_bytes - * User `OrderedCodeBytes` encoding. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * Use `Singleton` encoding. - * - * Generated from protobuf field .google.bigtable.v2.Type.Struct.Encoding.Singleton singleton = 1; - * @return \Google\Cloud\Bigtable\V2\Type\Struct\Encoding\Singleton|null - */ - public function getSingleton() - { - return $this->readOneof(1); - } - - public function hasSingleton() - { - return $this->hasOneof(1); - } - - /** - * Use `Singleton` encoding. - * - * Generated from protobuf field .google.bigtable.v2.Type.Struct.Encoding.Singleton singleton = 1; - * @param \Google\Cloud\Bigtable\V2\Type\Struct\Encoding\Singleton $var - * @return $this - */ - public function setSingleton($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Struct\Encoding\Singleton::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Use `DelimitedBytes` encoding. - * - * Generated from protobuf field .google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes delimited_bytes = 2; - * @return \Google\Cloud\Bigtable\V2\Type\Struct\Encoding\DelimitedBytes|null - */ - public function getDelimitedBytes() - { - return $this->readOneof(2); - } - - public function hasDelimitedBytes() - { - return $this->hasOneof(2); - } - - /** - * Use `DelimitedBytes` encoding. - * - * Generated from protobuf field .google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes delimited_bytes = 2; - * @param \Google\Cloud\Bigtable\V2\Type\Struct\Encoding\DelimitedBytes $var - * @return $this - */ - public function setDelimitedBytes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Struct\Encoding\DelimitedBytes::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * User `OrderedCodeBytes` encoding. - * - * Generated from protobuf field .google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes ordered_code_bytes = 3; - * @return \Google\Cloud\Bigtable\V2\Type\Struct\Encoding\OrderedCodeBytes|null - */ - public function getOrderedCodeBytes() - { - return $this->readOneof(3); - } - - public function hasOrderedCodeBytes() - { - return $this->hasOneof(3); - } - - /** - * User `OrderedCodeBytes` encoding. - * - * Generated from protobuf field .google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes ordered_code_bytes = 3; - * @param \Google\Cloud\Bigtable\V2\Type\Struct\Encoding\OrderedCodeBytes $var - * @return $this - */ - public function setOrderedCodeBytes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Struct\Encoding\OrderedCodeBytes::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getEncoding() - { - return $this->whichOneof("encoding"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Encoding/DelimitedBytes.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Encoding/DelimitedBytes.php deleted file mode 100644 index 1f3a52002493..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Encoding/DelimitedBytes.php +++ /dev/null @@ -1,81 +0,0 @@ -google.bigtable.v2.Type.Struct.Encoding.DelimitedBytes - */ -class DelimitedBytes extends \Google\Protobuf\Internal\Message -{ - /** - * Byte sequence used to delimit concatenated fields. The delimiter must - * contain at least 1 character and at most 50 characters. - * - * Generated from protobuf field bytes delimiter = 1; - */ - protected $delimiter = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $delimiter - * Byte sequence used to delimit concatenated fields. The delimiter must - * contain at least 1 character and at most 50 characters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * Byte sequence used to delimit concatenated fields. The delimiter must - * contain at least 1 character and at most 50 characters. - * - * Generated from protobuf field bytes delimiter = 1; - * @return string - */ - public function getDelimiter() - { - return $this->delimiter; - } - - /** - * Byte sequence used to delimit concatenated fields. The delimiter must - * contain at least 1 character and at most 50 characters. - * - * Generated from protobuf field bytes delimiter = 1; - * @param string $var - * @return $this - */ - public function setDelimiter($var) - { - GPBUtil::checkString($var, False); - $this->delimiter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Encoding/OrderedCodeBytes.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Encoding/OrderedCodeBytes.php deleted file mode 100644 index b657ca6de19a..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Encoding/OrderedCodeBytes.php +++ /dev/null @@ -1,64 +0,0 @@ - "\00\00" - * - STRUCT("") -> "\00\00" - * - STRUCT("", "") -> "\00\00" - * - STRUCT("", "B") -> "\00\00" + "\00\01" + "B" - * - STRUCT("A", "") -> "A" - * - STRUCT("", "B", "") -> "\00\00" + "\00\01" + "B" - * - STRUCT("A", "", "C") -> "A" + "\00\01" + "\00\00" + "\00\01" + "C" - * ``` - * Since null bytes are always escaped, this encoding can cause size - * blowup for encodings like `Int64.BigEndianBytes` that are likely to - * produce many such bytes. - * Sorted mode: - * - Fields are encoded in sorted mode. - * - All values supported by the field encodings are allowed - * - Element-wise order is preserved: `A < B` if `A[0] < B[0]`, or if - * `A[0] == B[0] && A[1] < B[1]`, etc. Strict prefixes sort first. - * Distinct mode: - * - Fields are encoded in distinct mode. - * - All values supported by the field encodings are allowed. - * - * Generated from protobuf message google.bigtable.v2.Type.Struct.Encoding.OrderedCodeBytes - */ -class OrderedCodeBytes extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Encoding/Singleton.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Encoding/Singleton.php deleted file mode 100644 index 100680827198..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Encoding/Singleton.php +++ /dev/null @@ -1,34 +0,0 @@ -google.bigtable.v2.Type.Struct.Encoding.Singleton - */ -class Singleton extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Field.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Field.php deleted file mode 100644 index 25a419649209..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Struct/Field.php +++ /dev/null @@ -1,115 +0,0 @@ -google.bigtable.v2.Type.Struct.Field - */ -class Field extends \Google\Protobuf\Internal\Message -{ - /** - * The field name (optional). Fields without a `field_name` are considered - * anonymous and cannot be referenced by name. - * - * Generated from protobuf field string field_name = 1; - */ - protected $field_name = ''; - /** - * The type of values in this field. - * - * Generated from protobuf field .google.bigtable.v2.Type type = 2; - */ - protected $type = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $field_name - * The field name (optional). Fields without a `field_name` are considered - * anonymous and cannot be referenced by name. - * @type \Google\Cloud\Bigtable\V2\Type $type - * The type of values in this field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * The field name (optional). Fields without a `field_name` are considered - * anonymous and cannot be referenced by name. - * - * Generated from protobuf field string field_name = 1; - * @return string - */ - public function getFieldName() - { - return $this->field_name; - } - - /** - * The field name (optional). Fields without a `field_name` are considered - * anonymous and cannot be referenced by name. - * - * Generated from protobuf field string field_name = 1; - * @param string $var - * @return $this - */ - public function setFieldName($var) - { - GPBUtil::checkString($var, True); - $this->field_name = $var; - - return $this; - } - - /** - * The type of values in this field. - * - * Generated from protobuf field .google.bigtable.v2.Type type = 2; - * @return \Google\Cloud\Bigtable\V2\Type|null - */ - public function getType() - { - return $this->type; - } - - public function hasType() - { - return isset($this->type); - } - - public function clearType() - { - unset($this->type); - } - - /** - * The type of values in this field. - * - * Generated from protobuf field .google.bigtable.v2.Type type = 2; - * @param \Google\Cloud\Bigtable\V2\Type $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type::class); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Timestamp.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Timestamp.php deleted file mode 100644 index ce09b95c510c..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Timestamp.php +++ /dev/null @@ -1,78 +0,0 @@ -google.bigtable.v2.Type.Timestamp - */ -class Timestamp extends \Google\Protobuf\Internal\Message -{ - /** - * The encoding to use when converting to or from lower level types. - * - * Generated from protobuf field .google.bigtable.v2.Type.Timestamp.Encoding encoding = 1; - */ - protected $encoding = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\Type\Timestamp\Encoding $encoding - * The encoding to use when converting to or from lower level types. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * The encoding to use when converting to or from lower level types. - * - * Generated from protobuf field .google.bigtable.v2.Type.Timestamp.Encoding encoding = 1; - * @return \Google\Cloud\Bigtable\V2\Type\Timestamp\Encoding|null - */ - public function getEncoding() - { - return $this->encoding; - } - - public function hasEncoding() - { - return isset($this->encoding); - } - - public function clearEncoding() - { - unset($this->encoding); - } - - /** - * The encoding to use when converting to or from lower level types. - * - * Generated from protobuf field .google.bigtable.v2.Type.Timestamp.Encoding encoding = 1; - * @param \Google\Cloud\Bigtable\V2\Type\Timestamp\Encoding $var - * @return $this - */ - public function setEncoding($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Timestamp\Encoding::class); - $this->encoding = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Timestamp/Encoding.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Timestamp/Encoding.php deleted file mode 100644 index 38a5f31ef910..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Type/Timestamp/Encoding.php +++ /dev/null @@ -1,84 +0,0 @@ -google.bigtable.v2.Type.Timestamp.Encoding - */ -class Encoding extends \Google\Protobuf\Internal\Message -{ - protected $encoding; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\Type\Int64\Encoding $unix_micros_int64 - * Encodes the number of microseconds since the Unix epoch using the - * given `Int64` encoding. Values must be microsecond-aligned. - * Compatible with: - * - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Types::initOnce(); - parent::__construct($data); - } - - /** - * Encodes the number of microseconds since the Unix epoch using the - * given `Int64` encoding. Values must be microsecond-aligned. - * Compatible with: - * - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS` - * - * Generated from protobuf field .google.bigtable.v2.Type.Int64.Encoding unix_micros_int64 = 1; - * @return \Google\Cloud\Bigtable\V2\Type\Int64\Encoding|null - */ - public function getUnixMicrosInt64() - { - return $this->readOneof(1); - } - - public function hasUnixMicrosInt64() - { - return $this->hasOneof(1); - } - - /** - * Encodes the number of microseconds since the Unix epoch using the - * given `Int64` encoding. Values must be microsecond-aligned. - * Compatible with: - * - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS` - * - * Generated from protobuf field .google.bigtable.v2.Type.Int64.Encoding unix_micros_int64 = 1; - * @param \Google\Cloud\Bigtable\V2\Type\Int64\Encoding $var - * @return $this - */ - public function setUnixMicrosInt64($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type\Int64\Encoding::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getEncoding() - { - return $this->whichOneof("encoding"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Value.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Value.php deleted file mode 100644 index 449cdd374254..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/Value.php +++ /dev/null @@ -1,480 +0,0 @@ -google.bigtable.v2.Value - */ -class Value extends \Google\Protobuf\Internal\Message -{ - /** - * The verified `Type` of this `Value`, if it cannot be inferred. - * Read results will never specify the encoding for `type` since the value - * will already have been decoded by the server. Furthermore, the `type` will - * be omitted entirely if it can be inferred from a previous response. The - * exact semantics for inferring `type` will vary, and are therefore - * documented separately for each read method. - * When using composite types (Struct, Array, Map) only the outermost `Value` - * will specify the `type`. This top-level `type` will define the types for - * any nested `Struct' fields, `Array` elements, or `Map` key/value pairs. - * If a nested `Value` provides a `type` on write, the request will be - * rejected with INVALID_ARGUMENT. - * - * Generated from protobuf field .google.bigtable.v2.Type type = 7; - */ - protected $type = null; - protected $kind; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Bigtable\V2\Type $type - * The verified `Type` of this `Value`, if it cannot be inferred. - * Read results will never specify the encoding for `type` since the value - * will already have been decoded by the server. Furthermore, the `type` will - * be omitted entirely if it can be inferred from a previous response. The - * exact semantics for inferring `type` will vary, and are therefore - * documented separately for each read method. - * When using composite types (Struct, Array, Map) only the outermost `Value` - * will specify the `type`. This top-level `type` will define the types for - * any nested `Struct' fields, `Array` elements, or `Map` key/value pairs. - * If a nested `Value` provides a `type` on write, the request will be - * rejected with INVALID_ARGUMENT. - * @type string $raw_value - * Represents a raw byte sequence with no type information. - * The `type` field must be omitted. - * @type int|string $raw_timestamp_micros - * Represents a raw cell timestamp with no type information. - * The `type` field must be omitted. - * @type string $bytes_value - * Represents a typed value transported as a byte sequence. - * @type string $string_value - * Represents a typed value transported as a string. - * @type int|string $int_value - * Represents a typed value transported as an integer. - * @type bool $bool_value - * Represents a typed value transported as a boolean. - * @type float $float_value - * Represents a typed value transported as a floating point number. - * Does not support NaN or infinities. - * @type \Google\Protobuf\Timestamp $timestamp_value - * Represents a typed value transported as a timestamp. - * @type \Google\Type\Date $date_value - * Represents a typed value transported as a date. - * @type \Google\Cloud\Bigtable\V2\ArrayValue $array_value - * Represents a typed value transported as a sequence of values. - * To differentiate between `Struct`, `Array`, and `Map`, the outermost - * `Value` must provide an explicit `type` on write. This `type` will - * apply recursively to the nested `Struct` fields, `Array` elements, - * or `Map` key/value pairs, which *must not* supply their own `type`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * The verified `Type` of this `Value`, if it cannot be inferred. - * Read results will never specify the encoding for `type` since the value - * will already have been decoded by the server. Furthermore, the `type` will - * be omitted entirely if it can be inferred from a previous response. The - * exact semantics for inferring `type` will vary, and are therefore - * documented separately for each read method. - * When using composite types (Struct, Array, Map) only the outermost `Value` - * will specify the `type`. This top-level `type` will define the types for - * any nested `Struct' fields, `Array` elements, or `Map` key/value pairs. - * If a nested `Value` provides a `type` on write, the request will be - * rejected with INVALID_ARGUMENT. - * - * Generated from protobuf field .google.bigtable.v2.Type type = 7; - * @return \Google\Cloud\Bigtable\V2\Type|null - */ - public function getType() - { - return $this->type; - } - - public function hasType() - { - return isset($this->type); - } - - public function clearType() - { - unset($this->type); - } - - /** - * The verified `Type` of this `Value`, if it cannot be inferred. - * Read results will never specify the encoding for `type` since the value - * will already have been decoded by the server. Furthermore, the `type` will - * be omitted entirely if it can be inferred from a previous response. The - * exact semantics for inferring `type` will vary, and are therefore - * documented separately for each read method. - * When using composite types (Struct, Array, Map) only the outermost `Value` - * will specify the `type`. This top-level `type` will define the types for - * any nested `Struct' fields, `Array` elements, or `Map` key/value pairs. - * If a nested `Value` provides a `type` on write, the request will be - * rejected with INVALID_ARGUMENT. - * - * Generated from protobuf field .google.bigtable.v2.Type type = 7; - * @param \Google\Cloud\Bigtable\V2\Type $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\Type::class); - $this->type = $var; - - return $this; - } - - /** - * Represents a raw byte sequence with no type information. - * The `type` field must be omitted. - * - * Generated from protobuf field bytes raw_value = 8; - * @return string - */ - public function getRawValue() - { - return $this->readOneof(8); - } - - public function hasRawValue() - { - return $this->hasOneof(8); - } - - /** - * Represents a raw byte sequence with no type information. - * The `type` field must be omitted. - * - * Generated from protobuf field bytes raw_value = 8; - * @param string $var - * @return $this - */ - public function setRawValue($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Represents a raw cell timestamp with no type information. - * The `type` field must be omitted. - * - * Generated from protobuf field int64 raw_timestamp_micros = 9; - * @return int|string - */ - public function getRawTimestampMicros() - { - return $this->readOneof(9); - } - - public function hasRawTimestampMicros() - { - return $this->hasOneof(9); - } - - /** - * Represents a raw cell timestamp with no type information. - * The `type` field must be omitted. - * - * Generated from protobuf field int64 raw_timestamp_micros = 9; - * @param int|string $var - * @return $this - */ - public function setRawTimestampMicros($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * Represents a typed value transported as a byte sequence. - * - * Generated from protobuf field bytes bytes_value = 2; - * @return string - */ - public function getBytesValue() - { - return $this->readOneof(2); - } - - public function hasBytesValue() - { - return $this->hasOneof(2); - } - - /** - * Represents a typed value transported as a byte sequence. - * - * Generated from protobuf field bytes bytes_value = 2; - * @param string $var - * @return $this - */ - public function setBytesValue($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Represents a typed value transported as a string. - * - * Generated from protobuf field string string_value = 3; - * @return string - */ - public function getStringValue() - { - return $this->readOneof(3); - } - - public function hasStringValue() - { - return $this->hasOneof(3); - } - - /** - * Represents a typed value transported as a string. - * - * Generated from protobuf field string string_value = 3; - * @param string $var - * @return $this - */ - public function setStringValue($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Represents a typed value transported as an integer. - * - * Generated from protobuf field int64 int_value = 6; - * @return int|string - */ - public function getIntValue() - { - return $this->readOneof(6); - } - - public function hasIntValue() - { - return $this->hasOneof(6); - } - - /** - * Represents a typed value transported as an integer. - * - * Generated from protobuf field int64 int_value = 6; - * @param int|string $var - * @return $this - */ - public function setIntValue($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Represents a typed value transported as a boolean. - * - * Generated from protobuf field bool bool_value = 10; - * @return bool - */ - public function getBoolValue() - { - return $this->readOneof(10); - } - - public function hasBoolValue() - { - return $this->hasOneof(10); - } - - /** - * Represents a typed value transported as a boolean. - * - * Generated from protobuf field bool bool_value = 10; - * @param bool $var - * @return $this - */ - public function setBoolValue($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * Represents a typed value transported as a floating point number. - * Does not support NaN or infinities. - * - * Generated from protobuf field double float_value = 11; - * @return float - */ - public function getFloatValue() - { - return $this->readOneof(11); - } - - public function hasFloatValue() - { - return $this->hasOneof(11); - } - - /** - * Represents a typed value transported as a floating point number. - * Does not support NaN or infinities. - * - * Generated from protobuf field double float_value = 11; - * @param float $var - * @return $this - */ - public function setFloatValue($var) - { - GPBUtil::checkDouble($var); - $this->writeOneof(11, $var); - - return $this; - } - - /** - * Represents a typed value transported as a timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp_value = 12; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTimestampValue() - { - return $this->readOneof(12); - } - - public function hasTimestampValue() - { - return $this->hasOneof(12); - } - - /** - * Represents a typed value transported as a timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp_value = 12; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTimestampValue($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->writeOneof(12, $var); - - return $this; - } - - /** - * Represents a typed value transported as a date. - * - * Generated from protobuf field .google.type.Date date_value = 13; - * @return \Google\Type\Date|null - */ - public function getDateValue() - { - return $this->readOneof(13); - } - - public function hasDateValue() - { - return $this->hasOneof(13); - } - - /** - * Represents a typed value transported as a date. - * - * Generated from protobuf field .google.type.Date date_value = 13; - * @param \Google\Type\Date $var - * @return $this - */ - public function setDateValue($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * Represents a typed value transported as a sequence of values. - * To differentiate between `Struct`, `Array`, and `Map`, the outermost - * `Value` must provide an explicit `type` on write. This `type` will - * apply recursively to the nested `Struct` fields, `Array` elements, - * or `Map` key/value pairs, which *must not* supply their own `type`. - * - * Generated from protobuf field .google.bigtable.v2.ArrayValue array_value = 4; - * @return \Google\Cloud\Bigtable\V2\ArrayValue|null - */ - public function getArrayValue() - { - return $this->readOneof(4); - } - - public function hasArrayValue() - { - return $this->hasOneof(4); - } - - /** - * Represents a typed value transported as a sequence of values. - * To differentiate between `Struct`, `Array`, and `Map`, the outermost - * `Value` must provide an explicit `type` on write. This `type` will - * apply recursively to the nested `Struct` fields, `Array` elements, - * or `Map` key/value pairs, which *must not* supply their own `type`. - * - * Generated from protobuf field .google.bigtable.v2.ArrayValue array_value = 4; - * @param \Google\Cloud\Bigtable\V2\ArrayValue $var - * @return $this - */ - public function setArrayValue($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\ArrayValue::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getKind() - { - return $this->whichOneof("kind"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ValueRange.php b/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ValueRange.php deleted file mode 100644 index dca9e83e65e0..000000000000 --- a/owl-bot-staging/Bigtable/v2/proto/src/Google/Cloud/Bigtable/V2/ValueRange.php +++ /dev/null @@ -1,183 +0,0 @@ -google.bigtable.v2.ValueRange - */ -class ValueRange extends \Google\Protobuf\Internal\Message -{ - protected $start_value; - protected $end_value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $start_value_closed - * Used when giving an inclusive lower bound for the range. - * @type string $start_value_open - * Used when giving an exclusive lower bound for the range. - * @type string $end_value_closed - * Used when giving an inclusive upper bound for the range. - * @type string $end_value_open - * Used when giving an exclusive upper bound for the range. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Bigtable\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * Used when giving an inclusive lower bound for the range. - * - * Generated from protobuf field bytes start_value_closed = 1; - * @return string - */ - public function getStartValueClosed() - { - return $this->readOneof(1); - } - - public function hasStartValueClosed() - { - return $this->hasOneof(1); - } - - /** - * Used when giving an inclusive lower bound for the range. - * - * Generated from protobuf field bytes start_value_closed = 1; - * @param string $var - * @return $this - */ - public function setStartValueClosed($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Used when giving an exclusive lower bound for the range. - * - * Generated from protobuf field bytes start_value_open = 2; - * @return string - */ - public function getStartValueOpen() - { - return $this->readOneof(2); - } - - public function hasStartValueOpen() - { - return $this->hasOneof(2); - } - - /** - * Used when giving an exclusive lower bound for the range. - * - * Generated from protobuf field bytes start_value_open = 2; - * @param string $var - * @return $this - */ - public function setStartValueOpen($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Used when giving an inclusive upper bound for the range. - * - * Generated from protobuf field bytes end_value_closed = 3; - * @return string - */ - public function getEndValueClosed() - { - return $this->readOneof(3); - } - - public function hasEndValueClosed() - { - return $this->hasOneof(3); - } - - /** - * Used when giving an inclusive upper bound for the range. - * - * Generated from protobuf field bytes end_value_closed = 3; - * @param string $var - * @return $this - */ - public function setEndValueClosed($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Used when giving an exclusive upper bound for the range. - * - * Generated from protobuf field bytes end_value_open = 4; - * @return string - */ - public function getEndValueOpen() - { - return $this->readOneof(4); - } - - public function hasEndValueOpen() - { - return $this->hasOneof(4); - } - - /** - * Used when giving an exclusive upper bound for the range. - * - * Generated from protobuf field bytes end_value_open = 4; - * @param string $var - * @return $this - */ - public function setEndValueOpen($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getStartValue() - { - return $this->whichOneof("start_value"); - } - - /** - * @return string - */ - public function getEndValue() - { - return $this->whichOneof("end_value"); - } - -} - diff --git a/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/check_and_mutate_row.php b/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/check_and_mutate_row.php deleted file mode 100644 index 91402b863a46..000000000000 --- a/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/check_and_mutate_row.php +++ /dev/null @@ -1,79 +0,0 @@ -/instances//tables/
`. Please see - * {@see BigtableClient::tableName()} for help formatting this field. - * @param string $rowKey The key of the row to which the conditional mutation should be - * applied. - */ -function check_and_mutate_row_sample(string $formattedTableName, string $rowKey): void -{ - // Create a client. - $bigtableClient = new BigtableClient(); - - // Prepare the request message. - $request = (new CheckAndMutateRowRequest()) - ->setTableName($formattedTableName) - ->setRowKey($rowKey); - - // Call the API and handle any network failures. - try { - /** @var CheckAndMutateRowResponse $response */ - $response = $bigtableClient->checkAndMutateRow($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 -{ - $formattedTableName = BigtableClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $rowKey = '...'; - - check_and_mutate_row_sample($formattedTableName, $rowKey); -} -// [END bigtable_v2_generated_Bigtable_CheckAndMutateRow_sync] diff --git a/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/execute_query.php b/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/execute_query.php deleted file mode 100644 index 5b2d09e2a1b0..000000000000 --- a/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/execute_query.php +++ /dev/null @@ -1,86 +0,0 @@ -/instances/` - * Please see {@see BigtableClient::instanceName()} for help formatting this field. - * @param string $query The query string. - * - * Exactly one of `query` and `prepared_query` is required. Setting both - * or neither is an `INVALID_ARGUMENT`. - */ -function execute_query_sample(string $formattedInstanceName, string $query): void -{ - // Create a client. - $bigtableClient = new BigtableClient(); - - // Prepare the request message. - $params = []; - $request = (new ExecuteQueryRequest()) - ->setInstanceName($formattedInstanceName) - ->setQuery($query) - ->setParams($params); - - // Call the API and handle any network failures. - try { - /** @var ServerStream $stream */ - $stream = $bigtableClient->executeQuery($request); - - /** @var ExecuteQueryResponse $element */ - foreach ($stream->readAll() 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 -{ - $formattedInstanceName = BigtableClient::instanceName('[PROJECT]', '[INSTANCE]'); - $query = '[QUERY]'; - - execute_query_sample($formattedInstanceName, $query); -} -// [END bigtable_v2_generated_Bigtable_ExecuteQuery_sync] diff --git a/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/generate_initial_change_stream_partitions.php b/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/generate_initial_change_stream_partitions.php deleted file mode 100644 index b73db6dbd5d0..000000000000 --- a/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/generate_initial_change_stream_partitions.php +++ /dev/null @@ -1,82 +0,0 @@ -/instances//tables/
`. - * Change streaming must be enabled on the table. Please see - * {@see BigtableClient::tableName()} for help formatting this field. - */ -function generate_initial_change_stream_partitions_sample(string $formattedTableName): void -{ - // Create a client. - $bigtableClient = new BigtableClient(); - - // Prepare the request message. - $request = (new GenerateInitialChangeStreamPartitionsRequest()) - ->setTableName($formattedTableName); - - // Call the API and handle any network failures. - try { - /** @var ServerStream $stream */ - $stream = $bigtableClient->generateInitialChangeStreamPartitions($request); - - /** @var GenerateInitialChangeStreamPartitionsResponse $element */ - foreach ($stream->readAll() 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 -{ - $formattedTableName = BigtableClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - - generate_initial_change_stream_partitions_sample($formattedTableName); -} -// [END bigtable_v2_generated_Bigtable_GenerateInitialChangeStreamPartitions_sync] diff --git a/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/mutate_row.php b/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/mutate_row.php deleted file mode 100644 index 9e9505c3e567..000000000000 --- a/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/mutate_row.php +++ /dev/null @@ -1,82 +0,0 @@ -/instances//tables/
`. Please see - * {@see BigtableClient::tableName()} for help formatting this field. - * @param string $rowKey The key of the row to which the mutation should be applied. - */ -function mutate_row_sample(string $formattedTableName, string $rowKey): void -{ - // Create a client. - $bigtableClient = new BigtableClient(); - - // Prepare the request message. - $mutations = [new Mutation()]; - $request = (new MutateRowRequest()) - ->setTableName($formattedTableName) - ->setRowKey($rowKey) - ->setMutations($mutations); - - // Call the API and handle any network failures. - try { - /** @var MutateRowResponse $response */ - $response = $bigtableClient->mutateRow($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 -{ - $formattedTableName = BigtableClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $rowKey = '...'; - - mutate_row_sample($formattedTableName, $rowKey); -} -// [END bigtable_v2_generated_Bigtable_MutateRow_sync] diff --git a/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/mutate_rows.php b/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/mutate_rows.php deleted file mode 100644 index 047e5fbd3ac1..000000000000 --- a/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/mutate_rows.php +++ /dev/null @@ -1,89 +0,0 @@ -/instances//tables/
`. Please see - * {@see BigtableClient::tableName()} for help formatting this field. - */ -function mutate_rows_sample(string $formattedTableName): void -{ - // Create a client. - $bigtableClient = new BigtableClient(); - - // Prepare the request message. - $entriesMutations = [new Mutation()]; - $entry = (new Entry()) - ->setMutations($entriesMutations); - $entries = [$entry,]; - $request = (new MutateRowsRequest()) - ->setTableName($formattedTableName) - ->setEntries($entries); - - // Call the API and handle any network failures. - try { - /** @var ServerStream $stream */ - $stream = $bigtableClient->mutateRows($request); - - /** @var MutateRowsResponse $element */ - foreach ($stream->readAll() 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 -{ - $formattedTableName = BigtableClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - - mutate_rows_sample($formattedTableName); -} -// [END bigtable_v2_generated_Bigtable_MutateRows_sync] diff --git a/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/ping_and_warm.php b/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/ping_and_warm.php deleted file mode 100644 index 99f96865ed07..000000000000 --- a/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/ping_and_warm.php +++ /dev/null @@ -1,74 +0,0 @@ -/instances/`. Please see - * {@see BigtableClient::instanceName()} for help formatting this field. - */ -function ping_and_warm_sample(string $formattedName): void -{ - // Create a client. - $bigtableClient = new BigtableClient(); - - // Prepare the request message. - $request = (new PingAndWarmRequest()) - ->setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var PingAndWarmResponse $response */ - $response = $bigtableClient->pingAndWarm($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BigtableClient::instanceName('[PROJECT]', '[INSTANCE]'); - - ping_and_warm_sample($formattedName); -} -// [END bigtable_v2_generated_Bigtable_PingAndWarm_sync] diff --git a/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/prepare_query.php b/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/prepare_query.php deleted file mode 100644 index c65fc10bf9a8..000000000000 --- a/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/prepare_query.php +++ /dev/null @@ -1,78 +0,0 @@ -/instances/` - * Please see {@see BigtableClient::instanceName()} for help formatting this field. - * @param string $query The query string. - */ -function prepare_query_sample(string $formattedInstanceName, string $query): void -{ - // Create a client. - $bigtableClient = new BigtableClient(); - - // Prepare the request message. - $paramTypes = []; - $request = (new PrepareQueryRequest()) - ->setInstanceName($formattedInstanceName) - ->setQuery($query) - ->setParamTypes($paramTypes); - - // Call the API and handle any network failures. - try { - /** @var PrepareQueryResponse $response */ - $response = $bigtableClient->prepareQuery($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 -{ - $formattedInstanceName = BigtableClient::instanceName('[PROJECT]', '[INSTANCE]'); - $query = '[QUERY]'; - - prepare_query_sample($formattedInstanceName, $query); -} -// [END bigtable_v2_generated_Bigtable_PrepareQuery_sync] diff --git a/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/read_change_stream.php b/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/read_change_stream.php deleted file mode 100644 index a26ab3819223..000000000000 --- a/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/read_change_stream.php +++ /dev/null @@ -1,82 +0,0 @@ -/instances//tables/
`. - * Change streaming must be enabled on the table. Please see - * {@see BigtableClient::tableName()} for help formatting this field. - */ -function read_change_stream_sample(string $formattedTableName): void -{ - // Create a client. - $bigtableClient = new BigtableClient(); - - // Prepare the request message. - $request = (new ReadChangeStreamRequest()) - ->setTableName($formattedTableName); - - // Call the API and handle any network failures. - try { - /** @var ServerStream $stream */ - $stream = $bigtableClient->readChangeStream($request); - - /** @var ReadChangeStreamResponse $element */ - foreach ($stream->readAll() 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 -{ - $formattedTableName = BigtableClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - - read_change_stream_sample($formattedTableName); -} -// [END bigtable_v2_generated_Bigtable_ReadChangeStream_sync] diff --git a/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/read_modify_write_row.php b/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/read_modify_write_row.php deleted file mode 100644 index 3062eb1d1d36..000000000000 --- a/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/read_modify_write_row.php +++ /dev/null @@ -1,86 +0,0 @@ -/instances//tables/
`. Please see - * {@see BigtableClient::tableName()} for help formatting this field. - * @param string $rowKey The key of the row to which the read/modify/write rules should be - * applied. - */ -function read_modify_write_row_sample(string $formattedTableName, string $rowKey): void -{ - // Create a client. - $bigtableClient = new BigtableClient(); - - // Prepare the request message. - $rules = [new ReadModifyWriteRule()]; - $request = (new ReadModifyWriteRowRequest()) - ->setTableName($formattedTableName) - ->setRowKey($rowKey) - ->setRules($rules); - - // Call the API and handle any network failures. - try { - /** @var ReadModifyWriteRowResponse $response */ - $response = $bigtableClient->readModifyWriteRow($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 -{ - $formattedTableName = BigtableClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $rowKey = '...'; - - read_modify_write_row_sample($formattedTableName, $rowKey); -} -// [END bigtable_v2_generated_Bigtable_ReadModifyWriteRow_sync] diff --git a/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/read_rows.php b/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/read_rows.php deleted file mode 100644 index 6735bf696e06..000000000000 --- a/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/read_rows.php +++ /dev/null @@ -1,83 +0,0 @@ -/instances//tables/
`. Please see - * {@see BigtableClient::tableName()} for help formatting this field. - */ -function read_rows_sample(string $formattedTableName): void -{ - // Create a client. - $bigtableClient = new BigtableClient(); - - // Prepare the request message. - $request = (new ReadRowsRequest()) - ->setTableName($formattedTableName); - - // Call the API and handle any network failures. - try { - /** @var ServerStream $stream */ - $stream = $bigtableClient->readRows($request); - - /** @var ReadRowsResponse $element */ - foreach ($stream->readAll() 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 -{ - $formattedTableName = BigtableClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - - read_rows_sample($formattedTableName); -} -// [END bigtable_v2_generated_Bigtable_ReadRows_sync] diff --git a/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/sample_row_keys.php b/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/sample_row_keys.php deleted file mode 100644 index b967dfa48a90..000000000000 --- a/owl-bot-staging/Bigtable/v2/samples/V2/BigtableClient/sample_row_keys.php +++ /dev/null @@ -1,82 +0,0 @@ -/instances//tables/
`. Please see - * {@see BigtableClient::tableName()} for help formatting this field. - */ -function sample_row_keys_sample(string $formattedTableName): void -{ - // Create a client. - $bigtableClient = new BigtableClient(); - - // Prepare the request message. - $request = (new SampleRowKeysRequest()) - ->setTableName($formattedTableName); - - // Call the API and handle any network failures. - try { - /** @var ServerStream $stream */ - $stream = $bigtableClient->sampleRowKeys($request); - - /** @var SampleRowKeysResponse $element */ - foreach ($stream->readAll() 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 -{ - $formattedTableName = BigtableClient::tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - - sample_row_keys_sample($formattedTableName); -} -// [END bigtable_v2_generated_Bigtable_SampleRowKeys_sync] diff --git a/owl-bot-staging/Bigtable/v2/src/V2/Client/BigtableClient.php b/owl-bot-staging/Bigtable/v2/src/V2/Client/BigtableClient.php deleted file mode 100644 index f7583d619c2f..000000000000 --- a/owl-bot-staging/Bigtable/v2/src/V2/Client/BigtableClient.php +++ /dev/null @@ -1,633 +0,0 @@ - checkAndMutateRowAsync(CheckAndMutateRowRequest $request, array $optionalArgs = []) - * @method PromiseInterface mutateRowAsync(MutateRowRequest $request, array $optionalArgs = []) - * @method PromiseInterface pingAndWarmAsync(PingAndWarmRequest $request, array $optionalArgs = []) - * @method PromiseInterface prepareQueryAsync(PrepareQueryRequest $request, array $optionalArgs = []) - * @method PromiseInterface readModifyWriteRowAsync(ReadModifyWriteRowRequest $request, array $optionalArgs = []) - */ -final class BigtableClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.bigtable.v2.Bigtable'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'bigtable.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'bigtable.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/bigtable.data', - 'https://www.googleapis.com/auth/bigtable.data.readonly', - 'https://www.googleapis.com/auth/cloud-bigtable.data', - 'https://www.googleapis.com/auth/cloud-bigtable.data.readonly', - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/cloud-platform.read-only', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/bigtable_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/bigtable_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/bigtable_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/bigtable_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a - * authorized_view resource. - * - * @param string $project - * @param string $instance - * @param string $table - * @param string $authorizedView - * - * @return string The formatted authorized_view resource. - */ - public static function authorizedViewName(string $project, string $instance, string $table, string $authorizedView): string - { - return self::getPathTemplate('authorizedView')->render([ - 'project' => $project, - 'instance' => $instance, - 'table' => $table, - 'authorized_view' => $authorizedView, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a instance - * resource. - * - * @param string $project - * @param string $instance - * - * @return string The formatted instance resource. - */ - public static function instanceName(string $project, string $instance): string - { - return self::getPathTemplate('instance')->render([ - 'project' => $project, - 'instance' => $instance, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * materialized_view resource. - * - * @param string $project - * @param string $instance - * @param string $materializedView - * - * @return string The formatted materialized_view resource. - */ - public static function materializedViewName(string $project, string $instance, string $materializedView): string - { - return self::getPathTemplate('materializedView')->render([ - 'project' => $project, - 'instance' => $instance, - 'materialized_view' => $materializedView, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a table - * resource. - * - * @param string $project - * @param string $instance - * @param string $table - * - * @return string The formatted table resource. - */ - public static function tableName(string $project, string $instance, string $table): string - { - return self::getPathTemplate('table')->render([ - 'project' => $project, - 'instance' => $instance, - 'table' => $table, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - authorizedView: projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view} - * - instance: projects/{project}/instances/{instance} - * - materializedView: projects/{project}/instances/{instance}/materializedViews/{materialized_view} - * - table: projects/{project}/instances/{instance}/tables/{table} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * Setting the "BIGTABLE_EMULATOR_HOST" environment variable will automatically set - * the API Endpoint to the value specified in the variable, as well as ensure that - * empty credentials are used in the transport layer. - * - * @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 'bigtable.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\Bigtable\V2\BigtableClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new BigtableClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $options = $this->setDefaultEmulatorConfig($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); - } - - /** - * Mutates a row atomically based on the output of a predicate Reader filter. - * - * The async variant is {@see BigtableClient::checkAndMutateRowAsync()} . - * - * @example samples/V2/BigtableClient/check_and_mutate_row.php - * - * @param CheckAndMutateRowRequest $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 CheckAndMutateRowResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function checkAndMutateRow(CheckAndMutateRowRequest $request, array $callOptions = []): CheckAndMutateRowResponse - { - return $this->startApiCall('CheckAndMutateRow', $request, $callOptions)->wait(); - } - - /** - * Executes a SQL query against a particular Bigtable instance. - * - * @example samples/V2/BigtableClient/execute_query.php - * - * @param ExecuteQueryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type int $timeoutMillis - * Timeout to use for this call. - * } - * - * @return ServerStream - * - * @throws ApiException Thrown if the API call fails. - */ - public function executeQuery(ExecuteQueryRequest $request, array $callOptions = []): ServerStream - { - return $this->startApiCall('ExecuteQuery', $request, $callOptions); - } - - /** - * Returns the current list of partitions that make up the table's - * change stream. The union of partitions will cover the entire keyspace. - * Partitions can be read with `ReadChangeStream`. - * NOTE: This API is only intended to be used by Apache Beam BigtableIO. - * - * @example samples/V2/BigtableClient/generate_initial_change_stream_partitions.php - * - * @param GenerateInitialChangeStreamPartitionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type int $timeoutMillis - * Timeout to use for this call. - * } - * - * @return ServerStream - * - * @throws ApiException Thrown if the API call fails. - */ - public function generateInitialChangeStreamPartitions(GenerateInitialChangeStreamPartitionsRequest $request, array $callOptions = []): ServerStream - { - return $this->startApiCall('GenerateInitialChangeStreamPartitions', $request, $callOptions); - } - - /** - * Mutates a row atomically. Cells already present in the row are left - * unchanged unless explicitly changed by `mutation`. - * - * The async variant is {@see BigtableClient::mutateRowAsync()} . - * - * @example samples/V2/BigtableClient/mutate_row.php - * - * @param MutateRowRequest $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 MutateRowResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function mutateRow(MutateRowRequest $request, array $callOptions = []): MutateRowResponse - { - return $this->startApiCall('MutateRow', $request, $callOptions)->wait(); - } - - /** - * Mutates multiple rows in a batch. Each individual row is mutated - * atomically as in MutateRow, but the entire batch is not executed - * atomically. - * - * @example samples/V2/BigtableClient/mutate_rows.php - * - * @param MutateRowsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type int $timeoutMillis - * Timeout to use for this call. - * } - * - * @return ServerStream - * - * @throws ApiException Thrown if the API call fails. - */ - public function mutateRows(MutateRowsRequest $request, array $callOptions = []): ServerStream - { - return $this->startApiCall('MutateRows', $request, $callOptions); - } - - /** - * Warm up associated instance metadata for this connection. - * This call is not required but may be useful for connection keep-alive. - * - * The async variant is {@see BigtableClient::pingAndWarmAsync()} . - * - * @example samples/V2/BigtableClient/ping_and_warm.php - * - * @param PingAndWarmRequest $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 PingAndWarmResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function pingAndWarm(PingAndWarmRequest $request, array $callOptions = []): PingAndWarmResponse - { - return $this->startApiCall('PingAndWarm', $request, $callOptions)->wait(); - } - - /** - * Prepares a GoogleSQL query for execution on a particular Bigtable instance. - * - * The async variant is {@see BigtableClient::prepareQueryAsync()} . - * - * @example samples/V2/BigtableClient/prepare_query.php - * - * @param PrepareQueryRequest $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 PrepareQueryResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function prepareQuery(PrepareQueryRequest $request, array $callOptions = []): PrepareQueryResponse - { - return $this->startApiCall('PrepareQuery', $request, $callOptions)->wait(); - } - - /** - * Reads changes from a table's change stream. Changes will - * reflect both user-initiated mutations and mutations that are caused by - * garbage collection. - * NOTE: This API is only intended to be used by Apache Beam BigtableIO. - * - * @example samples/V2/BigtableClient/read_change_stream.php - * - * @param ReadChangeStreamRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type int $timeoutMillis - * Timeout to use for this call. - * } - * - * @return ServerStream - * - * @throws ApiException Thrown if the API call fails. - */ - public function readChangeStream(ReadChangeStreamRequest $request, array $callOptions = []): ServerStream - { - return $this->startApiCall('ReadChangeStream', $request, $callOptions); - } - - /** - * Modifies a row atomically on the server. The method reads the latest - * existing timestamp and value from the specified columns and writes a new - * entry based on pre-defined read/modify/write rules. The new value for the - * timestamp is the greater of the existing timestamp or the current server - * time. The method returns the new contents of all modified cells. - * - * The async variant is {@see BigtableClient::readModifyWriteRowAsync()} . - * - * @example samples/V2/BigtableClient/read_modify_write_row.php - * - * @param ReadModifyWriteRowRequest $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 ReadModifyWriteRowResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function readModifyWriteRow(ReadModifyWriteRowRequest $request, array $callOptions = []): ReadModifyWriteRowResponse - { - return $this->startApiCall('ReadModifyWriteRow', $request, $callOptions)->wait(); - } - - /** - * Streams back the contents of all requested rows in key order, optionally - * applying the same Reader filter to each. Depending on their size, - * rows and cells may be broken up across multiple responses, but - * atomicity of each row will still be preserved. See the - * ReadRowsResponse documentation for details. - * - * @example samples/V2/BigtableClient/read_rows.php - * - * @param ReadRowsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type int $timeoutMillis - * Timeout to use for this call. - * } - * - * @return ServerStream - * - * @throws ApiException Thrown if the API call fails. - */ - public function readRows(ReadRowsRequest $request, array $callOptions = []): ServerStream - { - return $this->startApiCall('ReadRows', $request, $callOptions); - } - - /** - * Returns a sample of row keys in the table. The returned row keys will - * delimit contiguous sections of the table of approximately equal size, - * which can be used to break up the data for distributed tasks like - * mapreduces. - * - * @example samples/V2/BigtableClient/sample_row_keys.php - * - * @param SampleRowKeysRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type int $timeoutMillis - * Timeout to use for this call. - * } - * - * @return ServerStream - * - * @throws ApiException Thrown if the API call fails. - */ - public function sampleRowKeys(SampleRowKeysRequest $request, array $callOptions = []): ServerStream - { - return $this->startApiCall('SampleRowKeys', $request, $callOptions); - } - - /** Configure the gapic configuration to use a service emulator. */ - private function setDefaultEmulatorConfig(array $options): array - { - $emulatorHost = getenv('BIGTABLE_EMULATOR_HOST'); - if (empty($emulatorHost)) { - return $options; - } - - if ($scheme = parse_url($emulatorHost, PHP_URL_SCHEME)) { - $search = $scheme . '://'; - $emulatorHost = str_replace($search, '', $emulatorHost); - } - - $options['apiEndpoint'] ??= $emulatorHost; - if (class_exists(ChannelCredentials::class)) { - $options['transportConfig']['grpc']['stubOpts']['credentials'] ??= ChannelCredentials::createInsecure(); - } - - $options['credentials'] ??= new InsecureCredentialsWrapper(); - return $options; - } -} diff --git a/owl-bot-staging/Bigtable/v2/src/V2/gapic_metadata.json b/owl-bot-staging/Bigtable/v2/src/V2/gapic_metadata.json deleted file mode 100644 index 1662e78c12fe..000000000000 --- a/owl-bot-staging/Bigtable/v2/src/V2/gapic_metadata.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.bigtable.v2", - "libraryPackage": "Google\\Cloud\\Bigtable\\V2", - "services": { - "Bigtable": { - "clients": { - "grpc": { - "libraryClient": "BigtableGapicClient", - "rpcs": { - "CheckAndMutateRow": { - "methods": [ - "checkAndMutateRow" - ] - }, - "ExecuteQuery": { - "methods": [ - "executeQuery" - ] - }, - "GenerateInitialChangeStreamPartitions": { - "methods": [ - "generateInitialChangeStreamPartitions" - ] - }, - "MutateRow": { - "methods": [ - "mutateRow" - ] - }, - "MutateRows": { - "methods": [ - "mutateRows" - ] - }, - "PingAndWarm": { - "methods": [ - "pingAndWarm" - ] - }, - "PrepareQuery": { - "methods": [ - "prepareQuery" - ] - }, - "ReadChangeStream": { - "methods": [ - "readChangeStream" - ] - }, - "ReadModifyWriteRow": { - "methods": [ - "readModifyWriteRow" - ] - }, - "ReadRows": { - "methods": [ - "readRows" - ] - }, - "SampleRowKeys": { - "methods": [ - "sampleRowKeys" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/Bigtable/v2/src/V2/resources/bigtable_client_config.json b/owl-bot-staging/Bigtable/v2/src/V2/resources/bigtable_client_config.json deleted file mode 100644 index b5947d56d5b4..000000000000 --- a/owl-bot-staging/Bigtable/v2/src/V2/resources/bigtable_client_config.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "interfaces": { - "google.bigtable.v2.Bigtable": { - "retry_codes": { - "idempotent": [ - "DEADLINE_EXCEEDED", - "UNAVAILABLE" - ], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 100, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 20000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 20000, - "total_timeout_millis": 600000 - } - }, - "methods": { - "CheckAndMutateRow": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "ExecuteQuery": { - "timeout_millis": 60000 - }, - "GenerateInitialChangeStreamPartitions": { - "timeout_millis": 60000 - }, - "MutateRow": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "MutateRows": { - "timeout_millis": 60000 - }, - "PingAndWarm": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "PrepareQuery": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "ReadChangeStream": { - "timeout_millis": 60000 - }, - "ReadModifyWriteRow": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "ReadRows": { - "timeout_millis": 60000 - }, - "SampleRowKeys": { - "timeout_millis": 60000 - } - } - } - } -} diff --git a/owl-bot-staging/Bigtable/v2/src/V2/resources/bigtable_descriptor_config.php b/owl-bot-staging/Bigtable/v2/src/V2/resources/bigtable_descriptor_config.php deleted file mode 100644 index 2caec5a88f5e..000000000000 --- a/owl-bot-staging/Bigtable/v2/src/V2/resources/bigtable_descriptor_config.php +++ /dev/null @@ -1,289 +0,0 @@ - [ - 'google.bigtable.v2.Bigtable' => [ - 'CheckAndMutateRow' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Bigtable\V2\CheckAndMutateRowResponse', - 'headerParams' => [ - [ - 'keyName' => 'table_name', - 'fieldAccessors' => [ - 'getTableName', - ], - 'matchers' => [ - '/^(?projects\/[^\/]+\/instances\/[^\/]+\/tables\/[^\/]+)$/', - '/^(?projects\/[^\/]+\/instances\/[^\/]+\/tables\/[^\/]+)(?:\/.*)?$/', - ], - ], - [ - 'keyName' => 'app_profile_id', - 'fieldAccessors' => [ - 'getAppProfileId', - ], - ], - ], - ], - 'ExecuteQuery' => [ - 'grpcStreaming' => [ - 'grpcStreamingType' => 'ServerStreaming', - ], - 'callType' => \Google\ApiCore\Call::SERVER_STREAMING_CALL, - 'responseType' => 'Google\Cloud\Bigtable\V2\ExecuteQueryResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getInstanceName', - ], - 'matchers' => [ - '/^(?projects\/[^\/]+\/instances\/[^\/]+)$/', - ], - ], - [ - 'keyName' => 'app_profile_id', - 'fieldAccessors' => [ - 'getAppProfileId', - ], - ], - ], - ], - 'GenerateInitialChangeStreamPartitions' => [ - 'grpcStreaming' => [ - 'grpcStreamingType' => 'ServerStreaming', - ], - 'callType' => \Google\ApiCore\Call::SERVER_STREAMING_CALL, - 'responseType' => 'Google\Cloud\Bigtable\V2\GenerateInitialChangeStreamPartitionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'table_name', - 'fieldAccessors' => [ - 'getTableName', - ], - ], - ], - ], - 'MutateRow' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Bigtable\V2\MutateRowResponse', - 'headerParams' => [ - [ - 'keyName' => 'table_name', - 'fieldAccessors' => [ - 'getTableName', - ], - 'matchers' => [ - '/^(?projects\/[^\/]+\/instances\/[^\/]+\/tables\/[^\/]+)$/', - '/^(?projects\/[^\/]+\/instances\/[^\/]+\/tables\/[^\/]+)(?:\/.*)?$/', - ], - ], - [ - 'keyName' => 'app_profile_id', - 'fieldAccessors' => [ - 'getAppProfileId', - ], - ], - ], - ], - 'MutateRows' => [ - 'grpcStreaming' => [ - 'grpcStreamingType' => 'ServerStreaming', - ], - 'callType' => \Google\ApiCore\Call::SERVER_STREAMING_CALL, - 'responseType' => 'Google\Cloud\Bigtable\V2\MutateRowsResponse', - 'headerParams' => [ - [ - 'keyName' => 'table_name', - 'fieldAccessors' => [ - 'getTableName', - ], - 'matchers' => [ - '/^(?projects\/[^\/]+\/instances\/[^\/]+\/tables\/[^\/]+)$/', - '/^(?projects\/[^\/]+\/instances\/[^\/]+\/tables\/[^\/]+)(?:\/.*)?$/', - ], - ], - [ - 'keyName' => 'app_profile_id', - 'fieldAccessors' => [ - 'getAppProfileId', - ], - ], - ], - ], - 'PingAndWarm' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Bigtable\V2\PingAndWarmResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - 'matchers' => [ - '/^(?projects\/[^\/]+\/instances\/[^\/]+)$/', - ], - ], - [ - 'keyName' => 'app_profile_id', - 'fieldAccessors' => [ - 'getAppProfileId', - ], - ], - ], - ], - 'PrepareQuery' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Bigtable\V2\PrepareQueryResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getInstanceName', - ], - 'matchers' => [ - '/^(?projects\/[^\/]+\/instances\/[^\/]+)$/', - ], - ], - [ - 'keyName' => 'app_profile_id', - 'fieldAccessors' => [ - 'getAppProfileId', - ], - ], - ], - ], - 'ReadChangeStream' => [ - 'grpcStreaming' => [ - 'grpcStreamingType' => 'ServerStreaming', - ], - 'callType' => \Google\ApiCore\Call::SERVER_STREAMING_CALL, - 'responseType' => 'Google\Cloud\Bigtable\V2\ReadChangeStreamResponse', - 'headerParams' => [ - [ - 'keyName' => 'table_name', - 'fieldAccessors' => [ - 'getTableName', - ], - ], - ], - ], - 'ReadModifyWriteRow' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Bigtable\V2\ReadModifyWriteRowResponse', - 'headerParams' => [ - [ - 'keyName' => 'table_name', - 'fieldAccessors' => [ - 'getTableName', - ], - 'matchers' => [ - '/^(?projects\/[^\/]+\/instances\/[^\/]+\/tables\/[^\/]+)$/', - '/^(?projects\/[^\/]+\/instances\/[^\/]+\/tables\/[^\/]+)(?:\/.*)?$/', - ], - ], - [ - 'keyName' => 'app_profile_id', - 'fieldAccessors' => [ - 'getAppProfileId', - ], - ], - ], - ], - 'ReadRows' => [ - 'grpcStreaming' => [ - 'grpcStreamingType' => 'ServerStreaming', - ], - 'callType' => \Google\ApiCore\Call::SERVER_STREAMING_CALL, - 'responseType' => 'Google\Cloud\Bigtable\V2\ReadRowsResponse', - 'headerParams' => [ - [ - 'keyName' => 'table_name', - 'fieldAccessors' => [ - 'getTableName', - ], - 'matchers' => [ - '/^(?projects\/[^\/]+\/instances\/[^\/]+\/tables\/[^\/]+)$/', - '/^(?projects\/[^\/]+\/instances\/[^\/]+\/tables\/[^\/]+)(?:\/.*)?$/', - ], - ], - [ - 'keyName' => 'app_profile_id', - 'fieldAccessors' => [ - 'getAppProfileId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getMaterializedViewName', - ], - 'matchers' => [ - '/^(?projects\/[^\/]+\/instances\/[^\/]+)(?:\/.*)?$/', - ], - ], - ], - ], - 'SampleRowKeys' => [ - 'grpcStreaming' => [ - 'grpcStreamingType' => 'ServerStreaming', - ], - 'callType' => \Google\ApiCore\Call::SERVER_STREAMING_CALL, - 'responseType' => 'Google\Cloud\Bigtable\V2\SampleRowKeysResponse', - 'headerParams' => [ - [ - 'keyName' => 'table_name', - 'fieldAccessors' => [ - 'getTableName', - ], - 'matchers' => [ - '/^(?projects\/[^\/]+\/instances\/[^\/]+\/tables\/[^\/]+)$/', - '/^(?projects\/[^\/]+\/instances\/[^\/]+\/tables\/[^\/]+)(?:\/.*)?$/', - ], - ], - [ - 'keyName' => 'app_profile_id', - 'fieldAccessors' => [ - 'getAppProfileId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getMaterializedViewName', - ], - 'matchers' => [ - '/^(?projects\/[^\/]+\/instances\/[^\/]+)(?:\/.*)?$/', - ], - ], - ], - ], - 'templateMap' => [ - 'authorizedView' => 'projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}', - 'instance' => 'projects/{project}/instances/{instance}', - 'materializedView' => 'projects/{project}/instances/{instance}/materializedViews/{materialized_view}', - 'table' => 'projects/{project}/instances/{instance}/tables/{table}', - ], - ], - ], -]; diff --git a/owl-bot-staging/Bigtable/v2/src/V2/resources/bigtable_rest_client_config.php b/owl-bot-staging/Bigtable/v2/src/V2/resources/bigtable_rest_client_config.php deleted file mode 100644 index 6c1b96212f88..000000000000 --- a/owl-bot-staging/Bigtable/v2/src/V2/resources/bigtable_rest_client_config.php +++ /dev/null @@ -1,250 +0,0 @@ - [ - 'google.bigtable.v2.Bigtable' => [ - 'CheckAndMutateRow' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{table_name=projects/*/instances/*/tables/*}:checkAndMutateRow', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:checkAndMutateRow', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'authorized_view_name' => [ - 'getters' => [ - 'getAuthorizedViewName', - ], - ], - 'table_name' => [ - 'getters' => [ - 'getTableName', - ], - ], - ], - ], - 'ExecuteQuery' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{instance_name=projects/*/instances/*}:executeQuery', - 'body' => '*', - 'placeholders' => [ - 'instance_name' => [ - 'getters' => [ - 'getInstanceName', - ], - ], - ], - ], - 'GenerateInitialChangeStreamPartitions' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{table_name=projects/*/instances/*/tables/*}:generateInitialChangeStreamPartitions', - 'body' => '*', - 'placeholders' => [ - 'table_name' => [ - 'getters' => [ - 'getTableName', - ], - ], - ], - ], - 'MutateRow' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{table_name=projects/*/instances/*/tables/*}:mutateRow', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:mutateRow', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'authorized_view_name' => [ - 'getters' => [ - 'getAuthorizedViewName', - ], - ], - 'table_name' => [ - 'getters' => [ - 'getTableName', - ], - ], - ], - ], - 'MutateRows' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{table_name=projects/*/instances/*/tables/*}:mutateRows', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:mutateRows', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'authorized_view_name' => [ - 'getters' => [ - 'getAuthorizedViewName', - ], - ], - 'table_name' => [ - 'getters' => [ - 'getTableName', - ], - ], - ], - ], - 'PingAndWarm' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{name=projects/*/instances/*}:ping', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'PrepareQuery' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{instance_name=projects/*/instances/*}:prepareQuery', - 'body' => '*', - 'placeholders' => [ - 'instance_name' => [ - 'getters' => [ - 'getInstanceName', - ], - ], - ], - ], - 'ReadChangeStream' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{table_name=projects/*/instances/*/tables/*}:readChangeStream', - 'body' => '*', - 'placeholders' => [ - 'table_name' => [ - 'getters' => [ - 'getTableName', - ], - ], - ], - ], - 'ReadModifyWriteRow' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{table_name=projects/*/instances/*/tables/*}:readModifyWriteRow', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:readModifyWriteRow', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'authorized_view_name' => [ - 'getters' => [ - 'getAuthorizedViewName', - ], - ], - 'table_name' => [ - 'getters' => [ - 'getTableName', - ], - ], - ], - ], - 'ReadRows' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{table_name=projects/*/instances/*/tables/*}:readRows', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:readRows', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{materialized_view_name=projects/*/instances/*/materializedViews/*}:readRows', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'authorized_view_name' => [ - 'getters' => [ - 'getAuthorizedViewName', - ], - ], - 'materialized_view_name' => [ - 'getters' => [ - 'getMaterializedViewName', - ], - ], - 'table_name' => [ - 'getters' => [ - 'getTableName', - ], - ], - ], - ], - 'SampleRowKeys' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{table_name=projects/*/instances/*/tables/*}:sampleRowKeys', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{authorized_view_name=projects/*/instances/*/tables/*/authorizedViews/*}:sampleRowKeys', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{materialized_view_name=projects/*/instances/*/materializedViews/*}:sampleRowKeys', - ], - ], - 'placeholders' => [ - 'authorized_view_name' => [ - 'getters' => [ - 'getAuthorizedViewName', - ], - ], - 'materialized_view_name' => [ - 'getters' => [ - 'getMaterializedViewName', - ], - ], - 'table_name' => [ - 'getters' => [ - 'getTableName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Bigtable/v2/tests/Unit/V2/Client/BigtableClientTest.php b/owl-bot-staging/Bigtable/v2/tests/Unit/V2/Client/BigtableClientTest.php deleted file mode 100644 index b28bc7f03e84..000000000000 --- a/owl-bot-staging/Bigtable/v2/tests/Unit/V2/Client/BigtableClientTest.php +++ /dev/null @@ -1,966 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return BigtableClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new BigtableClient($options); - } - - /** @test */ - public function checkAndMutateRowTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $predicateMatched = true; - $expectedResponse = new CheckAndMutateRowResponse(); - $expectedResponse->setPredicateMatched($predicateMatched); - $transport->addResponse($expectedResponse); - // Mock request - $formattedTableName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $rowKey = '122'; - $request = (new CheckAndMutateRowRequest()) - ->setTableName($formattedTableName) - ->setRowKey($rowKey); - $response = $gapicClient->checkAndMutateRow($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.v2.Bigtable/CheckAndMutateRow', $actualFuncCall); - $actualValue = $actualRequestObject->getTableName(); - $this->assertProtobufEquals($formattedTableName, $actualValue); - $actualValue = $actualRequestObject->getRowKey(); - $this->assertProtobufEquals($rowKey, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function checkAndMutateRowExceptionTest() - { - $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 - $formattedTableName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $rowKey = '122'; - $request = (new CheckAndMutateRowRequest()) - ->setTableName($formattedTableName) - ->setRowKey($rowKey); - try { - $gapicClient->checkAndMutateRow($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 executeQueryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ExecuteQueryResponse(); - $transport->addResponse($expectedResponse); - $expectedResponse2 = new ExecuteQueryResponse(); - $transport->addResponse($expectedResponse2); - $expectedResponse3 = new ExecuteQueryResponse(); - $transport->addResponse($expectedResponse3); - // Mock request - $formattedInstanceName = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); - $query = 'query107944136'; - $paramsValue = new Value(); - $params = [ - 'paramsKey' => $paramsValue, - ]; - $request = (new ExecuteQueryRequest()) - ->setInstanceName($formattedInstanceName) - ->setQuery($query) - ->setParams($params); - $serverStream = $gapicClient->executeQuery($request); - $this->assertInstanceOf(ServerStream::class, $serverStream); - $responses = iterator_to_array($serverStream->readAll()); - $expectedResponses = []; - $expectedResponses[] = $expectedResponse; - $expectedResponses[] = $expectedResponse2; - $expectedResponses[] = $expectedResponse3; - $this->assertEquals($expectedResponses, $responses); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.v2.Bigtable/ExecuteQuery', $actualFuncCall); - $actualValue = $actualRequestObject->getInstanceName(); - $this->assertProtobufEquals($formattedInstanceName, $actualValue); - $actualValue = $actualRequestObject->getQuery(); - $this->assertProtobufEquals($query, $actualValue); - $actualValue = $actualRequestObject->getParams(); - $this->assertProtobufEquals($params, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function executeQueryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $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->setStreamingStatus($status); - $this->assertTrue($transport->isExhausted()); - // Mock request - $formattedInstanceName = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); - $query = 'query107944136'; - $paramsValue = new Value(); - $params = [ - 'paramsKey' => $paramsValue, - ]; - $request = (new ExecuteQueryRequest()) - ->setInstanceName($formattedInstanceName) - ->setQuery($query) - ->setParams($params); - $serverStream = $gapicClient->executeQuery($request); - $results = $serverStream->readAll(); - try { - iterator_to_array($results); - // If the close stream 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 generateInitialChangeStreamPartitionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GenerateInitialChangeStreamPartitionsResponse(); - $transport->addResponse($expectedResponse); - $expectedResponse2 = new GenerateInitialChangeStreamPartitionsResponse(); - $transport->addResponse($expectedResponse2); - $expectedResponse3 = new GenerateInitialChangeStreamPartitionsResponse(); - $transport->addResponse($expectedResponse3); - // Mock request - $formattedTableName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $request = (new GenerateInitialChangeStreamPartitionsRequest()) - ->setTableName($formattedTableName); - $serverStream = $gapicClient->generateInitialChangeStreamPartitions($request); - $this->assertInstanceOf(ServerStream::class, $serverStream); - $responses = iterator_to_array($serverStream->readAll()); - $expectedResponses = []; - $expectedResponses[] = $expectedResponse; - $expectedResponses[] = $expectedResponse2; - $expectedResponses[] = $expectedResponse3; - $this->assertEquals($expectedResponses, $responses); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.v2.Bigtable/GenerateInitialChangeStreamPartitions', $actualFuncCall); - $actualValue = $actualRequestObject->getTableName(); - $this->assertProtobufEquals($formattedTableName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function generateInitialChangeStreamPartitionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $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->setStreamingStatus($status); - $this->assertTrue($transport->isExhausted()); - // Mock request - $formattedTableName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $request = (new GenerateInitialChangeStreamPartitionsRequest()) - ->setTableName($formattedTableName); - $serverStream = $gapicClient->generateInitialChangeStreamPartitions($request); - $results = $serverStream->readAll(); - try { - iterator_to_array($results); - // If the close stream 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 mutateRowTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new MutateRowResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedTableName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $rowKey = '122'; - $mutations = []; - $request = (new MutateRowRequest()) - ->setTableName($formattedTableName) - ->setRowKey($rowKey) - ->setMutations($mutations); - $response = $gapicClient->mutateRow($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.v2.Bigtable/MutateRow', $actualFuncCall); - $actualValue = $actualRequestObject->getTableName(); - $this->assertProtobufEquals($formattedTableName, $actualValue); - $actualValue = $actualRequestObject->getRowKey(); - $this->assertProtobufEquals($rowKey, $actualValue); - $actualValue = $actualRequestObject->getMutations(); - $this->assertProtobufEquals($mutations, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function mutateRowExceptionTest() - { - $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 - $formattedTableName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $rowKey = '122'; - $mutations = []; - $request = (new MutateRowRequest()) - ->setTableName($formattedTableName) - ->setRowKey($rowKey) - ->setMutations($mutations); - try { - $gapicClient->mutateRow($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 mutateRowsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new MutateRowsResponse(); - $transport->addResponse($expectedResponse); - $expectedResponse2 = new MutateRowsResponse(); - $transport->addResponse($expectedResponse2); - $expectedResponse3 = new MutateRowsResponse(); - $transport->addResponse($expectedResponse3); - // Mock request - $formattedTableName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $entries = []; - $request = (new MutateRowsRequest()) - ->setTableName($formattedTableName) - ->setEntries($entries); - $serverStream = $gapicClient->mutateRows($request); - $this->assertInstanceOf(ServerStream::class, $serverStream); - $responses = iterator_to_array($serverStream->readAll()); - $expectedResponses = []; - $expectedResponses[] = $expectedResponse; - $expectedResponses[] = $expectedResponse2; - $expectedResponses[] = $expectedResponse3; - $this->assertEquals($expectedResponses, $responses); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.v2.Bigtable/MutateRows', $actualFuncCall); - $actualValue = $actualRequestObject->getTableName(); - $this->assertProtobufEquals($formattedTableName, $actualValue); - $actualValue = $actualRequestObject->getEntries(); - $this->assertProtobufEquals($entries, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function mutateRowsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $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->setStreamingStatus($status); - $this->assertTrue($transport->isExhausted()); - // Mock request - $formattedTableName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $entries = []; - $request = (new MutateRowsRequest()) - ->setTableName($formattedTableName) - ->setEntries($entries); - $serverStream = $gapicClient->mutateRows($request); - $results = $serverStream->readAll(); - try { - iterator_to_array($results); - // If the close stream 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 pingAndWarmTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new PingAndWarmResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); - $request = (new PingAndWarmRequest()) - ->setName($formattedName); - $response = $gapicClient->pingAndWarm($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.v2.Bigtable/PingAndWarm', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function pingAndWarmExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); - $request = (new PingAndWarmRequest()) - ->setName($formattedName); - try { - $gapicClient->pingAndWarm($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 prepareQueryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $preparedQuery = '70'; - $expectedResponse = new PrepareQueryResponse(); - $expectedResponse->setPreparedQuery($preparedQuery); - $transport->addResponse($expectedResponse); - // Mock request - $formattedInstanceName = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); - $query = 'query107944136'; - $paramTypesValue = new Type(); - $paramTypes = [ - 'paramTypesKey' => $paramTypesValue, - ]; - $request = (new PrepareQueryRequest()) - ->setInstanceName($formattedInstanceName) - ->setQuery($query) - ->setParamTypes($paramTypes); - $response = $gapicClient->prepareQuery($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.v2.Bigtable/PrepareQuery', $actualFuncCall); - $actualValue = $actualRequestObject->getInstanceName(); - $this->assertProtobufEquals($formattedInstanceName, $actualValue); - $actualValue = $actualRequestObject->getQuery(); - $this->assertProtobufEquals($query, $actualValue); - $actualValue = $actualRequestObject->getParamTypes(); - $this->assertProtobufEquals($paramTypes, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function prepareQueryExceptionTest() - { - $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 - $formattedInstanceName = $gapicClient->instanceName('[PROJECT]', '[INSTANCE]'); - $query = 'query107944136'; - $paramTypesValue = new Type(); - $paramTypes = [ - 'paramTypesKey' => $paramTypesValue, - ]; - $request = (new PrepareQueryRequest()) - ->setInstanceName($formattedInstanceName) - ->setQuery($query) - ->setParamTypes($paramTypes); - try { - $gapicClient->prepareQuery($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 readChangeStreamTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ReadChangeStreamResponse(); - $transport->addResponse($expectedResponse); - $expectedResponse2 = new ReadChangeStreamResponse(); - $transport->addResponse($expectedResponse2); - $expectedResponse3 = new ReadChangeStreamResponse(); - $transport->addResponse($expectedResponse3); - // Mock request - $formattedTableName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $request = (new ReadChangeStreamRequest()) - ->setTableName($formattedTableName); - $serverStream = $gapicClient->readChangeStream($request); - $this->assertInstanceOf(ServerStream::class, $serverStream); - $responses = iterator_to_array($serverStream->readAll()); - $expectedResponses = []; - $expectedResponses[] = $expectedResponse; - $expectedResponses[] = $expectedResponse2; - $expectedResponses[] = $expectedResponse3; - $this->assertEquals($expectedResponses, $responses); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.v2.Bigtable/ReadChangeStream', $actualFuncCall); - $actualValue = $actualRequestObject->getTableName(); - $this->assertProtobufEquals($formattedTableName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function readChangeStreamExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $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->setStreamingStatus($status); - $this->assertTrue($transport->isExhausted()); - // Mock request - $formattedTableName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $request = (new ReadChangeStreamRequest()) - ->setTableName($formattedTableName); - $serverStream = $gapicClient->readChangeStream($request); - $results = $serverStream->readAll(); - try { - iterator_to_array($results); - // If the close stream 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 readModifyWriteRowTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ReadModifyWriteRowResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedTableName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $rowKey = '122'; - $rules = []; - $request = (new ReadModifyWriteRowRequest()) - ->setTableName($formattedTableName) - ->setRowKey($rowKey) - ->setRules($rules); - $response = $gapicClient->readModifyWriteRow($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.v2.Bigtable/ReadModifyWriteRow', $actualFuncCall); - $actualValue = $actualRequestObject->getTableName(); - $this->assertProtobufEquals($formattedTableName, $actualValue); - $actualValue = $actualRequestObject->getRowKey(); - $this->assertProtobufEquals($rowKey, $actualValue); - $actualValue = $actualRequestObject->getRules(); - $this->assertProtobufEquals($rules, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function readModifyWriteRowExceptionTest() - { - $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 - $formattedTableName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $rowKey = '122'; - $rules = []; - $request = (new ReadModifyWriteRowRequest()) - ->setTableName($formattedTableName) - ->setRowKey($rowKey) - ->setRules($rules); - try { - $gapicClient->readModifyWriteRow($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 readRowsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $lastScannedRowKey = '-126'; - $expectedResponse = new ReadRowsResponse(); - $expectedResponse->setLastScannedRowKey($lastScannedRowKey); - $transport->addResponse($expectedResponse); - $lastScannedRowKey2 = '-75'; - $expectedResponse2 = new ReadRowsResponse(); - $expectedResponse2->setLastScannedRowKey($lastScannedRowKey2); - $transport->addResponse($expectedResponse2); - $lastScannedRowKey3 = '-74'; - $expectedResponse3 = new ReadRowsResponse(); - $expectedResponse3->setLastScannedRowKey($lastScannedRowKey3); - $transport->addResponse($expectedResponse3); - // Mock request - $formattedTableName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $request = (new ReadRowsRequest()) - ->setTableName($formattedTableName); - $serverStream = $gapicClient->readRows($request); - $this->assertInstanceOf(ServerStream::class, $serverStream); - $responses = iterator_to_array($serverStream->readAll()); - $expectedResponses = []; - $expectedResponses[] = $expectedResponse; - $expectedResponses[] = $expectedResponse2; - $expectedResponses[] = $expectedResponse3; - $this->assertEquals($expectedResponses, $responses); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.v2.Bigtable/ReadRows', $actualFuncCall); - $actualValue = $actualRequestObject->getTableName(); - $this->assertProtobufEquals($formattedTableName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function readRowsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $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->setStreamingStatus($status); - $this->assertTrue($transport->isExhausted()); - // Mock request - $formattedTableName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $request = (new ReadRowsRequest()) - ->setTableName($formattedTableName); - $serverStream = $gapicClient->readRows($request); - $results = $serverStream->readAll(); - try { - iterator_to_array($results); - // If the close stream 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 sampleRowKeysTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $rowKey = '122'; - $offsetBytes = 889884095; - $expectedResponse = new SampleRowKeysResponse(); - $expectedResponse->setRowKey($rowKey); - $expectedResponse->setOffsetBytes($offsetBytes); - $transport->addResponse($expectedResponse); - $rowKey2 = '-83'; - $offsetBytes2 = 480126386; - $expectedResponse2 = new SampleRowKeysResponse(); - $expectedResponse2->setRowKey($rowKey2); - $expectedResponse2->setOffsetBytes($offsetBytes2); - $transport->addResponse($expectedResponse2); - $rowKey3 = '-82'; - $offsetBytes3 = 480126387; - $expectedResponse3 = new SampleRowKeysResponse(); - $expectedResponse3->setRowKey($rowKey3); - $expectedResponse3->setOffsetBytes($offsetBytes3); - $transport->addResponse($expectedResponse3); - // Mock request - $formattedTableName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $request = (new SampleRowKeysRequest()) - ->setTableName($formattedTableName); - $serverStream = $gapicClient->sampleRowKeys($request); - $this->assertInstanceOf(ServerStream::class, $serverStream); - $responses = iterator_to_array($serverStream->readAll()); - $expectedResponses = []; - $expectedResponses[] = $expectedResponse; - $expectedResponses[] = $expectedResponse2; - $expectedResponses[] = $expectedResponse3; - $this->assertEquals($expectedResponses, $responses); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.v2.Bigtable/SampleRowKeys', $actualFuncCall); - $actualValue = $actualRequestObject->getTableName(); - $this->assertProtobufEquals($formattedTableName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function sampleRowKeysExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $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->setStreamingStatus($status); - $this->assertTrue($transport->isExhausted()); - // Mock request - $formattedTableName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $request = (new SampleRowKeysRequest()) - ->setTableName($formattedTableName); - $serverStream = $gapicClient->sampleRowKeys($request); - $results = $serverStream->readAll(); - try { - iterator_to_array($results); - // If the close stream 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 checkAndMutateRowAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $predicateMatched = true; - $expectedResponse = new CheckAndMutateRowResponse(); - $expectedResponse->setPredicateMatched($predicateMatched); - $transport->addResponse($expectedResponse); - // Mock request - $formattedTableName = $gapicClient->tableName('[PROJECT]', '[INSTANCE]', '[TABLE]'); - $rowKey = '122'; - $request = (new CheckAndMutateRowRequest()) - ->setTableName($formattedTableName) - ->setRowKey($rowKey); - $response = $gapicClient->checkAndMutateRowAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.bigtable.v2.Bigtable/CheckAndMutateRow', $actualFuncCall); - $actualValue = $actualRequestObject->getTableName(); - $this->assertProtobufEquals($formattedTableName, $actualValue); - $actualValue = $actualRequestObject->getRowKey(); - $this->assertProtobufEquals($rowKey, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -}