From 9755d46eddae4ae41eb4333efad74b4d6023bced Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 20 Jan 2025 10:06:15 +0000 Subject: [PATCH] fix: extend timeouts for check consistency PiperOrigin-RevId: 717421943 Source-Link: https://github.com/googleapis/googleapis/commit/07737e56be021ca2d11a24fb759ff3de79d83fa0 Source-Link: https://github.com/googleapis/googleapis-gen/commit/c41ade9ef7a90a1e38bda78132447a4b7e50c11d Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuQmlndGFibGUuQWRtaW4uVjIvLk93bEJvdC55YW1sIiwiaCI6ImM0MWFkZTllZjdhOTBhMWUzOGJkYTc4MTMyNDQ3YTRiN2U1MGMxMWQifQ== --- ...inClient.CreateAppProfileAsyncSnippet.g.cs | 46 + ...teAppProfileRequestObjectAsyncSnippet.g.cs | 50 + ....CreateAppProfileRequestObjectSnippet.g.cs | 49 + ...teAppProfileResourceNamesAsyncSnippet.g.cs | 46 + ....CreateAppProfileResourceNamesSnippet.g.cs | 45 + ...ceAdminClient.CreateAppProfileSnippet.g.cs | 45 + ...AdminClient.CreateClusterAsyncSnippet.g.cs | 63 + ...reateClusterRequestObjectAsyncSnippet.g.cs | 66 + ...ent.CreateClusterRequestObjectSnippet.g.cs | 65 + ...reateClusterResourceNamesAsyncSnippet.g.cs | 63 + ...ent.CreateClusterResourceNamesSnippet.g.cs | 62 + ...tanceAdminClient.CreateClusterSnippet.g.cs | 62 + ...dminClient.CreateInstanceAsyncSnippet.g.cs | 65 + ...eateInstanceRequestObjectAsyncSnippet.g.cs | 68 + ...nt.CreateInstanceRequestObjectSnippet.g.cs | 67 + ...eateInstanceResourceNamesAsyncSnippet.g.cs | 66 + ...nt.CreateInstanceResourceNamesSnippet.g.cs | 65 + ...anceAdminClient.CreateInstanceSnippet.g.cs | 64 + ...inClient.DeleteAppProfileAsyncSnippet.g.cs | 44 + ...teAppProfileRequestObjectAsyncSnippet.g.cs | 48 + ....DeleteAppProfileRequestObjectSnippet.g.cs | 47 + ...teAppProfileResourceNamesAsyncSnippet.g.cs | 44 + ....DeleteAppProfileResourceNamesSnippet.g.cs | 43 + ...ceAdminClient.DeleteAppProfileSnippet.g.cs | 43 + ...AdminClient.DeleteClusterAsyncSnippet.g.cs | 44 + ...eleteClusterRequestObjectAsyncSnippet.g.cs | 47 + ...ent.DeleteClusterRequestObjectSnippet.g.cs | 46 + ...eleteClusterResourceNamesAsyncSnippet.g.cs | 44 + ...ent.DeleteClusterResourceNamesSnippet.g.cs | 43 + ...tanceAdminClient.DeleteClusterSnippet.g.cs | 43 + ...dminClient.DeleteInstanceAsyncSnippet.g.cs | 44 + ...leteInstanceRequestObjectAsyncSnippet.g.cs | 47 + ...nt.DeleteInstanceRequestObjectSnippet.g.cs | 46 + ...leteInstanceResourceNamesAsyncSnippet.g.cs | 44 + ...nt.DeleteInstanceResourceNamesSnippet.g.cs | 43 + ...anceAdminClient.DeleteInstanceSnippet.g.cs | 43 + ...AdminClient.GetAppProfileAsyncSnippet.g.cs | 44 + ...etAppProfileRequestObjectAsyncSnippet.g.cs | 47 + ...ent.GetAppProfileRequestObjectSnippet.g.cs | 46 + ...etAppProfileResourceNamesAsyncSnippet.g.cs | 44 + ...ent.GetAppProfileResourceNamesSnippet.g.cs | 43 + ...tanceAdminClient.GetAppProfileSnippet.g.cs | 43 + ...nceAdminClient.GetClusterAsyncSnippet.g.cs | 44 + ...t.GetClusterRequestObjectAsyncSnippet.g.cs | 47 + ...Client.GetClusterRequestObjectSnippet.g.cs | 46 + ...t.GetClusterResourceNamesAsyncSnippet.g.cs | 44 + ...Client.GetClusterResourceNamesSnippet.g.cs | 43 + ...InstanceAdminClient.GetClusterSnippet.g.cs | 43 + ...eAdminClient.GetIamPolicyAsyncSnippet.g.cs | 45 + ...GetIamPolicyRequestObjectAsyncSnippet.g.cs | 50 + ...ient.GetIamPolicyRequestObjectSnippet.g.cs | 49 + ...GetIamPolicyResourceNamesAsyncSnippet.g.cs | 46 + ...ient.GetIamPolicyResourceNamesSnippet.g.cs | 45 + ...stanceAdminClient.GetIamPolicySnippet.g.cs | 44 + ...ceAdminClient.GetInstanceAsyncSnippet.g.cs | 44 + ....GetInstanceRequestObjectAsyncSnippet.g.cs | 47 + ...lient.GetInstanceRequestObjectSnippet.g.cs | 46 + ....GetInstanceResourceNamesAsyncSnippet.g.cs | 44 + ...lient.GetInstanceResourceNamesSnippet.g.cs | 43 + ...nstanceAdminClient.GetInstanceSnippet.g.cs | 43 + ...minClient.ListAppProfilesAsyncSnippet.g.cs | 79 + ...tAppProfilesRequestObjectAsyncSnippet.g.cs | 82 + ...t.ListAppProfilesRequestObjectSnippet.g.cs | 80 + ...tAppProfilesResourceNamesAsyncSnippet.g.cs | 79 + ...t.ListAppProfilesResourceNamesSnippet.g.cs | 77 + ...nceAdminClient.ListAppProfilesSnippet.g.cs | 77 + ...eAdminClient.ListClustersAsyncSnippet.g.cs | 44 + ...ListClustersRequestObjectAsyncSnippet.g.cs | 48 + ...ient.ListClustersRequestObjectSnippet.g.cs | 47 + ...ListClustersResourceNamesAsyncSnippet.g.cs | 44 + ...ient.ListClustersResourceNamesSnippet.g.cs | 43 + ...stanceAdminClient.ListClustersSnippet.g.cs | 43 + ...dminClient.ListHotTabletsAsyncSnippet.g.cs | 79 + ...stHotTabletsRequestObjectAsyncSnippet.g.cs | 85 + ...nt.ListHotTabletsRequestObjectSnippet.g.cs | 83 + ...stHotTabletsResourceNamesAsyncSnippet.g.cs | 79 + ...nt.ListHotTabletsResourceNamesSnippet.g.cs | 77 + ...anceAdminClient.ListHotTabletsSnippet.g.cs | 77 + ...AdminClient.ListInstancesAsyncSnippet.g.cs | 44 + ...istInstancesRequestObjectAsyncSnippet.g.cs | 49 + ...ent.ListInstancesRequestObjectSnippet.g.cs | 48 + ...istInstancesResourceNamesAsyncSnippet.g.cs | 45 + ...ent.ListInstancesResourceNamesSnippet.g.cs | 44 + ...tanceAdminClient.ListInstancesSnippet.g.cs | 43 + ...ient.PartialUpdateClusterAsyncSnippet.g.cs | 63 + ...pdateClusterRequestObjectAsyncSnippet.g.cs | 66 + ...tialUpdateClusterRequestObjectSnippet.g.cs | 65 + ...minClient.PartialUpdateClusterSnippet.g.cs | 62 + ...ent.PartialUpdateInstanceAsyncSnippet.g.cs | 63 + ...dateInstanceRequestObjectAsyncSnippet.g.cs | 66 + ...ialUpdateInstanceRequestObjectSnippet.g.cs | 65 + ...inClient.PartialUpdateInstanceSnippet.g.cs | 62 + ...eAdminClient.SetIamPolicyAsyncSnippet.g.cs | 46 + ...SetIamPolicyRequestObjectAsyncSnippet.g.cs | 52 + ...ient.SetIamPolicyRequestObjectSnippet.g.cs | 51 + ...SetIamPolicyResourceNamesAsyncSnippet.g.cs | 47 + ...ient.SetIamPolicyResourceNamesSnippet.g.cs | 46 + ...stanceAdminClient.SetIamPolicySnippet.g.cs | 45 + ...Client.TestIamPermissionsAsyncSnippet.g.cs | 47 + ...mPermissionsRequestObjectAsyncSnippet.g.cs | 50 + ...estIamPermissionsRequestObjectSnippet.g.cs | 49 + ...mPermissionsResourceNamesAsyncSnippet.g.cs | 48 + ...estIamPermissionsResourceNamesSnippet.g.cs | 47 + ...AdminClient.TestIamPermissionsSnippet.g.cs | 46 + ...inClient.UpdateAppProfileAsyncSnippet.g.cs | 63 + ...teAppProfileRequestObjectAsyncSnippet.g.cs | 67 + ....UpdateAppProfileRequestObjectSnippet.g.cs | 66 + ...ceAdminClient.UpdateAppProfileSnippet.g.cs | 62 + ...pdateClusterRequestObjectAsyncSnippet.g.cs | 72 + ...ent.UpdateClusterRequestObjectSnippet.g.cs | 71 + ...dateInstanceRequestObjectAsyncSnippet.g.cs | 54 + ...nt.UpdateInstanceRequestObjectSnippet.g.cs | 53 + ...inClient.CheckConsistencyAsyncSnippet.g.cs | 45 + ...kConsistencyRequestObjectAsyncSnippet.g.cs | 49 + ....CheckConsistencyRequestObjectSnippet.g.cs | 48 + ...kConsistencyResourceNamesAsyncSnippet.g.cs | 45 + ....CheckConsistencyResourceNamesSnippet.g.cs | 44 + ...leAdminClient.CheckConsistencySnippet.g.cs | 44 + ...bleAdminClient.CopyBackupAsyncSnippet.g.cs | 65 + ...t.CopyBackupRequestObjectAsyncSnippet.g.cs | 68 + ...Client.CopyBackupRequestObjectSnippet.g.cs | 67 + ...t.CopyBackupResourceNamesAsyncSnippet.g.cs | 65 + ...Client.CopyBackupResourceNamesSnippet.g.cs | 64 + ...bleTableAdminClient.CopyBackupSnippet.g.cs | 64 + ...ient.CreateAuthorizedViewAsyncSnippet.g.cs | 63 + ...thorizedViewRequestObjectAsyncSnippet.g.cs | 66 + ...ateAuthorizedViewRequestObjectSnippet.g.cs | 65 + ...thorizedViewResourceNamesAsyncSnippet.g.cs | 63 + ...ateAuthorizedViewResourceNamesSnippet.g.cs | 62 + ...minClient.CreateAuthorizedViewSnippet.g.cs | 62 + ...eAdminClient.CreateBackupAsyncSnippet.g.cs | 63 + ...CreateBackupRequestObjectAsyncSnippet.g.cs | 66 + ...ient.CreateBackupRequestObjectSnippet.g.cs | 65 + ...CreateBackupResourceNamesAsyncSnippet.g.cs | 63 + ...ient.CreateBackupResourceNamesSnippet.g.cs | 62 + ...eTableAdminClient.CreateBackupSnippet.g.cs | 62 + ...leAdminClient.CreateTableAsyncSnippet.g.cs | 46 + ...t.CreateTableFromSnapshotAsyncSnippet.g.cs | 63 + ...FromSnapshotRequestObjectAsyncSnippet.g.cs | 66 + ...TableFromSnapshotRequestObjectSnippet.g.cs | 65 + ...FromSnapshotResourceNamesAsyncSnippet.g.cs | 63 + ...TableFromSnapshotResourceNamesSnippet.g.cs | 62 + ...Client.CreateTableFromSnapshotSnippet.g.cs | 62 + ....CreateTableRequestObjectAsyncSnippet.g.cs | 53 + ...lient.CreateTableRequestObjectSnippet.g.cs | 52 + ....CreateTableResourceNamesAsyncSnippet.g.cs | 46 + ...lient.CreateTableResourceNamesSnippet.g.cs | 45 + ...leTableAdminClient.CreateTableSnippet.g.cs | 45 + ...ient.DeleteAuthorizedViewAsyncSnippet.g.cs | 44 + ...thorizedViewRequestObjectAsyncSnippet.g.cs | 48 + ...eteAuthorizedViewRequestObjectSnippet.g.cs | 47 + ...thorizedViewResourceNamesAsyncSnippet.g.cs | 44 + ...eteAuthorizedViewResourceNamesSnippet.g.cs | 43 + ...minClient.DeleteAuthorizedViewSnippet.g.cs | 43 + ...eAdminClient.DeleteBackupAsyncSnippet.g.cs | 44 + ...DeleteBackupRequestObjectAsyncSnippet.g.cs | 47 + ...ient.DeleteBackupRequestObjectSnippet.g.cs | 46 + ...DeleteBackupResourceNamesAsyncSnippet.g.cs | 44 + ...ient.DeleteBackupResourceNamesSnippet.g.cs | 43 + ...eTableAdminClient.DeleteBackupSnippet.g.cs | 43 + ...dminClient.DeleteSnapshotAsyncSnippet.g.cs | 44 + ...leteSnapshotRequestObjectAsyncSnippet.g.cs | 47 + ...nt.DeleteSnapshotRequestObjectSnippet.g.cs | 46 + ...leteSnapshotResourceNamesAsyncSnippet.g.cs | 44 + ...nt.DeleteSnapshotResourceNamesSnippet.g.cs | 43 + ...ableAdminClient.DeleteSnapshotSnippet.g.cs | 43 + ...leAdminClient.DeleteTableAsyncSnippet.g.cs | 44 + ....DeleteTableRequestObjectAsyncSnippet.g.cs | 47 + ...lient.DeleteTableRequestObjectSnippet.g.cs | 46 + ....DeleteTableResourceNamesAsyncSnippet.g.cs | 44 + ...lient.DeleteTableResourceNamesSnippet.g.cs | 43 + ...leTableAdminClient.DeleteTableSnippet.g.cs | 43 + ...DropRowRangeRequestObjectAsyncSnippet.g.cs | 49 + ...ient.DropRowRangeRequestObjectSnippet.g.cs | 48 + ....GenerateConsistencyTokenAsyncSnippet.g.cs | 44 + ...istencyTokenRequestObjectAsyncSnippet.g.cs | 47 + ...eConsistencyTokenRequestObjectSnippet.g.cs | 46 + ...istencyTokenResourceNamesAsyncSnippet.g.cs | 44 + ...eConsistencyTokenResourceNamesSnippet.g.cs | 43 + ...lient.GenerateConsistencyTokenSnippet.g.cs | 43 + ...nClient.GetAuthorizedViewAsyncSnippet.g.cs | 44 + ...thorizedViewRequestObjectAsyncSnippet.g.cs | 48 + ...GetAuthorizedViewRequestObjectSnippet.g.cs | 47 + ...thorizedViewResourceNamesAsyncSnippet.g.cs | 44 + ...GetAuthorizedViewResourceNamesSnippet.g.cs | 43 + ...eAdminClient.GetAuthorizedViewSnippet.g.cs | 43 + ...ableAdminClient.GetBackupAsyncSnippet.g.cs | 44 + ...nt.GetBackupRequestObjectAsyncSnippet.g.cs | 47 + ...nClient.GetBackupRequestObjectSnippet.g.cs | 46 + ...nt.GetBackupResourceNamesAsyncSnippet.g.cs | 44 + ...nClient.GetBackupResourceNamesSnippet.g.cs | 43 + ...ableTableAdminClient.GetBackupSnippet.g.cs | 43 + ...eAdminClient.GetIamPolicyAsyncSnippet.g.cs | 45 + ...GetIamPolicyRequestObjectAsyncSnippet.g.cs | 50 + ...ient.GetIamPolicyRequestObjectSnippet.g.cs | 49 + ...GetIamPolicyResourceNamesAsyncSnippet.g.cs | 46 + ...ient.GetIamPolicyResourceNamesSnippet.g.cs | 45 + ...eTableAdminClient.GetIamPolicySnippet.g.cs | 44 + ...leAdminClient.GetSnapshotAsyncSnippet.g.cs | 44 + ....GetSnapshotRequestObjectAsyncSnippet.g.cs | 47 + ...lient.GetSnapshotRequestObjectSnippet.g.cs | 46 + ....GetSnapshotResourceNamesAsyncSnippet.g.cs | 44 + ...lient.GetSnapshotResourceNamesSnippet.g.cs | 43 + ...leTableAdminClient.GetSnapshotSnippet.g.cs | 43 + ...TableAdminClient.GetTableAsyncSnippet.g.cs | 44 + ...ent.GetTableRequestObjectAsyncSnippet.g.cs | 48 + ...inClient.GetTableRequestObjectSnippet.g.cs | 47 + ...ent.GetTableResourceNamesAsyncSnippet.g.cs | 44 + ...inClient.GetTableResourceNamesSnippet.g.cs | 43 + ...tableTableAdminClient.GetTableSnippet.g.cs | 43 + ...lient.ListAuthorizedViewsAsyncSnippet.g.cs | 79 + ...horizedViewsRequestObjectAsyncSnippet.g.cs | 83 + ...stAuthorizedViewsRequestObjectSnippet.g.cs | 81 + ...horizedViewsResourceNamesAsyncSnippet.g.cs | 79 + ...stAuthorizedViewsResourceNamesSnippet.g.cs | 77 + ...dminClient.ListAuthorizedViewsSnippet.g.cs | 77 + ...leAdminClient.ListBackupsAsyncSnippet.g.cs | 79 + ....ListBackupsRequestObjectAsyncSnippet.g.cs | 84 + ...lient.ListBackupsRequestObjectSnippet.g.cs | 82 + ....ListBackupsResourceNamesAsyncSnippet.g.cs | 79 + ...lient.ListBackupsResourceNamesSnippet.g.cs | 77 + ...leTableAdminClient.ListBackupsSnippet.g.cs | 77 + ...AdminClient.ListSnapshotsAsyncSnippet.g.cs | 79 + ...istSnapshotsRequestObjectAsyncSnippet.g.cs | 82 + ...ent.ListSnapshotsRequestObjectSnippet.g.cs | 80 + ...istSnapshotsResourceNamesAsyncSnippet.g.cs | 79 + ...ent.ListSnapshotsResourceNamesSnippet.g.cs | 77 + ...TableAdminClient.ListSnapshotsSnippet.g.cs | 77 + ...bleAdminClient.ListTablesAsyncSnippet.g.cs | 79 + ...t.ListTablesRequestObjectAsyncSnippet.g.cs | 83 + ...Client.ListTablesRequestObjectSnippet.g.cs | 81 + ...t.ListTablesResourceNamesAsyncSnippet.g.cs | 79 + ...Client.ListTablesResourceNamesSnippet.g.cs | 77 + ...bleTableAdminClient.ListTablesSnippet.g.cs | 77 + ...ient.ModifyColumnFamiliesAsyncSnippet.g.cs | 49 + ...lumnFamiliesRequestObjectAsyncSnippet.g.cs | 52 + ...ifyColumnFamiliesRequestObjectSnippet.g.cs | 51 + ...lumnFamiliesResourceNamesAsyncSnippet.g.cs | 49 + ...ifyColumnFamiliesResourceNamesSnippet.g.cs | 48 + ...minClient.ModifyColumnFamiliesSnippet.g.cs | 48 + ...RestoreTableRequestObjectAsyncSnippet.g.cs | 66 + ...ient.RestoreTableRequestObjectSnippet.g.cs | 65 + ...eAdminClient.SetIamPolicyAsyncSnippet.g.cs | 46 + ...SetIamPolicyRequestObjectAsyncSnippet.g.cs | 52 + ...ient.SetIamPolicyRequestObjectSnippet.g.cs | 51 + ...SetIamPolicyResourceNamesAsyncSnippet.g.cs | 47 + ...ient.SetIamPolicyResourceNamesSnippet.g.cs | 46 + ...eTableAdminClient.SetIamPolicySnippet.g.cs | 45 + ...AdminClient.SnapshotTableAsyncSnippet.g.cs | 64 + ...napshotTableRequestObjectAsyncSnippet.g.cs | 69 + ...ent.SnapshotTableRequestObjectSnippet.g.cs | 68 + ...napshotTableResourceNamesAsyncSnippet.g.cs | 64 + ...ent.SnapshotTableResourceNamesSnippet.g.cs | 63 + ...TableAdminClient.SnapshotTableSnippet.g.cs | 63 + ...Client.TestIamPermissionsAsyncSnippet.g.cs | 47 + ...mPermissionsRequestObjectAsyncSnippet.g.cs | 50 + ...estIamPermissionsRequestObjectSnippet.g.cs | 49 + ...mPermissionsResourceNamesAsyncSnippet.g.cs | 48 + ...estIamPermissionsResourceNamesSnippet.g.cs | 47 + ...AdminClient.TestIamPermissionsSnippet.g.cs | 46 + ...AdminClient.UndeleteTableAsyncSnippet.g.cs | 61 + ...ndeleteTableRequestObjectAsyncSnippet.g.cs | 64 + ...ent.UndeleteTableRequestObjectSnippet.g.cs | 63 + ...ndeleteTableResourceNamesAsyncSnippet.g.cs | 61 + ...ent.UndeleteTableResourceNamesSnippet.g.cs | 60 + ...TableAdminClient.UndeleteTableSnippet.g.cs | 60 + ...ient.UpdateAuthorizedViewAsyncSnippet.g.cs | 63 + ...thorizedViewRequestObjectAsyncSnippet.g.cs | 67 + ...ateAuthorizedViewRequestObjectSnippet.g.cs | 66 + ...minClient.UpdateAuthorizedViewSnippet.g.cs | 62 + ...eAdminClient.UpdateBackupAsyncSnippet.g.cs | 46 + ...UpdateBackupRequestObjectAsyncSnippet.g.cs | 49 + ...ient.UpdateBackupRequestObjectSnippet.g.cs | 48 + ...eTableAdminClient.UpdateBackupSnippet.g.cs | 45 + ...leAdminClient.UpdateTableAsyncSnippet.g.cs | 63 + ....UpdateTableRequestObjectAsyncSnippet.g.cs | 66 + ...lient.UpdateTableRequestObjectSnippet.g.cs | 65 + ...leTableAdminClient.UpdateTableSnippet.g.cs | 62 + ...Bigtable.Admin.V2.GeneratedSnippets.csproj | 15 + ...pet_metadata_google.bigtable.admin.v2.json | 13971 ++++++++++++++++ .../BigtableInstanceAdminClientSnippets.g.cs | 2575 +++ .../BigtableTableAdminClientSnippets.g.cs | 4124 +++++ ...le.Cloud.Bigtable.Admin.V2.Snippets.csproj | 15 + .../BigtableInstanceAdmin.g.cs | 7422 ++++++++ .../BigtableInstanceAdminClient.g.cs | 4500 +++++ .../BigtableInstanceAdminGrpc.g.cs | 1830 ++ .../BigtableInstanceAdminResourceNames.g.cs | 178 + .../BigtableTableAdmin.g.cs | 13368 +++++++++++++++ .../BigtableTableAdminClient.g.cs | 6976 ++++++++ .../BigtableTableAdminGrpc.g.cs | 2639 +++ .../BigtableTableAdminResourceNames.g.cs | 351 + .../Common.g.cs | 371 + .../Google.Cloud.Bigtable.Admin.V2.csproj | 49 + .../Instance.g.cs | 4657 ++++++ .../InstanceResourceNames.g.cs | 1363 ++ .../PackageApiMetadata.g.cs | 67 + .../ServiceCollectionExtensions.g.cs | 103 + .../Google.Cloud.Bigtable.Admin.V2/Table.g.cs | 5622 +++++++ .../TableResourceNames.g.cs | 1434 ++ .../Google.Cloud.Bigtable.Admin.V2/Types.g.cs | 5982 +++++++ .../gapic_metadata.json | 333 + 301 files changed, 93226 insertions(+) create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateAppProfileAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateAppProfileRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateAppProfileRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateAppProfileResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateAppProfileResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateAppProfileSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateClusterAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateClusterRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateClusterRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateClusterResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateClusterResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateClusterSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateInstanceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateInstanceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateInstanceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateInstanceResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateInstanceResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateInstanceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteAppProfileAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteAppProfileRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteAppProfileRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteAppProfileResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteAppProfileResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteAppProfileSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteClusterAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteClusterRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteClusterRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteClusterResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteClusterResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteClusterSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteInstanceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteInstanceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteInstanceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteInstanceResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteInstanceResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteInstanceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetAppProfileAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetAppProfileRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetAppProfileRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetAppProfileResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetAppProfileResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetAppProfileSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetClusterAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetClusterRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetClusterRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetClusterResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetClusterResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetClusterSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetIamPolicyAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetIamPolicyRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetIamPolicyRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetIamPolicyResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetIamPolicyResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetIamPolicySnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetInstanceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetInstanceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetInstanceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetInstanceResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetInstanceResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetInstanceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListAppProfilesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListAppProfilesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListAppProfilesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListAppProfilesResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListAppProfilesResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListAppProfilesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListClustersAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListClustersRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListClustersRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListClustersResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListClustersResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListClustersSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListHotTabletsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListHotTabletsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListHotTabletsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListHotTabletsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListHotTabletsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListHotTabletsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListInstancesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListInstancesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListInstancesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListInstancesResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListInstancesResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListInstancesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.PartialUpdateClusterAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.PartialUpdateClusterRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.PartialUpdateClusterRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.PartialUpdateClusterSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.PartialUpdateInstanceAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.PartialUpdateInstanceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.PartialUpdateInstanceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.PartialUpdateInstanceSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.SetIamPolicyAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.SetIamPolicyRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.SetIamPolicyRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.SetIamPolicyResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.SetIamPolicyResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.SetIamPolicySnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.TestIamPermissionsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.TestIamPermissionsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.TestIamPermissionsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.TestIamPermissionsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.TestIamPermissionsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.TestIamPermissionsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.UpdateAppProfileAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.UpdateAppProfileRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.UpdateAppProfileRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.UpdateAppProfileSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.UpdateClusterRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.UpdateClusterRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.UpdateInstanceRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.UpdateInstanceRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CheckConsistencyAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CheckConsistencyRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CheckConsistencyRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CheckConsistencyResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CheckConsistencyResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CheckConsistencySnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CopyBackupAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CopyBackupRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CopyBackupRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CopyBackupResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CopyBackupResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CopyBackupSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateAuthorizedViewAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateAuthorizedViewRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateAuthorizedViewRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateAuthorizedViewResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateAuthorizedViewResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateAuthorizedViewSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateBackupAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateBackupRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateBackupRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateBackupResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateBackupResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateBackupSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableFromSnapshotAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableFromSnapshotRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableFromSnapshotRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableFromSnapshotResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableFromSnapshotResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableFromSnapshotSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteAuthorizedViewAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteAuthorizedViewRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteAuthorizedViewRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteAuthorizedViewResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteAuthorizedViewResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteAuthorizedViewSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteBackupAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteBackupRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteBackupRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteBackupResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteBackupResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteBackupSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteSnapshotAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteSnapshotRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteSnapshotRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteSnapshotResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteSnapshotResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteSnapshotSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteTableAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteTableRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteTableRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteTableResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteTableResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteTableSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DropRowRangeRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DropRowRangeRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GenerateConsistencyTokenAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GenerateConsistencyTokenRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GenerateConsistencyTokenRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GenerateConsistencyTokenResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GenerateConsistencyTokenResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GenerateConsistencyTokenSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetAuthorizedViewAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetAuthorizedViewRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetAuthorizedViewRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetAuthorizedViewResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetAuthorizedViewResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetAuthorizedViewSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetBackupAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetBackupRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetBackupRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetBackupResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetBackupResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetBackupSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetIamPolicyAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetIamPolicyRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetIamPolicyRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetIamPolicyResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetIamPolicyResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetIamPolicySnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetSnapshotAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetSnapshotRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetSnapshotRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetSnapshotResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetSnapshotResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetSnapshotSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetTableAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetTableRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetTableRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetTableResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetTableResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetTableSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListAuthorizedViewsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListAuthorizedViewsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListAuthorizedViewsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListAuthorizedViewsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListAuthorizedViewsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListAuthorizedViewsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListBackupsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListBackupsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListBackupsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListBackupsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListBackupsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListBackupsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListSnapshotsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListSnapshotsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListSnapshotsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListSnapshotsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListSnapshotsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListSnapshotsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListTablesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListTablesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListTablesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListTablesResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListTablesResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListTablesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ModifyColumnFamiliesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ModifyColumnFamiliesRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ModifyColumnFamiliesRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ModifyColumnFamiliesResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ModifyColumnFamiliesResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ModifyColumnFamiliesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.RestoreTableRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.RestoreTableRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SetIamPolicyAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SetIamPolicyRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SetIamPolicyRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SetIamPolicyResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SetIamPolicyResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SetIamPolicySnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SnapshotTableAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SnapshotTableRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SnapshotTableRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SnapshotTableResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SnapshotTableResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SnapshotTableSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.TestIamPermissionsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.TestIamPermissionsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.TestIamPermissionsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.TestIamPermissionsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.TestIamPermissionsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.TestIamPermissionsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UndeleteTableAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UndeleteTableRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UndeleteTableRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UndeleteTableResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UndeleteTableResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UndeleteTableSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateAuthorizedViewAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateAuthorizedViewRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateAuthorizedViewRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateAuthorizedViewSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateBackupAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateBackupRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateBackupRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateBackupSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateTableAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateTableRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateTableRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateTableSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/snippet_metadata_google.bigtable.admin.v2.json create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.Snippets/BigtableInstanceAdminClientSnippets.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.Snippets/BigtableTableAdminClientSnippets.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.Snippets/Google.Cloud.Bigtable.Admin.V2.Snippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableInstanceAdmin.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableInstanceAdminClient.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableInstanceAdminGrpc.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableInstanceAdminResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableTableAdmin.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableTableAdminClient.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableTableAdminGrpc.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableTableAdminResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/Common.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.csproj create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/Instance.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/InstanceResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/PackageApiMetadata.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/ServiceCollectionExtensions.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/Table.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/TableResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/Types.g.cs create mode 100755 owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/gapic_metadata.json diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateAppProfileAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateAppProfileAsyncSnippet.g.cs new file mode 100755 index 000000000000..7899b8d7e28a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateAppProfileAsyncSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for CreateAppProfileAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task CreateAppProfileAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]"; + string appProfileId = ""; + AppProfile appProfile = new AppProfile(); + // Make the request + AppProfile response = await bigtableInstanceAdminClient.CreateAppProfileAsync(parent, appProfileId, appProfile); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateAppProfileRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateAppProfileRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..a6831c767cac --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateAppProfileRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,50 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_async] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for CreateAppProfileAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task CreateAppProfileRequestObjectAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + CreateAppProfileRequest request = new CreateAppProfileRequest + { + ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + AppProfileId = "", + AppProfile = new AppProfile(), + IgnoreWarnings = false, + }; + // Make the request + AppProfile response = await bigtableInstanceAdminClient.CreateAppProfileAsync(request); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateAppProfileRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateAppProfileRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..0b492fc558c8 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateAppProfileRequestObjectSnippet.g.cs @@ -0,0 +1,49 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for CreateAppProfile + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void CreateAppProfileRequestObject() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + CreateAppProfileRequest request = new CreateAppProfileRequest + { + ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + AppProfileId = "", + AppProfile = new AppProfile(), + IgnoreWarnings = false, + }; + // Make the request + AppProfile response = bigtableInstanceAdminClient.CreateAppProfile(request); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateAppProfileResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateAppProfileResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..653b232aa70d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateAppProfileResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_async_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for CreateAppProfileAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task CreateAppProfileResourceNamesAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"); + string appProfileId = ""; + AppProfile appProfile = new AppProfile(); + // Make the request + AppProfile response = await bigtableInstanceAdminClient.CreateAppProfileAsync(parent, appProfileId, appProfile); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateAppProfileResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateAppProfileResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..66798112d3c3 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateAppProfileResourceNamesSnippet.g.cs @@ -0,0 +1,45 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for CreateAppProfile + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void CreateAppProfileResourceNames() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"); + string appProfileId = ""; + AppProfile appProfile = new AppProfile(); + // Make the request + AppProfile response = bigtableInstanceAdminClient.CreateAppProfile(parent, appProfileId, appProfile); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateAppProfileSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateAppProfileSnippet.g.cs new file mode 100755 index 000000000000..58fa7b0af209 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateAppProfileSnippet.g.cs @@ -0,0 +1,45 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for CreateAppProfile + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void CreateAppProfile() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]"; + string appProfileId = ""; + AppProfile appProfile = new AppProfile(); + // Make the request + AppProfile response = bigtableInstanceAdminClient.CreateAppProfile(parent, appProfileId, appProfile); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateClusterAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateClusterAsyncSnippet.g.cs new file mode 100755 index 000000000000..f0eba73fcddf --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateClusterAsyncSnippet.g.cs @@ -0,0 +1,63 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for CreateClusterAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task CreateClusterAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]"; + string clusterId = ""; + Cluster cluster = new Cluster(); + // Make the request + Operation response = await bigtableInstanceAdminClient.CreateClusterAsync(parent, clusterId, cluster); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Cluster result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableInstanceAdminClient.PollOnceCreateClusterAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Cluster retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateClusterRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateClusterRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..311b62c769c0 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateClusterRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,66 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_async] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for CreateClusterAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task CreateClusterRequestObjectAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + CreateClusterRequest request = new CreateClusterRequest + { + ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + ClusterId = "", + Cluster = new Cluster(), + }; + // Make the request + Operation response = await bigtableInstanceAdminClient.CreateClusterAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Cluster result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableInstanceAdminClient.PollOnceCreateClusterAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Cluster retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateClusterRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateClusterRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..820ebc58d767 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateClusterRequestObjectSnippet.g.cs @@ -0,0 +1,65 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_sync] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for CreateCluster + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void CreateClusterRequestObject() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + CreateClusterRequest request = new CreateClusterRequest + { + ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + ClusterId = "", + Cluster = new Cluster(), + }; + // Make the request + Operation response = bigtableInstanceAdminClient.CreateCluster(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Cluster result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableInstanceAdminClient.PollOnceCreateCluster(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Cluster retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateClusterResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateClusterResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..518420ae2bc5 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateClusterResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,63 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_async_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for CreateClusterAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task CreateClusterResourceNamesAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"); + string clusterId = ""; + Cluster cluster = new Cluster(); + // Make the request + Operation response = await bigtableInstanceAdminClient.CreateClusterAsync(parent, clusterId, cluster); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Cluster result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableInstanceAdminClient.PollOnceCreateClusterAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Cluster retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateClusterResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateClusterResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..32062f8eef8d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateClusterResourceNamesSnippet.g.cs @@ -0,0 +1,62 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_sync_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for CreateCluster + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void CreateClusterResourceNames() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"); + string clusterId = ""; + Cluster cluster = new Cluster(); + // Make the request + Operation response = bigtableInstanceAdminClient.CreateCluster(parent, clusterId, cluster); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Cluster result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableInstanceAdminClient.PollOnceCreateCluster(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Cluster retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateClusterSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateClusterSnippet.g.cs new file mode 100755 index 000000000000..029ef8d35d09 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateClusterSnippet.g.cs @@ -0,0 +1,62 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for CreateCluster + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void CreateCluster() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]"; + string clusterId = ""; + Cluster cluster = new Cluster(); + // Make the request + Operation response = bigtableInstanceAdminClient.CreateCluster(parent, clusterId, cluster); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Cluster result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableInstanceAdminClient.PollOnceCreateCluster(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Cluster retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateInstanceAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateInstanceAsyncSnippet.g.cs new file mode 100755 index 000000000000..96cb07ef96a8 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateInstanceAsyncSnippet.g.cs @@ -0,0 +1,65 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using System.Collections.Generic; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for CreateInstanceAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task CreateInstanceAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + string instanceId = ""; + Instance instance = new Instance(); + IDictionary clusters = new Dictionary { { "", new Cluster() }, }; + // Make the request + Operation response = await bigtableInstanceAdminClient.CreateInstanceAsync(parent, instanceId, instance, clusters); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Instance result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableInstanceAdminClient.PollOnceCreateInstanceAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Instance retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateInstanceRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateInstanceRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..979d74f5b16d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateInstanceRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,68 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_async] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for CreateInstanceAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task CreateInstanceRequestObjectAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + CreateInstanceRequest request = new CreateInstanceRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + InstanceId = "", + Instance = new Instance(), + Clusters = { { "", new Cluster() }, }, + }; + // Make the request + Operation response = await bigtableInstanceAdminClient.CreateInstanceAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Instance result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableInstanceAdminClient.PollOnceCreateInstanceAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Instance retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateInstanceRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateInstanceRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..cbc8d94814bd --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateInstanceRequestObjectSnippet.g.cs @@ -0,0 +1,67 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_sync] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for CreateInstance + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void CreateInstanceRequestObject() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + CreateInstanceRequest request = new CreateInstanceRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + InstanceId = "", + Instance = new Instance(), + Clusters = { { "", new Cluster() }, }, + }; + // Make the request + Operation response = bigtableInstanceAdminClient.CreateInstance(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Instance result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableInstanceAdminClient.PollOnceCreateInstance(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Instance retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateInstanceResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateInstanceResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..9e56e178c189 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateInstanceResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,66 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_async_flattened_resourceNames] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using System.Collections.Generic; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for CreateInstanceAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task CreateInstanceResourceNamesAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + string instanceId = ""; + Instance instance = new Instance(); + IDictionary clusters = new Dictionary { { "", new Cluster() }, }; + // Make the request + Operation response = await bigtableInstanceAdminClient.CreateInstanceAsync(parent, instanceId, instance, clusters); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Instance result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableInstanceAdminClient.PollOnceCreateInstanceAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Instance retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateInstanceResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateInstanceResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..2ae721f06eeb --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateInstanceResourceNamesSnippet.g.cs @@ -0,0 +1,65 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_sync_flattened_resourceNames] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using System.Collections.Generic; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for CreateInstance + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void CreateInstanceResourceNames() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + string instanceId = ""; + Instance instance = new Instance(); + IDictionary clusters = new Dictionary { { "", new Cluster() }, }; + // Make the request + Operation response = bigtableInstanceAdminClient.CreateInstance(parent, instanceId, instance, clusters); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Instance result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableInstanceAdminClient.PollOnceCreateInstance(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Instance retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateInstanceSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateInstanceSnippet.g.cs new file mode 100755 index 000000000000..af6788a0ec53 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.CreateInstanceSnippet.g.cs @@ -0,0 +1,64 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using System.Collections.Generic; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for CreateInstance + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void CreateInstance() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + string instanceId = ""; + Instance instance = new Instance(); + IDictionary clusters = new Dictionary { { "", new Cluster() }, }; + // Make the request + Operation response = bigtableInstanceAdminClient.CreateInstance(parent, instanceId, instance, clusters); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Instance result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableInstanceAdminClient.PollOnceCreateInstance(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Instance retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteAppProfileAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteAppProfileAsyncSnippet.g.cs new file mode 100755 index 000000000000..574e29324470 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteAppProfileAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for DeleteAppProfileAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task DeleteAppProfileAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/appProfiles/[APP_PROFILE]"; + // Make the request + await bigtableInstanceAdminClient.DeleteAppProfileAsync(name); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteAppProfileRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteAppProfileRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..63eb429360ed --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteAppProfileRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,48 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_async] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for DeleteAppProfileAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task DeleteAppProfileRequestObjectAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + DeleteAppProfileRequest request = new DeleteAppProfileRequest + { + AppProfileName = AppProfileName.FromProjectInstanceAppProfile("[PROJECT]", "[INSTANCE]", "[APP_PROFILE]"), + IgnoreWarnings = false, + }; + // Make the request + await bigtableInstanceAdminClient.DeleteAppProfileAsync(request); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteAppProfileRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteAppProfileRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..41cec2828bb6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteAppProfileRequestObjectSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_sync] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for DeleteAppProfile + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void DeleteAppProfileRequestObject() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + DeleteAppProfileRequest request = new DeleteAppProfileRequest + { + AppProfileName = AppProfileName.FromProjectInstanceAppProfile("[PROJECT]", "[INSTANCE]", "[APP_PROFILE]"), + IgnoreWarnings = false, + }; + // Make the request + bigtableInstanceAdminClient.DeleteAppProfile(request); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteAppProfileResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteAppProfileResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..e7640d911c01 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteAppProfileResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_async_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for DeleteAppProfileAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task DeleteAppProfileResourceNamesAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + AppProfileName name = AppProfileName.FromProjectInstanceAppProfile("[PROJECT]", "[INSTANCE]", "[APP_PROFILE]"); + // Make the request + await bigtableInstanceAdminClient.DeleteAppProfileAsync(name); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteAppProfileResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteAppProfileResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..c4b805254513 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteAppProfileResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_sync_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for DeleteAppProfile + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void DeleteAppProfileResourceNames() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + AppProfileName name = AppProfileName.FromProjectInstanceAppProfile("[PROJECT]", "[INSTANCE]", "[APP_PROFILE]"); + // Make the request + bigtableInstanceAdminClient.DeleteAppProfile(name); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteAppProfileSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteAppProfileSnippet.g.cs new file mode 100755 index 000000000000..1792a18f1ac1 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteAppProfileSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for DeleteAppProfile + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void DeleteAppProfile() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/appProfiles/[APP_PROFILE]"; + // Make the request + bigtableInstanceAdminClient.DeleteAppProfile(name); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteClusterAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteClusterAsyncSnippet.g.cs new file mode 100755 index 000000000000..3c26b429fae3 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteClusterAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for DeleteClusterAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task DeleteClusterAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]"; + // Make the request + await bigtableInstanceAdminClient.DeleteClusterAsync(name); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteClusterRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteClusterRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..57ba53706225 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteClusterRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_async] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for DeleteClusterAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task DeleteClusterRequestObjectAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + DeleteClusterRequest request = new DeleteClusterRequest + { + ClusterName = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"), + }; + // Make the request + await bigtableInstanceAdminClient.DeleteClusterAsync(request); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteClusterRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteClusterRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..a7de4ec01620 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteClusterRequestObjectSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_sync] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for DeleteCluster + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void DeleteClusterRequestObject() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + DeleteClusterRequest request = new DeleteClusterRequest + { + ClusterName = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"), + }; + // Make the request + bigtableInstanceAdminClient.DeleteCluster(request); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteClusterResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteClusterResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..527db13102b8 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteClusterResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_async_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for DeleteClusterAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task DeleteClusterResourceNamesAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + ClusterName name = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"); + // Make the request + await bigtableInstanceAdminClient.DeleteClusterAsync(name); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteClusterResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteClusterResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..9a8d315b4433 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteClusterResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_sync_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for DeleteCluster + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void DeleteClusterResourceNames() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + ClusterName name = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"); + // Make the request + bigtableInstanceAdminClient.DeleteCluster(name); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteClusterSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteClusterSnippet.g.cs new file mode 100755 index 000000000000..a227369881fb --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteClusterSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for DeleteCluster + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void DeleteCluster() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]"; + // Make the request + bigtableInstanceAdminClient.DeleteCluster(name); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteInstanceAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteInstanceAsyncSnippet.g.cs new file mode 100755 index 000000000000..015af097b4d7 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteInstanceAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for DeleteInstanceAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task DeleteInstanceAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]"; + // Make the request + await bigtableInstanceAdminClient.DeleteInstanceAsync(name); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteInstanceRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteInstanceRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..8278bed15337 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteInstanceRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_async] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for DeleteInstanceAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task DeleteInstanceRequestObjectAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + DeleteInstanceRequest request = new DeleteInstanceRequest + { + InstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + }; + // Make the request + await bigtableInstanceAdminClient.DeleteInstanceAsync(request); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteInstanceRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteInstanceRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..7b9e818d0f92 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteInstanceRequestObjectSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_sync] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for DeleteInstance + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void DeleteInstanceRequestObject() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + DeleteInstanceRequest request = new DeleteInstanceRequest + { + InstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + }; + // Make the request + bigtableInstanceAdminClient.DeleteInstance(request); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteInstanceResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteInstanceResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..0e3b5c7048f6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteInstanceResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_async_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for DeleteInstanceAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task DeleteInstanceResourceNamesAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + InstanceName name = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"); + // Make the request + await bigtableInstanceAdminClient.DeleteInstanceAsync(name); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteInstanceResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteInstanceResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..d34885b2f667 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteInstanceResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_sync_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for DeleteInstance + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void DeleteInstanceResourceNames() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + InstanceName name = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"); + // Make the request + bigtableInstanceAdminClient.DeleteInstance(name); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteInstanceSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteInstanceSnippet.g.cs new file mode 100755 index 000000000000..149d320bf6e5 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.DeleteInstanceSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for DeleteInstance + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void DeleteInstance() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]"; + // Make the request + bigtableInstanceAdminClient.DeleteInstance(name); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetAppProfileAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetAppProfileAsyncSnippet.g.cs new file mode 100755 index 000000000000..dcea48258f48 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetAppProfileAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for GetAppProfileAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetAppProfileAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/appProfiles/[APP_PROFILE]"; + // Make the request + AppProfile response = await bigtableInstanceAdminClient.GetAppProfileAsync(name); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetAppProfileRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetAppProfileRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..0e7536ab774b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetAppProfileRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_async] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for GetAppProfileAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetAppProfileRequestObjectAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + GetAppProfileRequest request = new GetAppProfileRequest + { + AppProfileName = AppProfileName.FromProjectInstanceAppProfile("[PROJECT]", "[INSTANCE]", "[APP_PROFILE]"), + }; + // Make the request + AppProfile response = await bigtableInstanceAdminClient.GetAppProfileAsync(request); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetAppProfileRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetAppProfileRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..d2c96449e912 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetAppProfileRequestObjectSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_sync] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for GetAppProfile + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetAppProfileRequestObject() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + GetAppProfileRequest request = new GetAppProfileRequest + { + AppProfileName = AppProfileName.FromProjectInstanceAppProfile("[PROJECT]", "[INSTANCE]", "[APP_PROFILE]"), + }; + // Make the request + AppProfile response = bigtableInstanceAdminClient.GetAppProfile(request); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetAppProfileResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetAppProfileResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..2292bf8251d1 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetAppProfileResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_async_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for GetAppProfileAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetAppProfileResourceNamesAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + AppProfileName name = AppProfileName.FromProjectInstanceAppProfile("[PROJECT]", "[INSTANCE]", "[APP_PROFILE]"); + // Make the request + AppProfile response = await bigtableInstanceAdminClient.GetAppProfileAsync(name); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetAppProfileResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetAppProfileResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..d94b8bd32889 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetAppProfileResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_sync_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for GetAppProfile + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetAppProfileResourceNames() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + AppProfileName name = AppProfileName.FromProjectInstanceAppProfile("[PROJECT]", "[INSTANCE]", "[APP_PROFILE]"); + // Make the request + AppProfile response = bigtableInstanceAdminClient.GetAppProfile(name); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetAppProfileSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetAppProfileSnippet.g.cs new file mode 100755 index 000000000000..474aac8012e0 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetAppProfileSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for GetAppProfile + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetAppProfile() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/appProfiles/[APP_PROFILE]"; + // Make the request + AppProfile response = bigtableInstanceAdminClient.GetAppProfile(name); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetClusterAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetClusterAsyncSnippet.g.cs new file mode 100755 index 000000000000..69af5348cecd --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetClusterAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for GetClusterAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetClusterAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]"; + // Make the request + Cluster response = await bigtableInstanceAdminClient.GetClusterAsync(name); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetClusterRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetClusterRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..2cb4e714aac3 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetClusterRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_async] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for GetClusterAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetClusterRequestObjectAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + GetClusterRequest request = new GetClusterRequest + { + ClusterName = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"), + }; + // Make the request + Cluster response = await bigtableInstanceAdminClient.GetClusterAsync(request); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetClusterRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetClusterRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..9ed473dda4dd --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetClusterRequestObjectSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_sync] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for GetCluster + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetClusterRequestObject() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + GetClusterRequest request = new GetClusterRequest + { + ClusterName = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"), + }; + // Make the request + Cluster response = bigtableInstanceAdminClient.GetCluster(request); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetClusterResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetClusterResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..3843094768ae --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetClusterResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_async_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for GetClusterAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetClusterResourceNamesAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + ClusterName name = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"); + // Make the request + Cluster response = await bigtableInstanceAdminClient.GetClusterAsync(name); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetClusterResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetClusterResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..69c26da4ad87 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetClusterResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_sync_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for GetCluster + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetClusterResourceNames() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + ClusterName name = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"); + // Make the request + Cluster response = bigtableInstanceAdminClient.GetCluster(name); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetClusterSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetClusterSnippet.g.cs new file mode 100755 index 000000000000..bd925e0d912d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetClusterSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for GetCluster + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetCluster() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]"; + // Make the request + Cluster response = bigtableInstanceAdminClient.GetCluster(name); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetIamPolicyAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetIamPolicyAsyncSnippet.g.cs new file mode 100755 index 000000000000..1ca6209871f0 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetIamPolicyAsyncSnippet.g.cs @@ -0,0 +1,45 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for GetIamPolicyAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetIamPolicyAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + // Make the request + Policy response = await bigtableInstanceAdminClient.GetIamPolicyAsync(resource); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetIamPolicyRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetIamPolicyRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..2f3f0dcdfe7b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetIamPolicyRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,50 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_async] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for GetIamPolicyAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetIamPolicyRequestObjectAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + GetIamPolicyRequest request = new GetIamPolicyRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Options = new GetPolicyOptions(), + }; + // Make the request + Policy response = await bigtableInstanceAdminClient.GetIamPolicyAsync(request); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetIamPolicyRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetIamPolicyRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..0634651aac73 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetIamPolicyRequestObjectSnippet.g.cs @@ -0,0 +1,49 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_sync] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for GetIamPolicy + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetIamPolicyRequestObject() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + GetIamPolicyRequest request = new GetIamPolicyRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Options = new GetPolicyOptions(), + }; + // Make the request + Policy response = bigtableInstanceAdminClient.GetIamPolicy(request); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetIamPolicyResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetIamPolicyResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..449acdd313fb --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetIamPolicyResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for GetIamPolicyAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetIamPolicyResourceNamesAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + // Make the request + Policy response = await bigtableInstanceAdminClient.GetIamPolicyAsync(resource); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetIamPolicyResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetIamPolicyResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..b1274e104d45 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetIamPolicyResourceNamesSnippet.g.cs @@ -0,0 +1,45 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for GetIamPolicy + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetIamPolicyResourceNames() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + // Make the request + Policy response = bigtableInstanceAdminClient.GetIamPolicy(resource); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetIamPolicySnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetIamPolicySnippet.g.cs new file mode 100755 index 000000000000..1880da12648e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetIamPolicySnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for GetIamPolicy + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetIamPolicy() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + // Make the request + Policy response = bigtableInstanceAdminClient.GetIamPolicy(resource); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetInstanceAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetInstanceAsyncSnippet.g.cs new file mode 100755 index 000000000000..c31a2408fead --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetInstanceAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for GetInstanceAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetInstanceAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]"; + // Make the request + Instance response = await bigtableInstanceAdminClient.GetInstanceAsync(name); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetInstanceRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetInstanceRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..9e1d5a56e621 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetInstanceRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_async] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for GetInstanceAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetInstanceRequestObjectAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + GetInstanceRequest request = new GetInstanceRequest + { + InstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + }; + // Make the request + Instance response = await bigtableInstanceAdminClient.GetInstanceAsync(request); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetInstanceRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetInstanceRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..b17dc40e1cfc --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetInstanceRequestObjectSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_sync] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for GetInstance + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetInstanceRequestObject() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + GetInstanceRequest request = new GetInstanceRequest + { + InstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + }; + // Make the request + Instance response = bigtableInstanceAdminClient.GetInstance(request); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetInstanceResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetInstanceResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..02fb23a8320c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetInstanceResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_async_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for GetInstanceAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetInstanceResourceNamesAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + InstanceName name = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"); + // Make the request + Instance response = await bigtableInstanceAdminClient.GetInstanceAsync(name); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetInstanceResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetInstanceResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..31309d9d642d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetInstanceResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_sync_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for GetInstance + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetInstanceResourceNames() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + InstanceName name = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"); + // Make the request + Instance response = bigtableInstanceAdminClient.GetInstance(name); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetInstanceSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetInstanceSnippet.g.cs new file mode 100755 index 000000000000..7499e90ca202 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.GetInstanceSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for GetInstance + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetInstance() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]"; + // Make the request + Instance response = bigtableInstanceAdminClient.GetInstance(name); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListAppProfilesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListAppProfilesAsyncSnippet.g.cs new file mode 100755 index 000000000000..ea2b6f0bd7a2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListAppProfilesAsyncSnippet.g.cs @@ -0,0 +1,79 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_async_flattened] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for ListAppProfilesAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ListAppProfilesAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]"; + // Make the request + PagedAsyncEnumerable response = bigtableInstanceAdminClient.ListAppProfilesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((AppProfile item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListAppProfilesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AppProfile item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (AppProfile item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListAppProfilesRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListAppProfilesRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..a6a44061783c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListAppProfilesRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,82 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_async] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for ListAppProfilesAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ListAppProfilesRequestObjectAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + ListAppProfilesRequest request = new ListAppProfilesRequest + { + ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + }; + // Make the request + PagedAsyncEnumerable response = bigtableInstanceAdminClient.ListAppProfilesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((AppProfile item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListAppProfilesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AppProfile item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (AppProfile item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListAppProfilesRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListAppProfilesRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..4dbc826e6b1c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListAppProfilesRequestObjectSnippet.g.cs @@ -0,0 +1,80 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_sync] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using System; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for ListAppProfiles + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ListAppProfilesRequestObject() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + ListAppProfilesRequest request = new ListAppProfilesRequest + { + ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + }; + // Make the request + PagedEnumerable response = bigtableInstanceAdminClient.ListAppProfiles(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (AppProfile item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListAppProfilesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AppProfile item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (AppProfile item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListAppProfilesResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListAppProfilesResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..48f58c517980 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListAppProfilesResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,79 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for ListAppProfilesAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ListAppProfilesResourceNamesAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"); + // Make the request + PagedAsyncEnumerable response = bigtableInstanceAdminClient.ListAppProfilesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((AppProfile item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListAppProfilesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AppProfile item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (AppProfile item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListAppProfilesResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListAppProfilesResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..ec64c911c119 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListAppProfilesResourceNamesSnippet.g.cs @@ -0,0 +1,77 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using System; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for ListAppProfiles + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ListAppProfilesResourceNames() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"); + // Make the request + PagedEnumerable response = bigtableInstanceAdminClient.ListAppProfiles(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (AppProfile item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListAppProfilesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AppProfile item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (AppProfile item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListAppProfilesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListAppProfilesSnippet.g.cs new file mode 100755 index 000000000000..bd515a9144f2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListAppProfilesSnippet.g.cs @@ -0,0 +1,77 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using System; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for ListAppProfiles + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ListAppProfiles() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]"; + // Make the request + PagedEnumerable response = bigtableInstanceAdminClient.ListAppProfiles(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (AppProfile item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListAppProfilesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AppProfile item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (AppProfile item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListClustersAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListClustersAsyncSnippet.g.cs new file mode 100755 index 000000000000..cef3acc81395 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListClustersAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for ListClustersAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ListClustersAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]"; + // Make the request + ListClustersResponse response = await bigtableInstanceAdminClient.ListClustersAsync(parent); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListClustersRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListClustersRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..662e6f9a64b1 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListClustersRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,48 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_async] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for ListClustersAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ListClustersRequestObjectAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + ListClustersRequest request = new ListClustersRequest + { + ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + PageToken = "", + }; + // Make the request + ListClustersResponse response = await bigtableInstanceAdminClient.ListClustersAsync(request); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListClustersRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListClustersRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..0ef47861fda0 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListClustersRequestObjectSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_sync] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for ListClusters + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ListClustersRequestObject() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + ListClustersRequest request = new ListClustersRequest + { + ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + PageToken = "", + }; + // Make the request + ListClustersResponse response = bigtableInstanceAdminClient.ListClusters(request); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListClustersResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListClustersResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..0cc366760235 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListClustersResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_async_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for ListClustersAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ListClustersResourceNamesAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"); + // Make the request + ListClustersResponse response = await bigtableInstanceAdminClient.ListClustersAsync(parent); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListClustersResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListClustersResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..e4488cd35be6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListClustersResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_sync_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for ListClusters + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ListClustersResourceNames() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"); + // Make the request + ListClustersResponse response = bigtableInstanceAdminClient.ListClusters(parent); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListClustersSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListClustersSnippet.g.cs new file mode 100755 index 000000000000..3c790e11dc43 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListClustersSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for ListClusters + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ListClusters() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]"; + // Make the request + ListClustersResponse response = bigtableInstanceAdminClient.ListClusters(parent); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListHotTabletsAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListHotTabletsAsyncSnippet.g.cs new file mode 100755 index 000000000000..6ae8c9145f73 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListHotTabletsAsyncSnippet.g.cs @@ -0,0 +1,79 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_async_flattened] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for ListHotTabletsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ListHotTabletsAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]"; + // Make the request + PagedAsyncEnumerable response = bigtableInstanceAdminClient.ListHotTabletsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((HotTablet item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListHotTabletsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (HotTablet item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (HotTablet item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListHotTabletsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListHotTabletsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..7a6e664d516b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListHotTabletsRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,85 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_async] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using Google.Protobuf.WellKnownTypes; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for ListHotTabletsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ListHotTabletsRequestObjectAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + ListHotTabletsRequest request = new ListHotTabletsRequest + { + ParentAsClusterName = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"), + StartTime = new Timestamp(), + EndTime = new Timestamp(), + }; + // Make the request + PagedAsyncEnumerable response = bigtableInstanceAdminClient.ListHotTabletsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((HotTablet item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListHotTabletsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (HotTablet item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (HotTablet item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListHotTabletsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListHotTabletsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..fa7a2d3a7ce7 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListHotTabletsRequestObjectSnippet.g.cs @@ -0,0 +1,83 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_sync] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using Google.Protobuf.WellKnownTypes; + using System; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for ListHotTablets + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ListHotTabletsRequestObject() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + ListHotTabletsRequest request = new ListHotTabletsRequest + { + ParentAsClusterName = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"), + StartTime = new Timestamp(), + EndTime = new Timestamp(), + }; + // Make the request + PagedEnumerable response = bigtableInstanceAdminClient.ListHotTablets(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (HotTablet item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListHotTabletsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (HotTablet item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (HotTablet item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListHotTabletsResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListHotTabletsResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..48fc6498ba6d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListHotTabletsResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,79 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for ListHotTabletsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ListHotTabletsResourceNamesAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + ClusterName parent = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"); + // Make the request + PagedAsyncEnumerable response = bigtableInstanceAdminClient.ListHotTabletsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((HotTablet item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListHotTabletsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (HotTablet item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (HotTablet item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListHotTabletsResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListHotTabletsResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..d42482205180 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListHotTabletsResourceNamesSnippet.g.cs @@ -0,0 +1,77 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using System; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for ListHotTablets + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ListHotTabletsResourceNames() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + ClusterName parent = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"); + // Make the request + PagedEnumerable response = bigtableInstanceAdminClient.ListHotTablets(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (HotTablet item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListHotTabletsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (HotTablet item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (HotTablet item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListHotTabletsSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListHotTabletsSnippet.g.cs new file mode 100755 index 000000000000..6a7fb1ff7fd9 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListHotTabletsSnippet.g.cs @@ -0,0 +1,77 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using System; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for ListHotTablets + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ListHotTablets() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]"; + // Make the request + PagedEnumerable response = bigtableInstanceAdminClient.ListHotTablets(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (HotTablet item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListHotTabletsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (HotTablet item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (HotTablet item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListInstancesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListInstancesAsyncSnippet.g.cs new file mode 100755 index 000000000000..3e410b0d0bc4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListInstancesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for ListInstancesAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ListInstancesAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + // Make the request + ListInstancesResponse response = await bigtableInstanceAdminClient.ListInstancesAsync(parent); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListInstancesRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListInstancesRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..487961cabff2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListInstancesRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,49 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_async] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for ListInstancesAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ListInstancesRequestObjectAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + ListInstancesRequest request = new ListInstancesRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + PageToken = "", + }; + // Make the request + ListInstancesResponse response = await bigtableInstanceAdminClient.ListInstancesAsync(request); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListInstancesRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListInstancesRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..c9dc36d9e886 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListInstancesRequestObjectSnippet.g.cs @@ -0,0 +1,48 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_sync] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for ListInstances + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ListInstancesRequestObject() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + ListInstancesRequest request = new ListInstancesRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + PageToken = "", + }; + // Make the request + ListInstancesResponse response = bigtableInstanceAdminClient.ListInstances(request); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListInstancesResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListInstancesResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..6a2051c42a4d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListInstancesResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,45 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_async_flattened_resourceNames] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for ListInstancesAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ListInstancesResourceNamesAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + // Make the request + ListInstancesResponse response = await bigtableInstanceAdminClient.ListInstancesAsync(parent); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListInstancesResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListInstancesResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..06ba32eaf95f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListInstancesResourceNamesSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_sync_flattened_resourceNames] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for ListInstances + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ListInstancesResourceNames() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + // Make the request + ListInstancesResponse response = bigtableInstanceAdminClient.ListInstances(parent); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListInstancesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListInstancesSnippet.g.cs new file mode 100755 index 000000000000..9f3f1a26654f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.ListInstancesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for ListInstances + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ListInstances() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + // Make the request + ListInstancesResponse response = bigtableInstanceAdminClient.ListInstances(parent); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.PartialUpdateClusterAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.PartialUpdateClusterAsyncSnippet.g.cs new file mode 100755 index 000000000000..1fa452e67255 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.PartialUpdateClusterAsyncSnippet.g.cs @@ -0,0 +1,63 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for PartialUpdateClusterAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task PartialUpdateClusterAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + Cluster cluster = new Cluster(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = await bigtableInstanceAdminClient.PartialUpdateClusterAsync(cluster, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Cluster result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableInstanceAdminClient.PollOncePartialUpdateClusterAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Cluster retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.PartialUpdateClusterRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.PartialUpdateClusterRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..42b259d7471c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.PartialUpdateClusterRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,66 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_async] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for PartialUpdateClusterAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task PartialUpdateClusterRequestObjectAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + PartialUpdateClusterRequest request = new PartialUpdateClusterRequest + { + Cluster = new Cluster(), + UpdateMask = new FieldMask(), + }; + // Make the request + Operation response = await bigtableInstanceAdminClient.PartialUpdateClusterAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Cluster result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableInstanceAdminClient.PollOncePartialUpdateClusterAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Cluster retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.PartialUpdateClusterRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.PartialUpdateClusterRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..febc1ed2de67 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.PartialUpdateClusterRequestObjectSnippet.g.cs @@ -0,0 +1,65 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_sync] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for PartialUpdateCluster + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void PartialUpdateClusterRequestObject() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + PartialUpdateClusterRequest request = new PartialUpdateClusterRequest + { + Cluster = new Cluster(), + UpdateMask = new FieldMask(), + }; + // Make the request + Operation response = bigtableInstanceAdminClient.PartialUpdateCluster(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Cluster result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableInstanceAdminClient.PollOncePartialUpdateCluster(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Cluster retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.PartialUpdateClusterSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.PartialUpdateClusterSnippet.g.cs new file mode 100755 index 000000000000..2a52501f3277 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.PartialUpdateClusterSnippet.g.cs @@ -0,0 +1,62 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for PartialUpdateCluster + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void PartialUpdateCluster() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + Cluster cluster = new Cluster(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = bigtableInstanceAdminClient.PartialUpdateCluster(cluster, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Cluster result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableInstanceAdminClient.PollOncePartialUpdateCluster(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Cluster retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.PartialUpdateInstanceAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.PartialUpdateInstanceAsyncSnippet.g.cs new file mode 100755 index 000000000000..c15d3a953687 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.PartialUpdateInstanceAsyncSnippet.g.cs @@ -0,0 +1,63 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for PartialUpdateInstanceAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task PartialUpdateInstanceAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + Instance instance = new Instance(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = await bigtableInstanceAdminClient.PartialUpdateInstanceAsync(instance, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Instance result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableInstanceAdminClient.PollOncePartialUpdateInstanceAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Instance retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.PartialUpdateInstanceRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.PartialUpdateInstanceRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..b2ee5b00266b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.PartialUpdateInstanceRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,66 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_async] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for PartialUpdateInstanceAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task PartialUpdateInstanceRequestObjectAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + PartialUpdateInstanceRequest request = new PartialUpdateInstanceRequest + { + Instance = new Instance(), + UpdateMask = new FieldMask(), + }; + // Make the request + Operation response = await bigtableInstanceAdminClient.PartialUpdateInstanceAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Instance result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableInstanceAdminClient.PollOncePartialUpdateInstanceAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Instance retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.PartialUpdateInstanceRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.PartialUpdateInstanceRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..ed1898143dd8 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.PartialUpdateInstanceRequestObjectSnippet.g.cs @@ -0,0 +1,65 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_sync] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for PartialUpdateInstance + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void PartialUpdateInstanceRequestObject() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + PartialUpdateInstanceRequest request = new PartialUpdateInstanceRequest + { + Instance = new Instance(), + UpdateMask = new FieldMask(), + }; + // Make the request + Operation response = bigtableInstanceAdminClient.PartialUpdateInstance(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Instance result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableInstanceAdminClient.PollOncePartialUpdateInstance(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Instance retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.PartialUpdateInstanceSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.PartialUpdateInstanceSnippet.g.cs new file mode 100755 index 000000000000..624884772033 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.PartialUpdateInstanceSnippet.g.cs @@ -0,0 +1,62 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for PartialUpdateInstance + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void PartialUpdateInstance() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + Instance instance = new Instance(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = bigtableInstanceAdminClient.PartialUpdateInstance(instance, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Instance result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableInstanceAdminClient.PollOncePartialUpdateInstance(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Instance retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.SetIamPolicyAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.SetIamPolicyAsyncSnippet.g.cs new file mode 100755 index 000000000000..37b68de62060 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.SetIamPolicyAsyncSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for SetIamPolicyAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task SetIamPolicyAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + Policy policy = new Policy(); + // Make the request + Policy response = await bigtableInstanceAdminClient.SetIamPolicyAsync(resource, policy); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.SetIamPolicyRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.SetIamPolicyRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..7ad7da89e7ad --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.SetIamPolicyRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,52 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_async] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for SetIamPolicyAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task SetIamPolicyRequestObjectAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + SetIamPolicyRequest request = new SetIamPolicyRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Policy = new Policy(), + UpdateMask = new FieldMask(), + }; + // Make the request + Policy response = await bigtableInstanceAdminClient.SetIamPolicyAsync(request); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.SetIamPolicyRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.SetIamPolicyRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..5afe7b22a96b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.SetIamPolicyRequestObjectSnippet.g.cs @@ -0,0 +1,51 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_sync] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for SetIamPolicy + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void SetIamPolicyRequestObject() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + SetIamPolicyRequest request = new SetIamPolicyRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Policy = new Policy(), + UpdateMask = new FieldMask(), + }; + // Make the request + Policy response = bigtableInstanceAdminClient.SetIamPolicy(request); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.SetIamPolicyResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.SetIamPolicyResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..ef1641b9e88c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.SetIamPolicyResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for SetIamPolicyAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task SetIamPolicyResourceNamesAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + Policy policy = new Policy(); + // Make the request + Policy response = await bigtableInstanceAdminClient.SetIamPolicyAsync(resource, policy); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.SetIamPolicyResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.SetIamPolicyResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..5165b297cafa --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.SetIamPolicyResourceNamesSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for SetIamPolicy + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void SetIamPolicyResourceNames() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + Policy policy = new Policy(); + // Make the request + Policy response = bigtableInstanceAdminClient.SetIamPolicy(resource, policy); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.SetIamPolicySnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.SetIamPolicySnippet.g.cs new file mode 100755 index 000000000000..df97052a5c8a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.SetIamPolicySnippet.g.cs @@ -0,0 +1,45 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for SetIamPolicy + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void SetIamPolicy() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + Policy policy = new Policy(); + // Make the request + Policy response = bigtableInstanceAdminClient.SetIamPolicy(resource, policy); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.TestIamPermissionsAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.TestIamPermissionsAsyncSnippet.g.cs new file mode 100755 index 000000000000..7e49b12ca301 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.TestIamPermissionsAsyncSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + using System.Collections.Generic; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for TestIamPermissionsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task TestIamPermissionsAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + IEnumerable permissions = new string[] { "", }; + // Make the request + TestIamPermissionsResponse response = await bigtableInstanceAdminClient.TestIamPermissionsAsync(resource, permissions); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.TestIamPermissionsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.TestIamPermissionsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..7d6ec9cf70e1 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.TestIamPermissionsRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,50 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_async] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for TestIamPermissionsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task TestIamPermissionsRequestObjectAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + TestIamPermissionsRequest request = new TestIamPermissionsRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Permissions = { "", }, + }; + // Make the request + TestIamPermissionsResponse response = await bigtableInstanceAdminClient.TestIamPermissionsAsync(request); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.TestIamPermissionsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.TestIamPermissionsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..0fc8cfb789fd --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.TestIamPermissionsRequestObjectSnippet.g.cs @@ -0,0 +1,49 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_sync] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for TestIamPermissions + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void TestIamPermissionsRequestObject() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + TestIamPermissionsRequest request = new TestIamPermissionsRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Permissions = { "", }, + }; + // Make the request + TestIamPermissionsResponse response = bigtableInstanceAdminClient.TestIamPermissions(request); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.TestIamPermissionsResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.TestIamPermissionsResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..5e2c3c5dbe25 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.TestIamPermissionsResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,48 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + using System.Collections.Generic; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for TestIamPermissionsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task TestIamPermissionsResourceNamesAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + IEnumerable permissions = new string[] { "", }; + // Make the request + TestIamPermissionsResponse response = await bigtableInstanceAdminClient.TestIamPermissionsAsync(resource, permissions); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.TestIamPermissionsResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.TestIamPermissionsResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..3f926b937b73 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.TestIamPermissionsResourceNamesSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + using System.Collections.Generic; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for TestIamPermissions + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void TestIamPermissionsResourceNames() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + IEnumerable permissions = new string[] { "", }; + // Make the request + TestIamPermissionsResponse response = bigtableInstanceAdminClient.TestIamPermissions(resource, permissions); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.TestIamPermissionsSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.TestIamPermissionsSnippet.g.cs new file mode 100755 index 000000000000..0eee9a61df70 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.TestIamPermissionsSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + using System.Collections.Generic; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for TestIamPermissions + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void TestIamPermissions() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + IEnumerable permissions = new string[] { "", }; + // Make the request + TestIamPermissionsResponse response = bigtableInstanceAdminClient.TestIamPermissions(resource, permissions); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.UpdateAppProfileAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.UpdateAppProfileAsyncSnippet.g.cs new file mode 100755 index 000000000000..2a44511db851 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.UpdateAppProfileAsyncSnippet.g.cs @@ -0,0 +1,63 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for UpdateAppProfileAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task UpdateAppProfileAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + AppProfile appProfile = new AppProfile(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = await bigtableInstanceAdminClient.UpdateAppProfileAsync(appProfile, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + AppProfile result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableInstanceAdminClient.PollOnceUpdateAppProfileAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AppProfile retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.UpdateAppProfileRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.UpdateAppProfileRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..3c8274505aec --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.UpdateAppProfileRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,67 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_async] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for UpdateAppProfileAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task UpdateAppProfileRequestObjectAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + UpdateAppProfileRequest request = new UpdateAppProfileRequest + { + AppProfile = new AppProfile(), + UpdateMask = new FieldMask(), + IgnoreWarnings = false, + }; + // Make the request + Operation response = await bigtableInstanceAdminClient.UpdateAppProfileAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + AppProfile result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableInstanceAdminClient.PollOnceUpdateAppProfileAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AppProfile retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.UpdateAppProfileRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.UpdateAppProfileRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..5e79b8f6ef21 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.UpdateAppProfileRequestObjectSnippet.g.cs @@ -0,0 +1,66 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_sync] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for UpdateAppProfile + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void UpdateAppProfileRequestObject() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + UpdateAppProfileRequest request = new UpdateAppProfileRequest + { + AppProfile = new AppProfile(), + UpdateMask = new FieldMask(), + IgnoreWarnings = false, + }; + // Make the request + Operation response = bigtableInstanceAdminClient.UpdateAppProfile(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + AppProfile result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableInstanceAdminClient.PollOnceUpdateAppProfile(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AppProfile retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.UpdateAppProfileSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.UpdateAppProfileSnippet.g.cs new file mode 100755 index 000000000000..fe7ed133d854 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.UpdateAppProfileSnippet.g.cs @@ -0,0 +1,62 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for UpdateAppProfile + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void UpdateAppProfile() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + AppProfile appProfile = new AppProfile(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = bigtableInstanceAdminClient.UpdateAppProfile(appProfile, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + AppProfile result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableInstanceAdminClient.PollOnceUpdateAppProfile(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AppProfile retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.UpdateClusterRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.UpdateClusterRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..2289265a9072 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.UpdateClusterRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,72 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateCluster_async] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for UpdateClusterAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task UpdateClusterRequestObjectAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + Cluster request = new Cluster + { + ClusterName = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"), + LocationAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + State = Cluster.Types.State.NotKnown, + ServeNodes = 0, + DefaultStorageType = StorageType.Unspecified, + EncryptionConfig = new Cluster.Types.EncryptionConfig(), + ClusterConfig = new Cluster.Types.ClusterConfig(), + NodeScalingFactor = Cluster.Types.NodeScalingFactor.Unspecified, + }; + // Make the request + Operation response = await bigtableInstanceAdminClient.UpdateClusterAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Cluster result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableInstanceAdminClient.PollOnceUpdateClusterAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Cluster retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateCluster_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.UpdateClusterRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.UpdateClusterRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..22b549cfd37a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.UpdateClusterRequestObjectSnippet.g.cs @@ -0,0 +1,71 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateCluster_sync] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for UpdateCluster + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void UpdateClusterRequestObject() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + Cluster request = new Cluster + { + ClusterName = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"), + LocationAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + State = Cluster.Types.State.NotKnown, + ServeNodes = 0, + DefaultStorageType = StorageType.Unspecified, + EncryptionConfig = new Cluster.Types.EncryptionConfig(), + ClusterConfig = new Cluster.Types.ClusterConfig(), + NodeScalingFactor = Cluster.Types.NodeScalingFactor.Unspecified, + }; + // Make the request + Operation response = bigtableInstanceAdminClient.UpdateCluster(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Cluster result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableInstanceAdminClient.PollOnceUpdateCluster(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Cluster retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateCluster_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.UpdateInstanceRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.UpdateInstanceRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..04167f95d7de --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.UpdateInstanceRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,54 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateInstance_async] + using Google.Cloud.Bigtable.Admin.V2; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for UpdateInstanceAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task UpdateInstanceRequestObjectAsync() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + Instance request = new Instance + { + InstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + DisplayName = "", + State = Instance.Types.State.NotKnown, + Type = Instance.Types.Type.Unspecified, + Labels = { { "", "" }, }, + CreateTime = new Timestamp(), + SatisfiesPzs = false, + }; + // Make the request + Instance response = await bigtableInstanceAdminClient.UpdateInstanceAsync(request); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateInstance_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.UpdateInstanceRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.UpdateInstanceRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..b6dcc9838212 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableInstanceAdminClient.UpdateInstanceRequestObjectSnippet.g.cs @@ -0,0 +1,53 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateInstance_sync] + using Google.Cloud.Bigtable.Admin.V2; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for UpdateInstance + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void UpdateInstanceRequestObject() + { + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + Instance request = new Instance + { + InstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + DisplayName = "", + State = Instance.Types.State.NotKnown, + Type = Instance.Types.Type.Unspecified, + Labels = { { "", "" }, }, + CreateTime = new Timestamp(), + SatisfiesPzs = false, + }; + // Make the request + Instance response = bigtableInstanceAdminClient.UpdateInstance(request); + } + } + // [END bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateInstance_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CheckConsistencyAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CheckConsistencyAsyncSnippet.g.cs new file mode 100755 index 000000000000..aa352fc269e3 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CheckConsistencyAsyncSnippet.g.cs @@ -0,0 +1,45 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for CheckConsistencyAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task CheckConsistencyAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; + string consistencyToken = ""; + // Make the request + CheckConsistencyResponse response = await bigtableTableAdminClient.CheckConsistencyAsync(name, consistencyToken); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CheckConsistencyRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CheckConsistencyRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..bfb6fcb2dde9 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CheckConsistencyRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,49 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_async] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for CheckConsistencyAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task CheckConsistencyRequestObjectAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + CheckConsistencyRequest request = new CheckConsistencyRequest + { + TableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + ConsistencyToken = "", + StandardReadRemoteWrites = new StandardReadRemoteWrites(), + }; + // Make the request + CheckConsistencyResponse response = await bigtableTableAdminClient.CheckConsistencyAsync(request); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CheckConsistencyRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CheckConsistencyRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..39fddfb00698 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CheckConsistencyRequestObjectSnippet.g.cs @@ -0,0 +1,48 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_sync] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for CheckConsistency + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void CheckConsistencyRequestObject() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + CheckConsistencyRequest request = new CheckConsistencyRequest + { + TableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + ConsistencyToken = "", + StandardReadRemoteWrites = new StandardReadRemoteWrites(), + }; + // Make the request + CheckConsistencyResponse response = bigtableTableAdminClient.CheckConsistency(request); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CheckConsistencyResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CheckConsistencyResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..e41444eb7702 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CheckConsistencyResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,45 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_async_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for CheckConsistencyAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task CheckConsistencyResourceNamesAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + TableName name = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"); + string consistencyToken = ""; + // Make the request + CheckConsistencyResponse response = await bigtableTableAdminClient.CheckConsistencyAsync(name, consistencyToken); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CheckConsistencyResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CheckConsistencyResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..da96652eee10 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CheckConsistencyResourceNamesSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_sync_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for CheckConsistency + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void CheckConsistencyResourceNames() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + TableName name = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"); + string consistencyToken = ""; + // Make the request + CheckConsistencyResponse response = bigtableTableAdminClient.CheckConsistency(name, consistencyToken); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CheckConsistencySnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CheckConsistencySnippet.g.cs new file mode 100755 index 000000000000..d1a89a8e3574 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CheckConsistencySnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for CheckConsistency + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void CheckConsistency() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; + string consistencyToken = ""; + // Make the request + CheckConsistencyResponse response = bigtableTableAdminClient.CheckConsistency(name, consistencyToken); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CopyBackupAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CopyBackupAsyncSnippet.g.cs new file mode 100755 index 000000000000..250af3055572 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CopyBackupAsyncSnippet.g.cs @@ -0,0 +1,65 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for CopyBackupAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task CopyBackupAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]"; + string backupId = ""; + string sourceBackup = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]/backups/[BACKUP]"; + Timestamp expireTime = new Timestamp(); + // Make the request + Operation response = await bigtableTableAdminClient.CopyBackupAsync(parent, backupId, sourceBackup, expireTime); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Backup result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceCopyBackupAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Backup retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CopyBackupRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CopyBackupRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..9fc280bd1b36 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CopyBackupRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,68 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_async] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for CopyBackupAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task CopyBackupRequestObjectAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + CopyBackupRequest request = new CopyBackupRequest + { + ParentAsClusterName = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"), + BackupId = "", + SourceBackupAsBackupName = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"), + ExpireTime = new Timestamp(), + }; + // Make the request + Operation response = await bigtableTableAdminClient.CopyBackupAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Backup result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceCopyBackupAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Backup retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CopyBackupRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CopyBackupRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..7eaafef284d2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CopyBackupRequestObjectSnippet.g.cs @@ -0,0 +1,67 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_sync] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for CopyBackup + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void CopyBackupRequestObject() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + CopyBackupRequest request = new CopyBackupRequest + { + ParentAsClusterName = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"), + BackupId = "", + SourceBackupAsBackupName = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"), + ExpireTime = new Timestamp(), + }; + // Make the request + Operation response = bigtableTableAdminClient.CopyBackup(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Backup result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceCopyBackup(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Backup retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CopyBackupResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CopyBackupResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..c0d8bf894c2f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CopyBackupResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,65 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_async_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for CopyBackupAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task CopyBackupResourceNamesAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + ClusterName parent = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"); + string backupId = ""; + BackupName sourceBackup = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"); + Timestamp expireTime = new Timestamp(); + // Make the request + Operation response = await bigtableTableAdminClient.CopyBackupAsync(parent, backupId, sourceBackup, expireTime); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Backup result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceCopyBackupAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Backup retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CopyBackupResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CopyBackupResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..24a473347c8e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CopyBackupResourceNamesSnippet.g.cs @@ -0,0 +1,64 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_sync_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for CopyBackup + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void CopyBackupResourceNames() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + ClusterName parent = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"); + string backupId = ""; + BackupName sourceBackup = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"); + Timestamp expireTime = new Timestamp(); + // Make the request + Operation response = bigtableTableAdminClient.CopyBackup(parent, backupId, sourceBackup, expireTime); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Backup result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceCopyBackup(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Backup retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CopyBackupSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CopyBackupSnippet.g.cs new file mode 100755 index 000000000000..c346890fd571 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CopyBackupSnippet.g.cs @@ -0,0 +1,64 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for CopyBackup + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void CopyBackup() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]"; + string backupId = ""; + string sourceBackup = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]/backups/[BACKUP]"; + Timestamp expireTime = new Timestamp(); + // Make the request + Operation response = bigtableTableAdminClient.CopyBackup(parent, backupId, sourceBackup, expireTime); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Backup result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceCopyBackup(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Backup retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateAuthorizedViewAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateAuthorizedViewAsyncSnippet.g.cs new file mode 100755 index 000000000000..b66e6fefe580 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateAuthorizedViewAsyncSnippet.g.cs @@ -0,0 +1,63 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for CreateAuthorizedViewAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task CreateAuthorizedViewAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; + AuthorizedView authorizedView = new AuthorizedView(); + string authorizedViewId = ""; + // Make the request + Operation response = await bigtableTableAdminClient.CreateAuthorizedViewAsync(parent, authorizedView, authorizedViewId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + AuthorizedView result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceCreateAuthorizedViewAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AuthorizedView retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateAuthorizedViewRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateAuthorizedViewRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..3f23f5cc58ab --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateAuthorizedViewRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,66 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_async] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for CreateAuthorizedViewAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task CreateAuthorizedViewRequestObjectAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + CreateAuthorizedViewRequest request = new CreateAuthorizedViewRequest + { + ParentAsTableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + AuthorizedViewId = "", + AuthorizedView = new AuthorizedView(), + }; + // Make the request + Operation response = await bigtableTableAdminClient.CreateAuthorizedViewAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + AuthorizedView result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceCreateAuthorizedViewAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AuthorizedView retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateAuthorizedViewRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateAuthorizedViewRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..0b09aa1c26d2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateAuthorizedViewRequestObjectSnippet.g.cs @@ -0,0 +1,65 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_sync] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for CreateAuthorizedView + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void CreateAuthorizedViewRequestObject() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + CreateAuthorizedViewRequest request = new CreateAuthorizedViewRequest + { + ParentAsTableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + AuthorizedViewId = "", + AuthorizedView = new AuthorizedView(), + }; + // Make the request + Operation response = bigtableTableAdminClient.CreateAuthorizedView(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + AuthorizedView result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceCreateAuthorizedView(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AuthorizedView retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateAuthorizedViewResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateAuthorizedViewResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..d0af6d4fd013 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateAuthorizedViewResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,63 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_async_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for CreateAuthorizedViewAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task CreateAuthorizedViewResourceNamesAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + TableName parent = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"); + AuthorizedView authorizedView = new AuthorizedView(); + string authorizedViewId = ""; + // Make the request + Operation response = await bigtableTableAdminClient.CreateAuthorizedViewAsync(parent, authorizedView, authorizedViewId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + AuthorizedView result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceCreateAuthorizedViewAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AuthorizedView retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateAuthorizedViewResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateAuthorizedViewResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..0b16891d950b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateAuthorizedViewResourceNamesSnippet.g.cs @@ -0,0 +1,62 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_sync_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for CreateAuthorizedView + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void CreateAuthorizedViewResourceNames() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + TableName parent = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"); + AuthorizedView authorizedView = new AuthorizedView(); + string authorizedViewId = ""; + // Make the request + Operation response = bigtableTableAdminClient.CreateAuthorizedView(parent, authorizedView, authorizedViewId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + AuthorizedView result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceCreateAuthorizedView(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AuthorizedView retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateAuthorizedViewSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateAuthorizedViewSnippet.g.cs new file mode 100755 index 000000000000..9187e10fef95 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateAuthorizedViewSnippet.g.cs @@ -0,0 +1,62 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for CreateAuthorizedView + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void CreateAuthorizedView() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; + AuthorizedView authorizedView = new AuthorizedView(); + string authorizedViewId = ""; + // Make the request + Operation response = bigtableTableAdminClient.CreateAuthorizedView(parent, authorizedView, authorizedViewId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + AuthorizedView result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceCreateAuthorizedView(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AuthorizedView retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateBackupAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateBackupAsyncSnippet.g.cs new file mode 100755 index 000000000000..912064d1d8b9 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateBackupAsyncSnippet.g.cs @@ -0,0 +1,63 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for CreateBackupAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task CreateBackupAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]"; + string backupId = ""; + Backup backup = new Backup(); + // Make the request + Operation response = await bigtableTableAdminClient.CreateBackupAsync(parent, backupId, backup); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Backup result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceCreateBackupAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Backup retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateBackupRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateBackupRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..b698e3e62f71 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateBackupRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,66 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_async] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for CreateBackupAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task CreateBackupRequestObjectAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + CreateBackupRequest request = new CreateBackupRequest + { + ParentAsClusterName = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"), + BackupId = "", + Backup = new Backup(), + }; + // Make the request + Operation response = await bigtableTableAdminClient.CreateBackupAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Backup result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceCreateBackupAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Backup retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateBackupRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateBackupRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..ae06731f9a42 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateBackupRequestObjectSnippet.g.cs @@ -0,0 +1,65 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_sync] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for CreateBackup + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void CreateBackupRequestObject() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + CreateBackupRequest request = new CreateBackupRequest + { + ParentAsClusterName = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"), + BackupId = "", + Backup = new Backup(), + }; + // Make the request + Operation response = bigtableTableAdminClient.CreateBackup(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Backup result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceCreateBackup(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Backup retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateBackupResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateBackupResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..64640c8029f9 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateBackupResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,63 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_async_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for CreateBackupAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task CreateBackupResourceNamesAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + ClusterName parent = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"); + string backupId = ""; + Backup backup = new Backup(); + // Make the request + Operation response = await bigtableTableAdminClient.CreateBackupAsync(parent, backupId, backup); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Backup result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceCreateBackupAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Backup retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateBackupResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateBackupResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..e8a0ae283454 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateBackupResourceNamesSnippet.g.cs @@ -0,0 +1,62 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_sync_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for CreateBackup + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void CreateBackupResourceNames() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + ClusterName parent = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"); + string backupId = ""; + Backup backup = new Backup(); + // Make the request + Operation response = bigtableTableAdminClient.CreateBackup(parent, backupId, backup); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Backup result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceCreateBackup(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Backup retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateBackupSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateBackupSnippet.g.cs new file mode 100755 index 000000000000..0faca1e63bb2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateBackupSnippet.g.cs @@ -0,0 +1,62 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for CreateBackup + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void CreateBackup() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]"; + string backupId = ""; + Backup backup = new Backup(); + // Make the request + Operation response = bigtableTableAdminClient.CreateBackup(parent, backupId, backup); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Backup result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceCreateBackup(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Backup retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableAsyncSnippet.g.cs new file mode 100755 index 000000000000..494bdc8faf8b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableAsyncSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for CreateTableAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task CreateTableAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]"; + string tableId = ""; + Table table = new Table(); + // Make the request + Table response = await bigtableTableAdminClient.CreateTableAsync(parent, tableId, table); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableFromSnapshotAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableFromSnapshotAsyncSnippet.g.cs new file mode 100755 index 000000000000..78fdf6d6a4db --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableFromSnapshotAsyncSnippet.g.cs @@ -0,0 +1,63 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for CreateTableFromSnapshotAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task CreateTableFromSnapshotAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]"; + string tableId = ""; + string sourceSnapshot = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]/snapshots/[SNAPSHOT]"; + // Make the request + Operation response = await bigtableTableAdminClient.CreateTableFromSnapshotAsync(parent, tableId, sourceSnapshot); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Table result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceCreateTableFromSnapshotAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Table retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableFromSnapshotRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableFromSnapshotRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..243a3f9b6ac1 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableFromSnapshotRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,66 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_async] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for CreateTableFromSnapshotAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task CreateTableFromSnapshotRequestObjectAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + CreateTableFromSnapshotRequest request = new CreateTableFromSnapshotRequest + { + ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + TableId = "", + SourceSnapshotAsSnapshotName = SnapshotName.FromProjectInstanceClusterSnapshot("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]"), + }; + // Make the request + Operation response = await bigtableTableAdminClient.CreateTableFromSnapshotAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Table result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceCreateTableFromSnapshotAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Table retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableFromSnapshotRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableFromSnapshotRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..53eabbd6c7a9 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableFromSnapshotRequestObjectSnippet.g.cs @@ -0,0 +1,65 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_sync] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for CreateTableFromSnapshot + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void CreateTableFromSnapshotRequestObject() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + CreateTableFromSnapshotRequest request = new CreateTableFromSnapshotRequest + { + ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + TableId = "", + SourceSnapshotAsSnapshotName = SnapshotName.FromProjectInstanceClusterSnapshot("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]"), + }; + // Make the request + Operation response = bigtableTableAdminClient.CreateTableFromSnapshot(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Table result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceCreateTableFromSnapshot(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Table retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableFromSnapshotResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableFromSnapshotResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..64e68b5e0bf0 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableFromSnapshotResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,63 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_async_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for CreateTableFromSnapshotAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task CreateTableFromSnapshotResourceNamesAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"); + string tableId = ""; + SnapshotName sourceSnapshot = SnapshotName.FromProjectInstanceClusterSnapshot("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]"); + // Make the request + Operation response = await bigtableTableAdminClient.CreateTableFromSnapshotAsync(parent, tableId, sourceSnapshot); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Table result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceCreateTableFromSnapshotAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Table retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableFromSnapshotResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableFromSnapshotResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..c2d33eec477e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableFromSnapshotResourceNamesSnippet.g.cs @@ -0,0 +1,62 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_sync_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for CreateTableFromSnapshot + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void CreateTableFromSnapshotResourceNames() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"); + string tableId = ""; + SnapshotName sourceSnapshot = SnapshotName.FromProjectInstanceClusterSnapshot("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]"); + // Make the request + Operation response = bigtableTableAdminClient.CreateTableFromSnapshot(parent, tableId, sourceSnapshot); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Table result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceCreateTableFromSnapshot(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Table retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableFromSnapshotSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableFromSnapshotSnippet.g.cs new file mode 100755 index 000000000000..b39980c4ed97 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableFromSnapshotSnippet.g.cs @@ -0,0 +1,62 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for CreateTableFromSnapshot + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void CreateTableFromSnapshot() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]"; + string tableId = ""; + string sourceSnapshot = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]/snapshots/[SNAPSHOT]"; + // Make the request + Operation response = bigtableTableAdminClient.CreateTableFromSnapshot(parent, tableId, sourceSnapshot); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Table result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceCreateTableFromSnapshot(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Table retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..072961c40058 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,53 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_async] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for CreateTableAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task CreateTableRequestObjectAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + CreateTableRequest request = new CreateTableRequest + { + ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + TableId = "", + Table = new Table(), + InitialSplits = + { + new CreateTableRequest.Types.Split(), + }, + }; + // Make the request + Table response = await bigtableTableAdminClient.CreateTableAsync(request); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..e9ce403ad586 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableRequestObjectSnippet.g.cs @@ -0,0 +1,52 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_sync] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for CreateTable + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void CreateTableRequestObject() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + CreateTableRequest request = new CreateTableRequest + { + ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + TableId = "", + Table = new Table(), + InitialSplits = + { + new CreateTableRequest.Types.Split(), + }, + }; + // Make the request + Table response = bigtableTableAdminClient.CreateTable(request); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..4dd028f1d70d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_async_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for CreateTableAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task CreateTableResourceNamesAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"); + string tableId = ""; + Table table = new Table(); + // Make the request + Table response = await bigtableTableAdminClient.CreateTableAsync(parent, tableId, table); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..a6f53eac5380 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableResourceNamesSnippet.g.cs @@ -0,0 +1,45 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_sync_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for CreateTable + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void CreateTableResourceNames() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"); + string tableId = ""; + Table table = new Table(); + // Make the request + Table response = bigtableTableAdminClient.CreateTable(parent, tableId, table); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableSnippet.g.cs new file mode 100755 index 000000000000..41b8ae9a69b8 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.CreateTableSnippet.g.cs @@ -0,0 +1,45 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for CreateTable + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void CreateTable() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]"; + string tableId = ""; + Table table = new Table(); + // Make the request + Table response = bigtableTableAdminClient.CreateTable(parent, tableId, table); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteAuthorizedViewAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteAuthorizedViewAsyncSnippet.g.cs new file mode 100755 index 000000000000..66f1d7d4a20d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteAuthorizedViewAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for DeleteAuthorizedViewAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task DeleteAuthorizedViewAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]/authorizedViews/[AUTHORIZED_VIEW]"; + // Make the request + await bigtableTableAdminClient.DeleteAuthorizedViewAsync(name); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteAuthorizedViewRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteAuthorizedViewRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..d42b8c7398ba --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteAuthorizedViewRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,48 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_async] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for DeleteAuthorizedViewAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task DeleteAuthorizedViewRequestObjectAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + DeleteAuthorizedViewRequest request = new DeleteAuthorizedViewRequest + { + AuthorizedViewName = AuthorizedViewName.FromProjectInstanceTableAuthorizedView("[PROJECT]", "[INSTANCE]", "[TABLE]", "[AUTHORIZED_VIEW]"), + Etag = "", + }; + // Make the request + await bigtableTableAdminClient.DeleteAuthorizedViewAsync(request); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteAuthorizedViewRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteAuthorizedViewRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..5a3796b46b94 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteAuthorizedViewRequestObjectSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_sync] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for DeleteAuthorizedView + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void DeleteAuthorizedViewRequestObject() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + DeleteAuthorizedViewRequest request = new DeleteAuthorizedViewRequest + { + AuthorizedViewName = AuthorizedViewName.FromProjectInstanceTableAuthorizedView("[PROJECT]", "[INSTANCE]", "[TABLE]", "[AUTHORIZED_VIEW]"), + Etag = "", + }; + // Make the request + bigtableTableAdminClient.DeleteAuthorizedView(request); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteAuthorizedViewResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteAuthorizedViewResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..4fdcdc761736 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteAuthorizedViewResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_async_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for DeleteAuthorizedViewAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task DeleteAuthorizedViewResourceNamesAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + AuthorizedViewName name = AuthorizedViewName.FromProjectInstanceTableAuthorizedView("[PROJECT]", "[INSTANCE]", "[TABLE]", "[AUTHORIZED_VIEW]"); + // Make the request + await bigtableTableAdminClient.DeleteAuthorizedViewAsync(name); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteAuthorizedViewResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteAuthorizedViewResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..7107126b8f6d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteAuthorizedViewResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_sync_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for DeleteAuthorizedView + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void DeleteAuthorizedViewResourceNames() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + AuthorizedViewName name = AuthorizedViewName.FromProjectInstanceTableAuthorizedView("[PROJECT]", "[INSTANCE]", "[TABLE]", "[AUTHORIZED_VIEW]"); + // Make the request + bigtableTableAdminClient.DeleteAuthorizedView(name); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteAuthorizedViewSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteAuthorizedViewSnippet.g.cs new file mode 100755 index 000000000000..ca2a35a5041d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteAuthorizedViewSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for DeleteAuthorizedView + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void DeleteAuthorizedView() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]/authorizedViews/[AUTHORIZED_VIEW]"; + // Make the request + bigtableTableAdminClient.DeleteAuthorizedView(name); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteBackupAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteBackupAsyncSnippet.g.cs new file mode 100755 index 000000000000..a2b2bc199da6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteBackupAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for DeleteBackupAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task DeleteBackupAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]/backups/[BACKUP]"; + // Make the request + await bigtableTableAdminClient.DeleteBackupAsync(name); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteBackupRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteBackupRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..dfe0729c18f8 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteBackupRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_async] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for DeleteBackupAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task DeleteBackupRequestObjectAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + DeleteBackupRequest request = new DeleteBackupRequest + { + BackupName = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"), + }; + // Make the request + await bigtableTableAdminClient.DeleteBackupAsync(request); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteBackupRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteBackupRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..419bb99d82ce --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteBackupRequestObjectSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_sync] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for DeleteBackup + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void DeleteBackupRequestObject() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + DeleteBackupRequest request = new DeleteBackupRequest + { + BackupName = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"), + }; + // Make the request + bigtableTableAdminClient.DeleteBackup(request); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteBackupResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteBackupResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..f43d9ddc0cac --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteBackupResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_async_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for DeleteBackupAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task DeleteBackupResourceNamesAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + BackupName name = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"); + // Make the request + await bigtableTableAdminClient.DeleteBackupAsync(name); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteBackupResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteBackupResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..cd9e11533f8c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteBackupResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_sync_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for DeleteBackup + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void DeleteBackupResourceNames() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + BackupName name = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"); + // Make the request + bigtableTableAdminClient.DeleteBackup(name); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteBackupSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteBackupSnippet.g.cs new file mode 100755 index 000000000000..fda3e87135ec --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteBackupSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for DeleteBackup + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void DeleteBackup() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]/backups/[BACKUP]"; + // Make the request + bigtableTableAdminClient.DeleteBackup(name); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteSnapshotAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteSnapshotAsyncSnippet.g.cs new file mode 100755 index 000000000000..2250f60de23b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteSnapshotAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for DeleteSnapshotAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task DeleteSnapshotAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]/snapshots/[SNAPSHOT]"; + // Make the request + await bigtableTableAdminClient.DeleteSnapshotAsync(name); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteSnapshotRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteSnapshotRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..1399ee04077f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteSnapshotRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_async] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for DeleteSnapshotAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task DeleteSnapshotRequestObjectAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + DeleteSnapshotRequest request = new DeleteSnapshotRequest + { + SnapshotName = SnapshotName.FromProjectInstanceClusterSnapshot("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]"), + }; + // Make the request + await bigtableTableAdminClient.DeleteSnapshotAsync(request); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteSnapshotRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteSnapshotRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..bad9d524373f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteSnapshotRequestObjectSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_sync] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for DeleteSnapshot + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void DeleteSnapshotRequestObject() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + DeleteSnapshotRequest request = new DeleteSnapshotRequest + { + SnapshotName = SnapshotName.FromProjectInstanceClusterSnapshot("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]"), + }; + // Make the request + bigtableTableAdminClient.DeleteSnapshot(request); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteSnapshotResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteSnapshotResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..dd9f13f26b58 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteSnapshotResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_async_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for DeleteSnapshotAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task DeleteSnapshotResourceNamesAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + SnapshotName name = SnapshotName.FromProjectInstanceClusterSnapshot("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]"); + // Make the request + await bigtableTableAdminClient.DeleteSnapshotAsync(name); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteSnapshotResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteSnapshotResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..abad544c6858 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteSnapshotResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_sync_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for DeleteSnapshot + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void DeleteSnapshotResourceNames() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + SnapshotName name = SnapshotName.FromProjectInstanceClusterSnapshot("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]"); + // Make the request + bigtableTableAdminClient.DeleteSnapshot(name); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteSnapshotSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteSnapshotSnippet.g.cs new file mode 100755 index 000000000000..55539d83dd58 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteSnapshotSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for DeleteSnapshot + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void DeleteSnapshot() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]/snapshots/[SNAPSHOT]"; + // Make the request + bigtableTableAdminClient.DeleteSnapshot(name); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteTableAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteTableAsyncSnippet.g.cs new file mode 100755 index 000000000000..e636ad3ad229 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteTableAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for DeleteTableAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task DeleteTableAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; + // Make the request + await bigtableTableAdminClient.DeleteTableAsync(name); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteTableRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteTableRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..ad51db48e09a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteTableRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_async] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for DeleteTableAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task DeleteTableRequestObjectAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + DeleteTableRequest request = new DeleteTableRequest + { + TableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + }; + // Make the request + await bigtableTableAdminClient.DeleteTableAsync(request); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteTableRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteTableRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..3e8e28c92958 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteTableRequestObjectSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_sync] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for DeleteTable + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void DeleteTableRequestObject() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + DeleteTableRequest request = new DeleteTableRequest + { + TableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + }; + // Make the request + bigtableTableAdminClient.DeleteTable(request); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteTableResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteTableResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..ea9e634d908d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteTableResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_async_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for DeleteTableAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task DeleteTableResourceNamesAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + TableName name = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"); + // Make the request + await bigtableTableAdminClient.DeleteTableAsync(name); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteTableResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteTableResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..2f2bea4984b3 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteTableResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_sync_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for DeleteTable + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void DeleteTableResourceNames() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + TableName name = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"); + // Make the request + bigtableTableAdminClient.DeleteTable(name); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteTableSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteTableSnippet.g.cs new file mode 100755 index 000000000000..2cc70cc2757a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DeleteTableSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for DeleteTable + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void DeleteTable() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; + // Make the request + bigtableTableAdminClient.DeleteTable(name); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DropRowRangeRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DropRowRangeRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..d9879d45775c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DropRowRangeRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,49 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_DropRowRange_async] + using Google.Cloud.Bigtable.Admin.V2; + using Google.Protobuf; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for DropRowRangeAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task DropRowRangeRequestObjectAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + DropRowRangeRequest request = new DropRowRangeRequest + { + TableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + RowKeyPrefix = ByteString.Empty, + }; + // Make the request + await bigtableTableAdminClient.DropRowRangeAsync(request); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_DropRowRange_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DropRowRangeRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DropRowRangeRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..bff205048b1e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.DropRowRangeRequestObjectSnippet.g.cs @@ -0,0 +1,48 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_DropRowRange_sync] + using Google.Cloud.Bigtable.Admin.V2; + using Google.Protobuf; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for DropRowRange + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void DropRowRangeRequestObject() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + DropRowRangeRequest request = new DropRowRangeRequest + { + TableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + RowKeyPrefix = ByteString.Empty, + }; + // Make the request + bigtableTableAdminClient.DropRowRange(request); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_DropRowRange_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GenerateConsistencyTokenAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GenerateConsistencyTokenAsyncSnippet.g.cs new file mode 100755 index 000000000000..aba8dfab9f1f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GenerateConsistencyTokenAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for GenerateConsistencyTokenAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GenerateConsistencyTokenAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; + // Make the request + GenerateConsistencyTokenResponse response = await bigtableTableAdminClient.GenerateConsistencyTokenAsync(name); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GenerateConsistencyTokenRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GenerateConsistencyTokenRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..5231015faada --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GenerateConsistencyTokenRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_async] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for GenerateConsistencyTokenAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GenerateConsistencyTokenRequestObjectAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + GenerateConsistencyTokenRequest request = new GenerateConsistencyTokenRequest + { + TableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + }; + // Make the request + GenerateConsistencyTokenResponse response = await bigtableTableAdminClient.GenerateConsistencyTokenAsync(request); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GenerateConsistencyTokenRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GenerateConsistencyTokenRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..7b94a4e36ff4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GenerateConsistencyTokenRequestObjectSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_sync] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for GenerateConsistencyToken + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GenerateConsistencyTokenRequestObject() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + GenerateConsistencyTokenRequest request = new GenerateConsistencyTokenRequest + { + TableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + }; + // Make the request + GenerateConsistencyTokenResponse response = bigtableTableAdminClient.GenerateConsistencyToken(request); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GenerateConsistencyTokenResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GenerateConsistencyTokenResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..ac683dfb5184 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GenerateConsistencyTokenResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_async_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for GenerateConsistencyTokenAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GenerateConsistencyTokenResourceNamesAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + TableName name = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"); + // Make the request + GenerateConsistencyTokenResponse response = await bigtableTableAdminClient.GenerateConsistencyTokenAsync(name); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GenerateConsistencyTokenResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GenerateConsistencyTokenResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..6f996df24570 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GenerateConsistencyTokenResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_sync_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for GenerateConsistencyToken + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GenerateConsistencyTokenResourceNames() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + TableName name = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"); + // Make the request + GenerateConsistencyTokenResponse response = bigtableTableAdminClient.GenerateConsistencyToken(name); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GenerateConsistencyTokenSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GenerateConsistencyTokenSnippet.g.cs new file mode 100755 index 000000000000..f0cc3ae52b98 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GenerateConsistencyTokenSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for GenerateConsistencyToken + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GenerateConsistencyToken() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; + // Make the request + GenerateConsistencyTokenResponse response = bigtableTableAdminClient.GenerateConsistencyToken(name); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetAuthorizedViewAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetAuthorizedViewAsyncSnippet.g.cs new file mode 100755 index 000000000000..b68eac0fcdd7 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetAuthorizedViewAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for GetAuthorizedViewAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetAuthorizedViewAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]/authorizedViews/[AUTHORIZED_VIEW]"; + // Make the request + AuthorizedView response = await bigtableTableAdminClient.GetAuthorizedViewAsync(name); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetAuthorizedViewRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetAuthorizedViewRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..b7a45625c646 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetAuthorizedViewRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,48 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_async] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for GetAuthorizedViewAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetAuthorizedViewRequestObjectAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + GetAuthorizedViewRequest request = new GetAuthorizedViewRequest + { + AuthorizedViewName = AuthorizedViewName.FromProjectInstanceTableAuthorizedView("[PROJECT]", "[INSTANCE]", "[TABLE]", "[AUTHORIZED_VIEW]"), + View = AuthorizedView.Types.ResponseView.Unspecified, + }; + // Make the request + AuthorizedView response = await bigtableTableAdminClient.GetAuthorizedViewAsync(request); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetAuthorizedViewRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetAuthorizedViewRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..3e606d4ca23f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetAuthorizedViewRequestObjectSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_sync] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for GetAuthorizedView + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetAuthorizedViewRequestObject() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + GetAuthorizedViewRequest request = new GetAuthorizedViewRequest + { + AuthorizedViewName = AuthorizedViewName.FromProjectInstanceTableAuthorizedView("[PROJECT]", "[INSTANCE]", "[TABLE]", "[AUTHORIZED_VIEW]"), + View = AuthorizedView.Types.ResponseView.Unspecified, + }; + // Make the request + AuthorizedView response = bigtableTableAdminClient.GetAuthorizedView(request); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetAuthorizedViewResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetAuthorizedViewResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..0e4fd433ee4f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetAuthorizedViewResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_async_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for GetAuthorizedViewAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetAuthorizedViewResourceNamesAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + AuthorizedViewName name = AuthorizedViewName.FromProjectInstanceTableAuthorizedView("[PROJECT]", "[INSTANCE]", "[TABLE]", "[AUTHORIZED_VIEW]"); + // Make the request + AuthorizedView response = await bigtableTableAdminClient.GetAuthorizedViewAsync(name); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetAuthorizedViewResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetAuthorizedViewResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..918fd27867c6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetAuthorizedViewResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_sync_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for GetAuthorizedView + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetAuthorizedViewResourceNames() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + AuthorizedViewName name = AuthorizedViewName.FromProjectInstanceTableAuthorizedView("[PROJECT]", "[INSTANCE]", "[TABLE]", "[AUTHORIZED_VIEW]"); + // Make the request + AuthorizedView response = bigtableTableAdminClient.GetAuthorizedView(name); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetAuthorizedViewSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetAuthorizedViewSnippet.g.cs new file mode 100755 index 000000000000..d981d907caa0 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetAuthorizedViewSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for GetAuthorizedView + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetAuthorizedView() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]/authorizedViews/[AUTHORIZED_VIEW]"; + // Make the request + AuthorizedView response = bigtableTableAdminClient.GetAuthorizedView(name); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetBackupAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetBackupAsyncSnippet.g.cs new file mode 100755 index 000000000000..a582dfac4d50 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetBackupAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for GetBackupAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetBackupAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]/backups/[BACKUP]"; + // Make the request + Backup response = await bigtableTableAdminClient.GetBackupAsync(name); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetBackupRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetBackupRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..5a6f5da4ae27 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetBackupRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_async] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for GetBackupAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetBackupRequestObjectAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + GetBackupRequest request = new GetBackupRequest + { + BackupName = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"), + }; + // Make the request + Backup response = await bigtableTableAdminClient.GetBackupAsync(request); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetBackupRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetBackupRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..8194b5b2e92f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetBackupRequestObjectSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_sync] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for GetBackup + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetBackupRequestObject() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + GetBackupRequest request = new GetBackupRequest + { + BackupName = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"), + }; + // Make the request + Backup response = bigtableTableAdminClient.GetBackup(request); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetBackupResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetBackupResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..e5b5e72444b7 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetBackupResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_async_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for GetBackupAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetBackupResourceNamesAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + BackupName name = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"); + // Make the request + Backup response = await bigtableTableAdminClient.GetBackupAsync(name); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetBackupResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetBackupResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..65c23bbd5c42 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetBackupResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_sync_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for GetBackup + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetBackupResourceNames() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + BackupName name = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"); + // Make the request + Backup response = bigtableTableAdminClient.GetBackup(name); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetBackupSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetBackupSnippet.g.cs new file mode 100755 index 000000000000..e81b1b289f54 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetBackupSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for GetBackup + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetBackup() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]/backups/[BACKUP]"; + // Make the request + Backup response = bigtableTableAdminClient.GetBackup(name); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetIamPolicyAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetIamPolicyAsyncSnippet.g.cs new file mode 100755 index 000000000000..96158efef83f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetIamPolicyAsyncSnippet.g.cs @@ -0,0 +1,45 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for GetIamPolicyAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetIamPolicyAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + // Make the request + Policy response = await bigtableTableAdminClient.GetIamPolicyAsync(resource); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetIamPolicyRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetIamPolicyRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..e48415c2244a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetIamPolicyRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,50 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_async] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for GetIamPolicyAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetIamPolicyRequestObjectAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + GetIamPolicyRequest request = new GetIamPolicyRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Options = new GetPolicyOptions(), + }; + // Make the request + Policy response = await bigtableTableAdminClient.GetIamPolicyAsync(request); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetIamPolicyRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetIamPolicyRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..c60e273f7473 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetIamPolicyRequestObjectSnippet.g.cs @@ -0,0 +1,49 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_sync] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for GetIamPolicy + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetIamPolicyRequestObject() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + GetIamPolicyRequest request = new GetIamPolicyRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Options = new GetPolicyOptions(), + }; + // Make the request + Policy response = bigtableTableAdminClient.GetIamPolicy(request); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetIamPolicyResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetIamPolicyResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..4dc6aee1bc1c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetIamPolicyResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for GetIamPolicyAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetIamPolicyResourceNamesAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + // Make the request + Policy response = await bigtableTableAdminClient.GetIamPolicyAsync(resource); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetIamPolicyResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetIamPolicyResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..4ca159f3e46c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetIamPolicyResourceNamesSnippet.g.cs @@ -0,0 +1,45 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for GetIamPolicy + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetIamPolicyResourceNames() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + // Make the request + Policy response = bigtableTableAdminClient.GetIamPolicy(resource); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetIamPolicySnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetIamPolicySnippet.g.cs new file mode 100755 index 000000000000..bb830f720532 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetIamPolicySnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for GetIamPolicy + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetIamPolicy() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + // Make the request + Policy response = bigtableTableAdminClient.GetIamPolicy(resource); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetSnapshotAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetSnapshotAsyncSnippet.g.cs new file mode 100755 index 000000000000..ec31fec5635f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetSnapshotAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for GetSnapshotAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetSnapshotAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]/snapshots/[SNAPSHOT]"; + // Make the request + Snapshot response = await bigtableTableAdminClient.GetSnapshotAsync(name); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetSnapshotRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetSnapshotRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..46d5313338ca --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetSnapshotRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_async] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for GetSnapshotAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetSnapshotRequestObjectAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + GetSnapshotRequest request = new GetSnapshotRequest + { + SnapshotName = SnapshotName.FromProjectInstanceClusterSnapshot("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]"), + }; + // Make the request + Snapshot response = await bigtableTableAdminClient.GetSnapshotAsync(request); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetSnapshotRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetSnapshotRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..c6cc25dca0ff --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetSnapshotRequestObjectSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_sync] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for GetSnapshot + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetSnapshotRequestObject() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + GetSnapshotRequest request = new GetSnapshotRequest + { + SnapshotName = SnapshotName.FromProjectInstanceClusterSnapshot("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]"), + }; + // Make the request + Snapshot response = bigtableTableAdminClient.GetSnapshot(request); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetSnapshotResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetSnapshotResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..5d22ce852d81 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetSnapshotResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_async_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for GetSnapshotAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetSnapshotResourceNamesAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + SnapshotName name = SnapshotName.FromProjectInstanceClusterSnapshot("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]"); + // Make the request + Snapshot response = await bigtableTableAdminClient.GetSnapshotAsync(name); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetSnapshotResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetSnapshotResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..7d766417c543 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetSnapshotResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_sync_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for GetSnapshot + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetSnapshotResourceNames() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + SnapshotName name = SnapshotName.FromProjectInstanceClusterSnapshot("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]"); + // Make the request + Snapshot response = bigtableTableAdminClient.GetSnapshot(name); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetSnapshotSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetSnapshotSnippet.g.cs new file mode 100755 index 000000000000..3723f6386cd4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetSnapshotSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for GetSnapshot + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetSnapshot() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]/snapshots/[SNAPSHOT]"; + // Make the request + Snapshot response = bigtableTableAdminClient.GetSnapshot(name); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetTableAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetTableAsyncSnippet.g.cs new file mode 100755 index 000000000000..f5d8bd1d4e70 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetTableAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for GetTableAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetTableAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; + // Make the request + Table response = await bigtableTableAdminClient.GetTableAsync(name); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetTableRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetTableRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..e65da9f0454c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetTableRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,48 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_async] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for GetTableAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetTableRequestObjectAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + GetTableRequest request = new GetTableRequest + { + TableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + View = Table.Types.View.Unspecified, + }; + // Make the request + Table response = await bigtableTableAdminClient.GetTableAsync(request); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetTableRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetTableRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..1bfbaaeca031 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetTableRequestObjectSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_sync] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for GetTable + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetTableRequestObject() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + GetTableRequest request = new GetTableRequest + { + TableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + View = Table.Types.View.Unspecified, + }; + // Make the request + Table response = bigtableTableAdminClient.GetTable(request); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetTableResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetTableResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..3bf21c384308 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetTableResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_async_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for GetTableAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task GetTableResourceNamesAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + TableName name = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"); + // Make the request + Table response = await bigtableTableAdminClient.GetTableAsync(name); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetTableResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetTableResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..c01cafe80e33 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetTableResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_sync_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for GetTable + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetTableResourceNames() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + TableName name = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"); + // Make the request + Table response = bigtableTableAdminClient.GetTable(name); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetTableSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetTableSnippet.g.cs new file mode 100755 index 000000000000..18b5e78d6d54 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.GetTableSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for GetTable + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void GetTable() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; + // Make the request + Table response = bigtableTableAdminClient.GetTable(name); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListAuthorizedViewsAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListAuthorizedViewsAsyncSnippet.g.cs new file mode 100755 index 000000000000..56c421b705d5 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListAuthorizedViewsAsyncSnippet.g.cs @@ -0,0 +1,79 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_async_flattened] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for ListAuthorizedViewsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ListAuthorizedViewsAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; + // Make the request + PagedAsyncEnumerable response = bigtableTableAdminClient.ListAuthorizedViewsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((AuthorizedView item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListAuthorizedViewsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AuthorizedView item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (AuthorizedView item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListAuthorizedViewsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListAuthorizedViewsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..1a188b9f242d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListAuthorizedViewsRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,83 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_async] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for ListAuthorizedViewsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ListAuthorizedViewsRequestObjectAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + ListAuthorizedViewsRequest request = new ListAuthorizedViewsRequest + { + ParentAsTableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + View = AuthorizedView.Types.ResponseView.Unspecified, + }; + // Make the request + PagedAsyncEnumerable response = bigtableTableAdminClient.ListAuthorizedViewsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((AuthorizedView item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListAuthorizedViewsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AuthorizedView item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (AuthorizedView item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListAuthorizedViewsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListAuthorizedViewsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..33eb367f18c9 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListAuthorizedViewsRequestObjectSnippet.g.cs @@ -0,0 +1,81 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_sync] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using System; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for ListAuthorizedViews + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ListAuthorizedViewsRequestObject() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + ListAuthorizedViewsRequest request = new ListAuthorizedViewsRequest + { + ParentAsTableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + View = AuthorizedView.Types.ResponseView.Unspecified, + }; + // Make the request + PagedEnumerable response = bigtableTableAdminClient.ListAuthorizedViews(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (AuthorizedView item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListAuthorizedViewsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AuthorizedView item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (AuthorizedView item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListAuthorizedViewsResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListAuthorizedViewsResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..57ed2a485bd6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListAuthorizedViewsResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,79 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for ListAuthorizedViewsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ListAuthorizedViewsResourceNamesAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + TableName parent = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"); + // Make the request + PagedAsyncEnumerable response = bigtableTableAdminClient.ListAuthorizedViewsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((AuthorizedView item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListAuthorizedViewsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AuthorizedView item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (AuthorizedView item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListAuthorizedViewsResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListAuthorizedViewsResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..70abacd29201 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListAuthorizedViewsResourceNamesSnippet.g.cs @@ -0,0 +1,77 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using System; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for ListAuthorizedViews + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ListAuthorizedViewsResourceNames() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + TableName parent = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"); + // Make the request + PagedEnumerable response = bigtableTableAdminClient.ListAuthorizedViews(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (AuthorizedView item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListAuthorizedViewsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AuthorizedView item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (AuthorizedView item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListAuthorizedViewsSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListAuthorizedViewsSnippet.g.cs new file mode 100755 index 000000000000..d83788fe1a3c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListAuthorizedViewsSnippet.g.cs @@ -0,0 +1,77 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using System; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for ListAuthorizedViews + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ListAuthorizedViews() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; + // Make the request + PagedEnumerable response = bigtableTableAdminClient.ListAuthorizedViews(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (AuthorizedView item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListAuthorizedViewsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AuthorizedView item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (AuthorizedView item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListBackupsAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListBackupsAsyncSnippet.g.cs new file mode 100755 index 000000000000..6755145d3f84 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListBackupsAsyncSnippet.g.cs @@ -0,0 +1,79 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_async_flattened] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for ListBackupsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ListBackupsAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]"; + // Make the request + PagedAsyncEnumerable response = bigtableTableAdminClient.ListBackupsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Backup item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListBackupsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Backup item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Backup item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListBackupsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListBackupsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..ed5c0600b1ff --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListBackupsRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,84 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_async] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for ListBackupsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ListBackupsRequestObjectAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + ListBackupsRequest request = new ListBackupsRequest + { + ParentAsClusterName = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"), + Filter = "", + OrderBy = "", + }; + // Make the request + PagedAsyncEnumerable response = bigtableTableAdminClient.ListBackupsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Backup item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListBackupsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Backup item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Backup item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListBackupsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListBackupsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..c98bb626f68e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListBackupsRequestObjectSnippet.g.cs @@ -0,0 +1,82 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_sync] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using System; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for ListBackups + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ListBackupsRequestObject() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + ListBackupsRequest request = new ListBackupsRequest + { + ParentAsClusterName = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"), + Filter = "", + OrderBy = "", + }; + // Make the request + PagedEnumerable response = bigtableTableAdminClient.ListBackups(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Backup item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListBackupsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Backup item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Backup item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListBackupsResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListBackupsResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..af89c0909800 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListBackupsResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,79 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for ListBackupsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ListBackupsResourceNamesAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + ClusterName parent = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"); + // Make the request + PagedAsyncEnumerable response = bigtableTableAdminClient.ListBackupsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Backup item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListBackupsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Backup item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Backup item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListBackupsResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListBackupsResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..4fd9cf5f3349 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListBackupsResourceNamesSnippet.g.cs @@ -0,0 +1,77 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using System; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for ListBackups + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ListBackupsResourceNames() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + ClusterName parent = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"); + // Make the request + PagedEnumerable response = bigtableTableAdminClient.ListBackups(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Backup item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListBackupsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Backup item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Backup item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListBackupsSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListBackupsSnippet.g.cs new file mode 100755 index 000000000000..3cb5c146e8bb --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListBackupsSnippet.g.cs @@ -0,0 +1,77 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using System; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for ListBackups + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ListBackups() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]"; + // Make the request + PagedEnumerable response = bigtableTableAdminClient.ListBackups(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Backup item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListBackupsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Backup item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Backup item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListSnapshotsAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListSnapshotsAsyncSnippet.g.cs new file mode 100755 index 000000000000..d2b64df0f50b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListSnapshotsAsyncSnippet.g.cs @@ -0,0 +1,79 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_async_flattened] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for ListSnapshotsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ListSnapshotsAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]"; + // Make the request + PagedAsyncEnumerable response = bigtableTableAdminClient.ListSnapshotsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Snapshot item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListSnapshotsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Snapshot item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Snapshot item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListSnapshotsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListSnapshotsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..b159209edd06 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListSnapshotsRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,82 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_async] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for ListSnapshotsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ListSnapshotsRequestObjectAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + ListSnapshotsRequest request = new ListSnapshotsRequest + { + ParentAsClusterName = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"), + }; + // Make the request + PagedAsyncEnumerable response = bigtableTableAdminClient.ListSnapshotsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Snapshot item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListSnapshotsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Snapshot item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Snapshot item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListSnapshotsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListSnapshotsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..25697fa19bb4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListSnapshotsRequestObjectSnippet.g.cs @@ -0,0 +1,80 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_sync] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using System; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for ListSnapshots + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ListSnapshotsRequestObject() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + ListSnapshotsRequest request = new ListSnapshotsRequest + { + ParentAsClusterName = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"), + }; + // Make the request + PagedEnumerable response = bigtableTableAdminClient.ListSnapshots(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Snapshot item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListSnapshotsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Snapshot item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Snapshot item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListSnapshotsResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListSnapshotsResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..bdf9cb8da785 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListSnapshotsResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,79 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for ListSnapshotsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ListSnapshotsResourceNamesAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + ClusterName parent = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"); + // Make the request + PagedAsyncEnumerable response = bigtableTableAdminClient.ListSnapshotsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Snapshot item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListSnapshotsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Snapshot item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Snapshot item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListSnapshotsResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListSnapshotsResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..2b27665f0c25 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListSnapshotsResourceNamesSnippet.g.cs @@ -0,0 +1,77 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using System; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for ListSnapshots + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ListSnapshotsResourceNames() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + ClusterName parent = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"); + // Make the request + PagedEnumerable response = bigtableTableAdminClient.ListSnapshots(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Snapshot item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListSnapshotsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Snapshot item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Snapshot item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListSnapshotsSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListSnapshotsSnippet.g.cs new file mode 100755 index 000000000000..c330d740948d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListSnapshotsSnippet.g.cs @@ -0,0 +1,77 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using System; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for ListSnapshots + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ListSnapshots() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]"; + // Make the request + PagedEnumerable response = bigtableTableAdminClient.ListSnapshots(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Snapshot item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListSnapshotsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Snapshot item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Snapshot item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListTablesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListTablesAsyncSnippet.g.cs new file mode 100755 index 000000000000..a8e4e00d0ae7 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListTablesAsyncSnippet.g.cs @@ -0,0 +1,79 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_async_flattened] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for ListTablesAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ListTablesAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]"; + // Make the request + PagedAsyncEnumerable response = bigtableTableAdminClient.ListTablesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Table item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListTablesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Table item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Table item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListTablesRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListTablesRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..ecbceb25a140 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListTablesRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,83 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_async] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for ListTablesAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ListTablesRequestObjectAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + ListTablesRequest request = new ListTablesRequest + { + ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + View = Table.Types.View.Unspecified, + }; + // Make the request + PagedAsyncEnumerable response = bigtableTableAdminClient.ListTablesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Table item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListTablesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Table item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page
singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Table item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListTablesRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListTablesRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..76f544c5ed7f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListTablesRequestObjectSnippet.g.cs @@ -0,0 +1,81 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_sync] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using System; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for ListTables + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ListTablesRequestObject() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + ListTablesRequest request = new ListTablesRequest + { + ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + View = Table.Types.View.Unspecified, + }; + // Make the request + PagedEnumerable response = bigtableTableAdminClient.ListTables(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Table item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListTablesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Table item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page
singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Table item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListTablesResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListTablesResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..d4b432fb4721 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListTablesResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,79 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for ListTablesAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ListTablesResourceNamesAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"); + // Make the request + PagedAsyncEnumerable response = bigtableTableAdminClient.ListTablesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Table item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListTablesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Table item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page
singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Table item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListTablesResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListTablesResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..dcba2712dcb4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListTablesResourceNamesSnippet.g.cs @@ -0,0 +1,77 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using System; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for ListTables + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ListTablesResourceNames() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"); + // Make the request + PagedEnumerable response = bigtableTableAdminClient.ListTables(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Table item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListTablesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Table item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page
singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Table item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListTablesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListTablesSnippet.g.cs new file mode 100755 index 000000000000..fe8d39b22655 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ListTablesSnippet.g.cs @@ -0,0 +1,77 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using System; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for ListTables + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ListTables() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]"; + // Make the request + PagedEnumerable response = bigtableTableAdminClient.ListTables(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Table item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListTablesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Table item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page
singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Table item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ModifyColumnFamiliesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ModifyColumnFamiliesAsyncSnippet.g.cs new file mode 100755 index 000000000000..b9bac352b04d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ModifyColumnFamiliesAsyncSnippet.g.cs @@ -0,0 +1,49 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using System.Collections.Generic; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for ModifyColumnFamiliesAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ModifyColumnFamiliesAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; + IEnumerable modifications = new ModifyColumnFamiliesRequest.Types.Modification[] + { + new ModifyColumnFamiliesRequest.Types.Modification(), + }; + // Make the request + Table response = await bigtableTableAdminClient.ModifyColumnFamiliesAsync(name, modifications); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ModifyColumnFamiliesRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ModifyColumnFamiliesRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..c7976e1d5097 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ModifyColumnFamiliesRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,52 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_async] + using Google.Cloud.Bigtable.Admin.V2; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for ModifyColumnFamiliesAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ModifyColumnFamiliesRequestObjectAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + ModifyColumnFamiliesRequest request = new ModifyColumnFamiliesRequest + { + TableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + Modifications = + { + new ModifyColumnFamiliesRequest.Types.Modification(), + }, + IgnoreWarnings = false, + }; + // Make the request + Table response = await bigtableTableAdminClient.ModifyColumnFamiliesAsync(request); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ModifyColumnFamiliesRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ModifyColumnFamiliesRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..0f28dd8d2f44 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ModifyColumnFamiliesRequestObjectSnippet.g.cs @@ -0,0 +1,51 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_sync] + using Google.Cloud.Bigtable.Admin.V2; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for ModifyColumnFamilies + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ModifyColumnFamiliesRequestObject() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + ModifyColumnFamiliesRequest request = new ModifyColumnFamiliesRequest + { + TableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + Modifications = + { + new ModifyColumnFamiliesRequest.Types.Modification(), + }, + IgnoreWarnings = false, + }; + // Make the request + Table response = bigtableTableAdminClient.ModifyColumnFamilies(request); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ModifyColumnFamiliesResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ModifyColumnFamiliesResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..e3b8f06f766f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ModifyColumnFamiliesResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,49 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_async_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + using System.Collections.Generic; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for ModifyColumnFamiliesAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task ModifyColumnFamiliesResourceNamesAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + TableName name = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"); + IEnumerable modifications = new ModifyColumnFamiliesRequest.Types.Modification[] + { + new ModifyColumnFamiliesRequest.Types.Modification(), + }; + // Make the request + Table response = await bigtableTableAdminClient.ModifyColumnFamiliesAsync(name, modifications); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ModifyColumnFamiliesResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ModifyColumnFamiliesResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..476200d082d4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ModifyColumnFamiliesResourceNamesSnippet.g.cs @@ -0,0 +1,48 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_sync_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + using System.Collections.Generic; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for ModifyColumnFamilies + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ModifyColumnFamiliesResourceNames() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + TableName name = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"); + IEnumerable modifications = new ModifyColumnFamiliesRequest.Types.Modification[] + { + new ModifyColumnFamiliesRequest.Types.Modification(), + }; + // Make the request + Table response = bigtableTableAdminClient.ModifyColumnFamilies(name, modifications); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ModifyColumnFamiliesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ModifyColumnFamiliesSnippet.g.cs new file mode 100755 index 000000000000..543392ffae9a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.ModifyColumnFamiliesSnippet.g.cs @@ -0,0 +1,48 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using System.Collections.Generic; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for ModifyColumnFamilies + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void ModifyColumnFamilies() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; + IEnumerable modifications = new ModifyColumnFamiliesRequest.Types.Modification[] + { + new ModifyColumnFamiliesRequest.Types.Modification(), + }; + // Make the request + Table response = bigtableTableAdminClient.ModifyColumnFamilies(name, modifications); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.RestoreTableRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.RestoreTableRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..2e0807eef266 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.RestoreTableRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,66 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_RestoreTable_async] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for RestoreTableAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task RestoreTableRequestObjectAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + RestoreTableRequest request = new RestoreTableRequest + { + ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + TableId = "", + BackupAsBackupName = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"), + }; + // Make the request + Operation response = await bigtableTableAdminClient.RestoreTableAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Table result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceRestoreTableAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Table retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_RestoreTable_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.RestoreTableRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.RestoreTableRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..b020a53d69c6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.RestoreTableRequestObjectSnippet.g.cs @@ -0,0 +1,65 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_RestoreTable_sync] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for RestoreTable + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void RestoreTableRequestObject() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + RestoreTableRequest request = new RestoreTableRequest + { + ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + TableId = "", + BackupAsBackupName = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"), + }; + // Make the request + Operation response = bigtableTableAdminClient.RestoreTable(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Table result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceRestoreTable(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Table retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_RestoreTable_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SetIamPolicyAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SetIamPolicyAsyncSnippet.g.cs new file mode 100755 index 000000000000..62332dacfca2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SetIamPolicyAsyncSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for SetIamPolicyAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task SetIamPolicyAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + Policy policy = new Policy(); + // Make the request + Policy response = await bigtableTableAdminClient.SetIamPolicyAsync(resource, policy); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SetIamPolicyRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SetIamPolicyRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..8e1c05957e1f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SetIamPolicyRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,52 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_async] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for SetIamPolicyAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task SetIamPolicyRequestObjectAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + SetIamPolicyRequest request = new SetIamPolicyRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Policy = new Policy(), + UpdateMask = new FieldMask(), + }; + // Make the request + Policy response = await bigtableTableAdminClient.SetIamPolicyAsync(request); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SetIamPolicyRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SetIamPolicyRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..881ebd2329ac --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SetIamPolicyRequestObjectSnippet.g.cs @@ -0,0 +1,51 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_sync] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for SetIamPolicy + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void SetIamPolicyRequestObject() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + SetIamPolicyRequest request = new SetIamPolicyRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Policy = new Policy(), + UpdateMask = new FieldMask(), + }; + // Make the request + Policy response = bigtableTableAdminClient.SetIamPolicy(request); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SetIamPolicyResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SetIamPolicyResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..d6f5bb4a9c55 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SetIamPolicyResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for SetIamPolicyAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task SetIamPolicyResourceNamesAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + Policy policy = new Policy(); + // Make the request + Policy response = await bigtableTableAdminClient.SetIamPolicyAsync(resource, policy); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SetIamPolicyResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SetIamPolicyResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..5a250f238b5b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SetIamPolicyResourceNamesSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for SetIamPolicy + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void SetIamPolicyResourceNames() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + Policy policy = new Policy(); + // Make the request + Policy response = bigtableTableAdminClient.SetIamPolicy(resource, policy); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SetIamPolicySnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SetIamPolicySnippet.g.cs new file mode 100755 index 000000000000..506d48eeb99d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SetIamPolicySnippet.g.cs @@ -0,0 +1,45 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for SetIamPolicy + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void SetIamPolicy() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + Policy policy = new Policy(); + // Make the request + Policy response = bigtableTableAdminClient.SetIamPolicy(resource, policy); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SnapshotTableAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SnapshotTableAsyncSnippet.g.cs new file mode 100755 index 000000000000..011996db5247 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SnapshotTableAsyncSnippet.g.cs @@ -0,0 +1,64 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for SnapshotTableAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task SnapshotTableAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; + string cluster = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]"; + string snapshotId = ""; + string description = ""; + // Make the request + Operation response = await bigtableTableAdminClient.SnapshotTableAsync(name, cluster, snapshotId, description); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Snapshot result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceSnapshotTableAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Snapshot retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SnapshotTableRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SnapshotTableRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..b5b4fa2b6589 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SnapshotTableRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,69 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_async] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for SnapshotTableAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task SnapshotTableRequestObjectAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + SnapshotTableRequest request = new SnapshotTableRequest + { + TableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + ClusterAsClusterName = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"), + SnapshotId = "", + Ttl = new Duration(), + Description = "", + }; + // Make the request + Operation response = await bigtableTableAdminClient.SnapshotTableAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Snapshot result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceSnapshotTableAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Snapshot retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SnapshotTableRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SnapshotTableRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..b9903290e840 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SnapshotTableRequestObjectSnippet.g.cs @@ -0,0 +1,68 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_sync] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for SnapshotTable + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void SnapshotTableRequestObject() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + SnapshotTableRequest request = new SnapshotTableRequest + { + TableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + ClusterAsClusterName = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"), + SnapshotId = "", + Ttl = new Duration(), + Description = "", + }; + // Make the request + Operation response = bigtableTableAdminClient.SnapshotTable(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Snapshot result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceSnapshotTable(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Snapshot retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SnapshotTableResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SnapshotTableResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..9ac259671742 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SnapshotTableResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,64 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_async_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for SnapshotTableAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task SnapshotTableResourceNamesAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + TableName name = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"); + ClusterName cluster = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"); + string snapshotId = ""; + string description = ""; + // Make the request + Operation response = await bigtableTableAdminClient.SnapshotTableAsync(name, cluster, snapshotId, description); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Snapshot result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceSnapshotTableAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Snapshot retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SnapshotTableResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SnapshotTableResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..6861a7a368b3 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SnapshotTableResourceNamesSnippet.g.cs @@ -0,0 +1,63 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_sync_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for SnapshotTable + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void SnapshotTableResourceNames() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + TableName name = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"); + ClusterName cluster = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"); + string snapshotId = ""; + string description = ""; + // Make the request + Operation response = bigtableTableAdminClient.SnapshotTable(name, cluster, snapshotId, description); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Snapshot result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceSnapshotTable(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Snapshot retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SnapshotTableSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SnapshotTableSnippet.g.cs new file mode 100755 index 000000000000..050e9ef3ee20 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.SnapshotTableSnippet.g.cs @@ -0,0 +1,63 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for SnapshotTable + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void SnapshotTable() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; + string cluster = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]"; + string snapshotId = ""; + string description = ""; + // Make the request + Operation response = bigtableTableAdminClient.SnapshotTable(name, cluster, snapshotId, description); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Snapshot result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceSnapshotTable(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Snapshot retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.TestIamPermissionsAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.TestIamPermissionsAsyncSnippet.g.cs new file mode 100755 index 000000000000..8003fd1463b5 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.TestIamPermissionsAsyncSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + using System.Collections.Generic; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for TestIamPermissionsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task TestIamPermissionsAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + IEnumerable permissions = new string[] { "", }; + // Make the request + TestIamPermissionsResponse response = await bigtableTableAdminClient.TestIamPermissionsAsync(resource, permissions); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.TestIamPermissionsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.TestIamPermissionsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..e652fb5901a3 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.TestIamPermissionsRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,50 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_async] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for TestIamPermissionsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task TestIamPermissionsRequestObjectAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + TestIamPermissionsRequest request = new TestIamPermissionsRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Permissions = { "", }, + }; + // Make the request + TestIamPermissionsResponse response = await bigtableTableAdminClient.TestIamPermissionsAsync(request); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.TestIamPermissionsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.TestIamPermissionsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..128c3a0aa212 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.TestIamPermissionsRequestObjectSnippet.g.cs @@ -0,0 +1,49 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_sync] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for TestIamPermissions + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void TestIamPermissionsRequestObject() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + TestIamPermissionsRequest request = new TestIamPermissionsRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Permissions = { "", }, + }; + // Make the request + TestIamPermissionsResponse response = bigtableTableAdminClient.TestIamPermissions(request); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.TestIamPermissionsResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.TestIamPermissionsResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..17d42823c551 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.TestIamPermissionsResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,48 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + using System.Collections.Generic; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for TestIamPermissionsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task TestIamPermissionsResourceNamesAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + IEnumerable permissions = new string[] { "", }; + // Make the request + TestIamPermissionsResponse response = await bigtableTableAdminClient.TestIamPermissionsAsync(resource, permissions); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.TestIamPermissionsResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.TestIamPermissionsResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..ce9f24f8ed66 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.TestIamPermissionsResourceNamesSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + using System.Collections.Generic; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for TestIamPermissions + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void TestIamPermissionsResourceNames() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + IEnumerable permissions = new string[] { "", }; + // Make the request + TestIamPermissionsResponse response = bigtableTableAdminClient.TestIamPermissions(resource, permissions); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.TestIamPermissionsSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.TestIamPermissionsSnippet.g.cs new file mode 100755 index 000000000000..6d6f5245d619 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.TestIamPermissionsSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + using System.Collections.Generic; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for TestIamPermissions + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void TestIamPermissions() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + IEnumerable permissions = new string[] { "", }; + // Make the request + TestIamPermissionsResponse response = bigtableTableAdminClient.TestIamPermissions(resource, permissions); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UndeleteTableAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UndeleteTableAsyncSnippet.g.cs new file mode 100755 index 000000000000..b24dceef5207 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UndeleteTableAsyncSnippet.g.cs @@ -0,0 +1,61 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for UndeleteTableAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task UndeleteTableAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; + // Make the request + Operation response = await bigtableTableAdminClient.UndeleteTableAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Table result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceUndeleteTableAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Table retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UndeleteTableRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UndeleteTableRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..5bb320a9ec02 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UndeleteTableRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,64 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_async] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for UndeleteTableAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task UndeleteTableRequestObjectAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + UndeleteTableRequest request = new UndeleteTableRequest + { + TableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + }; + // Make the request + Operation response = await bigtableTableAdminClient.UndeleteTableAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Table result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceUndeleteTableAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Table retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UndeleteTableRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UndeleteTableRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..5fb5be21f80c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UndeleteTableRequestObjectSnippet.g.cs @@ -0,0 +1,63 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_sync] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for UndeleteTable + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void UndeleteTableRequestObject() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + UndeleteTableRequest request = new UndeleteTableRequest + { + TableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + }; + // Make the request + Operation response = bigtableTableAdminClient.UndeleteTable(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Table result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceUndeleteTable(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Table retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UndeleteTableResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UndeleteTableResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..df5e890a6415 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UndeleteTableResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,61 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_async_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for UndeleteTableAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task UndeleteTableResourceNamesAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + TableName name = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"); + // Make the request + Operation response = await bigtableTableAdminClient.UndeleteTableAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Table result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceUndeleteTableAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Table retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UndeleteTableResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UndeleteTableResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..5fc37be58881 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UndeleteTableResourceNamesSnippet.g.cs @@ -0,0 +1,60 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_sync_flattened_resourceNames] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for UndeleteTable + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void UndeleteTableResourceNames() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + TableName name = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"); + // Make the request + Operation response = bigtableTableAdminClient.UndeleteTable(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Table result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceUndeleteTable(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Table retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UndeleteTableSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UndeleteTableSnippet.g.cs new file mode 100755 index 000000000000..cbc290cb670d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UndeleteTableSnippet.g.cs @@ -0,0 +1,60 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for UndeleteTable + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void UndeleteTable() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; + // Make the request + Operation response = bigtableTableAdminClient.UndeleteTable(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Table result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceUndeleteTable(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Table retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateAuthorizedViewAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateAuthorizedViewAsyncSnippet.g.cs new file mode 100755 index 000000000000..a40ecab31813 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateAuthorizedViewAsyncSnippet.g.cs @@ -0,0 +1,63 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for UpdateAuthorizedViewAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task UpdateAuthorizedViewAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + AuthorizedView authorizedView = new AuthorizedView(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = await bigtableTableAdminClient.UpdateAuthorizedViewAsync(authorizedView, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + AuthorizedView result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceUpdateAuthorizedViewAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AuthorizedView retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateAuthorizedViewRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateAuthorizedViewRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..2f24efdbd30d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateAuthorizedViewRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,67 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_async] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for UpdateAuthorizedViewAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task UpdateAuthorizedViewRequestObjectAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + UpdateAuthorizedViewRequest request = new UpdateAuthorizedViewRequest + { + AuthorizedView = new AuthorizedView(), + UpdateMask = new FieldMask(), + IgnoreWarnings = false, + }; + // Make the request + Operation response = await bigtableTableAdminClient.UpdateAuthorizedViewAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + AuthorizedView result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceUpdateAuthorizedViewAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AuthorizedView retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateAuthorizedViewRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateAuthorizedViewRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..5aed356084bc --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateAuthorizedViewRequestObjectSnippet.g.cs @@ -0,0 +1,66 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_sync] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for UpdateAuthorizedView + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void UpdateAuthorizedViewRequestObject() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + UpdateAuthorizedViewRequest request = new UpdateAuthorizedViewRequest + { + AuthorizedView = new AuthorizedView(), + UpdateMask = new FieldMask(), + IgnoreWarnings = false, + }; + // Make the request + Operation response = bigtableTableAdminClient.UpdateAuthorizedView(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + AuthorizedView result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceUpdateAuthorizedView(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AuthorizedView retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateAuthorizedViewSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateAuthorizedViewSnippet.g.cs new file mode 100755 index 000000000000..4b450f67e50c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateAuthorizedViewSnippet.g.cs @@ -0,0 +1,62 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for UpdateAuthorizedView + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void UpdateAuthorizedView() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + AuthorizedView authorizedView = new AuthorizedView(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = bigtableTableAdminClient.UpdateAuthorizedView(authorizedView, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + AuthorizedView result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceUpdateAuthorizedView(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AuthorizedView retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateBackupAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateBackupAsyncSnippet.g.cs new file mode 100755 index 000000000000..faa66df35d6e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateBackupAsyncSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for UpdateBackupAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task UpdateBackupAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + Backup backup = new Backup(); + FieldMask updateMask = new FieldMask(); + // Make the request + Backup response = await bigtableTableAdminClient.UpdateBackupAsync(backup, updateMask); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateBackupRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateBackupRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..7dfd785e3dfb --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateBackupRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,49 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_async] + using Google.Cloud.Bigtable.Admin.V2; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for UpdateBackupAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task UpdateBackupRequestObjectAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + UpdateBackupRequest request = new UpdateBackupRequest + { + Backup = new Backup(), + UpdateMask = new FieldMask(), + }; + // Make the request + Backup response = await bigtableTableAdminClient.UpdateBackupAsync(request); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateBackupRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateBackupRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..6e01aade459c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateBackupRequestObjectSnippet.g.cs @@ -0,0 +1,48 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_sync] + using Google.Cloud.Bigtable.Admin.V2; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for UpdateBackup + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void UpdateBackupRequestObject() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + UpdateBackupRequest request = new UpdateBackupRequest + { + Backup = new Backup(), + UpdateMask = new FieldMask(), + }; + // Make the request + Backup response = bigtableTableAdminClient.UpdateBackup(request); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateBackupSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateBackupSnippet.g.cs new file mode 100755 index 000000000000..6ddf205d885c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateBackupSnippet.g.cs @@ -0,0 +1,45 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for UpdateBackup + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void UpdateBackup() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + Backup backup = new Backup(); + FieldMask updateMask = new FieldMask(); + // Make the request + Backup response = bigtableTableAdminClient.UpdateBackup(backup, updateMask); + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateTableAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateTableAsyncSnippet.g.cs new file mode 100755 index 000000000000..551137e0a198 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateTableAsyncSnippet.g.cs @@ -0,0 +1,63 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_async_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for UpdateTableAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task UpdateTableAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + Table table = new Table(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = await bigtableTableAdminClient.UpdateTableAsync(table, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Table result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceUpdateTableAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Table retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateTableRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateTableRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..a01b244da6a6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateTableRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,66 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_async] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for UpdateTableAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task UpdateTableRequestObjectAsync() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + UpdateTableRequest request = new UpdateTableRequest + { + Table = new Table(), + UpdateMask = new FieldMask(), + }; + // Make the request + Operation response = await bigtableTableAdminClient.UpdateTableAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Table result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceUpdateTableAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Table retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_async] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateTableRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateTableRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..c0e5572538a4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateTableRequestObjectSnippet.g.cs @@ -0,0 +1,65 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_sync] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for UpdateTable + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void UpdateTableRequestObject() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + UpdateTableRequest request = new UpdateTableRequest + { + Table = new Table(), + UpdateMask = new FieldMask(), + }; + // Make the request + Operation response = bigtableTableAdminClient.UpdateTable(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Table result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceUpdateTable(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Table retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_sync] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateTableSnippet.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateTableSnippet.g.cs new file mode 100755 index 000000000000..f0b85f75b5a9 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/BigtableTableAdminClient.UpdateTableSnippet.g.cs @@ -0,0 +1,62 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_sync_flattened] + using Google.Cloud.Bigtable.Admin.V2; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedBigtableTableAdminClientSnippets + { + /// Snippet for UpdateTable + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void UpdateTable() + { + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + Table table = new Table(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = bigtableTableAdminClient.UpdateTable(table, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Table result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceUpdateTable(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Table retrievedResult = retrievedResponse.Result; + } + } + } + // [END bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets.csproj b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets.csproj new file mode 100755 index 000000000000..eca6704f638f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets.csproj @@ -0,0 +1,15 @@ + + + + + net6.0;net462 + latest + + + + + + + + + \ No newline at end of file diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/snippet_metadata_google.bigtable.admin.v2.json b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/snippet_metadata_google.bigtable.admin.v2.json new file mode 100755 index 000000000000..91df088eb443 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.GeneratedSnippets/snippet_metadata_google.bigtable.admin.v2.json @@ -0,0 +1,13971 @@ +{ + "clientLibrary": { + "name": "Google.Cloud.Bigtable.Admin.V2", + "language": "C_SHARP", + "apis": [ + { + "id": "google.bigtable.admin.v2", + "version": "v2" + } + ] + }, + "snippets": [ + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_sync", + "title": "CreateInstanceRequestObject", + "description": "Snippet for CreateInstance", + "file": "BigtableInstanceAdminClient.CreateInstanceRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateInstance", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.CreateInstance", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.CreateInstanceRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "CreateInstance", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateInstance", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 65, + "type": "FULL" + }, + { + "start": 36, + "end": 63, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_async", + "title": "CreateInstanceRequestObjectAsync", + "description": "Snippet for CreateInstanceAsync", + "file": "BigtableInstanceAdminClient.CreateInstanceRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateInstanceAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.CreateInstanceAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.CreateInstanceRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "CreateInstance", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateInstance", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 66, + "type": "FULL" + }, + { + "start": 37, + "end": 64, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_sync_flattened", + "title": "CreateInstance", + "description": "Snippet for CreateInstance", + "file": "BigtableInstanceAdminClient.CreateInstanceSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateInstance", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.CreateInstance", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "instanceId" + }, + { + "type": "Google.Cloud.Bigtable.Admin.V2.Instance", + "name": "instance" + }, + { + "type": "System.Collections.Generic.IDictionary", + "name": "clusters" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "CreateInstance", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateInstance", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 62, + "type": "FULL" + }, + { + "start": 36, + "end": 60, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_async_flattened", + "title": "CreateInstanceAsync", + "description": "Snippet for CreateInstanceAsync", + "file": "BigtableInstanceAdminClient.CreateInstanceAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateInstanceAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.CreateInstanceAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "instanceId" + }, + { + "type": "Google.Cloud.Bigtable.Admin.V2.Instance", + "name": "instance" + }, + { + "type": "System.Collections.Generic.IDictionary", + "name": "clusters" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "CreateInstance", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateInstance", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 63, + "type": "FULL" + }, + { + "start": 37, + "end": 61, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_sync_flattened_resourceNames", + "title": "CreateInstanceResourceNames", + "description": "Snippet for CreateInstance", + "file": "BigtableInstanceAdminClient.CreateInstanceResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateInstance", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.CreateInstance", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.ProjectName", + "name": "parent" + }, + { + "type": "System.String", + "name": "instanceId" + }, + { + "type": "Google.Cloud.Bigtable.Admin.V2.Instance", + "name": "instance" + }, + { + "type": "System.Collections.Generic.IDictionary", + "name": "clusters" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "CreateInstance", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateInstance", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 63, + "type": "FULL" + }, + { + "start": 37, + "end": 61, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_async_flattened_resourceNames", + "title": "CreateInstanceResourceNamesAsync", + "description": "Snippet for CreateInstanceAsync", + "file": "BigtableInstanceAdminClient.CreateInstanceResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateInstanceAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.CreateInstanceAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.ProjectName", + "name": "parent" + }, + { + "type": "System.String", + "name": "instanceId" + }, + { + "type": "Google.Cloud.Bigtable.Admin.V2.Instance", + "name": "instance" + }, + { + "type": "System.Collections.Generic.IDictionary", + "name": "clusters" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "CreateInstance", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateInstance", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 64, + "type": "FULL" + }, + { + "start": 38, + "end": 62, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_sync", + "title": "GetInstanceRequestObject", + "description": "Snippet for GetInstance", + "file": "BigtableInstanceAdminClient.GetInstanceRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetInstance", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.GetInstance", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.GetInstanceRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.Instance", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "GetInstance", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetInstance", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_async", + "title": "GetInstanceRequestObjectAsync", + "description": "Snippet for GetInstanceAsync", + "file": "BigtableInstanceAdminClient.GetInstanceRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetInstanceAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.GetInstanceAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.GetInstanceRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "GetInstance", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetInstance", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_sync_flattened", + "title": "GetInstance", + "description": "Snippet for GetInstance", + "file": "BigtableInstanceAdminClient.GetInstanceSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetInstance", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.GetInstance", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.Instance", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "GetInstance", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetInstance", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_async_flattened", + "title": "GetInstanceAsync", + "description": "Snippet for GetInstanceAsync", + "file": "BigtableInstanceAdminClient.GetInstanceAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetInstanceAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.GetInstanceAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "GetInstance", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetInstance", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_sync_flattened_resourceNames", + "title": "GetInstanceResourceNames", + "description": "Snippet for GetInstance", + "file": "BigtableInstanceAdminClient.GetInstanceResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetInstance", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.GetInstance", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.InstanceName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.Instance", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "GetInstance", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetInstance", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_async_flattened_resourceNames", + "title": "GetInstanceResourceNamesAsync", + "description": "Snippet for GetInstanceAsync", + "file": "BigtableInstanceAdminClient.GetInstanceResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetInstanceAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.GetInstanceAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.InstanceName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "GetInstance", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetInstance", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_sync", + "title": "ListInstancesRequestObject", + "description": "Snippet for ListInstances", + "file": "BigtableInstanceAdminClient.ListInstancesRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListInstances", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.ListInstances", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.ListInstancesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.ListInstancesResponse", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "ListInstances", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListInstances", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_async", + "title": "ListInstancesRequestObjectAsync", + "description": "Snippet for ListInstancesAsync", + "file": "BigtableInstanceAdminClient.ListInstancesRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListInstancesAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.ListInstancesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.ListInstancesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "ListInstances", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListInstances", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_sync_flattened", + "title": "ListInstances", + "description": "Snippet for ListInstances", + "file": "BigtableInstanceAdminClient.ListInstancesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListInstances", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.ListInstances", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.ListInstancesResponse", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "ListInstances", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListInstances", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_async_flattened", + "title": "ListInstancesAsync", + "description": "Snippet for ListInstancesAsync", + "file": "BigtableInstanceAdminClient.ListInstancesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListInstancesAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.ListInstancesAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "ListInstances", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListInstances", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_sync_flattened_resourceNames", + "title": "ListInstancesResourceNames", + "description": "Snippet for ListInstances", + "file": "BigtableInstanceAdminClient.ListInstancesResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListInstances", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.ListInstances", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.ProjectName", + "name": "parent" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.ListInstancesResponse", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "ListInstances", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListInstances", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_async_flattened_resourceNames", + "title": "ListInstancesResourceNamesAsync", + "description": "Snippet for ListInstancesAsync", + "file": "BigtableInstanceAdminClient.ListInstancesResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListInstancesAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.ListInstancesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.ProjectName", + "name": "parent" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "ListInstances", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListInstances", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 36, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateInstance_sync", + "title": "UpdateInstanceRequestObject", + "description": "Snippet for UpdateInstance", + "file": "BigtableInstanceAdminClient.UpdateInstanceRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateInstance", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.UpdateInstance", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.Instance", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.Instance", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "UpdateInstance", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateInstance", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 51, + "type": "FULL" + }, + { + "start": 35, + "end": 49, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateInstance_async", + "title": "UpdateInstanceRequestObjectAsync", + "description": "Snippet for UpdateInstanceAsync", + "file": "BigtableInstanceAdminClient.UpdateInstanceRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateInstanceAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.UpdateInstanceAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.Instance", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "UpdateInstance", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateInstance", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 52, + "type": "FULL" + }, + { + "start": 36, + "end": 50, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_sync", + "title": "PartialUpdateInstanceRequestObject", + "description": "Snippet for PartialUpdateInstance", + "file": "BigtableInstanceAdminClient.PartialUpdateInstanceRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "PartialUpdateInstance", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.PartialUpdateInstance", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.PartialUpdateInstanceRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "PartialUpdateInstance", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateInstance", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 63, + "type": "FULL" + }, + { + "start": 36, + "end": 61, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_async", + "title": "PartialUpdateInstanceRequestObjectAsync", + "description": "Snippet for PartialUpdateInstanceAsync", + "file": "BigtableInstanceAdminClient.PartialUpdateInstanceRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "PartialUpdateInstanceAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.PartialUpdateInstanceAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.PartialUpdateInstanceRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "PartialUpdateInstance", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateInstance", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 64, + "type": "FULL" + }, + { + "start": 37, + "end": 62, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_sync_flattened", + "title": "PartialUpdateInstance", + "description": "Snippet for PartialUpdateInstance", + "file": "BigtableInstanceAdminClient.PartialUpdateInstanceSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "PartialUpdateInstance", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.PartialUpdateInstance", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.Instance", + "name": "instance" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "PartialUpdateInstance", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateInstance", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 36, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_async_flattened", + "title": "PartialUpdateInstanceAsync", + "description": "Snippet for PartialUpdateInstanceAsync", + "file": "BigtableInstanceAdminClient.PartialUpdateInstanceAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "PartialUpdateInstanceAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.PartialUpdateInstanceAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.Instance", + "name": "instance" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "PartialUpdateInstance", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateInstance", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 37, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_sync", + "title": "DeleteInstanceRequestObject", + "description": "Snippet for DeleteInstance", + "file": "BigtableInstanceAdminClient.DeleteInstanceRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteInstance", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.DeleteInstance", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.DeleteInstanceRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "DeleteInstance", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteInstance", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_async", + "title": "DeleteInstanceRequestObjectAsync", + "description": "Snippet for DeleteInstanceAsync", + "file": "BigtableInstanceAdminClient.DeleteInstanceRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteInstanceAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.DeleteInstanceAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.DeleteInstanceRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "DeleteInstance", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteInstance", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_sync_flattened", + "title": "DeleteInstance", + "description": "Snippet for DeleteInstance", + "file": "BigtableInstanceAdminClient.DeleteInstanceSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteInstance", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.DeleteInstance", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "DeleteInstance", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteInstance", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_async_flattened", + "title": "DeleteInstanceAsync", + "description": "Snippet for DeleteInstanceAsync", + "file": "BigtableInstanceAdminClient.DeleteInstanceAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteInstanceAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.DeleteInstanceAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "DeleteInstance", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteInstance", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_sync_flattened_resourceNames", + "title": "DeleteInstanceResourceNames", + "description": "Snippet for DeleteInstance", + "file": "BigtableInstanceAdminClient.DeleteInstanceResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteInstance", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.DeleteInstance", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.InstanceName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "DeleteInstance", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteInstance", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_async_flattened_resourceNames", + "title": "DeleteInstanceResourceNamesAsync", + "description": "Snippet for DeleteInstanceAsync", + "file": "BigtableInstanceAdminClient.DeleteInstanceResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteInstanceAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.DeleteInstanceAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.InstanceName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "DeleteInstance", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteInstance", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_sync", + "title": "CreateClusterRequestObject", + "description": "Snippet for CreateCluster", + "file": "BigtableInstanceAdminClient.CreateClusterRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateCluster", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.CreateCluster", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.CreateClusterRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "CreateCluster", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateCluster", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 63, + "type": "FULL" + }, + { + "start": 35, + "end": 61, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_async", + "title": "CreateClusterRequestObjectAsync", + "description": "Snippet for CreateClusterAsync", + "file": "BigtableInstanceAdminClient.CreateClusterRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateClusterAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.CreateClusterAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.CreateClusterRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "CreateCluster", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateCluster", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 64, + "type": "FULL" + }, + { + "start": 36, + "end": 62, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_sync_flattened", + "title": "CreateCluster", + "description": "Snippet for CreateCluster", + "file": "BigtableInstanceAdminClient.CreateClusterSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateCluster", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.CreateCluster", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "clusterId" + }, + { + "type": "Google.Cloud.Bigtable.Admin.V2.Cluster", + "name": "cluster" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "CreateCluster", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateCluster", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 35, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_async_flattened", + "title": "CreateClusterAsync", + "description": "Snippet for CreateClusterAsync", + "file": "BigtableInstanceAdminClient.CreateClusterAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateClusterAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.CreateClusterAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "clusterId" + }, + { + "type": "Google.Cloud.Bigtable.Admin.V2.Cluster", + "name": "cluster" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "CreateCluster", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateCluster", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 36, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_sync_flattened_resourceNames", + "title": "CreateClusterResourceNames", + "description": "Snippet for CreateCluster", + "file": "BigtableInstanceAdminClient.CreateClusterResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateCluster", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.CreateCluster", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.InstanceName", + "name": "parent" + }, + { + "type": "System.String", + "name": "clusterId" + }, + { + "type": "Google.Cloud.Bigtable.Admin.V2.Cluster", + "name": "cluster" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "CreateCluster", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateCluster", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 35, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_async_flattened_resourceNames", + "title": "CreateClusterResourceNamesAsync", + "description": "Snippet for CreateClusterAsync", + "file": "BigtableInstanceAdminClient.CreateClusterResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateClusterAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.CreateClusterAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.InstanceName", + "name": "parent" + }, + { + "type": "System.String", + "name": "clusterId" + }, + { + "type": "Google.Cloud.Bigtable.Admin.V2.Cluster", + "name": "cluster" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "CreateCluster", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateCluster", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 36, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_sync", + "title": "GetClusterRequestObject", + "description": "Snippet for GetCluster", + "file": "BigtableInstanceAdminClient.GetClusterRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetCluster", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.GetCluster", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.GetClusterRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.Cluster", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "GetCluster", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetCluster", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_async", + "title": "GetClusterRequestObjectAsync", + "description": "Snippet for GetClusterAsync", + "file": "BigtableInstanceAdminClient.GetClusterRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetClusterAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.GetClusterAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.GetClusterRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "GetCluster", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetCluster", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_sync_flattened", + "title": "GetCluster", + "description": "Snippet for GetCluster", + "file": "BigtableInstanceAdminClient.GetClusterSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetCluster", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.GetCluster", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.Cluster", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "GetCluster", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetCluster", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_async_flattened", + "title": "GetClusterAsync", + "description": "Snippet for GetClusterAsync", + "file": "BigtableInstanceAdminClient.GetClusterAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetClusterAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.GetClusterAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "GetCluster", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetCluster", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_sync_flattened_resourceNames", + "title": "GetClusterResourceNames", + "description": "Snippet for GetCluster", + "file": "BigtableInstanceAdminClient.GetClusterResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetCluster", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.GetCluster", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.ClusterName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.Cluster", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "GetCluster", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetCluster", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_async_flattened_resourceNames", + "title": "GetClusterResourceNamesAsync", + "description": "Snippet for GetClusterAsync", + "file": "BigtableInstanceAdminClient.GetClusterResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetClusterAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.GetClusterAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.ClusterName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "GetCluster", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetCluster", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_sync", + "title": "ListClustersRequestObject", + "description": "Snippet for ListClusters", + "file": "BigtableInstanceAdminClient.ListClustersRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListClusters", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.ListClusters", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.ListClustersRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.ListClustersResponse", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "ListClusters", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListClusters", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 34, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_async", + "title": "ListClustersRequestObjectAsync", + "description": "Snippet for ListClustersAsync", + "file": "BigtableInstanceAdminClient.ListClustersRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListClustersAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.ListClustersAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.ListClustersRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "ListClusters", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListClusters", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_sync_flattened", + "title": "ListClusters", + "description": "Snippet for ListClusters", + "file": "BigtableInstanceAdminClient.ListClustersSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListClusters", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.ListClusters", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.ListClustersResponse", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "ListClusters", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListClusters", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_async_flattened", + "title": "ListClustersAsync", + "description": "Snippet for ListClustersAsync", + "file": "BigtableInstanceAdminClient.ListClustersAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListClustersAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.ListClustersAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "ListClusters", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListClusters", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_sync_flattened_resourceNames", + "title": "ListClustersResourceNames", + "description": "Snippet for ListClusters", + "file": "BigtableInstanceAdminClient.ListClustersResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListClusters", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.ListClusters", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.InstanceName", + "name": "parent" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.ListClustersResponse", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "ListClusters", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListClusters", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_async_flattened_resourceNames", + "title": "ListClustersResourceNamesAsync", + "description": "Snippet for ListClustersAsync", + "file": "BigtableInstanceAdminClient.ListClustersResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListClustersAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.ListClustersAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.InstanceName", + "name": "parent" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "ListClusters", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListClusters", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateCluster_sync", + "title": "UpdateClusterRequestObject", + "description": "Snippet for UpdateCluster", + "file": "BigtableInstanceAdminClient.UpdateClusterRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateCluster", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.UpdateCluster", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.Cluster", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "UpdateCluster", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateCluster", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 69, + "type": "FULL" + }, + { + "start": 36, + "end": 67, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateCluster_async", + "title": "UpdateClusterRequestObjectAsync", + "description": "Snippet for UpdateClusterAsync", + "file": "BigtableInstanceAdminClient.UpdateClusterRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateClusterAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.UpdateClusterAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.Cluster", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "UpdateCluster", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateCluster", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 70, + "type": "FULL" + }, + { + "start": 37, + "end": 68, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_sync", + "title": "PartialUpdateClusterRequestObject", + "description": "Snippet for PartialUpdateCluster", + "file": "BigtableInstanceAdminClient.PartialUpdateClusterRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "PartialUpdateCluster", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.PartialUpdateCluster", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.PartialUpdateClusterRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "PartialUpdateCluster", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateCluster", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 63, + "type": "FULL" + }, + { + "start": 36, + "end": 61, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_async", + "title": "PartialUpdateClusterRequestObjectAsync", + "description": "Snippet for PartialUpdateClusterAsync", + "file": "BigtableInstanceAdminClient.PartialUpdateClusterRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "PartialUpdateClusterAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.PartialUpdateClusterAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.PartialUpdateClusterRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "PartialUpdateCluster", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateCluster", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 64, + "type": "FULL" + }, + { + "start": 37, + "end": 62, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_sync_flattened", + "title": "PartialUpdateCluster", + "description": "Snippet for PartialUpdateCluster", + "file": "BigtableInstanceAdminClient.PartialUpdateClusterSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "PartialUpdateCluster", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.PartialUpdateCluster", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.Cluster", + "name": "cluster" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "PartialUpdateCluster", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateCluster", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 36, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_async_flattened", + "title": "PartialUpdateClusterAsync", + "description": "Snippet for PartialUpdateClusterAsync", + "file": "BigtableInstanceAdminClient.PartialUpdateClusterAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "PartialUpdateClusterAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.PartialUpdateClusterAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.Cluster", + "name": "cluster" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "PartialUpdateCluster", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateCluster", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 37, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_sync", + "title": "DeleteClusterRequestObject", + "description": "Snippet for DeleteCluster", + "file": "BigtableInstanceAdminClient.DeleteClusterRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteCluster", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.DeleteCluster", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.DeleteClusterRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "DeleteCluster", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteCluster", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_async", + "title": "DeleteClusterRequestObjectAsync", + "description": "Snippet for DeleteClusterAsync", + "file": "BigtableInstanceAdminClient.DeleteClusterRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteClusterAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.DeleteClusterAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.DeleteClusterRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "DeleteCluster", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteCluster", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_sync_flattened", + "title": "DeleteCluster", + "description": "Snippet for DeleteCluster", + "file": "BigtableInstanceAdminClient.DeleteClusterSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteCluster", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.DeleteCluster", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "DeleteCluster", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteCluster", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_async_flattened", + "title": "DeleteClusterAsync", + "description": "Snippet for DeleteClusterAsync", + "file": "BigtableInstanceAdminClient.DeleteClusterAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteClusterAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.DeleteClusterAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "DeleteCluster", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteCluster", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_sync_flattened_resourceNames", + "title": "DeleteClusterResourceNames", + "description": "Snippet for DeleteCluster", + "file": "BigtableInstanceAdminClient.DeleteClusterResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteCluster", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.DeleteCluster", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.ClusterName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "DeleteCluster", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteCluster", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_async_flattened_resourceNames", + "title": "DeleteClusterResourceNamesAsync", + "description": "Snippet for DeleteClusterAsync", + "file": "BigtableInstanceAdminClient.DeleteClusterResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteClusterAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.DeleteClusterAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.ClusterName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "DeleteCluster", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteCluster", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync", + "title": "CreateAppProfileRequestObject", + "description": "Snippet for CreateAppProfile", + "file": "BigtableInstanceAdminClient.CreateAppProfileRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateAppProfile", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.CreateAppProfile", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.CreateAppProfileRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.AppProfile", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "CreateAppProfile", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateAppProfile", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 34, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_async", + "title": "CreateAppProfileRequestObjectAsync", + "description": "Snippet for CreateAppProfileAsync", + "file": "BigtableInstanceAdminClient.CreateAppProfileRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateAppProfileAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.CreateAppProfileAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.CreateAppProfileRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "CreateAppProfile", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateAppProfile", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 48, + "type": "FULL" + }, + { + "start": 35, + "end": 46, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync_flattened", + "title": "CreateAppProfile", + "description": "Snippet for CreateAppProfile", + "file": "BigtableInstanceAdminClient.CreateAppProfileSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateAppProfile", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.CreateAppProfile", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "appProfileId" + }, + { + "type": "Google.Cloud.Bigtable.Admin.V2.AppProfile", + "name": "appProfile" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.AppProfile", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "CreateAppProfile", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateAppProfile", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 34, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_async_flattened", + "title": "CreateAppProfileAsync", + "description": "Snippet for CreateAppProfileAsync", + "file": "BigtableInstanceAdminClient.CreateAppProfileAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateAppProfileAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.CreateAppProfileAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "appProfileId" + }, + { + "type": "Google.Cloud.Bigtable.Admin.V2.AppProfile", + "name": "appProfile" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "CreateAppProfile", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateAppProfile", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 35, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_sync_flattened_resourceNames", + "title": "CreateAppProfileResourceNames", + "description": "Snippet for CreateAppProfile", + "file": "BigtableInstanceAdminClient.CreateAppProfileResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateAppProfile", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.CreateAppProfile", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.InstanceName", + "name": "parent" + }, + { + "type": "System.String", + "name": "appProfileId" + }, + { + "type": "Google.Cloud.Bigtable.Admin.V2.AppProfile", + "name": "appProfile" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.AppProfile", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "CreateAppProfile", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateAppProfile", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 34, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_async_flattened_resourceNames", + "title": "CreateAppProfileResourceNamesAsync", + "description": "Snippet for CreateAppProfileAsync", + "file": "BigtableInstanceAdminClient.CreateAppProfileResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateAppProfileAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.CreateAppProfileAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.InstanceName", + "name": "parent" + }, + { + "type": "System.String", + "name": "appProfileId" + }, + { + "type": "Google.Cloud.Bigtable.Admin.V2.AppProfile", + "name": "appProfile" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "CreateAppProfile", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateAppProfile", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 35, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_sync", + "title": "GetAppProfileRequestObject", + "description": "Snippet for GetAppProfile", + "file": "BigtableInstanceAdminClient.GetAppProfileRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetAppProfile", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.GetAppProfile", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.GetAppProfileRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.AppProfile", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "GetAppProfile", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetAppProfile", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_async", + "title": "GetAppProfileRequestObjectAsync", + "description": "Snippet for GetAppProfileAsync", + "file": "BigtableInstanceAdminClient.GetAppProfileRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetAppProfileAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.GetAppProfileAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.GetAppProfileRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "GetAppProfile", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetAppProfile", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_sync_flattened", + "title": "GetAppProfile", + "description": "Snippet for GetAppProfile", + "file": "BigtableInstanceAdminClient.GetAppProfileSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetAppProfile", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.GetAppProfile", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.AppProfile", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "GetAppProfile", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetAppProfile", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_async_flattened", + "title": "GetAppProfileAsync", + "description": "Snippet for GetAppProfileAsync", + "file": "BigtableInstanceAdminClient.GetAppProfileAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetAppProfileAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.GetAppProfileAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "GetAppProfile", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetAppProfile", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_sync_flattened_resourceNames", + "title": "GetAppProfileResourceNames", + "description": "Snippet for GetAppProfile", + "file": "BigtableInstanceAdminClient.GetAppProfileResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetAppProfile", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.GetAppProfile", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.AppProfileName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.AppProfile", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "GetAppProfile", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetAppProfile", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_async_flattened_resourceNames", + "title": "GetAppProfileResourceNamesAsync", + "description": "Snippet for GetAppProfileAsync", + "file": "BigtableInstanceAdminClient.GetAppProfileResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetAppProfileAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.GetAppProfileAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.AppProfileName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "GetAppProfile", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetAppProfile", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_sync", + "title": "ListAppProfilesRequestObject", + "description": "Snippet for ListAppProfiles", + "file": "BigtableInstanceAdminClient.ListAppProfilesRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListAppProfiles", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.ListAppProfiles", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.ListAppProfilesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "ListAppProfiles", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListAppProfiles", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 36, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_async", + "title": "ListAppProfilesRequestObjectAsync", + "description": "Snippet for ListAppProfilesAsync", + "file": "BigtableInstanceAdminClient.ListAppProfilesRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListAppProfilesAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.ListAppProfilesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.ListAppProfilesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "ListAppProfiles", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListAppProfiles", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 80, + "type": "FULL" + }, + { + "start": 38, + "end": 78, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_sync_flattened", + "title": "ListAppProfiles", + "description": "Snippet for ListAppProfiles", + "file": "BigtableInstanceAdminClient.ListAppProfilesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListAppProfiles", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.ListAppProfiles", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "pageToken" + }, + { + "type": "System.Nullable[System.Int32]", + "name": "pageSize" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "ListAppProfiles", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListAppProfiles", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_async_flattened", + "title": "ListAppProfilesAsync", + "description": "Snippet for ListAppProfilesAsync", + "file": "BigtableInstanceAdminClient.ListAppProfilesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListAppProfilesAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.ListAppProfilesAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "pageToken" + }, + { + "type": "System.Nullable[System.Int32]", + "name": "pageSize" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "ListAppProfiles", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListAppProfiles", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_sync_flattened_resourceNames", + "title": "ListAppProfilesResourceNames", + "description": "Snippet for ListAppProfiles", + "file": "BigtableInstanceAdminClient.ListAppProfilesResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListAppProfiles", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.ListAppProfiles", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.InstanceName", + "name": "parent" + }, + { + "type": "System.String", + "name": "pageToken" + }, + { + "type": "System.Nullable[System.Int32]", + "name": "pageSize" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "ListAppProfiles", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListAppProfiles", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_async_flattened_resourceNames", + "title": "ListAppProfilesResourceNamesAsync", + "description": "Snippet for ListAppProfilesAsync", + "file": "BigtableInstanceAdminClient.ListAppProfilesResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListAppProfilesAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.ListAppProfilesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.InstanceName", + "name": "parent" + }, + { + "type": "System.String", + "name": "pageToken" + }, + { + "type": "System.Nullable[System.Int32]", + "name": "pageSize" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "ListAppProfiles", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListAppProfiles", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_sync", + "title": "UpdateAppProfileRequestObject", + "description": "Snippet for UpdateAppProfile", + "file": "BigtableInstanceAdminClient.UpdateAppProfileRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateAppProfile", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.UpdateAppProfile", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.UpdateAppProfileRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "UpdateAppProfile", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateAppProfile", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 64, + "type": "FULL" + }, + { + "start": 36, + "end": 62, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_async", + "title": "UpdateAppProfileRequestObjectAsync", + "description": "Snippet for UpdateAppProfileAsync", + "file": "BigtableInstanceAdminClient.UpdateAppProfileRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateAppProfileAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.UpdateAppProfileAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.UpdateAppProfileRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "UpdateAppProfile", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateAppProfile", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 65, + "type": "FULL" + }, + { + "start": 37, + "end": 63, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_sync_flattened", + "title": "UpdateAppProfile", + "description": "Snippet for UpdateAppProfile", + "file": "BigtableInstanceAdminClient.UpdateAppProfileSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateAppProfile", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.UpdateAppProfile", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.AppProfile", + "name": "appProfile" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "UpdateAppProfile", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateAppProfile", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 36, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_async_flattened", + "title": "UpdateAppProfileAsync", + "description": "Snippet for UpdateAppProfileAsync", + "file": "BigtableInstanceAdminClient.UpdateAppProfileAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateAppProfileAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.UpdateAppProfileAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.AppProfile", + "name": "appProfile" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "UpdateAppProfile", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateAppProfile", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 37, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_sync", + "title": "DeleteAppProfileRequestObject", + "description": "Snippet for DeleteAppProfile", + "file": "BigtableInstanceAdminClient.DeleteAppProfileRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteAppProfile", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.DeleteAppProfile", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.DeleteAppProfileRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "DeleteAppProfile", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteAppProfile", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 34, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_async", + "title": "DeleteAppProfileRequestObjectAsync", + "description": "Snippet for DeleteAppProfileAsync", + "file": "BigtableInstanceAdminClient.DeleteAppProfileRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteAppProfileAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.DeleteAppProfileAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.DeleteAppProfileRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "DeleteAppProfile", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteAppProfile", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_sync_flattened", + "title": "DeleteAppProfile", + "description": "Snippet for DeleteAppProfile", + "file": "BigtableInstanceAdminClient.DeleteAppProfileSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteAppProfile", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.DeleteAppProfile", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "DeleteAppProfile", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteAppProfile", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_async_flattened", + "title": "DeleteAppProfileAsync", + "description": "Snippet for DeleteAppProfileAsync", + "file": "BigtableInstanceAdminClient.DeleteAppProfileAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteAppProfileAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.DeleteAppProfileAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "DeleteAppProfile", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteAppProfile", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_sync_flattened_resourceNames", + "title": "DeleteAppProfileResourceNames", + "description": "Snippet for DeleteAppProfile", + "file": "BigtableInstanceAdminClient.DeleteAppProfileResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteAppProfile", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.DeleteAppProfile", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.AppProfileName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "DeleteAppProfile", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteAppProfile", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_async_flattened_resourceNames", + "title": "DeleteAppProfileResourceNamesAsync", + "description": "Snippet for DeleteAppProfileAsync", + "file": "BigtableInstanceAdminClient.DeleteAppProfileResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteAppProfileAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.DeleteAppProfileAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.AppProfileName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "DeleteAppProfile", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteAppProfile", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_sync", + "title": "GetIamPolicyRequestObject", + "description": "Snippet for GetIamPolicy", + "file": "BigtableInstanceAdminClient.GetIamPolicyRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.GetIamPolicy", + "parameters": [ + { + "type": "Google.Cloud.Iam.V1.GetIamPolicyRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Iam.V1.Policy", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetIamPolicy", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_async", + "title": "GetIamPolicyRequestObjectAsync", + "description": "Snippet for GetIamPolicyAsync", + "file": "BigtableInstanceAdminClient.GetIamPolicyRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetIamPolicyAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.GetIamPolicyAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Iam.V1.GetIamPolicyRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetIamPolicy", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 48, + "type": "FULL" + }, + { + "start": 37, + "end": 46, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_sync_flattened", + "title": "GetIamPolicy", + "description": "Snippet for GetIamPolicy", + "file": "BigtableInstanceAdminClient.GetIamPolicySnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.GetIamPolicy", + "parameters": [ + { + "type": "System.String", + "name": "resource" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Iam.V1.Policy", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetIamPolicy", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_async_flattened", + "title": "GetIamPolicyAsync", + "description": "Snippet for GetIamPolicyAsync", + "file": "BigtableInstanceAdminClient.GetIamPolicyAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetIamPolicyAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.GetIamPolicyAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "resource" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetIamPolicy", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 36, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_sync_flattened_resourceNames", + "title": "GetIamPolicyResourceNames", + "description": "Snippet for GetIamPolicy", + "file": "BigtableInstanceAdminClient.GetIamPolicyResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.GetIamPolicy", + "parameters": [ + { + "type": "Google.Api.Gax.IResourceName", + "name": "resource" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Iam.V1.Policy", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetIamPolicy", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 36, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_async_flattened_resourceNames", + "title": "GetIamPolicyResourceNamesAsync", + "description": "Snippet for GetIamPolicyAsync", + "file": "BigtableInstanceAdminClient.GetIamPolicyResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetIamPolicyAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.GetIamPolicyAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.IResourceName", + "name": "resource" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetIamPolicy", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 37, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_sync", + "title": "SetIamPolicyRequestObject", + "description": "Snippet for SetIamPolicy", + "file": "BigtableInstanceAdminClient.SetIamPolicyRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.SetIamPolicy", + "parameters": [ + { + "type": "Google.Cloud.Iam.V1.SetIamPolicyRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Iam.V1.Policy", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.SetIamPolicy", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 49, + "type": "FULL" + }, + { + "start": 37, + "end": 47, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_async", + "title": "SetIamPolicyRequestObjectAsync", + "description": "Snippet for SetIamPolicyAsync", + "file": "BigtableInstanceAdminClient.SetIamPolicyRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetIamPolicyAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.SetIamPolicyAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Iam.V1.SetIamPolicyRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.SetIamPolicy", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + }, + { + "start": 38, + "end": 48, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_sync_flattened", + "title": "SetIamPolicy", + "description": "Snippet for SetIamPolicy", + "file": "BigtableInstanceAdminClient.SetIamPolicySnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.SetIamPolicy", + "parameters": [ + { + "type": "System.String", + "name": "resource" + }, + { + "type": "Google.Cloud.Iam.V1.Policy", + "name": "policy" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Iam.V1.Policy", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.SetIamPolicy", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_async_flattened", + "title": "SetIamPolicyAsync", + "description": "Snippet for SetIamPolicyAsync", + "file": "BigtableInstanceAdminClient.SetIamPolicyAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetIamPolicyAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.SetIamPolicyAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "resource" + }, + { + "type": "Google.Cloud.Iam.V1.Policy", + "name": "policy" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.SetIamPolicy", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_sync_flattened_resourceNames", + "title": "SetIamPolicyResourceNames", + "description": "Snippet for SetIamPolicy", + "file": "BigtableInstanceAdminClient.SetIamPolicyResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.SetIamPolicy", + "parameters": [ + { + "type": "Google.Api.Gax.IResourceName", + "name": "resource" + }, + { + "type": "Google.Cloud.Iam.V1.Policy", + "name": "policy" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Iam.V1.Policy", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.SetIamPolicy", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_async_flattened_resourceNames", + "title": "SetIamPolicyResourceNamesAsync", + "description": "Snippet for SetIamPolicyAsync", + "file": "BigtableInstanceAdminClient.SetIamPolicyResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetIamPolicyAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.SetIamPolicyAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.IResourceName", + "name": "resource" + }, + { + "type": "Google.Cloud.Iam.V1.Policy", + "name": "policy" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.SetIamPolicy", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 37, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_sync", + "title": "TestIamPermissionsRequestObject", + "description": "Snippet for TestIamPermissions", + "file": "BigtableInstanceAdminClient.TestIamPermissionsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.TestIamPermissions", + "parameters": [ + { + "type": "Google.Cloud.Iam.V1.TestIamPermissionsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Iam.V1.TestIamPermissionsResponse", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.TestIamPermissions", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_async", + "title": "TestIamPermissionsRequestObjectAsync", + "description": "Snippet for TestIamPermissionsAsync", + "file": "BigtableInstanceAdminClient.TestIamPermissionsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "TestIamPermissionsAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.TestIamPermissionsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Iam.V1.TestIamPermissionsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.TestIamPermissions", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 48, + "type": "FULL" + }, + { + "start": 37, + "end": 46, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_sync_flattened", + "title": "TestIamPermissions", + "description": "Snippet for TestIamPermissions", + "file": "BigtableInstanceAdminClient.TestIamPermissionsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.TestIamPermissions", + "parameters": [ + { + "type": "System.String", + "name": "resource" + }, + { + "type": "System.Collections.Generic.IEnumerable", + "name": "permissions" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Iam.V1.TestIamPermissionsResponse", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.TestIamPermissions", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_async_flattened", + "title": "TestIamPermissionsAsync", + "description": "Snippet for TestIamPermissionsAsync", + "file": "BigtableInstanceAdminClient.TestIamPermissionsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "TestIamPermissionsAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.TestIamPermissionsAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "resource" + }, + { + "type": "System.Collections.Generic.IEnumerable", + "name": "permissions" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.TestIamPermissions", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 37, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_sync_flattened_resourceNames", + "title": "TestIamPermissionsResourceNames", + "description": "Snippet for TestIamPermissions", + "file": "BigtableInstanceAdminClient.TestIamPermissionsResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.TestIamPermissions", + "parameters": [ + { + "type": "Google.Api.Gax.IResourceName", + "name": "resource" + }, + { + "type": "System.Collections.Generic.IEnumerable", + "name": "permissions" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Iam.V1.TestIamPermissionsResponse", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.TestIamPermissions", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 37, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_async_flattened_resourceNames", + "title": "TestIamPermissionsResourceNamesAsync", + "description": "Snippet for TestIamPermissionsAsync", + "file": "BigtableInstanceAdminClient.TestIamPermissionsResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "TestIamPermissionsAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.TestIamPermissionsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.IResourceName", + "name": "resource" + }, + { + "type": "System.Collections.Generic.IEnumerable", + "name": "permissions" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.TestIamPermissions", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 38, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_sync", + "title": "ListHotTabletsRequestObject", + "description": "Snippet for ListHotTablets", + "file": "BigtableInstanceAdminClient.ListHotTabletsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListHotTablets", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.ListHotTablets", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.ListHotTabletsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "ListHotTablets", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListHotTablets", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 81, + "type": "FULL" + }, + { + "start": 37, + "end": 79, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_async", + "title": "ListHotTabletsRequestObjectAsync", + "description": "Snippet for ListHotTabletsAsync", + "file": "BigtableInstanceAdminClient.ListHotTabletsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListHotTabletsAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.ListHotTabletsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.ListHotTabletsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "ListHotTablets", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListHotTablets", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 83, + "type": "FULL" + }, + { + "start": 39, + "end": 81, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_sync_flattened", + "title": "ListHotTablets", + "description": "Snippet for ListHotTablets", + "file": "BigtableInstanceAdminClient.ListHotTabletsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListHotTablets", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.ListHotTablets", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "pageToken" + }, + { + "type": "System.Nullable[System.Int32]", + "name": "pageSize" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "ListHotTablets", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListHotTablets", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_async_flattened", + "title": "ListHotTabletsAsync", + "description": "Snippet for ListHotTabletsAsync", + "file": "BigtableInstanceAdminClient.ListHotTabletsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListHotTabletsAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.ListHotTabletsAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "pageToken" + }, + { + "type": "System.Nullable[System.Int32]", + "name": "pageSize" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "ListHotTablets", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListHotTablets", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_sync_flattened_resourceNames", + "title": "ListHotTabletsResourceNames", + "description": "Snippet for ListHotTablets", + "file": "BigtableInstanceAdminClient.ListHotTabletsResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListHotTablets", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.ListHotTablets", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.ClusterName", + "name": "parent" + }, + { + "type": "System.String", + "name": "pageToken" + }, + { + "type": "System.Nullable[System.Int32]", + "name": "pageSize" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "ListHotTablets", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListHotTablets", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_async_flattened_resourceNames", + "title": "ListHotTabletsResourceNamesAsync", + "description": "Snippet for ListHotTabletsAsync", + "file": "BigtableInstanceAdminClient.ListHotTabletsResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListHotTabletsAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient.ListHotTabletsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.ClusterName", + "name": "parent" + }, + { + "type": "System.String", + "name": "pageToken" + }, + { + "type": "System.Nullable[System.Int32]", + "name": "pageSize" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "BigtableInstanceAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminClient" + }, + "method": { + "shortName": "ListHotTablets", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListHotTablets", + "service": { + "shortName": "BigtableInstanceAdmin", + "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_sync", + "title": "CreateTableRequestObject", + "description": "Snippet for CreateTable", + "file": "BigtableTableAdminClient.CreateTableRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateTable", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.CreateTable", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.CreateTableRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.Table", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CreateTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + }, + { + "start": 34, + "end": 48, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_async", + "title": "CreateTableRequestObjectAsync", + "description": "Snippet for CreateTableAsync", + "file": "BigtableTableAdminClient.CreateTableRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateTableAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.CreateTableAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.CreateTableRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CreateTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 51, + "type": "FULL" + }, + { + "start": 35, + "end": 49, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_sync_flattened", + "title": "CreateTable", + "description": "Snippet for CreateTable", + "file": "BigtableTableAdminClient.CreateTableSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateTable", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.CreateTable", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "tableId" + }, + { + "type": "Google.Cloud.Bigtable.Admin.V2.Table", + "name": "table" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.Table", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CreateTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 34, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_async_flattened", + "title": "CreateTableAsync", + "description": "Snippet for CreateTableAsync", + "file": "BigtableTableAdminClient.CreateTableAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateTableAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.CreateTableAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "tableId" + }, + { + "type": "Google.Cloud.Bigtable.Admin.V2.Table", + "name": "table" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CreateTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 35, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_sync_flattened_resourceNames", + "title": "CreateTableResourceNames", + "description": "Snippet for CreateTable", + "file": "BigtableTableAdminClient.CreateTableResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateTable", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.CreateTable", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.InstanceName", + "name": "parent" + }, + { + "type": "System.String", + "name": "tableId" + }, + { + "type": "Google.Cloud.Bigtable.Admin.V2.Table", + "name": "table" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.Table", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CreateTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 34, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_async_flattened_resourceNames", + "title": "CreateTableResourceNamesAsync", + "description": "Snippet for CreateTableAsync", + "file": "BigtableTableAdminClient.CreateTableResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateTableAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.CreateTableAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.InstanceName", + "name": "parent" + }, + { + "type": "System.String", + "name": "tableId" + }, + { + "type": "Google.Cloud.Bigtable.Admin.V2.Table", + "name": "table" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CreateTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 35, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_sync", + "title": "CreateTableFromSnapshotRequestObject", + "description": "Snippet for CreateTableFromSnapshot", + "file": "BigtableTableAdminClient.CreateTableFromSnapshotRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateTableFromSnapshot", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.CreateTableFromSnapshot", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.CreateTableFromSnapshotRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CreateTableFromSnapshot", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 63, + "type": "FULL" + }, + { + "start": 35, + "end": 61, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_async", + "title": "CreateTableFromSnapshotRequestObjectAsync", + "description": "Snippet for CreateTableFromSnapshotAsync", + "file": "BigtableTableAdminClient.CreateTableFromSnapshotRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateTableFromSnapshotAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.CreateTableFromSnapshotAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.CreateTableFromSnapshotRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CreateTableFromSnapshot", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 64, + "type": "FULL" + }, + { + "start": 36, + "end": 62, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_sync_flattened", + "title": "CreateTableFromSnapshot", + "description": "Snippet for CreateTableFromSnapshot", + "file": "BigtableTableAdminClient.CreateTableFromSnapshotSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateTableFromSnapshot", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.CreateTableFromSnapshot", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "tableId" + }, + { + "type": "System.String", + "name": "sourceSnapshot" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CreateTableFromSnapshot", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 35, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_async_flattened", + "title": "CreateTableFromSnapshotAsync", + "description": "Snippet for CreateTableFromSnapshotAsync", + "file": "BigtableTableAdminClient.CreateTableFromSnapshotAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateTableFromSnapshotAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.CreateTableFromSnapshotAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "tableId" + }, + { + "type": "System.String", + "name": "sourceSnapshot" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CreateTableFromSnapshot", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 36, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_sync_flattened_resourceNames", + "title": "CreateTableFromSnapshotResourceNames", + "description": "Snippet for CreateTableFromSnapshot", + "file": "BigtableTableAdminClient.CreateTableFromSnapshotResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateTableFromSnapshot", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.CreateTableFromSnapshot", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.InstanceName", + "name": "parent" + }, + { + "type": "System.String", + "name": "tableId" + }, + { + "type": "Google.Cloud.Bigtable.Admin.V2.SnapshotName", + "name": "sourceSnapshot" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CreateTableFromSnapshot", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 35, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_async_flattened_resourceNames", + "title": "CreateTableFromSnapshotResourceNamesAsync", + "description": "Snippet for CreateTableFromSnapshotAsync", + "file": "BigtableTableAdminClient.CreateTableFromSnapshotResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateTableFromSnapshotAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.CreateTableFromSnapshotAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.InstanceName", + "name": "parent" + }, + { + "type": "System.String", + "name": "tableId" + }, + { + "type": "Google.Cloud.Bigtable.Admin.V2.SnapshotName", + "name": "sourceSnapshot" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CreateTableFromSnapshot", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 36, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_sync", + "title": "ListTablesRequestObject", + "description": "Snippet for ListTables", + "file": "BigtableTableAdminClient.ListTablesRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListTables", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.ListTables", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.ListTablesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "ListTables", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListTables", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 79, + "type": "FULL" + }, + { + "start": 36, + "end": 77, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_async", + "title": "ListTablesRequestObjectAsync", + "description": "Snippet for ListTablesAsync", + "file": "BigtableTableAdminClient.ListTablesRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListTablesAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.ListTablesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.ListTablesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "ListTables", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListTables", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 81, + "type": "FULL" + }, + { + "start": 38, + "end": 79, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_sync_flattened", + "title": "ListTables", + "description": "Snippet for ListTables", + "file": "BigtableTableAdminClient.ListTablesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListTables", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.ListTables", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "pageToken" + }, + { + "type": "System.Nullable[System.Int32]", + "name": "pageSize" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "ListTables", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListTables", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_async_flattened", + "title": "ListTablesAsync", + "description": "Snippet for ListTablesAsync", + "file": "BigtableTableAdminClient.ListTablesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListTablesAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.ListTablesAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "pageToken" + }, + { + "type": "System.Nullable[System.Int32]", + "name": "pageSize" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "ListTables", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListTables", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_sync_flattened_resourceNames", + "title": "ListTablesResourceNames", + "description": "Snippet for ListTables", + "file": "BigtableTableAdminClient.ListTablesResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListTables", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.ListTables", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.InstanceName", + "name": "parent" + }, + { + "type": "System.String", + "name": "pageToken" + }, + { + "type": "System.Nullable[System.Int32]", + "name": "pageSize" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "ListTables", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListTables", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_async_flattened_resourceNames", + "title": "ListTablesResourceNamesAsync", + "description": "Snippet for ListTablesAsync", + "file": "BigtableTableAdminClient.ListTablesResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListTablesAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.ListTablesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.InstanceName", + "name": "parent" + }, + { + "type": "System.String", + "name": "pageToken" + }, + { + "type": "System.Nullable[System.Int32]", + "name": "pageSize" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "ListTables", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListTables", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_sync", + "title": "GetTableRequestObject", + "description": "Snippet for GetTable", + "file": "BigtableTableAdminClient.GetTableRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetTable", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.GetTable", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.GetTableRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.Table", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GetTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 34, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_async", + "title": "GetTableRequestObjectAsync", + "description": "Snippet for GetTableAsync", + "file": "BigtableTableAdminClient.GetTableRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetTableAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.GetTableAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.GetTableRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GetTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_sync_flattened", + "title": "GetTable", + "description": "Snippet for GetTable", + "file": "BigtableTableAdminClient.GetTableSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetTable", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.GetTable", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.Table", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GetTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_async_flattened", + "title": "GetTableAsync", + "description": "Snippet for GetTableAsync", + "file": "BigtableTableAdminClient.GetTableAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetTableAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.GetTableAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GetTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_sync_flattened_resourceNames", + "title": "GetTableResourceNames", + "description": "Snippet for GetTable", + "file": "BigtableTableAdminClient.GetTableResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetTable", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.GetTable", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.TableName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.Table", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GetTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_async_flattened_resourceNames", + "title": "GetTableResourceNamesAsync", + "description": "Snippet for GetTableAsync", + "file": "BigtableTableAdminClient.GetTableResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetTableAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.GetTableAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.TableName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GetTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_sync", + "title": "UpdateTableRequestObject", + "description": "Snippet for UpdateTable", + "file": "BigtableTableAdminClient.UpdateTableRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateTable", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.UpdateTable", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.UpdateTableRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "UpdateTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 63, + "type": "FULL" + }, + { + "start": 36, + "end": 61, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_async", + "title": "UpdateTableRequestObjectAsync", + "description": "Snippet for UpdateTableAsync", + "file": "BigtableTableAdminClient.UpdateTableRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateTableAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.UpdateTableAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.UpdateTableRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "UpdateTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 64, + "type": "FULL" + }, + { + "start": 37, + "end": 62, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_sync_flattened", + "title": "UpdateTable", + "description": "Snippet for UpdateTable", + "file": "BigtableTableAdminClient.UpdateTableSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateTable", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.UpdateTable", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.Table", + "name": "table" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "UpdateTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 36, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_async_flattened", + "title": "UpdateTableAsync", + "description": "Snippet for UpdateTableAsync", + "file": "BigtableTableAdminClient.UpdateTableAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateTableAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.UpdateTableAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.Table", + "name": "table" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "UpdateTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 37, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_sync", + "title": "DeleteTableRequestObject", + "description": "Snippet for DeleteTable", + "file": "BigtableTableAdminClient.DeleteTableRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteTable", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.DeleteTable", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.DeleteTableRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "DeleteTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_async", + "title": "DeleteTableRequestObjectAsync", + "description": "Snippet for DeleteTableAsync", + "file": "BigtableTableAdminClient.DeleteTableRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteTableAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.DeleteTableAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.DeleteTableRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "DeleteTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_sync_flattened", + "title": "DeleteTable", + "description": "Snippet for DeleteTable", + "file": "BigtableTableAdminClient.DeleteTableSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteTable", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.DeleteTable", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "DeleteTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_async_flattened", + "title": "DeleteTableAsync", + "description": "Snippet for DeleteTableAsync", + "file": "BigtableTableAdminClient.DeleteTableAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteTableAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.DeleteTableAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "DeleteTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_sync_flattened_resourceNames", + "title": "DeleteTableResourceNames", + "description": "Snippet for DeleteTable", + "file": "BigtableTableAdminClient.DeleteTableResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteTable", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.DeleteTable", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.TableName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "DeleteTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_async_flattened_resourceNames", + "title": "DeleteTableResourceNamesAsync", + "description": "Snippet for DeleteTableAsync", + "file": "BigtableTableAdminClient.DeleteTableResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteTableAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.DeleteTableAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.TableName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "DeleteTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_sync", + "title": "UndeleteTableRequestObject", + "description": "Snippet for UndeleteTable", + "file": "BigtableTableAdminClient.UndeleteTableRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UndeleteTable", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.UndeleteTable", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.UndeleteTableRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "UndeleteTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 35, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_async", + "title": "UndeleteTableRequestObjectAsync", + "description": "Snippet for UndeleteTableAsync", + "file": "BigtableTableAdminClient.UndeleteTableRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UndeleteTableAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.UndeleteTableAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.UndeleteTableRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "UndeleteTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 62, + "type": "FULL" + }, + { + "start": 36, + "end": 60, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_sync_flattened", + "title": "UndeleteTable", + "description": "Snippet for UndeleteTable", + "file": "BigtableTableAdminClient.UndeleteTableSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UndeleteTable", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.UndeleteTable", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "UndeleteTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 58, + "type": "FULL" + }, + { + "start": 35, + "end": 56, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_async_flattened", + "title": "UndeleteTableAsync", + "description": "Snippet for UndeleteTableAsync", + "file": "BigtableTableAdminClient.UndeleteTableAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UndeleteTableAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.UndeleteTableAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "UndeleteTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 59, + "type": "FULL" + }, + { + "start": 36, + "end": 57, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_sync_flattened_resourceNames", + "title": "UndeleteTableResourceNames", + "description": "Snippet for UndeleteTable", + "file": "BigtableTableAdminClient.UndeleteTableResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UndeleteTable", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.UndeleteTable", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.TableName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "UndeleteTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 58, + "type": "FULL" + }, + { + "start": 35, + "end": 56, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_async_flattened_resourceNames", + "title": "UndeleteTableResourceNamesAsync", + "description": "Snippet for UndeleteTableAsync", + "file": "BigtableTableAdminClient.UndeleteTableResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UndeleteTableAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.UndeleteTableAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.TableName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "UndeleteTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 59, + "type": "FULL" + }, + { + "start": 36, + "end": 57, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_sync", + "title": "CreateAuthorizedViewRequestObject", + "description": "Snippet for CreateAuthorizedView", + "file": "BigtableTableAdminClient.CreateAuthorizedViewRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateAuthorizedView", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.CreateAuthorizedView", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.CreateAuthorizedViewRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CreateAuthorizedView", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateAuthorizedView", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 63, + "type": "FULL" + }, + { + "start": 35, + "end": 61, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_async", + "title": "CreateAuthorizedViewRequestObjectAsync", + "description": "Snippet for CreateAuthorizedViewAsync", + "file": "BigtableTableAdminClient.CreateAuthorizedViewRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateAuthorizedViewAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.CreateAuthorizedViewAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.CreateAuthorizedViewRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CreateAuthorizedView", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateAuthorizedView", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 64, + "type": "FULL" + }, + { + "start": 36, + "end": 62, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_sync_flattened", + "title": "CreateAuthorizedView", + "description": "Snippet for CreateAuthorizedView", + "file": "BigtableTableAdminClient.CreateAuthorizedViewSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateAuthorizedView", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.CreateAuthorizedView", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.Bigtable.Admin.V2.AuthorizedView", + "name": "authorizedView" + }, + { + "type": "System.String", + "name": "authorizedViewId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CreateAuthorizedView", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateAuthorizedView", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 35, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_async_flattened", + "title": "CreateAuthorizedViewAsync", + "description": "Snippet for CreateAuthorizedViewAsync", + "file": "BigtableTableAdminClient.CreateAuthorizedViewAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateAuthorizedViewAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.CreateAuthorizedViewAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.Bigtable.Admin.V2.AuthorizedView", + "name": "authorizedView" + }, + { + "type": "System.String", + "name": "authorizedViewId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CreateAuthorizedView", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateAuthorizedView", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 36, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_sync_flattened_resourceNames", + "title": "CreateAuthorizedViewResourceNames", + "description": "Snippet for CreateAuthorizedView", + "file": "BigtableTableAdminClient.CreateAuthorizedViewResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateAuthorizedView", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.CreateAuthorizedView", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.TableName", + "name": "parent" + }, + { + "type": "Google.Cloud.Bigtable.Admin.V2.AuthorizedView", + "name": "authorizedView" + }, + { + "type": "System.String", + "name": "authorizedViewId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CreateAuthorizedView", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateAuthorizedView", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 35, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_async_flattened_resourceNames", + "title": "CreateAuthorizedViewResourceNamesAsync", + "description": "Snippet for CreateAuthorizedViewAsync", + "file": "BigtableTableAdminClient.CreateAuthorizedViewResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateAuthorizedViewAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.CreateAuthorizedViewAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.TableName", + "name": "parent" + }, + { + "type": "Google.Cloud.Bigtable.Admin.V2.AuthorizedView", + "name": "authorizedView" + }, + { + "type": "System.String", + "name": "authorizedViewId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CreateAuthorizedView", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateAuthorizedView", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 36, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_sync", + "title": "ListAuthorizedViewsRequestObject", + "description": "Snippet for ListAuthorizedViews", + "file": "BigtableTableAdminClient.ListAuthorizedViewsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListAuthorizedViews", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.ListAuthorizedViews", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.ListAuthorizedViewsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "ListAuthorizedViews", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 79, + "type": "FULL" + }, + { + "start": 36, + "end": 77, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_async", + "title": "ListAuthorizedViewsRequestObjectAsync", + "description": "Snippet for ListAuthorizedViewsAsync", + "file": "BigtableTableAdminClient.ListAuthorizedViewsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListAuthorizedViewsAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.ListAuthorizedViewsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.ListAuthorizedViewsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "ListAuthorizedViews", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 81, + "type": "FULL" + }, + { + "start": 38, + "end": 79, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_sync_flattened", + "title": "ListAuthorizedViews", + "description": "Snippet for ListAuthorizedViews", + "file": "BigtableTableAdminClient.ListAuthorizedViewsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListAuthorizedViews", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.ListAuthorizedViews", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "pageToken" + }, + { + "type": "System.Nullable[System.Int32]", + "name": "pageSize" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "ListAuthorizedViews", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_async_flattened", + "title": "ListAuthorizedViewsAsync", + "description": "Snippet for ListAuthorizedViewsAsync", + "file": "BigtableTableAdminClient.ListAuthorizedViewsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListAuthorizedViewsAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.ListAuthorizedViewsAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "pageToken" + }, + { + "type": "System.Nullable[System.Int32]", + "name": "pageSize" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "ListAuthorizedViews", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_sync_flattened_resourceNames", + "title": "ListAuthorizedViewsResourceNames", + "description": "Snippet for ListAuthorizedViews", + "file": "BigtableTableAdminClient.ListAuthorizedViewsResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListAuthorizedViews", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.ListAuthorizedViews", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.TableName", + "name": "parent" + }, + { + "type": "System.String", + "name": "pageToken" + }, + { + "type": "System.Nullable[System.Int32]", + "name": "pageSize" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "ListAuthorizedViews", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_async_flattened_resourceNames", + "title": "ListAuthorizedViewsResourceNamesAsync", + "description": "Snippet for ListAuthorizedViewsAsync", + "file": "BigtableTableAdminClient.ListAuthorizedViewsResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListAuthorizedViewsAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.ListAuthorizedViewsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.TableName", + "name": "parent" + }, + { + "type": "System.String", + "name": "pageToken" + }, + { + "type": "System.Nullable[System.Int32]", + "name": "pageSize" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "ListAuthorizedViews", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_sync", + "title": "GetAuthorizedViewRequestObject", + "description": "Snippet for GetAuthorizedView", + "file": "BigtableTableAdminClient.GetAuthorizedViewRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetAuthorizedView", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.GetAuthorizedView", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.GetAuthorizedViewRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.AuthorizedView", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GetAuthorizedView", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetAuthorizedView", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 34, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_async", + "title": "GetAuthorizedViewRequestObjectAsync", + "description": "Snippet for GetAuthorizedViewAsync", + "file": "BigtableTableAdminClient.GetAuthorizedViewRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetAuthorizedViewAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.GetAuthorizedViewAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.GetAuthorizedViewRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GetAuthorizedView", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetAuthorizedView", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_sync_flattened", + "title": "GetAuthorizedView", + "description": "Snippet for GetAuthorizedView", + "file": "BigtableTableAdminClient.GetAuthorizedViewSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetAuthorizedView", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.GetAuthorizedView", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.AuthorizedView", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GetAuthorizedView", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetAuthorizedView", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_async_flattened", + "title": "GetAuthorizedViewAsync", + "description": "Snippet for GetAuthorizedViewAsync", + "file": "BigtableTableAdminClient.GetAuthorizedViewAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetAuthorizedViewAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.GetAuthorizedViewAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GetAuthorizedView", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetAuthorizedView", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_sync_flattened_resourceNames", + "title": "GetAuthorizedViewResourceNames", + "description": "Snippet for GetAuthorizedView", + "file": "BigtableTableAdminClient.GetAuthorizedViewResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetAuthorizedView", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.GetAuthorizedView", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.AuthorizedViewName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.AuthorizedView", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GetAuthorizedView", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetAuthorizedView", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_async_flattened_resourceNames", + "title": "GetAuthorizedViewResourceNamesAsync", + "description": "Snippet for GetAuthorizedViewAsync", + "file": "BigtableTableAdminClient.GetAuthorizedViewResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetAuthorizedViewAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.GetAuthorizedViewAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.AuthorizedViewName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GetAuthorizedView", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetAuthorizedView", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_sync", + "title": "UpdateAuthorizedViewRequestObject", + "description": "Snippet for UpdateAuthorizedView", + "file": "BigtableTableAdminClient.UpdateAuthorizedViewRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateAuthorizedView", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.UpdateAuthorizedView", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.UpdateAuthorizedViewRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "UpdateAuthorizedView", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateAuthorizedView", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 64, + "type": "FULL" + }, + { + "start": 36, + "end": 62, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_async", + "title": "UpdateAuthorizedViewRequestObjectAsync", + "description": "Snippet for UpdateAuthorizedViewAsync", + "file": "BigtableTableAdminClient.UpdateAuthorizedViewRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateAuthorizedViewAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.UpdateAuthorizedViewAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.UpdateAuthorizedViewRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "UpdateAuthorizedView", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateAuthorizedView", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 65, + "type": "FULL" + }, + { + "start": 37, + "end": 63, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_sync_flattened", + "title": "UpdateAuthorizedView", + "description": "Snippet for UpdateAuthorizedView", + "file": "BigtableTableAdminClient.UpdateAuthorizedViewSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateAuthorizedView", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.UpdateAuthorizedView", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.AuthorizedView", + "name": "authorizedView" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "UpdateAuthorizedView", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateAuthorizedView", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 36, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_async_flattened", + "title": "UpdateAuthorizedViewAsync", + "description": "Snippet for UpdateAuthorizedViewAsync", + "file": "BigtableTableAdminClient.UpdateAuthorizedViewAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateAuthorizedViewAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.UpdateAuthorizedViewAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.AuthorizedView", + "name": "authorizedView" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "UpdateAuthorizedView", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateAuthorizedView", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 37, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_sync", + "title": "DeleteAuthorizedViewRequestObject", + "description": "Snippet for DeleteAuthorizedView", + "file": "BigtableTableAdminClient.DeleteAuthorizedViewRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteAuthorizedView", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.DeleteAuthorizedView", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.DeleteAuthorizedViewRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "DeleteAuthorizedView", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteAuthorizedView", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 34, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_async", + "title": "DeleteAuthorizedViewRequestObjectAsync", + "description": "Snippet for DeleteAuthorizedViewAsync", + "file": "BigtableTableAdminClient.DeleteAuthorizedViewRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteAuthorizedViewAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.DeleteAuthorizedViewAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.DeleteAuthorizedViewRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "DeleteAuthorizedView", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteAuthorizedView", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_sync_flattened", + "title": "DeleteAuthorizedView", + "description": "Snippet for DeleteAuthorizedView", + "file": "BigtableTableAdminClient.DeleteAuthorizedViewSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteAuthorizedView", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.DeleteAuthorizedView", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "DeleteAuthorizedView", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteAuthorizedView", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_async_flattened", + "title": "DeleteAuthorizedViewAsync", + "description": "Snippet for DeleteAuthorizedViewAsync", + "file": "BigtableTableAdminClient.DeleteAuthorizedViewAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteAuthorizedViewAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.DeleteAuthorizedViewAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "DeleteAuthorizedView", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteAuthorizedView", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_sync_flattened_resourceNames", + "title": "DeleteAuthorizedViewResourceNames", + "description": "Snippet for DeleteAuthorizedView", + "file": "BigtableTableAdminClient.DeleteAuthorizedViewResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteAuthorizedView", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.DeleteAuthorizedView", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.AuthorizedViewName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "DeleteAuthorizedView", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteAuthorizedView", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_async_flattened_resourceNames", + "title": "DeleteAuthorizedViewResourceNamesAsync", + "description": "Snippet for DeleteAuthorizedViewAsync", + "file": "BigtableTableAdminClient.DeleteAuthorizedViewResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteAuthorizedViewAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.DeleteAuthorizedViewAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.AuthorizedViewName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "DeleteAuthorizedView", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteAuthorizedView", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_sync", + "title": "ModifyColumnFamiliesRequestObject", + "description": "Snippet for ModifyColumnFamilies", + "file": "BigtableTableAdminClient.ModifyColumnFamiliesRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ModifyColumnFamilies", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.ModifyColumnFamilies", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.ModifyColumnFamiliesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.Table", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "ModifyColumnFamilies", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 49, + "type": "FULL" + }, + { + "start": 34, + "end": 47, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_async", + "title": "ModifyColumnFamiliesRequestObjectAsync", + "description": "Snippet for ModifyColumnFamiliesAsync", + "file": "BigtableTableAdminClient.ModifyColumnFamiliesRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ModifyColumnFamiliesAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.ModifyColumnFamiliesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.ModifyColumnFamiliesRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "ModifyColumnFamilies", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + }, + { + "start": 35, + "end": 48, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_sync_flattened", + "title": "ModifyColumnFamilies", + "description": "Snippet for ModifyColumnFamilies", + "file": "BigtableTableAdminClient.ModifyColumnFamiliesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ModifyColumnFamilies", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.ModifyColumnFamilies", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "System.Collections.Generic.IEnumerable", + "name": "modifications" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.Table", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "ModifyColumnFamilies", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_async_flattened", + "title": "ModifyColumnFamiliesAsync", + "description": "Snippet for ModifyColumnFamiliesAsync", + "file": "BigtableTableAdminClient.ModifyColumnFamiliesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ModifyColumnFamiliesAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.ModifyColumnFamiliesAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "System.Collections.Generic.IEnumerable", + "name": "modifications" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "ModifyColumnFamilies", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_sync_flattened_resourceNames", + "title": "ModifyColumnFamiliesResourceNames", + "description": "Snippet for ModifyColumnFamilies", + "file": "BigtableTableAdminClient.ModifyColumnFamiliesResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ModifyColumnFamilies", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.ModifyColumnFamilies", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.TableName", + "name": "name" + }, + { + "type": "System.Collections.Generic.IEnumerable", + "name": "modifications" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.Table", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "ModifyColumnFamilies", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_async_flattened_resourceNames", + "title": "ModifyColumnFamiliesResourceNamesAsync", + "description": "Snippet for ModifyColumnFamiliesAsync", + "file": "BigtableTableAdminClient.ModifyColumnFamiliesResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ModifyColumnFamiliesAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.ModifyColumnFamiliesAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.TableName", + "name": "name" + }, + { + "type": "System.Collections.Generic.IEnumerable", + "name": "modifications" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "ModifyColumnFamilies", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DropRowRange_sync", + "title": "DropRowRangeRequestObject", + "description": "Snippet for DropRowRange", + "file": "BigtableTableAdminClient.DropRowRangeRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DropRowRange", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.DropRowRange", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.DropRowRangeRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "DropRowRange", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DropRowRange_async", + "title": "DropRowRangeRequestObjectAsync", + "description": "Snippet for DropRowRangeAsync", + "file": "BigtableTableAdminClient.DropRowRangeRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DropRowRangeAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.DropRowRangeAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.DropRowRangeRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "DropRowRange", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_sync", + "title": "GenerateConsistencyTokenRequestObject", + "description": "Snippet for GenerateConsistencyToken", + "file": "BigtableTableAdminClient.GenerateConsistencyTokenRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GenerateConsistencyToken", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.GenerateConsistencyToken", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.GenerateConsistencyTokenRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.GenerateConsistencyTokenResponse", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GenerateConsistencyToken", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_async", + "title": "GenerateConsistencyTokenRequestObjectAsync", + "description": "Snippet for GenerateConsistencyTokenAsync", + "file": "BigtableTableAdminClient.GenerateConsistencyTokenRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GenerateConsistencyTokenAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.GenerateConsistencyTokenAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.GenerateConsistencyTokenRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GenerateConsistencyToken", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_sync_flattened", + "title": "GenerateConsistencyToken", + "description": "Snippet for GenerateConsistencyToken", + "file": "BigtableTableAdminClient.GenerateConsistencyTokenSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GenerateConsistencyToken", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.GenerateConsistencyToken", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.GenerateConsistencyTokenResponse", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GenerateConsistencyToken", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_async_flattened", + "title": "GenerateConsistencyTokenAsync", + "description": "Snippet for GenerateConsistencyTokenAsync", + "file": "BigtableTableAdminClient.GenerateConsistencyTokenAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GenerateConsistencyTokenAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.GenerateConsistencyTokenAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GenerateConsistencyToken", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_sync_flattened_resourceNames", + "title": "GenerateConsistencyTokenResourceNames", + "description": "Snippet for GenerateConsistencyToken", + "file": "BigtableTableAdminClient.GenerateConsistencyTokenResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GenerateConsistencyToken", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.GenerateConsistencyToken", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.TableName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.GenerateConsistencyTokenResponse", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GenerateConsistencyToken", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_async_flattened_resourceNames", + "title": "GenerateConsistencyTokenResourceNamesAsync", + "description": "Snippet for GenerateConsistencyTokenAsync", + "file": "BigtableTableAdminClient.GenerateConsistencyTokenResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GenerateConsistencyTokenAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.GenerateConsistencyTokenAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.TableName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GenerateConsistencyToken", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_sync", + "title": "CheckConsistencyRequestObject", + "description": "Snippet for CheckConsistency", + "file": "BigtableTableAdminClient.CheckConsistencyRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CheckConsistency", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.CheckConsistency", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.CheckConsistencyRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.CheckConsistencyResponse", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CheckConsistency", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 34, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_async", + "title": "CheckConsistencyRequestObjectAsync", + "description": "Snippet for CheckConsistencyAsync", + "file": "BigtableTableAdminClient.CheckConsistencyRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CheckConsistencyAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.CheckConsistencyAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.CheckConsistencyRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CheckConsistency", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 35, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_sync_flattened", + "title": "CheckConsistency", + "description": "Snippet for CheckConsistency", + "file": "BigtableTableAdminClient.CheckConsistencySnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CheckConsistency", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.CheckConsistency", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "System.String", + "name": "consistencyToken" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.CheckConsistencyResponse", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CheckConsistency", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 34, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_async_flattened", + "title": "CheckConsistencyAsync", + "description": "Snippet for CheckConsistencyAsync", + "file": "BigtableTableAdminClient.CheckConsistencyAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CheckConsistencyAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.CheckConsistencyAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "System.String", + "name": "consistencyToken" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CheckConsistency", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_sync_flattened_resourceNames", + "title": "CheckConsistencyResourceNames", + "description": "Snippet for CheckConsistency", + "file": "BigtableTableAdminClient.CheckConsistencyResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CheckConsistency", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.CheckConsistency", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.TableName", + "name": "name" + }, + { + "type": "System.String", + "name": "consistencyToken" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.CheckConsistencyResponse", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CheckConsistency", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 34, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_async_flattened_resourceNames", + "title": "CheckConsistencyResourceNamesAsync", + "description": "Snippet for CheckConsistencyAsync", + "file": "BigtableTableAdminClient.CheckConsistencyResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CheckConsistencyAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.CheckConsistencyAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.TableName", + "name": "name" + }, + { + "type": "System.String", + "name": "consistencyToken" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CheckConsistency", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_sync", + "title": "SnapshotTableRequestObject", + "description": "Snippet for SnapshotTable", + "file": "BigtableTableAdminClient.SnapshotTableRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SnapshotTable", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.SnapshotTable", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.SnapshotTableRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "SnapshotTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 66, + "type": "FULL" + }, + { + "start": 36, + "end": 64, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_async", + "title": "SnapshotTableRequestObjectAsync", + "description": "Snippet for SnapshotTableAsync", + "file": "BigtableTableAdminClient.SnapshotTableRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SnapshotTableAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.SnapshotTableAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.SnapshotTableRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "SnapshotTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 67, + "type": "FULL" + }, + { + "start": 37, + "end": 65, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_sync_flattened", + "title": "SnapshotTable", + "description": "Snippet for SnapshotTable", + "file": "BigtableTableAdminClient.SnapshotTableSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SnapshotTable", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.SnapshotTable", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "System.String", + "name": "cluster" + }, + { + "type": "System.String", + "name": "snapshotId" + }, + { + "type": "System.String", + "name": "description" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "SnapshotTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 35, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_async_flattened", + "title": "SnapshotTableAsync", + "description": "Snippet for SnapshotTableAsync", + "file": "BigtableTableAdminClient.SnapshotTableAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SnapshotTableAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.SnapshotTableAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "System.String", + "name": "cluster" + }, + { + "type": "System.String", + "name": "snapshotId" + }, + { + "type": "System.String", + "name": "description" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "SnapshotTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 62, + "type": "FULL" + }, + { + "start": 36, + "end": 60, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_sync_flattened_resourceNames", + "title": "SnapshotTableResourceNames", + "description": "Snippet for SnapshotTable", + "file": "BigtableTableAdminClient.SnapshotTableResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SnapshotTable", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.SnapshotTable", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.TableName", + "name": "name" + }, + { + "type": "Google.Cloud.Bigtable.Admin.V2.ClusterName", + "name": "cluster" + }, + { + "type": "System.String", + "name": "snapshotId" + }, + { + "type": "System.String", + "name": "description" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "SnapshotTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 35, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_async_flattened_resourceNames", + "title": "SnapshotTableResourceNamesAsync", + "description": "Snippet for SnapshotTableAsync", + "file": "BigtableTableAdminClient.SnapshotTableResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SnapshotTableAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.SnapshotTableAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.TableName", + "name": "name" + }, + { + "type": "Google.Cloud.Bigtable.Admin.V2.ClusterName", + "name": "cluster" + }, + { + "type": "System.String", + "name": "snapshotId" + }, + { + "type": "System.String", + "name": "description" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "SnapshotTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 62, + "type": "FULL" + }, + { + "start": 36, + "end": 60, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_sync", + "title": "GetSnapshotRequestObject", + "description": "Snippet for GetSnapshot", + "file": "BigtableTableAdminClient.GetSnapshotRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSnapshot", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.GetSnapshot", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.GetSnapshotRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.Snapshot", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GetSnapshot", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_async", + "title": "GetSnapshotRequestObjectAsync", + "description": "Snippet for GetSnapshotAsync", + "file": "BigtableTableAdminClient.GetSnapshotRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSnapshotAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.GetSnapshotAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.GetSnapshotRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GetSnapshot", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_sync_flattened", + "title": "GetSnapshot", + "description": "Snippet for GetSnapshot", + "file": "BigtableTableAdminClient.GetSnapshotSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSnapshot", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.GetSnapshot", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.Snapshot", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GetSnapshot", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_async_flattened", + "title": "GetSnapshotAsync", + "description": "Snippet for GetSnapshotAsync", + "file": "BigtableTableAdminClient.GetSnapshotAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSnapshotAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.GetSnapshotAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GetSnapshot", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_sync_flattened_resourceNames", + "title": "GetSnapshotResourceNames", + "description": "Snippet for GetSnapshot", + "file": "BigtableTableAdminClient.GetSnapshotResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSnapshot", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.GetSnapshot", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.SnapshotName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.Snapshot", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GetSnapshot", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_async_flattened_resourceNames", + "title": "GetSnapshotResourceNamesAsync", + "description": "Snippet for GetSnapshotAsync", + "file": "BigtableTableAdminClient.GetSnapshotResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSnapshotAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.GetSnapshotAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.SnapshotName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GetSnapshot", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_sync", + "title": "ListSnapshotsRequestObject", + "description": "Snippet for ListSnapshots", + "file": "BigtableTableAdminClient.ListSnapshotsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSnapshots", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.ListSnapshots", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.ListSnapshotsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "ListSnapshots", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 36, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_async", + "title": "ListSnapshotsRequestObjectAsync", + "description": "Snippet for ListSnapshotsAsync", + "file": "BigtableTableAdminClient.ListSnapshotsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSnapshotsAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.ListSnapshotsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.ListSnapshotsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "ListSnapshots", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 80, + "type": "FULL" + }, + { + "start": 38, + "end": 78, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_sync_flattened", + "title": "ListSnapshots", + "description": "Snippet for ListSnapshots", + "file": "BigtableTableAdminClient.ListSnapshotsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSnapshots", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.ListSnapshots", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "pageToken" + }, + { + "type": "System.Nullable[System.Int32]", + "name": "pageSize" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "ListSnapshots", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_async_flattened", + "title": "ListSnapshotsAsync", + "description": "Snippet for ListSnapshotsAsync", + "file": "BigtableTableAdminClient.ListSnapshotsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSnapshotsAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.ListSnapshotsAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "pageToken" + }, + { + "type": "System.Nullable[System.Int32]", + "name": "pageSize" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "ListSnapshots", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_sync_flattened_resourceNames", + "title": "ListSnapshotsResourceNames", + "description": "Snippet for ListSnapshots", + "file": "BigtableTableAdminClient.ListSnapshotsResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSnapshots", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.ListSnapshots", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.ClusterName", + "name": "parent" + }, + { + "type": "System.String", + "name": "pageToken" + }, + { + "type": "System.Nullable[System.Int32]", + "name": "pageSize" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "ListSnapshots", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_async_flattened_resourceNames", + "title": "ListSnapshotsResourceNamesAsync", + "description": "Snippet for ListSnapshotsAsync", + "file": "BigtableTableAdminClient.ListSnapshotsResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSnapshotsAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.ListSnapshotsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.ClusterName", + "name": "parent" + }, + { + "type": "System.String", + "name": "pageToken" + }, + { + "type": "System.Nullable[System.Int32]", + "name": "pageSize" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "ListSnapshots", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_sync", + "title": "DeleteSnapshotRequestObject", + "description": "Snippet for DeleteSnapshot", + "file": "BigtableTableAdminClient.DeleteSnapshotRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteSnapshot", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.DeleteSnapshot", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.DeleteSnapshotRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "DeleteSnapshot", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_async", + "title": "DeleteSnapshotRequestObjectAsync", + "description": "Snippet for DeleteSnapshotAsync", + "file": "BigtableTableAdminClient.DeleteSnapshotRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteSnapshotAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.DeleteSnapshotAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.DeleteSnapshotRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "DeleteSnapshot", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_sync_flattened", + "title": "DeleteSnapshot", + "description": "Snippet for DeleteSnapshot", + "file": "BigtableTableAdminClient.DeleteSnapshotSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteSnapshot", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.DeleteSnapshot", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "DeleteSnapshot", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_async_flattened", + "title": "DeleteSnapshotAsync", + "description": "Snippet for DeleteSnapshotAsync", + "file": "BigtableTableAdminClient.DeleteSnapshotAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteSnapshotAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.DeleteSnapshotAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "DeleteSnapshot", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_sync_flattened_resourceNames", + "title": "DeleteSnapshotResourceNames", + "description": "Snippet for DeleteSnapshot", + "file": "BigtableTableAdminClient.DeleteSnapshotResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteSnapshot", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.DeleteSnapshot", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.SnapshotName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "DeleteSnapshot", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_async_flattened_resourceNames", + "title": "DeleteSnapshotResourceNamesAsync", + "description": "Snippet for DeleteSnapshotAsync", + "file": "BigtableTableAdminClient.DeleteSnapshotResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteSnapshotAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.DeleteSnapshotAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.SnapshotName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "DeleteSnapshot", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_sync", + "title": "CreateBackupRequestObject", + "description": "Snippet for CreateBackup", + "file": "BigtableTableAdminClient.CreateBackupRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateBackup", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.CreateBackup", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.CreateBackupRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CreateBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 63, + "type": "FULL" + }, + { + "start": 35, + "end": 61, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_async", + "title": "CreateBackupRequestObjectAsync", + "description": "Snippet for CreateBackupAsync", + "file": "BigtableTableAdminClient.CreateBackupRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateBackupAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.CreateBackupAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.CreateBackupRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CreateBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 64, + "type": "FULL" + }, + { + "start": 36, + "end": 62, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_sync_flattened", + "title": "CreateBackup", + "description": "Snippet for CreateBackup", + "file": "BigtableTableAdminClient.CreateBackupSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateBackup", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.CreateBackup", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "backupId" + }, + { + "type": "Google.Cloud.Bigtable.Admin.V2.Backup", + "name": "backup" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CreateBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 35, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_async_flattened", + "title": "CreateBackupAsync", + "description": "Snippet for CreateBackupAsync", + "file": "BigtableTableAdminClient.CreateBackupAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateBackupAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.CreateBackupAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "backupId" + }, + { + "type": "Google.Cloud.Bigtable.Admin.V2.Backup", + "name": "backup" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CreateBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 36, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_sync_flattened_resourceNames", + "title": "CreateBackupResourceNames", + "description": "Snippet for CreateBackup", + "file": "BigtableTableAdminClient.CreateBackupResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateBackup", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.CreateBackup", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.ClusterName", + "name": "parent" + }, + { + "type": "System.String", + "name": "backupId" + }, + { + "type": "Google.Cloud.Bigtable.Admin.V2.Backup", + "name": "backup" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CreateBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 35, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_async_flattened_resourceNames", + "title": "CreateBackupResourceNamesAsync", + "description": "Snippet for CreateBackupAsync", + "file": "BigtableTableAdminClient.CreateBackupResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateBackupAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.CreateBackupAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.ClusterName", + "name": "parent" + }, + { + "type": "System.String", + "name": "backupId" + }, + { + "type": "Google.Cloud.Bigtable.Admin.V2.Backup", + "name": "backup" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CreateBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 36, + "end": 59, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_sync", + "title": "GetBackupRequestObject", + "description": "Snippet for GetBackup", + "file": "BigtableTableAdminClient.GetBackupRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetBackup", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.GetBackup", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.GetBackupRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.Backup", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GetBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetBackup", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_async", + "title": "GetBackupRequestObjectAsync", + "description": "Snippet for GetBackupAsync", + "file": "BigtableTableAdminClient.GetBackupRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetBackupAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.GetBackupAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.GetBackupRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GetBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetBackup", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_sync_flattened", + "title": "GetBackup", + "description": "Snippet for GetBackup", + "file": "BigtableTableAdminClient.GetBackupSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetBackup", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.GetBackup", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.Backup", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GetBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetBackup", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_async_flattened", + "title": "GetBackupAsync", + "description": "Snippet for GetBackupAsync", + "file": "BigtableTableAdminClient.GetBackupAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetBackupAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.GetBackupAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GetBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetBackup", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_sync_flattened_resourceNames", + "title": "GetBackupResourceNames", + "description": "Snippet for GetBackup", + "file": "BigtableTableAdminClient.GetBackupResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetBackup", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.GetBackup", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.BackupName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.Backup", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GetBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetBackup", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_async_flattened_resourceNames", + "title": "GetBackupResourceNamesAsync", + "description": "Snippet for GetBackupAsync", + "file": "BigtableTableAdminClient.GetBackupResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetBackupAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.GetBackupAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.BackupName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GetBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetBackup", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_sync", + "title": "UpdateBackupRequestObject", + "description": "Snippet for UpdateBackup", + "file": "BigtableTableAdminClient.UpdateBackupRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateBackup", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.UpdateBackup", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.UpdateBackupRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.Backup", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "UpdateBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateBackup", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_async", + "title": "UpdateBackupRequestObjectAsync", + "description": "Snippet for UpdateBackupAsync", + "file": "BigtableTableAdminClient.UpdateBackupRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateBackupAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.UpdateBackupAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.UpdateBackupRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "UpdateBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateBackup", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_sync_flattened", + "title": "UpdateBackup", + "description": "Snippet for UpdateBackup", + "file": "BigtableTableAdminClient.UpdateBackupSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateBackup", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.UpdateBackup", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.Backup", + "name": "backup" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Bigtable.Admin.V2.Backup", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "UpdateBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateBackup", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_async_flattened", + "title": "UpdateBackupAsync", + "description": "Snippet for UpdateBackupAsync", + "file": "BigtableTableAdminClient.UpdateBackupAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateBackupAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.UpdateBackupAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.Backup", + "name": "backup" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "UpdateBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateBackup", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_sync", + "title": "DeleteBackupRequestObject", + "description": "Snippet for DeleteBackup", + "file": "BigtableTableAdminClient.DeleteBackupRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteBackup", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.DeleteBackup", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.DeleteBackupRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "DeleteBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteBackup", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_async", + "title": "DeleteBackupRequestObjectAsync", + "description": "Snippet for DeleteBackupAsync", + "file": "BigtableTableAdminClient.DeleteBackupRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteBackupAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.DeleteBackupAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.DeleteBackupRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "DeleteBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteBackup", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_sync_flattened", + "title": "DeleteBackup", + "description": "Snippet for DeleteBackup", + "file": "BigtableTableAdminClient.DeleteBackupSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteBackup", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.DeleteBackup", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "DeleteBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteBackup", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_async_flattened", + "title": "DeleteBackupAsync", + "description": "Snippet for DeleteBackupAsync", + "file": "BigtableTableAdminClient.DeleteBackupAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteBackupAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.DeleteBackupAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "DeleteBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteBackup", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_sync_flattened_resourceNames", + "title": "DeleteBackupResourceNames", + "description": "Snippet for DeleteBackup", + "file": "BigtableTableAdminClient.DeleteBackupResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteBackup", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.DeleteBackup", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.BackupName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "DeleteBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteBackup", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_async_flattened_resourceNames", + "title": "DeleteBackupResourceNamesAsync", + "description": "Snippet for DeleteBackupAsync", + "file": "BigtableTableAdminClient.DeleteBackupResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteBackupAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.DeleteBackupAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.BackupName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "DeleteBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteBackup", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_sync", + "title": "ListBackupsRequestObject", + "description": "Snippet for ListBackups", + "file": "BigtableTableAdminClient.ListBackupsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListBackups", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.ListBackups", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.ListBackupsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "ListBackups", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListBackups", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 80, + "type": "FULL" + }, + { + "start": 36, + "end": 78, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_async", + "title": "ListBackupsRequestObjectAsync", + "description": "Snippet for ListBackupsAsync", + "file": "BigtableTableAdminClient.ListBackupsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListBackupsAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.ListBackupsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.ListBackupsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "ListBackups", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListBackups", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 82, + "type": "FULL" + }, + { + "start": 38, + "end": 80, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_sync_flattened", + "title": "ListBackups", + "description": "Snippet for ListBackups", + "file": "BigtableTableAdminClient.ListBackupsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListBackups", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.ListBackups", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "pageToken" + }, + { + "type": "System.Nullable[System.Int32]", + "name": "pageSize" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "ListBackups", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListBackups", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_async_flattened", + "title": "ListBackupsAsync", + "description": "Snippet for ListBackupsAsync", + "file": "BigtableTableAdminClient.ListBackupsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListBackupsAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.ListBackupsAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "pageToken" + }, + { + "type": "System.Nullable[System.Int32]", + "name": "pageSize" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "ListBackups", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListBackups", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_sync_flattened_resourceNames", + "title": "ListBackupsResourceNames", + "description": "Snippet for ListBackups", + "file": "BigtableTableAdminClient.ListBackupsResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListBackups", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.ListBackups", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.ClusterName", + "name": "parent" + }, + { + "type": "System.String", + "name": "pageToken" + }, + { + "type": "System.Nullable[System.Int32]", + "name": "pageSize" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "ListBackups", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListBackups", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_async_flattened_resourceNames", + "title": "ListBackupsResourceNamesAsync", + "description": "Snippet for ListBackupsAsync", + "file": "BigtableTableAdminClient.ListBackupsResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListBackupsAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.ListBackupsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.ClusterName", + "name": "parent" + }, + { + "type": "System.String", + "name": "pageToken" + }, + { + "type": "System.Nullable[System.Int32]", + "name": "pageSize" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "ListBackups", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListBackups", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_RestoreTable_sync", + "title": "RestoreTableRequestObject", + "description": "Snippet for RestoreTable", + "file": "BigtableTableAdminClient.RestoreTableRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "RestoreTable", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.RestoreTable", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.RestoreTableRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "RestoreTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 63, + "type": "FULL" + }, + { + "start": 35, + "end": 61, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_RestoreTable_async", + "title": "RestoreTableRequestObjectAsync", + "description": "Snippet for RestoreTableAsync", + "file": "BigtableTableAdminClient.RestoreTableRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "RestoreTableAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.RestoreTableAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.RestoreTableRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "RestoreTable", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 64, + "type": "FULL" + }, + { + "start": 36, + "end": 62, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_sync", + "title": "CopyBackupRequestObject", + "description": "Snippet for CopyBackup", + "file": "BigtableTableAdminClient.CopyBackupRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CopyBackup", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.CopyBackup", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.CopyBackupRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CopyBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 65, + "type": "FULL" + }, + { + "start": 36, + "end": 63, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_async", + "title": "CopyBackupRequestObjectAsync", + "description": "Snippet for CopyBackupAsync", + "file": "BigtableTableAdminClient.CopyBackupRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CopyBackupAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.CopyBackupAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.CopyBackupRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CopyBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 66, + "type": "FULL" + }, + { + "start": 37, + "end": 64, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_sync_flattened", + "title": "CopyBackup", + "description": "Snippet for CopyBackup", + "file": "BigtableTableAdminClient.CopyBackupSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CopyBackup", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.CopyBackup", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "backupId" + }, + { + "type": "System.String", + "name": "sourceBackup" + }, + { + "type": "Google.Protobuf.WellKnownTypes.Timestamp", + "name": "expireTime" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CopyBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 62, + "type": "FULL" + }, + { + "start": 36, + "end": 60, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_async_flattened", + "title": "CopyBackupAsync", + "description": "Snippet for CopyBackupAsync", + "file": "BigtableTableAdminClient.CopyBackupAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CopyBackupAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.CopyBackupAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "backupId" + }, + { + "type": "System.String", + "name": "sourceBackup" + }, + { + "type": "Google.Protobuf.WellKnownTypes.Timestamp", + "name": "expireTime" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CopyBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 63, + "type": "FULL" + }, + { + "start": 37, + "end": 61, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_sync_flattened_resourceNames", + "title": "CopyBackupResourceNames", + "description": "Snippet for CopyBackup", + "file": "BigtableTableAdminClient.CopyBackupResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CopyBackup", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.CopyBackup", + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.ClusterName", + "name": "parent" + }, + { + "type": "System.String", + "name": "backupId" + }, + { + "type": "Google.Cloud.Bigtable.Admin.V2.BackupName", + "name": "sourceBackup" + }, + { + "type": "Google.Protobuf.WellKnownTypes.Timestamp", + "name": "expireTime" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CopyBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 62, + "type": "FULL" + }, + { + "start": 36, + "end": 60, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_async_flattened_resourceNames", + "title": "CopyBackupResourceNamesAsync", + "description": "Snippet for CopyBackupAsync", + "file": "BigtableTableAdminClient.CopyBackupResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CopyBackupAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.CopyBackupAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Bigtable.Admin.V2.ClusterName", + "name": "parent" + }, + { + "type": "System.String", + "name": "backupId" + }, + { + "type": "Google.Cloud.Bigtable.Admin.V2.BackupName", + "name": "sourceBackup" + }, + { + "type": "Google.Protobuf.WellKnownTypes.Timestamp", + "name": "expireTime" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "CopyBackup", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 63, + "type": "FULL" + }, + { + "start": 37, + "end": 61, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_sync", + "title": "GetIamPolicyRequestObject", + "description": "Snippet for GetIamPolicy", + "file": "BigtableTableAdminClient.GetIamPolicyRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.GetIamPolicy", + "parameters": [ + { + "type": "Google.Cloud.Iam.V1.GetIamPolicyRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Iam.V1.Policy", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetIamPolicy", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_async", + "title": "GetIamPolicyRequestObjectAsync", + "description": "Snippet for GetIamPolicyAsync", + "file": "BigtableTableAdminClient.GetIamPolicyRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetIamPolicyAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.GetIamPolicyAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Iam.V1.GetIamPolicyRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetIamPolicy", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 48, + "type": "FULL" + }, + { + "start": 37, + "end": 46, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_sync_flattened", + "title": "GetIamPolicy", + "description": "Snippet for GetIamPolicy", + "file": "BigtableTableAdminClient.GetIamPolicySnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.GetIamPolicy", + "parameters": [ + { + "type": "System.String", + "name": "resource" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Iam.V1.Policy", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetIamPolicy", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_async_flattened", + "title": "GetIamPolicyAsync", + "description": "Snippet for GetIamPolicyAsync", + "file": "BigtableTableAdminClient.GetIamPolicyAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetIamPolicyAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.GetIamPolicyAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "resource" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetIamPolicy", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 36, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_sync_flattened_resourceNames", + "title": "GetIamPolicyResourceNames", + "description": "Snippet for GetIamPolicy", + "file": "BigtableTableAdminClient.GetIamPolicyResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.GetIamPolicy", + "parameters": [ + { + "type": "Google.Api.Gax.IResourceName", + "name": "resource" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Iam.V1.Policy", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetIamPolicy", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 36, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_async_flattened_resourceNames", + "title": "GetIamPolicyResourceNamesAsync", + "description": "Snippet for GetIamPolicyAsync", + "file": "BigtableTableAdminClient.GetIamPolicyResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetIamPolicyAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.GetIamPolicyAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.IResourceName", + "name": "resource" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetIamPolicy", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 37, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_sync", + "title": "SetIamPolicyRequestObject", + "description": "Snippet for SetIamPolicy", + "file": "BigtableTableAdminClient.SetIamPolicyRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.SetIamPolicy", + "parameters": [ + { + "type": "Google.Cloud.Iam.V1.SetIamPolicyRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Iam.V1.Policy", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.SetIamPolicy", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 49, + "type": "FULL" + }, + { + "start": 37, + "end": 47, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_async", + "title": "SetIamPolicyRequestObjectAsync", + "description": "Snippet for SetIamPolicyAsync", + "file": "BigtableTableAdminClient.SetIamPolicyRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetIamPolicyAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.SetIamPolicyAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Iam.V1.SetIamPolicyRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.SetIamPolicy", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + }, + { + "start": 38, + "end": 48, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_sync_flattened", + "title": "SetIamPolicy", + "description": "Snippet for SetIamPolicy", + "file": "BigtableTableAdminClient.SetIamPolicySnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.SetIamPolicy", + "parameters": [ + { + "type": "System.String", + "name": "resource" + }, + { + "type": "Google.Cloud.Iam.V1.Policy", + "name": "policy" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Iam.V1.Policy", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.SetIamPolicy", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_async_flattened", + "title": "SetIamPolicyAsync", + "description": "Snippet for SetIamPolicyAsync", + "file": "BigtableTableAdminClient.SetIamPolicyAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetIamPolicyAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.SetIamPolicyAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "resource" + }, + { + "type": "Google.Cloud.Iam.V1.Policy", + "name": "policy" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.SetIamPolicy", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_sync_flattened_resourceNames", + "title": "SetIamPolicyResourceNames", + "description": "Snippet for SetIamPolicy", + "file": "BigtableTableAdminClient.SetIamPolicyResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.SetIamPolicy", + "parameters": [ + { + "type": "Google.Api.Gax.IResourceName", + "name": "resource" + }, + { + "type": "Google.Cloud.Iam.V1.Policy", + "name": "policy" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Iam.V1.Policy", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.SetIamPolicy", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_async_flattened_resourceNames", + "title": "SetIamPolicyResourceNamesAsync", + "description": "Snippet for SetIamPolicyAsync", + "file": "BigtableTableAdminClient.SetIamPolicyResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetIamPolicyAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.SetIamPolicyAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.IResourceName", + "name": "resource" + }, + { + "type": "Google.Cloud.Iam.V1.Policy", + "name": "policy" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.SetIamPolicy", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 37, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_sync", + "title": "TestIamPermissionsRequestObject", + "description": "Snippet for TestIamPermissions", + "file": "BigtableTableAdminClient.TestIamPermissionsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.TestIamPermissions", + "parameters": [ + { + "type": "Google.Cloud.Iam.V1.TestIamPermissionsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Iam.V1.TestIamPermissionsResponse", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.TestIamPermissions", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_async", + "title": "TestIamPermissionsRequestObjectAsync", + "description": "Snippet for TestIamPermissionsAsync", + "file": "BigtableTableAdminClient.TestIamPermissionsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "TestIamPermissionsAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.TestIamPermissionsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Iam.V1.TestIamPermissionsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.TestIamPermissions", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 48, + "type": "FULL" + }, + { + "start": 37, + "end": 46, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_sync_flattened", + "title": "TestIamPermissions", + "description": "Snippet for TestIamPermissions", + "file": "BigtableTableAdminClient.TestIamPermissionsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.TestIamPermissions", + "parameters": [ + { + "type": "System.String", + "name": "resource" + }, + { + "type": "System.Collections.Generic.IEnumerable", + "name": "permissions" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Iam.V1.TestIamPermissionsResponse", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.TestIamPermissions", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_async_flattened", + "title": "TestIamPermissionsAsync", + "description": "Snippet for TestIamPermissionsAsync", + "file": "BigtableTableAdminClient.TestIamPermissionsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "TestIamPermissionsAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.TestIamPermissionsAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "resource" + }, + { + "type": "System.Collections.Generic.IEnumerable", + "name": "permissions" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.TestIamPermissions", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 37, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_sync_flattened_resourceNames", + "title": "TestIamPermissionsResourceNames", + "description": "Snippet for TestIamPermissions", + "file": "BigtableTableAdminClient.TestIamPermissionsResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.TestIamPermissions", + "parameters": [ + { + "type": "Google.Api.Gax.IResourceName", + "name": "resource" + }, + { + "type": "System.Collections.Generic.IEnumerable", + "name": "permissions" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Iam.V1.TestIamPermissionsResponse", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.TestIamPermissions", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 37, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_async_flattened_resourceNames", + "title": "TestIamPermissionsResourceNamesAsync", + "description": "Snippet for TestIamPermissionsAsync", + "file": "BigtableTableAdminClient.TestIamPermissionsResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "TestIamPermissionsAsync", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient.TestIamPermissionsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.IResourceName", + "name": "resource" + }, + { + "type": "System.Collections.Generic.IEnumerable", + "name": "permissions" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "BigtableTableAdminClient", + "fullName": "Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.TestIamPermissions", + "service": { + "shortName": "BigtableTableAdmin", + "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 38, + "end": 44, + "type": "SHORT" + } + ] + } + ] +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.Snippets/BigtableInstanceAdminClientSnippets.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.Snippets/BigtableInstanceAdminClientSnippets.g.cs new file mode 100755 index 000000000000..25f423adf3e1 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.Snippets/BigtableInstanceAdminClientSnippets.g.cs @@ -0,0 +1,2575 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + using Google.LongRunning; + using Google.Protobuf.WellKnownTypes; + using System; + using System.Collections.Generic; + using System.Linq; + using System.Threading.Tasks; + + /// Generated snippets. + public sealed class AllGeneratedBigtableInstanceAdminClientSnippets + { + /// Snippet for CreateInstance + public void CreateInstanceRequestObject() + { + // Snippet: CreateInstance(CreateInstanceRequest, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + CreateInstanceRequest request = new CreateInstanceRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + InstanceId = "", + Instance = new Instance(), + Clusters = { { "", new Cluster() }, }, + }; + // Make the request + Operation response = bigtableInstanceAdminClient.CreateInstance(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Instance result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableInstanceAdminClient.PollOnceCreateInstance(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Instance retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateInstanceAsync + public async Task CreateInstanceRequestObjectAsync() + { + // Snippet: CreateInstanceAsync(CreateInstanceRequest, CallSettings) + // Additional: CreateInstanceAsync(CreateInstanceRequest, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + CreateInstanceRequest request = new CreateInstanceRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + InstanceId = "", + Instance = new Instance(), + Clusters = { { "", new Cluster() }, }, + }; + // Make the request + Operation response = await bigtableInstanceAdminClient.CreateInstanceAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Instance result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableInstanceAdminClient.PollOnceCreateInstanceAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Instance retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateInstance + public void CreateInstance() + { + // Snippet: CreateInstance(string, string, Instance, IDictionary, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + string instanceId = ""; + Instance instance = new Instance(); + IDictionary clusters = new Dictionary { { "", new Cluster() }, }; + // Make the request + Operation response = bigtableInstanceAdminClient.CreateInstance(parent, instanceId, instance, clusters); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Instance result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableInstanceAdminClient.PollOnceCreateInstance(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Instance retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateInstanceAsync + public async Task CreateInstanceAsync() + { + // Snippet: CreateInstanceAsync(string, string, Instance, IDictionary, CallSettings) + // Additional: CreateInstanceAsync(string, string, Instance, IDictionary, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + string instanceId = ""; + Instance instance = new Instance(); + IDictionary clusters = new Dictionary { { "", new Cluster() }, }; + // Make the request + Operation response = await bigtableInstanceAdminClient.CreateInstanceAsync(parent, instanceId, instance, clusters); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Instance result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableInstanceAdminClient.PollOnceCreateInstanceAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Instance retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateInstance + public void CreateInstanceResourceNames() + { + // Snippet: CreateInstance(ProjectName, string, Instance, IDictionary, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + string instanceId = ""; + Instance instance = new Instance(); + IDictionary clusters = new Dictionary { { "", new Cluster() }, }; + // Make the request + Operation response = bigtableInstanceAdminClient.CreateInstance(parent, instanceId, instance, clusters); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Instance result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableInstanceAdminClient.PollOnceCreateInstance(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Instance retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateInstanceAsync + public async Task CreateInstanceResourceNamesAsync() + { + // Snippet: CreateInstanceAsync(ProjectName, string, Instance, IDictionary, CallSettings) + // Additional: CreateInstanceAsync(ProjectName, string, Instance, IDictionary, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + string instanceId = ""; + Instance instance = new Instance(); + IDictionary clusters = new Dictionary { { "", new Cluster() }, }; + // Make the request + Operation response = await bigtableInstanceAdminClient.CreateInstanceAsync(parent, instanceId, instance, clusters); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Instance result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableInstanceAdminClient.PollOnceCreateInstanceAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Instance retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for GetInstance + public void GetInstanceRequestObject() + { + // Snippet: GetInstance(GetInstanceRequest, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + GetInstanceRequest request = new GetInstanceRequest + { + InstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + }; + // Make the request + Instance response = bigtableInstanceAdminClient.GetInstance(request); + // End snippet + } + + /// Snippet for GetInstanceAsync + public async Task GetInstanceRequestObjectAsync() + { + // Snippet: GetInstanceAsync(GetInstanceRequest, CallSettings) + // Additional: GetInstanceAsync(GetInstanceRequest, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + GetInstanceRequest request = new GetInstanceRequest + { + InstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + }; + // Make the request + Instance response = await bigtableInstanceAdminClient.GetInstanceAsync(request); + // End snippet + } + + /// Snippet for GetInstance + public void GetInstance() + { + // Snippet: GetInstance(string, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]"; + // Make the request + Instance response = bigtableInstanceAdminClient.GetInstance(name); + // End snippet + } + + /// Snippet for GetInstanceAsync + public async Task GetInstanceAsync() + { + // Snippet: GetInstanceAsync(string, CallSettings) + // Additional: GetInstanceAsync(string, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]"; + // Make the request + Instance response = await bigtableInstanceAdminClient.GetInstanceAsync(name); + // End snippet + } + + /// Snippet for GetInstance + public void GetInstanceResourceNames() + { + // Snippet: GetInstance(InstanceName, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + InstanceName name = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"); + // Make the request + Instance response = bigtableInstanceAdminClient.GetInstance(name); + // End snippet + } + + /// Snippet for GetInstanceAsync + public async Task GetInstanceResourceNamesAsync() + { + // Snippet: GetInstanceAsync(InstanceName, CallSettings) + // Additional: GetInstanceAsync(InstanceName, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + InstanceName name = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"); + // Make the request + Instance response = await bigtableInstanceAdminClient.GetInstanceAsync(name); + // End snippet + } + + /// Snippet for ListInstances + public void ListInstancesRequestObject() + { + // Snippet: ListInstances(ListInstancesRequest, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + ListInstancesRequest request = new ListInstancesRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + PageToken = "", + }; + // Make the request + ListInstancesResponse response = bigtableInstanceAdminClient.ListInstances(request); + // End snippet + } + + /// Snippet for ListInstancesAsync + public async Task ListInstancesRequestObjectAsync() + { + // Snippet: ListInstancesAsync(ListInstancesRequest, CallSettings) + // Additional: ListInstancesAsync(ListInstancesRequest, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + ListInstancesRequest request = new ListInstancesRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + PageToken = "", + }; + // Make the request + ListInstancesResponse response = await bigtableInstanceAdminClient.ListInstancesAsync(request); + // End snippet + } + + /// Snippet for ListInstances + public void ListInstances() + { + // Snippet: ListInstances(string, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + // Make the request + ListInstancesResponse response = bigtableInstanceAdminClient.ListInstances(parent); + // End snippet + } + + /// Snippet for ListInstancesAsync + public async Task ListInstancesAsync() + { + // Snippet: ListInstancesAsync(string, CallSettings) + // Additional: ListInstancesAsync(string, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + // Make the request + ListInstancesResponse response = await bigtableInstanceAdminClient.ListInstancesAsync(parent); + // End snippet + } + + /// Snippet for ListInstances + public void ListInstancesResourceNames() + { + // Snippet: ListInstances(ProjectName, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + // Make the request + ListInstancesResponse response = bigtableInstanceAdminClient.ListInstances(parent); + // End snippet + } + + /// Snippet for ListInstancesAsync + public async Task ListInstancesResourceNamesAsync() + { + // Snippet: ListInstancesAsync(ProjectName, CallSettings) + // Additional: ListInstancesAsync(ProjectName, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + // Make the request + ListInstancesResponse response = await bigtableInstanceAdminClient.ListInstancesAsync(parent); + // End snippet + } + + /// Snippet for UpdateInstance + public void UpdateInstanceRequestObject() + { + // Snippet: UpdateInstance(Instance, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + Instance request = new Instance + { + InstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + DisplayName = "", + State = Instance.Types.State.NotKnown, + Type = Instance.Types.Type.Unspecified, + Labels = { { "", "" }, }, + CreateTime = new Timestamp(), + SatisfiesPzs = false, + }; + // Make the request + Instance response = bigtableInstanceAdminClient.UpdateInstance(request); + // End snippet + } + + /// Snippet for UpdateInstanceAsync + public async Task UpdateInstanceRequestObjectAsync() + { + // Snippet: UpdateInstanceAsync(Instance, CallSettings) + // Additional: UpdateInstanceAsync(Instance, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + Instance request = new Instance + { + InstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + DisplayName = "", + State = Instance.Types.State.NotKnown, + Type = Instance.Types.Type.Unspecified, + Labels = { { "", "" }, }, + CreateTime = new Timestamp(), + SatisfiesPzs = false, + }; + // Make the request + Instance response = await bigtableInstanceAdminClient.UpdateInstanceAsync(request); + // End snippet + } + + /// Snippet for PartialUpdateInstance + public void PartialUpdateInstanceRequestObject() + { + // Snippet: PartialUpdateInstance(PartialUpdateInstanceRequest, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + PartialUpdateInstanceRequest request = new PartialUpdateInstanceRequest + { + Instance = new Instance(), + UpdateMask = new FieldMask(), + }; + // Make the request + Operation response = bigtableInstanceAdminClient.PartialUpdateInstance(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Instance result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableInstanceAdminClient.PollOncePartialUpdateInstance(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Instance retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for PartialUpdateInstanceAsync + public async Task PartialUpdateInstanceRequestObjectAsync() + { + // Snippet: PartialUpdateInstanceAsync(PartialUpdateInstanceRequest, CallSettings) + // Additional: PartialUpdateInstanceAsync(PartialUpdateInstanceRequest, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + PartialUpdateInstanceRequest request = new PartialUpdateInstanceRequest + { + Instance = new Instance(), + UpdateMask = new FieldMask(), + }; + // Make the request + Operation response = await bigtableInstanceAdminClient.PartialUpdateInstanceAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Instance result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableInstanceAdminClient.PollOncePartialUpdateInstanceAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Instance retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for PartialUpdateInstance + public void PartialUpdateInstance() + { + // Snippet: PartialUpdateInstance(Instance, FieldMask, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + Instance instance = new Instance(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = bigtableInstanceAdminClient.PartialUpdateInstance(instance, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Instance result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableInstanceAdminClient.PollOncePartialUpdateInstance(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Instance retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for PartialUpdateInstanceAsync + public async Task PartialUpdateInstanceAsync() + { + // Snippet: PartialUpdateInstanceAsync(Instance, FieldMask, CallSettings) + // Additional: PartialUpdateInstanceAsync(Instance, FieldMask, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + Instance instance = new Instance(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = await bigtableInstanceAdminClient.PartialUpdateInstanceAsync(instance, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Instance result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableInstanceAdminClient.PollOncePartialUpdateInstanceAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Instance retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteInstance + public void DeleteInstanceRequestObject() + { + // Snippet: DeleteInstance(DeleteInstanceRequest, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + DeleteInstanceRequest request = new DeleteInstanceRequest + { + InstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + }; + // Make the request + bigtableInstanceAdminClient.DeleteInstance(request); + // End snippet + } + + /// Snippet for DeleteInstanceAsync + public async Task DeleteInstanceRequestObjectAsync() + { + // Snippet: DeleteInstanceAsync(DeleteInstanceRequest, CallSettings) + // Additional: DeleteInstanceAsync(DeleteInstanceRequest, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + DeleteInstanceRequest request = new DeleteInstanceRequest + { + InstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + }; + // Make the request + await bigtableInstanceAdminClient.DeleteInstanceAsync(request); + // End snippet + } + + /// Snippet for DeleteInstance + public void DeleteInstance() + { + // Snippet: DeleteInstance(string, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]"; + // Make the request + bigtableInstanceAdminClient.DeleteInstance(name); + // End snippet + } + + /// Snippet for DeleteInstanceAsync + public async Task DeleteInstanceAsync() + { + // Snippet: DeleteInstanceAsync(string, CallSettings) + // Additional: DeleteInstanceAsync(string, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]"; + // Make the request + await bigtableInstanceAdminClient.DeleteInstanceAsync(name); + // End snippet + } + + /// Snippet for DeleteInstance + public void DeleteInstanceResourceNames() + { + // Snippet: DeleteInstance(InstanceName, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + InstanceName name = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"); + // Make the request + bigtableInstanceAdminClient.DeleteInstance(name); + // End snippet + } + + /// Snippet for DeleteInstanceAsync + public async Task DeleteInstanceResourceNamesAsync() + { + // Snippet: DeleteInstanceAsync(InstanceName, CallSettings) + // Additional: DeleteInstanceAsync(InstanceName, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + InstanceName name = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"); + // Make the request + await bigtableInstanceAdminClient.DeleteInstanceAsync(name); + // End snippet + } + + /// Snippet for CreateCluster + public void CreateClusterRequestObject() + { + // Snippet: CreateCluster(CreateClusterRequest, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + CreateClusterRequest request = new CreateClusterRequest + { + ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + ClusterId = "", + Cluster = new Cluster(), + }; + // Make the request + Operation response = bigtableInstanceAdminClient.CreateCluster(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Cluster result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableInstanceAdminClient.PollOnceCreateCluster(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Cluster retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateClusterAsync + public async Task CreateClusterRequestObjectAsync() + { + // Snippet: CreateClusterAsync(CreateClusterRequest, CallSettings) + // Additional: CreateClusterAsync(CreateClusterRequest, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + CreateClusterRequest request = new CreateClusterRequest + { + ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + ClusterId = "", + Cluster = new Cluster(), + }; + // Make the request + Operation response = await bigtableInstanceAdminClient.CreateClusterAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Cluster result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableInstanceAdminClient.PollOnceCreateClusterAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Cluster retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateCluster + public void CreateCluster() + { + // Snippet: CreateCluster(string, string, Cluster, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]"; + string clusterId = ""; + Cluster cluster = new Cluster(); + // Make the request + Operation response = bigtableInstanceAdminClient.CreateCluster(parent, clusterId, cluster); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Cluster result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableInstanceAdminClient.PollOnceCreateCluster(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Cluster retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateClusterAsync + public async Task CreateClusterAsync() + { + // Snippet: CreateClusterAsync(string, string, Cluster, CallSettings) + // Additional: CreateClusterAsync(string, string, Cluster, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]"; + string clusterId = ""; + Cluster cluster = new Cluster(); + // Make the request + Operation response = await bigtableInstanceAdminClient.CreateClusterAsync(parent, clusterId, cluster); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Cluster result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableInstanceAdminClient.PollOnceCreateClusterAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Cluster retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateCluster + public void CreateClusterResourceNames() + { + // Snippet: CreateCluster(InstanceName, string, Cluster, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"); + string clusterId = ""; + Cluster cluster = new Cluster(); + // Make the request + Operation response = bigtableInstanceAdminClient.CreateCluster(parent, clusterId, cluster); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Cluster result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableInstanceAdminClient.PollOnceCreateCluster(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Cluster retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateClusterAsync + public async Task CreateClusterResourceNamesAsync() + { + // Snippet: CreateClusterAsync(InstanceName, string, Cluster, CallSettings) + // Additional: CreateClusterAsync(InstanceName, string, Cluster, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"); + string clusterId = ""; + Cluster cluster = new Cluster(); + // Make the request + Operation response = await bigtableInstanceAdminClient.CreateClusterAsync(parent, clusterId, cluster); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Cluster result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableInstanceAdminClient.PollOnceCreateClusterAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Cluster retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for GetCluster + public void GetClusterRequestObject() + { + // Snippet: GetCluster(GetClusterRequest, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + GetClusterRequest request = new GetClusterRequest + { + ClusterName = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"), + }; + // Make the request + Cluster response = bigtableInstanceAdminClient.GetCluster(request); + // End snippet + } + + /// Snippet for GetClusterAsync + public async Task GetClusterRequestObjectAsync() + { + // Snippet: GetClusterAsync(GetClusterRequest, CallSettings) + // Additional: GetClusterAsync(GetClusterRequest, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + GetClusterRequest request = new GetClusterRequest + { + ClusterName = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"), + }; + // Make the request + Cluster response = await bigtableInstanceAdminClient.GetClusterAsync(request); + // End snippet + } + + /// Snippet for GetCluster + public void GetCluster() + { + // Snippet: GetCluster(string, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]"; + // Make the request + Cluster response = bigtableInstanceAdminClient.GetCluster(name); + // End snippet + } + + /// Snippet for GetClusterAsync + public async Task GetClusterAsync() + { + // Snippet: GetClusterAsync(string, CallSettings) + // Additional: GetClusterAsync(string, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]"; + // Make the request + Cluster response = await bigtableInstanceAdminClient.GetClusterAsync(name); + // End snippet + } + + /// Snippet for GetCluster + public void GetClusterResourceNames() + { + // Snippet: GetCluster(ClusterName, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + ClusterName name = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"); + // Make the request + Cluster response = bigtableInstanceAdminClient.GetCluster(name); + // End snippet + } + + /// Snippet for GetClusterAsync + public async Task GetClusterResourceNamesAsync() + { + // Snippet: GetClusterAsync(ClusterName, CallSettings) + // Additional: GetClusterAsync(ClusterName, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + ClusterName name = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"); + // Make the request + Cluster response = await bigtableInstanceAdminClient.GetClusterAsync(name); + // End snippet + } + + /// Snippet for ListClusters + public void ListClustersRequestObject() + { + // Snippet: ListClusters(ListClustersRequest, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + ListClustersRequest request = new ListClustersRequest + { + ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + PageToken = "", + }; + // Make the request + ListClustersResponse response = bigtableInstanceAdminClient.ListClusters(request); + // End snippet + } + + /// Snippet for ListClustersAsync + public async Task ListClustersRequestObjectAsync() + { + // Snippet: ListClustersAsync(ListClustersRequest, CallSettings) + // Additional: ListClustersAsync(ListClustersRequest, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + ListClustersRequest request = new ListClustersRequest + { + ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + PageToken = "", + }; + // Make the request + ListClustersResponse response = await bigtableInstanceAdminClient.ListClustersAsync(request); + // End snippet + } + + /// Snippet for ListClusters + public void ListClusters() + { + // Snippet: ListClusters(string, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]"; + // Make the request + ListClustersResponse response = bigtableInstanceAdminClient.ListClusters(parent); + // End snippet + } + + /// Snippet for ListClustersAsync + public async Task ListClustersAsync() + { + // Snippet: ListClustersAsync(string, CallSettings) + // Additional: ListClustersAsync(string, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]"; + // Make the request + ListClustersResponse response = await bigtableInstanceAdminClient.ListClustersAsync(parent); + // End snippet + } + + /// Snippet for ListClusters + public void ListClustersResourceNames() + { + // Snippet: ListClusters(InstanceName, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"); + // Make the request + ListClustersResponse response = bigtableInstanceAdminClient.ListClusters(parent); + // End snippet + } + + /// Snippet for ListClustersAsync + public async Task ListClustersResourceNamesAsync() + { + // Snippet: ListClustersAsync(InstanceName, CallSettings) + // Additional: ListClustersAsync(InstanceName, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"); + // Make the request + ListClustersResponse response = await bigtableInstanceAdminClient.ListClustersAsync(parent); + // End snippet + } + + /// Snippet for UpdateCluster + public void UpdateClusterRequestObject() + { + // Snippet: UpdateCluster(Cluster, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + Cluster request = new Cluster + { + ClusterName = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"), + LocationAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + State = Cluster.Types.State.NotKnown, + ServeNodes = 0, + DefaultStorageType = StorageType.Unspecified, + EncryptionConfig = new Cluster.Types.EncryptionConfig(), + ClusterConfig = new Cluster.Types.ClusterConfig(), + NodeScalingFactor = Cluster.Types.NodeScalingFactor.Unspecified, + }; + // Make the request + Operation response = bigtableInstanceAdminClient.UpdateCluster(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Cluster result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableInstanceAdminClient.PollOnceUpdateCluster(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Cluster retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UpdateClusterAsync + public async Task UpdateClusterRequestObjectAsync() + { + // Snippet: UpdateClusterAsync(Cluster, CallSettings) + // Additional: UpdateClusterAsync(Cluster, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + Cluster request = new Cluster + { + ClusterName = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"), + LocationAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + State = Cluster.Types.State.NotKnown, + ServeNodes = 0, + DefaultStorageType = StorageType.Unspecified, + EncryptionConfig = new Cluster.Types.EncryptionConfig(), + ClusterConfig = new Cluster.Types.ClusterConfig(), + NodeScalingFactor = Cluster.Types.NodeScalingFactor.Unspecified, + }; + // Make the request + Operation response = await bigtableInstanceAdminClient.UpdateClusterAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Cluster result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableInstanceAdminClient.PollOnceUpdateClusterAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Cluster retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for PartialUpdateCluster + public void PartialUpdateClusterRequestObject() + { + // Snippet: PartialUpdateCluster(PartialUpdateClusterRequest, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + PartialUpdateClusterRequest request = new PartialUpdateClusterRequest + { + Cluster = new Cluster(), + UpdateMask = new FieldMask(), + }; + // Make the request + Operation response = bigtableInstanceAdminClient.PartialUpdateCluster(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Cluster result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableInstanceAdminClient.PollOncePartialUpdateCluster(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Cluster retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for PartialUpdateClusterAsync + public async Task PartialUpdateClusterRequestObjectAsync() + { + // Snippet: PartialUpdateClusterAsync(PartialUpdateClusterRequest, CallSettings) + // Additional: PartialUpdateClusterAsync(PartialUpdateClusterRequest, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + PartialUpdateClusterRequest request = new PartialUpdateClusterRequest + { + Cluster = new Cluster(), + UpdateMask = new FieldMask(), + }; + // Make the request + Operation response = await bigtableInstanceAdminClient.PartialUpdateClusterAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Cluster result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableInstanceAdminClient.PollOncePartialUpdateClusterAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Cluster retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for PartialUpdateCluster + public void PartialUpdateCluster() + { + // Snippet: PartialUpdateCluster(Cluster, FieldMask, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + Cluster cluster = new Cluster(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = bigtableInstanceAdminClient.PartialUpdateCluster(cluster, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Cluster result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableInstanceAdminClient.PollOncePartialUpdateCluster(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Cluster retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for PartialUpdateClusterAsync + public async Task PartialUpdateClusterAsync() + { + // Snippet: PartialUpdateClusterAsync(Cluster, FieldMask, CallSettings) + // Additional: PartialUpdateClusterAsync(Cluster, FieldMask, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + Cluster cluster = new Cluster(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = await bigtableInstanceAdminClient.PartialUpdateClusterAsync(cluster, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Cluster result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableInstanceAdminClient.PollOncePartialUpdateClusterAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Cluster retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteCluster + public void DeleteClusterRequestObject() + { + // Snippet: DeleteCluster(DeleteClusterRequest, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + DeleteClusterRequest request = new DeleteClusterRequest + { + ClusterName = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"), + }; + // Make the request + bigtableInstanceAdminClient.DeleteCluster(request); + // End snippet + } + + /// Snippet for DeleteClusterAsync + public async Task DeleteClusterRequestObjectAsync() + { + // Snippet: DeleteClusterAsync(DeleteClusterRequest, CallSettings) + // Additional: DeleteClusterAsync(DeleteClusterRequest, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + DeleteClusterRequest request = new DeleteClusterRequest + { + ClusterName = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"), + }; + // Make the request + await bigtableInstanceAdminClient.DeleteClusterAsync(request); + // End snippet + } + + /// Snippet for DeleteCluster + public void DeleteCluster() + { + // Snippet: DeleteCluster(string, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]"; + // Make the request + bigtableInstanceAdminClient.DeleteCluster(name); + // End snippet + } + + /// Snippet for DeleteClusterAsync + public async Task DeleteClusterAsync() + { + // Snippet: DeleteClusterAsync(string, CallSettings) + // Additional: DeleteClusterAsync(string, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]"; + // Make the request + await bigtableInstanceAdminClient.DeleteClusterAsync(name); + // End snippet + } + + /// Snippet for DeleteCluster + public void DeleteClusterResourceNames() + { + // Snippet: DeleteCluster(ClusterName, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + ClusterName name = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"); + // Make the request + bigtableInstanceAdminClient.DeleteCluster(name); + // End snippet + } + + /// Snippet for DeleteClusterAsync + public async Task DeleteClusterResourceNamesAsync() + { + // Snippet: DeleteClusterAsync(ClusterName, CallSettings) + // Additional: DeleteClusterAsync(ClusterName, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + ClusterName name = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"); + // Make the request + await bigtableInstanceAdminClient.DeleteClusterAsync(name); + // End snippet + } + + /// Snippet for CreateAppProfile + public void CreateAppProfileRequestObject() + { + // Snippet: CreateAppProfile(CreateAppProfileRequest, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + CreateAppProfileRequest request = new CreateAppProfileRequest + { + ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + AppProfileId = "", + AppProfile = new AppProfile(), + IgnoreWarnings = false, + }; + // Make the request + AppProfile response = bigtableInstanceAdminClient.CreateAppProfile(request); + // End snippet + } + + /// Snippet for CreateAppProfileAsync + public async Task CreateAppProfileRequestObjectAsync() + { + // Snippet: CreateAppProfileAsync(CreateAppProfileRequest, CallSettings) + // Additional: CreateAppProfileAsync(CreateAppProfileRequest, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + CreateAppProfileRequest request = new CreateAppProfileRequest + { + ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + AppProfileId = "", + AppProfile = new AppProfile(), + IgnoreWarnings = false, + }; + // Make the request + AppProfile response = await bigtableInstanceAdminClient.CreateAppProfileAsync(request); + // End snippet + } + + /// Snippet for CreateAppProfile + public void CreateAppProfile() + { + // Snippet: CreateAppProfile(string, string, AppProfile, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]"; + string appProfileId = ""; + AppProfile appProfile = new AppProfile(); + // Make the request + AppProfile response = bigtableInstanceAdminClient.CreateAppProfile(parent, appProfileId, appProfile); + // End snippet + } + + /// Snippet for CreateAppProfileAsync + public async Task CreateAppProfileAsync() + { + // Snippet: CreateAppProfileAsync(string, string, AppProfile, CallSettings) + // Additional: CreateAppProfileAsync(string, string, AppProfile, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]"; + string appProfileId = ""; + AppProfile appProfile = new AppProfile(); + // Make the request + AppProfile response = await bigtableInstanceAdminClient.CreateAppProfileAsync(parent, appProfileId, appProfile); + // End snippet + } + + /// Snippet for CreateAppProfile + public void CreateAppProfileResourceNames() + { + // Snippet: CreateAppProfile(InstanceName, string, AppProfile, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"); + string appProfileId = ""; + AppProfile appProfile = new AppProfile(); + // Make the request + AppProfile response = bigtableInstanceAdminClient.CreateAppProfile(parent, appProfileId, appProfile); + // End snippet + } + + /// Snippet for CreateAppProfileAsync + public async Task CreateAppProfileResourceNamesAsync() + { + // Snippet: CreateAppProfileAsync(InstanceName, string, AppProfile, CallSettings) + // Additional: CreateAppProfileAsync(InstanceName, string, AppProfile, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"); + string appProfileId = ""; + AppProfile appProfile = new AppProfile(); + // Make the request + AppProfile response = await bigtableInstanceAdminClient.CreateAppProfileAsync(parent, appProfileId, appProfile); + // End snippet + } + + /// Snippet for GetAppProfile + public void GetAppProfileRequestObject() + { + // Snippet: GetAppProfile(GetAppProfileRequest, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + GetAppProfileRequest request = new GetAppProfileRequest + { + AppProfileName = AppProfileName.FromProjectInstanceAppProfile("[PROJECT]", "[INSTANCE]", "[APP_PROFILE]"), + }; + // Make the request + AppProfile response = bigtableInstanceAdminClient.GetAppProfile(request); + // End snippet + } + + /// Snippet for GetAppProfileAsync + public async Task GetAppProfileRequestObjectAsync() + { + // Snippet: GetAppProfileAsync(GetAppProfileRequest, CallSettings) + // Additional: GetAppProfileAsync(GetAppProfileRequest, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + GetAppProfileRequest request = new GetAppProfileRequest + { + AppProfileName = AppProfileName.FromProjectInstanceAppProfile("[PROJECT]", "[INSTANCE]", "[APP_PROFILE]"), + }; + // Make the request + AppProfile response = await bigtableInstanceAdminClient.GetAppProfileAsync(request); + // End snippet + } + + /// Snippet for GetAppProfile + public void GetAppProfile() + { + // Snippet: GetAppProfile(string, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/appProfiles/[APP_PROFILE]"; + // Make the request + AppProfile response = bigtableInstanceAdminClient.GetAppProfile(name); + // End snippet + } + + /// Snippet for GetAppProfileAsync + public async Task GetAppProfileAsync() + { + // Snippet: GetAppProfileAsync(string, CallSettings) + // Additional: GetAppProfileAsync(string, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/appProfiles/[APP_PROFILE]"; + // Make the request + AppProfile response = await bigtableInstanceAdminClient.GetAppProfileAsync(name); + // End snippet + } + + /// Snippet for GetAppProfile + public void GetAppProfileResourceNames() + { + // Snippet: GetAppProfile(AppProfileName, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + AppProfileName name = AppProfileName.FromProjectInstanceAppProfile("[PROJECT]", "[INSTANCE]", "[APP_PROFILE]"); + // Make the request + AppProfile response = bigtableInstanceAdminClient.GetAppProfile(name); + // End snippet + } + + /// Snippet for GetAppProfileAsync + public async Task GetAppProfileResourceNamesAsync() + { + // Snippet: GetAppProfileAsync(AppProfileName, CallSettings) + // Additional: GetAppProfileAsync(AppProfileName, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + AppProfileName name = AppProfileName.FromProjectInstanceAppProfile("[PROJECT]", "[INSTANCE]", "[APP_PROFILE]"); + // Make the request + AppProfile response = await bigtableInstanceAdminClient.GetAppProfileAsync(name); + // End snippet + } + + /// Snippet for ListAppProfiles + public void ListAppProfilesRequestObject() + { + // Snippet: ListAppProfiles(ListAppProfilesRequest, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + ListAppProfilesRequest request = new ListAppProfilesRequest + { + ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + }; + // Make the request + PagedEnumerable response = bigtableInstanceAdminClient.ListAppProfiles(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (AppProfile item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListAppProfilesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AppProfile item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (AppProfile item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListAppProfilesAsync + public async Task ListAppProfilesRequestObjectAsync() + { + // Snippet: ListAppProfilesAsync(ListAppProfilesRequest, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + ListAppProfilesRequest request = new ListAppProfilesRequest + { + ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + }; + // Make the request + PagedAsyncEnumerable response = bigtableInstanceAdminClient.ListAppProfilesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((AppProfile item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListAppProfilesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AppProfile item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (AppProfile item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListAppProfiles + public void ListAppProfiles() + { + // Snippet: ListAppProfiles(string, string, int?, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]"; + // Make the request + PagedEnumerable response = bigtableInstanceAdminClient.ListAppProfiles(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (AppProfile item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListAppProfilesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AppProfile item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (AppProfile item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListAppProfilesAsync + public async Task ListAppProfilesAsync() + { + // Snippet: ListAppProfilesAsync(string, string, int?, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]"; + // Make the request + PagedAsyncEnumerable response = bigtableInstanceAdminClient.ListAppProfilesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((AppProfile item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListAppProfilesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AppProfile item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (AppProfile item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListAppProfiles + public void ListAppProfilesResourceNames() + { + // Snippet: ListAppProfiles(InstanceName, string, int?, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"); + // Make the request + PagedEnumerable response = bigtableInstanceAdminClient.ListAppProfiles(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (AppProfile item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListAppProfilesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AppProfile item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (AppProfile item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListAppProfilesAsync + public async Task ListAppProfilesResourceNamesAsync() + { + // Snippet: ListAppProfilesAsync(InstanceName, string, int?, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"); + // Make the request + PagedAsyncEnumerable response = bigtableInstanceAdminClient.ListAppProfilesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((AppProfile item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListAppProfilesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AppProfile item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (AppProfile item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for UpdateAppProfile + public void UpdateAppProfileRequestObject() + { + // Snippet: UpdateAppProfile(UpdateAppProfileRequest, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + UpdateAppProfileRequest request = new UpdateAppProfileRequest + { + AppProfile = new AppProfile(), + UpdateMask = new FieldMask(), + IgnoreWarnings = false, + }; + // Make the request + Operation response = bigtableInstanceAdminClient.UpdateAppProfile(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + AppProfile result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableInstanceAdminClient.PollOnceUpdateAppProfile(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AppProfile retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UpdateAppProfileAsync + public async Task UpdateAppProfileRequestObjectAsync() + { + // Snippet: UpdateAppProfileAsync(UpdateAppProfileRequest, CallSettings) + // Additional: UpdateAppProfileAsync(UpdateAppProfileRequest, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + UpdateAppProfileRequest request = new UpdateAppProfileRequest + { + AppProfile = new AppProfile(), + UpdateMask = new FieldMask(), + IgnoreWarnings = false, + }; + // Make the request + Operation response = await bigtableInstanceAdminClient.UpdateAppProfileAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + AppProfile result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableInstanceAdminClient.PollOnceUpdateAppProfileAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AppProfile retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UpdateAppProfile + public void UpdateAppProfile() + { + // Snippet: UpdateAppProfile(AppProfile, FieldMask, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + AppProfile appProfile = new AppProfile(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = bigtableInstanceAdminClient.UpdateAppProfile(appProfile, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + AppProfile result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableInstanceAdminClient.PollOnceUpdateAppProfile(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AppProfile retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UpdateAppProfileAsync + public async Task UpdateAppProfileAsync() + { + // Snippet: UpdateAppProfileAsync(AppProfile, FieldMask, CallSettings) + // Additional: UpdateAppProfileAsync(AppProfile, FieldMask, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + AppProfile appProfile = new AppProfile(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = await bigtableInstanceAdminClient.UpdateAppProfileAsync(appProfile, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + AppProfile result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableInstanceAdminClient.PollOnceUpdateAppProfileAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AppProfile retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteAppProfile + public void DeleteAppProfileRequestObject() + { + // Snippet: DeleteAppProfile(DeleteAppProfileRequest, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + DeleteAppProfileRequest request = new DeleteAppProfileRequest + { + AppProfileName = AppProfileName.FromProjectInstanceAppProfile("[PROJECT]", "[INSTANCE]", "[APP_PROFILE]"), + IgnoreWarnings = false, + }; + // Make the request + bigtableInstanceAdminClient.DeleteAppProfile(request); + // End snippet + } + + /// Snippet for DeleteAppProfileAsync + public async Task DeleteAppProfileRequestObjectAsync() + { + // Snippet: DeleteAppProfileAsync(DeleteAppProfileRequest, CallSettings) + // Additional: DeleteAppProfileAsync(DeleteAppProfileRequest, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + DeleteAppProfileRequest request = new DeleteAppProfileRequest + { + AppProfileName = AppProfileName.FromProjectInstanceAppProfile("[PROJECT]", "[INSTANCE]", "[APP_PROFILE]"), + IgnoreWarnings = false, + }; + // Make the request + await bigtableInstanceAdminClient.DeleteAppProfileAsync(request); + // End snippet + } + + /// Snippet for DeleteAppProfile + public void DeleteAppProfile() + { + // Snippet: DeleteAppProfile(string, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/appProfiles/[APP_PROFILE]"; + // Make the request + bigtableInstanceAdminClient.DeleteAppProfile(name); + // End snippet + } + + /// Snippet for DeleteAppProfileAsync + public async Task DeleteAppProfileAsync() + { + // Snippet: DeleteAppProfileAsync(string, CallSettings) + // Additional: DeleteAppProfileAsync(string, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/appProfiles/[APP_PROFILE]"; + // Make the request + await bigtableInstanceAdminClient.DeleteAppProfileAsync(name); + // End snippet + } + + /// Snippet for DeleteAppProfile + public void DeleteAppProfileResourceNames() + { + // Snippet: DeleteAppProfile(AppProfileName, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + AppProfileName name = AppProfileName.FromProjectInstanceAppProfile("[PROJECT]", "[INSTANCE]", "[APP_PROFILE]"); + // Make the request + bigtableInstanceAdminClient.DeleteAppProfile(name); + // End snippet + } + + /// Snippet for DeleteAppProfileAsync + public async Task DeleteAppProfileResourceNamesAsync() + { + // Snippet: DeleteAppProfileAsync(AppProfileName, CallSettings) + // Additional: DeleteAppProfileAsync(AppProfileName, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + AppProfileName name = AppProfileName.FromProjectInstanceAppProfile("[PROJECT]", "[INSTANCE]", "[APP_PROFILE]"); + // Make the request + await bigtableInstanceAdminClient.DeleteAppProfileAsync(name); + // End snippet + } + + /// Snippet for GetIamPolicy + public void GetIamPolicyRequestObject() + { + // Snippet: GetIamPolicy(GetIamPolicyRequest, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + GetIamPolicyRequest request = new GetIamPolicyRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Options = new GetPolicyOptions(), + }; + // Make the request + Policy response = bigtableInstanceAdminClient.GetIamPolicy(request); + // End snippet + } + + /// Snippet for GetIamPolicyAsync + public async Task GetIamPolicyRequestObjectAsync() + { + // Snippet: GetIamPolicyAsync(GetIamPolicyRequest, CallSettings) + // Additional: GetIamPolicyAsync(GetIamPolicyRequest, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + GetIamPolicyRequest request = new GetIamPolicyRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Options = new GetPolicyOptions(), + }; + // Make the request + Policy response = await bigtableInstanceAdminClient.GetIamPolicyAsync(request); + // End snippet + } + + /// Snippet for GetIamPolicy + public void GetIamPolicy() + { + // Snippet: GetIamPolicy(string, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + // Make the request + Policy response = bigtableInstanceAdminClient.GetIamPolicy(resource); + // End snippet + } + + /// Snippet for GetIamPolicyAsync + public async Task GetIamPolicyAsync() + { + // Snippet: GetIamPolicyAsync(string, CallSettings) + // Additional: GetIamPolicyAsync(string, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + // Make the request + Policy response = await bigtableInstanceAdminClient.GetIamPolicyAsync(resource); + // End snippet + } + + /// Snippet for GetIamPolicy + public void GetIamPolicyResourceNames() + { + // Snippet: GetIamPolicy(IResourceName, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + // Make the request + Policy response = bigtableInstanceAdminClient.GetIamPolicy(resource); + // End snippet + } + + /// Snippet for GetIamPolicyAsync + public async Task GetIamPolicyResourceNamesAsync() + { + // Snippet: GetIamPolicyAsync(IResourceName, CallSettings) + // Additional: GetIamPolicyAsync(IResourceName, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + // Make the request + Policy response = await bigtableInstanceAdminClient.GetIamPolicyAsync(resource); + // End snippet + } + + /// Snippet for SetIamPolicy + public void SetIamPolicyRequestObject() + { + // Snippet: SetIamPolicy(SetIamPolicyRequest, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + SetIamPolicyRequest request = new SetIamPolicyRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Policy = new Policy(), + UpdateMask = new FieldMask(), + }; + // Make the request + Policy response = bigtableInstanceAdminClient.SetIamPolicy(request); + // End snippet + } + + /// Snippet for SetIamPolicyAsync + public async Task SetIamPolicyRequestObjectAsync() + { + // Snippet: SetIamPolicyAsync(SetIamPolicyRequest, CallSettings) + // Additional: SetIamPolicyAsync(SetIamPolicyRequest, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + SetIamPolicyRequest request = new SetIamPolicyRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Policy = new Policy(), + UpdateMask = new FieldMask(), + }; + // Make the request + Policy response = await bigtableInstanceAdminClient.SetIamPolicyAsync(request); + // End snippet + } + + /// Snippet for SetIamPolicy + public void SetIamPolicy() + { + // Snippet: SetIamPolicy(string, Policy, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + Policy policy = new Policy(); + // Make the request + Policy response = bigtableInstanceAdminClient.SetIamPolicy(resource, policy); + // End snippet + } + + /// Snippet for SetIamPolicyAsync + public async Task SetIamPolicyAsync() + { + // Snippet: SetIamPolicyAsync(string, Policy, CallSettings) + // Additional: SetIamPolicyAsync(string, Policy, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + Policy policy = new Policy(); + // Make the request + Policy response = await bigtableInstanceAdminClient.SetIamPolicyAsync(resource, policy); + // End snippet + } + + /// Snippet for SetIamPolicy + public void SetIamPolicyResourceNames() + { + // Snippet: SetIamPolicy(IResourceName, Policy, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + Policy policy = new Policy(); + // Make the request + Policy response = bigtableInstanceAdminClient.SetIamPolicy(resource, policy); + // End snippet + } + + /// Snippet for SetIamPolicyAsync + public async Task SetIamPolicyResourceNamesAsync() + { + // Snippet: SetIamPolicyAsync(IResourceName, Policy, CallSettings) + // Additional: SetIamPolicyAsync(IResourceName, Policy, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + Policy policy = new Policy(); + // Make the request + Policy response = await bigtableInstanceAdminClient.SetIamPolicyAsync(resource, policy); + // End snippet + } + + /// Snippet for TestIamPermissions + public void TestIamPermissionsRequestObject() + { + // Snippet: TestIamPermissions(TestIamPermissionsRequest, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + TestIamPermissionsRequest request = new TestIamPermissionsRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Permissions = { "", }, + }; + // Make the request + TestIamPermissionsResponse response = bigtableInstanceAdminClient.TestIamPermissions(request); + // End snippet + } + + /// Snippet for TestIamPermissionsAsync + public async Task TestIamPermissionsRequestObjectAsync() + { + // Snippet: TestIamPermissionsAsync(TestIamPermissionsRequest, CallSettings) + // Additional: TestIamPermissionsAsync(TestIamPermissionsRequest, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + TestIamPermissionsRequest request = new TestIamPermissionsRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Permissions = { "", }, + }; + // Make the request + TestIamPermissionsResponse response = await bigtableInstanceAdminClient.TestIamPermissionsAsync(request); + // End snippet + } + + /// Snippet for TestIamPermissions + public void TestIamPermissions() + { + // Snippet: TestIamPermissions(string, IEnumerable, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + IEnumerable permissions = new string[] { "", }; + // Make the request + TestIamPermissionsResponse response = bigtableInstanceAdminClient.TestIamPermissions(resource, permissions); + // End snippet + } + + /// Snippet for TestIamPermissionsAsync + public async Task TestIamPermissionsAsync() + { + // Snippet: TestIamPermissionsAsync(string, IEnumerable, CallSettings) + // Additional: TestIamPermissionsAsync(string, IEnumerable, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + IEnumerable permissions = new string[] { "", }; + // Make the request + TestIamPermissionsResponse response = await bigtableInstanceAdminClient.TestIamPermissionsAsync(resource, permissions); + // End snippet + } + + /// Snippet for TestIamPermissions + public void TestIamPermissionsResourceNames() + { + // Snippet: TestIamPermissions(IResourceName, IEnumerable, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + IEnumerable permissions = new string[] { "", }; + // Make the request + TestIamPermissionsResponse response = bigtableInstanceAdminClient.TestIamPermissions(resource, permissions); + // End snippet + } + + /// Snippet for TestIamPermissionsAsync + public async Task TestIamPermissionsResourceNamesAsync() + { + // Snippet: TestIamPermissionsAsync(IResourceName, IEnumerable, CallSettings) + // Additional: TestIamPermissionsAsync(IResourceName, IEnumerable, CancellationToken) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + IEnumerable permissions = new string[] { "", }; + // Make the request + TestIamPermissionsResponse response = await bigtableInstanceAdminClient.TestIamPermissionsAsync(resource, permissions); + // End snippet + } + + /// Snippet for ListHotTablets + public void ListHotTabletsRequestObject() + { + // Snippet: ListHotTablets(ListHotTabletsRequest, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + ListHotTabletsRequest request = new ListHotTabletsRequest + { + ParentAsClusterName = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"), + StartTime = new Timestamp(), + EndTime = new Timestamp(), + }; + // Make the request + PagedEnumerable response = bigtableInstanceAdminClient.ListHotTablets(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (HotTablet item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListHotTabletsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (HotTablet item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (HotTablet item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListHotTabletsAsync + public async Task ListHotTabletsRequestObjectAsync() + { + // Snippet: ListHotTabletsAsync(ListHotTabletsRequest, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + ListHotTabletsRequest request = new ListHotTabletsRequest + { + ParentAsClusterName = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"), + StartTime = new Timestamp(), + EndTime = new Timestamp(), + }; + // Make the request + PagedAsyncEnumerable response = bigtableInstanceAdminClient.ListHotTabletsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((HotTablet item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListHotTabletsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (HotTablet item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (HotTablet item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListHotTablets + public void ListHotTablets() + { + // Snippet: ListHotTablets(string, string, int?, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]"; + // Make the request + PagedEnumerable response = bigtableInstanceAdminClient.ListHotTablets(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (HotTablet item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListHotTabletsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (HotTablet item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (HotTablet item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListHotTabletsAsync + public async Task ListHotTabletsAsync() + { + // Snippet: ListHotTabletsAsync(string, string, int?, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]"; + // Make the request + PagedAsyncEnumerable response = bigtableInstanceAdminClient.ListHotTabletsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((HotTablet item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListHotTabletsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (HotTablet item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (HotTablet item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListHotTablets + public void ListHotTabletsResourceNames() + { + // Snippet: ListHotTablets(ClusterName, string, int?, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = BigtableInstanceAdminClient.Create(); + // Initialize request argument(s) + ClusterName parent = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"); + // Make the request + PagedEnumerable response = bigtableInstanceAdminClient.ListHotTablets(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (HotTablet item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListHotTabletsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (HotTablet item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (HotTablet item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListHotTabletsAsync + public async Task ListHotTabletsResourceNamesAsync() + { + // Snippet: ListHotTabletsAsync(ClusterName, string, int?, CallSettings) + // Create client + BigtableInstanceAdminClient bigtableInstanceAdminClient = await BigtableInstanceAdminClient.CreateAsync(); + // Initialize request argument(s) + ClusterName parent = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"); + // Make the request + PagedAsyncEnumerable response = bigtableInstanceAdminClient.ListHotTabletsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((HotTablet item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListHotTabletsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (HotTablet item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (HotTablet item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + } +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.Snippets/BigtableTableAdminClientSnippets.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.Snippets/BigtableTableAdminClientSnippets.g.cs new file mode 100755 index 000000000000..df91044ee5b9 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.Snippets/BigtableTableAdminClientSnippets.g.cs @@ -0,0 +1,4124 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + using Google.Api.Gax; + using Google.Cloud.Bigtable.Admin.V2; + using Google.Cloud.Iam.V1; + using Google.LongRunning; + using Google.Protobuf; + using Google.Protobuf.WellKnownTypes; + using System; + using System.Collections.Generic; + using System.Linq; + using System.Threading.Tasks; + + /// Generated snippets. + public sealed class AllGeneratedBigtableTableAdminClientSnippets + { + /// Snippet for CreateTable + public void CreateTableRequestObject() + { + // Snippet: CreateTable(CreateTableRequest, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + CreateTableRequest request = new CreateTableRequest + { + ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + TableId = "", + Table = new Table(), + InitialSplits = + { + new CreateTableRequest.Types.Split(), + }, + }; + // Make the request + Table response = bigtableTableAdminClient.CreateTable(request); + // End snippet + } + + /// Snippet for CreateTableAsync + public async Task CreateTableRequestObjectAsync() + { + // Snippet: CreateTableAsync(CreateTableRequest, CallSettings) + // Additional: CreateTableAsync(CreateTableRequest, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + CreateTableRequest request = new CreateTableRequest + { + ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + TableId = "", + Table = new Table(), + InitialSplits = + { + new CreateTableRequest.Types.Split(), + }, + }; + // Make the request + Table response = await bigtableTableAdminClient.CreateTableAsync(request); + // End snippet + } + + /// Snippet for CreateTable + public void CreateTable() + { + // Snippet: CreateTable(string, string, Table, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]"; + string tableId = ""; + Table table = new Table(); + // Make the request + Table response = bigtableTableAdminClient.CreateTable(parent, tableId, table); + // End snippet + } + + /// Snippet for CreateTableAsync + public async Task CreateTableAsync() + { + // Snippet: CreateTableAsync(string, string, Table, CallSettings) + // Additional: CreateTableAsync(string, string, Table, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]"; + string tableId = ""; + Table table = new Table(); + // Make the request + Table response = await bigtableTableAdminClient.CreateTableAsync(parent, tableId, table); + // End snippet + } + + /// Snippet for CreateTable + public void CreateTableResourceNames() + { + // Snippet: CreateTable(InstanceName, string, Table, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"); + string tableId = ""; + Table table = new Table(); + // Make the request + Table response = bigtableTableAdminClient.CreateTable(parent, tableId, table); + // End snippet + } + + /// Snippet for CreateTableAsync + public async Task CreateTableResourceNamesAsync() + { + // Snippet: CreateTableAsync(InstanceName, string, Table, CallSettings) + // Additional: CreateTableAsync(InstanceName, string, Table, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"); + string tableId = ""; + Table table = new Table(); + // Make the request + Table response = await bigtableTableAdminClient.CreateTableAsync(parent, tableId, table); + // End snippet + } + + /// Snippet for CreateTableFromSnapshot + public void CreateTableFromSnapshotRequestObject() + { + // Snippet: CreateTableFromSnapshot(CreateTableFromSnapshotRequest, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + CreateTableFromSnapshotRequest request = new CreateTableFromSnapshotRequest + { + ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + TableId = "", + SourceSnapshotAsSnapshotName = SnapshotName.FromProjectInstanceClusterSnapshot("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]"), + }; + // Make the request + Operation response = bigtableTableAdminClient.CreateTableFromSnapshot(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Table result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceCreateTableFromSnapshot(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Table retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateTableFromSnapshotAsync + public async Task CreateTableFromSnapshotRequestObjectAsync() + { + // Snippet: CreateTableFromSnapshotAsync(CreateTableFromSnapshotRequest, CallSettings) + // Additional: CreateTableFromSnapshotAsync(CreateTableFromSnapshotRequest, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + CreateTableFromSnapshotRequest request = new CreateTableFromSnapshotRequest + { + ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + TableId = "", + SourceSnapshotAsSnapshotName = SnapshotName.FromProjectInstanceClusterSnapshot("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]"), + }; + // Make the request + Operation response = await bigtableTableAdminClient.CreateTableFromSnapshotAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Table result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceCreateTableFromSnapshotAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Table retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateTableFromSnapshot + public void CreateTableFromSnapshot() + { + // Snippet: CreateTableFromSnapshot(string, string, string, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]"; + string tableId = ""; + string sourceSnapshot = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]/snapshots/[SNAPSHOT]"; + // Make the request + Operation response = bigtableTableAdminClient.CreateTableFromSnapshot(parent, tableId, sourceSnapshot); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Table result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceCreateTableFromSnapshot(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Table retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateTableFromSnapshotAsync + public async Task CreateTableFromSnapshotAsync() + { + // Snippet: CreateTableFromSnapshotAsync(string, string, string, CallSettings) + // Additional: CreateTableFromSnapshotAsync(string, string, string, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]"; + string tableId = ""; + string sourceSnapshot = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]/snapshots/[SNAPSHOT]"; + // Make the request + Operation response = await bigtableTableAdminClient.CreateTableFromSnapshotAsync(parent, tableId, sourceSnapshot); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Table result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceCreateTableFromSnapshotAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Table retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateTableFromSnapshot + public void CreateTableFromSnapshotResourceNames() + { + // Snippet: CreateTableFromSnapshot(InstanceName, string, SnapshotName, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"); + string tableId = ""; + SnapshotName sourceSnapshot = SnapshotName.FromProjectInstanceClusterSnapshot("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]"); + // Make the request + Operation response = bigtableTableAdminClient.CreateTableFromSnapshot(parent, tableId, sourceSnapshot); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Table result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceCreateTableFromSnapshot(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Table retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateTableFromSnapshotAsync + public async Task CreateTableFromSnapshotResourceNamesAsync() + { + // Snippet: CreateTableFromSnapshotAsync(InstanceName, string, SnapshotName, CallSettings) + // Additional: CreateTableFromSnapshotAsync(InstanceName, string, SnapshotName, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"); + string tableId = ""; + SnapshotName sourceSnapshot = SnapshotName.FromProjectInstanceClusterSnapshot("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]"); + // Make the request + Operation response = await bigtableTableAdminClient.CreateTableFromSnapshotAsync(parent, tableId, sourceSnapshot); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Table result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceCreateTableFromSnapshotAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Table retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for ListTables + public void ListTablesRequestObject() + { + // Snippet: ListTables(ListTablesRequest, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + ListTablesRequest request = new ListTablesRequest + { + ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + View = Table.Types.View.Unspecified, + }; + // Make the request + PagedEnumerable response = bigtableTableAdminClient.ListTables(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Table item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListTablesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Table item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page
singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Table item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListTablesAsync + public async Task ListTablesRequestObjectAsync() + { + // Snippet: ListTablesAsync(ListTablesRequest, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + ListTablesRequest request = new ListTablesRequest + { + ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + View = Table.Types.View.Unspecified, + }; + // Make the request + PagedAsyncEnumerable response = bigtableTableAdminClient.ListTablesAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Table item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListTablesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Table item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page
singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Table item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListTables + public void ListTables() + { + // Snippet: ListTables(string, string, int?, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]"; + // Make the request + PagedEnumerable response = bigtableTableAdminClient.ListTables(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Table item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListTablesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Table item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page
singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Table item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListTablesAsync + public async Task ListTablesAsync() + { + // Snippet: ListTablesAsync(string, string, int?, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]"; + // Make the request + PagedAsyncEnumerable response = bigtableTableAdminClient.ListTablesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Table item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListTablesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Table item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page
singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Table item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListTables + public void ListTablesResourceNames() + { + // Snippet: ListTables(InstanceName, string, int?, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"); + // Make the request + PagedEnumerable response = bigtableTableAdminClient.ListTables(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Table item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListTablesResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Table item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page
singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Table item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListTablesAsync + public async Task ListTablesResourceNamesAsync() + { + // Snippet: ListTablesAsync(InstanceName, string, int?, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"); + // Make the request + PagedAsyncEnumerable response = bigtableTableAdminClient.ListTablesAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Table item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListTablesResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Table item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page
singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Table item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for GetTable + public void GetTableRequestObject() + { + // Snippet: GetTable(GetTableRequest, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + GetTableRequest request = new GetTableRequest + { + TableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + View = Table.Types.View.Unspecified, + }; + // Make the request + Table response = bigtableTableAdminClient.GetTable(request); + // End snippet + } + + /// Snippet for GetTableAsync + public async Task GetTableRequestObjectAsync() + { + // Snippet: GetTableAsync(GetTableRequest, CallSettings) + // Additional: GetTableAsync(GetTableRequest, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + GetTableRequest request = new GetTableRequest + { + TableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + View = Table.Types.View.Unspecified, + }; + // Make the request + Table response = await bigtableTableAdminClient.GetTableAsync(request); + // End snippet + } + + /// Snippet for GetTable + public void GetTable() + { + // Snippet: GetTable(string, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; + // Make the request + Table response = bigtableTableAdminClient.GetTable(name); + // End snippet + } + + /// Snippet for GetTableAsync + public async Task GetTableAsync() + { + // Snippet: GetTableAsync(string, CallSettings) + // Additional: GetTableAsync(string, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; + // Make the request + Table response = await bigtableTableAdminClient.GetTableAsync(name); + // End snippet + } + + /// Snippet for GetTable + public void GetTableResourceNames() + { + // Snippet: GetTable(TableName, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + TableName name = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"); + // Make the request + Table response = bigtableTableAdminClient.GetTable(name); + // End snippet + } + + /// Snippet for GetTableAsync + public async Task GetTableResourceNamesAsync() + { + // Snippet: GetTableAsync(TableName, CallSettings) + // Additional: GetTableAsync(TableName, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + TableName name = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"); + // Make the request + Table response = await bigtableTableAdminClient.GetTableAsync(name); + // End snippet + } + + /// Snippet for UpdateTable + public void UpdateTableRequestObject() + { + // Snippet: UpdateTable(UpdateTableRequest, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + UpdateTableRequest request = new UpdateTableRequest + { + Table = new Table(), + UpdateMask = new FieldMask(), + }; + // Make the request + Operation response = bigtableTableAdminClient.UpdateTable(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Table result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceUpdateTable(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Table retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UpdateTableAsync + public async Task UpdateTableRequestObjectAsync() + { + // Snippet: UpdateTableAsync(UpdateTableRequest, CallSettings) + // Additional: UpdateTableAsync(UpdateTableRequest, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + UpdateTableRequest request = new UpdateTableRequest + { + Table = new Table(), + UpdateMask = new FieldMask(), + }; + // Make the request + Operation response = await bigtableTableAdminClient.UpdateTableAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Table result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceUpdateTableAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Table retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UpdateTable + public void UpdateTable() + { + // Snippet: UpdateTable(Table, FieldMask, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + Table table = new Table(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = bigtableTableAdminClient.UpdateTable(table, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Table result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceUpdateTable(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Table retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UpdateTableAsync + public async Task UpdateTableAsync() + { + // Snippet: UpdateTableAsync(Table, FieldMask, CallSettings) + // Additional: UpdateTableAsync(Table, FieldMask, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + Table table = new Table(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = await bigtableTableAdminClient.UpdateTableAsync(table, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Table result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceUpdateTableAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Table retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteTable + public void DeleteTableRequestObject() + { + // Snippet: DeleteTable(DeleteTableRequest, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + DeleteTableRequest request = new DeleteTableRequest + { + TableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + }; + // Make the request + bigtableTableAdminClient.DeleteTable(request); + // End snippet + } + + /// Snippet for DeleteTableAsync + public async Task DeleteTableRequestObjectAsync() + { + // Snippet: DeleteTableAsync(DeleteTableRequest, CallSettings) + // Additional: DeleteTableAsync(DeleteTableRequest, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + DeleteTableRequest request = new DeleteTableRequest + { + TableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + }; + // Make the request + await bigtableTableAdminClient.DeleteTableAsync(request); + // End snippet + } + + /// Snippet for DeleteTable + public void DeleteTable() + { + // Snippet: DeleteTable(string, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; + // Make the request + bigtableTableAdminClient.DeleteTable(name); + // End snippet + } + + /// Snippet for DeleteTableAsync + public async Task DeleteTableAsync() + { + // Snippet: DeleteTableAsync(string, CallSettings) + // Additional: DeleteTableAsync(string, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; + // Make the request + await bigtableTableAdminClient.DeleteTableAsync(name); + // End snippet + } + + /// Snippet for DeleteTable + public void DeleteTableResourceNames() + { + // Snippet: DeleteTable(TableName, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + TableName name = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"); + // Make the request + bigtableTableAdminClient.DeleteTable(name); + // End snippet + } + + /// Snippet for DeleteTableAsync + public async Task DeleteTableResourceNamesAsync() + { + // Snippet: DeleteTableAsync(TableName, CallSettings) + // Additional: DeleteTableAsync(TableName, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + TableName name = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"); + // Make the request + await bigtableTableAdminClient.DeleteTableAsync(name); + // End snippet + } + + /// Snippet for UndeleteTable + public void UndeleteTableRequestObject() + { + // Snippet: UndeleteTable(UndeleteTableRequest, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + UndeleteTableRequest request = new UndeleteTableRequest + { + TableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + }; + // Make the request + Operation response = bigtableTableAdminClient.UndeleteTable(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Table result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceUndeleteTable(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Table retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UndeleteTableAsync + public async Task UndeleteTableRequestObjectAsync() + { + // Snippet: UndeleteTableAsync(UndeleteTableRequest, CallSettings) + // Additional: UndeleteTableAsync(UndeleteTableRequest, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + UndeleteTableRequest request = new UndeleteTableRequest + { + TableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + }; + // Make the request + Operation response = await bigtableTableAdminClient.UndeleteTableAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Table result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceUndeleteTableAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Table retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UndeleteTable + public void UndeleteTable() + { + // Snippet: UndeleteTable(string, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; + // Make the request + Operation response = bigtableTableAdminClient.UndeleteTable(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Table result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceUndeleteTable(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Table retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UndeleteTableAsync + public async Task UndeleteTableAsync() + { + // Snippet: UndeleteTableAsync(string, CallSettings) + // Additional: UndeleteTableAsync(string, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; + // Make the request + Operation response = await bigtableTableAdminClient.UndeleteTableAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Table result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceUndeleteTableAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Table retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UndeleteTable + public void UndeleteTableResourceNames() + { + // Snippet: UndeleteTable(TableName, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + TableName name = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"); + // Make the request + Operation response = bigtableTableAdminClient.UndeleteTable(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Table result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceUndeleteTable(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Table retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UndeleteTableAsync + public async Task UndeleteTableResourceNamesAsync() + { + // Snippet: UndeleteTableAsync(TableName, CallSettings) + // Additional: UndeleteTableAsync(TableName, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + TableName name = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"); + // Make the request + Operation response = await bigtableTableAdminClient.UndeleteTableAsync(name); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Table result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceUndeleteTableAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Table retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateAuthorizedView + public void CreateAuthorizedViewRequestObject() + { + // Snippet: CreateAuthorizedView(CreateAuthorizedViewRequest, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + CreateAuthorizedViewRequest request = new CreateAuthorizedViewRequest + { + ParentAsTableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + AuthorizedViewId = "", + AuthorizedView = new AuthorizedView(), + }; + // Make the request + Operation response = bigtableTableAdminClient.CreateAuthorizedView(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + AuthorizedView result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceCreateAuthorizedView(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AuthorizedView retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateAuthorizedViewAsync + public async Task CreateAuthorizedViewRequestObjectAsync() + { + // Snippet: CreateAuthorizedViewAsync(CreateAuthorizedViewRequest, CallSettings) + // Additional: CreateAuthorizedViewAsync(CreateAuthorizedViewRequest, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + CreateAuthorizedViewRequest request = new CreateAuthorizedViewRequest + { + ParentAsTableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + AuthorizedViewId = "", + AuthorizedView = new AuthorizedView(), + }; + // Make the request + Operation response = await bigtableTableAdminClient.CreateAuthorizedViewAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + AuthorizedView result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceCreateAuthorizedViewAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AuthorizedView retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateAuthorizedView + public void CreateAuthorizedView() + { + // Snippet: CreateAuthorizedView(string, AuthorizedView, string, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; + AuthorizedView authorizedView = new AuthorizedView(); + string authorizedViewId = ""; + // Make the request + Operation response = bigtableTableAdminClient.CreateAuthorizedView(parent, authorizedView, authorizedViewId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + AuthorizedView result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceCreateAuthorizedView(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AuthorizedView retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateAuthorizedViewAsync + public async Task CreateAuthorizedViewAsync() + { + // Snippet: CreateAuthorizedViewAsync(string, AuthorizedView, string, CallSettings) + // Additional: CreateAuthorizedViewAsync(string, AuthorizedView, string, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; + AuthorizedView authorizedView = new AuthorizedView(); + string authorizedViewId = ""; + // Make the request + Operation response = await bigtableTableAdminClient.CreateAuthorizedViewAsync(parent, authorizedView, authorizedViewId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + AuthorizedView result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceCreateAuthorizedViewAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AuthorizedView retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateAuthorizedView + public void CreateAuthorizedViewResourceNames() + { + // Snippet: CreateAuthorizedView(TableName, AuthorizedView, string, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + TableName parent = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"); + AuthorizedView authorizedView = new AuthorizedView(); + string authorizedViewId = ""; + // Make the request + Operation response = bigtableTableAdminClient.CreateAuthorizedView(parent, authorizedView, authorizedViewId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + AuthorizedView result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceCreateAuthorizedView(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AuthorizedView retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateAuthorizedViewAsync + public async Task CreateAuthorizedViewResourceNamesAsync() + { + // Snippet: CreateAuthorizedViewAsync(TableName, AuthorizedView, string, CallSettings) + // Additional: CreateAuthorizedViewAsync(TableName, AuthorizedView, string, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + TableName parent = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"); + AuthorizedView authorizedView = new AuthorizedView(); + string authorizedViewId = ""; + // Make the request + Operation response = await bigtableTableAdminClient.CreateAuthorizedViewAsync(parent, authorizedView, authorizedViewId); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + AuthorizedView result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceCreateAuthorizedViewAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AuthorizedView retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for ListAuthorizedViews + public void ListAuthorizedViewsRequestObject() + { + // Snippet: ListAuthorizedViews(ListAuthorizedViewsRequest, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + ListAuthorizedViewsRequest request = new ListAuthorizedViewsRequest + { + ParentAsTableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + View = AuthorizedView.Types.ResponseView.Unspecified, + }; + // Make the request + PagedEnumerable response = bigtableTableAdminClient.ListAuthorizedViews(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (AuthorizedView item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListAuthorizedViewsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AuthorizedView item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (AuthorizedView item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListAuthorizedViewsAsync + public async Task ListAuthorizedViewsRequestObjectAsync() + { + // Snippet: ListAuthorizedViewsAsync(ListAuthorizedViewsRequest, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + ListAuthorizedViewsRequest request = new ListAuthorizedViewsRequest + { + ParentAsTableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + View = AuthorizedView.Types.ResponseView.Unspecified, + }; + // Make the request + PagedAsyncEnumerable response = bigtableTableAdminClient.ListAuthorizedViewsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((AuthorizedView item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListAuthorizedViewsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AuthorizedView item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (AuthorizedView item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListAuthorizedViews + public void ListAuthorizedViews() + { + // Snippet: ListAuthorizedViews(string, string, int?, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; + // Make the request + PagedEnumerable response = bigtableTableAdminClient.ListAuthorizedViews(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (AuthorizedView item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListAuthorizedViewsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AuthorizedView item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (AuthorizedView item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListAuthorizedViewsAsync + public async Task ListAuthorizedViewsAsync() + { + // Snippet: ListAuthorizedViewsAsync(string, string, int?, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; + // Make the request + PagedAsyncEnumerable response = bigtableTableAdminClient.ListAuthorizedViewsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((AuthorizedView item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListAuthorizedViewsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AuthorizedView item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (AuthorizedView item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListAuthorizedViews + public void ListAuthorizedViewsResourceNames() + { + // Snippet: ListAuthorizedViews(TableName, string, int?, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + TableName parent = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"); + // Make the request + PagedEnumerable response = bigtableTableAdminClient.ListAuthorizedViews(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (AuthorizedView item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListAuthorizedViewsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AuthorizedView item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (AuthorizedView item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListAuthorizedViewsAsync + public async Task ListAuthorizedViewsResourceNamesAsync() + { + // Snippet: ListAuthorizedViewsAsync(TableName, string, int?, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + TableName parent = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"); + // Make the request + PagedAsyncEnumerable response = bigtableTableAdminClient.ListAuthorizedViewsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((AuthorizedView item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListAuthorizedViewsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (AuthorizedView item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (AuthorizedView item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for GetAuthorizedView + public void GetAuthorizedViewRequestObject() + { + // Snippet: GetAuthorizedView(GetAuthorizedViewRequest, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + GetAuthorizedViewRequest request = new GetAuthorizedViewRequest + { + AuthorizedViewName = AuthorizedViewName.FromProjectInstanceTableAuthorizedView("[PROJECT]", "[INSTANCE]", "[TABLE]", "[AUTHORIZED_VIEW]"), + View = AuthorizedView.Types.ResponseView.Unspecified, + }; + // Make the request + AuthorizedView response = bigtableTableAdminClient.GetAuthorizedView(request); + // End snippet + } + + /// Snippet for GetAuthorizedViewAsync + public async Task GetAuthorizedViewRequestObjectAsync() + { + // Snippet: GetAuthorizedViewAsync(GetAuthorizedViewRequest, CallSettings) + // Additional: GetAuthorizedViewAsync(GetAuthorizedViewRequest, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + GetAuthorizedViewRequest request = new GetAuthorizedViewRequest + { + AuthorizedViewName = AuthorizedViewName.FromProjectInstanceTableAuthorizedView("[PROJECT]", "[INSTANCE]", "[TABLE]", "[AUTHORIZED_VIEW]"), + View = AuthorizedView.Types.ResponseView.Unspecified, + }; + // Make the request + AuthorizedView response = await bigtableTableAdminClient.GetAuthorizedViewAsync(request); + // End snippet + } + + /// Snippet for GetAuthorizedView + public void GetAuthorizedView() + { + // Snippet: GetAuthorizedView(string, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]/authorizedViews/[AUTHORIZED_VIEW]"; + // Make the request + AuthorizedView response = bigtableTableAdminClient.GetAuthorizedView(name); + // End snippet + } + + /// Snippet for GetAuthorizedViewAsync + public async Task GetAuthorizedViewAsync() + { + // Snippet: GetAuthorizedViewAsync(string, CallSettings) + // Additional: GetAuthorizedViewAsync(string, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]/authorizedViews/[AUTHORIZED_VIEW]"; + // Make the request + AuthorizedView response = await bigtableTableAdminClient.GetAuthorizedViewAsync(name); + // End snippet + } + + /// Snippet for GetAuthorizedView + public void GetAuthorizedViewResourceNames() + { + // Snippet: GetAuthorizedView(AuthorizedViewName, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + AuthorizedViewName name = AuthorizedViewName.FromProjectInstanceTableAuthorizedView("[PROJECT]", "[INSTANCE]", "[TABLE]", "[AUTHORIZED_VIEW]"); + // Make the request + AuthorizedView response = bigtableTableAdminClient.GetAuthorizedView(name); + // End snippet + } + + /// Snippet for GetAuthorizedViewAsync + public async Task GetAuthorizedViewResourceNamesAsync() + { + // Snippet: GetAuthorizedViewAsync(AuthorizedViewName, CallSettings) + // Additional: GetAuthorizedViewAsync(AuthorizedViewName, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + AuthorizedViewName name = AuthorizedViewName.FromProjectInstanceTableAuthorizedView("[PROJECT]", "[INSTANCE]", "[TABLE]", "[AUTHORIZED_VIEW]"); + // Make the request + AuthorizedView response = await bigtableTableAdminClient.GetAuthorizedViewAsync(name); + // End snippet + } + + /// Snippet for UpdateAuthorizedView + public void UpdateAuthorizedViewRequestObject() + { + // Snippet: UpdateAuthorizedView(UpdateAuthorizedViewRequest, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + UpdateAuthorizedViewRequest request = new UpdateAuthorizedViewRequest + { + AuthorizedView = new AuthorizedView(), + UpdateMask = new FieldMask(), + IgnoreWarnings = false, + }; + // Make the request + Operation response = bigtableTableAdminClient.UpdateAuthorizedView(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + AuthorizedView result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceUpdateAuthorizedView(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AuthorizedView retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UpdateAuthorizedViewAsync + public async Task UpdateAuthorizedViewRequestObjectAsync() + { + // Snippet: UpdateAuthorizedViewAsync(UpdateAuthorizedViewRequest, CallSettings) + // Additional: UpdateAuthorizedViewAsync(UpdateAuthorizedViewRequest, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + UpdateAuthorizedViewRequest request = new UpdateAuthorizedViewRequest + { + AuthorizedView = new AuthorizedView(), + UpdateMask = new FieldMask(), + IgnoreWarnings = false, + }; + // Make the request + Operation response = await bigtableTableAdminClient.UpdateAuthorizedViewAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + AuthorizedView result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceUpdateAuthorizedViewAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AuthorizedView retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UpdateAuthorizedView + public void UpdateAuthorizedView() + { + // Snippet: UpdateAuthorizedView(AuthorizedView, FieldMask, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + AuthorizedView authorizedView = new AuthorizedView(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = bigtableTableAdminClient.UpdateAuthorizedView(authorizedView, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + AuthorizedView result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceUpdateAuthorizedView(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AuthorizedView retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for UpdateAuthorizedViewAsync + public async Task UpdateAuthorizedViewAsync() + { + // Snippet: UpdateAuthorizedViewAsync(AuthorizedView, FieldMask, CallSettings) + // Additional: UpdateAuthorizedViewAsync(AuthorizedView, FieldMask, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + AuthorizedView authorizedView = new AuthorizedView(); + FieldMask updateMask = new FieldMask(); + // Make the request + Operation response = await bigtableTableAdminClient.UpdateAuthorizedViewAsync(authorizedView, updateMask); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + AuthorizedView result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceUpdateAuthorizedViewAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + AuthorizedView retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for DeleteAuthorizedView + public void DeleteAuthorizedViewRequestObject() + { + // Snippet: DeleteAuthorizedView(DeleteAuthorizedViewRequest, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + DeleteAuthorizedViewRequest request = new DeleteAuthorizedViewRequest + { + AuthorizedViewName = AuthorizedViewName.FromProjectInstanceTableAuthorizedView("[PROJECT]", "[INSTANCE]", "[TABLE]", "[AUTHORIZED_VIEW]"), + Etag = "", + }; + // Make the request + bigtableTableAdminClient.DeleteAuthorizedView(request); + // End snippet + } + + /// Snippet for DeleteAuthorizedViewAsync + public async Task DeleteAuthorizedViewRequestObjectAsync() + { + // Snippet: DeleteAuthorizedViewAsync(DeleteAuthorizedViewRequest, CallSettings) + // Additional: DeleteAuthorizedViewAsync(DeleteAuthorizedViewRequest, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + DeleteAuthorizedViewRequest request = new DeleteAuthorizedViewRequest + { + AuthorizedViewName = AuthorizedViewName.FromProjectInstanceTableAuthorizedView("[PROJECT]", "[INSTANCE]", "[TABLE]", "[AUTHORIZED_VIEW]"), + Etag = "", + }; + // Make the request + await bigtableTableAdminClient.DeleteAuthorizedViewAsync(request); + // End snippet + } + + /// Snippet for DeleteAuthorizedView + public void DeleteAuthorizedView() + { + // Snippet: DeleteAuthorizedView(string, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]/authorizedViews/[AUTHORIZED_VIEW]"; + // Make the request + bigtableTableAdminClient.DeleteAuthorizedView(name); + // End snippet + } + + /// Snippet for DeleteAuthorizedViewAsync + public async Task DeleteAuthorizedViewAsync() + { + // Snippet: DeleteAuthorizedViewAsync(string, CallSettings) + // Additional: DeleteAuthorizedViewAsync(string, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]/authorizedViews/[AUTHORIZED_VIEW]"; + // Make the request + await bigtableTableAdminClient.DeleteAuthorizedViewAsync(name); + // End snippet + } + + /// Snippet for DeleteAuthorizedView + public void DeleteAuthorizedViewResourceNames() + { + // Snippet: DeleteAuthorizedView(AuthorizedViewName, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + AuthorizedViewName name = AuthorizedViewName.FromProjectInstanceTableAuthorizedView("[PROJECT]", "[INSTANCE]", "[TABLE]", "[AUTHORIZED_VIEW]"); + // Make the request + bigtableTableAdminClient.DeleteAuthorizedView(name); + // End snippet + } + + /// Snippet for DeleteAuthorizedViewAsync + public async Task DeleteAuthorizedViewResourceNamesAsync() + { + // Snippet: DeleteAuthorizedViewAsync(AuthorizedViewName, CallSettings) + // Additional: DeleteAuthorizedViewAsync(AuthorizedViewName, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + AuthorizedViewName name = AuthorizedViewName.FromProjectInstanceTableAuthorizedView("[PROJECT]", "[INSTANCE]", "[TABLE]", "[AUTHORIZED_VIEW]"); + // Make the request + await bigtableTableAdminClient.DeleteAuthorizedViewAsync(name); + // End snippet + } + + /// Snippet for ModifyColumnFamilies + public void ModifyColumnFamiliesRequestObject() + { + // Snippet: ModifyColumnFamilies(ModifyColumnFamiliesRequest, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + ModifyColumnFamiliesRequest request = new ModifyColumnFamiliesRequest + { + TableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + Modifications = + { + new ModifyColumnFamiliesRequest.Types.Modification(), + }, + IgnoreWarnings = false, + }; + // Make the request + Table response = bigtableTableAdminClient.ModifyColumnFamilies(request); + // End snippet + } + + /// Snippet for ModifyColumnFamiliesAsync + public async Task ModifyColumnFamiliesRequestObjectAsync() + { + // Snippet: ModifyColumnFamiliesAsync(ModifyColumnFamiliesRequest, CallSettings) + // Additional: ModifyColumnFamiliesAsync(ModifyColumnFamiliesRequest, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + ModifyColumnFamiliesRequest request = new ModifyColumnFamiliesRequest + { + TableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + Modifications = + { + new ModifyColumnFamiliesRequest.Types.Modification(), + }, + IgnoreWarnings = false, + }; + // Make the request + Table response = await bigtableTableAdminClient.ModifyColumnFamiliesAsync(request); + // End snippet + } + + /// Snippet for ModifyColumnFamilies + public void ModifyColumnFamilies() + { + // Snippet: ModifyColumnFamilies(string, IEnumerable, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; + IEnumerable modifications = new ModifyColumnFamiliesRequest.Types.Modification[] + { + new ModifyColumnFamiliesRequest.Types.Modification(), + }; + // Make the request + Table response = bigtableTableAdminClient.ModifyColumnFamilies(name, modifications); + // End snippet + } + + /// Snippet for ModifyColumnFamiliesAsync + public async Task ModifyColumnFamiliesAsync() + { + // Snippet: ModifyColumnFamiliesAsync(string, IEnumerable, CallSettings) + // Additional: ModifyColumnFamiliesAsync(string, IEnumerable, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; + IEnumerable modifications = new ModifyColumnFamiliesRequest.Types.Modification[] + { + new ModifyColumnFamiliesRequest.Types.Modification(), + }; + // Make the request + Table response = await bigtableTableAdminClient.ModifyColumnFamiliesAsync(name, modifications); + // End snippet + } + + /// Snippet for ModifyColumnFamilies + public void ModifyColumnFamiliesResourceNames() + { + // Snippet: ModifyColumnFamilies(TableName, IEnumerable, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + TableName name = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"); + IEnumerable modifications = new ModifyColumnFamiliesRequest.Types.Modification[] + { + new ModifyColumnFamiliesRequest.Types.Modification(), + }; + // Make the request + Table response = bigtableTableAdminClient.ModifyColumnFamilies(name, modifications); + // End snippet + } + + /// Snippet for ModifyColumnFamiliesAsync + public async Task ModifyColumnFamiliesResourceNamesAsync() + { + // Snippet: ModifyColumnFamiliesAsync(TableName, IEnumerable, CallSettings) + // Additional: ModifyColumnFamiliesAsync(TableName, IEnumerable, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + TableName name = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"); + IEnumerable modifications = new ModifyColumnFamiliesRequest.Types.Modification[] + { + new ModifyColumnFamiliesRequest.Types.Modification(), + }; + // Make the request + Table response = await bigtableTableAdminClient.ModifyColumnFamiliesAsync(name, modifications); + // End snippet + } + + /// Snippet for DropRowRange + public void DropRowRangeRequestObject() + { + // Snippet: DropRowRange(DropRowRangeRequest, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + DropRowRangeRequest request = new DropRowRangeRequest + { + TableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + RowKeyPrefix = ByteString.Empty, + }; + // Make the request + bigtableTableAdminClient.DropRowRange(request); + // End snippet + } + + /// Snippet for DropRowRangeAsync + public async Task DropRowRangeRequestObjectAsync() + { + // Snippet: DropRowRangeAsync(DropRowRangeRequest, CallSettings) + // Additional: DropRowRangeAsync(DropRowRangeRequest, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + DropRowRangeRequest request = new DropRowRangeRequest + { + TableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + RowKeyPrefix = ByteString.Empty, + }; + // Make the request + await bigtableTableAdminClient.DropRowRangeAsync(request); + // End snippet + } + + /// Snippet for GenerateConsistencyToken + public void GenerateConsistencyTokenRequestObject() + { + // Snippet: GenerateConsistencyToken(GenerateConsistencyTokenRequest, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + GenerateConsistencyTokenRequest request = new GenerateConsistencyTokenRequest + { + TableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + }; + // Make the request + GenerateConsistencyTokenResponse response = bigtableTableAdminClient.GenerateConsistencyToken(request); + // End snippet + } + + /// Snippet for GenerateConsistencyTokenAsync + public async Task GenerateConsistencyTokenRequestObjectAsync() + { + // Snippet: GenerateConsistencyTokenAsync(GenerateConsistencyTokenRequest, CallSettings) + // Additional: GenerateConsistencyTokenAsync(GenerateConsistencyTokenRequest, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + GenerateConsistencyTokenRequest request = new GenerateConsistencyTokenRequest + { + TableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + }; + // Make the request + GenerateConsistencyTokenResponse response = await bigtableTableAdminClient.GenerateConsistencyTokenAsync(request); + // End snippet + } + + /// Snippet for GenerateConsistencyToken + public void GenerateConsistencyToken() + { + // Snippet: GenerateConsistencyToken(string, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; + // Make the request + GenerateConsistencyTokenResponse response = bigtableTableAdminClient.GenerateConsistencyToken(name); + // End snippet + } + + /// Snippet for GenerateConsistencyTokenAsync + public async Task GenerateConsistencyTokenAsync() + { + // Snippet: GenerateConsistencyTokenAsync(string, CallSettings) + // Additional: GenerateConsistencyTokenAsync(string, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; + // Make the request + GenerateConsistencyTokenResponse response = await bigtableTableAdminClient.GenerateConsistencyTokenAsync(name); + // End snippet + } + + /// Snippet for GenerateConsistencyToken + public void GenerateConsistencyTokenResourceNames() + { + // Snippet: GenerateConsistencyToken(TableName, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + TableName name = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"); + // Make the request + GenerateConsistencyTokenResponse response = bigtableTableAdminClient.GenerateConsistencyToken(name); + // End snippet + } + + /// Snippet for GenerateConsistencyTokenAsync + public async Task GenerateConsistencyTokenResourceNamesAsync() + { + // Snippet: GenerateConsistencyTokenAsync(TableName, CallSettings) + // Additional: GenerateConsistencyTokenAsync(TableName, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + TableName name = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"); + // Make the request + GenerateConsistencyTokenResponse response = await bigtableTableAdminClient.GenerateConsistencyTokenAsync(name); + // End snippet + } + + /// Snippet for CheckConsistency + public void CheckConsistencyRequestObject() + { + // Snippet: CheckConsistency(CheckConsistencyRequest, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + CheckConsistencyRequest request = new CheckConsistencyRequest + { + TableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + ConsistencyToken = "", + StandardReadRemoteWrites = new StandardReadRemoteWrites(), + }; + // Make the request + CheckConsistencyResponse response = bigtableTableAdminClient.CheckConsistency(request); + // End snippet + } + + /// Snippet for CheckConsistencyAsync + public async Task CheckConsistencyRequestObjectAsync() + { + // Snippet: CheckConsistencyAsync(CheckConsistencyRequest, CallSettings) + // Additional: CheckConsistencyAsync(CheckConsistencyRequest, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + CheckConsistencyRequest request = new CheckConsistencyRequest + { + TableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + ConsistencyToken = "", + StandardReadRemoteWrites = new StandardReadRemoteWrites(), + }; + // Make the request + CheckConsistencyResponse response = await bigtableTableAdminClient.CheckConsistencyAsync(request); + // End snippet + } + + /// Snippet for CheckConsistency + public void CheckConsistency() + { + // Snippet: CheckConsistency(string, string, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; + string consistencyToken = ""; + // Make the request + CheckConsistencyResponse response = bigtableTableAdminClient.CheckConsistency(name, consistencyToken); + // End snippet + } + + /// Snippet for CheckConsistencyAsync + public async Task CheckConsistencyAsync() + { + // Snippet: CheckConsistencyAsync(string, string, CallSettings) + // Additional: CheckConsistencyAsync(string, string, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; + string consistencyToken = ""; + // Make the request + CheckConsistencyResponse response = await bigtableTableAdminClient.CheckConsistencyAsync(name, consistencyToken); + // End snippet + } + + /// Snippet for CheckConsistency + public void CheckConsistencyResourceNames() + { + // Snippet: CheckConsistency(TableName, string, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + TableName name = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"); + string consistencyToken = ""; + // Make the request + CheckConsistencyResponse response = bigtableTableAdminClient.CheckConsistency(name, consistencyToken); + // End snippet + } + + /// Snippet for CheckConsistencyAsync + public async Task CheckConsistencyResourceNamesAsync() + { + // Snippet: CheckConsistencyAsync(TableName, string, CallSettings) + // Additional: CheckConsistencyAsync(TableName, string, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + TableName name = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"); + string consistencyToken = ""; + // Make the request + CheckConsistencyResponse response = await bigtableTableAdminClient.CheckConsistencyAsync(name, consistencyToken); + // End snippet + } + + /// Snippet for SnapshotTable + public void SnapshotTableRequestObject() + { + // Snippet: SnapshotTable(SnapshotTableRequest, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + SnapshotTableRequest request = new SnapshotTableRequest + { + TableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + ClusterAsClusterName = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"), + SnapshotId = "", + Ttl = new Duration(), + Description = "", + }; + // Make the request + Operation response = bigtableTableAdminClient.SnapshotTable(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Snapshot result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceSnapshotTable(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Snapshot retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for SnapshotTableAsync + public async Task SnapshotTableRequestObjectAsync() + { + // Snippet: SnapshotTableAsync(SnapshotTableRequest, CallSettings) + // Additional: SnapshotTableAsync(SnapshotTableRequest, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + SnapshotTableRequest request = new SnapshotTableRequest + { + TableName = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"), + ClusterAsClusterName = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"), + SnapshotId = "", + Ttl = new Duration(), + Description = "", + }; + // Make the request + Operation response = await bigtableTableAdminClient.SnapshotTableAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Snapshot result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceSnapshotTableAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Snapshot retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for SnapshotTable + public void SnapshotTable() + { + // Snippet: SnapshotTable(string, string, string, string, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; + string cluster = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]"; + string snapshotId = ""; + string description = ""; + // Make the request + Operation response = bigtableTableAdminClient.SnapshotTable(name, cluster, snapshotId, description); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Snapshot result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceSnapshotTable(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Snapshot retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for SnapshotTableAsync + public async Task SnapshotTableAsync() + { + // Snippet: SnapshotTableAsync(string, string, string, string, CallSettings) + // Additional: SnapshotTableAsync(string, string, string, string, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/tables/[TABLE]"; + string cluster = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]"; + string snapshotId = ""; + string description = ""; + // Make the request + Operation response = await bigtableTableAdminClient.SnapshotTableAsync(name, cluster, snapshotId, description); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Snapshot result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceSnapshotTableAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Snapshot retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for SnapshotTable + public void SnapshotTableResourceNames() + { + // Snippet: SnapshotTable(TableName, ClusterName, string, string, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + TableName name = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"); + ClusterName cluster = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"); + string snapshotId = ""; + string description = ""; + // Make the request + Operation response = bigtableTableAdminClient.SnapshotTable(name, cluster, snapshotId, description); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Snapshot result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceSnapshotTable(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Snapshot retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for SnapshotTableAsync + public async Task SnapshotTableResourceNamesAsync() + { + // Snippet: SnapshotTableAsync(TableName, ClusterName, string, string, CallSettings) + // Additional: SnapshotTableAsync(TableName, ClusterName, string, string, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + TableName name = TableName.FromProjectInstanceTable("[PROJECT]", "[INSTANCE]", "[TABLE]"); + ClusterName cluster = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"); + string snapshotId = ""; + string description = ""; + // Make the request + Operation response = await bigtableTableAdminClient.SnapshotTableAsync(name, cluster, snapshotId, description); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Snapshot result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceSnapshotTableAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Snapshot retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for GetSnapshot + public void GetSnapshotRequestObject() + { + // Snippet: GetSnapshot(GetSnapshotRequest, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + GetSnapshotRequest request = new GetSnapshotRequest + { + SnapshotName = SnapshotName.FromProjectInstanceClusterSnapshot("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]"), + }; + // Make the request + Snapshot response = bigtableTableAdminClient.GetSnapshot(request); + // End snippet + } + + /// Snippet for GetSnapshotAsync + public async Task GetSnapshotRequestObjectAsync() + { + // Snippet: GetSnapshotAsync(GetSnapshotRequest, CallSettings) + // Additional: GetSnapshotAsync(GetSnapshotRequest, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + GetSnapshotRequest request = new GetSnapshotRequest + { + SnapshotName = SnapshotName.FromProjectInstanceClusterSnapshot("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]"), + }; + // Make the request + Snapshot response = await bigtableTableAdminClient.GetSnapshotAsync(request); + // End snippet + } + + /// Snippet for GetSnapshot + public void GetSnapshot() + { + // Snippet: GetSnapshot(string, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]/snapshots/[SNAPSHOT]"; + // Make the request + Snapshot response = bigtableTableAdminClient.GetSnapshot(name); + // End snippet + } + + /// Snippet for GetSnapshotAsync + public async Task GetSnapshotAsync() + { + // Snippet: GetSnapshotAsync(string, CallSettings) + // Additional: GetSnapshotAsync(string, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]/snapshots/[SNAPSHOT]"; + // Make the request + Snapshot response = await bigtableTableAdminClient.GetSnapshotAsync(name); + // End snippet + } + + /// Snippet for GetSnapshot + public void GetSnapshotResourceNames() + { + // Snippet: GetSnapshot(SnapshotName, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + SnapshotName name = SnapshotName.FromProjectInstanceClusterSnapshot("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]"); + // Make the request + Snapshot response = bigtableTableAdminClient.GetSnapshot(name); + // End snippet + } + + /// Snippet for GetSnapshotAsync + public async Task GetSnapshotResourceNamesAsync() + { + // Snippet: GetSnapshotAsync(SnapshotName, CallSettings) + // Additional: GetSnapshotAsync(SnapshotName, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + SnapshotName name = SnapshotName.FromProjectInstanceClusterSnapshot("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]"); + // Make the request + Snapshot response = await bigtableTableAdminClient.GetSnapshotAsync(name); + // End snippet + } + + /// Snippet for ListSnapshots + public void ListSnapshotsRequestObject() + { + // Snippet: ListSnapshots(ListSnapshotsRequest, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + ListSnapshotsRequest request = new ListSnapshotsRequest + { + ParentAsClusterName = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"), + }; + // Make the request + PagedEnumerable response = bigtableTableAdminClient.ListSnapshots(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Snapshot item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListSnapshotsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Snapshot item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Snapshot item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListSnapshotsAsync + public async Task ListSnapshotsRequestObjectAsync() + { + // Snippet: ListSnapshotsAsync(ListSnapshotsRequest, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + ListSnapshotsRequest request = new ListSnapshotsRequest + { + ParentAsClusterName = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"), + }; + // Make the request + PagedAsyncEnumerable response = bigtableTableAdminClient.ListSnapshotsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Snapshot item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListSnapshotsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Snapshot item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Snapshot item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListSnapshots + public void ListSnapshots() + { + // Snippet: ListSnapshots(string, string, int?, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]"; + // Make the request + PagedEnumerable response = bigtableTableAdminClient.ListSnapshots(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Snapshot item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListSnapshotsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Snapshot item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Snapshot item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListSnapshotsAsync + public async Task ListSnapshotsAsync() + { + // Snippet: ListSnapshotsAsync(string, string, int?, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]"; + // Make the request + PagedAsyncEnumerable response = bigtableTableAdminClient.ListSnapshotsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Snapshot item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListSnapshotsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Snapshot item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Snapshot item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListSnapshots + public void ListSnapshotsResourceNames() + { + // Snippet: ListSnapshots(ClusterName, string, int?, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + ClusterName parent = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"); + // Make the request + PagedEnumerable response = bigtableTableAdminClient.ListSnapshots(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Snapshot item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListSnapshotsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Snapshot item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Snapshot item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListSnapshotsAsync + public async Task ListSnapshotsResourceNamesAsync() + { + // Snippet: ListSnapshotsAsync(ClusterName, string, int?, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + ClusterName parent = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"); + // Make the request + PagedAsyncEnumerable response = bigtableTableAdminClient.ListSnapshotsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Snapshot item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListSnapshotsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Snapshot item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Snapshot item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for DeleteSnapshot + public void DeleteSnapshotRequestObject() + { + // Snippet: DeleteSnapshot(DeleteSnapshotRequest, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + DeleteSnapshotRequest request = new DeleteSnapshotRequest + { + SnapshotName = SnapshotName.FromProjectInstanceClusterSnapshot("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]"), + }; + // Make the request + bigtableTableAdminClient.DeleteSnapshot(request); + // End snippet + } + + /// Snippet for DeleteSnapshotAsync + public async Task DeleteSnapshotRequestObjectAsync() + { + // Snippet: DeleteSnapshotAsync(DeleteSnapshotRequest, CallSettings) + // Additional: DeleteSnapshotAsync(DeleteSnapshotRequest, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + DeleteSnapshotRequest request = new DeleteSnapshotRequest + { + SnapshotName = SnapshotName.FromProjectInstanceClusterSnapshot("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]"), + }; + // Make the request + await bigtableTableAdminClient.DeleteSnapshotAsync(request); + // End snippet + } + + /// Snippet for DeleteSnapshot + public void DeleteSnapshot() + { + // Snippet: DeleteSnapshot(string, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]/snapshots/[SNAPSHOT]"; + // Make the request + bigtableTableAdminClient.DeleteSnapshot(name); + // End snippet + } + + /// Snippet for DeleteSnapshotAsync + public async Task DeleteSnapshotAsync() + { + // Snippet: DeleteSnapshotAsync(string, CallSettings) + // Additional: DeleteSnapshotAsync(string, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]/snapshots/[SNAPSHOT]"; + // Make the request + await bigtableTableAdminClient.DeleteSnapshotAsync(name); + // End snippet + } + + /// Snippet for DeleteSnapshot + public void DeleteSnapshotResourceNames() + { + // Snippet: DeleteSnapshot(SnapshotName, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + SnapshotName name = SnapshotName.FromProjectInstanceClusterSnapshot("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]"); + // Make the request + bigtableTableAdminClient.DeleteSnapshot(name); + // End snippet + } + + /// Snippet for DeleteSnapshotAsync + public async Task DeleteSnapshotResourceNamesAsync() + { + // Snippet: DeleteSnapshotAsync(SnapshotName, CallSettings) + // Additional: DeleteSnapshotAsync(SnapshotName, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + SnapshotName name = SnapshotName.FromProjectInstanceClusterSnapshot("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]"); + // Make the request + await bigtableTableAdminClient.DeleteSnapshotAsync(name); + // End snippet + } + + /// Snippet for CreateBackup + public void CreateBackupRequestObject() + { + // Snippet: CreateBackup(CreateBackupRequest, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + CreateBackupRequest request = new CreateBackupRequest + { + ParentAsClusterName = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"), + BackupId = "", + Backup = new Backup(), + }; + // Make the request + Operation response = bigtableTableAdminClient.CreateBackup(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Backup result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceCreateBackup(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Backup retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateBackupAsync + public async Task CreateBackupRequestObjectAsync() + { + // Snippet: CreateBackupAsync(CreateBackupRequest, CallSettings) + // Additional: CreateBackupAsync(CreateBackupRequest, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + CreateBackupRequest request = new CreateBackupRequest + { + ParentAsClusterName = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"), + BackupId = "", + Backup = new Backup(), + }; + // Make the request + Operation response = await bigtableTableAdminClient.CreateBackupAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Backup result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceCreateBackupAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Backup retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateBackup + public void CreateBackup() + { + // Snippet: CreateBackup(string, string, Backup, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]"; + string backupId = ""; + Backup backup = new Backup(); + // Make the request + Operation response = bigtableTableAdminClient.CreateBackup(parent, backupId, backup); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Backup result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceCreateBackup(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Backup retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateBackupAsync + public async Task CreateBackupAsync() + { + // Snippet: CreateBackupAsync(string, string, Backup, CallSettings) + // Additional: CreateBackupAsync(string, string, Backup, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]"; + string backupId = ""; + Backup backup = new Backup(); + // Make the request + Operation response = await bigtableTableAdminClient.CreateBackupAsync(parent, backupId, backup); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Backup result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceCreateBackupAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Backup retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateBackup + public void CreateBackupResourceNames() + { + // Snippet: CreateBackup(ClusterName, string, Backup, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + ClusterName parent = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"); + string backupId = ""; + Backup backup = new Backup(); + // Make the request + Operation response = bigtableTableAdminClient.CreateBackup(parent, backupId, backup); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Backup result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceCreateBackup(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Backup retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CreateBackupAsync + public async Task CreateBackupResourceNamesAsync() + { + // Snippet: CreateBackupAsync(ClusterName, string, Backup, CallSettings) + // Additional: CreateBackupAsync(ClusterName, string, Backup, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + ClusterName parent = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"); + string backupId = ""; + Backup backup = new Backup(); + // Make the request + Operation response = await bigtableTableAdminClient.CreateBackupAsync(parent, backupId, backup); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Backup result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceCreateBackupAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Backup retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for GetBackup + public void GetBackupRequestObject() + { + // Snippet: GetBackup(GetBackupRequest, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + GetBackupRequest request = new GetBackupRequest + { + BackupName = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"), + }; + // Make the request + Backup response = bigtableTableAdminClient.GetBackup(request); + // End snippet + } + + /// Snippet for GetBackupAsync + public async Task GetBackupRequestObjectAsync() + { + // Snippet: GetBackupAsync(GetBackupRequest, CallSettings) + // Additional: GetBackupAsync(GetBackupRequest, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + GetBackupRequest request = new GetBackupRequest + { + BackupName = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"), + }; + // Make the request + Backup response = await bigtableTableAdminClient.GetBackupAsync(request); + // End snippet + } + + /// Snippet for GetBackup + public void GetBackup() + { + // Snippet: GetBackup(string, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]/backups/[BACKUP]"; + // Make the request + Backup response = bigtableTableAdminClient.GetBackup(name); + // End snippet + } + + /// Snippet for GetBackupAsync + public async Task GetBackupAsync() + { + // Snippet: GetBackupAsync(string, CallSettings) + // Additional: GetBackupAsync(string, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]/backups/[BACKUP]"; + // Make the request + Backup response = await bigtableTableAdminClient.GetBackupAsync(name); + // End snippet + } + + /// Snippet for GetBackup + public void GetBackupResourceNames() + { + // Snippet: GetBackup(BackupName, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + BackupName name = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"); + // Make the request + Backup response = bigtableTableAdminClient.GetBackup(name); + // End snippet + } + + /// Snippet for GetBackupAsync + public async Task GetBackupResourceNamesAsync() + { + // Snippet: GetBackupAsync(BackupName, CallSettings) + // Additional: GetBackupAsync(BackupName, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + BackupName name = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"); + // Make the request + Backup response = await bigtableTableAdminClient.GetBackupAsync(name); + // End snippet + } + + /// Snippet for UpdateBackup + public void UpdateBackupRequestObject() + { + // Snippet: UpdateBackup(UpdateBackupRequest, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + UpdateBackupRequest request = new UpdateBackupRequest + { + Backup = new Backup(), + UpdateMask = new FieldMask(), + }; + // Make the request + Backup response = bigtableTableAdminClient.UpdateBackup(request); + // End snippet + } + + /// Snippet for UpdateBackupAsync + public async Task UpdateBackupRequestObjectAsync() + { + // Snippet: UpdateBackupAsync(UpdateBackupRequest, CallSettings) + // Additional: UpdateBackupAsync(UpdateBackupRequest, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + UpdateBackupRequest request = new UpdateBackupRequest + { + Backup = new Backup(), + UpdateMask = new FieldMask(), + }; + // Make the request + Backup response = await bigtableTableAdminClient.UpdateBackupAsync(request); + // End snippet + } + + /// Snippet for UpdateBackup + public void UpdateBackup() + { + // Snippet: UpdateBackup(Backup, FieldMask, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + Backup backup = new Backup(); + FieldMask updateMask = new FieldMask(); + // Make the request + Backup response = bigtableTableAdminClient.UpdateBackup(backup, updateMask); + // End snippet + } + + /// Snippet for UpdateBackupAsync + public async Task UpdateBackupAsync() + { + // Snippet: UpdateBackupAsync(Backup, FieldMask, CallSettings) + // Additional: UpdateBackupAsync(Backup, FieldMask, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + Backup backup = new Backup(); + FieldMask updateMask = new FieldMask(); + // Make the request + Backup response = await bigtableTableAdminClient.UpdateBackupAsync(backup, updateMask); + // End snippet + } + + /// Snippet for DeleteBackup + public void DeleteBackupRequestObject() + { + // Snippet: DeleteBackup(DeleteBackupRequest, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + DeleteBackupRequest request = new DeleteBackupRequest + { + BackupName = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"), + }; + // Make the request + bigtableTableAdminClient.DeleteBackup(request); + // End snippet + } + + /// Snippet for DeleteBackupAsync + public async Task DeleteBackupRequestObjectAsync() + { + // Snippet: DeleteBackupAsync(DeleteBackupRequest, CallSettings) + // Additional: DeleteBackupAsync(DeleteBackupRequest, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + DeleteBackupRequest request = new DeleteBackupRequest + { + BackupName = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"), + }; + // Make the request + await bigtableTableAdminClient.DeleteBackupAsync(request); + // End snippet + } + + /// Snippet for DeleteBackup + public void DeleteBackup() + { + // Snippet: DeleteBackup(string, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]/backups/[BACKUP]"; + // Make the request + bigtableTableAdminClient.DeleteBackup(name); + // End snippet + } + + /// Snippet for DeleteBackupAsync + public async Task DeleteBackupAsync() + { + // Snippet: DeleteBackupAsync(string, CallSettings) + // Additional: DeleteBackupAsync(string, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]/backups/[BACKUP]"; + // Make the request + await bigtableTableAdminClient.DeleteBackupAsync(name); + // End snippet + } + + /// Snippet for DeleteBackup + public void DeleteBackupResourceNames() + { + // Snippet: DeleteBackup(BackupName, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + BackupName name = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"); + // Make the request + bigtableTableAdminClient.DeleteBackup(name); + // End snippet + } + + /// Snippet for DeleteBackupAsync + public async Task DeleteBackupResourceNamesAsync() + { + // Snippet: DeleteBackupAsync(BackupName, CallSettings) + // Additional: DeleteBackupAsync(BackupName, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + BackupName name = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"); + // Make the request + await bigtableTableAdminClient.DeleteBackupAsync(name); + // End snippet + } + + /// Snippet for ListBackups + public void ListBackupsRequestObject() + { + // Snippet: ListBackups(ListBackupsRequest, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + ListBackupsRequest request = new ListBackupsRequest + { + ParentAsClusterName = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"), + Filter = "", + OrderBy = "", + }; + // Make the request + PagedEnumerable response = bigtableTableAdminClient.ListBackups(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Backup item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListBackupsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Backup item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Backup item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListBackupsAsync + public async Task ListBackupsRequestObjectAsync() + { + // Snippet: ListBackupsAsync(ListBackupsRequest, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + ListBackupsRequest request = new ListBackupsRequest + { + ParentAsClusterName = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"), + Filter = "", + OrderBy = "", + }; + // Make the request + PagedAsyncEnumerable response = bigtableTableAdminClient.ListBackupsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Backup item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListBackupsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Backup item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Backup item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListBackups + public void ListBackups() + { + // Snippet: ListBackups(string, string, int?, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]"; + // Make the request + PagedEnumerable response = bigtableTableAdminClient.ListBackups(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Backup item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListBackupsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Backup item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Backup item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListBackupsAsync + public async Task ListBackupsAsync() + { + // Snippet: ListBackupsAsync(string, string, int?, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]"; + // Make the request + PagedAsyncEnumerable response = bigtableTableAdminClient.ListBackupsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Backup item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListBackupsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Backup item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Backup item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListBackups + public void ListBackupsResourceNames() + { + // Snippet: ListBackups(ClusterName, string, int?, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + ClusterName parent = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"); + // Make the request + PagedEnumerable response = bigtableTableAdminClient.ListBackups(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Backup item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListBackupsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Backup item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Backup item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListBackupsAsync + public async Task ListBackupsResourceNamesAsync() + { + // Snippet: ListBackupsAsync(ClusterName, string, int?, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + ClusterName parent = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"); + // Make the request + PagedAsyncEnumerable response = bigtableTableAdminClient.ListBackupsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Backup item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListBackupsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Backup item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Backup item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for RestoreTable + public void RestoreTableRequestObject() + { + // Snippet: RestoreTable(RestoreTableRequest, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + RestoreTableRequest request = new RestoreTableRequest + { + ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + TableId = "", + BackupAsBackupName = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"), + }; + // Make the request + Operation response = bigtableTableAdminClient.RestoreTable(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Table result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceRestoreTable(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Table retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for RestoreTableAsync + public async Task RestoreTableRequestObjectAsync() + { + // Snippet: RestoreTableAsync(RestoreTableRequest, CallSettings) + // Additional: RestoreTableAsync(RestoreTableRequest, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + RestoreTableRequest request = new RestoreTableRequest + { + ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"), + TableId = "", + BackupAsBackupName = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"), + }; + // Make the request + Operation response = await bigtableTableAdminClient.RestoreTableAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Table result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceRestoreTableAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Table retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CopyBackup + public void CopyBackupRequestObject() + { + // Snippet: CopyBackup(CopyBackupRequest, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + CopyBackupRequest request = new CopyBackupRequest + { + ParentAsClusterName = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"), + BackupId = "", + SourceBackupAsBackupName = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"), + ExpireTime = new Timestamp(), + }; + // Make the request + Operation response = bigtableTableAdminClient.CopyBackup(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Backup result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceCopyBackup(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Backup retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CopyBackupAsync + public async Task CopyBackupRequestObjectAsync() + { + // Snippet: CopyBackupAsync(CopyBackupRequest, CallSettings) + // Additional: CopyBackupAsync(CopyBackupRequest, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + CopyBackupRequest request = new CopyBackupRequest + { + ParentAsClusterName = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"), + BackupId = "", + SourceBackupAsBackupName = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"), + ExpireTime = new Timestamp(), + }; + // Make the request + Operation response = await bigtableTableAdminClient.CopyBackupAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Backup result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceCopyBackupAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Backup retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CopyBackup + public void CopyBackup() + { + // Snippet: CopyBackup(string, string, string, Timestamp, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]"; + string backupId = ""; + string sourceBackup = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]/backups/[BACKUP]"; + Timestamp expireTime = new Timestamp(); + // Make the request + Operation response = bigtableTableAdminClient.CopyBackup(parent, backupId, sourceBackup, expireTime); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Backup result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceCopyBackup(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Backup retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CopyBackupAsync + public async Task CopyBackupAsync() + { + // Snippet: CopyBackupAsync(string, string, string, Timestamp, CallSettings) + // Additional: CopyBackupAsync(string, string, string, Timestamp, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]"; + string backupId = ""; + string sourceBackup = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]/backups/[BACKUP]"; + Timestamp expireTime = new Timestamp(); + // Make the request + Operation response = await bigtableTableAdminClient.CopyBackupAsync(parent, backupId, sourceBackup, expireTime); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Backup result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceCopyBackupAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Backup retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CopyBackup + public void CopyBackupResourceNames() + { + // Snippet: CopyBackup(ClusterName, string, BackupName, Timestamp, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + ClusterName parent = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"); + string backupId = ""; + BackupName sourceBackup = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"); + Timestamp expireTime = new Timestamp(); + // Make the request + Operation response = bigtableTableAdminClient.CopyBackup(parent, backupId, sourceBackup, expireTime); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + Backup result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = bigtableTableAdminClient.PollOnceCopyBackup(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Backup retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for CopyBackupAsync + public async Task CopyBackupResourceNamesAsync() + { + // Snippet: CopyBackupAsync(ClusterName, string, BackupName, Timestamp, CallSettings) + // Additional: CopyBackupAsync(ClusterName, string, BackupName, Timestamp, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + ClusterName parent = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]"); + string backupId = ""; + BackupName sourceBackup = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"); + Timestamp expireTime = new Timestamp(); + // Make the request + Operation response = await bigtableTableAdminClient.CopyBackupAsync(parent, backupId, sourceBackup, expireTime); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + Backup result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await bigtableTableAdminClient.PollOnceCopyBackupAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + Backup retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for GetIamPolicy + public void GetIamPolicyRequestObject() + { + // Snippet: GetIamPolicy(GetIamPolicyRequest, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + GetIamPolicyRequest request = new GetIamPolicyRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Options = new GetPolicyOptions(), + }; + // Make the request + Policy response = bigtableTableAdminClient.GetIamPolicy(request); + // End snippet + } + + /// Snippet for GetIamPolicyAsync + public async Task GetIamPolicyRequestObjectAsync() + { + // Snippet: GetIamPolicyAsync(GetIamPolicyRequest, CallSettings) + // Additional: GetIamPolicyAsync(GetIamPolicyRequest, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + GetIamPolicyRequest request = new GetIamPolicyRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Options = new GetPolicyOptions(), + }; + // Make the request + Policy response = await bigtableTableAdminClient.GetIamPolicyAsync(request); + // End snippet + } + + /// Snippet for GetIamPolicy + public void GetIamPolicy() + { + // Snippet: GetIamPolicy(string, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + // Make the request + Policy response = bigtableTableAdminClient.GetIamPolicy(resource); + // End snippet + } + + /// Snippet for GetIamPolicyAsync + public async Task GetIamPolicyAsync() + { + // Snippet: GetIamPolicyAsync(string, CallSettings) + // Additional: GetIamPolicyAsync(string, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + // Make the request + Policy response = await bigtableTableAdminClient.GetIamPolicyAsync(resource); + // End snippet + } + + /// Snippet for GetIamPolicy + public void GetIamPolicyResourceNames() + { + // Snippet: GetIamPolicy(IResourceName, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + // Make the request + Policy response = bigtableTableAdminClient.GetIamPolicy(resource); + // End snippet + } + + /// Snippet for GetIamPolicyAsync + public async Task GetIamPolicyResourceNamesAsync() + { + // Snippet: GetIamPolicyAsync(IResourceName, CallSettings) + // Additional: GetIamPolicyAsync(IResourceName, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + // Make the request + Policy response = await bigtableTableAdminClient.GetIamPolicyAsync(resource); + // End snippet + } + + /// Snippet for SetIamPolicy + public void SetIamPolicyRequestObject() + { + // Snippet: SetIamPolicy(SetIamPolicyRequest, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + SetIamPolicyRequest request = new SetIamPolicyRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Policy = new Policy(), + UpdateMask = new FieldMask(), + }; + // Make the request + Policy response = bigtableTableAdminClient.SetIamPolicy(request); + // End snippet + } + + /// Snippet for SetIamPolicyAsync + public async Task SetIamPolicyRequestObjectAsync() + { + // Snippet: SetIamPolicyAsync(SetIamPolicyRequest, CallSettings) + // Additional: SetIamPolicyAsync(SetIamPolicyRequest, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + SetIamPolicyRequest request = new SetIamPolicyRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Policy = new Policy(), + UpdateMask = new FieldMask(), + }; + // Make the request + Policy response = await bigtableTableAdminClient.SetIamPolicyAsync(request); + // End snippet + } + + /// Snippet for SetIamPolicy + public void SetIamPolicy() + { + // Snippet: SetIamPolicy(string, Policy, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + Policy policy = new Policy(); + // Make the request + Policy response = bigtableTableAdminClient.SetIamPolicy(resource, policy); + // End snippet + } + + /// Snippet for SetIamPolicyAsync + public async Task SetIamPolicyAsync() + { + // Snippet: SetIamPolicyAsync(string, Policy, CallSettings) + // Additional: SetIamPolicyAsync(string, Policy, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + Policy policy = new Policy(); + // Make the request + Policy response = await bigtableTableAdminClient.SetIamPolicyAsync(resource, policy); + // End snippet + } + + /// Snippet for SetIamPolicy + public void SetIamPolicyResourceNames() + { + // Snippet: SetIamPolicy(IResourceName, Policy, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + Policy policy = new Policy(); + // Make the request + Policy response = bigtableTableAdminClient.SetIamPolicy(resource, policy); + // End snippet + } + + /// Snippet for SetIamPolicyAsync + public async Task SetIamPolicyResourceNamesAsync() + { + // Snippet: SetIamPolicyAsync(IResourceName, Policy, CallSettings) + // Additional: SetIamPolicyAsync(IResourceName, Policy, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + Policy policy = new Policy(); + // Make the request + Policy response = await bigtableTableAdminClient.SetIamPolicyAsync(resource, policy); + // End snippet + } + + /// Snippet for TestIamPermissions + public void TestIamPermissionsRequestObject() + { + // Snippet: TestIamPermissions(TestIamPermissionsRequest, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + TestIamPermissionsRequest request = new TestIamPermissionsRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Permissions = { "", }, + }; + // Make the request + TestIamPermissionsResponse response = bigtableTableAdminClient.TestIamPermissions(request); + // End snippet + } + + /// Snippet for TestIamPermissionsAsync + public async Task TestIamPermissionsRequestObjectAsync() + { + // Snippet: TestIamPermissionsAsync(TestIamPermissionsRequest, CallSettings) + // Additional: TestIamPermissionsAsync(TestIamPermissionsRequest, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + TestIamPermissionsRequest request = new TestIamPermissionsRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Permissions = { "", }, + }; + // Make the request + TestIamPermissionsResponse response = await bigtableTableAdminClient.TestIamPermissionsAsync(request); + // End snippet + } + + /// Snippet for TestIamPermissions + public void TestIamPermissions() + { + // Snippet: TestIamPermissions(string, IEnumerable, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + IEnumerable permissions = new string[] { "", }; + // Make the request + TestIamPermissionsResponse response = bigtableTableAdminClient.TestIamPermissions(resource, permissions); + // End snippet + } + + /// Snippet for TestIamPermissionsAsync + public async Task TestIamPermissionsAsync() + { + // Snippet: TestIamPermissionsAsync(string, IEnumerable, CallSettings) + // Additional: TestIamPermissionsAsync(string, IEnumerable, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + string resource = "a/wildcard/resource"; + IEnumerable permissions = new string[] { "", }; + // Make the request + TestIamPermissionsResponse response = await bigtableTableAdminClient.TestIamPermissionsAsync(resource, permissions); + // End snippet + } + + /// Snippet for TestIamPermissions + public void TestIamPermissionsResourceNames() + { + // Snippet: TestIamPermissions(IResourceName, IEnumerable, CallSettings) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + IEnumerable permissions = new string[] { "", }; + // Make the request + TestIamPermissionsResponse response = bigtableTableAdminClient.TestIamPermissions(resource, permissions); + // End snippet + } + + /// Snippet for TestIamPermissionsAsync + public async Task TestIamPermissionsResourceNamesAsync() + { + // Snippet: TestIamPermissionsAsync(IResourceName, IEnumerable, CallSettings) + // Additional: TestIamPermissionsAsync(IResourceName, IEnumerable, CancellationToken) + // Create client + BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync(); + // Initialize request argument(s) + IResourceName resource = new UnparsedResourceName("a/wildcard/resource"); + IEnumerable permissions = new string[] { "", }; + // Make the request + TestIamPermissionsResponse response = await bigtableTableAdminClient.TestIamPermissionsAsync(resource, permissions); + // End snippet + } + } +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.Snippets/Google.Cloud.Bigtable.Admin.V2.Snippets.csproj b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.Snippets/Google.Cloud.Bigtable.Admin.V2.Snippets.csproj new file mode 100755 index 000000000000..eca6704f638f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.Snippets/Google.Cloud.Bigtable.Admin.V2.Snippets.csproj @@ -0,0 +1,15 @@ + + + + + net6.0;net462 + latest + + + + + + + + + \ No newline at end of file diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableInstanceAdmin.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableInstanceAdmin.g.cs new file mode 100755 index 000000000000..efc16f99b2b7 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableInstanceAdmin.g.cs @@ -0,0 +1,7422 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/bigtable/admin/v2/bigtable_instance_admin.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Google.Cloud.Bigtable.Admin.V2 { + + /// Holder for reflection information generated from google/bigtable/admin/v2/bigtable_instance_admin.proto + public static partial class BigtableInstanceAdminReflection { + + #region Descriptor + /// File descriptor for google/bigtable/admin/v2/bigtable_instance_admin.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BigtableInstanceAdminReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CjZnb29nbGUvYmlndGFibGUvYWRtaW4vdjIvYmlndGFibGVfaW5zdGFuY2Vf", + "YWRtaW4ucHJvdG8SGGdvb2dsZS5iaWd0YWJsZS5hZG1pbi52MhocZ29vZ2xl", + "L2FwaS9hbm5vdGF0aW9ucy5wcm90bxoXZ29vZ2xlL2FwaS9jbGllbnQucHJv", + "dG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2dsZS9h", + "cGkvcmVzb3VyY2UucHJvdG8aJ2dvb2dsZS9iaWd0YWJsZS9hZG1pbi92Mi9p", + "bnN0YW5jZS5wcm90bxoeZ29vZ2xlL2lhbS92MS9pYW1fcG9saWN5LnByb3Rv", + "Ghpnb29nbGUvaWFtL3YxL3BvbGljeS5wcm90bxojZ29vZ2xlL2xvbmdydW5u", + "aW5nL29wZXJhdGlvbnMucHJvdG8aG2dvb2dsZS9wcm90b2J1Zi9lbXB0eS5w", + "cm90bxogZ29vZ2xlL3Byb3RvYnVmL2ZpZWxkX21hc2sucHJvdG8aH2dvb2ds", + "ZS9wcm90b2J1Zi90aW1lc3RhbXAucHJvdG8i2wIKFUNyZWF0ZUluc3RhbmNl", + "UmVxdWVzdBJDCgZwYXJlbnQYASABKAlCM+BBAvpBLQorY2xvdWRyZXNvdXJj", + "ZW1hbmFnZXIuZ29vZ2xlYXBpcy5jb20vUHJvamVjdBIYCgtpbnN0YW5jZV9p", + "ZBgCIAEoCUID4EECEjkKCGluc3RhbmNlGAMgASgLMiIuZ29vZ2xlLmJpZ3Rh", + "YmxlLmFkbWluLnYyLkluc3RhbmNlQgPgQQISVAoIY2x1c3RlcnMYBCADKAsy", + "PS5nb29nbGUuYmlndGFibGUuYWRtaW4udjIuQ3JlYXRlSW5zdGFuY2VSZXF1", + "ZXN0LkNsdXN0ZXJzRW50cnlCA+BBAhpSCg1DbHVzdGVyc0VudHJ5EgsKA2tl", + "eRgBIAEoCRIwCgV2YWx1ZRgCIAEoCzIhLmdvb2dsZS5iaWd0YWJsZS5hZG1p", + "bi52Mi5DbHVzdGVyOgI4ASJRChJHZXRJbnN0YW5jZVJlcXVlc3QSOwoEbmFt", + "ZRgBIAEoCUIt4EEC+kEnCiViaWd0YWJsZWFkbWluLmdvb2dsZWFwaXMuY29t", + "L0luc3RhbmNlIm8KFExpc3RJbnN0YW5jZXNSZXF1ZXN0EkMKBnBhcmVudBgB", + "IAEoCUIz4EEC+kEtCitjbG91ZHJlc291cmNlbWFuYWdlci5nb29nbGVhcGlz", + "LmNvbS9Qcm9qZWN0EhIKCnBhZ2VfdG9rZW4YAiABKAkigQEKFUxpc3RJbnN0", + "YW5jZXNSZXNwb25zZRI1CglpbnN0YW5jZXMYASADKAsyIi5nb29nbGUuYmln", + "dGFibGUuYWRtaW4udjIuSW5zdGFuY2USGAoQZmFpbGVkX2xvY2F0aW9ucxgC", + "IAMoCRIXCg9uZXh0X3BhZ2VfdG9rZW4YAyABKAkijwEKHFBhcnRpYWxVcGRh", + "dGVJbnN0YW5jZVJlcXVlc3QSOQoIaW5zdGFuY2UYASABKAsyIi5nb29nbGUu", + "YmlndGFibGUuYWRtaW4udjIuSW5zdGFuY2VCA+BBAhI0Cgt1cGRhdGVfbWFz", + "axgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2tCA+BBAiJUChVE", + "ZWxldGVJbnN0YW5jZVJlcXVlc3QSOwoEbmFtZRgBIAEoCUIt4EEC+kEnCiVi", + "aWd0YWJsZWFkbWluLmdvb2dsZWFwaXMuY29tL0luc3RhbmNlIqcBChRDcmVh", + "dGVDbHVzdGVyUmVxdWVzdBI9CgZwYXJlbnQYASABKAlCLeBBAvpBJwolYmln", + "dGFibGVhZG1pbi5nb29nbGVhcGlzLmNvbS9JbnN0YW5jZRIXCgpjbHVzdGVy", + "X2lkGAIgASgJQgPgQQISNwoHY2x1c3RlchgDIAEoCzIhLmdvb2dsZS5iaWd0", + "YWJsZS5hZG1pbi52Mi5DbHVzdGVyQgPgQQIiTwoRR2V0Q2x1c3RlclJlcXVl", + "c3QSOgoEbmFtZRgBIAEoCUIs4EEC+kEmCiRiaWd0YWJsZWFkbWluLmdvb2ds", + "ZWFwaXMuY29tL0NsdXN0ZXIiaAoTTGlzdENsdXN0ZXJzUmVxdWVzdBI9CgZw", + "YXJlbnQYASABKAlCLeBBAvpBJwolYmlndGFibGVhZG1pbi5nb29nbGVhcGlz", + "LmNvbS9JbnN0YW5jZRISCgpwYWdlX3Rva2VuGAIgASgJIn4KFExpc3RDbHVz", + "dGVyc1Jlc3BvbnNlEjMKCGNsdXN0ZXJzGAEgAygLMiEuZ29vZ2xlLmJpZ3Rh", + "YmxlLmFkbWluLnYyLkNsdXN0ZXISGAoQZmFpbGVkX2xvY2F0aW9ucxgCIAMo", + "CRIXCg9uZXh0X3BhZ2VfdG9rZW4YAyABKAkiUgoURGVsZXRlQ2x1c3RlclJl", + "cXVlc3QSOgoEbmFtZRgBIAEoCUIs4EEC+kEmCiRiaWd0YWJsZWFkbWluLmdv", + "b2dsZWFwaXMuY29tL0NsdXN0ZXIixgEKFkNyZWF0ZUluc3RhbmNlTWV0YWRh", + "dGESSQoQb3JpZ2luYWxfcmVxdWVzdBgBIAEoCzIvLmdvb2dsZS5iaWd0YWJs", + "ZS5hZG1pbi52Mi5DcmVhdGVJbnN0YW5jZVJlcXVlc3QSMAoMcmVxdWVzdF90", + "aW1lGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIvCgtmaW5p", + "c2hfdGltZRgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAizQEK", + "FlVwZGF0ZUluc3RhbmNlTWV0YWRhdGESUAoQb3JpZ2luYWxfcmVxdWVzdBgB", + "IAEoCzI2Lmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5QYXJ0aWFsVXBkYXRl", + "SW5zdGFuY2VSZXF1ZXN0EjAKDHJlcXVlc3RfdGltZRgCIAEoCzIaLmdvb2ds", + "ZS5wcm90b2J1Zi5UaW1lc3RhbXASLwoLZmluaXNoX3RpbWUYAyABKAsyGi5n", + "b29nbGUucHJvdG9idWYuVGltZXN0YW1wIvsEChVDcmVhdGVDbHVzdGVyTWV0", + "YWRhdGESSAoQb3JpZ2luYWxfcmVxdWVzdBgBIAEoCzIuLmdvb2dsZS5iaWd0", + "YWJsZS5hZG1pbi52Mi5DcmVhdGVDbHVzdGVyUmVxdWVzdBIwCgxyZXF1ZXN0", + "X3RpbWUYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi8KC2Zp", + "bmlzaF90aW1lGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBJL", + "CgZ0YWJsZXMYBCADKAsyOy5nb29nbGUuYmlndGFibGUuYWRtaW4udjIuQ3Jl", + "YXRlQ2x1c3Rlck1ldGFkYXRhLlRhYmxlc0VudHJ5GvkBCg1UYWJsZVByb2dy", + "ZXNzEhwKFGVzdGltYXRlZF9zaXplX2J5dGVzGAIgASgDEh4KFmVzdGltYXRl", + "ZF9jb3BpZWRfYnl0ZXMYAyABKAMSUgoFc3RhdGUYBCABKA4yQy5nb29nbGUu", + "YmlndGFibGUuYWRtaW4udjIuQ3JlYXRlQ2x1c3Rlck1ldGFkYXRhLlRhYmxl", + "UHJvZ3Jlc3MuU3RhdGUiVgoFU3RhdGUSFQoRU1RBVEVfVU5TUEVDSUZJRUQQ", + "ABILCgdQRU5ESU5HEAESCwoHQ09QWUlORxACEg0KCUNPTVBMRVRFRBADEg0K", + "CUNBTkNFTExFRBAEGmwKC1RhYmxlc0VudHJ5EgsKA2tleRgBIAEoCRJMCgV2", + "YWx1ZRgCIAEoCzI9Lmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5DcmVhdGVD", + "bHVzdGVyTWV0YWRhdGEuVGFibGVQcm9ncmVzczoCOAEitwEKFVVwZGF0ZUNs", + "dXN0ZXJNZXRhZGF0YRI7ChBvcmlnaW5hbF9yZXF1ZXN0GAEgASgLMiEuZ29v", + "Z2xlLmJpZ3RhYmxlLmFkbWluLnYyLkNsdXN0ZXISMAoMcmVxdWVzdF90aW1l", + "GAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIvCgtmaW5pc2hf", + "dGltZRgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAi0gEKHFBh", + "cnRpYWxVcGRhdGVDbHVzdGVyTWV0YWRhdGESMAoMcmVxdWVzdF90aW1lGAEg", + "ASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIvCgtmaW5pc2hfdGlt", + "ZRgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASTwoQb3JpZ2lu", + "YWxfcmVxdWVzdBgDIAEoCzI1Lmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5Q", + "YXJ0aWFsVXBkYXRlQ2x1c3RlclJlcXVlc3QijAEKG1BhcnRpYWxVcGRhdGVD", + "bHVzdGVyUmVxdWVzdBI3CgdjbHVzdGVyGAEgASgLMiEuZ29vZ2xlLmJpZ3Rh", + "YmxlLmFkbWluLnYyLkNsdXN0ZXJCA+BBAhI0Cgt1cGRhdGVfbWFzaxgCIAEo", + "CzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2tCA+BBAiLOAQoXQ3JlYXRl", + "QXBwUHJvZmlsZVJlcXVlc3QSPQoGcGFyZW50GAEgASgJQi3gQQL6QScKJWJp", + "Z3RhYmxlYWRtaW4uZ29vZ2xlYXBpcy5jb20vSW5zdGFuY2USGwoOYXBwX3By", + "b2ZpbGVfaWQYAiABKAlCA+BBAhI+CgthcHBfcHJvZmlsZRgDIAEoCzIkLmdv", + "b2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5BcHBQcm9maWxlQgPgQQISFwoPaWdu", + "b3JlX3dhcm5pbmdzGAQgASgIIlUKFEdldEFwcFByb2ZpbGVSZXF1ZXN0Ej0K", + "BG5hbWUYASABKAlCL+BBAvpBKQonYmlndGFibGVhZG1pbi5nb29nbGVhcGlz", + "LmNvbS9BcHBQcm9maWxlIn4KFkxpc3RBcHBQcm9maWxlc1JlcXVlc3QSPQoG", + "cGFyZW50GAEgASgJQi3gQQL6QScKJWJpZ3RhYmxlYWRtaW4uZ29vZ2xlYXBp", + "cy5jb20vSW5zdGFuY2USEQoJcGFnZV9zaXplGAMgASgFEhIKCnBhZ2VfdG9r", + "ZW4YAiABKAkiiAEKF0xpc3RBcHBQcm9maWxlc1Jlc3BvbnNlEjoKDGFwcF9w", + "cm9maWxlcxgBIAMoCzIkLmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5BcHBQ", + "cm9maWxlEhcKD25leHRfcGFnZV90b2tlbhgCIAEoCRIYChBmYWlsZWRfbG9j", + "YXRpb25zGAMgAygJIqgBChdVcGRhdGVBcHBQcm9maWxlUmVxdWVzdBI+Cgth", + "cHBfcHJvZmlsZRgBIAEoCzIkLmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5B", + "cHBQcm9maWxlQgPgQQISNAoLdXBkYXRlX21hc2sYAiABKAsyGi5nb29nbGUu", + "cHJvdG9idWYuRmllbGRNYXNrQgPgQQISFwoPaWdub3JlX3dhcm5pbmdzGAMg", + "ASgIInYKF0RlbGV0ZUFwcFByb2ZpbGVSZXF1ZXN0Ej0KBG5hbWUYASABKAlC", + "L+BBAvpBKQonYmlndGFibGVhZG1pbi5nb29nbGVhcGlzLmNvbS9BcHBQcm9m", + "aWxlEhwKD2lnbm9yZV93YXJuaW5ncxgCIAEoCEID4EECIhoKGFVwZGF0ZUFw", + "cFByb2ZpbGVNZXRhZGF0YSLaAQoVTGlzdEhvdFRhYmxldHNSZXF1ZXN0EjwK", + "BnBhcmVudBgBIAEoCUIs4EEC+kEmCiRiaWd0YWJsZWFkbWluLmdvb2dsZWFw", + "aXMuY29tL0NsdXN0ZXISLgoKc3RhcnRfdGltZRgCIAEoCzIaLmdvb2dsZS5w", + "cm90b2J1Zi5UaW1lc3RhbXASLAoIZW5kX3RpbWUYAyABKAsyGi5nb29nbGUu", + "cHJvdG9idWYuVGltZXN0YW1wEhEKCXBhZ2Vfc2l6ZRgEIAEoBRISCgpwYWdl", + "X3Rva2VuGAUgASgJImsKFkxpc3RIb3RUYWJsZXRzUmVzcG9uc2USOAoLaG90", + "X3RhYmxldHMYASADKAsyIy5nb29nbGUuYmlndGFibGUuYWRtaW4udjIuSG90", + "VGFibGV0EhcKD25leHRfcGFnZV90b2tlbhgCIAEoCTLLIQoVQmlndGFibGVJ", + "bnN0YW5jZUFkbWluEtoBCg5DcmVhdGVJbnN0YW5jZRIvLmdvb2dsZS5iaWd0", + "YWJsZS5hZG1pbi52Mi5DcmVhdGVJbnN0YW5jZVJlcXVlc3QaHS5nb29nbGUu", + "bG9uZ3J1bm5pbmcuT3BlcmF0aW9uInjKQSIKCEluc3RhbmNlEhZDcmVhdGVJ", + "bnN0YW5jZU1ldGFkYXRh2kEkcGFyZW50LGluc3RhbmNlX2lkLGluc3RhbmNl", + "LGNsdXN0ZXJzgtPkkwImIiEvdjIve3BhcmVudD1wcm9qZWN0cy8qfS9pbnN0", + "YW5jZXM6ASoSkQEKC0dldEluc3RhbmNlEiwuZ29vZ2xlLmJpZ3RhYmxlLmFk", + "bWluLnYyLkdldEluc3RhbmNlUmVxdWVzdBoiLmdvb2dsZS5iaWd0YWJsZS5h", + "ZG1pbi52Mi5JbnN0YW5jZSIw2kEEbmFtZYLT5JMCIxIhL3YyL3tuYW1lPXBy", + "b2plY3RzLyovaW5zdGFuY2VzLyp9EqQBCg1MaXN0SW5zdGFuY2VzEi4uZ29v", + "Z2xlLmJpZ3RhYmxlLmFkbWluLnYyLkxpc3RJbnN0YW5jZXNSZXF1ZXN0Gi8u", + "Z29vZ2xlLmJpZ3RhYmxlLmFkbWluLnYyLkxpc3RJbnN0YW5jZXNSZXNwb25z", + "ZSIy2kEGcGFyZW50gtPkkwIjEiEvdjIve3BhcmVudD1wcm9qZWN0cy8qfS9p", + "bnN0YW5jZXMShgEKDlVwZGF0ZUluc3RhbmNlEiIuZ29vZ2xlLmJpZ3RhYmxl", + "LmFkbWluLnYyLkluc3RhbmNlGiIuZ29vZ2xlLmJpZ3RhYmxlLmFkbWluLnYy", + "Lkluc3RhbmNlIiyC0+STAiYaIS92Mi97bmFtZT1wcm9qZWN0cy8qL2luc3Rh", + "bmNlcy8qfToBKhLoAQoVUGFydGlhbFVwZGF0ZUluc3RhbmNlEjYuZ29vZ2xl", + "LmJpZ3RhYmxlLmFkbWluLnYyLlBhcnRpYWxVcGRhdGVJbnN0YW5jZVJlcXVl", + "c3QaHS5nb29nbGUubG9uZ3J1bm5pbmcuT3BlcmF0aW9uInjKQSIKCEluc3Rh", + "bmNlEhZVcGRhdGVJbnN0YW5jZU1ldGFkYXRh2kEUaW5zdGFuY2UsdXBkYXRl", + "X21hc2uC0+STAjYyKi92Mi97aW5zdGFuY2UubmFtZT1wcm9qZWN0cy8qL2lu", + "c3RhbmNlcy8qfToIaW5zdGFuY2USiwEKDkRlbGV0ZUluc3RhbmNlEi8uZ29v", + "Z2xlLmJpZ3RhYmxlLmFkbWluLnYyLkRlbGV0ZUluc3RhbmNlUmVxdWVzdBoW", + "Lmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIw2kEEbmFtZYLT5JMCIyohL3YyL3tu", + "YW1lPXByb2plY3RzLyovaW5zdGFuY2VzLyp9EtwBCg1DcmVhdGVDbHVzdGVy", + "Ei4uZ29vZ2xlLmJpZ3RhYmxlLmFkbWluLnYyLkNyZWF0ZUNsdXN0ZXJSZXF1", + "ZXN0Gh0uZ29vZ2xlLmxvbmdydW5uaW5nLk9wZXJhdGlvbiJ8ykEgCgdDbHVz", + "dGVyEhVDcmVhdGVDbHVzdGVyTWV0YWRhdGHaQRlwYXJlbnQsY2x1c3Rlcl9p", + "ZCxjbHVzdGVygtPkkwI3IiwvdjIve3BhcmVudD1wcm9qZWN0cy8qL2luc3Rh", + "bmNlcy8qfS9jbHVzdGVyczoHY2x1c3RlchKZAQoKR2V0Q2x1c3RlchIrLmdv", + "b2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5HZXRDbHVzdGVyUmVxdWVzdBohLmdv", + "b2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5DbHVzdGVyIjvaQQRuYW1lgtPkkwIu", + "EiwvdjIve25hbWU9cHJvamVjdHMvKi9pbnN0YW5jZXMvKi9jbHVzdGVycy8q", + "fRKsAQoMTGlzdENsdXN0ZXJzEi0uZ29vZ2xlLmJpZ3RhYmxlLmFkbWluLnYy", + "Lkxpc3RDbHVzdGVyc1JlcXVlc3QaLi5nb29nbGUuYmlndGFibGUuYWRtaW4u", + "djIuTGlzdENsdXN0ZXJzUmVzcG9uc2UiPdpBBnBhcmVudILT5JMCLhIsL3Yy", + "L3twYXJlbnQ9cHJvamVjdHMvKi9pbnN0YW5jZXMvKn0vY2x1c3RlcnMSrQEK", + "DVVwZGF0ZUNsdXN0ZXISIS5nb29nbGUuYmlndGFibGUuYWRtaW4udjIuQ2x1", + "c3RlchodLmdvb2dsZS5sb25ncnVubmluZy5PcGVyYXRpb24iWspBIAoHQ2x1", + "c3RlchIVVXBkYXRlQ2x1c3Rlck1ldGFkYXRhgtPkkwIxGiwvdjIve25hbWU9", + "cHJvamVjdHMvKi9pbnN0YW5jZXMvKi9jbHVzdGVycy8qfToBKhL0AQoUUGFy", + "dGlhbFVwZGF0ZUNsdXN0ZXISNS5nb29nbGUuYmlndGFibGUuYWRtaW4udjIu", + "UGFydGlhbFVwZGF0ZUNsdXN0ZXJSZXF1ZXN0Gh0uZ29vZ2xlLmxvbmdydW5u", + "aW5nLk9wZXJhdGlvbiKFAcpBJwoHQ2x1c3RlchIcUGFydGlhbFVwZGF0ZUNs", + "dXN0ZXJNZXRhZGF0YdpBE2NsdXN0ZXIsdXBkYXRlX21hc2uC0+STAj8yNC92", + "Mi97Y2x1c3Rlci5uYW1lPXByb2plY3RzLyovaW5zdGFuY2VzLyovY2x1c3Rl", + "cnMvKn06B2NsdXN0ZXISlAEKDURlbGV0ZUNsdXN0ZXISLi5nb29nbGUuYmln", + "dGFibGUuYWRtaW4udjIuRGVsZXRlQ2x1c3RlclJlcXVlc3QaFi5nb29nbGUu", + "cHJvdG9idWYuRW1wdHkiO9pBBG5hbWWC0+STAi4qLC92Mi97bmFtZT1wcm9q", + "ZWN0cy8qL2luc3RhbmNlcy8qL2NsdXN0ZXJzLyp9EtUBChBDcmVhdGVBcHBQ", + "cm9maWxlEjEuZ29vZ2xlLmJpZ3RhYmxlLmFkbWluLnYyLkNyZWF0ZUFwcFBy", + "b2ZpbGVSZXF1ZXN0GiQuZ29vZ2xlLmJpZ3RhYmxlLmFkbWluLnYyLkFwcFBy", + "b2ZpbGUiaNpBIXBhcmVudCxhcHBfcHJvZmlsZV9pZCxhcHBfcHJvZmlsZYLT", + "5JMCPiIvL3YyL3twYXJlbnQ9cHJvamVjdHMvKi9pbnN0YW5jZXMvKn0vYXBw", + "UHJvZmlsZXM6C2FwcF9wcm9maWxlEqUBCg1HZXRBcHBQcm9maWxlEi4uZ29v", + "Z2xlLmJpZ3RhYmxlLmFkbWluLnYyLkdldEFwcFByb2ZpbGVSZXF1ZXN0GiQu", + "Z29vZ2xlLmJpZ3RhYmxlLmFkbWluLnYyLkFwcFByb2ZpbGUiPtpBBG5hbWWC", + "0+STAjESLy92Mi97bmFtZT1wcm9qZWN0cy8qL2luc3RhbmNlcy8qL2FwcFBy", + "b2ZpbGVzLyp9ErgBCg9MaXN0QXBwUHJvZmlsZXMSMC5nb29nbGUuYmlndGFi", + "bGUuYWRtaW4udjIuTGlzdEFwcFByb2ZpbGVzUmVxdWVzdBoxLmdvb2dsZS5i", + "aWd0YWJsZS5hZG1pbi52Mi5MaXN0QXBwUHJvZmlsZXNSZXNwb25zZSJA2kEG", + "cGFyZW50gtPkkwIxEi8vdjIve3BhcmVudD1wcm9qZWN0cy8qL2luc3RhbmNl", + "cy8qfS9hcHBQcm9maWxlcxL6AQoQVXBkYXRlQXBwUHJvZmlsZRIxLmdvb2ds", + "ZS5iaWd0YWJsZS5hZG1pbi52Mi5VcGRhdGVBcHBQcm9maWxlUmVxdWVzdBod", + "Lmdvb2dsZS5sb25ncnVubmluZy5PcGVyYXRpb24ikwHKQSYKCkFwcFByb2Zp", + "bGUSGFVwZGF0ZUFwcFByb2ZpbGVNZXRhZGF0YdpBF2FwcF9wcm9maWxlLHVw", + "ZGF0ZV9tYXNrgtPkkwJKMjsvdjIve2FwcF9wcm9maWxlLm5hbWU9cHJvamVj", + "dHMvKi9pbnN0YW5jZXMvKi9hcHBQcm9maWxlcy8qfToLYXBwX3Byb2ZpbGUS", + "nQEKEERlbGV0ZUFwcFByb2ZpbGUSMS5nb29nbGUuYmlndGFibGUuYWRtaW4u", + "djIuRGVsZXRlQXBwUHJvZmlsZVJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYu", + "RW1wdHkiPtpBBG5hbWWC0+STAjEqLy92Mi97bmFtZT1wcm9qZWN0cy8qL2lu", + "c3RhbmNlcy8qL2FwcFByb2ZpbGVzLyp9EpMBCgxHZXRJYW1Qb2xpY3kSIi5n", + "b29nbGUuaWFtLnYxLkdldElhbVBvbGljeVJlcXVlc3QaFS5nb29nbGUuaWFt", + "LnYxLlBvbGljeSJI2kEIcmVzb3VyY2WC0+STAjciMi92Mi97cmVzb3VyY2U9", + "cHJvamVjdHMvKi9pbnN0YW5jZXMvKn06Z2V0SWFtUG9saWN5OgEqEpoBCgxT", + "ZXRJYW1Qb2xpY3kSIi5nb29nbGUuaWFtLnYxLlNldElhbVBvbGljeVJlcXVl", + "c3QaFS5nb29nbGUuaWFtLnYxLlBvbGljeSJP2kEPcmVzb3VyY2UscG9saWN5", + "gtPkkwI3IjIvdjIve3Jlc291cmNlPXByb2plY3RzLyovaW5zdGFuY2VzLyp9", + "OnNldElhbVBvbGljeToBKhLFAQoSVGVzdElhbVBlcm1pc3Npb25zEiguZ29v", + "Z2xlLmlhbS52MS5UZXN0SWFtUGVybWlzc2lvbnNSZXF1ZXN0GikuZ29vZ2xl", + "LmlhbS52MS5UZXN0SWFtUGVybWlzc2lvbnNSZXNwb25zZSJa2kEUcmVzb3Vy", + "Y2UscGVybWlzc2lvbnOC0+STAj0iOC92Mi97cmVzb3VyY2U9cHJvamVjdHMv", + "Ki9pbnN0YW5jZXMvKn06dGVzdElhbVBlcm1pc3Npb25zOgEqEr8BCg5MaXN0", + "SG90VGFibGV0cxIvLmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5MaXN0SG90", + "VGFibGV0c1JlcXVlc3QaMC5nb29nbGUuYmlndGFibGUuYWRtaW4udjIuTGlz", + "dEhvdFRhYmxldHNSZXNwb25zZSJK2kEGcGFyZW50gtPkkwI7EjkvdjIve3Bh", + "cmVudD1wcm9qZWN0cy8qL2luc3RhbmNlcy8qL2NsdXN0ZXJzLyp9L2hvdFRh", + "YmxldHMamgPKQRxiaWd0YWJsZWFkbWluLmdvb2dsZWFwaXMuY29t0kH3Amh0", + "dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvYmlndGFibGUuYWRtaW4s", + "aHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5jb20vYXV0aC9iaWd0YWJsZS5hZG1p", + "bi5jbHVzdGVyLGh0dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvYmln", + "dGFibGUuYWRtaW4uaW5zdGFuY2UsaHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5j", + "b20vYXV0aC9jbG91ZC1iaWd0YWJsZS5hZG1pbixodHRwczovL3d3dy5nb29n", + "bGVhcGlzLmNvbS9hdXRoL2Nsb3VkLWJpZ3RhYmxlLmFkbWluLmNsdXN0ZXIs", + "aHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5jb20vYXV0aC9jbG91ZC1wbGF0Zm9y", + "bSxodHRwczovL3d3dy5nb29nbGVhcGlzLmNvbS9hdXRoL2Nsb3VkLXBsYXRm", + "b3JtLnJlYWQtb25seULdAQocY29tLmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52", + "MkIaQmlndGFibGVJbnN0YW5jZUFkbWluUHJvdG9QAVo4Y2xvdWQuZ29vZ2xl", + "LmNvbS9nby9iaWd0YWJsZS9hZG1pbi9hcGl2Mi9hZG1pbnBiO2FkbWlucGKq", + "Ah5Hb29nbGUuQ2xvdWQuQmlndGFibGUuQWRtaW4uVjLKAh5Hb29nbGVcQ2xv", + "dWRcQmlndGFibGVcQWRtaW5cVjLqAiJHb29nbGU6OkNsb3VkOjpCaWd0YWJs", + "ZTo6QWRtaW46OlYyYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Cloud.Bigtable.Admin.V2.InstanceReflection.Descriptor, global::Google.Cloud.Iam.V1.IamPolicyReflection.Descriptor, global::Google.Cloud.Iam.V1.PolicyReflection.Descriptor, global::Google.LongRunning.OperationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.CreateInstanceRequest), global::Google.Cloud.Bigtable.Admin.V2.CreateInstanceRequest.Parser, new[]{ "Parent", "InstanceId", "Instance", "Clusters" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.GetInstanceRequest), global::Google.Cloud.Bigtable.Admin.V2.GetInstanceRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.ListInstancesRequest), global::Google.Cloud.Bigtable.Admin.V2.ListInstancesRequest.Parser, new[]{ "Parent", "PageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.ListInstancesResponse), global::Google.Cloud.Bigtable.Admin.V2.ListInstancesResponse.Parser, new[]{ "Instances", "FailedLocations", "NextPageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.PartialUpdateInstanceRequest), global::Google.Cloud.Bigtable.Admin.V2.PartialUpdateInstanceRequest.Parser, new[]{ "Instance", "UpdateMask" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.DeleteInstanceRequest), global::Google.Cloud.Bigtable.Admin.V2.DeleteInstanceRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.CreateClusterRequest), global::Google.Cloud.Bigtable.Admin.V2.CreateClusterRequest.Parser, new[]{ "Parent", "ClusterId", "Cluster" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.GetClusterRequest), global::Google.Cloud.Bigtable.Admin.V2.GetClusterRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.ListClustersRequest), global::Google.Cloud.Bigtable.Admin.V2.ListClustersRequest.Parser, new[]{ "Parent", "PageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.ListClustersResponse), global::Google.Cloud.Bigtable.Admin.V2.ListClustersResponse.Parser, new[]{ "Clusters", "FailedLocations", "NextPageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.DeleteClusterRequest), global::Google.Cloud.Bigtable.Admin.V2.DeleteClusterRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.CreateInstanceMetadata), global::Google.Cloud.Bigtable.Admin.V2.CreateInstanceMetadata.Parser, new[]{ "OriginalRequest", "RequestTime", "FinishTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.UpdateInstanceMetadata), global::Google.Cloud.Bigtable.Admin.V2.UpdateInstanceMetadata.Parser, new[]{ "OriginalRequest", "RequestTime", "FinishTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.CreateClusterMetadata), global::Google.Cloud.Bigtable.Admin.V2.CreateClusterMetadata.Parser, new[]{ "OriginalRequest", "RequestTime", "FinishTime", "Tables" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.CreateClusterMetadata.Types.TableProgress), global::Google.Cloud.Bigtable.Admin.V2.CreateClusterMetadata.Types.TableProgress.Parser, new[]{ "EstimatedSizeBytes", "EstimatedCopiedBytes", "State" }, null, new[]{ typeof(global::Google.Cloud.Bigtable.Admin.V2.CreateClusterMetadata.Types.TableProgress.Types.State) }, null, null), + null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.UpdateClusterMetadata), global::Google.Cloud.Bigtable.Admin.V2.UpdateClusterMetadata.Parser, new[]{ "OriginalRequest", "RequestTime", "FinishTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.PartialUpdateClusterMetadata), global::Google.Cloud.Bigtable.Admin.V2.PartialUpdateClusterMetadata.Parser, new[]{ "RequestTime", "FinishTime", "OriginalRequest" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.PartialUpdateClusterRequest), global::Google.Cloud.Bigtable.Admin.V2.PartialUpdateClusterRequest.Parser, new[]{ "Cluster", "UpdateMask" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.CreateAppProfileRequest), global::Google.Cloud.Bigtable.Admin.V2.CreateAppProfileRequest.Parser, new[]{ "Parent", "AppProfileId", "AppProfile", "IgnoreWarnings" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.GetAppProfileRequest), global::Google.Cloud.Bigtable.Admin.V2.GetAppProfileRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.ListAppProfilesRequest), global::Google.Cloud.Bigtable.Admin.V2.ListAppProfilesRequest.Parser, new[]{ "Parent", "PageSize", "PageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.ListAppProfilesResponse), global::Google.Cloud.Bigtable.Admin.V2.ListAppProfilesResponse.Parser, new[]{ "AppProfiles", "NextPageToken", "FailedLocations" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.UpdateAppProfileRequest), global::Google.Cloud.Bigtable.Admin.V2.UpdateAppProfileRequest.Parser, new[]{ "AppProfile", "UpdateMask", "IgnoreWarnings" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.DeleteAppProfileRequest), global::Google.Cloud.Bigtable.Admin.V2.DeleteAppProfileRequest.Parser, new[]{ "Name", "IgnoreWarnings" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.UpdateAppProfileMetadata), global::Google.Cloud.Bigtable.Admin.V2.UpdateAppProfileMetadata.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.ListHotTabletsRequest), global::Google.Cloud.Bigtable.Admin.V2.ListHotTabletsRequest.Parser, new[]{ "Parent", "StartTime", "EndTime", "PageSize", "PageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.ListHotTabletsResponse), global::Google.Cloud.Bigtable.Admin.V2.ListHotTabletsResponse.Parser, new[]{ "HotTablets", "NextPageToken" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Request message for BigtableInstanceAdmin.CreateInstance. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CreateInstanceRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateInstanceRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateInstanceRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateInstanceRequest(CreateInstanceRequest other) : this() { + parent_ = other.parent_; + instanceId_ = other.instanceId_; + instance_ = other.instance_ != null ? other.instance_.Clone() : null; + clusters_ = other.clusters_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateInstanceRequest Clone() { + return new CreateInstanceRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. The unique name of the project in which to create the new + /// instance. Values are of the form `projects/{project}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Parent { + get { return parent_; } + set { + parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "instance_id" field. + public const int InstanceIdFieldNumber = 2; + private 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`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string InstanceId { + get { return instanceId_; } + set { + instanceId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "instance" field. + public const int InstanceFieldNumber = 3; + private global::Google.Cloud.Bigtable.Admin.V2.Instance instance_; + /// + /// Required. The instance to create. + /// Fields marked `OutputOnly` must be left blank. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Instance Instance { + get { return instance_; } + set { + instance_ = value; + } + } + + /// Field number for the "clusters" field. + public const int ClustersFieldNumber = 4; + private static readonly pbc::MapField.Codec _map_clusters_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Google.Cloud.Bigtable.Admin.V2.Cluster.Parser), 34); + private readonly pbc::MapField clusters_ = new pbc::MapField(); + /// + /// 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. + /// Currently, at most four clusters can be specified. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Clusters { + get { return clusters_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateInstanceRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateInstanceRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (InstanceId != other.InstanceId) return false; + if (!object.Equals(Instance, other.Instance)) return false; + if (!Clusters.Equals(other.Clusters)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (InstanceId.Length != 0) hash ^= InstanceId.GetHashCode(); + if (instance_ != null) hash ^= Instance.GetHashCode(); + hash ^= Clusters.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (InstanceId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(InstanceId); + } + if (instance_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Instance); + } + clusters_.WriteTo(output, _map_clusters_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (InstanceId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(InstanceId); + } + if (instance_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Instance); + } + clusters_.WriteTo(ref output, _map_clusters_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + if (InstanceId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(InstanceId); + } + if (instance_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Instance); + } + size += clusters_.CalculateSize(_map_clusters_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateInstanceRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.InstanceId.Length != 0) { + InstanceId = other.InstanceId; + } + if (other.instance_ != null) { + if (instance_ == null) { + Instance = new global::Google.Cloud.Bigtable.Admin.V2.Instance(); + } + Instance.MergeFrom(other.Instance); + } + clusters_.MergeFrom(other.clusters_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + InstanceId = input.ReadString(); + break; + } + case 26: { + if (instance_ == null) { + Instance = new global::Google.Cloud.Bigtable.Admin.V2.Instance(); + } + input.ReadMessage(Instance); + break; + } + case 34: { + clusters_.AddEntriesFrom(input, _map_clusters_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + InstanceId = input.ReadString(); + break; + } + case 26: { + if (instance_ == null) { + Instance = new global::Google.Cloud.Bigtable.Admin.V2.Instance(); + } + input.ReadMessage(Instance); + break; + } + case 34: { + clusters_.AddEntriesFrom(ref input, _map_clusters_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for BigtableInstanceAdmin.GetInstance. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetInstanceRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetInstanceRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetInstanceRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetInstanceRequest(GetInstanceRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetInstanceRequest Clone() { + return new GetInstanceRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The unique name of the requested instance. Values are of the form + /// `projects/{project}/instances/{instance}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetInstanceRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetInstanceRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetInstanceRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for BigtableInstanceAdmin.ListInstances. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListInstancesRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListInstancesRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListInstancesRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListInstancesRequest(ListInstancesRequest other) : this() { + parent_ = other.parent_; + pageToken_ = other.pageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListInstancesRequest Clone() { + return new ListInstancesRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. The unique name of the project for which a list of instances is + /// requested. Values are of the form `projects/{project}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Parent { + get { return parent_; } + set { + parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "page_token" field. + public const int PageTokenFieldNumber = 2; + private string pageToken_ = ""; + /// + /// DEPRECATED: This field is unused and ignored. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PageToken { + get { return pageToken_; } + set { + pageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListInstancesRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListInstancesRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (PageToken != other.PageToken) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (PageToken.Length != 0) hash ^= PageToken.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (PageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(PageToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (PageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(PageToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + if (PageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PageToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListInstancesRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.PageToken.Length != 0) { + PageToken = other.PageToken; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + PageToken = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + PageToken = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Response message for BigtableInstanceAdmin.ListInstances. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListInstancesResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListInstancesResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListInstancesResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListInstancesResponse(ListInstancesResponse other) : this() { + instances_ = other.instances_.Clone(); + failedLocations_ = other.failedLocations_.Clone(); + nextPageToken_ = other.nextPageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListInstancesResponse Clone() { + return new ListInstancesResponse(this); + } + + /// Field number for the "instances" field. + public const int InstancesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_instances_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.Bigtable.Admin.V2.Instance.Parser); + private readonly pbc::RepeatedField instances_ = new pbc::RepeatedField(); + /// + /// The list of requested instances. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Instances { + get { return instances_; } + } + + /// Field number for the "failed_locations" field. + public const int FailedLocationsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_failedLocations_codec + = pb::FieldCodec.ForString(18); + private readonly pbc::RepeatedField failedLocations_ = new pbc::RepeatedField(); + /// + /// 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/<project>/locations/<zone_id>` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField FailedLocations { + get { return failedLocations_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 3; + private string nextPageToken_ = ""; + /// + /// DEPRECATED: This field is unused and ignored. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NextPageToken { + get { return nextPageToken_; } + set { + nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListInstancesResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListInstancesResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!instances_.Equals(other.instances_)) return false; + if(!failedLocations_.Equals(other.failedLocations_)) return false; + if (NextPageToken != other.NextPageToken) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= instances_.GetHashCode(); + hash ^= failedLocations_.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + instances_.WriteTo(output, _repeated_instances_codec); + failedLocations_.WriteTo(output, _repeated_failedLocations_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(26); + output.WriteString(NextPageToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + instances_.WriteTo(ref output, _repeated_instances_codec); + failedLocations_.WriteTo(ref output, _repeated_failedLocations_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(26); + output.WriteString(NextPageToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += instances_.CalculateSize(_repeated_instances_codec); + size += failedLocations_.CalculateSize(_repeated_failedLocations_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListInstancesResponse other) { + if (other == null) { + return; + } + instances_.Add(other.instances_); + failedLocations_.Add(other.failedLocations_); + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + instances_.AddEntriesFrom(input, _repeated_instances_codec); + break; + } + case 18: { + failedLocations_.AddEntriesFrom(input, _repeated_failedLocations_codec); + break; + } + case 26: { + NextPageToken = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + instances_.AddEntriesFrom(ref input, _repeated_instances_codec); + break; + } + case 18: { + failedLocations_.AddEntriesFrom(ref input, _repeated_failedLocations_codec); + break; + } + case 26: { + NextPageToken = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for BigtableInstanceAdmin.PartialUpdateInstance. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PartialUpdateInstanceRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PartialUpdateInstanceRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PartialUpdateInstanceRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PartialUpdateInstanceRequest(PartialUpdateInstanceRequest other) : this() { + instance_ = other.instance_ != null ? other.instance_.Clone() : null; + updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PartialUpdateInstanceRequest Clone() { + return new PartialUpdateInstanceRequest(this); + } + + /// Field number for the "instance" field. + public const int InstanceFieldNumber = 1; + private global::Google.Cloud.Bigtable.Admin.V2.Instance instance_; + /// + /// Required. The Instance which will (partially) replace the current value. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Instance Instance { + get { return instance_; } + set { + instance_ = value; + } + } + + /// Field number for the "update_mask" field. + public const int UpdateMaskFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; + /// + /// Required. The subset of Instance fields which should be replaced. + /// Must be explicitly set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { + get { return updateMask_; } + set { + updateMask_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PartialUpdateInstanceRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PartialUpdateInstanceRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Instance, other.Instance)) return false; + if (!object.Equals(UpdateMask, other.UpdateMask)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (instance_ != null) hash ^= Instance.GetHashCode(); + if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (instance_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Instance); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (instance_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Instance); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (instance_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Instance); + } + if (updateMask_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PartialUpdateInstanceRequest other) { + if (other == null) { + return; + } + if (other.instance_ != null) { + if (instance_ == null) { + Instance = new global::Google.Cloud.Bigtable.Admin.V2.Instance(); + } + Instance.MergeFrom(other.Instance); + } + if (other.updateMask_ != null) { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + UpdateMask.MergeFrom(other.UpdateMask); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (instance_ == null) { + Instance = new global::Google.Cloud.Bigtable.Admin.V2.Instance(); + } + input.ReadMessage(Instance); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (instance_ == null) { + Instance = new global::Google.Cloud.Bigtable.Admin.V2.Instance(); + } + input.ReadMessage(Instance); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for BigtableInstanceAdmin.DeleteInstance. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DeleteInstanceRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteInstanceRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteInstanceRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteInstanceRequest(DeleteInstanceRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteInstanceRequest Clone() { + return new DeleteInstanceRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The unique name of the instance to be deleted. + /// Values are of the form `projects/{project}/instances/{instance}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteInstanceRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteInstanceRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteInstanceRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for BigtableInstanceAdmin.CreateCluster. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CreateClusterRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateClusterRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateClusterRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateClusterRequest(CreateClusterRequest other) : this() { + parent_ = other.parent_; + clusterId_ = other.clusterId_; + cluster_ = other.cluster_ != null ? other.cluster_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateClusterRequest Clone() { + return new CreateClusterRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private 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}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Parent { + get { return parent_; } + set { + parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "cluster_id" field. + public const int ClusterIdFieldNumber = 2; + private 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`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ClusterId { + get { return clusterId_; } + set { + clusterId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "cluster" field. + public const int ClusterFieldNumber = 3; + private global::Google.Cloud.Bigtable.Admin.V2.Cluster cluster_; + /// + /// Required. The cluster to be created. + /// Fields marked `OutputOnly` must be left blank. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Cluster Cluster { + get { return cluster_; } + set { + cluster_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateClusterRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateClusterRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (ClusterId != other.ClusterId) return false; + if (!object.Equals(Cluster, other.Cluster)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (ClusterId.Length != 0) hash ^= ClusterId.GetHashCode(); + if (cluster_ != null) hash ^= Cluster.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (ClusterId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ClusterId); + } + if (cluster_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Cluster); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (ClusterId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ClusterId); + } + if (cluster_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Cluster); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + if (ClusterId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ClusterId); + } + if (cluster_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Cluster); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateClusterRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.ClusterId.Length != 0) { + ClusterId = other.ClusterId; + } + if (other.cluster_ != null) { + if (cluster_ == null) { + Cluster = new global::Google.Cloud.Bigtable.Admin.V2.Cluster(); + } + Cluster.MergeFrom(other.Cluster); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + ClusterId = input.ReadString(); + break; + } + case 26: { + if (cluster_ == null) { + Cluster = new global::Google.Cloud.Bigtable.Admin.V2.Cluster(); + } + input.ReadMessage(Cluster); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + ClusterId = input.ReadString(); + break; + } + case 26: { + if (cluster_ == null) { + Cluster = new global::Google.Cloud.Bigtable.Admin.V2.Cluster(); + } + input.ReadMessage(Cluster); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for BigtableInstanceAdmin.GetCluster. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetClusterRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetClusterRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetClusterRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetClusterRequest(GetClusterRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetClusterRequest Clone() { + return new GetClusterRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The unique name of the requested cluster. Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{cluster}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetClusterRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetClusterRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetClusterRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for BigtableInstanceAdmin.ListClusters. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListClustersRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListClustersRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListClustersRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListClustersRequest(ListClustersRequest other) : this() { + parent_ = other.parent_; + pageToken_ = other.pageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListClustersRequest Clone() { + return new ListClustersRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private 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/-`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Parent { + get { return parent_; } + set { + parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "page_token" field. + public const int PageTokenFieldNumber = 2; + private string pageToken_ = ""; + /// + /// DEPRECATED: This field is unused and ignored. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PageToken { + get { return pageToken_; } + set { + pageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListClustersRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListClustersRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (PageToken != other.PageToken) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (PageToken.Length != 0) hash ^= PageToken.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (PageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(PageToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (PageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(PageToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + if (PageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PageToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListClustersRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.PageToken.Length != 0) { + PageToken = other.PageToken; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + PageToken = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + PageToken = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Response message for BigtableInstanceAdmin.ListClusters. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListClustersResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListClustersResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminReflection.Descriptor.MessageTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListClustersResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListClustersResponse(ListClustersResponse other) : this() { + clusters_ = other.clusters_.Clone(); + failedLocations_ = other.failedLocations_.Clone(); + nextPageToken_ = other.nextPageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListClustersResponse Clone() { + return new ListClustersResponse(this); + } + + /// Field number for the "clusters" field. + public const int ClustersFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_clusters_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.Bigtable.Admin.V2.Cluster.Parser); + private readonly pbc::RepeatedField clusters_ = new pbc::RepeatedField(); + /// + /// The list of requested clusters. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Clusters { + get { return clusters_; } + } + + /// Field number for the "failed_locations" field. + public const int FailedLocationsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_failedLocations_codec + = pb::FieldCodec.ForString(18); + private readonly pbc::RepeatedField failedLocations_ = new pbc::RepeatedField(); + /// + /// 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/<project>/locations/<zone_id>` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField FailedLocations { + get { return failedLocations_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 3; + private string nextPageToken_ = ""; + /// + /// DEPRECATED: This field is unused and ignored. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NextPageToken { + get { return nextPageToken_; } + set { + nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListClustersResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListClustersResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!clusters_.Equals(other.clusters_)) return false; + if(!failedLocations_.Equals(other.failedLocations_)) return false; + if (NextPageToken != other.NextPageToken) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= clusters_.GetHashCode(); + hash ^= failedLocations_.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + clusters_.WriteTo(output, _repeated_clusters_codec); + failedLocations_.WriteTo(output, _repeated_failedLocations_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(26); + output.WriteString(NextPageToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + clusters_.WriteTo(ref output, _repeated_clusters_codec); + failedLocations_.WriteTo(ref output, _repeated_failedLocations_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(26); + output.WriteString(NextPageToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += clusters_.CalculateSize(_repeated_clusters_codec); + size += failedLocations_.CalculateSize(_repeated_failedLocations_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListClustersResponse other) { + if (other == null) { + return; + } + clusters_.Add(other.clusters_); + failedLocations_.Add(other.failedLocations_); + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + clusters_.AddEntriesFrom(input, _repeated_clusters_codec); + break; + } + case 18: { + failedLocations_.AddEntriesFrom(input, _repeated_failedLocations_codec); + break; + } + case 26: { + NextPageToken = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + clusters_.AddEntriesFrom(ref input, _repeated_clusters_codec); + break; + } + case 18: { + failedLocations_.AddEntriesFrom(ref input, _repeated_failedLocations_codec); + break; + } + case 26: { + NextPageToken = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for BigtableInstanceAdmin.DeleteCluster. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DeleteClusterRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteClusterRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminReflection.Descriptor.MessageTypes[10]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteClusterRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteClusterRequest(DeleteClusterRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteClusterRequest Clone() { + return new DeleteClusterRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The unique name of the cluster to be deleted. Values are of the + /// form `projects/{project}/instances/{instance}/clusters/{cluster}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteClusterRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteClusterRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteClusterRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// The metadata for the Operation returned by CreateInstance. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CreateInstanceMetadata : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateInstanceMetadata()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateInstanceMetadata() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateInstanceMetadata(CreateInstanceMetadata other) : this() { + originalRequest_ = other.originalRequest_ != null ? other.originalRequest_.Clone() : null; + requestTime_ = other.requestTime_ != null ? other.requestTime_.Clone() : null; + finishTime_ = other.finishTime_ != null ? other.finishTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateInstanceMetadata Clone() { + return new CreateInstanceMetadata(this); + } + + /// Field number for the "original_request" field. + public const int OriginalRequestFieldNumber = 1; + private global::Google.Cloud.Bigtable.Admin.V2.CreateInstanceRequest originalRequest_; + /// + /// The request that prompted the initiation of this CreateInstance operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.CreateInstanceRequest OriginalRequest { + get { return originalRequest_; } + set { + originalRequest_ = value; + } + } + + /// Field number for the "request_time" field. + public const int RequestTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp requestTime_; + /// + /// The time at which the original request was received. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp RequestTime { + get { return requestTime_; } + set { + requestTime_ = value; + } + } + + /// Field number for the "finish_time" field. + public const int FinishTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp finishTime_; + /// + /// The time at which the operation failed or was completed successfully. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp FinishTime { + get { return finishTime_; } + set { + finishTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateInstanceMetadata); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateInstanceMetadata other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(OriginalRequest, other.OriginalRequest)) return false; + if (!object.Equals(RequestTime, other.RequestTime)) return false; + if (!object.Equals(FinishTime, other.FinishTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (originalRequest_ != null) hash ^= OriginalRequest.GetHashCode(); + if (requestTime_ != null) hash ^= RequestTime.GetHashCode(); + if (finishTime_ != null) hash ^= FinishTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (originalRequest_ != null) { + output.WriteRawTag(10); + output.WriteMessage(OriginalRequest); + } + if (requestTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(RequestTime); + } + if (finishTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(FinishTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (originalRequest_ != null) { + output.WriteRawTag(10); + output.WriteMessage(OriginalRequest); + } + if (requestTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(RequestTime); + } + if (finishTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(FinishTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (originalRequest_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OriginalRequest); + } + if (requestTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RequestTime); + } + if (finishTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FinishTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateInstanceMetadata other) { + if (other == null) { + return; + } + if (other.originalRequest_ != null) { + if (originalRequest_ == null) { + OriginalRequest = new global::Google.Cloud.Bigtable.Admin.V2.CreateInstanceRequest(); + } + OriginalRequest.MergeFrom(other.OriginalRequest); + } + if (other.requestTime_ != null) { + if (requestTime_ == null) { + RequestTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + RequestTime.MergeFrom(other.RequestTime); + } + if (other.finishTime_ != null) { + if (finishTime_ == null) { + FinishTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + FinishTime.MergeFrom(other.FinishTime); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (originalRequest_ == null) { + OriginalRequest = new global::Google.Cloud.Bigtable.Admin.V2.CreateInstanceRequest(); + } + input.ReadMessage(OriginalRequest); + break; + } + case 18: { + if (requestTime_ == null) { + RequestTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(RequestTime); + break; + } + case 26: { + if (finishTime_ == null) { + FinishTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(FinishTime); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (originalRequest_ == null) { + OriginalRequest = new global::Google.Cloud.Bigtable.Admin.V2.CreateInstanceRequest(); + } + input.ReadMessage(OriginalRequest); + break; + } + case 18: { + if (requestTime_ == null) { + RequestTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(RequestTime); + break; + } + case 26: { + if (finishTime_ == null) { + FinishTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(FinishTime); + break; + } + } + } + } + #endif + + } + + /// + /// The metadata for the Operation returned by UpdateInstance. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UpdateInstanceMetadata : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateInstanceMetadata()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateInstanceMetadata() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateInstanceMetadata(UpdateInstanceMetadata other) : this() { + originalRequest_ = other.originalRequest_ != null ? other.originalRequest_.Clone() : null; + requestTime_ = other.requestTime_ != null ? other.requestTime_.Clone() : null; + finishTime_ = other.finishTime_ != null ? other.finishTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateInstanceMetadata Clone() { + return new UpdateInstanceMetadata(this); + } + + /// Field number for the "original_request" field. + public const int OriginalRequestFieldNumber = 1; + private global::Google.Cloud.Bigtable.Admin.V2.PartialUpdateInstanceRequest originalRequest_; + /// + /// The request that prompted the initiation of this UpdateInstance operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.PartialUpdateInstanceRequest OriginalRequest { + get { return originalRequest_; } + set { + originalRequest_ = value; + } + } + + /// Field number for the "request_time" field. + public const int RequestTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp requestTime_; + /// + /// The time at which the original request was received. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp RequestTime { + get { return requestTime_; } + set { + requestTime_ = value; + } + } + + /// Field number for the "finish_time" field. + public const int FinishTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp finishTime_; + /// + /// The time at which the operation failed or was completed successfully. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp FinishTime { + get { return finishTime_; } + set { + finishTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateInstanceMetadata); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateInstanceMetadata other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(OriginalRequest, other.OriginalRequest)) return false; + if (!object.Equals(RequestTime, other.RequestTime)) return false; + if (!object.Equals(FinishTime, other.FinishTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (originalRequest_ != null) hash ^= OriginalRequest.GetHashCode(); + if (requestTime_ != null) hash ^= RequestTime.GetHashCode(); + if (finishTime_ != null) hash ^= FinishTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (originalRequest_ != null) { + output.WriteRawTag(10); + output.WriteMessage(OriginalRequest); + } + if (requestTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(RequestTime); + } + if (finishTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(FinishTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (originalRequest_ != null) { + output.WriteRawTag(10); + output.WriteMessage(OriginalRequest); + } + if (requestTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(RequestTime); + } + if (finishTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(FinishTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (originalRequest_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OriginalRequest); + } + if (requestTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RequestTime); + } + if (finishTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FinishTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateInstanceMetadata other) { + if (other == null) { + return; + } + if (other.originalRequest_ != null) { + if (originalRequest_ == null) { + OriginalRequest = new global::Google.Cloud.Bigtable.Admin.V2.PartialUpdateInstanceRequest(); + } + OriginalRequest.MergeFrom(other.OriginalRequest); + } + if (other.requestTime_ != null) { + if (requestTime_ == null) { + RequestTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + RequestTime.MergeFrom(other.RequestTime); + } + if (other.finishTime_ != null) { + if (finishTime_ == null) { + FinishTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + FinishTime.MergeFrom(other.FinishTime); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (originalRequest_ == null) { + OriginalRequest = new global::Google.Cloud.Bigtable.Admin.V2.PartialUpdateInstanceRequest(); + } + input.ReadMessage(OriginalRequest); + break; + } + case 18: { + if (requestTime_ == null) { + RequestTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(RequestTime); + break; + } + case 26: { + if (finishTime_ == null) { + FinishTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(FinishTime); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (originalRequest_ == null) { + OriginalRequest = new global::Google.Cloud.Bigtable.Admin.V2.PartialUpdateInstanceRequest(); + } + input.ReadMessage(OriginalRequest); + break; + } + case 18: { + if (requestTime_ == null) { + RequestTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(RequestTime); + break; + } + case 26: { + if (finishTime_ == null) { + FinishTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(FinishTime); + break; + } + } + } + } + #endif + + } + + /// + /// The metadata for the Operation returned by CreateCluster. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CreateClusterMetadata : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateClusterMetadata()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateClusterMetadata() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateClusterMetadata(CreateClusterMetadata other) : this() { + originalRequest_ = other.originalRequest_ != null ? other.originalRequest_.Clone() : null; + requestTime_ = other.requestTime_ != null ? other.requestTime_.Clone() : null; + finishTime_ = other.finishTime_ != null ? other.finishTime_.Clone() : null; + tables_ = other.tables_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateClusterMetadata Clone() { + return new CreateClusterMetadata(this); + } + + /// Field number for the "original_request" field. + public const int OriginalRequestFieldNumber = 1; + private global::Google.Cloud.Bigtable.Admin.V2.CreateClusterRequest originalRequest_; + /// + /// The request that prompted the initiation of this CreateCluster operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.CreateClusterRequest OriginalRequest { + get { return originalRequest_; } + set { + originalRequest_ = value; + } + } + + /// Field number for the "request_time" field. + public const int RequestTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp requestTime_; + /// + /// The time at which the original request was received. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp RequestTime { + get { return requestTime_; } + set { + requestTime_ = value; + } + } + + /// Field number for the "finish_time" field. + public const int FinishTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp finishTime_; + /// + /// The time at which the operation failed or was completed successfully. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp FinishTime { + get { return finishTime_; } + set { + finishTime_ = value; + } + } + + /// Field number for the "tables" field. + public const int TablesFieldNumber = 4; + private static readonly pbc::MapField.Codec _map_tables_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Google.Cloud.Bigtable.Admin.V2.CreateClusterMetadata.Types.TableProgress.Parser), 34); + private readonly pbc::MapField tables_ = new pbc::MapField(); + /// + /// Keys: the full `name` of each table that existed in the instance when + /// CreateCluster was first called, i.e. + /// `projects/<project>/instances/<instance>/tables/<table>`. 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Tables { + get { return tables_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateClusterMetadata); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateClusterMetadata other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(OriginalRequest, other.OriginalRequest)) return false; + if (!object.Equals(RequestTime, other.RequestTime)) return false; + if (!object.Equals(FinishTime, other.FinishTime)) return false; + if (!Tables.Equals(other.Tables)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (originalRequest_ != null) hash ^= OriginalRequest.GetHashCode(); + if (requestTime_ != null) hash ^= RequestTime.GetHashCode(); + if (finishTime_ != null) hash ^= FinishTime.GetHashCode(); + hash ^= Tables.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (originalRequest_ != null) { + output.WriteRawTag(10); + output.WriteMessage(OriginalRequest); + } + if (requestTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(RequestTime); + } + if (finishTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(FinishTime); + } + tables_.WriteTo(output, _map_tables_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (originalRequest_ != null) { + output.WriteRawTag(10); + output.WriteMessage(OriginalRequest); + } + if (requestTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(RequestTime); + } + if (finishTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(FinishTime); + } + tables_.WriteTo(ref output, _map_tables_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (originalRequest_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OriginalRequest); + } + if (requestTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RequestTime); + } + if (finishTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FinishTime); + } + size += tables_.CalculateSize(_map_tables_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateClusterMetadata other) { + if (other == null) { + return; + } + if (other.originalRequest_ != null) { + if (originalRequest_ == null) { + OriginalRequest = new global::Google.Cloud.Bigtable.Admin.V2.CreateClusterRequest(); + } + OriginalRequest.MergeFrom(other.OriginalRequest); + } + if (other.requestTime_ != null) { + if (requestTime_ == null) { + RequestTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + RequestTime.MergeFrom(other.RequestTime); + } + if (other.finishTime_ != null) { + if (finishTime_ == null) { + FinishTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + FinishTime.MergeFrom(other.FinishTime); + } + tables_.MergeFrom(other.tables_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (originalRequest_ == null) { + OriginalRequest = new global::Google.Cloud.Bigtable.Admin.V2.CreateClusterRequest(); + } + input.ReadMessage(OriginalRequest); + break; + } + case 18: { + if (requestTime_ == null) { + RequestTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(RequestTime); + break; + } + case 26: { + if (finishTime_ == null) { + FinishTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(FinishTime); + break; + } + case 34: { + tables_.AddEntriesFrom(input, _map_tables_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (originalRequest_ == null) { + OriginalRequest = new global::Google.Cloud.Bigtable.Admin.V2.CreateClusterRequest(); + } + input.ReadMessage(OriginalRequest); + break; + } + case 18: { + if (requestTime_ == null) { + RequestTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(RequestTime); + break; + } + case 26: { + if (finishTime_ == null) { + FinishTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(FinishTime); + break; + } + case 34: { + tables_.AddEntriesFrom(ref input, _map_tables_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the CreateClusterMetadata message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Progress info for copying a table's data to the new cluster. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TableProgress : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TableProgress()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.CreateClusterMetadata.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TableProgress() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TableProgress(TableProgress other) : this() { + estimatedSizeBytes_ = other.estimatedSizeBytes_; + estimatedCopiedBytes_ = other.estimatedCopiedBytes_; + state_ = other.state_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TableProgress Clone() { + return new TableProgress(this); + } + + /// Field number for the "estimated_size_bytes" field. + public const int EstimatedSizeBytesFieldNumber = 2; + private long estimatedSizeBytes_; + /// + /// Estimate of the size of the table to be copied. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long EstimatedSizeBytes { + get { return estimatedSizeBytes_; } + set { + estimatedSizeBytes_ = value; + } + } + + /// Field number for the "estimated_copied_bytes" field. + public const int EstimatedCopiedBytesFieldNumber = 3; + private long estimatedCopiedBytes_; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long EstimatedCopiedBytes { + get { return estimatedCopiedBytes_; } + set { + estimatedCopiedBytes_ = value; + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 4; + private global::Google.Cloud.Bigtable.Admin.V2.CreateClusterMetadata.Types.TableProgress.Types.State state_ = global::Google.Cloud.Bigtable.Admin.V2.CreateClusterMetadata.Types.TableProgress.Types.State.Unspecified; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.CreateClusterMetadata.Types.TableProgress.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TableProgress); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TableProgress other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (EstimatedSizeBytes != other.EstimatedSizeBytes) return false; + if (EstimatedCopiedBytes != other.EstimatedCopiedBytes) return false; + if (State != other.State) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (EstimatedSizeBytes != 0L) hash ^= EstimatedSizeBytes.GetHashCode(); + if (EstimatedCopiedBytes != 0L) hash ^= EstimatedCopiedBytes.GetHashCode(); + if (State != global::Google.Cloud.Bigtable.Admin.V2.CreateClusterMetadata.Types.TableProgress.Types.State.Unspecified) hash ^= State.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (EstimatedSizeBytes != 0L) { + output.WriteRawTag(16); + output.WriteInt64(EstimatedSizeBytes); + } + if (EstimatedCopiedBytes != 0L) { + output.WriteRawTag(24); + output.WriteInt64(EstimatedCopiedBytes); + } + if (State != global::Google.Cloud.Bigtable.Admin.V2.CreateClusterMetadata.Types.TableProgress.Types.State.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) State); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (EstimatedSizeBytes != 0L) { + output.WriteRawTag(16); + output.WriteInt64(EstimatedSizeBytes); + } + if (EstimatedCopiedBytes != 0L) { + output.WriteRawTag(24); + output.WriteInt64(EstimatedCopiedBytes); + } + if (State != global::Google.Cloud.Bigtable.Admin.V2.CreateClusterMetadata.Types.TableProgress.Types.State.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) State); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (EstimatedSizeBytes != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(EstimatedSizeBytes); + } + if (EstimatedCopiedBytes != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(EstimatedCopiedBytes); + } + if (State != global::Google.Cloud.Bigtable.Admin.V2.CreateClusterMetadata.Types.TableProgress.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TableProgress other) { + if (other == null) { + return; + } + if (other.EstimatedSizeBytes != 0L) { + EstimatedSizeBytes = other.EstimatedSizeBytes; + } + if (other.EstimatedCopiedBytes != 0L) { + EstimatedCopiedBytes = other.EstimatedCopiedBytes; + } + if (other.State != global::Google.Cloud.Bigtable.Admin.V2.CreateClusterMetadata.Types.TableProgress.Types.State.Unspecified) { + State = other.State; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + EstimatedSizeBytes = input.ReadInt64(); + break; + } + case 24: { + EstimatedCopiedBytes = input.ReadInt64(); + break; + } + case 32: { + State = (global::Google.Cloud.Bigtable.Admin.V2.CreateClusterMetadata.Types.TableProgress.Types.State) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + EstimatedSizeBytes = input.ReadInt64(); + break; + } + case 24: { + EstimatedCopiedBytes = input.ReadInt64(); + break; + } + case 32: { + State = (global::Google.Cloud.Bigtable.Admin.V2.CreateClusterMetadata.Types.TableProgress.Types.State) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the TableProgress message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + public enum State { + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The table has not yet begun copying to the new cluster. + /// + [pbr::OriginalName("PENDING")] Pending = 1, + /// + /// The table is actively being copied to the new cluster. + /// + [pbr::OriginalName("COPYING")] Copying = 2, + /// + /// The table has been fully copied to the new cluster. + /// + [pbr::OriginalName("COMPLETED")] 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. + /// + [pbr::OriginalName("CANCELLED")] Cancelled = 4, + } + + } + #endregion + + } + + } + #endregion + + } + + /// + /// The metadata for the Operation returned by UpdateCluster. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UpdateClusterMetadata : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateClusterMetadata()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminReflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateClusterMetadata() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateClusterMetadata(UpdateClusterMetadata other) : this() { + originalRequest_ = other.originalRequest_ != null ? other.originalRequest_.Clone() : null; + requestTime_ = other.requestTime_ != null ? other.requestTime_.Clone() : null; + finishTime_ = other.finishTime_ != null ? other.finishTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateClusterMetadata Clone() { + return new UpdateClusterMetadata(this); + } + + /// Field number for the "original_request" field. + public const int OriginalRequestFieldNumber = 1; + private global::Google.Cloud.Bigtable.Admin.V2.Cluster originalRequest_; + /// + /// The request that prompted the initiation of this UpdateCluster operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Cluster OriginalRequest { + get { return originalRequest_; } + set { + originalRequest_ = value; + } + } + + /// Field number for the "request_time" field. + public const int RequestTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp requestTime_; + /// + /// The time at which the original request was received. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp RequestTime { + get { return requestTime_; } + set { + requestTime_ = value; + } + } + + /// Field number for the "finish_time" field. + public const int FinishTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp finishTime_; + /// + /// The time at which the operation failed or was completed successfully. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp FinishTime { + get { return finishTime_; } + set { + finishTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateClusterMetadata); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateClusterMetadata other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(OriginalRequest, other.OriginalRequest)) return false; + if (!object.Equals(RequestTime, other.RequestTime)) return false; + if (!object.Equals(FinishTime, other.FinishTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (originalRequest_ != null) hash ^= OriginalRequest.GetHashCode(); + if (requestTime_ != null) hash ^= RequestTime.GetHashCode(); + if (finishTime_ != null) hash ^= FinishTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (originalRequest_ != null) { + output.WriteRawTag(10); + output.WriteMessage(OriginalRequest); + } + if (requestTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(RequestTime); + } + if (finishTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(FinishTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (originalRequest_ != null) { + output.WriteRawTag(10); + output.WriteMessage(OriginalRequest); + } + if (requestTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(RequestTime); + } + if (finishTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(FinishTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (originalRequest_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OriginalRequest); + } + if (requestTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RequestTime); + } + if (finishTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FinishTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateClusterMetadata other) { + if (other == null) { + return; + } + if (other.originalRequest_ != null) { + if (originalRequest_ == null) { + OriginalRequest = new global::Google.Cloud.Bigtable.Admin.V2.Cluster(); + } + OriginalRequest.MergeFrom(other.OriginalRequest); + } + if (other.requestTime_ != null) { + if (requestTime_ == null) { + RequestTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + RequestTime.MergeFrom(other.RequestTime); + } + if (other.finishTime_ != null) { + if (finishTime_ == null) { + FinishTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + FinishTime.MergeFrom(other.FinishTime); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (originalRequest_ == null) { + OriginalRequest = new global::Google.Cloud.Bigtable.Admin.V2.Cluster(); + } + input.ReadMessage(OriginalRequest); + break; + } + case 18: { + if (requestTime_ == null) { + RequestTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(RequestTime); + break; + } + case 26: { + if (finishTime_ == null) { + FinishTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(FinishTime); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (originalRequest_ == null) { + OriginalRequest = new global::Google.Cloud.Bigtable.Admin.V2.Cluster(); + } + input.ReadMessage(OriginalRequest); + break; + } + case 18: { + if (requestTime_ == null) { + RequestTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(RequestTime); + break; + } + case 26: { + if (finishTime_ == null) { + FinishTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(FinishTime); + break; + } + } + } + } + #endif + + } + + /// + /// The metadata for the Operation returned by PartialUpdateCluster. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PartialUpdateClusterMetadata : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PartialUpdateClusterMetadata()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminReflection.Descriptor.MessageTypes[15]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PartialUpdateClusterMetadata() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PartialUpdateClusterMetadata(PartialUpdateClusterMetadata other) : this() { + requestTime_ = other.requestTime_ != null ? other.requestTime_.Clone() : null; + finishTime_ = other.finishTime_ != null ? other.finishTime_.Clone() : null; + originalRequest_ = other.originalRequest_ != null ? other.originalRequest_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PartialUpdateClusterMetadata Clone() { + return new PartialUpdateClusterMetadata(this); + } + + /// Field number for the "request_time" field. + public const int RequestTimeFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Timestamp requestTime_; + /// + /// The time at which the original request was received. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp RequestTime { + get { return requestTime_; } + set { + requestTime_ = value; + } + } + + /// Field number for the "finish_time" field. + public const int FinishTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp finishTime_; + /// + /// The time at which the operation failed or was completed successfully. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp FinishTime { + get { return finishTime_; } + set { + finishTime_ = value; + } + } + + /// Field number for the "original_request" field. + public const int OriginalRequestFieldNumber = 3; + private global::Google.Cloud.Bigtable.Admin.V2.PartialUpdateClusterRequest originalRequest_; + /// + /// The original request for PartialUpdateCluster. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.PartialUpdateClusterRequest OriginalRequest { + get { return originalRequest_; } + set { + originalRequest_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PartialUpdateClusterMetadata); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PartialUpdateClusterMetadata other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RequestTime, other.RequestTime)) return false; + if (!object.Equals(FinishTime, other.FinishTime)) return false; + if (!object.Equals(OriginalRequest, other.OriginalRequest)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (requestTime_ != null) hash ^= RequestTime.GetHashCode(); + if (finishTime_ != null) hash ^= FinishTime.GetHashCode(); + if (originalRequest_ != null) hash ^= OriginalRequest.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (requestTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RequestTime); + } + if (finishTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(FinishTime); + } + if (originalRequest_ != null) { + output.WriteRawTag(26); + output.WriteMessage(OriginalRequest); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (requestTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RequestTime); + } + if (finishTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(FinishTime); + } + if (originalRequest_ != null) { + output.WriteRawTag(26); + output.WriteMessage(OriginalRequest); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (requestTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RequestTime); + } + if (finishTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FinishTime); + } + if (originalRequest_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OriginalRequest); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PartialUpdateClusterMetadata other) { + if (other == null) { + return; + } + if (other.requestTime_ != null) { + if (requestTime_ == null) { + RequestTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + RequestTime.MergeFrom(other.RequestTime); + } + if (other.finishTime_ != null) { + if (finishTime_ == null) { + FinishTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + FinishTime.MergeFrom(other.FinishTime); + } + if (other.originalRequest_ != null) { + if (originalRequest_ == null) { + OriginalRequest = new global::Google.Cloud.Bigtable.Admin.V2.PartialUpdateClusterRequest(); + } + OriginalRequest.MergeFrom(other.OriginalRequest); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (requestTime_ == null) { + RequestTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(RequestTime); + break; + } + case 18: { + if (finishTime_ == null) { + FinishTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(FinishTime); + break; + } + case 26: { + if (originalRequest_ == null) { + OriginalRequest = new global::Google.Cloud.Bigtable.Admin.V2.PartialUpdateClusterRequest(); + } + input.ReadMessage(OriginalRequest); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (requestTime_ == null) { + RequestTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(RequestTime); + break; + } + case 18: { + if (finishTime_ == null) { + FinishTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(FinishTime); + break; + } + case 26: { + if (originalRequest_ == null) { + OriginalRequest = new global::Google.Cloud.Bigtable.Admin.V2.PartialUpdateClusterRequest(); + } + input.ReadMessage(OriginalRequest); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for BigtableInstanceAdmin.PartialUpdateCluster. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PartialUpdateClusterRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PartialUpdateClusterRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminReflection.Descriptor.MessageTypes[16]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PartialUpdateClusterRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PartialUpdateClusterRequest(PartialUpdateClusterRequest other) : this() { + cluster_ = other.cluster_ != null ? other.cluster_.Clone() : null; + updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PartialUpdateClusterRequest Clone() { + return new PartialUpdateClusterRequest(this); + } + + /// Field number for the "cluster" field. + public const int ClusterFieldNumber = 1; + private global::Google.Cloud.Bigtable.Admin.V2.Cluster cluster_; + /// + /// Required. The Cluster which contains the partial updates to be applied, + /// subject to the update_mask. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Cluster Cluster { + get { return cluster_; } + set { + cluster_ = value; + } + } + + /// Field number for the "update_mask" field. + public const int UpdateMaskFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; + /// + /// Required. The subset of Cluster fields which should be replaced. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { + get { return updateMask_; } + set { + updateMask_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PartialUpdateClusterRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PartialUpdateClusterRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Cluster, other.Cluster)) return false; + if (!object.Equals(UpdateMask, other.UpdateMask)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (cluster_ != null) hash ^= Cluster.GetHashCode(); + if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (cluster_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Cluster); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (cluster_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Cluster); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (cluster_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Cluster); + } + if (updateMask_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PartialUpdateClusterRequest other) { + if (other == null) { + return; + } + if (other.cluster_ != null) { + if (cluster_ == null) { + Cluster = new global::Google.Cloud.Bigtable.Admin.V2.Cluster(); + } + Cluster.MergeFrom(other.Cluster); + } + if (other.updateMask_ != null) { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + UpdateMask.MergeFrom(other.UpdateMask); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (cluster_ == null) { + Cluster = new global::Google.Cloud.Bigtable.Admin.V2.Cluster(); + } + input.ReadMessage(Cluster); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (cluster_ == null) { + Cluster = new global::Google.Cloud.Bigtable.Admin.V2.Cluster(); + } + input.ReadMessage(Cluster); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for BigtableInstanceAdmin.CreateAppProfile. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CreateAppProfileRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateAppProfileRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminReflection.Descriptor.MessageTypes[17]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateAppProfileRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateAppProfileRequest(CreateAppProfileRequest other) : this() { + parent_ = other.parent_; + appProfileId_ = other.appProfileId_; + appProfile_ = other.appProfile_ != null ? other.appProfile_.Clone() : null; + ignoreWarnings_ = other.ignoreWarnings_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateAppProfileRequest Clone() { + return new CreateAppProfileRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private 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}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Parent { + get { return parent_; } + set { + parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "app_profile_id" field. + public const int AppProfileIdFieldNumber = 2; + private 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`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AppProfileId { + get { return appProfileId_; } + set { + appProfileId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "app_profile" field. + public const int AppProfileFieldNumber = 3; + private global::Google.Cloud.Bigtable.Admin.V2.AppProfile appProfile_; + /// + /// Required. The app profile to be created. + /// Fields marked `OutputOnly` will be ignored. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.AppProfile AppProfile { + get { return appProfile_; } + set { + appProfile_ = value; + } + } + + /// Field number for the "ignore_warnings" field. + public const int IgnoreWarningsFieldNumber = 4; + private bool ignoreWarnings_; + /// + /// If true, ignore safety checks when creating the app profile. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreWarnings { + get { return ignoreWarnings_; } + set { + ignoreWarnings_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateAppProfileRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateAppProfileRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (AppProfileId != other.AppProfileId) return false; + if (!object.Equals(AppProfile, other.AppProfile)) return false; + if (IgnoreWarnings != other.IgnoreWarnings) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (AppProfileId.Length != 0) hash ^= AppProfileId.GetHashCode(); + if (appProfile_ != null) hash ^= AppProfile.GetHashCode(); + if (IgnoreWarnings != false) hash ^= IgnoreWarnings.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (AppProfileId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(AppProfileId); + } + if (appProfile_ != null) { + output.WriteRawTag(26); + output.WriteMessage(AppProfile); + } + if (IgnoreWarnings != false) { + output.WriteRawTag(32); + output.WriteBool(IgnoreWarnings); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (AppProfileId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(AppProfileId); + } + if (appProfile_ != null) { + output.WriteRawTag(26); + output.WriteMessage(AppProfile); + } + if (IgnoreWarnings != false) { + output.WriteRawTag(32); + output.WriteBool(IgnoreWarnings); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + if (AppProfileId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AppProfileId); + } + if (appProfile_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AppProfile); + } + if (IgnoreWarnings != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateAppProfileRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.AppProfileId.Length != 0) { + AppProfileId = other.AppProfileId; + } + if (other.appProfile_ != null) { + if (appProfile_ == null) { + AppProfile = new global::Google.Cloud.Bigtable.Admin.V2.AppProfile(); + } + AppProfile.MergeFrom(other.AppProfile); + } + if (other.IgnoreWarnings != false) { + IgnoreWarnings = other.IgnoreWarnings; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + AppProfileId = input.ReadString(); + break; + } + case 26: { + if (appProfile_ == null) { + AppProfile = new global::Google.Cloud.Bigtable.Admin.V2.AppProfile(); + } + input.ReadMessage(AppProfile); + break; + } + case 32: { + IgnoreWarnings = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + AppProfileId = input.ReadString(); + break; + } + case 26: { + if (appProfile_ == null) { + AppProfile = new global::Google.Cloud.Bigtable.Admin.V2.AppProfile(); + } + input.ReadMessage(AppProfile); + break; + } + case 32: { + IgnoreWarnings = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for BigtableInstanceAdmin.GetAppProfile. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetAppProfileRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAppProfileRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminReflection.Descriptor.MessageTypes[18]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetAppProfileRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetAppProfileRequest(GetAppProfileRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetAppProfileRequest Clone() { + return new GetAppProfileRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The unique name of the requested app profile. Values are of the + /// form `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetAppProfileRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetAppProfileRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetAppProfileRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for BigtableInstanceAdmin.ListAppProfiles. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListAppProfilesRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListAppProfilesRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminReflection.Descriptor.MessageTypes[19]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListAppProfilesRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListAppProfilesRequest(ListAppProfilesRequest other) : this() { + parent_ = other.parent_; + pageSize_ = other.pageSize_; + pageToken_ = other.pageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListAppProfilesRequest Clone() { + return new ListAppProfilesRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private 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/-`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Parent { + get { return parent_; } + set { + parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "page_size" field. + public const int PageSizeFieldNumber = 3; + private int pageSize_; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PageSize { + get { return pageSize_; } + set { + pageSize_ = value; + } + } + + /// Field number for the "page_token" field. + public const int PageTokenFieldNumber = 2; + private string pageToken_ = ""; + /// + /// The value of `next_page_token` returned by a previous call. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PageToken { + get { return pageToken_; } + set { + pageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListAppProfilesRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListAppProfilesRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (PageSize != other.PageSize) return false; + if (PageToken != other.PageToken) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (PageSize != 0) hash ^= PageSize.GetHashCode(); + if (PageToken.Length != 0) hash ^= PageToken.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (PageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(PageToken); + } + if (PageSize != 0) { + output.WriteRawTag(24); + output.WriteInt32(PageSize); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (PageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(PageToken); + } + if (PageSize != 0) { + output.WriteRawTag(24); + output.WriteInt32(PageSize); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + if (PageSize != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize); + } + if (PageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PageToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListAppProfilesRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.PageSize != 0) { + PageSize = other.PageSize; + } + if (other.PageToken.Length != 0) { + PageToken = other.PageToken; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + PageToken = input.ReadString(); + break; + } + case 24: { + PageSize = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + PageToken = input.ReadString(); + break; + } + case 24: { + PageSize = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + /// + /// Response message for BigtableInstanceAdmin.ListAppProfiles. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListAppProfilesResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListAppProfilesResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminReflection.Descriptor.MessageTypes[20]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListAppProfilesResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListAppProfilesResponse(ListAppProfilesResponse other) : this() { + appProfiles_ = other.appProfiles_.Clone(); + nextPageToken_ = other.nextPageToken_; + failedLocations_ = other.failedLocations_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListAppProfilesResponse Clone() { + return new ListAppProfilesResponse(this); + } + + /// Field number for the "app_profiles" field. + public const int AppProfilesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_appProfiles_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Parser); + private readonly pbc::RepeatedField appProfiles_ = new pbc::RepeatedField(); + /// + /// The list of requested app profiles. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AppProfiles { + get { return appProfiles_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private string nextPageToken_ = ""; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NextPageToken { + get { return nextPageToken_; } + set { + nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "failed_locations" field. + public const int FailedLocationsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_failedLocations_codec + = pb::FieldCodec.ForString(26); + private readonly pbc::RepeatedField failedLocations_ = new pbc::RepeatedField(); + /// + /// 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/<project>/locations/<zone_id>` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField FailedLocations { + get { return failedLocations_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListAppProfilesResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListAppProfilesResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!appProfiles_.Equals(other.appProfiles_)) return false; + if (NextPageToken != other.NextPageToken) return false; + if(!failedLocations_.Equals(other.failedLocations_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= appProfiles_.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); + hash ^= failedLocations_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + appProfiles_.WriteTo(output, _repeated_appProfiles_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + failedLocations_.WriteTo(output, _repeated_failedLocations_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + appProfiles_.WriteTo(ref output, _repeated_appProfiles_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + failedLocations_.WriteTo(ref output, _repeated_failedLocations_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += appProfiles_.CalculateSize(_repeated_appProfiles_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); + } + size += failedLocations_.CalculateSize(_repeated_failedLocations_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListAppProfilesResponse other) { + if (other == null) { + return; + } + appProfiles_.Add(other.appProfiles_); + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; + } + failedLocations_.Add(other.failedLocations_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + appProfiles_.AddEntriesFrom(input, _repeated_appProfiles_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + case 26: { + failedLocations_.AddEntriesFrom(input, _repeated_failedLocations_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + appProfiles_.AddEntriesFrom(ref input, _repeated_appProfiles_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + case 26: { + failedLocations_.AddEntriesFrom(ref input, _repeated_failedLocations_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for BigtableInstanceAdmin.UpdateAppProfile. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UpdateAppProfileRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateAppProfileRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminReflection.Descriptor.MessageTypes[21]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateAppProfileRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateAppProfileRequest(UpdateAppProfileRequest other) : this() { + appProfile_ = other.appProfile_ != null ? other.appProfile_.Clone() : null; + updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; + ignoreWarnings_ = other.ignoreWarnings_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateAppProfileRequest Clone() { + return new UpdateAppProfileRequest(this); + } + + /// Field number for the "app_profile" field. + public const int AppProfileFieldNumber = 1; + private global::Google.Cloud.Bigtable.Admin.V2.AppProfile appProfile_; + /// + /// Required. The app profile which will (partially) replace the current value. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.AppProfile AppProfile { + get { return appProfile_; } + set { + appProfile_ = value; + } + } + + /// Field number for the "update_mask" field. + public const int UpdateMaskFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; + /// + /// Required. The subset of app profile fields which should be replaced. + /// If unset, all fields will be replaced. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { + get { return updateMask_; } + set { + updateMask_ = value; + } + } + + /// Field number for the "ignore_warnings" field. + public const int IgnoreWarningsFieldNumber = 3; + private bool ignoreWarnings_; + /// + /// If true, ignore safety checks when updating the app profile. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreWarnings { + get { return ignoreWarnings_; } + set { + ignoreWarnings_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateAppProfileRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateAppProfileRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AppProfile, other.AppProfile)) return false; + if (!object.Equals(UpdateMask, other.UpdateMask)) return false; + if (IgnoreWarnings != other.IgnoreWarnings) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (appProfile_ != null) hash ^= AppProfile.GetHashCode(); + if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); + if (IgnoreWarnings != false) hash ^= IgnoreWarnings.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (appProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AppProfile); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + if (IgnoreWarnings != false) { + output.WriteRawTag(24); + output.WriteBool(IgnoreWarnings); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (appProfile_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AppProfile); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + if (IgnoreWarnings != false) { + output.WriteRawTag(24); + output.WriteBool(IgnoreWarnings); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (appProfile_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AppProfile); + } + if (updateMask_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); + } + if (IgnoreWarnings != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateAppProfileRequest other) { + if (other == null) { + return; + } + if (other.appProfile_ != null) { + if (appProfile_ == null) { + AppProfile = new global::Google.Cloud.Bigtable.Admin.V2.AppProfile(); + } + AppProfile.MergeFrom(other.AppProfile); + } + if (other.updateMask_ != null) { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + UpdateMask.MergeFrom(other.UpdateMask); + } + if (other.IgnoreWarnings != false) { + IgnoreWarnings = other.IgnoreWarnings; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (appProfile_ == null) { + AppProfile = new global::Google.Cloud.Bigtable.Admin.V2.AppProfile(); + } + input.ReadMessage(AppProfile); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + case 24: { + IgnoreWarnings = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (appProfile_ == null) { + AppProfile = new global::Google.Cloud.Bigtable.Admin.V2.AppProfile(); + } + input.ReadMessage(AppProfile); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + case 24: { + IgnoreWarnings = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for BigtableInstanceAdmin.DeleteAppProfile. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DeleteAppProfileRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteAppProfileRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminReflection.Descriptor.MessageTypes[22]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteAppProfileRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteAppProfileRequest(DeleteAppProfileRequest other) : this() { + name_ = other.name_; + ignoreWarnings_ = other.ignoreWarnings_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteAppProfileRequest Clone() { + return new DeleteAppProfileRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private 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}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ignore_warnings" field. + public const int IgnoreWarningsFieldNumber = 2; + private bool ignoreWarnings_; + /// + /// Required. If true, ignore safety checks when deleting the app profile. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreWarnings { + get { return ignoreWarnings_; } + set { + ignoreWarnings_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteAppProfileRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteAppProfileRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (IgnoreWarnings != other.IgnoreWarnings) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (IgnoreWarnings != false) hash ^= IgnoreWarnings.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (IgnoreWarnings != false) { + output.WriteRawTag(16); + output.WriteBool(IgnoreWarnings); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (IgnoreWarnings != false) { + output.WriteRawTag(16); + output.WriteBool(IgnoreWarnings); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (IgnoreWarnings != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteAppProfileRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.IgnoreWarnings != false) { + IgnoreWarnings = other.IgnoreWarnings; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + IgnoreWarnings = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + IgnoreWarnings = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + /// + /// The metadata for the Operation returned by UpdateAppProfile. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UpdateAppProfileMetadata : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateAppProfileMetadata()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminReflection.Descriptor.MessageTypes[23]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateAppProfileMetadata() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateAppProfileMetadata(UpdateAppProfileMetadata other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateAppProfileMetadata Clone() { + return new UpdateAppProfileMetadata(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateAppProfileMetadata); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateAppProfileMetadata other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateAppProfileMetadata other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + /// + /// Request message for BigtableInstanceAdmin.ListHotTablets. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListHotTabletsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListHotTabletsRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminReflection.Descriptor.MessageTypes[24]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListHotTabletsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListHotTabletsRequest(ListHotTabletsRequest other) : this() { + parent_ = other.parent_; + startTime_ = other.startTime_ != null ? other.startTime_.Clone() : null; + endTime_ = other.endTime_ != null ? other.endTime_.Clone() : null; + pageSize_ = other.pageSize_; + pageToken_ = other.pageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListHotTabletsRequest Clone() { + return new ListHotTabletsRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. The cluster name to list hot tablets. + /// Value is in the following form: + /// `projects/{project}/instances/{instance}/clusters/{cluster}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Parent { + get { return parent_; } + set { + parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp startTime_; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp StartTime { + get { return startTime_; } + set { + startTime_ = value; + } + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp endTime_; + /// + /// The end time to list hot tablets. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + + /// Field number for the "page_size" field. + public const int PageSizeFieldNumber = 4; + private int pageSize_; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PageSize { + get { return pageSize_; } + set { + pageSize_ = value; + } + } + + /// Field number for the "page_token" field. + public const int PageTokenFieldNumber = 5; + private string pageToken_ = ""; + /// + /// The value of `next_page_token` returned by a previous call. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PageToken { + get { return pageToken_; } + set { + pageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListHotTabletsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListHotTabletsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (!object.Equals(StartTime, other.StartTime)) return false; + if (!object.Equals(EndTime, other.EndTime)) return false; + if (PageSize != other.PageSize) return false; + if (PageToken != other.PageToken) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (startTime_ != null) hash ^= StartTime.GetHashCode(); + if (endTime_ != null) hash ^= EndTime.GetHashCode(); + if (PageSize != 0) hash ^= PageSize.GetHashCode(); + if (PageToken.Length != 0) hash ^= PageToken.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (startTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(StartTime); + } + if (endTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(EndTime); + } + if (PageSize != 0) { + output.WriteRawTag(32); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(42); + output.WriteString(PageToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (startTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(StartTime); + } + if (endTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(EndTime); + } + if (PageSize != 0) { + output.WriteRawTag(32); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(42); + output.WriteString(PageToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + if (startTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTime); + } + if (endTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTime); + } + if (PageSize != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize); + } + if (PageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PageToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListHotTabletsRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.startTime_ != null) { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + StartTime.MergeFrom(other.StartTime); + } + if (other.endTime_ != null) { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + EndTime.MergeFrom(other.EndTime); + } + if (other.PageSize != 0) { + PageSize = other.PageSize; + } + if (other.PageToken.Length != 0) { + PageToken = other.PageToken; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 26: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 32: { + PageSize = input.ReadInt32(); + break; + } + case 42: { + PageToken = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 26: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 32: { + PageSize = input.ReadInt32(); + break; + } + case 42: { + PageToken = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Response message for BigtableInstanceAdmin.ListHotTablets. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListHotTabletsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListHotTabletsResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminReflection.Descriptor.MessageTypes[25]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListHotTabletsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListHotTabletsResponse(ListHotTabletsResponse other) : this() { + hotTablets_ = other.hotTablets_.Clone(); + nextPageToken_ = other.nextPageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListHotTabletsResponse Clone() { + return new ListHotTabletsResponse(this); + } + + /// Field number for the "hot_tablets" field. + public const int HotTabletsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_hotTablets_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.Bigtable.Admin.V2.HotTablet.Parser); + private readonly pbc::RepeatedField hotTablets_ = new pbc::RepeatedField(); + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField HotTablets { + get { return hotTablets_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private string nextPageToken_ = ""; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NextPageToken { + get { return nextPageToken_; } + set { + nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListHotTabletsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListHotTabletsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!hotTablets_.Equals(other.hotTablets_)) return false; + if (NextPageToken != other.NextPageToken) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= hotTablets_.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + hotTablets_.WriteTo(output, _repeated_hotTablets_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + hotTablets_.WriteTo(ref output, _repeated_hotTablets_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += hotTablets_.CalculateSize(_repeated_hotTablets_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListHotTabletsResponse other) { + if (other == null) { + return; + } + hotTablets_.Add(other.hotTablets_); + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + hotTablets_.AddEntriesFrom(input, _repeated_hotTablets_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + hotTablets_.AddEntriesFrom(ref input, _repeated_hotTablets_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableInstanceAdminClient.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableInstanceAdminClient.g.cs new file mode 100755 index 000000000000..74fd8e08af93 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableInstanceAdminClient.g.cs @@ -0,0 +1,4500 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +#pragma warning disable CS8981 +using gagr = Google.Api.Gax.ResourceNames; +using gax = Google.Api.Gax; +using gaxgrpc = Google.Api.Gax.Grpc; +using gciv = Google.Cloud.Iam.V1; +using grpccore = Grpc.Core; +using grpcinter = Grpc.Core.Interceptors; +using lro = Google.LongRunning; +using mel = Microsoft.Extensions.Logging; +using proto = Google.Protobuf; +using sc = System.Collections; +using scg = System.Collections.Generic; +using sco = System.Collections.ObjectModel; +using st = System.Threading; +using stt = System.Threading.Tasks; +using sys = System; +using wkt = Google.Protobuf.WellKnownTypes; + +namespace Google.Cloud.Bigtable.Admin.V2 +{ + /// Settings for instances. + public sealed partial class BigtableInstanceAdminSettings : gaxgrpc::ServiceSettingsBase + { + /// Get a new instance of the default . + /// A new instance of the default . + public static BigtableInstanceAdminSettings GetDefault() => new BigtableInstanceAdminSettings(); + + /// + /// Constructs a new object with default settings. + /// + public BigtableInstanceAdminSettings() + { + } + + private BigtableInstanceAdminSettings(BigtableInstanceAdminSettings existing) : base(existing) + { + gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); + CreateInstanceSettings = existing.CreateInstanceSettings; + CreateInstanceOperationsSettings = existing.CreateInstanceOperationsSettings.Clone(); + GetInstanceSettings = existing.GetInstanceSettings; + ListInstancesSettings = existing.ListInstancesSettings; + UpdateInstanceSettings = existing.UpdateInstanceSettings; + PartialUpdateInstanceSettings = existing.PartialUpdateInstanceSettings; + PartialUpdateInstanceOperationsSettings = existing.PartialUpdateInstanceOperationsSettings.Clone(); + DeleteInstanceSettings = existing.DeleteInstanceSettings; + CreateClusterSettings = existing.CreateClusterSettings; + CreateClusterOperationsSettings = existing.CreateClusterOperationsSettings.Clone(); + GetClusterSettings = existing.GetClusterSettings; + ListClustersSettings = existing.ListClustersSettings; + UpdateClusterSettings = existing.UpdateClusterSettings; + UpdateClusterOperationsSettings = existing.UpdateClusterOperationsSettings.Clone(); + PartialUpdateClusterSettings = existing.PartialUpdateClusterSettings; + PartialUpdateClusterOperationsSettings = existing.PartialUpdateClusterOperationsSettings.Clone(); + DeleteClusterSettings = existing.DeleteClusterSettings; + CreateAppProfileSettings = existing.CreateAppProfileSettings; + GetAppProfileSettings = existing.GetAppProfileSettings; + ListAppProfilesSettings = existing.ListAppProfilesSettings; + UpdateAppProfileSettings = existing.UpdateAppProfileSettings; + UpdateAppProfileOperationsSettings = existing.UpdateAppProfileOperationsSettings.Clone(); + DeleteAppProfileSettings = existing.DeleteAppProfileSettings; + GetIamPolicySettings = existing.GetIamPolicySettings; + SetIamPolicySettings = existing.SetIamPolicySettings; + TestIamPermissionsSettings = existing.TestIamPermissionsSettings; + ListHotTabletsSettings = existing.ListHotTabletsSettings; + OnCopy(existing); + } + + partial void OnCopy(BigtableInstanceAdminSettings existing); + + /// + /// for synchronous and asynchronous calls to + /// BigtableInstanceAdminClient.CreateInstance and BigtableInstanceAdminClient.CreateInstanceAsync + /// . + /// + /// + /// + /// This call will not be retried. + /// Timeout: 300 seconds. + /// + /// + public gaxgrpc::CallSettings CreateInstanceSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(300000))); + + /// + /// Long Running Operation settings for calls to BigtableInstanceAdminClient.CreateInstance and + /// BigtableInstanceAdminClient.CreateInstanceAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings CreateInstanceOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// BigtableInstanceAdminClient.GetInstance and BigtableInstanceAdminClient.GetInstanceAsync. + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 2 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: 5 + /// + /// + /// Retriable status codes: , + /// . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings GetInstanceSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 2, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// for synchronous and asynchronous calls to + /// BigtableInstanceAdminClient.ListInstances and BigtableInstanceAdminClient.ListInstancesAsync. + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 2 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: 5 + /// + /// + /// Retriable status codes: , + /// . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings ListInstancesSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 2, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// for synchronous and asynchronous calls to + /// BigtableInstanceAdminClient.UpdateInstance and BigtableInstanceAdminClient.UpdateInstanceAsync + /// . + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 2 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: 5 + /// + /// + /// Retriable status codes: , + /// . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings UpdateInstanceSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 2, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// for synchronous and asynchronous calls to + /// BigtableInstanceAdminClient.PartialUpdateInstance and + /// BigtableInstanceAdminClient.PartialUpdateInstanceAsync. + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 2 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: 5 + /// + /// + /// Retriable status codes: , + /// . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings PartialUpdateInstanceSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 2, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// Long Running Operation settings for calls to BigtableInstanceAdminClient.PartialUpdateInstance and + /// BigtableInstanceAdminClient.PartialUpdateInstanceAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings PartialUpdateInstanceOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// BigtableInstanceAdminClient.DeleteInstance and BigtableInstanceAdminClient.DeleteInstanceAsync + /// . + /// + /// + /// + /// This call will not be retried. + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings DeleteInstanceSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))); + + /// + /// for synchronous and asynchronous calls to + /// BigtableInstanceAdminClient.CreateCluster and BigtableInstanceAdminClient.CreateClusterAsync. + /// + /// + /// + /// This call will not be retried. + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings CreateClusterSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))); + + /// + /// Long Running Operation settings for calls to BigtableInstanceAdminClient.CreateCluster and + /// BigtableInstanceAdminClient.CreateClusterAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings CreateClusterOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// BigtableInstanceAdminClient.GetCluster and BigtableInstanceAdminClient.GetClusterAsync. + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 2 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: 5 + /// + /// + /// Retriable status codes: , + /// . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings GetClusterSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 2, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// for synchronous and asynchronous calls to + /// BigtableInstanceAdminClient.ListClusters and BigtableInstanceAdminClient.ListClustersAsync. + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 2 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: 5 + /// + /// + /// Retriable status codes: , + /// . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings ListClustersSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 2, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// for synchronous and asynchronous calls to + /// BigtableInstanceAdminClient.UpdateCluster and BigtableInstanceAdminClient.UpdateClusterAsync. + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 2 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: 5 + /// + /// + /// Retriable status codes: , + /// . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings UpdateClusterSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 2, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// Long Running Operation settings for calls to BigtableInstanceAdminClient.UpdateCluster and + /// BigtableInstanceAdminClient.UpdateClusterAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings UpdateClusterOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// BigtableInstanceAdminClient.PartialUpdateCluster and + /// BigtableInstanceAdminClient.PartialUpdateClusterAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings PartialUpdateClusterSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// Long Running Operation settings for calls to BigtableInstanceAdminClient.PartialUpdateCluster and + /// BigtableInstanceAdminClient.PartialUpdateClusterAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings PartialUpdateClusterOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// BigtableInstanceAdminClient.DeleteCluster and BigtableInstanceAdminClient.DeleteClusterAsync. + /// + /// + /// + /// This call will not be retried. + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings DeleteClusterSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))); + + /// + /// for synchronous and asynchronous calls to + /// BigtableInstanceAdminClient.CreateAppProfile and BigtableInstanceAdminClient.CreateAppProfileAsync + /// . + /// + /// + /// + /// This call will not be retried. + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings CreateAppProfileSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))); + + /// + /// for synchronous and asynchronous calls to + /// BigtableInstanceAdminClient.GetAppProfile and BigtableInstanceAdminClient.GetAppProfileAsync. + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 2 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: 5 + /// + /// + /// Retriable status codes: , + /// . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings GetAppProfileSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 2, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// for synchronous and asynchronous calls to + /// BigtableInstanceAdminClient.ListAppProfiles and BigtableInstanceAdminClient.ListAppProfilesAsync + /// . + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 2 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: 5 + /// + /// + /// Retriable status codes: , + /// . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings ListAppProfilesSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 2, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// for synchronous and asynchronous calls to + /// BigtableInstanceAdminClient.UpdateAppProfile and BigtableInstanceAdminClient.UpdateAppProfileAsync + /// . + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 2 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: 5 + /// + /// + /// Retriable status codes: , + /// . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings UpdateAppProfileSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 2, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// Long Running Operation settings for calls to BigtableInstanceAdminClient.UpdateAppProfile and + /// BigtableInstanceAdminClient.UpdateAppProfileAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings UpdateAppProfileOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// BigtableInstanceAdminClient.DeleteAppProfile and BigtableInstanceAdminClient.DeleteAppProfileAsync + /// . + /// + /// + /// + /// This call will not be retried. + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings DeleteAppProfileSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))); + + /// + /// for synchronous and asynchronous calls to + /// BigtableInstanceAdminClient.GetIamPolicy and BigtableInstanceAdminClient.GetIamPolicyAsync. + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 2 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: 5 + /// + /// + /// Retriable status codes: , + /// . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings GetIamPolicySettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 2, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// for synchronous and asynchronous calls to + /// BigtableInstanceAdminClient.SetIamPolicy and BigtableInstanceAdminClient.SetIamPolicyAsync. + /// + /// + /// + /// This call will not be retried. + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings SetIamPolicySettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))); + + /// + /// for synchronous and asynchronous calls to + /// BigtableInstanceAdminClient.TestIamPermissions and + /// BigtableInstanceAdminClient.TestIamPermissionsAsync. + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 2 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: 5 + /// + /// + /// Retriable status codes: , + /// . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings TestIamPermissionsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 2, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// for synchronous and asynchronous calls to + /// BigtableInstanceAdminClient.ListHotTablets and BigtableInstanceAdminClient.ListHotTabletsAsync + /// . + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 2 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: 5 + /// + /// + /// Retriable status codes: , + /// . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings ListHotTabletsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 2, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// Creates a deep clone of this object, with all the same property values. + /// A deep clone of this object. + public BigtableInstanceAdminSettings Clone() => new BigtableInstanceAdminSettings(this); + } + + /// + /// Builder class for to provide simple configuration of credentials, + /// endpoint etc. + /// + public sealed partial class BigtableInstanceAdminClientBuilder : gaxgrpc::ClientBuilderBase + { + /// The settings to use for RPCs, or null for the default settings. + public BigtableInstanceAdminSettings Settings { get; set; } + + /// Creates a new builder with default settings. + public BigtableInstanceAdminClientBuilder() : base(BigtableInstanceAdminClient.ServiceMetadata) + { + } + + partial void InterceptBuild(ref BigtableInstanceAdminClient client); + + partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); + + /// Builds the resulting client. + public override BigtableInstanceAdminClient Build() + { + BigtableInstanceAdminClient client = null; + InterceptBuild(ref client); + return client ?? BuildImpl(); + } + + /// Builds the resulting client asynchronously. + public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) + { + stt::Task task = null; + InterceptBuildAsync(cancellationToken, ref task); + return task ?? BuildAsyncImpl(cancellationToken); + } + + private BigtableInstanceAdminClient BuildImpl() + { + Validate(); + grpccore::CallInvoker callInvoker = CreateCallInvoker(); + return BigtableInstanceAdminClient.Create(callInvoker, GetEffectiveSettings(Settings?.Clone()), Logger); + } + + private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) + { + Validate(); + grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); + return BigtableInstanceAdminClient.Create(callInvoker, GetEffectiveSettings(Settings?.Clone()), Logger); + } + + /// Returns the channel pool to use when no other options are specified. + protected override gaxgrpc::ChannelPool GetChannelPool() => BigtableInstanceAdminClient.ChannelPool; + } + + /// BigtableInstanceAdmin client wrapper, for convenient use. + /// + /// Service for creating, configuring, and deleting Cloud Bigtable Instances and + /// Clusters. Provides access to the Instance and Cluster schemas only, not the + /// tables' metadata or data stored in those tables. + /// + public abstract partial class BigtableInstanceAdminClient + { + /// + /// The default endpoint for the BigtableInstanceAdmin service, which is a host of + /// "bigtableadmin.googleapis.com" and a port of 443. + /// + public static string DefaultEndpoint { get; } = "bigtableadmin.googleapis.com:443"; + + /// The default BigtableInstanceAdmin scopes. + /// + /// The default BigtableInstanceAdmin scopes are: + /// + /// 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 + /// + /// + public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] + { + "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", + }); + + /// The service metadata associated with this client type. + public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(BigtableInstanceAdmin.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); + + internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); + + /// + /// Asynchronously creates a using the default credentials, endpoint + /// and settings. To specify custom credentials or other settings, use + /// . + /// + /// + /// The to use while creating the client. + /// + /// The task representing the created . + public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => + new BigtableInstanceAdminClientBuilder().BuildAsync(cancellationToken); + + /// + /// Synchronously creates a using the default credentials, endpoint + /// and settings. To specify custom credentials or other settings, use + /// . + /// + /// The created . + public static BigtableInstanceAdminClient Create() => new BigtableInstanceAdminClientBuilder().Build(); + + /// + /// Creates a which uses the specified call invoker for remote + /// operations. + /// + /// + /// The for remote operations. Must not be null. + /// + /// Optional . + /// Optional . + /// The created . + internal static BigtableInstanceAdminClient Create(grpccore::CallInvoker callInvoker, BigtableInstanceAdminSettings settings = null, mel::ILogger logger = null) + { + gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); + grpcinter::Interceptor interceptor = settings?.Interceptor; + if (interceptor != null) + { + callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); + } + BigtableInstanceAdmin.BigtableInstanceAdminClient grpcClient = new BigtableInstanceAdmin.BigtableInstanceAdminClient(callInvoker); + return new BigtableInstanceAdminClientImpl(grpcClient, settings, logger); + } + + /// + /// Shuts down any channels automatically created by and + /// . Channels which weren't automatically created are not + /// affected. + /// + /// + /// After calling this method, further calls to and + /// will create new channels, which could in turn be shut down + /// by another call to this method. + /// + /// A task representing the asynchronous shutdown operation. + public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); + + /// The underlying gRPC BigtableInstanceAdmin client + public virtual BigtableInstanceAdmin.BigtableInstanceAdminClient GrpcClient => throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateInstance(CreateInstanceRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateInstanceAsync(CreateInstanceRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateInstanceAsync(CreateInstanceRequest request, st::CancellationToken cancellationToken) => + CreateInstanceAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for CreateInstance. + public virtual lro::OperationsClient CreateInstanceOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of CreateInstance. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceCreateInstance(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), CreateInstanceOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// CreateInstance. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceCreateInstanceAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), CreateInstanceOperationsClient, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the project in which to create the new + /// instance. Values are of the form `projects/{project}`. + /// + /// + /// 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`. + /// + /// + /// Required. The instance to create. + /// Fields marked `OutputOnly` must be left blank. + /// + /// + /// 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. + /// Currently, at most four clusters can be specified. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateInstance(string parent, string instanceId, Instance instance, scg::IDictionary clusters, gaxgrpc::CallSettings callSettings = null) => + CreateInstance(new CreateInstanceRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + InstanceId = gax::GaxPreconditions.CheckNotNullOrEmpty(instanceId, nameof(instanceId)), + Instance = gax::GaxPreconditions.CheckNotNull(instance, nameof(instance)), + Clusters = + { + gax::GaxPreconditions.CheckNotNull(clusters, nameof(clusters)), + }, + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the project in which to create the new + /// instance. Values are of the form `projects/{project}`. + /// + /// + /// 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`. + /// + /// + /// Required. The instance to create. + /// Fields marked `OutputOnly` must be left blank. + /// + /// + /// 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. + /// Currently, at most four clusters can be specified. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateInstanceAsync(string parent, string instanceId, Instance instance, scg::IDictionary clusters, gaxgrpc::CallSettings callSettings = null) => + CreateInstanceAsync(new CreateInstanceRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + InstanceId = gax::GaxPreconditions.CheckNotNullOrEmpty(instanceId, nameof(instanceId)), + Instance = gax::GaxPreconditions.CheckNotNull(instance, nameof(instance)), + Clusters = + { + gax::GaxPreconditions.CheckNotNull(clusters, nameof(clusters)), + }, + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the project in which to create the new + /// instance. Values are of the form `projects/{project}`. + /// + /// + /// 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`. + /// + /// + /// Required. The instance to create. + /// Fields marked `OutputOnly` must be left blank. + /// + /// + /// 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. + /// Currently, at most four clusters can be specified. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateInstanceAsync(string parent, string instanceId, Instance instance, scg::IDictionary clusters, st::CancellationToken cancellationToken) => + CreateInstanceAsync(parent, instanceId, instance, clusters, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// 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. + /// + /// + /// Required. The unique name of the project in which to create the new + /// instance. Values are of the form `projects/{project}`. + /// + /// + /// 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`. + /// + /// + /// Required. The instance to create. + /// Fields marked `OutputOnly` must be left blank. + /// + /// + /// 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. + /// Currently, at most four clusters can be specified. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateInstance(gagr::ProjectName parent, string instanceId, Instance instance, scg::IDictionary clusters, gaxgrpc::CallSettings callSettings = null) => + CreateInstance(new CreateInstanceRequest + { + ParentAsProjectName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + InstanceId = gax::GaxPreconditions.CheckNotNullOrEmpty(instanceId, nameof(instanceId)), + Instance = gax::GaxPreconditions.CheckNotNull(instance, nameof(instance)), + Clusters = + { + gax::GaxPreconditions.CheckNotNull(clusters, nameof(clusters)), + }, + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the project in which to create the new + /// instance. Values are of the form `projects/{project}`. + /// + /// + /// 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`. + /// + /// + /// Required. The instance to create. + /// Fields marked `OutputOnly` must be left blank. + /// + /// + /// 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. + /// Currently, at most four clusters can be specified. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateInstanceAsync(gagr::ProjectName parent, string instanceId, Instance instance, scg::IDictionary clusters, gaxgrpc::CallSettings callSettings = null) => + CreateInstanceAsync(new CreateInstanceRequest + { + ParentAsProjectName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + InstanceId = gax::GaxPreconditions.CheckNotNullOrEmpty(instanceId, nameof(instanceId)), + Instance = gax::GaxPreconditions.CheckNotNull(instance, nameof(instance)), + Clusters = + { + gax::GaxPreconditions.CheckNotNull(clusters, nameof(clusters)), + }, + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the project in which to create the new + /// instance. Values are of the form `projects/{project}`. + /// + /// + /// 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`. + /// + /// + /// Required. The instance to create. + /// Fields marked `OutputOnly` must be left blank. + /// + /// + /// 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. + /// Currently, at most four clusters can be specified. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateInstanceAsync(gagr::ProjectName parent, string instanceId, Instance instance, scg::IDictionary clusters, st::CancellationToken cancellationToken) => + CreateInstanceAsync(parent, instanceId, instance, clusters, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets information about an instance. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Instance GetInstance(GetInstanceRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets information about an instance. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetInstanceAsync(GetInstanceRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets information about an instance. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetInstanceAsync(GetInstanceRequest request, st::CancellationToken cancellationToken) => + GetInstanceAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets information about an instance. + /// + /// + /// Required. The unique name of the requested instance. Values are of the form + /// `projects/{project}/instances/{instance}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Instance GetInstance(string name, gaxgrpc::CallSettings callSettings = null) => + GetInstance(new GetInstanceRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets information about an instance. + /// + /// + /// Required. The unique name of the requested instance. Values are of the form + /// `projects/{project}/instances/{instance}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetInstanceAsync(string name, gaxgrpc::CallSettings callSettings = null) => + GetInstanceAsync(new GetInstanceRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets information about an instance. + /// + /// + /// Required. The unique name of the requested instance. Values are of the form + /// `projects/{project}/instances/{instance}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetInstanceAsync(string name, st::CancellationToken cancellationToken) => + GetInstanceAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets information about an instance. + /// + /// + /// Required. The unique name of the requested instance. Values are of the form + /// `projects/{project}/instances/{instance}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Instance GetInstance(InstanceName name, gaxgrpc::CallSettings callSettings = null) => + GetInstance(new GetInstanceRequest + { + InstanceName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets information about an instance. + /// + /// + /// Required. The unique name of the requested instance. Values are of the form + /// `projects/{project}/instances/{instance}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetInstanceAsync(InstanceName name, gaxgrpc::CallSettings callSettings = null) => + GetInstanceAsync(new GetInstanceRequest + { + InstanceName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets information about an instance. + /// + /// + /// Required. The unique name of the requested instance. Values are of the form + /// `projects/{project}/instances/{instance}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetInstanceAsync(InstanceName name, st::CancellationToken cancellationToken) => + GetInstanceAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Lists information about instances in a project. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual ListInstancesResponse ListInstances(ListInstancesRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists information about instances in a project. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task ListInstancesAsync(ListInstancesRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists information about instances in a project. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task ListInstancesAsync(ListInstancesRequest request, st::CancellationToken cancellationToken) => + ListInstancesAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Lists information about instances in a project. + /// + /// + /// Required. The unique name of the project for which a list of instances is + /// requested. Values are of the form `projects/{project}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual ListInstancesResponse ListInstances(string parent, gaxgrpc::CallSettings callSettings = null) => + ListInstances(new ListInstancesRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }, callSettings); + + /// + /// Lists information about instances in a project. + /// + /// + /// Required. The unique name of the project for which a list of instances is + /// requested. Values are of the form `projects/{project}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task ListInstancesAsync(string parent, gaxgrpc::CallSettings callSettings = null) => + ListInstancesAsync(new ListInstancesRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }, callSettings); + + /// + /// Lists information about instances in a project. + /// + /// + /// Required. The unique name of the project for which a list of instances is + /// requested. Values are of the form `projects/{project}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task ListInstancesAsync(string parent, st::CancellationToken cancellationToken) => + ListInstancesAsync(parent, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Lists information about instances in a project. + /// + /// + /// Required. The unique name of the project for which a list of instances is + /// requested. Values are of the form `projects/{project}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual ListInstancesResponse ListInstances(gagr::ProjectName parent, gaxgrpc::CallSettings callSettings = null) => + ListInstances(new ListInstancesRequest + { + ParentAsProjectName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }, callSettings); + + /// + /// Lists information about instances in a project. + /// + /// + /// Required. The unique name of the project for which a list of instances is + /// requested. Values are of the form `projects/{project}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task ListInstancesAsync(gagr::ProjectName parent, gaxgrpc::CallSettings callSettings = null) => + ListInstancesAsync(new ListInstancesRequest + { + ParentAsProjectName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }, callSettings); + + /// + /// Lists information about instances in a project. + /// + /// + /// Required. The unique name of the project for which a list of instances is + /// requested. Values are of the form `projects/{project}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task ListInstancesAsync(gagr::ProjectName parent, st::CancellationToken cancellationToken) => + ListInstancesAsync(parent, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Instance UpdateInstance(Instance request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task UpdateInstanceAsync(Instance request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task UpdateInstanceAsync(Instance request, st::CancellationToken cancellationToken) => + UpdateInstanceAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation PartialUpdateInstance(PartialUpdateInstanceRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> PartialUpdateInstanceAsync(PartialUpdateInstanceRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> PartialUpdateInstanceAsync(PartialUpdateInstanceRequest request, st::CancellationToken cancellationToken) => + PartialUpdateInstanceAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for PartialUpdateInstance. + public virtual lro::OperationsClient PartialUpdateInstanceOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of PartialUpdateInstance + /// . + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOncePartialUpdateInstance(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), PartialUpdateInstanceOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// PartialUpdateInstance. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOncePartialUpdateInstanceAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), PartialUpdateInstanceOperationsClient, callSettings); + + /// + /// 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. + /// + /// + /// Required. The Instance which will (partially) replace the current value. + /// + /// + /// Required. The subset of Instance fields which should be replaced. + /// Must be explicitly set. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation PartialUpdateInstance(Instance instance, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + PartialUpdateInstance(new PartialUpdateInstanceRequest + { + Instance = gax::GaxPreconditions.CheckNotNull(instance, nameof(instance)), + UpdateMask = gax::GaxPreconditions.CheckNotNull(updateMask, nameof(updateMask)), + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The Instance which will (partially) replace the current value. + /// + /// + /// Required. The subset of Instance fields which should be replaced. + /// Must be explicitly set. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> PartialUpdateInstanceAsync(Instance instance, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + PartialUpdateInstanceAsync(new PartialUpdateInstanceRequest + { + Instance = gax::GaxPreconditions.CheckNotNull(instance, nameof(instance)), + UpdateMask = gax::GaxPreconditions.CheckNotNull(updateMask, nameof(updateMask)), + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The Instance which will (partially) replace the current value. + /// + /// + /// Required. The subset of Instance fields which should be replaced. + /// Must be explicitly set. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> PartialUpdateInstanceAsync(Instance instance, wkt::FieldMask updateMask, st::CancellationToken cancellationToken) => + PartialUpdateInstanceAsync(instance, updateMask, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Delete an instance from a project. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteInstance(DeleteInstanceRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Delete an instance from a project. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteInstanceAsync(DeleteInstanceRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Delete an instance from a project. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteInstanceAsync(DeleteInstanceRequest request, st::CancellationToken cancellationToken) => + DeleteInstanceAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Delete an instance from a project. + /// + /// + /// Required. The unique name of the instance to be deleted. + /// Values are of the form `projects/{project}/instances/{instance}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteInstance(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteInstance(new DeleteInstanceRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Delete an instance from a project. + /// + /// + /// Required. The unique name of the instance to be deleted. + /// Values are of the form `projects/{project}/instances/{instance}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteInstanceAsync(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteInstanceAsync(new DeleteInstanceRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Delete an instance from a project. + /// + /// + /// Required. The unique name of the instance to be deleted. + /// Values are of the form `projects/{project}/instances/{instance}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteInstanceAsync(string name, st::CancellationToken cancellationToken) => + DeleteInstanceAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Delete an instance from a project. + /// + /// + /// Required. The unique name of the instance to be deleted. + /// Values are of the form `projects/{project}/instances/{instance}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteInstance(InstanceName name, gaxgrpc::CallSettings callSettings = null) => + DeleteInstance(new DeleteInstanceRequest + { + InstanceName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Delete an instance from a project. + /// + /// + /// Required. The unique name of the instance to be deleted. + /// Values are of the form `projects/{project}/instances/{instance}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteInstanceAsync(InstanceName name, gaxgrpc::CallSettings callSettings = null) => + DeleteInstanceAsync(new DeleteInstanceRequest + { + InstanceName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Delete an instance from a project. + /// + /// + /// Required. The unique name of the instance to be deleted. + /// Values are of the form `projects/{project}/instances/{instance}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteInstanceAsync(InstanceName name, st::CancellationToken cancellationToken) => + DeleteInstanceAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateCluster(CreateClusterRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateClusterAsync(CreateClusterRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateClusterAsync(CreateClusterRequest request, st::CancellationToken cancellationToken) => + CreateClusterAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for CreateCluster. + public virtual lro::OperationsClient CreateClusterOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of CreateCluster. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceCreateCluster(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), CreateClusterOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// CreateCluster. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceCreateClusterAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), CreateClusterOperationsClient, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the instance in which to create the new + /// cluster. Values are of the form `projects/{project}/instances/{instance}`. + /// + /// + /// 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`. + /// + /// + /// Required. The cluster to be created. + /// Fields marked `OutputOnly` must be left blank. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateCluster(string parent, string clusterId, Cluster cluster, gaxgrpc::CallSettings callSettings = null) => + CreateCluster(new CreateClusterRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + ClusterId = gax::GaxPreconditions.CheckNotNullOrEmpty(clusterId, nameof(clusterId)), + Cluster = gax::GaxPreconditions.CheckNotNull(cluster, nameof(cluster)), + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the instance in which to create the new + /// cluster. Values are of the form `projects/{project}/instances/{instance}`. + /// + /// + /// 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`. + /// + /// + /// Required. The cluster to be created. + /// Fields marked `OutputOnly` must be left blank. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateClusterAsync(string parent, string clusterId, Cluster cluster, gaxgrpc::CallSettings callSettings = null) => + CreateClusterAsync(new CreateClusterRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + ClusterId = gax::GaxPreconditions.CheckNotNullOrEmpty(clusterId, nameof(clusterId)), + Cluster = gax::GaxPreconditions.CheckNotNull(cluster, nameof(cluster)), + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the instance in which to create the new + /// cluster. Values are of the form `projects/{project}/instances/{instance}`. + /// + /// + /// 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`. + /// + /// + /// Required. The cluster to be created. + /// Fields marked `OutputOnly` must be left blank. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateClusterAsync(string parent, string clusterId, Cluster cluster, st::CancellationToken cancellationToken) => + CreateClusterAsync(parent, clusterId, cluster, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// 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. + /// + /// + /// Required. The unique name of the instance in which to create the new + /// cluster. Values are of the form `projects/{project}/instances/{instance}`. + /// + /// + /// 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`. + /// + /// + /// Required. The cluster to be created. + /// Fields marked `OutputOnly` must be left blank. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateCluster(InstanceName parent, string clusterId, Cluster cluster, gaxgrpc::CallSettings callSettings = null) => + CreateCluster(new CreateClusterRequest + { + ParentAsInstanceName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + ClusterId = gax::GaxPreconditions.CheckNotNullOrEmpty(clusterId, nameof(clusterId)), + Cluster = gax::GaxPreconditions.CheckNotNull(cluster, nameof(cluster)), + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the instance in which to create the new + /// cluster. Values are of the form `projects/{project}/instances/{instance}`. + /// + /// + /// 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`. + /// + /// + /// Required. The cluster to be created. + /// Fields marked `OutputOnly` must be left blank. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateClusterAsync(InstanceName parent, string clusterId, Cluster cluster, gaxgrpc::CallSettings callSettings = null) => + CreateClusterAsync(new CreateClusterRequest + { + ParentAsInstanceName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + ClusterId = gax::GaxPreconditions.CheckNotNullOrEmpty(clusterId, nameof(clusterId)), + Cluster = gax::GaxPreconditions.CheckNotNull(cluster, nameof(cluster)), + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the instance in which to create the new + /// cluster. Values are of the form `projects/{project}/instances/{instance}`. + /// + /// + /// 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`. + /// + /// + /// Required. The cluster to be created. + /// Fields marked `OutputOnly` must be left blank. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateClusterAsync(InstanceName parent, string clusterId, Cluster cluster, st::CancellationToken cancellationToken) => + CreateClusterAsync(parent, clusterId, cluster, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets information about a cluster. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Cluster GetCluster(GetClusterRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets information about a cluster. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetClusterAsync(GetClusterRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets information about a cluster. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetClusterAsync(GetClusterRequest request, st::CancellationToken cancellationToken) => + GetClusterAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets information about a cluster. + /// + /// + /// Required. The unique name of the requested cluster. Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{cluster}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Cluster GetCluster(string name, gaxgrpc::CallSettings callSettings = null) => + GetCluster(new GetClusterRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets information about a cluster. + /// + /// + /// Required. The unique name of the requested cluster. Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{cluster}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetClusterAsync(string name, gaxgrpc::CallSettings callSettings = null) => + GetClusterAsync(new GetClusterRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets information about a cluster. + /// + /// + /// Required. The unique name of the requested cluster. Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{cluster}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetClusterAsync(string name, st::CancellationToken cancellationToken) => + GetClusterAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets information about a cluster. + /// + /// + /// Required. The unique name of the requested cluster. Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{cluster}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Cluster GetCluster(ClusterName name, gaxgrpc::CallSettings callSettings = null) => + GetCluster(new GetClusterRequest + { + ClusterName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets information about a cluster. + /// + /// + /// Required. The unique name of the requested cluster. Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{cluster}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetClusterAsync(ClusterName name, gaxgrpc::CallSettings callSettings = null) => + GetClusterAsync(new GetClusterRequest + { + ClusterName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets information about a cluster. + /// + /// + /// Required. The unique name of the requested cluster. Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{cluster}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetClusterAsync(ClusterName name, st::CancellationToken cancellationToken) => + GetClusterAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Lists information about clusters in an instance. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual ListClustersResponse ListClusters(ListClustersRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists information about clusters in an instance. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task ListClustersAsync(ListClustersRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists information about clusters in an instance. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task ListClustersAsync(ListClustersRequest request, st::CancellationToken cancellationToken) => + ListClustersAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Lists information about clusters in an instance. + /// + /// + /// 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/-`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual ListClustersResponse ListClusters(string parent, gaxgrpc::CallSettings callSettings = null) => + ListClusters(new ListClustersRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }, callSettings); + + /// + /// Lists information about clusters in an instance. + /// + /// + /// 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/-`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task ListClustersAsync(string parent, gaxgrpc::CallSettings callSettings = null) => + ListClustersAsync(new ListClustersRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }, callSettings); + + /// + /// Lists information about clusters in an instance. + /// + /// + /// 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/-`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task ListClustersAsync(string parent, st::CancellationToken cancellationToken) => + ListClustersAsync(parent, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Lists information about clusters in an instance. + /// + /// + /// 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/-`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual ListClustersResponse ListClusters(InstanceName parent, gaxgrpc::CallSettings callSettings = null) => + ListClusters(new ListClustersRequest + { + ParentAsInstanceName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }, callSettings); + + /// + /// Lists information about clusters in an instance. + /// + /// + /// 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/-`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task ListClustersAsync(InstanceName parent, gaxgrpc::CallSettings callSettings = null) => + ListClustersAsync(new ListClustersRequest + { + ParentAsInstanceName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }, callSettings); + + /// + /// Lists information about clusters in an instance. + /// + /// + /// 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/-`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task ListClustersAsync(InstanceName parent, st::CancellationToken cancellationToken) => + ListClustersAsync(parent, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation UpdateCluster(Cluster request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> UpdateClusterAsync(Cluster request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> UpdateClusterAsync(Cluster request, st::CancellationToken cancellationToken) => + UpdateClusterAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for UpdateCluster. + public virtual lro::OperationsClient UpdateClusterOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of UpdateCluster. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceUpdateCluster(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), UpdateClusterOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// UpdateCluster. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceUpdateClusterAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), UpdateClusterOperationsClient, callSettings); + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation PartialUpdateCluster(PartialUpdateClusterRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> PartialUpdateClusterAsync(PartialUpdateClusterRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> PartialUpdateClusterAsync(PartialUpdateClusterRequest request, st::CancellationToken cancellationToken) => + PartialUpdateClusterAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for PartialUpdateCluster. + public virtual lro::OperationsClient PartialUpdateClusterOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of PartialUpdateCluster + /// . + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOncePartialUpdateCluster(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), PartialUpdateClusterOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// PartialUpdateCluster. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOncePartialUpdateClusterAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), PartialUpdateClusterOperationsClient, callSettings); + + /// + /// 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. + /// + /// + /// Required. The Cluster which contains the partial updates to be applied, + /// subject to the update_mask. + /// + /// + /// Required. The subset of Cluster fields which should be replaced. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation PartialUpdateCluster(Cluster cluster, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + PartialUpdateCluster(new PartialUpdateClusterRequest + { + Cluster = gax::GaxPreconditions.CheckNotNull(cluster, nameof(cluster)), + UpdateMask = gax::GaxPreconditions.CheckNotNull(updateMask, nameof(updateMask)), + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The Cluster which contains the partial updates to be applied, + /// subject to the update_mask. + /// + /// + /// Required. The subset of Cluster fields which should be replaced. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> PartialUpdateClusterAsync(Cluster cluster, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + PartialUpdateClusterAsync(new PartialUpdateClusterRequest + { + Cluster = gax::GaxPreconditions.CheckNotNull(cluster, nameof(cluster)), + UpdateMask = gax::GaxPreconditions.CheckNotNull(updateMask, nameof(updateMask)), + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The Cluster which contains the partial updates to be applied, + /// subject to the update_mask. + /// + /// + /// Required. The subset of Cluster fields which should be replaced. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> PartialUpdateClusterAsync(Cluster cluster, wkt::FieldMask updateMask, st::CancellationToken cancellationToken) => + PartialUpdateClusterAsync(cluster, updateMask, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Deletes a cluster from an instance. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteCluster(DeleteClusterRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Deletes a cluster from an instance. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteClusterAsync(DeleteClusterRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Deletes a cluster from an instance. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteClusterAsync(DeleteClusterRequest request, st::CancellationToken cancellationToken) => + DeleteClusterAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Deletes a cluster from an instance. + /// + /// + /// Required. The unique name of the cluster to be deleted. Values are of the + /// form `projects/{project}/instances/{instance}/clusters/{cluster}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteCluster(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteCluster(new DeleteClusterRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Deletes a cluster from an instance. + /// + /// + /// Required. The unique name of the cluster to be deleted. Values are of the + /// form `projects/{project}/instances/{instance}/clusters/{cluster}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteClusterAsync(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteClusterAsync(new DeleteClusterRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Deletes a cluster from an instance. + /// + /// + /// Required. The unique name of the cluster to be deleted. Values are of the + /// form `projects/{project}/instances/{instance}/clusters/{cluster}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteClusterAsync(string name, st::CancellationToken cancellationToken) => + DeleteClusterAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Deletes a cluster from an instance. + /// + /// + /// Required. The unique name of the cluster to be deleted. Values are of the + /// form `projects/{project}/instances/{instance}/clusters/{cluster}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteCluster(ClusterName name, gaxgrpc::CallSettings callSettings = null) => + DeleteCluster(new DeleteClusterRequest + { + ClusterName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Deletes a cluster from an instance. + /// + /// + /// Required. The unique name of the cluster to be deleted. Values are of the + /// form `projects/{project}/instances/{instance}/clusters/{cluster}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteClusterAsync(ClusterName name, gaxgrpc::CallSettings callSettings = null) => + DeleteClusterAsync(new DeleteClusterRequest + { + ClusterName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Deletes a cluster from an instance. + /// + /// + /// Required. The unique name of the cluster to be deleted. Values are of the + /// form `projects/{project}/instances/{instance}/clusters/{cluster}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteClusterAsync(ClusterName name, st::CancellationToken cancellationToken) => + DeleteClusterAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates an app profile within an instance. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual AppProfile CreateAppProfile(CreateAppProfileRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Creates an app profile within an instance. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task CreateAppProfileAsync(CreateAppProfileRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Creates an app profile within an instance. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task CreateAppProfileAsync(CreateAppProfileRequest request, st::CancellationToken cancellationToken) => + CreateAppProfileAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates an app profile within an instance. + /// + /// + /// Required. The unique name of the instance in which to create the new app + /// profile. Values are of the form `projects/{project}/instances/{instance}`. + /// + /// + /// 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`. + /// + /// + /// Required. The app profile to be created. + /// Fields marked `OutputOnly` will be ignored. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual AppProfile CreateAppProfile(string parent, string appProfileId, AppProfile appProfile, gaxgrpc::CallSettings callSettings = null) => + CreateAppProfile(new CreateAppProfileRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + AppProfileId = gax::GaxPreconditions.CheckNotNullOrEmpty(appProfileId, nameof(appProfileId)), + AppProfile = gax::GaxPreconditions.CheckNotNull(appProfile, nameof(appProfile)), + }, callSettings); + + /// + /// Creates an app profile within an instance. + /// + /// + /// Required. The unique name of the instance in which to create the new app + /// profile. Values are of the form `projects/{project}/instances/{instance}`. + /// + /// + /// 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`. + /// + /// + /// Required. The app profile to be created. + /// Fields marked `OutputOnly` will be ignored. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task CreateAppProfileAsync(string parent, string appProfileId, AppProfile appProfile, gaxgrpc::CallSettings callSettings = null) => + CreateAppProfileAsync(new CreateAppProfileRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + AppProfileId = gax::GaxPreconditions.CheckNotNullOrEmpty(appProfileId, nameof(appProfileId)), + AppProfile = gax::GaxPreconditions.CheckNotNull(appProfile, nameof(appProfile)), + }, callSettings); + + /// + /// Creates an app profile within an instance. + /// + /// + /// Required. The unique name of the instance in which to create the new app + /// profile. Values are of the form `projects/{project}/instances/{instance}`. + /// + /// + /// 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`. + /// + /// + /// Required. The app profile to be created. + /// Fields marked `OutputOnly` will be ignored. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task CreateAppProfileAsync(string parent, string appProfileId, AppProfile appProfile, st::CancellationToken cancellationToken) => + CreateAppProfileAsync(parent, appProfileId, appProfile, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates an app profile within an instance. + /// + /// + /// Required. The unique name of the instance in which to create the new app + /// profile. Values are of the form `projects/{project}/instances/{instance}`. + /// + /// + /// 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`. + /// + /// + /// Required. The app profile to be created. + /// Fields marked `OutputOnly` will be ignored. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual AppProfile CreateAppProfile(InstanceName parent, string appProfileId, AppProfile appProfile, gaxgrpc::CallSettings callSettings = null) => + CreateAppProfile(new CreateAppProfileRequest + { + ParentAsInstanceName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + AppProfileId = gax::GaxPreconditions.CheckNotNullOrEmpty(appProfileId, nameof(appProfileId)), + AppProfile = gax::GaxPreconditions.CheckNotNull(appProfile, nameof(appProfile)), + }, callSettings); + + /// + /// Creates an app profile within an instance. + /// + /// + /// Required. The unique name of the instance in which to create the new app + /// profile. Values are of the form `projects/{project}/instances/{instance}`. + /// + /// + /// 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`. + /// + /// + /// Required. The app profile to be created. + /// Fields marked `OutputOnly` will be ignored. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task CreateAppProfileAsync(InstanceName parent, string appProfileId, AppProfile appProfile, gaxgrpc::CallSettings callSettings = null) => + CreateAppProfileAsync(new CreateAppProfileRequest + { + ParentAsInstanceName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + AppProfileId = gax::GaxPreconditions.CheckNotNullOrEmpty(appProfileId, nameof(appProfileId)), + AppProfile = gax::GaxPreconditions.CheckNotNull(appProfile, nameof(appProfile)), + }, callSettings); + + /// + /// Creates an app profile within an instance. + /// + /// + /// Required. The unique name of the instance in which to create the new app + /// profile. Values are of the form `projects/{project}/instances/{instance}`. + /// + /// + /// 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`. + /// + /// + /// Required. The app profile to be created. + /// Fields marked `OutputOnly` will be ignored. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task CreateAppProfileAsync(InstanceName parent, string appProfileId, AppProfile appProfile, st::CancellationToken cancellationToken) => + CreateAppProfileAsync(parent, appProfileId, appProfile, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets information about an app profile. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual AppProfile GetAppProfile(GetAppProfileRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets information about an app profile. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetAppProfileAsync(GetAppProfileRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets information about an app profile. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetAppProfileAsync(GetAppProfileRequest request, st::CancellationToken cancellationToken) => + GetAppProfileAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets information about an app profile. + /// + /// + /// Required. The unique name of the requested app profile. Values are of the + /// form `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual AppProfile GetAppProfile(string name, gaxgrpc::CallSettings callSettings = null) => + GetAppProfile(new GetAppProfileRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets information about an app profile. + /// + /// + /// Required. The unique name of the requested app profile. Values are of the + /// form `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetAppProfileAsync(string name, gaxgrpc::CallSettings callSettings = null) => + GetAppProfileAsync(new GetAppProfileRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets information about an app profile. + /// + /// + /// Required. The unique name of the requested app profile. Values are of the + /// form `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetAppProfileAsync(string name, st::CancellationToken cancellationToken) => + GetAppProfileAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets information about an app profile. + /// + /// + /// Required. The unique name of the requested app profile. Values are of the + /// form `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual AppProfile GetAppProfile(AppProfileName name, gaxgrpc::CallSettings callSettings = null) => + GetAppProfile(new GetAppProfileRequest + { + AppProfileName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets information about an app profile. + /// + /// + /// Required. The unique name of the requested app profile. Values are of the + /// form `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetAppProfileAsync(AppProfileName name, gaxgrpc::CallSettings callSettings = null) => + GetAppProfileAsync(new GetAppProfileRequest + { + AppProfileName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets information about an app profile. + /// + /// + /// Required. The unique name of the requested app profile. Values are of the + /// form `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetAppProfileAsync(AppProfileName name, st::CancellationToken cancellationToken) => + GetAppProfileAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Lists information about app profiles in an instance. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListAppProfiles(ListAppProfilesRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists information about app profiles in an instance. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListAppProfilesAsync(ListAppProfilesRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists information about app profiles in an instance. + /// + /// + /// 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/-`. + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListAppProfiles(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListAppProfilesRequest request = new ListAppProfilesRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListAppProfiles(request, callSettings); + } + + /// + /// Lists information about app profiles in an instance. + /// + /// + /// 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/-`. + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListAppProfilesAsync(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListAppProfilesRequest request = new ListAppProfilesRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListAppProfilesAsync(request, callSettings); + } + + /// + /// Lists information about app profiles in an instance. + /// + /// + /// 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/-`. + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListAppProfiles(InstanceName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListAppProfilesRequest request = new ListAppProfilesRequest + { + ParentAsInstanceName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListAppProfiles(request, callSettings); + } + + /// + /// Lists information about app profiles in an instance. + /// + /// + /// 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/-`. + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListAppProfilesAsync(InstanceName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListAppProfilesRequest request = new ListAppProfilesRequest + { + ParentAsInstanceName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListAppProfilesAsync(request, callSettings); + } + + /// + /// Updates an app profile within an instance. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation UpdateAppProfile(UpdateAppProfileRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Updates an app profile within an instance. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> UpdateAppProfileAsync(UpdateAppProfileRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Updates an app profile within an instance. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> UpdateAppProfileAsync(UpdateAppProfileRequest request, st::CancellationToken cancellationToken) => + UpdateAppProfileAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for UpdateAppProfile. + public virtual lro::OperationsClient UpdateAppProfileOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of UpdateAppProfile. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceUpdateAppProfile(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), UpdateAppProfileOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// UpdateAppProfile. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceUpdateAppProfileAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), UpdateAppProfileOperationsClient, callSettings); + + /// + /// Updates an app profile within an instance. + /// + /// + /// Required. The app profile which will (partially) replace the current value. + /// + /// + /// Required. The subset of app profile fields which should be replaced. + /// If unset, all fields will be replaced. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation UpdateAppProfile(AppProfile appProfile, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateAppProfile(new UpdateAppProfileRequest + { + AppProfile = gax::GaxPreconditions.CheckNotNull(appProfile, nameof(appProfile)), + UpdateMask = gax::GaxPreconditions.CheckNotNull(updateMask, nameof(updateMask)), + }, callSettings); + + /// + /// Updates an app profile within an instance. + /// + /// + /// Required. The app profile which will (partially) replace the current value. + /// + /// + /// Required. The subset of app profile fields which should be replaced. + /// If unset, all fields will be replaced. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> UpdateAppProfileAsync(AppProfile appProfile, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateAppProfileAsync(new UpdateAppProfileRequest + { + AppProfile = gax::GaxPreconditions.CheckNotNull(appProfile, nameof(appProfile)), + UpdateMask = gax::GaxPreconditions.CheckNotNull(updateMask, nameof(updateMask)), + }, callSettings); + + /// + /// Updates an app profile within an instance. + /// + /// + /// Required. The app profile which will (partially) replace the current value. + /// + /// + /// Required. The subset of app profile fields which should be replaced. + /// If unset, all fields will be replaced. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> UpdateAppProfileAsync(AppProfile appProfile, wkt::FieldMask updateMask, st::CancellationToken cancellationToken) => + UpdateAppProfileAsync(appProfile, updateMask, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Deletes an app profile from an instance. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteAppProfile(DeleteAppProfileRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Deletes an app profile from an instance. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteAppProfileAsync(DeleteAppProfileRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Deletes an app profile from an instance. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteAppProfileAsync(DeleteAppProfileRequest request, st::CancellationToken cancellationToken) => + DeleteAppProfileAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Deletes an app profile from an instance. + /// + /// + /// Required. The unique name of the app profile to be deleted. Values are of + /// the form + /// `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteAppProfile(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteAppProfile(new DeleteAppProfileRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Deletes an app profile from an instance. + /// + /// + /// Required. The unique name of the app profile to be deleted. Values are of + /// the form + /// `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteAppProfileAsync(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteAppProfileAsync(new DeleteAppProfileRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Deletes an app profile from an instance. + /// + /// + /// Required. The unique name of the app profile to be deleted. Values are of + /// the form + /// `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteAppProfileAsync(string name, st::CancellationToken cancellationToken) => + DeleteAppProfileAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Deletes an app profile from an instance. + /// + /// + /// Required. The unique name of the app profile to be deleted. Values are of + /// the form + /// `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteAppProfile(AppProfileName name, gaxgrpc::CallSettings callSettings = null) => + DeleteAppProfile(new DeleteAppProfileRequest + { + AppProfileName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Deletes an app profile from an instance. + /// + /// + /// Required. The unique name of the app profile to be deleted. Values are of + /// the form + /// `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteAppProfileAsync(AppProfileName name, gaxgrpc::CallSettings callSettings = null) => + DeleteAppProfileAsync(new DeleteAppProfileRequest + { + AppProfileName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Deletes an app profile from an instance. + /// + /// + /// Required. The unique name of the app profile to be deleted. Values are of + /// the form + /// `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteAppProfileAsync(AppProfileName name, st::CancellationToken cancellationToken) => + DeleteAppProfileAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual gciv::Policy GetIamPolicy(gciv::GetIamPolicyRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetIamPolicyAsync(gciv::GetIamPolicyRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetIamPolicyAsync(gciv::GetIamPolicyRequest request, st::CancellationToken cancellationToken) => + GetIamPolicyAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets the access control policy for an instance resource. Returns an empty + /// policy if an instance exists but does not have a policy set. + /// + /// + /// REQUIRED: The resource for which the policy is being requested. + /// See the operation documentation for the appropriate value for this field. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual gciv::Policy GetIamPolicy(string resource, gaxgrpc::CallSettings callSettings = null) => + GetIamPolicy(new gciv::GetIamPolicyRequest + { + Resource = gax::GaxPreconditions.CheckNotNullOrEmpty(resource, nameof(resource)), + }, callSettings); + + /// + /// Gets the access control policy for an instance resource. Returns an empty + /// policy if an instance exists but does not have a policy set. + /// + /// + /// REQUIRED: The resource for which the policy is being requested. + /// See the operation documentation for the appropriate value for this field. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetIamPolicyAsync(string resource, gaxgrpc::CallSettings callSettings = null) => + GetIamPolicyAsync(new gciv::GetIamPolicyRequest + { + Resource = gax::GaxPreconditions.CheckNotNullOrEmpty(resource, nameof(resource)), + }, callSettings); + + /// + /// Gets the access control policy for an instance resource. Returns an empty + /// policy if an instance exists but does not have a policy set. + /// + /// + /// REQUIRED: The resource for which the policy is being requested. + /// See the operation documentation for the appropriate value for this field. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetIamPolicyAsync(string resource, st::CancellationToken cancellationToken) => + GetIamPolicyAsync(resource, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets the access control policy for an instance resource. Returns an empty + /// policy if an instance exists but does not have a policy set. + /// + /// + /// REQUIRED: The resource for which the policy is being requested. + /// See the operation documentation for the appropriate value for this field. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual gciv::Policy GetIamPolicy(gax::IResourceName resource, gaxgrpc::CallSettings callSettings = null) => + GetIamPolicy(new gciv::GetIamPolicyRequest + { + ResourceAsResourceName = gax::GaxPreconditions.CheckNotNull(resource, nameof(resource)), + }, callSettings); + + /// + /// Gets the access control policy for an instance resource. Returns an empty + /// policy if an instance exists but does not have a policy set. + /// + /// + /// REQUIRED: The resource for which the policy is being requested. + /// See the operation documentation for the appropriate value for this field. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetIamPolicyAsync(gax::IResourceName resource, gaxgrpc::CallSettings callSettings = null) => + GetIamPolicyAsync(new gciv::GetIamPolicyRequest + { + ResourceAsResourceName = gax::GaxPreconditions.CheckNotNull(resource, nameof(resource)), + }, callSettings); + + /// + /// Gets the access control policy for an instance resource. Returns an empty + /// policy if an instance exists but does not have a policy set. + /// + /// + /// REQUIRED: The resource for which the policy is being requested. + /// See the operation documentation for the appropriate value for this field. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetIamPolicyAsync(gax::IResourceName resource, st::CancellationToken cancellationToken) => + GetIamPolicyAsync(resource, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Sets the access control policy on an instance resource. Replaces any + /// existing policy. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual gciv::Policy SetIamPolicy(gciv::SetIamPolicyRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Sets the access control policy on an instance resource. Replaces any + /// existing policy. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task SetIamPolicyAsync(gciv::SetIamPolicyRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Sets the access control policy on an instance resource. Replaces any + /// existing policy. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task SetIamPolicyAsync(gciv::SetIamPolicyRequest request, st::CancellationToken cancellationToken) => + SetIamPolicyAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Sets the access control policy on an instance resource. Replaces any + /// existing policy. + /// + /// + /// REQUIRED: The resource for which the policy is being specified. + /// See the operation documentation for the appropriate value for this field. + /// + /// + /// REQUIRED: The complete policy to be applied to the `resource`. The size of + /// the policy is limited to a few 10s of KB. An empty policy is a + /// valid policy but certain Cloud Platform services (such as Projects) + /// might reject them. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual gciv::Policy SetIamPolicy(string resource, gciv::Policy policy, gaxgrpc::CallSettings callSettings = null) => + SetIamPolicy(new gciv::SetIamPolicyRequest + { + Resource = gax::GaxPreconditions.CheckNotNullOrEmpty(resource, nameof(resource)), + Policy = gax::GaxPreconditions.CheckNotNull(policy, nameof(policy)), + }, callSettings); + + /// + /// Sets the access control policy on an instance resource. Replaces any + /// existing policy. + /// + /// + /// REQUIRED: The resource for which the policy is being specified. + /// See the operation documentation for the appropriate value for this field. + /// + /// + /// REQUIRED: The complete policy to be applied to the `resource`. The size of + /// the policy is limited to a few 10s of KB. An empty policy is a + /// valid policy but certain Cloud Platform services (such as Projects) + /// might reject them. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task SetIamPolicyAsync(string resource, gciv::Policy policy, gaxgrpc::CallSettings callSettings = null) => + SetIamPolicyAsync(new gciv::SetIamPolicyRequest + { + Resource = gax::GaxPreconditions.CheckNotNullOrEmpty(resource, nameof(resource)), + Policy = gax::GaxPreconditions.CheckNotNull(policy, nameof(policy)), + }, callSettings); + + /// + /// Sets the access control policy on an instance resource. Replaces any + /// existing policy. + /// + /// + /// REQUIRED: The resource for which the policy is being specified. + /// See the operation documentation for the appropriate value for this field. + /// + /// + /// REQUIRED: The complete policy to be applied to the `resource`. The size of + /// the policy is limited to a few 10s of KB. An empty policy is a + /// valid policy but certain Cloud Platform services (such as Projects) + /// might reject them. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task SetIamPolicyAsync(string resource, gciv::Policy policy, st::CancellationToken cancellationToken) => + SetIamPolicyAsync(resource, policy, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Sets the access control policy on an instance resource. Replaces any + /// existing policy. + /// + /// + /// REQUIRED: The resource for which the policy is being specified. + /// See the operation documentation for the appropriate value for this field. + /// + /// + /// REQUIRED: The complete policy to be applied to the `resource`. The size of + /// the policy is limited to a few 10s of KB. An empty policy is a + /// valid policy but certain Cloud Platform services (such as Projects) + /// might reject them. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual gciv::Policy SetIamPolicy(gax::IResourceName resource, gciv::Policy policy, gaxgrpc::CallSettings callSettings = null) => + SetIamPolicy(new gciv::SetIamPolicyRequest + { + ResourceAsResourceName = gax::GaxPreconditions.CheckNotNull(resource, nameof(resource)), + Policy = gax::GaxPreconditions.CheckNotNull(policy, nameof(policy)), + }, callSettings); + + /// + /// Sets the access control policy on an instance resource. Replaces any + /// existing policy. + /// + /// + /// REQUIRED: The resource for which the policy is being specified. + /// See the operation documentation for the appropriate value for this field. + /// + /// + /// REQUIRED: The complete policy to be applied to the `resource`. The size of + /// the policy is limited to a few 10s of KB. An empty policy is a + /// valid policy but certain Cloud Platform services (such as Projects) + /// might reject them. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task SetIamPolicyAsync(gax::IResourceName resource, gciv::Policy policy, gaxgrpc::CallSettings callSettings = null) => + SetIamPolicyAsync(new gciv::SetIamPolicyRequest + { + ResourceAsResourceName = gax::GaxPreconditions.CheckNotNull(resource, nameof(resource)), + Policy = gax::GaxPreconditions.CheckNotNull(policy, nameof(policy)), + }, callSettings); + + /// + /// Sets the access control policy on an instance resource. Replaces any + /// existing policy. + /// + /// + /// REQUIRED: The resource for which the policy is being specified. + /// See the operation documentation for the appropriate value for this field. + /// + /// + /// REQUIRED: The complete policy to be applied to the `resource`. The size of + /// the policy is limited to a few 10s of KB. An empty policy is a + /// valid policy but certain Cloud Platform services (such as Projects) + /// might reject them. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task SetIamPolicyAsync(gax::IResourceName resource, gciv::Policy policy, st::CancellationToken cancellationToken) => + SetIamPolicyAsync(resource, policy, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Returns permissions that the caller has on the specified instance resource. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual gciv::TestIamPermissionsResponse TestIamPermissions(gciv::TestIamPermissionsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Returns permissions that the caller has on the specified instance resource. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task TestIamPermissionsAsync(gciv::TestIamPermissionsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Returns permissions that the caller has on the specified instance resource. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task TestIamPermissionsAsync(gciv::TestIamPermissionsRequest request, st::CancellationToken cancellationToken) => + TestIamPermissionsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Returns permissions that the caller has on the specified instance resource. + /// + /// + /// REQUIRED: The resource for which the policy detail is being requested. + /// See the operation documentation for the appropriate value for this field. + /// + /// + /// The set of permissions to check for the `resource`. Permissions with + /// wildcards (such as '*' or 'storage.*') are not allowed. For more + /// information see + /// [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual gciv::TestIamPermissionsResponse TestIamPermissions(string resource, scg::IEnumerable permissions, gaxgrpc::CallSettings callSettings = null) => + TestIamPermissions(new gciv::TestIamPermissionsRequest + { + Resource = gax::GaxPreconditions.CheckNotNullOrEmpty(resource, nameof(resource)), + Permissions = + { + gax::GaxPreconditions.CheckNotNull(permissions, nameof(permissions)), + }, + }, callSettings); + + /// + /// Returns permissions that the caller has on the specified instance resource. + /// + /// + /// REQUIRED: The resource for which the policy detail is being requested. + /// See the operation documentation for the appropriate value for this field. + /// + /// + /// The set of permissions to check for the `resource`. Permissions with + /// wildcards (such as '*' or 'storage.*') are not allowed. For more + /// information see + /// [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task TestIamPermissionsAsync(string resource, scg::IEnumerable permissions, gaxgrpc::CallSettings callSettings = null) => + TestIamPermissionsAsync(new gciv::TestIamPermissionsRequest + { + Resource = gax::GaxPreconditions.CheckNotNullOrEmpty(resource, nameof(resource)), + Permissions = + { + gax::GaxPreconditions.CheckNotNull(permissions, nameof(permissions)), + }, + }, callSettings); + + /// + /// Returns permissions that the caller has on the specified instance resource. + /// + /// + /// REQUIRED: The resource for which the policy detail is being requested. + /// See the operation documentation for the appropriate value for this field. + /// + /// + /// The set of permissions to check for the `resource`. Permissions with + /// wildcards (such as '*' or 'storage.*') are not allowed. For more + /// information see + /// [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task TestIamPermissionsAsync(string resource, scg::IEnumerable permissions, st::CancellationToken cancellationToken) => + TestIamPermissionsAsync(resource, permissions, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Returns permissions that the caller has on the specified instance resource. + /// + /// + /// REQUIRED: The resource for which the policy detail is being requested. + /// See the operation documentation for the appropriate value for this field. + /// + /// + /// The set of permissions to check for the `resource`. Permissions with + /// wildcards (such as '*' or 'storage.*') are not allowed. For more + /// information see + /// [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual gciv::TestIamPermissionsResponse TestIamPermissions(gax::IResourceName resource, scg::IEnumerable permissions, gaxgrpc::CallSettings callSettings = null) => + TestIamPermissions(new gciv::TestIamPermissionsRequest + { + ResourceAsResourceName = gax::GaxPreconditions.CheckNotNull(resource, nameof(resource)), + Permissions = + { + gax::GaxPreconditions.CheckNotNull(permissions, nameof(permissions)), + }, + }, callSettings); + + /// + /// Returns permissions that the caller has on the specified instance resource. + /// + /// + /// REQUIRED: The resource for which the policy detail is being requested. + /// See the operation documentation for the appropriate value for this field. + /// + /// + /// The set of permissions to check for the `resource`. Permissions with + /// wildcards (such as '*' or 'storage.*') are not allowed. For more + /// information see + /// [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task TestIamPermissionsAsync(gax::IResourceName resource, scg::IEnumerable permissions, gaxgrpc::CallSettings callSettings = null) => + TestIamPermissionsAsync(new gciv::TestIamPermissionsRequest + { + ResourceAsResourceName = gax::GaxPreconditions.CheckNotNull(resource, nameof(resource)), + Permissions = + { + gax::GaxPreconditions.CheckNotNull(permissions, nameof(permissions)), + }, + }, callSettings); + + /// + /// Returns permissions that the caller has on the specified instance resource. + /// + /// + /// REQUIRED: The resource for which the policy detail is being requested. + /// See the operation documentation for the appropriate value for this field. + /// + /// + /// The set of permissions to check for the `resource`. Permissions with + /// wildcards (such as '*' or 'storage.*') are not allowed. For more + /// information see + /// [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task TestIamPermissionsAsync(gax::IResourceName resource, scg::IEnumerable permissions, st::CancellationToken cancellationToken) => + TestIamPermissionsAsync(resource, permissions, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Lists hot tablets in a cluster, within the time range provided. Hot + /// tablets are ordered based on CPU usage. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListHotTablets(ListHotTabletsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists hot tablets in a cluster, within the time range provided. Hot + /// tablets are ordered based on CPU usage. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListHotTabletsAsync(ListHotTabletsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists hot tablets in a cluster, within the time range provided. Hot + /// tablets are ordered based on CPU usage. + /// + /// + /// Required. The cluster name to list hot tablets. + /// Value is in the following form: + /// `projects/{project}/instances/{instance}/clusters/{cluster}`. + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListHotTablets(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListHotTabletsRequest request = new ListHotTabletsRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListHotTablets(request, callSettings); + } + + /// + /// Lists hot tablets in a cluster, within the time range provided. Hot + /// tablets are ordered based on CPU usage. + /// + /// + /// Required. The cluster name to list hot tablets. + /// Value is in the following form: + /// `projects/{project}/instances/{instance}/clusters/{cluster}`. + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListHotTabletsAsync(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListHotTabletsRequest request = new ListHotTabletsRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListHotTabletsAsync(request, callSettings); + } + + /// + /// Lists hot tablets in a cluster, within the time range provided. Hot + /// tablets are ordered based on CPU usage. + /// + /// + /// Required. The cluster name to list hot tablets. + /// Value is in the following form: + /// `projects/{project}/instances/{instance}/clusters/{cluster}`. + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListHotTablets(ClusterName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListHotTabletsRequest request = new ListHotTabletsRequest + { + ParentAsClusterName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListHotTablets(request, callSettings); + } + + /// + /// Lists hot tablets in a cluster, within the time range provided. Hot + /// tablets are ordered based on CPU usage. + /// + /// + /// Required. The cluster name to list hot tablets. + /// Value is in the following form: + /// `projects/{project}/instances/{instance}/clusters/{cluster}`. + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListHotTabletsAsync(ClusterName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListHotTabletsRequest request = new ListHotTabletsRequest + { + ParentAsClusterName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListHotTabletsAsync(request, callSettings); + } + } + + /// BigtableInstanceAdmin client wrapper implementation, for convenient use. + /// + /// Service for creating, configuring, and deleting Cloud Bigtable Instances and + /// Clusters. Provides access to the Instance and Cluster schemas only, not the + /// tables' metadata or data stored in those tables. + /// + public sealed partial class BigtableInstanceAdminClientImpl : BigtableInstanceAdminClient + { + private readonly gaxgrpc::ApiCall _callCreateInstance; + + private readonly gaxgrpc::ApiCall _callGetInstance; + + private readonly gaxgrpc::ApiCall _callListInstances; + + private readonly gaxgrpc::ApiCall _callUpdateInstance; + + private readonly gaxgrpc::ApiCall _callPartialUpdateInstance; + + private readonly gaxgrpc::ApiCall _callDeleteInstance; + + private readonly gaxgrpc::ApiCall _callCreateCluster; + + private readonly gaxgrpc::ApiCall _callGetCluster; + + private readonly gaxgrpc::ApiCall _callListClusters; + + private readonly gaxgrpc::ApiCall _callUpdateCluster; + + private readonly gaxgrpc::ApiCall _callPartialUpdateCluster; + + private readonly gaxgrpc::ApiCall _callDeleteCluster; + + private readonly gaxgrpc::ApiCall _callCreateAppProfile; + + private readonly gaxgrpc::ApiCall _callGetAppProfile; + + private readonly gaxgrpc::ApiCall _callListAppProfiles; + + private readonly gaxgrpc::ApiCall _callUpdateAppProfile; + + private readonly gaxgrpc::ApiCall _callDeleteAppProfile; + + private readonly gaxgrpc::ApiCall _callGetIamPolicy; + + private readonly gaxgrpc::ApiCall _callSetIamPolicy; + + private readonly gaxgrpc::ApiCall _callTestIamPermissions; + + private readonly gaxgrpc::ApiCall _callListHotTablets; + + /// + /// Constructs a client wrapper for the BigtableInstanceAdmin service, with the specified gRPC client and + /// settings. + /// + /// The underlying gRPC client. + /// The base used within this client. + /// Optional to use within this client. + public BigtableInstanceAdminClientImpl(BigtableInstanceAdmin.BigtableInstanceAdminClient grpcClient, BigtableInstanceAdminSettings settings, mel::ILogger logger) + { + GrpcClient = grpcClient; + BigtableInstanceAdminSettings effectiveSettings = settings ?? BigtableInstanceAdminSettings.GetDefault(); + gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(new gaxgrpc::ClientHelper.Options + { + Settings = effectiveSettings, + Logger = logger, + }); + CreateInstanceOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.CreateInstanceOperationsSettings, logger); + PartialUpdateInstanceOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.PartialUpdateInstanceOperationsSettings, logger); + CreateClusterOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.CreateClusterOperationsSettings, logger); + UpdateClusterOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.UpdateClusterOperationsSettings, logger); + PartialUpdateClusterOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.PartialUpdateClusterOperationsSettings, logger); + UpdateAppProfileOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.UpdateAppProfileOperationsSettings, logger); + _callCreateInstance = clientHelper.BuildApiCall("CreateInstance", grpcClient.CreateInstanceAsync, grpcClient.CreateInstance, effectiveSettings.CreateInstanceSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callCreateInstance); + Modify_CreateInstanceApiCall(ref _callCreateInstance); + _callGetInstance = clientHelper.BuildApiCall("GetInstance", grpcClient.GetInstanceAsync, grpcClient.GetInstance, effectiveSettings.GetInstanceSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callGetInstance); + Modify_GetInstanceApiCall(ref _callGetInstance); + _callListInstances = clientHelper.BuildApiCall("ListInstances", grpcClient.ListInstancesAsync, grpcClient.ListInstances, effectiveSettings.ListInstancesSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callListInstances); + Modify_ListInstancesApiCall(ref _callListInstances); + _callUpdateInstance = clientHelper.BuildApiCall("UpdateInstance", grpcClient.UpdateInstanceAsync, grpcClient.UpdateInstance, effectiveSettings.UpdateInstanceSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callUpdateInstance); + Modify_UpdateInstanceApiCall(ref _callUpdateInstance); + _callPartialUpdateInstance = clientHelper.BuildApiCall("PartialUpdateInstance", grpcClient.PartialUpdateInstanceAsync, grpcClient.PartialUpdateInstance, effectiveSettings.PartialUpdateInstanceSettings).WithGoogleRequestParam("instance.name", request => request.Instance?.Name); + Modify_ApiCall(ref _callPartialUpdateInstance); + Modify_PartialUpdateInstanceApiCall(ref _callPartialUpdateInstance); + _callDeleteInstance = clientHelper.BuildApiCall("DeleteInstance", grpcClient.DeleteInstanceAsync, grpcClient.DeleteInstance, effectiveSettings.DeleteInstanceSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callDeleteInstance); + Modify_DeleteInstanceApiCall(ref _callDeleteInstance); + _callCreateCluster = clientHelper.BuildApiCall("CreateCluster", grpcClient.CreateClusterAsync, grpcClient.CreateCluster, effectiveSettings.CreateClusterSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callCreateCluster); + Modify_CreateClusterApiCall(ref _callCreateCluster); + _callGetCluster = clientHelper.BuildApiCall("GetCluster", grpcClient.GetClusterAsync, grpcClient.GetCluster, effectiveSettings.GetClusterSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callGetCluster); + Modify_GetClusterApiCall(ref _callGetCluster); + _callListClusters = clientHelper.BuildApiCall("ListClusters", grpcClient.ListClustersAsync, grpcClient.ListClusters, effectiveSettings.ListClustersSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callListClusters); + Modify_ListClustersApiCall(ref _callListClusters); + _callUpdateCluster = clientHelper.BuildApiCall("UpdateCluster", grpcClient.UpdateClusterAsync, grpcClient.UpdateCluster, effectiveSettings.UpdateClusterSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callUpdateCluster); + Modify_UpdateClusterApiCall(ref _callUpdateCluster); + _callPartialUpdateCluster = clientHelper.BuildApiCall("PartialUpdateCluster", grpcClient.PartialUpdateClusterAsync, grpcClient.PartialUpdateCluster, effectiveSettings.PartialUpdateClusterSettings).WithGoogleRequestParam("cluster.name", request => request.Cluster?.Name); + Modify_ApiCall(ref _callPartialUpdateCluster); + Modify_PartialUpdateClusterApiCall(ref _callPartialUpdateCluster); + _callDeleteCluster = clientHelper.BuildApiCall("DeleteCluster", grpcClient.DeleteClusterAsync, grpcClient.DeleteCluster, effectiveSettings.DeleteClusterSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callDeleteCluster); + Modify_DeleteClusterApiCall(ref _callDeleteCluster); + _callCreateAppProfile = clientHelper.BuildApiCall("CreateAppProfile", grpcClient.CreateAppProfileAsync, grpcClient.CreateAppProfile, effectiveSettings.CreateAppProfileSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callCreateAppProfile); + Modify_CreateAppProfileApiCall(ref _callCreateAppProfile); + _callGetAppProfile = clientHelper.BuildApiCall("GetAppProfile", grpcClient.GetAppProfileAsync, grpcClient.GetAppProfile, effectiveSettings.GetAppProfileSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callGetAppProfile); + Modify_GetAppProfileApiCall(ref _callGetAppProfile); + _callListAppProfiles = clientHelper.BuildApiCall("ListAppProfiles", grpcClient.ListAppProfilesAsync, grpcClient.ListAppProfiles, effectiveSettings.ListAppProfilesSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callListAppProfiles); + Modify_ListAppProfilesApiCall(ref _callListAppProfiles); + _callUpdateAppProfile = clientHelper.BuildApiCall("UpdateAppProfile", grpcClient.UpdateAppProfileAsync, grpcClient.UpdateAppProfile, effectiveSettings.UpdateAppProfileSettings).WithGoogleRequestParam("app_profile.name", request => request.AppProfile?.Name); + Modify_ApiCall(ref _callUpdateAppProfile); + Modify_UpdateAppProfileApiCall(ref _callUpdateAppProfile); + _callDeleteAppProfile = clientHelper.BuildApiCall("DeleteAppProfile", grpcClient.DeleteAppProfileAsync, grpcClient.DeleteAppProfile, effectiveSettings.DeleteAppProfileSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callDeleteAppProfile); + Modify_DeleteAppProfileApiCall(ref _callDeleteAppProfile); + _callGetIamPolicy = clientHelper.BuildApiCall("GetIamPolicy", grpcClient.GetIamPolicyAsync, grpcClient.GetIamPolicy, effectiveSettings.GetIamPolicySettings).WithGoogleRequestParam("resource", request => request.Resource); + Modify_ApiCall(ref _callGetIamPolicy); + Modify_GetIamPolicyApiCall(ref _callGetIamPolicy); + _callSetIamPolicy = clientHelper.BuildApiCall("SetIamPolicy", grpcClient.SetIamPolicyAsync, grpcClient.SetIamPolicy, effectiveSettings.SetIamPolicySettings).WithGoogleRequestParam("resource", request => request.Resource); + Modify_ApiCall(ref _callSetIamPolicy); + Modify_SetIamPolicyApiCall(ref _callSetIamPolicy); + _callTestIamPermissions = clientHelper.BuildApiCall("TestIamPermissions", grpcClient.TestIamPermissionsAsync, grpcClient.TestIamPermissions, effectiveSettings.TestIamPermissionsSettings).WithGoogleRequestParam("resource", request => request.Resource); + Modify_ApiCall(ref _callTestIamPermissions); + Modify_TestIamPermissionsApiCall(ref _callTestIamPermissions); + _callListHotTablets = clientHelper.BuildApiCall("ListHotTablets", grpcClient.ListHotTabletsAsync, grpcClient.ListHotTablets, effectiveSettings.ListHotTabletsSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callListHotTablets); + Modify_ListHotTabletsApiCall(ref _callListHotTablets); + OnConstruction(grpcClient, effectiveSettings, clientHelper); + } + + partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; + + partial void Modify_CreateInstanceApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_GetInstanceApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_ListInstancesApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_UpdateInstanceApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_PartialUpdateInstanceApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_DeleteInstanceApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_CreateClusterApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_GetClusterApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_ListClustersApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_UpdateClusterApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_PartialUpdateClusterApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_DeleteClusterApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_CreateAppProfileApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_GetAppProfileApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_ListAppProfilesApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_UpdateAppProfileApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_DeleteAppProfileApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_GetIamPolicyApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_SetIamPolicyApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_TestIamPermissionsApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_ListHotTabletsApiCall(ref gaxgrpc::ApiCall call); + + partial void OnConstruction(BigtableInstanceAdmin.BigtableInstanceAdminClient grpcClient, BigtableInstanceAdminSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); + + /// The underlying gRPC BigtableInstanceAdmin client + public override BigtableInstanceAdmin.BigtableInstanceAdminClient GrpcClient { get; } + + partial void Modify_CreateInstanceRequest(ref CreateInstanceRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_GetInstanceRequest(ref GetInstanceRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_ListInstancesRequest(ref ListInstancesRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_Instance(ref Instance request, ref gaxgrpc::CallSettings settings); + + partial void Modify_PartialUpdateInstanceRequest(ref PartialUpdateInstanceRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_DeleteInstanceRequest(ref DeleteInstanceRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_CreateClusterRequest(ref CreateClusterRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_GetClusterRequest(ref GetClusterRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_ListClustersRequest(ref ListClustersRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_Cluster(ref Cluster request, ref gaxgrpc::CallSettings settings); + + partial void Modify_PartialUpdateClusterRequest(ref PartialUpdateClusterRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_DeleteClusterRequest(ref DeleteClusterRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_CreateAppProfileRequest(ref CreateAppProfileRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_GetAppProfileRequest(ref GetAppProfileRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_ListAppProfilesRequest(ref ListAppProfilesRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_UpdateAppProfileRequest(ref UpdateAppProfileRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_DeleteAppProfileRequest(ref DeleteAppProfileRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_GetIamPolicyRequest(ref gciv::GetIamPolicyRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_SetIamPolicyRequest(ref gciv::SetIamPolicyRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_TestIamPermissionsRequest(ref gciv::TestIamPermissionsRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_ListHotTabletsRequest(ref ListHotTabletsRequest request, ref gaxgrpc::CallSettings settings); + + /// The long-running operations client for CreateInstance. + public override lro::OperationsClient CreateInstanceOperationsClient { get; } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation CreateInstance(CreateInstanceRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateInstanceRequest(ref request, ref callSettings); + return new lro::Operation(_callCreateInstance.Sync(request, callSettings), CreateInstanceOperationsClient); + } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> CreateInstanceAsync(CreateInstanceRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateInstanceRequest(ref request, ref callSettings); + return new lro::Operation(await _callCreateInstance.Async(request, callSettings).ConfigureAwait(false), CreateInstanceOperationsClient); + } + + /// + /// Gets information about an instance. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override Instance GetInstance(GetInstanceRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetInstanceRequest(ref request, ref callSettings); + return _callGetInstance.Sync(request, callSettings); + } + + /// + /// Gets information about an instance. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task GetInstanceAsync(GetInstanceRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetInstanceRequest(ref request, ref callSettings); + return _callGetInstance.Async(request, callSettings); + } + + /// + /// Lists information about instances in a project. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override ListInstancesResponse ListInstances(ListInstancesRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListInstancesRequest(ref request, ref callSettings); + return _callListInstances.Sync(request, callSettings); + } + + /// + /// Lists information about instances in a project. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task ListInstancesAsync(ListInstancesRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListInstancesRequest(ref request, ref callSettings); + return _callListInstances.Async(request, callSettings); + } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override Instance UpdateInstance(Instance request, gaxgrpc::CallSettings callSettings = null) + { + Modify_Instance(ref request, ref callSettings); + return _callUpdateInstance.Sync(request, callSettings); + } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task UpdateInstanceAsync(Instance request, gaxgrpc::CallSettings callSettings = null) + { + Modify_Instance(ref request, ref callSettings); + return _callUpdateInstance.Async(request, callSettings); + } + + /// The long-running operations client for PartialUpdateInstance. + public override lro::OperationsClient PartialUpdateInstanceOperationsClient { get; } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation PartialUpdateInstance(PartialUpdateInstanceRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_PartialUpdateInstanceRequest(ref request, ref callSettings); + return new lro::Operation(_callPartialUpdateInstance.Sync(request, callSettings), PartialUpdateInstanceOperationsClient); + } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> PartialUpdateInstanceAsync(PartialUpdateInstanceRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_PartialUpdateInstanceRequest(ref request, ref callSettings); + return new lro::Operation(await _callPartialUpdateInstance.Async(request, callSettings).ConfigureAwait(false), PartialUpdateInstanceOperationsClient); + } + + /// + /// Delete an instance from a project. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override void DeleteInstance(DeleteInstanceRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteInstanceRequest(ref request, ref callSettings); + _callDeleteInstance.Sync(request, callSettings); + } + + /// + /// Delete an instance from a project. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task DeleteInstanceAsync(DeleteInstanceRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteInstanceRequest(ref request, ref callSettings); + return _callDeleteInstance.Async(request, callSettings); + } + + /// The long-running operations client for CreateCluster. + public override lro::OperationsClient CreateClusterOperationsClient { get; } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation CreateCluster(CreateClusterRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateClusterRequest(ref request, ref callSettings); + return new lro::Operation(_callCreateCluster.Sync(request, callSettings), CreateClusterOperationsClient); + } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> CreateClusterAsync(CreateClusterRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateClusterRequest(ref request, ref callSettings); + return new lro::Operation(await _callCreateCluster.Async(request, callSettings).ConfigureAwait(false), CreateClusterOperationsClient); + } + + /// + /// Gets information about a cluster. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override Cluster GetCluster(GetClusterRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetClusterRequest(ref request, ref callSettings); + return _callGetCluster.Sync(request, callSettings); + } + + /// + /// Gets information about a cluster. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task GetClusterAsync(GetClusterRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetClusterRequest(ref request, ref callSettings); + return _callGetCluster.Async(request, callSettings); + } + + /// + /// Lists information about clusters in an instance. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override ListClustersResponse ListClusters(ListClustersRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListClustersRequest(ref request, ref callSettings); + return _callListClusters.Sync(request, callSettings); + } + + /// + /// Lists information about clusters in an instance. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task ListClustersAsync(ListClustersRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListClustersRequest(ref request, ref callSettings); + return _callListClusters.Async(request, callSettings); + } + + /// The long-running operations client for UpdateCluster. + public override lro::OperationsClient UpdateClusterOperationsClient { get; } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation UpdateCluster(Cluster request, gaxgrpc::CallSettings callSettings = null) + { + Modify_Cluster(ref request, ref callSettings); + return new lro::Operation(_callUpdateCluster.Sync(request, callSettings), UpdateClusterOperationsClient); + } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> UpdateClusterAsync(Cluster request, gaxgrpc::CallSettings callSettings = null) + { + Modify_Cluster(ref request, ref callSettings); + return new lro::Operation(await _callUpdateCluster.Async(request, callSettings).ConfigureAwait(false), UpdateClusterOperationsClient); + } + + /// The long-running operations client for PartialUpdateCluster. + public override lro::OperationsClient PartialUpdateClusterOperationsClient { get; } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation PartialUpdateCluster(PartialUpdateClusterRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_PartialUpdateClusterRequest(ref request, ref callSettings); + return new lro::Operation(_callPartialUpdateCluster.Sync(request, callSettings), PartialUpdateClusterOperationsClient); + } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> PartialUpdateClusterAsync(PartialUpdateClusterRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_PartialUpdateClusterRequest(ref request, ref callSettings); + return new lro::Operation(await _callPartialUpdateCluster.Async(request, callSettings).ConfigureAwait(false), PartialUpdateClusterOperationsClient); + } + + /// + /// Deletes a cluster from an instance. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override void DeleteCluster(DeleteClusterRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteClusterRequest(ref request, ref callSettings); + _callDeleteCluster.Sync(request, callSettings); + } + + /// + /// Deletes a cluster from an instance. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task DeleteClusterAsync(DeleteClusterRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteClusterRequest(ref request, ref callSettings); + return _callDeleteCluster.Async(request, callSettings); + } + + /// + /// Creates an app profile within an instance. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override AppProfile CreateAppProfile(CreateAppProfileRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateAppProfileRequest(ref request, ref callSettings); + return _callCreateAppProfile.Sync(request, callSettings); + } + + /// + /// Creates an app profile within an instance. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task CreateAppProfileAsync(CreateAppProfileRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateAppProfileRequest(ref request, ref callSettings); + return _callCreateAppProfile.Async(request, callSettings); + } + + /// + /// Gets information about an app profile. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override AppProfile GetAppProfile(GetAppProfileRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetAppProfileRequest(ref request, ref callSettings); + return _callGetAppProfile.Sync(request, callSettings); + } + + /// + /// Gets information about an app profile. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task GetAppProfileAsync(GetAppProfileRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetAppProfileRequest(ref request, ref callSettings); + return _callGetAppProfile.Async(request, callSettings); + } + + /// + /// Lists information about app profiles in an instance. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public override gax::PagedEnumerable ListAppProfiles(ListAppProfilesRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListAppProfilesRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedEnumerable(_callListAppProfiles, request, callSettings); + } + + /// + /// Lists information about app profiles in an instance. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public override gax::PagedAsyncEnumerable ListAppProfilesAsync(ListAppProfilesRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListAppProfilesRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedAsyncEnumerable(_callListAppProfiles, request, callSettings); + } + + /// The long-running operations client for UpdateAppProfile. + public override lro::OperationsClient UpdateAppProfileOperationsClient { get; } + + /// + /// Updates an app profile within an instance. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation UpdateAppProfile(UpdateAppProfileRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateAppProfileRequest(ref request, ref callSettings); + return new lro::Operation(_callUpdateAppProfile.Sync(request, callSettings), UpdateAppProfileOperationsClient); + } + + /// + /// Updates an app profile within an instance. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> UpdateAppProfileAsync(UpdateAppProfileRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateAppProfileRequest(ref request, ref callSettings); + return new lro::Operation(await _callUpdateAppProfile.Async(request, callSettings).ConfigureAwait(false), UpdateAppProfileOperationsClient); + } + + /// + /// Deletes an app profile from an instance. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override void DeleteAppProfile(DeleteAppProfileRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteAppProfileRequest(ref request, ref callSettings); + _callDeleteAppProfile.Sync(request, callSettings); + } + + /// + /// Deletes an app profile from an instance. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task DeleteAppProfileAsync(DeleteAppProfileRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteAppProfileRequest(ref request, ref callSettings); + return _callDeleteAppProfile.Async(request, callSettings); + } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override gciv::Policy GetIamPolicy(gciv::GetIamPolicyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetIamPolicyRequest(ref request, ref callSettings); + return _callGetIamPolicy.Sync(request, callSettings); + } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task GetIamPolicyAsync(gciv::GetIamPolicyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetIamPolicyRequest(ref request, ref callSettings); + return _callGetIamPolicy.Async(request, callSettings); + } + + /// + /// Sets the access control policy on an instance resource. Replaces any + /// existing policy. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override gciv::Policy SetIamPolicy(gciv::SetIamPolicyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_SetIamPolicyRequest(ref request, ref callSettings); + return _callSetIamPolicy.Sync(request, callSettings); + } + + /// + /// Sets the access control policy on an instance resource. Replaces any + /// existing policy. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task SetIamPolicyAsync(gciv::SetIamPolicyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_SetIamPolicyRequest(ref request, ref callSettings); + return _callSetIamPolicy.Async(request, callSettings); + } + + /// + /// Returns permissions that the caller has on the specified instance resource. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override gciv::TestIamPermissionsResponse TestIamPermissions(gciv::TestIamPermissionsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_TestIamPermissionsRequest(ref request, ref callSettings); + return _callTestIamPermissions.Sync(request, callSettings); + } + + /// + /// Returns permissions that the caller has on the specified instance resource. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task TestIamPermissionsAsync(gciv::TestIamPermissionsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_TestIamPermissionsRequest(ref request, ref callSettings); + return _callTestIamPermissions.Async(request, callSettings); + } + + /// + /// Lists hot tablets in a cluster, within the time range provided. Hot + /// tablets are ordered based on CPU usage. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public override gax::PagedEnumerable ListHotTablets(ListHotTabletsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListHotTabletsRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedEnumerable(_callListHotTablets, request, callSettings); + } + + /// + /// Lists hot tablets in a cluster, within the time range provided. Hot + /// tablets are ordered based on CPU usage. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public override gax::PagedAsyncEnumerable ListHotTabletsAsync(ListHotTabletsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListHotTabletsRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedAsyncEnumerable(_callListHotTablets, request, callSettings); + } + } + + public partial class ListAppProfilesRequest : gaxgrpc::IPageRequest + { + } + + public partial class ListHotTabletsRequest : gaxgrpc::IPageRequest + { + } + + public partial class ListAppProfilesResponse : gaxgrpc::IPageResponse + { + /// Returns an enumerator that iterates through the resources in this response. + public scg::IEnumerator GetEnumerator() => AppProfiles.GetEnumerator(); + + sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); + } + + public partial class ListHotTabletsResponse : gaxgrpc::IPageResponse + { + /// Returns an enumerator that iterates through the resources in this response. + public scg::IEnumerator GetEnumerator() => HotTablets.GetEnumerator(); + + sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); + } + + public static partial class BigtableInstanceAdmin + { + public partial class BigtableInstanceAdminClient + { + /// + /// Creates a new instance of using the same call invoker as + /// this client. + /// + /// A new Operations client for the same target as this client. + public virtual lro::Operations.OperationsClient CreateOperationsClient() => + new lro::Operations.OperationsClient(CallInvoker); + } + } +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableInstanceAdminGrpc.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableInstanceAdminGrpc.g.cs new file mode 100755 index 000000000000..60f97dc73ece --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableInstanceAdminGrpc.g.cs @@ -0,0 +1,1830 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/bigtable/admin/v2/bigtable_instance_admin.proto +// +// Original file comments: +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#pragma warning disable 0414, 1591, 8981, 0612 +#region Designer generated code + +using grpc = global::Grpc.Core; + +namespace Google.Cloud.Bigtable.Admin.V2 { + /// + /// Service for creating, configuring, and deleting Cloud Bigtable Instances and + /// Clusters. Provides access to the Instance and Cluster schemas only, not the + /// tables' metadata or data stored in those tables. + /// + public static partial class BigtableInstanceAdmin + { + static readonly string __ServiceName = "google.bigtable.admin.v2.BigtableInstanceAdmin"; + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (message is global::Google.Protobuf.IBufferMessage) + { + context.SetPayloadLength(message.CalculateSize()); + global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); + context.Complete(); + return; + } + #endif + context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static class __Helper_MessageCache + { + public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (__Helper_MessageCache.IsBufferMessage) + { + return parser.ParseFrom(context.PayloadAsReadOnlySequence()); + } + #endif + return parser.ParseFrom(context.PayloadAsNewBuffer()); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_CreateInstanceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.CreateInstanceRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_longrunning_Operation = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.LongRunning.Operation.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_GetInstanceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.GetInstanceRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_Instance = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.Instance.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_ListInstancesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.ListInstancesRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_ListInstancesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.ListInstancesResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_PartialUpdateInstanceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.PartialUpdateInstanceRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_DeleteInstanceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.DeleteInstanceRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_protobuf_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Protobuf.WellKnownTypes.Empty.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_CreateClusterRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.CreateClusterRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_GetClusterRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.GetClusterRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_Cluster = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.Cluster.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_ListClustersRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.ListClustersRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_ListClustersResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.ListClustersResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_PartialUpdateClusterRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.PartialUpdateClusterRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_DeleteClusterRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.DeleteClusterRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_CreateAppProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.CreateAppProfileRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_AppProfile = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_GetAppProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.GetAppProfileRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_ListAppProfilesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.ListAppProfilesRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_ListAppProfilesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.ListAppProfilesResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_UpdateAppProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.UpdateAppProfileRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_DeleteAppProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.DeleteAppProfileRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_iam_v1_GetIamPolicyRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Iam.V1.GetIamPolicyRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_iam_v1_Policy = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Iam.V1.Policy.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_iam_v1_SetIamPolicyRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Iam.V1.SetIamPolicyRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_iam_v1_TestIamPermissionsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Iam.V1.TestIamPermissionsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_iam_v1_TestIamPermissionsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Iam.V1.TestIamPermissionsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_ListHotTabletsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.ListHotTabletsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_ListHotTabletsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.ListHotTabletsResponse.Parser)); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateInstance = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateInstance", + __Marshaller_google_bigtable_admin_v2_CreateInstanceRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetInstance = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetInstance", + __Marshaller_google_bigtable_admin_v2_GetInstanceRequest, + __Marshaller_google_bigtable_admin_v2_Instance); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ListInstances = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ListInstances", + __Marshaller_google_bigtable_admin_v2_ListInstancesRequest, + __Marshaller_google_bigtable_admin_v2_ListInstancesResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateInstance = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateInstance", + __Marshaller_google_bigtable_admin_v2_Instance, + __Marshaller_google_bigtable_admin_v2_Instance); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_PartialUpdateInstance = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "PartialUpdateInstance", + __Marshaller_google_bigtable_admin_v2_PartialUpdateInstanceRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteInstance = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteInstance", + __Marshaller_google_bigtable_admin_v2_DeleteInstanceRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateCluster = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateCluster", + __Marshaller_google_bigtable_admin_v2_CreateClusterRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetCluster = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetCluster", + __Marshaller_google_bigtable_admin_v2_GetClusterRequest, + __Marshaller_google_bigtable_admin_v2_Cluster); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ListClusters = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ListClusters", + __Marshaller_google_bigtable_admin_v2_ListClustersRequest, + __Marshaller_google_bigtable_admin_v2_ListClustersResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateCluster = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateCluster", + __Marshaller_google_bigtable_admin_v2_Cluster, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_PartialUpdateCluster = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "PartialUpdateCluster", + __Marshaller_google_bigtable_admin_v2_PartialUpdateClusterRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteCluster = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteCluster", + __Marshaller_google_bigtable_admin_v2_DeleteClusterRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateAppProfile = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateAppProfile", + __Marshaller_google_bigtable_admin_v2_CreateAppProfileRequest, + __Marshaller_google_bigtable_admin_v2_AppProfile); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetAppProfile = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetAppProfile", + __Marshaller_google_bigtable_admin_v2_GetAppProfileRequest, + __Marshaller_google_bigtable_admin_v2_AppProfile); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ListAppProfiles = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ListAppProfiles", + __Marshaller_google_bigtable_admin_v2_ListAppProfilesRequest, + __Marshaller_google_bigtable_admin_v2_ListAppProfilesResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateAppProfile = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateAppProfile", + __Marshaller_google_bigtable_admin_v2_UpdateAppProfileRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteAppProfile = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteAppProfile", + __Marshaller_google_bigtable_admin_v2_DeleteAppProfileRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetIamPolicy = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetIamPolicy", + __Marshaller_google_iam_v1_GetIamPolicyRequest, + __Marshaller_google_iam_v1_Policy); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_SetIamPolicy = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "SetIamPolicy", + __Marshaller_google_iam_v1_SetIamPolicyRequest, + __Marshaller_google_iam_v1_Policy); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_TestIamPermissions = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "TestIamPermissions", + __Marshaller_google_iam_v1_TestIamPermissionsRequest, + __Marshaller_google_iam_v1_TestIamPermissionsResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ListHotTablets = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ListHotTablets", + __Marshaller_google_bigtable_admin_v2_ListHotTabletsRequest, + __Marshaller_google_bigtable_admin_v2_ListHotTabletsResponse); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableInstanceAdminReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of BigtableInstanceAdmin + [grpc::BindServiceMethod(typeof(BigtableInstanceAdmin), "BindService")] + public abstract partial class BigtableInstanceAdminBase + { + /// + /// 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 request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task CreateInstance(global::Google.Cloud.Bigtable.Admin.V2.CreateInstanceRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Gets information about an instance. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetInstance(global::Google.Cloud.Bigtable.Admin.V2.GetInstanceRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Lists information about instances in a project. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task ListInstances(global::Google.Cloud.Bigtable.Admin.V2.ListInstancesRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// 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 request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task UpdateInstance(global::Google.Cloud.Bigtable.Admin.V2.Instance request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// 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 request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task PartialUpdateInstance(global::Google.Cloud.Bigtable.Admin.V2.PartialUpdateInstanceRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Delete an instance from a project. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task DeleteInstance(global::Google.Cloud.Bigtable.Admin.V2.DeleteInstanceRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// 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 request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task CreateCluster(global::Google.Cloud.Bigtable.Admin.V2.CreateClusterRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Gets information about a cluster. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetCluster(global::Google.Cloud.Bigtable.Admin.V2.GetClusterRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Lists information about clusters in an instance. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task ListClusters(global::Google.Cloud.Bigtable.Admin.V2.ListClustersRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// 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 request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task UpdateCluster(global::Google.Cloud.Bigtable.Admin.V2.Cluster request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// 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 request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task PartialUpdateCluster(global::Google.Cloud.Bigtable.Admin.V2.PartialUpdateClusterRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Deletes a cluster from an instance. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task DeleteCluster(global::Google.Cloud.Bigtable.Admin.V2.DeleteClusterRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Creates an app profile within an instance. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task CreateAppProfile(global::Google.Cloud.Bigtable.Admin.V2.CreateAppProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Gets information about an app profile. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetAppProfile(global::Google.Cloud.Bigtable.Admin.V2.GetAppProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Lists information about app profiles in an instance. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task ListAppProfiles(global::Google.Cloud.Bigtable.Admin.V2.ListAppProfilesRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Updates an app profile within an instance. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task UpdateAppProfile(global::Google.Cloud.Bigtable.Admin.V2.UpdateAppProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Deletes an app profile from an instance. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task DeleteAppProfile(global::Google.Cloud.Bigtable.Admin.V2.DeleteAppProfileRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// 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 request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetIamPolicy(global::Google.Cloud.Iam.V1.GetIamPolicyRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Sets the access control policy on an instance resource. Replaces any + /// existing policy. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task SetIamPolicy(global::Google.Cloud.Iam.V1.SetIamPolicyRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Returns permissions that the caller has on the specified instance resource. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task TestIamPermissions(global::Google.Cloud.Iam.V1.TestIamPermissionsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Lists hot tablets in a cluster, within the time range provided. Hot + /// tablets are ordered based on CPU usage. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task ListHotTablets(global::Google.Cloud.Bigtable.Admin.V2.ListHotTabletsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + } + + /// Client for BigtableInstanceAdmin + public partial class BigtableInstanceAdminClient : grpc::ClientBase + { + /// Creates a new client for BigtableInstanceAdmin + /// The channel to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public BigtableInstanceAdminClient(grpc::ChannelBase channel) : base(channel) + { + } + /// Creates a new client for BigtableInstanceAdmin that uses a custom CallInvoker. + /// The callInvoker to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public BigtableInstanceAdminClient(grpc::CallInvoker callInvoker) : base(callInvoker) + { + } + /// Protected parameterless constructor to allow creation of test doubles. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected BigtableInstanceAdminClient() : base() + { + } + /// Protected constructor to allow creation of configured clients. + /// The client configuration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected BigtableInstanceAdminClient(ClientBaseConfiguration configuration) : base(configuration) + { + } + + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation CreateInstance(global::Google.Cloud.Bigtable.Admin.V2.CreateInstanceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateInstance(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation CreateInstance(global::Google.Cloud.Bigtable.Admin.V2.CreateInstanceRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateInstance, null, options, request); + } + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateInstanceAsync(global::Google.Cloud.Bigtable.Admin.V2.CreateInstanceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateInstanceAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateInstanceAsync(global::Google.Cloud.Bigtable.Admin.V2.CreateInstanceRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateInstance, null, options, request); + } + /// + /// Gets information about an instance. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.Instance GetInstance(global::Google.Cloud.Bigtable.Admin.V2.GetInstanceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetInstance(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets information about an instance. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.Instance GetInstance(global::Google.Cloud.Bigtable.Admin.V2.GetInstanceRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetInstance, null, options, request); + } + /// + /// Gets information about an instance. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetInstanceAsync(global::Google.Cloud.Bigtable.Admin.V2.GetInstanceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetInstanceAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets information about an instance. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetInstanceAsync(global::Google.Cloud.Bigtable.Admin.V2.GetInstanceRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetInstance, null, options, request); + } + /// + /// Lists information about instances in a project. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.ListInstancesResponse ListInstances(global::Google.Cloud.Bigtable.Admin.V2.ListInstancesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListInstances(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists information about instances in a project. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.ListInstancesResponse ListInstances(global::Google.Cloud.Bigtable.Admin.V2.ListInstancesRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListInstances, null, options, request); + } + /// + /// Lists information about instances in a project. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListInstancesAsync(global::Google.Cloud.Bigtable.Admin.V2.ListInstancesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListInstancesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists information about instances in a project. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListInstancesAsync(global::Google.Cloud.Bigtable.Admin.V2.ListInstancesRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListInstances, null, options, request); + } + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.Instance UpdateInstance(global::Google.Cloud.Bigtable.Admin.V2.Instance request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateInstance(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.Instance UpdateInstance(global::Google.Cloud.Bigtable.Admin.V2.Instance request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateInstance, null, options, request); + } + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateInstanceAsync(global::Google.Cloud.Bigtable.Admin.V2.Instance request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateInstanceAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateInstanceAsync(global::Google.Cloud.Bigtable.Admin.V2.Instance request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateInstance, null, options, request); + } + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation PartialUpdateInstance(global::Google.Cloud.Bigtable.Admin.V2.PartialUpdateInstanceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return PartialUpdateInstance(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation PartialUpdateInstance(global::Google.Cloud.Bigtable.Admin.V2.PartialUpdateInstanceRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_PartialUpdateInstance, null, options, request); + } + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall PartialUpdateInstanceAsync(global::Google.Cloud.Bigtable.Admin.V2.PartialUpdateInstanceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return PartialUpdateInstanceAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall PartialUpdateInstanceAsync(global::Google.Cloud.Bigtable.Admin.V2.PartialUpdateInstanceRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_PartialUpdateInstance, null, options, request); + } + /// + /// Delete an instance from a project. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteInstance(global::Google.Cloud.Bigtable.Admin.V2.DeleteInstanceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteInstance(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete an instance from a project. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteInstance(global::Google.Cloud.Bigtable.Admin.V2.DeleteInstanceRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteInstance, null, options, request); + } + /// + /// Delete an instance from a project. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteInstanceAsync(global::Google.Cloud.Bigtable.Admin.V2.DeleteInstanceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteInstanceAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete an instance from a project. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteInstanceAsync(global::Google.Cloud.Bigtable.Admin.V2.DeleteInstanceRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteInstance, null, options, request); + } + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation CreateCluster(global::Google.Cloud.Bigtable.Admin.V2.CreateClusterRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateCluster(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation CreateCluster(global::Google.Cloud.Bigtable.Admin.V2.CreateClusterRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateCluster, null, options, request); + } + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateClusterAsync(global::Google.Cloud.Bigtable.Admin.V2.CreateClusterRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateClusterAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateClusterAsync(global::Google.Cloud.Bigtable.Admin.V2.CreateClusterRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateCluster, null, options, request); + } + /// + /// Gets information about a cluster. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.Cluster GetCluster(global::Google.Cloud.Bigtable.Admin.V2.GetClusterRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetCluster(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets information about a cluster. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.Cluster GetCluster(global::Google.Cloud.Bigtable.Admin.V2.GetClusterRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetCluster, null, options, request); + } + /// + /// Gets information about a cluster. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetClusterAsync(global::Google.Cloud.Bigtable.Admin.V2.GetClusterRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetClusterAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets information about a cluster. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetClusterAsync(global::Google.Cloud.Bigtable.Admin.V2.GetClusterRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetCluster, null, options, request); + } + /// + /// Lists information about clusters in an instance. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.ListClustersResponse ListClusters(global::Google.Cloud.Bigtable.Admin.V2.ListClustersRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListClusters(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists information about clusters in an instance. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.ListClustersResponse ListClusters(global::Google.Cloud.Bigtable.Admin.V2.ListClustersRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListClusters, null, options, request); + } + /// + /// Lists information about clusters in an instance. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListClustersAsync(global::Google.Cloud.Bigtable.Admin.V2.ListClustersRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListClustersAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists information about clusters in an instance. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListClustersAsync(global::Google.Cloud.Bigtable.Admin.V2.ListClustersRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListClusters, null, options, request); + } + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation UpdateCluster(global::Google.Cloud.Bigtable.Admin.V2.Cluster request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateCluster(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation UpdateCluster(global::Google.Cloud.Bigtable.Admin.V2.Cluster request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateCluster, null, options, request); + } + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateClusterAsync(global::Google.Cloud.Bigtable.Admin.V2.Cluster request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateClusterAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateClusterAsync(global::Google.Cloud.Bigtable.Admin.V2.Cluster request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateCluster, null, options, request); + } + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation PartialUpdateCluster(global::Google.Cloud.Bigtable.Admin.V2.PartialUpdateClusterRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return PartialUpdateCluster(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation PartialUpdateCluster(global::Google.Cloud.Bigtable.Admin.V2.PartialUpdateClusterRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_PartialUpdateCluster, null, options, request); + } + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall PartialUpdateClusterAsync(global::Google.Cloud.Bigtable.Admin.V2.PartialUpdateClusterRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return PartialUpdateClusterAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall PartialUpdateClusterAsync(global::Google.Cloud.Bigtable.Admin.V2.PartialUpdateClusterRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_PartialUpdateCluster, null, options, request); + } + /// + /// Deletes a cluster from an instance. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteCluster(global::Google.Cloud.Bigtable.Admin.V2.DeleteClusterRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteCluster(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Deletes a cluster from an instance. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteCluster(global::Google.Cloud.Bigtable.Admin.V2.DeleteClusterRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteCluster, null, options, request); + } + /// + /// Deletes a cluster from an instance. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteClusterAsync(global::Google.Cloud.Bigtable.Admin.V2.DeleteClusterRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteClusterAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Deletes a cluster from an instance. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteClusterAsync(global::Google.Cloud.Bigtable.Admin.V2.DeleteClusterRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteCluster, null, options, request); + } + /// + /// Creates an app profile within an instance. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.AppProfile CreateAppProfile(global::Google.Cloud.Bigtable.Admin.V2.CreateAppProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateAppProfile(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Creates an app profile within an instance. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.AppProfile CreateAppProfile(global::Google.Cloud.Bigtable.Admin.V2.CreateAppProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateAppProfile, null, options, request); + } + /// + /// Creates an app profile within an instance. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateAppProfileAsync(global::Google.Cloud.Bigtable.Admin.V2.CreateAppProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateAppProfileAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Creates an app profile within an instance. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateAppProfileAsync(global::Google.Cloud.Bigtable.Admin.V2.CreateAppProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateAppProfile, null, options, request); + } + /// + /// Gets information about an app profile. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.AppProfile GetAppProfile(global::Google.Cloud.Bigtable.Admin.V2.GetAppProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetAppProfile(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets information about an app profile. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.AppProfile GetAppProfile(global::Google.Cloud.Bigtable.Admin.V2.GetAppProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetAppProfile, null, options, request); + } + /// + /// Gets information about an app profile. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetAppProfileAsync(global::Google.Cloud.Bigtable.Admin.V2.GetAppProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetAppProfileAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets information about an app profile. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetAppProfileAsync(global::Google.Cloud.Bigtable.Admin.V2.GetAppProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetAppProfile, null, options, request); + } + /// + /// Lists information about app profiles in an instance. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.ListAppProfilesResponse ListAppProfiles(global::Google.Cloud.Bigtable.Admin.V2.ListAppProfilesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListAppProfiles(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists information about app profiles in an instance. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.ListAppProfilesResponse ListAppProfiles(global::Google.Cloud.Bigtable.Admin.V2.ListAppProfilesRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListAppProfiles, null, options, request); + } + /// + /// Lists information about app profiles in an instance. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListAppProfilesAsync(global::Google.Cloud.Bigtable.Admin.V2.ListAppProfilesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListAppProfilesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists information about app profiles in an instance. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListAppProfilesAsync(global::Google.Cloud.Bigtable.Admin.V2.ListAppProfilesRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListAppProfiles, null, options, request); + } + /// + /// Updates an app profile within an instance. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation UpdateAppProfile(global::Google.Cloud.Bigtable.Admin.V2.UpdateAppProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateAppProfile(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Updates an app profile within an instance. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation UpdateAppProfile(global::Google.Cloud.Bigtable.Admin.V2.UpdateAppProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateAppProfile, null, options, request); + } + /// + /// Updates an app profile within an instance. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateAppProfileAsync(global::Google.Cloud.Bigtable.Admin.V2.UpdateAppProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateAppProfileAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Updates an app profile within an instance. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateAppProfileAsync(global::Google.Cloud.Bigtable.Admin.V2.UpdateAppProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateAppProfile, null, options, request); + } + /// + /// Deletes an app profile from an instance. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteAppProfile(global::Google.Cloud.Bigtable.Admin.V2.DeleteAppProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteAppProfile(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Deletes an app profile from an instance. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteAppProfile(global::Google.Cloud.Bigtable.Admin.V2.DeleteAppProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteAppProfile, null, options, request); + } + /// + /// Deletes an app profile from an instance. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteAppProfileAsync(global::Google.Cloud.Bigtable.Admin.V2.DeleteAppProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteAppProfileAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Deletes an app profile from an instance. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteAppProfileAsync(global::Google.Cloud.Bigtable.Admin.V2.DeleteAppProfileRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteAppProfile, null, options, request); + } + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Iam.V1.Policy GetIamPolicy(global::Google.Cloud.Iam.V1.GetIamPolicyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetIamPolicy(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Iam.V1.Policy GetIamPolicy(global::Google.Cloud.Iam.V1.GetIamPolicyRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetIamPolicy, null, options, request); + } + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetIamPolicyAsync(global::Google.Cloud.Iam.V1.GetIamPolicyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetIamPolicyAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetIamPolicyAsync(global::Google.Cloud.Iam.V1.GetIamPolicyRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetIamPolicy, null, options, request); + } + /// + /// Sets the access control policy on an instance resource. Replaces any + /// existing policy. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Iam.V1.Policy SetIamPolicy(global::Google.Cloud.Iam.V1.SetIamPolicyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return SetIamPolicy(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Sets the access control policy on an instance resource. Replaces any + /// existing policy. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Iam.V1.Policy SetIamPolicy(global::Google.Cloud.Iam.V1.SetIamPolicyRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_SetIamPolicy, null, options, request); + } + /// + /// Sets the access control policy on an instance resource. Replaces any + /// existing policy. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall SetIamPolicyAsync(global::Google.Cloud.Iam.V1.SetIamPolicyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return SetIamPolicyAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Sets the access control policy on an instance resource. Replaces any + /// existing policy. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall SetIamPolicyAsync(global::Google.Cloud.Iam.V1.SetIamPolicyRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_SetIamPolicy, null, options, request); + } + /// + /// Returns permissions that the caller has on the specified instance resource. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Iam.V1.TestIamPermissionsResponse TestIamPermissions(global::Google.Cloud.Iam.V1.TestIamPermissionsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return TestIamPermissions(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Returns permissions that the caller has on the specified instance resource. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Iam.V1.TestIamPermissionsResponse TestIamPermissions(global::Google.Cloud.Iam.V1.TestIamPermissionsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_TestIamPermissions, null, options, request); + } + /// + /// Returns permissions that the caller has on the specified instance resource. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall TestIamPermissionsAsync(global::Google.Cloud.Iam.V1.TestIamPermissionsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return TestIamPermissionsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Returns permissions that the caller has on the specified instance resource. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall TestIamPermissionsAsync(global::Google.Cloud.Iam.V1.TestIamPermissionsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_TestIamPermissions, null, options, request); + } + /// + /// Lists hot tablets in a cluster, within the time range provided. Hot + /// tablets are ordered based on CPU usage. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.ListHotTabletsResponse ListHotTablets(global::Google.Cloud.Bigtable.Admin.V2.ListHotTabletsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListHotTablets(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists hot tablets in a cluster, within the time range provided. Hot + /// tablets are ordered based on CPU usage. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.ListHotTabletsResponse ListHotTablets(global::Google.Cloud.Bigtable.Admin.V2.ListHotTabletsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListHotTablets, null, options, request); + } + /// + /// Lists hot tablets in a cluster, within the time range provided. Hot + /// tablets are ordered based on CPU usage. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListHotTabletsAsync(global::Google.Cloud.Bigtable.Admin.V2.ListHotTabletsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListHotTabletsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists hot tablets in a cluster, within the time range provided. Hot + /// tablets are ordered based on CPU usage. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListHotTabletsAsync(global::Google.Cloud.Bigtable.Admin.V2.ListHotTabletsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListHotTablets, null, options, request); + } + /// Creates a new instance of client from given ClientBaseConfiguration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected override BigtableInstanceAdminClient NewInstance(ClientBaseConfiguration configuration) + { + return new BigtableInstanceAdminClient(configuration); + } + } + + /// Creates service definition that can be registered with a server + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static grpc::ServerServiceDefinition BindService(BigtableInstanceAdminBase serviceImpl) + { + return grpc::ServerServiceDefinition.CreateBuilder() + .AddMethod(__Method_CreateInstance, serviceImpl.CreateInstance) + .AddMethod(__Method_GetInstance, serviceImpl.GetInstance) + .AddMethod(__Method_ListInstances, serviceImpl.ListInstances) + .AddMethod(__Method_UpdateInstance, serviceImpl.UpdateInstance) + .AddMethod(__Method_PartialUpdateInstance, serviceImpl.PartialUpdateInstance) + .AddMethod(__Method_DeleteInstance, serviceImpl.DeleteInstance) + .AddMethod(__Method_CreateCluster, serviceImpl.CreateCluster) + .AddMethod(__Method_GetCluster, serviceImpl.GetCluster) + .AddMethod(__Method_ListClusters, serviceImpl.ListClusters) + .AddMethod(__Method_UpdateCluster, serviceImpl.UpdateCluster) + .AddMethod(__Method_PartialUpdateCluster, serviceImpl.PartialUpdateCluster) + .AddMethod(__Method_DeleteCluster, serviceImpl.DeleteCluster) + .AddMethod(__Method_CreateAppProfile, serviceImpl.CreateAppProfile) + .AddMethod(__Method_GetAppProfile, serviceImpl.GetAppProfile) + .AddMethod(__Method_ListAppProfiles, serviceImpl.ListAppProfiles) + .AddMethod(__Method_UpdateAppProfile, serviceImpl.UpdateAppProfile) + .AddMethod(__Method_DeleteAppProfile, serviceImpl.DeleteAppProfile) + .AddMethod(__Method_GetIamPolicy, serviceImpl.GetIamPolicy) + .AddMethod(__Method_SetIamPolicy, serviceImpl.SetIamPolicy) + .AddMethod(__Method_TestIamPermissions, serviceImpl.TestIamPermissions) + .AddMethod(__Method_ListHotTablets, serviceImpl.ListHotTablets).Build(); + } + + /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. + /// Note: this method is part of an experimental API that can change or be removed without any prior notice. + /// Service methods will be bound by calling AddMethod on this object. + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static void BindService(grpc::ServiceBinderBase serviceBinder, BigtableInstanceAdminBase serviceImpl) + { + serviceBinder.AddMethod(__Method_CreateInstance, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateInstance)); + serviceBinder.AddMethod(__Method_GetInstance, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetInstance)); + serviceBinder.AddMethod(__Method_ListInstances, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListInstances)); + serviceBinder.AddMethod(__Method_UpdateInstance, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateInstance)); + serviceBinder.AddMethod(__Method_PartialUpdateInstance, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PartialUpdateInstance)); + serviceBinder.AddMethod(__Method_DeleteInstance, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteInstance)); + serviceBinder.AddMethod(__Method_CreateCluster, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateCluster)); + serviceBinder.AddMethod(__Method_GetCluster, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetCluster)); + serviceBinder.AddMethod(__Method_ListClusters, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListClusters)); + serviceBinder.AddMethod(__Method_UpdateCluster, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateCluster)); + serviceBinder.AddMethod(__Method_PartialUpdateCluster, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PartialUpdateCluster)); + serviceBinder.AddMethod(__Method_DeleteCluster, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteCluster)); + serviceBinder.AddMethod(__Method_CreateAppProfile, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateAppProfile)); + serviceBinder.AddMethod(__Method_GetAppProfile, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetAppProfile)); + serviceBinder.AddMethod(__Method_ListAppProfiles, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListAppProfiles)); + serviceBinder.AddMethod(__Method_UpdateAppProfile, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateAppProfile)); + serviceBinder.AddMethod(__Method_DeleteAppProfile, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteAppProfile)); + serviceBinder.AddMethod(__Method_GetIamPolicy, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetIamPolicy)); + serviceBinder.AddMethod(__Method_SetIamPolicy, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.SetIamPolicy)); + serviceBinder.AddMethod(__Method_TestIamPermissions, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.TestIamPermissions)); + serviceBinder.AddMethod(__Method_ListHotTablets, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListHotTablets)); + } + + } +} +#endregion diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableInstanceAdminResourceNames.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableInstanceAdminResourceNames.g.cs new file mode 100755 index 000000000000..253fe79a953b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableInstanceAdminResourceNames.g.cs @@ -0,0 +1,178 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +#pragma warning disable CS8981 +using gagr = Google.Api.Gax.ResourceNames; +using gcbav = Google.Cloud.Bigtable.Admin.V2; + +namespace Google.Cloud.Bigtable.Admin.V2 +{ + public partial class CreateInstanceRequest + { + /// + /// -typed view over the resource name property. + /// + public gagr::ProjectName ParentAsProjectName + { + get => string.IsNullOrEmpty(Parent) ? null : gagr::ProjectName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class GetInstanceRequest + { + /// + /// -typed view over the resource name property. + /// + public gcbav::InstanceName InstanceName + { + get => string.IsNullOrEmpty(Name) ? null : gcbav::InstanceName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class ListInstancesRequest + { + /// + /// -typed view over the resource name property. + /// + public gagr::ProjectName ParentAsProjectName + { + get => string.IsNullOrEmpty(Parent) ? null : gagr::ProjectName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class DeleteInstanceRequest + { + /// + /// -typed view over the resource name property. + /// + public gcbav::InstanceName InstanceName + { + get => string.IsNullOrEmpty(Name) ? null : gcbav::InstanceName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class CreateClusterRequest + { + /// + /// -typed view over the resource name property. + /// + public InstanceName ParentAsInstanceName + { + get => string.IsNullOrEmpty(Parent) ? null : InstanceName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class GetClusterRequest + { + /// + /// -typed view over the resource name property. + /// + public gcbav::ClusterName ClusterName + { + get => string.IsNullOrEmpty(Name) ? null : gcbav::ClusterName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class ListClustersRequest + { + /// + /// -typed view over the resource name property. + /// + public InstanceName ParentAsInstanceName + { + get => string.IsNullOrEmpty(Parent) ? null : InstanceName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class DeleteClusterRequest + { + /// + /// -typed view over the resource name property. + /// + public gcbav::ClusterName ClusterName + { + get => string.IsNullOrEmpty(Name) ? null : gcbav::ClusterName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class CreateAppProfileRequest + { + /// + /// -typed view over the resource name property. + /// + public InstanceName ParentAsInstanceName + { + get => string.IsNullOrEmpty(Parent) ? null : InstanceName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class GetAppProfileRequest + { + /// + /// -typed view over the resource name property. + /// + public gcbav::AppProfileName AppProfileName + { + get => string.IsNullOrEmpty(Name) ? null : gcbav::AppProfileName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class ListAppProfilesRequest + { + /// + /// -typed view over the resource name property. + /// + public InstanceName ParentAsInstanceName + { + get => string.IsNullOrEmpty(Parent) ? null : InstanceName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class DeleteAppProfileRequest + { + /// + /// -typed view over the resource name property. + /// + public gcbav::AppProfileName AppProfileName + { + get => string.IsNullOrEmpty(Name) ? null : gcbav::AppProfileName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class ListHotTabletsRequest + { + /// + /// -typed view over the resource name property. + /// + public ClusterName ParentAsClusterName + { + get => string.IsNullOrEmpty(Parent) ? null : ClusterName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableTableAdmin.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableTableAdmin.g.cs new file mode 100755 index 000000000000..88f81c14649d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableTableAdmin.g.cs @@ -0,0 +1,13368 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/bigtable/admin/v2/bigtable_table_admin.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Google.Cloud.Bigtable.Admin.V2 { + + /// Holder for reflection information generated from google/bigtable/admin/v2/bigtable_table_admin.proto + public static partial class BigtableTableAdminReflection { + + #region Descriptor + /// File descriptor for google/bigtable/admin/v2/bigtable_table_admin.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BigtableTableAdminReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CjNnb29nbGUvYmlndGFibGUvYWRtaW4vdjIvYmlndGFibGVfdGFibGVfYWRt", + "aW4ucHJvdG8SGGdvb2dsZS5iaWd0YWJsZS5hZG1pbi52MhocZ29vZ2xlL2Fw", + "aS9hbm5vdGF0aW9ucy5wcm90bxoXZ29vZ2xlL2FwaS9jbGllbnQucHJvdG8a", + "H2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2dsZS9hcGkv", + "cmVzb3VyY2UucHJvdG8aJWdvb2dsZS9iaWd0YWJsZS9hZG1pbi92Mi9jb21t", + "b24ucHJvdG8aJGdvb2dsZS9iaWd0YWJsZS9hZG1pbi92Mi90YWJsZS5wcm90", + "bxoeZ29vZ2xlL2lhbS92MS9pYW1fcG9saWN5LnByb3RvGhpnb29nbGUvaWFt", + "L3YxL3BvbGljeS5wcm90bxojZ29vZ2xlL2xvbmdydW5uaW5nL29wZXJhdGlv", + "bnMucHJvdG8aHmdvb2dsZS9wcm90b2J1Zi9kdXJhdGlvbi5wcm90bxobZ29v", + "Z2xlL3Byb3RvYnVmL2VtcHR5LnByb3RvGiBnb29nbGUvcHJvdG9idWYvZmll", + "bGRfbWFzay5wcm90bxofZ29vZ2xlL3Byb3RvYnVmL3RpbWVzdGFtcC5wcm90", + "byKxAQoTUmVzdG9yZVRhYmxlUmVxdWVzdBI9CgZwYXJlbnQYASABKAlCLeBB", + "AvpBJwolYmlndGFibGVhZG1pbi5nb29nbGVhcGlzLmNvbS9JbnN0YW5jZRIV", + "Cgh0YWJsZV9pZBgCIAEoCUID4EECEjoKBmJhY2t1cBgDIAEoCUIo+kElCiNi", + "aWd0YWJsZWFkbWluLmdvb2dsZWFwaXMuY29tL0JhY2t1cEgAQggKBnNvdXJj", + "ZSKYAgoUUmVzdG9yZVRhYmxlTWV0YWRhdGESDAoEbmFtZRgBIAEoCRJACgtz", + "b3VyY2VfdHlwZRgCIAEoDjIrLmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5S", + "ZXN0b3JlU291cmNlVHlwZRI7CgtiYWNrdXBfaW5mbxgDIAEoCzIkLmdvb2ds", + "ZS5iaWd0YWJsZS5hZG1pbi52Mi5CYWNrdXBJbmZvSAASJQodb3B0aW1pemVf", + "dGFibGVfb3BlcmF0aW9uX25hbWUYBCABKAkSPQoIcHJvZ3Jlc3MYBSABKAsy", + "Ky5nb29nbGUuYmlndGFibGUuYWRtaW4udjIuT3BlcmF0aW9uUHJvZ3Jlc3NC", + "DQoLc291cmNlX2luZm8ibAodT3B0aW1pemVSZXN0b3JlZFRhYmxlTWV0YWRh", + "dGESDAoEbmFtZRgBIAEoCRI9Cghwcm9ncmVzcxgCIAEoCzIrLmdvb2dsZS5i", + "aWd0YWJsZS5hZG1pbi52Mi5PcGVyYXRpb25Qcm9ncmVzcyKBAgoSQ3JlYXRl", + "VGFibGVSZXF1ZXN0Ej0KBnBhcmVudBgBIAEoCUIt4EEC+kEnCiViaWd0YWJs", + "ZWFkbWluLmdvb2dsZWFwaXMuY29tL0luc3RhbmNlEhUKCHRhYmxlX2lkGAIg", + "ASgJQgPgQQISMwoFdGFibGUYAyABKAsyHy5nb29nbGUuYmlndGFibGUuYWRt", + "aW4udjIuVGFibGVCA+BBAhJKCg5pbml0aWFsX3NwbGl0cxgEIAMoCzIyLmdv", + "b2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5DcmVhdGVUYWJsZVJlcXVlc3QuU3Bs", + "aXQaFAoFU3BsaXQSCwoDa2V5GAEgASgMIr4BCh5DcmVhdGVUYWJsZUZyb21T", + "bmFwc2hvdFJlcXVlc3QSPQoGcGFyZW50GAEgASgJQi3gQQL6QScKJWJpZ3Rh", + "YmxlYWRtaW4uZ29vZ2xlYXBpcy5jb20vSW5zdGFuY2USFQoIdGFibGVfaWQY", + "AiABKAlCA+BBAhJGCg9zb3VyY2Vfc25hcHNob3QYAyABKAlCLeBBAvpBJwol", + "YmlndGFibGVhZG1pbi5nb29nbGVhcGlzLmNvbS9TbmFwc2hvdCKZAQoTRHJv", + "cFJvd1JhbmdlUmVxdWVzdBI4CgRuYW1lGAEgASgJQirgQQL6QSQKImJpZ3Rh", + "YmxlYWRtaW4uZ29vZ2xlYXBpcy5jb20vVGFibGUSGAoOcm93X2tleV9wcmVm", + "aXgYAiABKAxIABIkChpkZWxldGVfYWxsX2RhdGFfZnJvbV90YWJsZRgDIAEo", + "CEgAQggKBnRhcmdldCKtAQoRTGlzdFRhYmxlc1JlcXVlc3QSPQoGcGFyZW50", + "GAEgASgJQi3gQQL6QScKJWJpZ3RhYmxlYWRtaW4uZ29vZ2xlYXBpcy5jb20v", + "SW5zdGFuY2USMgoEdmlldxgCIAEoDjIkLmdvb2dsZS5iaWd0YWJsZS5hZG1p", + "bi52Mi5UYWJsZS5WaWV3EhEKCXBhZ2Vfc2l6ZRgEIAEoBRISCgpwYWdlX3Rv", + "a2VuGAMgASgJIl4KEkxpc3RUYWJsZXNSZXNwb25zZRIvCgZ0YWJsZXMYASAD", + "KAsyHy5nb29nbGUuYmlndGFibGUuYWRtaW4udjIuVGFibGUSFwoPbmV4dF9w", + "YWdlX3Rva2VuGAIgASgJIn8KD0dldFRhYmxlUmVxdWVzdBI4CgRuYW1lGAEg", + "ASgJQirgQQL6QSQKImJpZ3RhYmxlYWRtaW4uZ29vZ2xlYXBpcy5jb20vVGFi", + "bGUSMgoEdmlldxgCIAEoDjIkLmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5U", + "YWJsZS5WaWV3In8KElVwZGF0ZVRhYmxlUmVxdWVzdBIzCgV0YWJsZRgBIAEo", + "CzIfLmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5UYWJsZUID4EECEjQKC3Vw", + "ZGF0ZV9tYXNrGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFza0ID", + "4EECIoEBChNVcGRhdGVUYWJsZU1ldGFkYXRhEgwKBG5hbWUYASABKAkSLgoK", + "c3RhcnRfdGltZRgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAS", + "LAoIZW5kX3RpbWUYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1w", + "Ik4KEkRlbGV0ZVRhYmxlUmVxdWVzdBI4CgRuYW1lGAEgASgJQirgQQL6QSQK", + "ImJpZ3RhYmxlYWRtaW4uZ29vZ2xlYXBpcy5jb20vVGFibGUiUAoUVW5kZWxl", + "dGVUYWJsZVJlcXVlc3QSOAoEbmFtZRgBIAEoCUIq4EEC+kEkCiJiaWd0YWJs", + "ZWFkbWluLmdvb2dsZWFwaXMuY29tL1RhYmxlIoMBChVVbmRlbGV0ZVRhYmxl", + "TWV0YWRhdGESDAoEbmFtZRgBIAEoCRIuCgpzdGFydF90aW1lGAIgASgLMhou", + "Z29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIsCghlbmRfdGltZRgDIAEoCzIa", + "Lmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAiswMKG01vZGlmeUNvbHVtbkZh", + "bWlsaWVzUmVxdWVzdBI4CgRuYW1lGAEgASgJQirgQQL6QSQKImJpZ3RhYmxl", + "YWRtaW4uZ29vZ2xlYXBpcy5jb20vVGFibGUSXgoNbW9kaWZpY2F0aW9ucxgC", + "IAMoCzJCLmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5Nb2RpZnlDb2x1bW5G", + "YW1pbGllc1JlcXVlc3QuTW9kaWZpY2F0aW9uQgPgQQISHAoPaWdub3JlX3dh", + "cm5pbmdzGAMgASgIQgPgQQEa2wEKDE1vZGlmaWNhdGlvbhIKCgJpZBgBIAEo", + "CRI4CgZjcmVhdGUYAiABKAsyJi5nb29nbGUuYmlndGFibGUuYWRtaW4udjIu", + "Q29sdW1uRmFtaWx5SAASOAoGdXBkYXRlGAMgASgLMiYuZ29vZ2xlLmJpZ3Rh", + "YmxlLmFkbWluLnYyLkNvbHVtbkZhbWlseUgAEg4KBGRyb3AYBCABKAhIABI0", + "Cgt1cGRhdGVfbWFzaxgGIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1h", + "c2tCA+BBAUIFCgNtb2QiWwofR2VuZXJhdGVDb25zaXN0ZW5jeVRva2VuUmVx", + "dWVzdBI4CgRuYW1lGAEgASgJQirgQQL6QSQKImJpZ3RhYmxlYWRtaW4uZ29v", + "Z2xlYXBpcy5jb20vVGFibGUiPQogR2VuZXJhdGVDb25zaXN0ZW5jeVRva2Vu", + "UmVzcG9uc2USGQoRY29uc2lzdGVuY3lfdG9rZW4YASABKAkisgIKF0NoZWNr", + "Q29uc2lzdGVuY3lSZXF1ZXN0EjgKBG5hbWUYASABKAlCKuBBAvpBJAoiYmln", + "dGFibGVhZG1pbi5nb29nbGVhcGlzLmNvbS9UYWJsZRIeChFjb25zaXN0ZW5j", + "eV90b2tlbhgCIAEoCUID4EECElkKG3N0YW5kYXJkX3JlYWRfcmVtb3RlX3dy", + "aXRlcxgDIAEoCzIyLmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5TdGFuZGFy", + "ZFJlYWRSZW1vdGVXcml0ZXNIABJaChxkYXRhX2Jvb3N0X3JlYWRfbG9jYWxf", + "d3JpdGVzGAQgASgLMjIuZ29vZ2xlLmJpZ3RhYmxlLmFkbWluLnYyLkRhdGFC", + "b29zdFJlYWRMb2NhbFdyaXRlc0gAQgYKBG1vZGUiGgoYU3RhbmRhcmRSZWFk", + "UmVtb3RlV3JpdGVzIhoKGERhdGFCb29zdFJlYWRMb2NhbFdyaXRlcyIuChhD", + "aGVja0NvbnNpc3RlbmN5UmVzcG9uc2USEgoKY29uc2lzdGVudBgBIAEoCCLm", + "AQoUU25hcHNob3RUYWJsZVJlcXVlc3QSOAoEbmFtZRgBIAEoCUIq4EEC+kEk", + "CiJiaWd0YWJsZWFkbWluLmdvb2dsZWFwaXMuY29tL1RhYmxlEj0KB2NsdXN0", + "ZXIYAiABKAlCLOBBAvpBJgokYmlndGFibGVhZG1pbi5nb29nbGVhcGlzLmNv", + "bS9DbHVzdGVyEhgKC3NuYXBzaG90X2lkGAMgASgJQgPgQQISJgoDdHRsGAQg", + "ASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uEhMKC2Rlc2NyaXB0aW9u", + "GAUgASgJIlEKEkdldFNuYXBzaG90UmVxdWVzdBI7CgRuYW1lGAEgASgJQi3g", + "QQL6QScKJWJpZ3RhYmxlYWRtaW4uZ29vZ2xlYXBpcy5jb20vU25hcHNob3Qi", + "ewoUTGlzdFNuYXBzaG90c1JlcXVlc3QSPAoGcGFyZW50GAEgASgJQizgQQL6", + "QSYKJGJpZ3RhYmxlYWRtaW4uZ29vZ2xlYXBpcy5jb20vQ2x1c3RlchIRCglw", + "YWdlX3NpemUYAiABKAUSEgoKcGFnZV90b2tlbhgDIAEoCSJnChVMaXN0U25h", + "cHNob3RzUmVzcG9uc2USNQoJc25hcHNob3RzGAEgAygLMiIuZ29vZ2xlLmJp", + "Z3RhYmxlLmFkbWluLnYyLlNuYXBzaG90EhcKD25leHRfcGFnZV90b2tlbhgC", + "IAEoCSJUChVEZWxldGVTbmFwc2hvdFJlcXVlc3QSOwoEbmFtZRgBIAEoCUIt", + "4EEC+kEnCiViaWd0YWJsZWFkbWluLmdvb2dsZWFwaXMuY29tL1NuYXBzaG90", + "IsQBChVTbmFwc2hvdFRhYmxlTWV0YWRhdGESSAoQb3JpZ2luYWxfcmVxdWVz", + "dBgBIAEoCzIuLmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5TbmFwc2hvdFRh", + "YmxlUmVxdWVzdBIwCgxyZXF1ZXN0X3RpbWUYAiABKAsyGi5nb29nbGUucHJv", + "dG9idWYuVGltZXN0YW1wEi8KC2ZpbmlzaF90aW1lGAMgASgLMhouZ29vZ2xl", + "LnByb3RvYnVmLlRpbWVzdGFtcCLYAQofQ3JlYXRlVGFibGVGcm9tU25hcHNo", + "b3RNZXRhZGF0YRJSChBvcmlnaW5hbF9yZXF1ZXN0GAEgASgLMjguZ29vZ2xl", + "LmJpZ3RhYmxlLmFkbWluLnYyLkNyZWF0ZVRhYmxlRnJvbVNuYXBzaG90UmVx", + "dWVzdBIwCgxyZXF1ZXN0X3RpbWUYAiABKAsyGi5nb29nbGUucHJvdG9idWYu", + "VGltZXN0YW1wEi8KC2ZpbmlzaF90aW1lGAMgASgLMhouZ29vZ2xlLnByb3Rv", + "YnVmLlRpbWVzdGFtcCKiAQoTQ3JlYXRlQmFja3VwUmVxdWVzdBI8CgZwYXJl", + "bnQYASABKAlCLOBBAvpBJgokYmlndGFibGVhZG1pbi5nb29nbGVhcGlzLmNv", + "bS9DbHVzdGVyEhYKCWJhY2t1cF9pZBgCIAEoCUID4EECEjUKBmJhY2t1cBgD", + "IAEoCzIgLmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5CYWNrdXBCA+BBAiKY", + "AQoUQ3JlYXRlQmFja3VwTWV0YWRhdGESDAoEbmFtZRgBIAEoCRIUCgxzb3Vy", + "Y2VfdGFibGUYAiABKAkSLgoKc3RhcnRfdGltZRgDIAEoCzIaLmdvb2dsZS5w", + "cm90b2J1Zi5UaW1lc3RhbXASLAoIZW5kX3RpbWUYBCABKAsyGi5nb29nbGUu", + "cHJvdG9idWYuVGltZXN0YW1wIoIBChNVcGRhdGVCYWNrdXBSZXF1ZXN0EjUK", + "BmJhY2t1cBgBIAEoCzIgLmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5CYWNr", + "dXBCA+BBAhI0Cgt1cGRhdGVfbWFzaxgCIAEoCzIaLmdvb2dsZS5wcm90b2J1", + "Zi5GaWVsZE1hc2tCA+BBAiJNChBHZXRCYWNrdXBSZXF1ZXN0EjkKBG5hbWUY", + "ASABKAlCK+BBAvpBJQojYmlndGFibGVhZG1pbi5nb29nbGVhcGlzLmNvbS9C", + "YWNrdXAiUAoTRGVsZXRlQmFja3VwUmVxdWVzdBI5CgRuYW1lGAEgASgJQivg", + "QQL6QSUKI2JpZ3RhYmxlYWRtaW4uZ29vZ2xlYXBpcy5jb20vQmFja3VwIpsB", + "ChJMaXN0QmFja3Vwc1JlcXVlc3QSPAoGcGFyZW50GAEgASgJQizgQQL6QSYK", + "JGJpZ3RhYmxlYWRtaW4uZ29vZ2xlYXBpcy5jb20vQ2x1c3RlchIOCgZmaWx0", + "ZXIYAiABKAkSEAoIb3JkZXJfYnkYAyABKAkSEQoJcGFnZV9zaXplGAQgASgF", + "EhIKCnBhZ2VfdG9rZW4YBSABKAkiYQoTTGlzdEJhY2t1cHNSZXNwb25zZRIx", + "CgdiYWNrdXBzGAEgAygLMiAuZ29vZ2xlLmJpZ3RhYmxlLmFkbWluLnYyLkJh", + "Y2t1cBIXCg9uZXh0X3BhZ2VfdG9rZW4YAiABKAki4wEKEUNvcHlCYWNrdXBS", + "ZXF1ZXN0EjwKBnBhcmVudBgBIAEoCUIs4EEC+kEmCiRiaWd0YWJsZWFkbWlu", + "Lmdvb2dsZWFwaXMuY29tL0NsdXN0ZXISFgoJYmFja3VwX2lkGAIgASgJQgPg", + "QQISQgoNc291cmNlX2JhY2t1cBgDIAEoCUIr4EEC+kElCiNiaWd0YWJsZWFk", + "bWluLmdvb2dsZWFwaXMuY29tL0JhY2t1cBI0CgtleHBpcmVfdGltZRgEIAEo", + "CzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BBAiLNAQoSQ29weUJh", + "Y2t1cE1ldGFkYXRhEjYKBG5hbWUYASABKAlCKPpBJQojYmlndGFibGVhZG1p", + "bi5nb29nbGVhcGlzLmNvbS9CYWNrdXASQAoSc291cmNlX2JhY2t1cF9pbmZv", + "GAIgASgLMiQuZ29vZ2xlLmJpZ3RhYmxlLmFkbWluLnYyLkJhY2t1cEluZm8S", + "PQoIcHJvZ3Jlc3MYAyABKAsyKy5nb29nbGUuYmlndGFibGUuYWRtaW4udjIu", + "T3BlcmF0aW9uUHJvZ3Jlc3MiywEKG0NyZWF0ZUF1dGhvcml6ZWRWaWV3UmVx", + "dWVzdBJDCgZwYXJlbnQYASABKAlCM+BBAvpBLRIrYmlndGFibGVhZG1pbi5n", + "b29nbGVhcGlzLmNvbS9BdXRob3JpemVkVmlldxIfChJhdXRob3JpemVkX3Zp", + "ZXdfaWQYAiABKAlCA+BBAhJGCg9hdXRob3JpemVkX3ZpZXcYAyABKAsyKC5n", + "b29nbGUuYmlndGFibGUuYWRtaW4udjIuQXV0aG9yaXplZFZpZXdCA+BBAiLS", + "AQocQ3JlYXRlQXV0aG9yaXplZFZpZXdNZXRhZGF0YRJPChBvcmlnaW5hbF9y", + "ZXF1ZXN0GAEgASgLMjUuZ29vZ2xlLmJpZ3RhYmxlLmFkbWluLnYyLkNyZWF0", + "ZUF1dGhvcml6ZWRWaWV3UmVxdWVzdBIwCgxyZXF1ZXN0X3RpbWUYAiABKAsy", + "Gi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi8KC2ZpbmlzaF90aW1lGAMg", + "ASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCLcAQoaTGlzdEF1dGhv", + "cml6ZWRWaWV3c1JlcXVlc3QSQwoGcGFyZW50GAEgASgJQjPgQQL6QS0SK2Jp", + "Z3RhYmxlYWRtaW4uZ29vZ2xlYXBpcy5jb20vQXV0aG9yaXplZFZpZXcSFgoJ", + "cGFnZV9zaXplGAIgASgFQgPgQQESFwoKcGFnZV90b2tlbhgDIAEoCUID4EEB", + "EkgKBHZpZXcYBCABKA4yNS5nb29nbGUuYmlndGFibGUuYWRtaW4udjIuQXV0", + "aG9yaXplZFZpZXcuUmVzcG9uc2VWaWV3QgPgQQEiegobTGlzdEF1dGhvcml6", + "ZWRWaWV3c1Jlc3BvbnNlEkIKEGF1dGhvcml6ZWRfdmlld3MYASADKAsyKC5n", + "b29nbGUuYmlndGFibGUuYWRtaW4udjIuQXV0aG9yaXplZFZpZXcSFwoPbmV4", + "dF9wYWdlX3Rva2VuGAIgASgJIqcBChhHZXRBdXRob3JpemVkVmlld1JlcXVl", + "c3QSQQoEbmFtZRgBIAEoCUIz4EEC+kEtCitiaWd0YWJsZWFkbWluLmdvb2ds", + "ZWFwaXMuY29tL0F1dGhvcml6ZWRWaWV3EkgKBHZpZXcYAiABKA4yNS5nb29n", + "bGUuYmlndGFibGUuYWRtaW4udjIuQXV0aG9yaXplZFZpZXcuUmVzcG9uc2VW", + "aWV3QgPgQQEiuQEKG1VwZGF0ZUF1dGhvcml6ZWRWaWV3UmVxdWVzdBJGCg9h", + "dXRob3JpemVkX3ZpZXcYASABKAsyKC5nb29nbGUuYmlndGFibGUuYWRtaW4u", + "djIuQXV0aG9yaXplZFZpZXdCA+BBAhI0Cgt1cGRhdGVfbWFzaxgCIAEoCzIa", + "Lmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2tCA+BBARIcCg9pZ25vcmVfd2Fy", + "bmluZ3MYAyABKAhCA+BBASLSAQocVXBkYXRlQXV0aG9yaXplZFZpZXdNZXRh", + "ZGF0YRJPChBvcmlnaW5hbF9yZXF1ZXN0GAEgASgLMjUuZ29vZ2xlLmJpZ3Rh", + "YmxlLmFkbWluLnYyLlVwZGF0ZUF1dGhvcml6ZWRWaWV3UmVxdWVzdBIwCgxy", + "ZXF1ZXN0X3RpbWUYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1w", + "Ei8KC2ZpbmlzaF90aW1lGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVz", + "dGFtcCJzChtEZWxldGVBdXRob3JpemVkVmlld1JlcXVlc3QSQQoEbmFtZRgB", + "IAEoCUIz4EEC+kEtCitiaWd0YWJsZWFkbWluLmdvb2dsZWFwaXMuY29tL0F1", + "dGhvcml6ZWRWaWV3EhEKBGV0YWcYAiABKAlCA+BBATK2MwoSQmlndGFibGVU", + "YWJsZUFkbWluEqsBCgtDcmVhdGVUYWJsZRIsLmdvb2dsZS5iaWd0YWJsZS5h", + "ZG1pbi52Mi5DcmVhdGVUYWJsZVJlcXVlc3QaHy5nb29nbGUuYmlndGFibGUu", + "YWRtaW4udjIuVGFibGUiTdpBFXBhcmVudCx0YWJsZV9pZCx0YWJsZYLT5JMC", + "LyIqL3YyL3twYXJlbnQ9cHJvamVjdHMvKi9pbnN0YW5jZXMvKn0vdGFibGVz", + "OgEqEooCChdDcmVhdGVUYWJsZUZyb21TbmFwc2hvdBI4Lmdvb2dsZS5iaWd0", + "YWJsZS5hZG1pbi52Mi5DcmVhdGVUYWJsZUZyb21TbmFwc2hvdFJlcXVlc3Qa", + "HS5nb29nbGUubG9uZ3J1bm5pbmcuT3BlcmF0aW9uIpUBykEoCgVUYWJsZRIf", + "Q3JlYXRlVGFibGVGcm9tU25hcHNob3RNZXRhZGF0YdpBH3BhcmVudCx0YWJs", + "ZV9pZCxzb3VyY2Vfc25hcHNob3SC0+STAkIiPS92Mi97cGFyZW50PXByb2pl", + "Y3RzLyovaW5zdGFuY2VzLyp9L3RhYmxlczpjcmVhdGVGcm9tU25hcHNob3Q6", + "ASoSpAEKCkxpc3RUYWJsZXMSKy5nb29nbGUuYmlndGFibGUuYWRtaW4udjIu", + "TGlzdFRhYmxlc1JlcXVlc3QaLC5nb29nbGUuYmlndGFibGUuYWRtaW4udjIu", + "TGlzdFRhYmxlc1Jlc3BvbnNlIjvaQQZwYXJlbnSC0+STAiwSKi92Mi97cGFy", + "ZW50PXByb2plY3RzLyovaW5zdGFuY2VzLyp9L3RhYmxlcxKRAQoIR2V0VGFi", + "bGUSKS5nb29nbGUuYmlndGFibGUuYWRtaW4udjIuR2V0VGFibGVSZXF1ZXN0", + "Gh8uZ29vZ2xlLmJpZ3RhYmxlLmFkbWluLnYyLlRhYmxlIjnaQQRuYW1lgtPk", + "kwIsEiovdjIve25hbWU9cHJvamVjdHMvKi9pbnN0YW5jZXMvKi90YWJsZXMv", + "Kn0SzgEKC1VwZGF0ZVRhYmxlEiwuZ29vZ2xlLmJpZ3RhYmxlLmFkbWluLnYy", + "LlVwZGF0ZVRhYmxlUmVxdWVzdBodLmdvb2dsZS5sb25ncnVubmluZy5PcGVy", + "YXRpb24icspBHAoFVGFibGUSE1VwZGF0ZVRhYmxlTWV0YWRhdGHaQRF0YWJs", + "ZSx1cGRhdGVfbWFza4LT5JMCOTIwL3YyL3t0YWJsZS5uYW1lPXByb2plY3Rz", + "LyovaW5zdGFuY2VzLyovdGFibGVzLyp9OgV0YWJsZRKOAQoLRGVsZXRlVGFi", + "bGUSLC5nb29nbGUuYmlndGFibGUuYWRtaW4udjIuRGVsZXRlVGFibGVSZXF1", + "ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IjnaQQRuYW1lgtPkkwIsKiov", + "djIve25hbWU9cHJvamVjdHMvKi9pbnN0YW5jZXMvKi90YWJsZXMvKn0SxgEK", + "DVVuZGVsZXRlVGFibGUSLi5nb29nbGUuYmlndGFibGUuYWRtaW4udjIuVW5k", + "ZWxldGVUYWJsZVJlcXVlc3QaHS5nb29nbGUubG9uZ3J1bm5pbmcuT3BlcmF0", + "aW9uImbKQR4KBVRhYmxlEhVVbmRlbGV0ZVRhYmxlTWV0YWRhdGHaQQRuYW1l", + "gtPkkwI4IjMvdjIve25hbWU9cHJvamVjdHMvKi9pbnN0YW5jZXMvKi90YWJs", + "ZXMvKn06dW5kZWxldGU6ASoSoQIKFENyZWF0ZUF1dGhvcml6ZWRWaWV3EjUu", + "Z29vZ2xlLmJpZ3RhYmxlLmFkbWluLnYyLkNyZWF0ZUF1dGhvcml6ZWRWaWV3", + "UmVxdWVzdBodLmdvb2dsZS5sb25ncnVubmluZy5PcGVyYXRpb24isgHKQS4K", + "DkF1dGhvcml6ZWRWaWV3EhxDcmVhdGVBdXRob3JpemVkVmlld01ldGFkYXRh", + "2kEpcGFyZW50LGF1dGhvcml6ZWRfdmlldyxhdXRob3JpemVkX3ZpZXdfaWSC", + "0+STAk8iPC92Mi97cGFyZW50PXByb2plY3RzLyovaW5zdGFuY2VzLyovdGFi", + "bGVzLyp9L2F1dGhvcml6ZWRWaWV3czoPYXV0aG9yaXplZF92aWV3EtEBChNM", + "aXN0QXV0aG9yaXplZFZpZXdzEjQuZ29vZ2xlLmJpZ3RhYmxlLmFkbWluLnYy", + "Lkxpc3RBdXRob3JpemVkVmlld3NSZXF1ZXN0GjUuZ29vZ2xlLmJpZ3RhYmxl", + "LmFkbWluLnYyLkxpc3RBdXRob3JpemVkVmlld3NSZXNwb25zZSJN2kEGcGFy", + "ZW50gtPkkwI+EjwvdjIve3BhcmVudD1wcm9qZWN0cy8qL2luc3RhbmNlcy8q", + "L3RhYmxlcy8qfS9hdXRob3JpemVkVmlld3MSvgEKEUdldEF1dGhvcml6ZWRW", + "aWV3EjIuZ29vZ2xlLmJpZ3RhYmxlLmFkbWluLnYyLkdldEF1dGhvcml6ZWRW", + "aWV3UmVxdWVzdBooLmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5BdXRob3Jp", + "emVkVmlldyJL2kEEbmFtZYLT5JMCPhI8L3YyL3tuYW1lPXByb2plY3RzLyov", + "aW5zdGFuY2VzLyovdGFibGVzLyovYXV0aG9yaXplZFZpZXdzLyp9EqMCChRV", + "cGRhdGVBdXRob3JpemVkVmlldxI1Lmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52", + "Mi5VcGRhdGVBdXRob3JpemVkVmlld1JlcXVlc3QaHS5nb29nbGUubG9uZ3J1", + "bm5pbmcuT3BlcmF0aW9uIrQBykEuCg5BdXRob3JpemVkVmlldxIcVXBkYXRl", + "QXV0aG9yaXplZFZpZXdNZXRhZGF0YdpBG2F1dGhvcml6ZWRfdmlldyx1cGRh", + "dGVfbWFza4LT5JMCXzJML3YyL3thdXRob3JpemVkX3ZpZXcubmFtZT1wcm9q", + "ZWN0cy8qL2luc3RhbmNlcy8qL3RhYmxlcy8qL2F1dGhvcml6ZWRWaWV3cy8q", + "fToPYXV0aG9yaXplZF92aWV3ErIBChREZWxldGVBdXRob3JpemVkVmlldxI1", + "Lmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5EZWxldGVBdXRob3JpemVkVmll", + "d1JlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiS9pBBG5hbWWC0+ST", + "Aj4qPC92Mi97bmFtZT1wcm9qZWN0cy8qL2luc3RhbmNlcy8qL3RhYmxlcy8q", + "L2F1dGhvcml6ZWRWaWV3cy8qfRLPAQoUTW9kaWZ5Q29sdW1uRmFtaWxpZXMS", + "NS5nb29nbGUuYmlndGFibGUuYWRtaW4udjIuTW9kaWZ5Q29sdW1uRmFtaWxp", + "ZXNSZXF1ZXN0Gh8uZ29vZ2xlLmJpZ3RhYmxlLmFkbWluLnYyLlRhYmxlIl/a", + "QRJuYW1lLG1vZGlmaWNhdGlvbnOC0+STAkQiPy92Mi97bmFtZT1wcm9qZWN0", + "cy8qL2luc3RhbmNlcy8qL3RhYmxlcy8qfTptb2RpZnlDb2x1bW5GYW1pbGll", + "czoBKhKZAQoMRHJvcFJvd1JhbmdlEi0uZ29vZ2xlLmJpZ3RhYmxlLmFkbWlu", + "LnYyLkRyb3BSb3dSYW5nZVJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1w", + "dHkiQoLT5JMCPCI3L3YyL3tuYW1lPXByb2plY3RzLyovaW5zdGFuY2VzLyov", + "dGFibGVzLyp9OmRyb3BSb3dSYW5nZToBKhLoAQoYR2VuZXJhdGVDb25zaXN0", + "ZW5jeVRva2VuEjkuZ29vZ2xlLmJpZ3RhYmxlLmFkbWluLnYyLkdlbmVyYXRl", + "Q29uc2lzdGVuY3lUb2tlblJlcXVlc3QaOi5nb29nbGUuYmlndGFibGUuYWRt", + "aW4udjIuR2VuZXJhdGVDb25zaXN0ZW5jeVRva2VuUmVzcG9uc2UiVdpBBG5h", + "bWWC0+STAkgiQy92Mi97bmFtZT1wcm9qZWN0cy8qL2luc3RhbmNlcy8qL3Rh", + "Ymxlcy8qfTpnZW5lcmF0ZUNvbnNpc3RlbmN5VG9rZW46ASoS2gEKEENoZWNr", + "Q29uc2lzdGVuY3kSMS5nb29nbGUuYmlndGFibGUuYWRtaW4udjIuQ2hlY2tD", + "b25zaXN0ZW5jeVJlcXVlc3QaMi5nb29nbGUuYmlndGFibGUuYWRtaW4udjIu", + "Q2hlY2tDb25zaXN0ZW5jeVJlc3BvbnNlIl/aQRZuYW1lLGNvbnNpc3RlbmN5", + "X3Rva2VugtPkkwJAIjsvdjIve25hbWU9cHJvamVjdHMvKi9pbnN0YW5jZXMv", + "Ki90YWJsZXMvKn06Y2hlY2tDb25zaXN0ZW5jeToBKhLqAQoNU25hcHNob3RU", + "YWJsZRIuLmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5TbmFwc2hvdFRhYmxl", + "UmVxdWVzdBodLmdvb2dsZS5sb25ncnVubmluZy5PcGVyYXRpb24iiQHKQSEK", + "CFNuYXBzaG90EhVTbmFwc2hvdFRhYmxlTWV0YWRhdGHaQSRuYW1lLGNsdXN0", + "ZXIsc25hcHNob3RfaWQsZGVzY3JpcHRpb26C0+STAjgiMy92Mi97bmFtZT1w", + "cm9qZWN0cy8qL2luc3RhbmNlcy8qL3RhYmxlcy8qfTpzbmFwc2hvdDoBKhKo", + "AQoLR2V0U25hcHNob3QSLC5nb29nbGUuYmlndGFibGUuYWRtaW4udjIuR2V0", + "U25hcHNob3RSZXF1ZXN0GiIuZ29vZ2xlLmJpZ3RhYmxlLmFkbWluLnYyLlNu", + "YXBzaG90IkfaQQRuYW1lgtPkkwI6EjgvdjIve25hbWU9cHJvamVjdHMvKi9p", + "bnN0YW5jZXMvKi9jbHVzdGVycy8qL3NuYXBzaG90cy8qfRK7AQoNTGlzdFNu", + "YXBzaG90cxIuLmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5MaXN0U25hcHNo", + "b3RzUmVxdWVzdBovLmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5MaXN0U25h", + "cHNob3RzUmVzcG9uc2UiSdpBBnBhcmVudILT5JMCOhI4L3YyL3twYXJlbnQ9", + "cHJvamVjdHMvKi9pbnN0YW5jZXMvKi9jbHVzdGVycy8qfS9zbmFwc2hvdHMS", + "ogEKDkRlbGV0ZVNuYXBzaG90Ei8uZ29vZ2xlLmJpZ3RhYmxlLmFkbWluLnYy", + "LkRlbGV0ZVNuYXBzaG90UmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0", + "eSJH2kEEbmFtZYLT5JMCOio4L3YyL3tuYW1lPXByb2plY3RzLyovaW5zdGFu", + "Y2VzLyovY2x1c3RlcnMvKi9zbmFwc2hvdHMvKn0S4AEKDENyZWF0ZUJhY2t1", + "cBItLmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5DcmVhdGVCYWNrdXBSZXF1", + "ZXN0Gh0uZ29vZ2xlLmxvbmdydW5uaW5nLk9wZXJhdGlvbiKBAcpBHgoGQmFj", + "a3VwEhRDcmVhdGVCYWNrdXBNZXRhZGF0YdpBF3BhcmVudCxiYWNrdXBfaWQs", + "YmFja3VwgtPkkwJAIjYvdjIve3BhcmVudD1wcm9qZWN0cy8qL2luc3RhbmNl", + "cy8qL2NsdXN0ZXJzLyp9L2JhY2t1cHM6BmJhY2t1cBKgAQoJR2V0QmFja3Vw", + "EiouZ29vZ2xlLmJpZ3RhYmxlLmFkbWluLnYyLkdldEJhY2t1cFJlcXVlc3Qa", + "IC5nb29nbGUuYmlndGFibGUuYWRtaW4udjIuQmFja3VwIkXaQQRuYW1lgtPk", + "kwI4EjYvdjIve25hbWU9cHJvamVjdHMvKi9pbnN0YW5jZXMvKi9jbHVzdGVy", + "cy8qL2JhY2t1cHMvKn0SwwEKDFVwZGF0ZUJhY2t1cBItLmdvb2dsZS5iaWd0", + "YWJsZS5hZG1pbi52Mi5VcGRhdGVCYWNrdXBSZXF1ZXN0GiAuZ29vZ2xlLmJp", + "Z3RhYmxlLmFkbWluLnYyLkJhY2t1cCJi2kESYmFja3VwLHVwZGF0ZV9tYXNr", + "gtPkkwJHMj0vdjIve2JhY2t1cC5uYW1lPXByb2plY3RzLyovaW5zdGFuY2Vz", + "LyovY2x1c3RlcnMvKi9iYWNrdXBzLyp9OgZiYWNrdXASnAEKDERlbGV0ZUJh", + "Y2t1cBItLmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5EZWxldGVCYWNrdXBS", + "ZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IkXaQQRuYW1lgtPkkwI4", + "KjYvdjIve25hbWU9cHJvamVjdHMvKi9pbnN0YW5jZXMvKi9jbHVzdGVycy8q", + "L2JhY2t1cHMvKn0SswEKC0xpc3RCYWNrdXBzEiwuZ29vZ2xlLmJpZ3RhYmxl", + "LmFkbWluLnYyLkxpc3RCYWNrdXBzUmVxdWVzdBotLmdvb2dsZS5iaWd0YWJs", + "ZS5hZG1pbi52Mi5MaXN0QmFja3Vwc1Jlc3BvbnNlIkfaQQZwYXJlbnSC0+ST", + "AjgSNi92Mi97cGFyZW50PXByb2plY3RzLyovaW5zdGFuY2VzLyovY2x1c3Rl", + "cnMvKn0vYmFja3VwcxK7AQoMUmVzdG9yZVRhYmxlEi0uZ29vZ2xlLmJpZ3Rh", + "YmxlLmFkbWluLnYyLlJlc3RvcmVUYWJsZVJlcXVlc3QaHS5nb29nbGUubG9u", + "Z3J1bm5pbmcuT3BlcmF0aW9uIl3KQR0KBVRhYmxlEhRSZXN0b3JlVGFibGVN", + "ZXRhZGF0YYLT5JMCNyIyL3YyL3twYXJlbnQ9cHJvamVjdHMvKi9pbnN0YW5j", + "ZXMvKn0vdGFibGVzOnJlc3RvcmU6ASoS7QEKCkNvcHlCYWNrdXASKy5nb29n", + "bGUuYmlndGFibGUuYWRtaW4udjIuQ29weUJhY2t1cFJlcXVlc3QaHS5nb29n", + "bGUubG9uZ3J1bm5pbmcuT3BlcmF0aW9uIpIBykEcCgZCYWNrdXASEkNvcHlC", + "YWNrdXBNZXRhZGF0YdpBKnBhcmVudCxiYWNrdXBfaWQsc291cmNlX2JhY2t1", + "cCxleHBpcmVfdGltZYLT5JMCQCI7L3YyL3twYXJlbnQ9cHJvamVjdHMvKi9p", + "bnN0YW5jZXMvKi9jbHVzdGVycy8qfS9iYWNrdXBzOmNvcHk6ASoS7AEKDEdl", + "dElhbVBvbGljeRIiLmdvb2dsZS5pYW0udjEuR2V0SWFtUG9saWN5UmVxdWVz", + "dBoVLmdvb2dsZS5pYW0udjEuUG9saWN5IqAB2kEIcmVzb3VyY2WC0+STAo4B", + "IjsvdjIve3Jlc291cmNlPXByb2plY3RzLyovaW5zdGFuY2VzLyovdGFibGVz", + "Lyp9OmdldElhbVBvbGljeToBKlpMIkcvdjIve3Jlc291cmNlPXByb2plY3Rz", + "LyovaW5zdGFuY2VzLyovY2x1c3RlcnMvKi9iYWNrdXBzLyp9OmdldElhbVBv", + "bGljeToBKhLzAQoMU2V0SWFtUG9saWN5EiIuZ29vZ2xlLmlhbS52MS5TZXRJ", + "YW1Qb2xpY3lSZXF1ZXN0GhUuZ29vZ2xlLmlhbS52MS5Qb2xpY3kipwHaQQ9y", + "ZXNvdXJjZSxwb2xpY3mC0+STAo4BIjsvdjIve3Jlc291cmNlPXByb2plY3Rz", + "LyovaW5zdGFuY2VzLyovdGFibGVzLyp9OnNldElhbVBvbGljeToBKlpMIkcv", + "djIve3Jlc291cmNlPXByb2plY3RzLyovaW5zdGFuY2VzLyovY2x1c3RlcnMv", + "Ki9iYWNrdXBzLyp9OnNldElhbVBvbGljeToBKhKkAgoSVGVzdElhbVBlcm1p", + "c3Npb25zEiguZ29vZ2xlLmlhbS52MS5UZXN0SWFtUGVybWlzc2lvbnNSZXF1", + "ZXN0GikuZ29vZ2xlLmlhbS52MS5UZXN0SWFtUGVybWlzc2lvbnNSZXNwb25z", + "ZSK4AdpBFHJlc291cmNlLHBlcm1pc3Npb25zgtPkkwKaASJBL3YyL3tyZXNv", + "dXJjZT1wcm9qZWN0cy8qL2luc3RhbmNlcy8qL3RhYmxlcy8qfTp0ZXN0SWFt", + "UGVybWlzc2lvbnM6ASpaUiJNL3YyL3tyZXNvdXJjZT1wcm9qZWN0cy8qL2lu", + "c3RhbmNlcy8qL2NsdXN0ZXJzLyovYmFja3Vwcy8qfTp0ZXN0SWFtUGVybWlz", + "c2lvbnM6ASoa3gLKQRxiaWd0YWJsZWFkbWluLmdvb2dsZWFwaXMuY29t0kG7", + "Amh0dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvYmlndGFibGUuYWRt", + "aW4saHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5jb20vYXV0aC9iaWd0YWJsZS5h", + "ZG1pbi50YWJsZSxodHRwczovL3d3dy5nb29nbGVhcGlzLmNvbS9hdXRoL2Ns", + "b3VkLWJpZ3RhYmxlLmFkbWluLGh0dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29t", + "L2F1dGgvY2xvdWQtYmlndGFibGUuYWRtaW4udGFibGUsaHR0cHM6Ly93d3cu", + "Z29vZ2xlYXBpcy5jb20vYXV0aC9jbG91ZC1wbGF0Zm9ybSxodHRwczovL3d3", + "dy5nb29nbGVhcGlzLmNvbS9hdXRoL2Nsb3VkLXBsYXRmb3JtLnJlYWQtb25s", + "eULaAQocY29tLmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52MkIXQmlndGFibGVU", + "YWJsZUFkbWluUHJvdG9QAVo4Y2xvdWQuZ29vZ2xlLmNvbS9nby9iaWd0YWJs", + "ZS9hZG1pbi9hcGl2Mi9hZG1pbnBiO2FkbWlucGKqAh5Hb29nbGUuQ2xvdWQu", + "QmlndGFibGUuQWRtaW4uVjLKAh5Hb29nbGVcQ2xvdWRcQmlndGFibGVcQWRt", + "aW5cVjLqAiJHb29nbGU6OkNsb3VkOjpCaWd0YWJsZTo6QWRtaW46OlYyYgZw", + "cm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Cloud.Bigtable.Admin.V2.CommonReflection.Descriptor, global::Google.Cloud.Bigtable.Admin.V2.TableReflection.Descriptor, global::Google.Cloud.Iam.V1.IamPolicyReflection.Descriptor, global::Google.Cloud.Iam.V1.PolicyReflection.Descriptor, global::Google.LongRunning.OperationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.RestoreTableRequest), global::Google.Cloud.Bigtable.Admin.V2.RestoreTableRequest.Parser, new[]{ "Parent", "TableId", "Backup" }, new[]{ "Source" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.RestoreTableMetadata), global::Google.Cloud.Bigtable.Admin.V2.RestoreTableMetadata.Parser, new[]{ "Name", "SourceType", "BackupInfo", "OptimizeTableOperationName", "Progress" }, new[]{ "SourceInfo" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.OptimizeRestoredTableMetadata), global::Google.Cloud.Bigtable.Admin.V2.OptimizeRestoredTableMetadata.Parser, new[]{ "Name", "Progress" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.CreateTableRequest), global::Google.Cloud.Bigtable.Admin.V2.CreateTableRequest.Parser, new[]{ "Parent", "TableId", "Table", "InitialSplits" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.CreateTableRequest.Types.Split), global::Google.Cloud.Bigtable.Admin.V2.CreateTableRequest.Types.Split.Parser, new[]{ "Key" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.CreateTableFromSnapshotRequest), global::Google.Cloud.Bigtable.Admin.V2.CreateTableFromSnapshotRequest.Parser, new[]{ "Parent", "TableId", "SourceSnapshot" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.DropRowRangeRequest), global::Google.Cloud.Bigtable.Admin.V2.DropRowRangeRequest.Parser, new[]{ "Name", "RowKeyPrefix", "DeleteAllDataFromTable" }, new[]{ "Target" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.ListTablesRequest), global::Google.Cloud.Bigtable.Admin.V2.ListTablesRequest.Parser, new[]{ "Parent", "View", "PageSize", "PageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.ListTablesResponse), global::Google.Cloud.Bigtable.Admin.V2.ListTablesResponse.Parser, new[]{ "Tables", "NextPageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.GetTableRequest), global::Google.Cloud.Bigtable.Admin.V2.GetTableRequest.Parser, new[]{ "Name", "View" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.UpdateTableRequest), global::Google.Cloud.Bigtable.Admin.V2.UpdateTableRequest.Parser, new[]{ "Table", "UpdateMask" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.UpdateTableMetadata), global::Google.Cloud.Bigtable.Admin.V2.UpdateTableMetadata.Parser, new[]{ "Name", "StartTime", "EndTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.DeleteTableRequest), global::Google.Cloud.Bigtable.Admin.V2.DeleteTableRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.UndeleteTableRequest), global::Google.Cloud.Bigtable.Admin.V2.UndeleteTableRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.UndeleteTableMetadata), global::Google.Cloud.Bigtable.Admin.V2.UndeleteTableMetadata.Parser, new[]{ "Name", "StartTime", "EndTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.ModifyColumnFamiliesRequest), global::Google.Cloud.Bigtable.Admin.V2.ModifyColumnFamiliesRequest.Parser, new[]{ "Name", "Modifications", "IgnoreWarnings" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.ModifyColumnFamiliesRequest.Types.Modification), global::Google.Cloud.Bigtable.Admin.V2.ModifyColumnFamiliesRequest.Types.Modification.Parser, new[]{ "Id", "Create", "Update", "Drop", "UpdateMask" }, new[]{ "Mod" }, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.GenerateConsistencyTokenRequest), global::Google.Cloud.Bigtable.Admin.V2.GenerateConsistencyTokenRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.GenerateConsistencyTokenResponse), global::Google.Cloud.Bigtable.Admin.V2.GenerateConsistencyTokenResponse.Parser, new[]{ "ConsistencyToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.CheckConsistencyRequest), global::Google.Cloud.Bigtable.Admin.V2.CheckConsistencyRequest.Parser, new[]{ "Name", "ConsistencyToken", "StandardReadRemoteWrites", "DataBoostReadLocalWrites" }, new[]{ "Mode" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.StandardReadRemoteWrites), global::Google.Cloud.Bigtable.Admin.V2.StandardReadRemoteWrites.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.DataBoostReadLocalWrites), global::Google.Cloud.Bigtable.Admin.V2.DataBoostReadLocalWrites.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.CheckConsistencyResponse), global::Google.Cloud.Bigtable.Admin.V2.CheckConsistencyResponse.Parser, new[]{ "Consistent" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.SnapshotTableRequest), global::Google.Cloud.Bigtable.Admin.V2.SnapshotTableRequest.Parser, new[]{ "Name", "Cluster", "SnapshotId", "Ttl", "Description" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.GetSnapshotRequest), global::Google.Cloud.Bigtable.Admin.V2.GetSnapshotRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.ListSnapshotsRequest), global::Google.Cloud.Bigtable.Admin.V2.ListSnapshotsRequest.Parser, new[]{ "Parent", "PageSize", "PageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.ListSnapshotsResponse), global::Google.Cloud.Bigtable.Admin.V2.ListSnapshotsResponse.Parser, new[]{ "Snapshots", "NextPageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.DeleteSnapshotRequest), global::Google.Cloud.Bigtable.Admin.V2.DeleteSnapshotRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.SnapshotTableMetadata), global::Google.Cloud.Bigtable.Admin.V2.SnapshotTableMetadata.Parser, new[]{ "OriginalRequest", "RequestTime", "FinishTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.CreateTableFromSnapshotMetadata), global::Google.Cloud.Bigtable.Admin.V2.CreateTableFromSnapshotMetadata.Parser, new[]{ "OriginalRequest", "RequestTime", "FinishTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.CreateBackupRequest), global::Google.Cloud.Bigtable.Admin.V2.CreateBackupRequest.Parser, new[]{ "Parent", "BackupId", "Backup" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.CreateBackupMetadata), global::Google.Cloud.Bigtable.Admin.V2.CreateBackupMetadata.Parser, new[]{ "Name", "SourceTable", "StartTime", "EndTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.UpdateBackupRequest), global::Google.Cloud.Bigtable.Admin.V2.UpdateBackupRequest.Parser, new[]{ "Backup", "UpdateMask" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.GetBackupRequest), global::Google.Cloud.Bigtable.Admin.V2.GetBackupRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.DeleteBackupRequest), global::Google.Cloud.Bigtable.Admin.V2.DeleteBackupRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.ListBackupsRequest), global::Google.Cloud.Bigtable.Admin.V2.ListBackupsRequest.Parser, new[]{ "Parent", "Filter", "OrderBy", "PageSize", "PageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.ListBackupsResponse), global::Google.Cloud.Bigtable.Admin.V2.ListBackupsResponse.Parser, new[]{ "Backups", "NextPageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.CopyBackupRequest), global::Google.Cloud.Bigtable.Admin.V2.CopyBackupRequest.Parser, new[]{ "Parent", "BackupId", "SourceBackup", "ExpireTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.CopyBackupMetadata), global::Google.Cloud.Bigtable.Admin.V2.CopyBackupMetadata.Parser, new[]{ "Name", "SourceBackupInfo", "Progress" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.CreateAuthorizedViewRequest), global::Google.Cloud.Bigtable.Admin.V2.CreateAuthorizedViewRequest.Parser, new[]{ "Parent", "AuthorizedViewId", "AuthorizedView" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.CreateAuthorizedViewMetadata), global::Google.Cloud.Bigtable.Admin.V2.CreateAuthorizedViewMetadata.Parser, new[]{ "OriginalRequest", "RequestTime", "FinishTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.ListAuthorizedViewsRequest), global::Google.Cloud.Bigtable.Admin.V2.ListAuthorizedViewsRequest.Parser, new[]{ "Parent", "PageSize", "PageToken", "View" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.ListAuthorizedViewsResponse), global::Google.Cloud.Bigtable.Admin.V2.ListAuthorizedViewsResponse.Parser, new[]{ "AuthorizedViews", "NextPageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.GetAuthorizedViewRequest), global::Google.Cloud.Bigtable.Admin.V2.GetAuthorizedViewRequest.Parser, new[]{ "Name", "View" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.UpdateAuthorizedViewRequest), global::Google.Cloud.Bigtable.Admin.V2.UpdateAuthorizedViewRequest.Parser, new[]{ "AuthorizedView", "UpdateMask", "IgnoreWarnings" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.UpdateAuthorizedViewMetadata), global::Google.Cloud.Bigtable.Admin.V2.UpdateAuthorizedViewMetadata.Parser, new[]{ "OriginalRequest", "RequestTime", "FinishTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.DeleteAuthorizedViewRequest), global::Google.Cloud.Bigtable.Admin.V2.DeleteAuthorizedViewRequest.Parser, new[]{ "Name", "Etag" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// The request for + /// [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RestoreTableRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RestoreTableRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RestoreTableRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RestoreTableRequest(RestoreTableRequest other) : this() { + parent_ = other.parent_; + tableId_ = other.tableId_; + switch (other.SourceCase) { + case SourceOneofCase.Backup: + Backup = other.Backup; + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RestoreTableRequest Clone() { + return new RestoreTableRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. The name of the instance in which to create the restored + /// table. Values are of the form `projects/<project>/instances/<instance>`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Parent { + get { return parent_; } + set { + parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "table_id" field. + public const int TableIdFieldNumber = 2; + private string tableId_ = ""; + /// + /// 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/<project>/instances/<instance>/tables/<table_id>`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TableId { + get { return tableId_; } + set { + tableId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "backup" field. + public const int BackupFieldNumber = 3; + /// + /// Name of the backup from which to restore. Values are of the form + /// `projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Backup { + get { return HasBackup ? (string) source_ : ""; } + set { + source_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + sourceCase_ = SourceOneofCase.Backup; + } + } + /// Gets whether the "backup" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBackup { + get { return sourceCase_ == SourceOneofCase.Backup; } + } + /// Clears the value of the oneof if it's currently set to "backup" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBackup() { + if (HasBackup) { + ClearSource(); + } + } + + private object source_; + /// Enum of possible cases for the "source" oneof. + public enum SourceOneofCase { + None = 0, + Backup = 3, + } + private SourceOneofCase sourceCase_ = SourceOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SourceOneofCase SourceCase { + get { return sourceCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSource() { + sourceCase_ = SourceOneofCase.None; + source_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RestoreTableRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RestoreTableRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (TableId != other.TableId) return false; + if (Backup != other.Backup) return false; + if (SourceCase != other.SourceCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (TableId.Length != 0) hash ^= TableId.GetHashCode(); + if (HasBackup) hash ^= Backup.GetHashCode(); + hash ^= (int) sourceCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (TableId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TableId); + } + if (HasBackup) { + output.WriteRawTag(26); + output.WriteString(Backup); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (TableId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TableId); + } + if (HasBackup) { + output.WriteRawTag(26); + output.WriteString(Backup); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + if (TableId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TableId); + } + if (HasBackup) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Backup); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RestoreTableRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.TableId.Length != 0) { + TableId = other.TableId; + } + switch (other.SourceCase) { + case SourceOneofCase.Backup: + Backup = other.Backup; + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + TableId = input.ReadString(); + break; + } + case 26: { + Backup = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + TableId = input.ReadString(); + break; + } + case 26: { + Backup = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Metadata type for the long-running operation returned by + /// [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RestoreTableMetadata : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RestoreTableMetadata()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RestoreTableMetadata() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RestoreTableMetadata(RestoreTableMetadata other) : this() { + name_ = other.name_; + sourceType_ = other.sourceType_; + optimizeTableOperationName_ = other.optimizeTableOperationName_; + progress_ = other.progress_ != null ? other.progress_.Clone() : null; + switch (other.SourceInfoCase) { + case SourceInfoOneofCase.BackupInfo: + BackupInfo = other.BackupInfo.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RestoreTableMetadata Clone() { + return new RestoreTableMetadata(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Name of the table being created and restored to. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "source_type" field. + public const int SourceTypeFieldNumber = 2; + private global::Google.Cloud.Bigtable.Admin.V2.RestoreSourceType sourceType_ = global::Google.Cloud.Bigtable.Admin.V2.RestoreSourceType.Unspecified; + /// + /// The type of the restore source. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.RestoreSourceType SourceType { + get { return sourceType_; } + set { + sourceType_ = value; + } + } + + /// Field number for the "backup_info" field. + public const int BackupInfoFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.BackupInfo BackupInfo { + get { return sourceInfoCase_ == SourceInfoOneofCase.BackupInfo ? (global::Google.Cloud.Bigtable.Admin.V2.BackupInfo) sourceInfo_ : null; } + set { + sourceInfo_ = value; + sourceInfoCase_ = value == null ? SourceInfoOneofCase.None : SourceInfoOneofCase.BackupInfo; + } + } + + /// Field number for the "optimize_table_operation_name" field. + public const int OptimizeTableOperationNameFieldNumber = 4; + private string optimizeTableOperationName_ = ""; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OptimizeTableOperationName { + get { return optimizeTableOperationName_; } + set { + optimizeTableOperationName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "progress" field. + public const int ProgressFieldNumber = 5; + private global::Google.Cloud.Bigtable.Admin.V2.OperationProgress progress_; + /// + /// The progress of the + /// [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable] + /// operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.OperationProgress Progress { + get { return progress_; } + set { + progress_ = value; + } + } + + private object sourceInfo_; + /// Enum of possible cases for the "source_info" oneof. + public enum SourceInfoOneofCase { + None = 0, + BackupInfo = 3, + } + private SourceInfoOneofCase sourceInfoCase_ = SourceInfoOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SourceInfoOneofCase SourceInfoCase { + get { return sourceInfoCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSourceInfo() { + sourceInfoCase_ = SourceInfoOneofCase.None; + sourceInfo_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RestoreTableMetadata); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RestoreTableMetadata other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (SourceType != other.SourceType) return false; + if (!object.Equals(BackupInfo, other.BackupInfo)) return false; + if (OptimizeTableOperationName != other.OptimizeTableOperationName) return false; + if (!object.Equals(Progress, other.Progress)) return false; + if (SourceInfoCase != other.SourceInfoCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (SourceType != global::Google.Cloud.Bigtable.Admin.V2.RestoreSourceType.Unspecified) hash ^= SourceType.GetHashCode(); + if (sourceInfoCase_ == SourceInfoOneofCase.BackupInfo) hash ^= BackupInfo.GetHashCode(); + if (OptimizeTableOperationName.Length != 0) hash ^= OptimizeTableOperationName.GetHashCode(); + if (progress_ != null) hash ^= Progress.GetHashCode(); + hash ^= (int) sourceInfoCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (SourceType != global::Google.Cloud.Bigtable.Admin.V2.RestoreSourceType.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) SourceType); + } + if (sourceInfoCase_ == SourceInfoOneofCase.BackupInfo) { + output.WriteRawTag(26); + output.WriteMessage(BackupInfo); + } + if (OptimizeTableOperationName.Length != 0) { + output.WriteRawTag(34); + output.WriteString(OptimizeTableOperationName); + } + if (progress_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Progress); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (SourceType != global::Google.Cloud.Bigtable.Admin.V2.RestoreSourceType.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) SourceType); + } + if (sourceInfoCase_ == SourceInfoOneofCase.BackupInfo) { + output.WriteRawTag(26); + output.WriteMessage(BackupInfo); + } + if (OptimizeTableOperationName.Length != 0) { + output.WriteRawTag(34); + output.WriteString(OptimizeTableOperationName); + } + if (progress_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Progress); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (SourceType != global::Google.Cloud.Bigtable.Admin.V2.RestoreSourceType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SourceType); + } + if (sourceInfoCase_ == SourceInfoOneofCase.BackupInfo) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BackupInfo); + } + if (OptimizeTableOperationName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OptimizeTableOperationName); + } + if (progress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Progress); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RestoreTableMetadata other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.SourceType != global::Google.Cloud.Bigtable.Admin.V2.RestoreSourceType.Unspecified) { + SourceType = other.SourceType; + } + if (other.OptimizeTableOperationName.Length != 0) { + OptimizeTableOperationName = other.OptimizeTableOperationName; + } + if (other.progress_ != null) { + if (progress_ == null) { + Progress = new global::Google.Cloud.Bigtable.Admin.V2.OperationProgress(); + } + Progress.MergeFrom(other.Progress); + } + switch (other.SourceInfoCase) { + case SourceInfoOneofCase.BackupInfo: + if (BackupInfo == null) { + BackupInfo = new global::Google.Cloud.Bigtable.Admin.V2.BackupInfo(); + } + BackupInfo.MergeFrom(other.BackupInfo); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + SourceType = (global::Google.Cloud.Bigtable.Admin.V2.RestoreSourceType) input.ReadEnum(); + break; + } + case 26: { + global::Google.Cloud.Bigtable.Admin.V2.BackupInfo subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.BackupInfo(); + if (sourceInfoCase_ == SourceInfoOneofCase.BackupInfo) { + subBuilder.MergeFrom(BackupInfo); + } + input.ReadMessage(subBuilder); + BackupInfo = subBuilder; + break; + } + case 34: { + OptimizeTableOperationName = input.ReadString(); + break; + } + case 42: { + if (progress_ == null) { + Progress = new global::Google.Cloud.Bigtable.Admin.V2.OperationProgress(); + } + input.ReadMessage(Progress); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + SourceType = (global::Google.Cloud.Bigtable.Admin.V2.RestoreSourceType) input.ReadEnum(); + break; + } + case 26: { + global::Google.Cloud.Bigtable.Admin.V2.BackupInfo subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.BackupInfo(); + if (sourceInfoCase_ == SourceInfoOneofCase.BackupInfo) { + subBuilder.MergeFrom(BackupInfo); + } + input.ReadMessage(subBuilder); + BackupInfo = subBuilder; + break; + } + case 34: { + OptimizeTableOperationName = input.ReadString(); + break; + } + case 42: { + if (progress_ == null) { + Progress = new global::Google.Cloud.Bigtable.Admin.V2.OperationProgress(); + } + input.ReadMessage(Progress); + break; + } + } + } + } + #endif + + } + + /// + /// Metadata type for the long-running operation used to track the progress + /// of optimizations performed on a newly restored table. This long-running + /// operation is automatically created by the system after the successful + /// completion of a table restore, and cannot be cancelled. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class OptimizeRestoredTableMetadata : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OptimizeRestoredTableMetadata()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OptimizeRestoredTableMetadata() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OptimizeRestoredTableMetadata(OptimizeRestoredTableMetadata other) : this() { + name_ = other.name_; + progress_ = other.progress_ != null ? other.progress_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OptimizeRestoredTableMetadata Clone() { + return new OptimizeRestoredTableMetadata(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Name of the restored table being optimized. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "progress" field. + public const int ProgressFieldNumber = 2; + private global::Google.Cloud.Bigtable.Admin.V2.OperationProgress progress_; + /// + /// The progress of the post-restore optimizations. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.OperationProgress Progress { + get { return progress_; } + set { + progress_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as OptimizeRestoredTableMetadata); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(OptimizeRestoredTableMetadata other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (!object.Equals(Progress, other.Progress)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (progress_ != null) hash ^= Progress.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (progress_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Progress); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (progress_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Progress); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (progress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Progress); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(OptimizeRestoredTableMetadata other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.progress_ != null) { + if (progress_ == null) { + Progress = new global::Google.Cloud.Bigtable.Admin.V2.OperationProgress(); + } + Progress.MergeFrom(other.Progress); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + if (progress_ == null) { + Progress = new global::Google.Cloud.Bigtable.Admin.V2.OperationProgress(); + } + input.ReadMessage(Progress); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + if (progress_ == null) { + Progress = new global::Google.Cloud.Bigtable.Admin.V2.OperationProgress(); + } + input.ReadMessage(Progress); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [google.bigtable.admin.v2.BigtableTableAdmin.CreateTable][google.bigtable.admin.v2.BigtableTableAdmin.CreateTable] + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CreateTableRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateTableRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateTableRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateTableRequest(CreateTableRequest other) : this() { + parent_ = other.parent_; + tableId_ = other.tableId_; + table_ = other.table_ != null ? other.table_.Clone() : null; + initialSplits_ = other.initialSplits_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateTableRequest Clone() { + return new CreateTableRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. The unique name of the instance in which to create the table. + /// Values are of the form `projects/{project}/instances/{instance}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Parent { + get { return parent_; } + set { + parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "table_id" field. + public const int TableIdFieldNumber = 2; + private 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TableId { + get { return tableId_; } + set { + tableId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "table" field. + public const int TableFieldNumber = 3; + private global::Google.Cloud.Bigtable.Admin.V2.Table table_; + /// + /// Required. The Table to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Table Table { + get { return table_; } + set { + table_ = value; + } + } + + /// Field number for the "initial_splits" field. + public const int InitialSplitsFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_initialSplits_codec + = pb::FieldCodec.ForMessage(34, global::Google.Cloud.Bigtable.Admin.V2.CreateTableRequest.Types.Split.Parser); + private readonly pbc::RepeatedField initialSplits_ = new pbc::RepeatedField(); + /// + /// 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"}.` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField InitialSplits { + get { return initialSplits_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateTableRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateTableRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (TableId != other.TableId) return false; + if (!object.Equals(Table, other.Table)) return false; + if(!initialSplits_.Equals(other.initialSplits_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (TableId.Length != 0) hash ^= TableId.GetHashCode(); + if (table_ != null) hash ^= Table.GetHashCode(); + hash ^= initialSplits_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (TableId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TableId); + } + if (table_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Table); + } + initialSplits_.WriteTo(output, _repeated_initialSplits_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (TableId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TableId); + } + if (table_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Table); + } + initialSplits_.WriteTo(ref output, _repeated_initialSplits_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + if (TableId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TableId); + } + if (table_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Table); + } + size += initialSplits_.CalculateSize(_repeated_initialSplits_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateTableRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.TableId.Length != 0) { + TableId = other.TableId; + } + if (other.table_ != null) { + if (table_ == null) { + Table = new global::Google.Cloud.Bigtable.Admin.V2.Table(); + } + Table.MergeFrom(other.Table); + } + initialSplits_.Add(other.initialSplits_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + TableId = input.ReadString(); + break; + } + case 26: { + if (table_ == null) { + Table = new global::Google.Cloud.Bigtable.Admin.V2.Table(); + } + input.ReadMessage(Table); + break; + } + case 34: { + initialSplits_.AddEntriesFrom(input, _repeated_initialSplits_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + TableId = input.ReadString(); + break; + } + case 26: { + if (table_ == null) { + Table = new global::Google.Cloud.Bigtable.Admin.V2.Table(); + } + input.ReadMessage(Table); + break; + } + case 34: { + initialSplits_.AddEntriesFrom(ref input, _repeated_initialSplits_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the CreateTableRequest message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// An initial split point for a newly created table. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Split : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Split()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.CreateTableRequest.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Split() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Split(Split other) : this() { + key_ = other.key_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Split Clone() { + return new Split(this); + } + + /// Field number for the "key" field. + public const int KeyFieldNumber = 1; + private pb::ByteString key_ = pb::ByteString.Empty; + /// + /// Row key to use as an initial tablet boundary. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Key { + get { return key_; } + set { + key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Split); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Split other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Key != other.Key) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Key.Length != 0) hash ^= Key.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Key.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(Key); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Key.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(Key); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Key.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Key); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Split other) { + if (other == null) { + return; + } + if (other.Key.Length != 0) { + Key = other.Key; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Key = input.ReadBytes(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Key = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// Request message for + /// [google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot][google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot] + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CreateTableFromSnapshotRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateTableFromSnapshotRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateTableFromSnapshotRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateTableFromSnapshotRequest(CreateTableFromSnapshotRequest other) : this() { + parent_ = other.parent_; + tableId_ = other.tableId_; + sourceSnapshot_ = other.sourceSnapshot_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateTableFromSnapshotRequest Clone() { + return new CreateTableFromSnapshotRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. The unique name of the instance in which to create the table. + /// Values are of the form `projects/{project}/instances/{instance}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Parent { + get { return parent_; } + set { + parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "table_id" field. + public const int TableIdFieldNumber = 2; + private 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`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TableId { + get { return tableId_; } + set { + tableId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "source_snapshot" field. + public const int SourceSnapshotFieldNumber = 3; + private 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}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SourceSnapshot { + get { return sourceSnapshot_; } + set { + sourceSnapshot_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateTableFromSnapshotRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateTableFromSnapshotRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (TableId != other.TableId) return false; + if (SourceSnapshot != other.SourceSnapshot) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (TableId.Length != 0) hash ^= TableId.GetHashCode(); + if (SourceSnapshot.Length != 0) hash ^= SourceSnapshot.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (TableId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TableId); + } + if (SourceSnapshot.Length != 0) { + output.WriteRawTag(26); + output.WriteString(SourceSnapshot); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (TableId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TableId); + } + if (SourceSnapshot.Length != 0) { + output.WriteRawTag(26); + output.WriteString(SourceSnapshot); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + if (TableId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TableId); + } + if (SourceSnapshot.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SourceSnapshot); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateTableFromSnapshotRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.TableId.Length != 0) { + TableId = other.TableId; + } + if (other.SourceSnapshot.Length != 0) { + SourceSnapshot = other.SourceSnapshot; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + TableId = input.ReadString(); + break; + } + case 26: { + SourceSnapshot = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + TableId = input.ReadString(); + break; + } + case 26: { + SourceSnapshot = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange][google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange] + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DropRowRangeRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DropRowRangeRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DropRowRangeRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DropRowRangeRequest(DropRowRangeRequest other) : this() { + name_ = other.name_; + switch (other.TargetCase) { + case TargetOneofCase.RowKeyPrefix: + RowKeyPrefix = other.RowKeyPrefix; + break; + case TargetOneofCase.DeleteAllDataFromTable: + DeleteAllDataFromTable = other.DeleteAllDataFromTable; + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DropRowRangeRequest Clone() { + return new DropRowRangeRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private 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}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "row_key_prefix" field. + public const int RowKeyPrefixFieldNumber = 2; + /// + /// Delete all rows that start with this row key prefix. Prefix cannot be + /// zero length. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString RowKeyPrefix { + get { return HasRowKeyPrefix ? (pb::ByteString) target_ : pb::ByteString.Empty; } + set { + target_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + targetCase_ = TargetOneofCase.RowKeyPrefix; + } + } + /// Gets whether the "row_key_prefix" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRowKeyPrefix { + get { return targetCase_ == TargetOneofCase.RowKeyPrefix; } + } + /// Clears the value of the oneof if it's currently set to "row_key_prefix" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRowKeyPrefix() { + if (HasRowKeyPrefix) { + ClearTarget(); + } + } + + /// Field number for the "delete_all_data_from_table" field. + public const int DeleteAllDataFromTableFieldNumber = 3; + /// + /// Delete all rows in the table. Setting this to false is a no-op. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool DeleteAllDataFromTable { + get { return HasDeleteAllDataFromTable ? (bool) target_ : false; } + set { + target_ = value; + targetCase_ = TargetOneofCase.DeleteAllDataFromTable; + } + } + /// Gets whether the "delete_all_data_from_table" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDeleteAllDataFromTable { + get { return targetCase_ == TargetOneofCase.DeleteAllDataFromTable; } + } + /// Clears the value of the oneof if it's currently set to "delete_all_data_from_table" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDeleteAllDataFromTable() { + if (HasDeleteAllDataFromTable) { + ClearTarget(); + } + } + + private object target_; + /// Enum of possible cases for the "target" oneof. + public enum TargetOneofCase { + None = 0, + RowKeyPrefix = 2, + DeleteAllDataFromTable = 3, + } + private TargetOneofCase targetCase_ = TargetOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TargetOneofCase TargetCase { + get { return targetCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTarget() { + targetCase_ = TargetOneofCase.None; + target_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DropRowRangeRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DropRowRangeRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (RowKeyPrefix != other.RowKeyPrefix) return false; + if (DeleteAllDataFromTable != other.DeleteAllDataFromTable) return false; + if (TargetCase != other.TargetCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (HasRowKeyPrefix) hash ^= RowKeyPrefix.GetHashCode(); + if (HasDeleteAllDataFromTable) hash ^= DeleteAllDataFromTable.GetHashCode(); + hash ^= (int) targetCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasRowKeyPrefix) { + output.WriteRawTag(18); + output.WriteBytes(RowKeyPrefix); + } + if (HasDeleteAllDataFromTable) { + output.WriteRawTag(24); + output.WriteBool(DeleteAllDataFromTable); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasRowKeyPrefix) { + output.WriteRawTag(18); + output.WriteBytes(RowKeyPrefix); + } + if (HasDeleteAllDataFromTable) { + output.WriteRawTag(24); + output.WriteBool(DeleteAllDataFromTable); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasRowKeyPrefix) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(RowKeyPrefix); + } + if (HasDeleteAllDataFromTable) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DropRowRangeRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + switch (other.TargetCase) { + case TargetOneofCase.RowKeyPrefix: + RowKeyPrefix = other.RowKeyPrefix; + break; + case TargetOneofCase.DeleteAllDataFromTable: + DeleteAllDataFromTable = other.DeleteAllDataFromTable; + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + RowKeyPrefix = input.ReadBytes(); + break; + } + case 24: { + DeleteAllDataFromTable = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + RowKeyPrefix = input.ReadBytes(); + break; + } + case 24: { + DeleteAllDataFromTable = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [google.bigtable.admin.v2.BigtableTableAdmin.ListTables][google.bigtable.admin.v2.BigtableTableAdmin.ListTables] + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListTablesRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListTablesRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListTablesRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListTablesRequest(ListTablesRequest other) : this() { + parent_ = other.parent_; + view_ = other.view_; + pageSize_ = other.pageSize_; + pageToken_ = other.pageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListTablesRequest Clone() { + return new ListTablesRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. The unique name of the instance for which tables should be + /// listed. Values are of the form `projects/{project}/instances/{instance}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Parent { + get { return parent_; } + set { + parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "view" field. + public const int ViewFieldNumber = 2; + private global::Google.Cloud.Bigtable.Admin.V2.Table.Types.View view_ = global::Google.Cloud.Bigtable.Admin.V2.Table.Types.View.Unspecified; + /// + /// The view to be applied to the returned tables' fields. + /// NAME_ONLY view (default) and REPLICATION_VIEW are supported. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Table.Types.View View { + get { return view_; } + set { + view_ = value; + } + } + + /// Field number for the "page_size" field. + public const int PageSizeFieldNumber = 4; + private int pageSize_; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PageSize { + get { return pageSize_; } + set { + pageSize_ = value; + } + } + + /// Field number for the "page_token" field. + public const int PageTokenFieldNumber = 3; + private string pageToken_ = ""; + /// + /// The value of `next_page_token` returned by a previous call. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PageToken { + get { return pageToken_; } + set { + pageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListTablesRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListTablesRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (View != other.View) return false; + if (PageSize != other.PageSize) return false; + if (PageToken != other.PageToken) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (View != global::Google.Cloud.Bigtable.Admin.V2.Table.Types.View.Unspecified) hash ^= View.GetHashCode(); + if (PageSize != 0) hash ^= PageSize.GetHashCode(); + if (PageToken.Length != 0) hash ^= PageToken.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (View != global::Google.Cloud.Bigtable.Admin.V2.Table.Types.View.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) View); + } + if (PageToken.Length != 0) { + output.WriteRawTag(26); + output.WriteString(PageToken); + } + if (PageSize != 0) { + output.WriteRawTag(32); + output.WriteInt32(PageSize); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (View != global::Google.Cloud.Bigtable.Admin.V2.Table.Types.View.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) View); + } + if (PageToken.Length != 0) { + output.WriteRawTag(26); + output.WriteString(PageToken); + } + if (PageSize != 0) { + output.WriteRawTag(32); + output.WriteInt32(PageSize); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + if (View != global::Google.Cloud.Bigtable.Admin.V2.Table.Types.View.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) View); + } + if (PageSize != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize); + } + if (PageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PageToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListTablesRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.View != global::Google.Cloud.Bigtable.Admin.V2.Table.Types.View.Unspecified) { + View = other.View; + } + if (other.PageSize != 0) { + PageSize = other.PageSize; + } + if (other.PageToken.Length != 0) { + PageToken = other.PageToken; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 16: { + View = (global::Google.Cloud.Bigtable.Admin.V2.Table.Types.View) input.ReadEnum(); + break; + } + case 26: { + PageToken = input.ReadString(); + break; + } + case 32: { + PageSize = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 16: { + View = (global::Google.Cloud.Bigtable.Admin.V2.Table.Types.View) input.ReadEnum(); + break; + } + case 26: { + PageToken = input.ReadString(); + break; + } + case 32: { + PageSize = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + /// + /// Response message for + /// [google.bigtable.admin.v2.BigtableTableAdmin.ListTables][google.bigtable.admin.v2.BigtableTableAdmin.ListTables] + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListTablesResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListTablesResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListTablesResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListTablesResponse(ListTablesResponse other) : this() { + tables_ = other.tables_.Clone(); + nextPageToken_ = other.nextPageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListTablesResponse Clone() { + return new ListTablesResponse(this); + } + + /// Field number for the "tables" field. + public const int TablesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_tables_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.Bigtable.Admin.V2.Table.Parser); + private readonly pbc::RepeatedField tables_ = new pbc::RepeatedField(); + /// + /// The tables present in the requested instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Tables { + get { return tables_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private string nextPageToken_ = ""; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NextPageToken { + get { return nextPageToken_; } + set { + nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListTablesResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListTablesResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!tables_.Equals(other.tables_)) return false; + if (NextPageToken != other.NextPageToken) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= tables_.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + tables_.WriteTo(output, _repeated_tables_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + tables_.WriteTo(ref output, _repeated_tables_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += tables_.CalculateSize(_repeated_tables_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListTablesResponse other) { + if (other == null) { + return; + } + tables_.Add(other.tables_); + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + tables_.AddEntriesFrom(input, _repeated_tables_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + tables_.AddEntriesFrom(ref input, _repeated_tables_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [google.bigtable.admin.v2.BigtableTableAdmin.GetTable][google.bigtable.admin.v2.BigtableTableAdmin.GetTable] + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetTableRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTableRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTableRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTableRequest(GetTableRequest other) : this() { + name_ = other.name_; + view_ = other.view_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTableRequest Clone() { + return new GetTableRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The unique name of the requested table. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "view" field. + public const int ViewFieldNumber = 2; + private global::Google.Cloud.Bigtable.Admin.V2.Table.Types.View view_ = global::Google.Cloud.Bigtable.Admin.V2.Table.Types.View.Unspecified; + /// + /// The view to be applied to the returned table's fields. + /// Defaults to `SCHEMA_VIEW` if unspecified. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Table.Types.View View { + get { return view_; } + set { + view_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetTableRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetTableRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (View != other.View) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (View != global::Google.Cloud.Bigtable.Admin.V2.Table.Types.View.Unspecified) hash ^= View.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (View != global::Google.Cloud.Bigtable.Admin.V2.Table.Types.View.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) View); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (View != global::Google.Cloud.Bigtable.Admin.V2.Table.Types.View.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) View); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (View != global::Google.Cloud.Bigtable.Admin.V2.Table.Types.View.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) View); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetTableRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.View != global::Google.Cloud.Bigtable.Admin.V2.Table.Types.View.Unspecified) { + View = other.View; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + View = (global::Google.Cloud.Bigtable.Admin.V2.Table.Types.View) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + View = (global::Google.Cloud.Bigtable.Admin.V2.Table.Types.View) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + /// + /// The request for + /// [UpdateTable][google.bigtable.admin.v2.BigtableTableAdmin.UpdateTable]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UpdateTableRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateTableRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateTableRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateTableRequest(UpdateTableRequest other) : this() { + table_ = other.table_ != null ? other.table_.Clone() : null; + updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateTableRequest Clone() { + return new UpdateTableRequest(this); + } + + /// Field number for the "table" field. + public const int TableFieldNumber = 1; + private global::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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Table Table { + get { return table_; } + set { + table_ = value; + } + } + + /// Field number for the "update_mask" field. + public const int UpdateMaskFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.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` + /// + /// If `column_families` is set in `update_mask`, it will return an + /// UNIMPLEMENTED error. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { + get { return updateMask_; } + set { + updateMask_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateTableRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateTableRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Table, other.Table)) return false; + if (!object.Equals(UpdateMask, other.UpdateMask)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (table_ != null) hash ^= Table.GetHashCode(); + if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (table_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Table); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (table_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Table); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (table_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Table); + } + if (updateMask_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateTableRequest other) { + if (other == null) { + return; + } + if (other.table_ != null) { + if (table_ == null) { + Table = new global::Google.Cloud.Bigtable.Admin.V2.Table(); + } + Table.MergeFrom(other.Table); + } + if (other.updateMask_ != null) { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + UpdateMask.MergeFrom(other.UpdateMask); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (table_ == null) { + Table = new global::Google.Cloud.Bigtable.Admin.V2.Table(); + } + input.ReadMessage(Table); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (table_ == null) { + Table = new global::Google.Cloud.Bigtable.Admin.V2.Table(); + } + input.ReadMessage(Table); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + } + } + } + #endif + + } + + /// + /// Metadata type for the operation returned by + /// [UpdateTable][google.bigtable.admin.v2.BigtableTableAdmin.UpdateTable]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UpdateTableMetadata : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateTableMetadata()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[10]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateTableMetadata() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateTableMetadata(UpdateTableMetadata other) : this() { + name_ = other.name_; + startTime_ = other.startTime_ != null ? other.startTime_.Clone() : null; + endTime_ = other.endTime_ != null ? other.endTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateTableMetadata Clone() { + return new UpdateTableMetadata(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// The name of the table being updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp startTime_; + /// + /// The time at which this operation started. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp StartTime { + get { return startTime_; } + set { + startTime_ = value; + } + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp endTime_; + /// + /// If set, the time at which this operation finished or was canceled. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateTableMetadata); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateTableMetadata other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (!object.Equals(StartTime, other.StartTime)) return false; + if (!object.Equals(EndTime, other.EndTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (startTime_ != null) hash ^= StartTime.GetHashCode(); + if (endTime_ != null) hash ^= EndTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (startTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(StartTime); + } + if (endTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(EndTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (startTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(StartTime); + } + if (endTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(EndTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (startTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTime); + } + if (endTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateTableMetadata other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.startTime_ != null) { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + StartTime.MergeFrom(other.StartTime); + } + if (other.endTime_ != null) { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + EndTime.MergeFrom(other.EndTime); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 26: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 26: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable][google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable] + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DeleteTableRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteTableRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteTableRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteTableRequest(DeleteTableRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteTableRequest Clone() { + return new DeleteTableRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The unique name of the table to be deleted. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteTableRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteTableRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteTableRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable][google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable] + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UndeleteTableRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UndeleteTableRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UndeleteTableRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UndeleteTableRequest(UndeleteTableRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UndeleteTableRequest Clone() { + return new UndeleteTableRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The unique name of the table to be restored. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UndeleteTableRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UndeleteTableRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UndeleteTableRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Metadata type for the operation returned by + /// [google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable][google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UndeleteTableMetadata : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UndeleteTableMetadata()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UndeleteTableMetadata() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UndeleteTableMetadata(UndeleteTableMetadata other) : this() { + name_ = other.name_; + startTime_ = other.startTime_ != null ? other.startTime_.Clone() : null; + endTime_ = other.endTime_ != null ? other.endTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UndeleteTableMetadata Clone() { + return new UndeleteTableMetadata(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// The name of the table being restored. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp startTime_; + /// + /// The time at which this operation started. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp StartTime { + get { return startTime_; } + set { + startTime_ = value; + } + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp endTime_; + /// + /// If set, the time at which this operation finished or was cancelled. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UndeleteTableMetadata); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UndeleteTableMetadata other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (!object.Equals(StartTime, other.StartTime)) return false; + if (!object.Equals(EndTime, other.EndTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (startTime_ != null) hash ^= StartTime.GetHashCode(); + if (endTime_ != null) hash ^= EndTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (startTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(StartTime); + } + if (endTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(EndTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (startTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(StartTime); + } + if (endTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(EndTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (startTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTime); + } + if (endTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UndeleteTableMetadata other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.startTime_ != null) { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + StartTime.MergeFrom(other.StartTime); + } + if (other.endTime_ != null) { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + EndTime.MergeFrom(other.EndTime); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 26: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 26: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies][google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies] + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ModifyColumnFamiliesRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ModifyColumnFamiliesRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ModifyColumnFamiliesRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ModifyColumnFamiliesRequest(ModifyColumnFamiliesRequest other) : this() { + name_ = other.name_; + modifications_ = other.modifications_.Clone(); + ignoreWarnings_ = other.ignoreWarnings_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ModifyColumnFamiliesRequest Clone() { + return new ModifyColumnFamiliesRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private 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}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "modifications" field. + public const int ModificationsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_modifications_codec + = pb::FieldCodec.ForMessage(18, global::Google.Cloud.Bigtable.Admin.V2.ModifyColumnFamiliesRequest.Types.Modification.Parser); + private readonly pbc::RepeatedField modifications_ = new pbc::RepeatedField(); + /// + /// 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). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Modifications { + get { return modifications_; } + } + + /// Field number for the "ignore_warnings" field. + public const int IgnoreWarningsFieldNumber = 3; + private bool ignoreWarnings_; + /// + /// Optional. If true, ignore safety checks when modifying the column families. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreWarnings { + get { return ignoreWarnings_; } + set { + ignoreWarnings_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ModifyColumnFamiliesRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ModifyColumnFamiliesRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if(!modifications_.Equals(other.modifications_)) return false; + if (IgnoreWarnings != other.IgnoreWarnings) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + hash ^= modifications_.GetHashCode(); + if (IgnoreWarnings != false) hash ^= IgnoreWarnings.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + modifications_.WriteTo(output, _repeated_modifications_codec); + if (IgnoreWarnings != false) { + output.WriteRawTag(24); + output.WriteBool(IgnoreWarnings); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + modifications_.WriteTo(ref output, _repeated_modifications_codec); + if (IgnoreWarnings != false) { + output.WriteRawTag(24); + output.WriteBool(IgnoreWarnings); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + size += modifications_.CalculateSize(_repeated_modifications_codec); + if (IgnoreWarnings != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ModifyColumnFamiliesRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + modifications_.Add(other.modifications_); + if (other.IgnoreWarnings != false) { + IgnoreWarnings = other.IgnoreWarnings; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + modifications_.AddEntriesFrom(input, _repeated_modifications_codec); + break; + } + case 24: { + IgnoreWarnings = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + modifications_.AddEntriesFrom(ref input, _repeated_modifications_codec); + break; + } + case 24: { + IgnoreWarnings = input.ReadBool(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the ModifyColumnFamiliesRequest message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// A create, update, or delete of a particular column family. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Modification : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Modification()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.ModifyColumnFamiliesRequest.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Modification() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Modification(Modification other) : this() { + id_ = other.id_; + updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; + switch (other.ModCase) { + case ModOneofCase.Create: + Create = other.Create.Clone(); + break; + case ModOneofCase.Update: + Update = other.Update.Clone(); + break; + case ModOneofCase.Drop: + Drop = other.Drop; + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Modification Clone() { + return new Modification(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// The ID of the column family to be modified. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "create" field. + public const int CreateFieldNumber = 2; + /// + /// Create a new column family with the specified schema, or fail if + /// one already exists with the given ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.ColumnFamily Create { + get { return modCase_ == ModOneofCase.Create ? (global::Google.Cloud.Bigtable.Admin.V2.ColumnFamily) mod_ : null; } + set { + mod_ = value; + modCase_ = value == null ? ModOneofCase.None : ModOneofCase.Create; + } + } + + /// Field number for the "update" field. + public const int UpdateFieldNumber = 3; + /// + /// Update an existing column family to the specified schema, or fail + /// if no column family exists with the given ID. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.ColumnFamily Update { + get { return modCase_ == ModOneofCase.Update ? (global::Google.Cloud.Bigtable.Admin.V2.ColumnFamily) mod_ : null; } + set { + mod_ = value; + modCase_ = value == null ? ModOneofCase.None : ModOneofCase.Update; + } + } + + /// Field number for the "drop" field. + public const int DropFieldNumber = 4; + /// + /// Drop (delete) the column family with the given ID, or fail if no such + /// family exists. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Drop { + get { return HasDrop ? (bool) mod_ : false; } + set { + mod_ = value; + modCase_ = ModOneofCase.Drop; + } + } + /// Gets whether the "drop" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDrop { + get { return modCase_ == ModOneofCase.Drop; } + } + /// Clears the value of the oneof if it's currently set to "drop" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDrop() { + if (HasDrop) { + ClearMod(); + } + } + + /// Field number for the "update_mask" field. + public const int UpdateMaskFieldNumber = 6; + private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { + get { return updateMask_; } + set { + updateMask_ = value; + } + } + + private object mod_; + /// Enum of possible cases for the "mod" oneof. + public enum ModOneofCase { + None = 0, + Create = 2, + Update = 3, + Drop = 4, + } + private ModOneofCase modCase_ = ModOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ModOneofCase ModCase { + get { return modCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMod() { + modCase_ = ModOneofCase.None; + mod_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Modification); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Modification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (!object.Equals(Create, other.Create)) return false; + if (!object.Equals(Update, other.Update)) return false; + if (Drop != other.Drop) return false; + if (!object.Equals(UpdateMask, other.UpdateMask)) return false; + if (ModCase != other.ModCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id.Length != 0) hash ^= Id.GetHashCode(); + if (modCase_ == ModOneofCase.Create) hash ^= Create.GetHashCode(); + if (modCase_ == ModOneofCase.Update) hash ^= Update.GetHashCode(); + if (HasDrop) hash ^= Drop.GetHashCode(); + if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); + hash ^= (int) modCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (modCase_ == ModOneofCase.Create) { + output.WriteRawTag(18); + output.WriteMessage(Create); + } + if (modCase_ == ModOneofCase.Update) { + output.WriteRawTag(26); + output.WriteMessage(Update); + } + if (HasDrop) { + output.WriteRawTag(32); + output.WriteBool(Drop); + } + if (updateMask_ != null) { + output.WriteRawTag(50); + output.WriteMessage(UpdateMask); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (modCase_ == ModOneofCase.Create) { + output.WriteRawTag(18); + output.WriteMessage(Create); + } + if (modCase_ == ModOneofCase.Update) { + output.WriteRawTag(26); + output.WriteMessage(Update); + } + if (HasDrop) { + output.WriteRawTag(32); + output.WriteBool(Drop); + } + if (updateMask_ != null) { + output.WriteRawTag(50); + output.WriteMessage(UpdateMask); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + if (modCase_ == ModOneofCase.Create) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); + } + if (modCase_ == ModOneofCase.Update) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); + } + if (HasDrop) { + size += 1 + 1; + } + if (updateMask_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Modification other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.updateMask_ != null) { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + UpdateMask.MergeFrom(other.UpdateMask); + } + switch (other.ModCase) { + case ModOneofCase.Create: + if (Create == null) { + Create = new global::Google.Cloud.Bigtable.Admin.V2.ColumnFamily(); + } + Create.MergeFrom(other.Create); + break; + case ModOneofCase.Update: + if (Update == null) { + Update = new global::Google.Cloud.Bigtable.Admin.V2.ColumnFamily(); + } + Update.MergeFrom(other.Update); + break; + case ModOneofCase.Drop: + Drop = other.Drop; + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 18: { + global::Google.Cloud.Bigtable.Admin.V2.ColumnFamily subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.ColumnFamily(); + if (modCase_ == ModOneofCase.Create) { + subBuilder.MergeFrom(Create); + } + input.ReadMessage(subBuilder); + Create = subBuilder; + break; + } + case 26: { + global::Google.Cloud.Bigtable.Admin.V2.ColumnFamily subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.ColumnFamily(); + if (modCase_ == ModOneofCase.Update) { + subBuilder.MergeFrom(Update); + } + input.ReadMessage(subBuilder); + Update = subBuilder; + break; + } + case 32: { + Drop = input.ReadBool(); + break; + } + case 50: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 18: { + global::Google.Cloud.Bigtable.Admin.V2.ColumnFamily subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.ColumnFamily(); + if (modCase_ == ModOneofCase.Create) { + subBuilder.MergeFrom(Create); + } + input.ReadMessage(subBuilder); + Create = subBuilder; + break; + } + case 26: { + global::Google.Cloud.Bigtable.Admin.V2.ColumnFamily subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.ColumnFamily(); + if (modCase_ == ModOneofCase.Update) { + subBuilder.MergeFrom(Update); + } + input.ReadMessage(subBuilder); + Update = subBuilder; + break; + } + case 32: { + Drop = input.ReadBool(); + break; + } + case 50: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// Request message for + /// [google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken][google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken] + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GenerateConsistencyTokenRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateConsistencyTokenRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[15]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GenerateConsistencyTokenRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GenerateConsistencyTokenRequest(GenerateConsistencyTokenRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GenerateConsistencyTokenRequest Clone() { + return new GenerateConsistencyTokenRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private 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}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GenerateConsistencyTokenRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GenerateConsistencyTokenRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GenerateConsistencyTokenRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Response message for + /// [google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken][google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken] + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GenerateConsistencyTokenResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateConsistencyTokenResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[16]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GenerateConsistencyTokenResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GenerateConsistencyTokenResponse(GenerateConsistencyTokenResponse other) : this() { + consistencyToken_ = other.consistencyToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GenerateConsistencyTokenResponse Clone() { + return new GenerateConsistencyTokenResponse(this); + } + + /// Field number for the "consistency_token" field. + public const int ConsistencyTokenFieldNumber = 1; + private string consistencyToken_ = ""; + /// + /// The generated consistency token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ConsistencyToken { + get { return consistencyToken_; } + set { + consistencyToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GenerateConsistencyTokenResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GenerateConsistencyTokenResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ConsistencyToken != other.ConsistencyToken) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ConsistencyToken.Length != 0) hash ^= ConsistencyToken.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ConsistencyToken.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ConsistencyToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ConsistencyToken.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ConsistencyToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ConsistencyToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ConsistencyToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GenerateConsistencyTokenResponse other) { + if (other == null) { + return; + } + if (other.ConsistencyToken.Length != 0) { + ConsistencyToken = other.ConsistencyToken; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + ConsistencyToken = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ConsistencyToken = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency][google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency] + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CheckConsistencyRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CheckConsistencyRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[17]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CheckConsistencyRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CheckConsistencyRequest(CheckConsistencyRequest other) : this() { + name_ = other.name_; + consistencyToken_ = other.consistencyToken_; + switch (other.ModeCase) { + case ModeOneofCase.StandardReadRemoteWrites: + StandardReadRemoteWrites = other.StandardReadRemoteWrites.Clone(); + break; + case ModeOneofCase.DataBoostReadLocalWrites: + DataBoostReadLocalWrites = other.DataBoostReadLocalWrites.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CheckConsistencyRequest Clone() { + return new CheckConsistencyRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private 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}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "consistency_token" field. + public const int ConsistencyTokenFieldNumber = 2; + private string consistencyToken_ = ""; + /// + /// Required. The token created using GenerateConsistencyToken for the Table. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ConsistencyToken { + get { return consistencyToken_; } + set { + consistencyToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "standard_read_remote_writes" field. + public const int StandardReadRemoteWritesFieldNumber = 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.StandardReadRemoteWrites StandardReadRemoteWrites { + get { return modeCase_ == ModeOneofCase.StandardReadRemoteWrites ? (global::Google.Cloud.Bigtable.Admin.V2.StandardReadRemoteWrites) mode_ : null; } + set { + mode_ = value; + modeCase_ = value == null ? ModeOneofCase.None : ModeOneofCase.StandardReadRemoteWrites; + } + } + + /// Field number for the "data_boost_read_local_writes" field. + public const int DataBoostReadLocalWritesFieldNumber = 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.DataBoostReadLocalWrites DataBoostReadLocalWrites { + get { return modeCase_ == ModeOneofCase.DataBoostReadLocalWrites ? (global::Google.Cloud.Bigtable.Admin.V2.DataBoostReadLocalWrites) mode_ : null; } + set { + mode_ = value; + modeCase_ = value == null ? ModeOneofCase.None : ModeOneofCase.DataBoostReadLocalWrites; + } + } + + private object mode_; + /// Enum of possible cases for the "mode" oneof. + public enum ModeOneofCase { + None = 0, + StandardReadRemoteWrites = 3, + DataBoostReadLocalWrites = 4, + } + private ModeOneofCase modeCase_ = ModeOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ModeOneofCase ModeCase { + get { return modeCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMode() { + modeCase_ = ModeOneofCase.None; + mode_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CheckConsistencyRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CheckConsistencyRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (ConsistencyToken != other.ConsistencyToken) return false; + if (!object.Equals(StandardReadRemoteWrites, other.StandardReadRemoteWrites)) return false; + if (!object.Equals(DataBoostReadLocalWrites, other.DataBoostReadLocalWrites)) return false; + if (ModeCase != other.ModeCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (ConsistencyToken.Length != 0) hash ^= ConsistencyToken.GetHashCode(); + if (modeCase_ == ModeOneofCase.StandardReadRemoteWrites) hash ^= StandardReadRemoteWrites.GetHashCode(); + if (modeCase_ == ModeOneofCase.DataBoostReadLocalWrites) hash ^= DataBoostReadLocalWrites.GetHashCode(); + hash ^= (int) modeCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (ConsistencyToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ConsistencyToken); + } + if (modeCase_ == ModeOneofCase.StandardReadRemoteWrites) { + output.WriteRawTag(26); + output.WriteMessage(StandardReadRemoteWrites); + } + if (modeCase_ == ModeOneofCase.DataBoostReadLocalWrites) { + output.WriteRawTag(34); + output.WriteMessage(DataBoostReadLocalWrites); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (ConsistencyToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ConsistencyToken); + } + if (modeCase_ == ModeOneofCase.StandardReadRemoteWrites) { + output.WriteRawTag(26); + output.WriteMessage(StandardReadRemoteWrites); + } + if (modeCase_ == ModeOneofCase.DataBoostReadLocalWrites) { + output.WriteRawTag(34); + output.WriteMessage(DataBoostReadLocalWrites); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (ConsistencyToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ConsistencyToken); + } + if (modeCase_ == ModeOneofCase.StandardReadRemoteWrites) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StandardReadRemoteWrites); + } + if (modeCase_ == ModeOneofCase.DataBoostReadLocalWrites) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DataBoostReadLocalWrites); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CheckConsistencyRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.ConsistencyToken.Length != 0) { + ConsistencyToken = other.ConsistencyToken; + } + switch (other.ModeCase) { + case ModeOneofCase.StandardReadRemoteWrites: + if (StandardReadRemoteWrites == null) { + StandardReadRemoteWrites = new global::Google.Cloud.Bigtable.Admin.V2.StandardReadRemoteWrites(); + } + StandardReadRemoteWrites.MergeFrom(other.StandardReadRemoteWrites); + break; + case ModeOneofCase.DataBoostReadLocalWrites: + if (DataBoostReadLocalWrites == null) { + DataBoostReadLocalWrites = new global::Google.Cloud.Bigtable.Admin.V2.DataBoostReadLocalWrites(); + } + DataBoostReadLocalWrites.MergeFrom(other.DataBoostReadLocalWrites); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + ConsistencyToken = input.ReadString(); + break; + } + case 26: { + global::Google.Cloud.Bigtable.Admin.V2.StandardReadRemoteWrites subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.StandardReadRemoteWrites(); + if (modeCase_ == ModeOneofCase.StandardReadRemoteWrites) { + subBuilder.MergeFrom(StandardReadRemoteWrites); + } + input.ReadMessage(subBuilder); + StandardReadRemoteWrites = subBuilder; + break; + } + case 34: { + global::Google.Cloud.Bigtable.Admin.V2.DataBoostReadLocalWrites subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.DataBoostReadLocalWrites(); + if (modeCase_ == ModeOneofCase.DataBoostReadLocalWrites) { + subBuilder.MergeFrom(DataBoostReadLocalWrites); + } + input.ReadMessage(subBuilder); + DataBoostReadLocalWrites = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + ConsistencyToken = input.ReadString(); + break; + } + case 26: { + global::Google.Cloud.Bigtable.Admin.V2.StandardReadRemoteWrites subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.StandardReadRemoteWrites(); + if (modeCase_ == ModeOneofCase.StandardReadRemoteWrites) { + subBuilder.MergeFrom(StandardReadRemoteWrites); + } + input.ReadMessage(subBuilder); + StandardReadRemoteWrites = subBuilder; + break; + } + case 34: { + global::Google.Cloud.Bigtable.Admin.V2.DataBoostReadLocalWrites subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.DataBoostReadLocalWrites(); + if (modeCase_ == ModeOneofCase.DataBoostReadLocalWrites) { + subBuilder.MergeFrom(DataBoostReadLocalWrites); + } + input.ReadMessage(subBuilder); + DataBoostReadLocalWrites = subBuilder; + break; + } + } + } + } + #endif + + } + + /// + /// Checks that all writes before the consistency token was generated are + /// replicated in every cluster and readable. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StandardReadRemoteWrites : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StandardReadRemoteWrites()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[18]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StandardReadRemoteWrites() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StandardReadRemoteWrites(StandardReadRemoteWrites other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StandardReadRemoteWrites Clone() { + return new StandardReadRemoteWrites(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StandardReadRemoteWrites); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StandardReadRemoteWrites other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StandardReadRemoteWrites other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + /// + /// Checks that all writes before the consistency token was generated in the same + /// cluster are readable by Databoost. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DataBoostReadLocalWrites : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DataBoostReadLocalWrites()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[19]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DataBoostReadLocalWrites() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DataBoostReadLocalWrites(DataBoostReadLocalWrites other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DataBoostReadLocalWrites Clone() { + return new DataBoostReadLocalWrites(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DataBoostReadLocalWrites); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DataBoostReadLocalWrites other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DataBoostReadLocalWrites other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + /// + /// Response message for + /// [google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency][google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency] + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CheckConsistencyResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CheckConsistencyResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[20]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CheckConsistencyResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CheckConsistencyResponse(CheckConsistencyResponse other) : this() { + consistent_ = other.consistent_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CheckConsistencyResponse Clone() { + return new CheckConsistencyResponse(this); + } + + /// Field number for the "consistent" field. + public const int ConsistentFieldNumber = 1; + private 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Consistent { + get { return consistent_; } + set { + consistent_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CheckConsistencyResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CheckConsistencyResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Consistent != other.Consistent) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Consistent != false) hash ^= Consistent.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Consistent != false) { + output.WriteRawTag(8); + output.WriteBool(Consistent); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Consistent != false) { + output.WriteRawTag(8); + output.WriteBool(Consistent); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Consistent != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CheckConsistencyResponse other) { + if (other == null) { + return; + } + if (other.Consistent != false) { + Consistent = other.Consistent; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Consistent = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Consistent = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable][google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable] + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SnapshotTableRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SnapshotTableRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[21]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SnapshotTableRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SnapshotTableRequest(SnapshotTableRequest other) : this() { + name_ = other.name_; + cluster_ = other.cluster_; + snapshotId_ = other.snapshotId_; + ttl_ = other.ttl_ != null ? other.ttl_.Clone() : null; + description_ = other.description_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SnapshotTableRequest Clone() { + return new SnapshotTableRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private 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}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "cluster" field. + public const int ClusterFieldNumber = 2; + private 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}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Cluster { + get { return cluster_; } + set { + cluster_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "snapshot_id" field. + public const int SnapshotIdFieldNumber = 3; + private 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`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SnapshotId { + get { return snapshotId_; } + set { + snapshotId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ttl" field. + public const int TtlFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration Ttl { + get { return ttl_; } + set { + ttl_ = value; + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 5; + private string description_ = ""; + /// + /// Description of the snapshot. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SnapshotTableRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SnapshotTableRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Cluster != other.Cluster) return false; + if (SnapshotId != other.SnapshotId) return false; + if (!object.Equals(Ttl, other.Ttl)) return false; + if (Description != other.Description) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Cluster.Length != 0) hash ^= Cluster.GetHashCode(); + if (SnapshotId.Length != 0) hash ^= SnapshotId.GetHashCode(); + if (ttl_ != null) hash ^= Ttl.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Cluster.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Cluster); + } + if (SnapshotId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(SnapshotId); + } + if (ttl_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Ttl); + } + if (Description.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Description); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Cluster.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Cluster); + } + if (SnapshotId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(SnapshotId); + } + if (ttl_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Ttl); + } + if (Description.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Description); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Cluster.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Cluster); + } + if (SnapshotId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SnapshotId); + } + if (ttl_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Ttl); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SnapshotTableRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Cluster.Length != 0) { + Cluster = other.Cluster; + } + if (other.SnapshotId.Length != 0) { + SnapshotId = other.SnapshotId; + } + if (other.ttl_ != null) { + if (ttl_ == null) { + Ttl = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + Ttl.MergeFrom(other.Ttl); + } + if (other.Description.Length != 0) { + Description = other.Description; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Cluster = input.ReadString(); + break; + } + case 26: { + SnapshotId = input.ReadString(); + break; + } + case 34: { + if (ttl_ == null) { + Ttl = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(Ttl); + break; + } + case 42: { + Description = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Cluster = input.ReadString(); + break; + } + case 26: { + SnapshotId = input.ReadString(); + break; + } + case 34: { + if (ttl_ == null) { + Ttl = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(Ttl); + break; + } + case 42: { + Description = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot][google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot] + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetSnapshotRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSnapshotRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[22]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSnapshotRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSnapshotRequest(GetSnapshotRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSnapshotRequest Clone() { + return new GetSnapshotRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The unique name of the requested snapshot. + /// Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetSnapshotRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetSnapshotRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetSnapshotRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots][google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots] + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListSnapshotsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListSnapshotsRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[23]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListSnapshotsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListSnapshotsRequest(ListSnapshotsRequest other) : this() { + parent_ = other.parent_; + pageSize_ = other.pageSize_; + pageToken_ = other.pageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListSnapshotsRequest Clone() { + return new ListSnapshotsRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private 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/-`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Parent { + get { return parent_; } + set { + parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "page_size" field. + public const int PageSizeFieldNumber = 2; + private int pageSize_; + /// + /// The maximum number of snapshots to return per page. + /// CURRENTLY UNIMPLEMENTED AND IGNORED. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PageSize { + get { return pageSize_; } + set { + pageSize_ = value; + } + } + + /// Field number for the "page_token" field. + public const int PageTokenFieldNumber = 3; + private string pageToken_ = ""; + /// + /// The value of `next_page_token` returned by a previous call. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PageToken { + get { return pageToken_; } + set { + pageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListSnapshotsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListSnapshotsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (PageSize != other.PageSize) return false; + if (PageToken != other.PageToken) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (PageSize != 0) hash ^= PageSize.GetHashCode(); + if (PageToken.Length != 0) hash ^= PageToken.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (PageSize != 0) { + output.WriteRawTag(16); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(26); + output.WriteString(PageToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (PageSize != 0) { + output.WriteRawTag(16); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(26); + output.WriteString(PageToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + if (PageSize != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize); + } + if (PageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PageToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListSnapshotsRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.PageSize != 0) { + PageSize = other.PageSize; + } + if (other.PageToken.Length != 0) { + PageToken = other.PageToken; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 16: { + PageSize = input.ReadInt32(); + break; + } + case 26: { + PageToken = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 16: { + PageSize = input.ReadInt32(); + break; + } + case 26: { + PageToken = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Response message for + /// [google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots][google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots] + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListSnapshotsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListSnapshotsResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[24]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListSnapshotsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListSnapshotsResponse(ListSnapshotsResponse other) : this() { + snapshots_ = other.snapshots_.Clone(); + nextPageToken_ = other.nextPageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListSnapshotsResponse Clone() { + return new ListSnapshotsResponse(this); + } + + /// Field number for the "snapshots" field. + public const int SnapshotsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_snapshots_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.Bigtable.Admin.V2.Snapshot.Parser); + private readonly pbc::RepeatedField snapshots_ = new pbc::RepeatedField(); + /// + /// The snapshots present in the requested cluster. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Snapshots { + get { return snapshots_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private string nextPageToken_ = ""; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NextPageToken { + get { return nextPageToken_; } + set { + nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListSnapshotsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListSnapshotsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!snapshots_.Equals(other.snapshots_)) return false; + if (NextPageToken != other.NextPageToken) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= snapshots_.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + snapshots_.WriteTo(output, _repeated_snapshots_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + snapshots_.WriteTo(ref output, _repeated_snapshots_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += snapshots_.CalculateSize(_repeated_snapshots_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListSnapshotsResponse other) { + if (other == null) { + return; + } + snapshots_.Add(other.snapshots_); + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + snapshots_.AddEntriesFrom(input, _repeated_snapshots_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + snapshots_.AddEntriesFrom(ref input, _repeated_snapshots_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot][google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot] + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DeleteSnapshotRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteSnapshotRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[25]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteSnapshotRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteSnapshotRequest(DeleteSnapshotRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteSnapshotRequest Clone() { + return new DeleteSnapshotRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private 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}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteSnapshotRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteSnapshotRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteSnapshotRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// The metadata for the Operation returned by SnapshotTable. + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SnapshotTableMetadata : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SnapshotTableMetadata()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[26]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SnapshotTableMetadata() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SnapshotTableMetadata(SnapshotTableMetadata other) : this() { + originalRequest_ = other.originalRequest_ != null ? other.originalRequest_.Clone() : null; + requestTime_ = other.requestTime_ != null ? other.requestTime_.Clone() : null; + finishTime_ = other.finishTime_ != null ? other.finishTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SnapshotTableMetadata Clone() { + return new SnapshotTableMetadata(this); + } + + /// Field number for the "original_request" field. + public const int OriginalRequestFieldNumber = 1; + private global::Google.Cloud.Bigtable.Admin.V2.SnapshotTableRequest originalRequest_; + /// + /// The request that prompted the initiation of this SnapshotTable operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.SnapshotTableRequest OriginalRequest { + get { return originalRequest_; } + set { + originalRequest_ = value; + } + } + + /// Field number for the "request_time" field. + public const int RequestTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp requestTime_; + /// + /// The time at which the original request was received. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp RequestTime { + get { return requestTime_; } + set { + requestTime_ = value; + } + } + + /// Field number for the "finish_time" field. + public const int FinishTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp finishTime_; + /// + /// The time at which the operation failed or was completed successfully. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp FinishTime { + get { return finishTime_; } + set { + finishTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SnapshotTableMetadata); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SnapshotTableMetadata other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(OriginalRequest, other.OriginalRequest)) return false; + if (!object.Equals(RequestTime, other.RequestTime)) return false; + if (!object.Equals(FinishTime, other.FinishTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (originalRequest_ != null) hash ^= OriginalRequest.GetHashCode(); + if (requestTime_ != null) hash ^= RequestTime.GetHashCode(); + if (finishTime_ != null) hash ^= FinishTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (originalRequest_ != null) { + output.WriteRawTag(10); + output.WriteMessage(OriginalRequest); + } + if (requestTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(RequestTime); + } + if (finishTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(FinishTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (originalRequest_ != null) { + output.WriteRawTag(10); + output.WriteMessage(OriginalRequest); + } + if (requestTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(RequestTime); + } + if (finishTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(FinishTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (originalRequest_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OriginalRequest); + } + if (requestTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RequestTime); + } + if (finishTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FinishTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SnapshotTableMetadata other) { + if (other == null) { + return; + } + if (other.originalRequest_ != null) { + if (originalRequest_ == null) { + OriginalRequest = new global::Google.Cloud.Bigtable.Admin.V2.SnapshotTableRequest(); + } + OriginalRequest.MergeFrom(other.OriginalRequest); + } + if (other.requestTime_ != null) { + if (requestTime_ == null) { + RequestTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + RequestTime.MergeFrom(other.RequestTime); + } + if (other.finishTime_ != null) { + if (finishTime_ == null) { + FinishTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + FinishTime.MergeFrom(other.FinishTime); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (originalRequest_ == null) { + OriginalRequest = new global::Google.Cloud.Bigtable.Admin.V2.SnapshotTableRequest(); + } + input.ReadMessage(OriginalRequest); + break; + } + case 18: { + if (requestTime_ == null) { + RequestTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(RequestTime); + break; + } + case 26: { + if (finishTime_ == null) { + FinishTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(FinishTime); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (originalRequest_ == null) { + OriginalRequest = new global::Google.Cloud.Bigtable.Admin.V2.SnapshotTableRequest(); + } + input.ReadMessage(OriginalRequest); + break; + } + case 18: { + if (requestTime_ == null) { + RequestTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(RequestTime); + break; + } + case 26: { + if (finishTime_ == null) { + FinishTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(FinishTime); + break; + } + } + } + } + #endif + + } + + /// + /// The metadata for the Operation returned by CreateTableFromSnapshot. + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CreateTableFromSnapshotMetadata : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateTableFromSnapshotMetadata()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[27]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateTableFromSnapshotMetadata() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateTableFromSnapshotMetadata(CreateTableFromSnapshotMetadata other) : this() { + originalRequest_ = other.originalRequest_ != null ? other.originalRequest_.Clone() : null; + requestTime_ = other.requestTime_ != null ? other.requestTime_.Clone() : null; + finishTime_ = other.finishTime_ != null ? other.finishTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateTableFromSnapshotMetadata Clone() { + return new CreateTableFromSnapshotMetadata(this); + } + + /// Field number for the "original_request" field. + public const int OriginalRequestFieldNumber = 1; + private global::Google.Cloud.Bigtable.Admin.V2.CreateTableFromSnapshotRequest originalRequest_; + /// + /// The request that prompted the initiation of this CreateTableFromSnapshot + /// operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.CreateTableFromSnapshotRequest OriginalRequest { + get { return originalRequest_; } + set { + originalRequest_ = value; + } + } + + /// Field number for the "request_time" field. + public const int RequestTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp requestTime_; + /// + /// The time at which the original request was received. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp RequestTime { + get { return requestTime_; } + set { + requestTime_ = value; + } + } + + /// Field number for the "finish_time" field. + public const int FinishTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp finishTime_; + /// + /// The time at which the operation failed or was completed successfully. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp FinishTime { + get { return finishTime_; } + set { + finishTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateTableFromSnapshotMetadata); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateTableFromSnapshotMetadata other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(OriginalRequest, other.OriginalRequest)) return false; + if (!object.Equals(RequestTime, other.RequestTime)) return false; + if (!object.Equals(FinishTime, other.FinishTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (originalRequest_ != null) hash ^= OriginalRequest.GetHashCode(); + if (requestTime_ != null) hash ^= RequestTime.GetHashCode(); + if (finishTime_ != null) hash ^= FinishTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (originalRequest_ != null) { + output.WriteRawTag(10); + output.WriteMessage(OriginalRequest); + } + if (requestTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(RequestTime); + } + if (finishTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(FinishTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (originalRequest_ != null) { + output.WriteRawTag(10); + output.WriteMessage(OriginalRequest); + } + if (requestTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(RequestTime); + } + if (finishTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(FinishTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (originalRequest_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OriginalRequest); + } + if (requestTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RequestTime); + } + if (finishTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FinishTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateTableFromSnapshotMetadata other) { + if (other == null) { + return; + } + if (other.originalRequest_ != null) { + if (originalRequest_ == null) { + OriginalRequest = new global::Google.Cloud.Bigtable.Admin.V2.CreateTableFromSnapshotRequest(); + } + OriginalRequest.MergeFrom(other.OriginalRequest); + } + if (other.requestTime_ != null) { + if (requestTime_ == null) { + RequestTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + RequestTime.MergeFrom(other.RequestTime); + } + if (other.finishTime_ != null) { + if (finishTime_ == null) { + FinishTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + FinishTime.MergeFrom(other.FinishTime); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (originalRequest_ == null) { + OriginalRequest = new global::Google.Cloud.Bigtable.Admin.V2.CreateTableFromSnapshotRequest(); + } + input.ReadMessage(OriginalRequest); + break; + } + case 18: { + if (requestTime_ == null) { + RequestTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(RequestTime); + break; + } + case 26: { + if (finishTime_ == null) { + FinishTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(FinishTime); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (originalRequest_ == null) { + OriginalRequest = new global::Google.Cloud.Bigtable.Admin.V2.CreateTableFromSnapshotRequest(); + } + input.ReadMessage(OriginalRequest); + break; + } + case 18: { + if (requestTime_ == null) { + RequestTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(RequestTime); + break; + } + case 26: { + if (finishTime_ == null) { + FinishTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(FinishTime); + break; + } + } + } + } + #endif + + } + + /// + /// The request for + /// [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CreateBackupRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateBackupRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[28]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateBackupRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateBackupRequest(CreateBackupRequest other) : this() { + parent_ = other.parent_; + backupId_ = other.backupId_; + backup_ = other.backup_ != null ? other.backup_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateBackupRequest Clone() { + return new CreateBackupRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private 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}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Parent { + get { return parent_; } + set { + parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "backup_id" field. + public const int BackupIdFieldNumber = 2; + private 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]*. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BackupId { + get { return backupId_; } + set { + backupId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "backup" field. + public const int BackupFieldNumber = 3; + private global::Google.Cloud.Bigtable.Admin.V2.Backup backup_; + /// + /// Required. The backup to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Backup Backup { + get { return backup_; } + set { + backup_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateBackupRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateBackupRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (BackupId != other.BackupId) return false; + if (!object.Equals(Backup, other.Backup)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (BackupId.Length != 0) hash ^= BackupId.GetHashCode(); + if (backup_ != null) hash ^= Backup.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (BackupId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(BackupId); + } + if (backup_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Backup); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (BackupId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(BackupId); + } + if (backup_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Backup); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + if (BackupId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BackupId); + } + if (backup_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Backup); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateBackupRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.BackupId.Length != 0) { + BackupId = other.BackupId; + } + if (other.backup_ != null) { + if (backup_ == null) { + Backup = new global::Google.Cloud.Bigtable.Admin.V2.Backup(); + } + Backup.MergeFrom(other.Backup); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + BackupId = input.ReadString(); + break; + } + case 26: { + if (backup_ == null) { + Backup = new global::Google.Cloud.Bigtable.Admin.V2.Backup(); + } + input.ReadMessage(Backup); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + BackupId = input.ReadString(); + break; + } + case 26: { + if (backup_ == null) { + Backup = new global::Google.Cloud.Bigtable.Admin.V2.Backup(); + } + input.ReadMessage(Backup); + break; + } + } + } + } + #endif + + } + + /// + /// Metadata type for the operation returned by + /// [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CreateBackupMetadata : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateBackupMetadata()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[29]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateBackupMetadata() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateBackupMetadata(CreateBackupMetadata other) : this() { + name_ = other.name_; + sourceTable_ = other.sourceTable_; + startTime_ = other.startTime_ != null ? other.startTime_.Clone() : null; + endTime_ = other.endTime_ != null ? other.endTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateBackupMetadata Clone() { + return new CreateBackupMetadata(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// The name of the backup being created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "source_table" field. + public const int SourceTableFieldNumber = 2; + private string sourceTable_ = ""; + /// + /// The name of the table the backup is created from. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SourceTable { + get { return sourceTable_; } + set { + sourceTable_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp startTime_; + /// + /// The time at which this operation started. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp StartTime { + get { return startTime_; } + set { + startTime_ = value; + } + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp endTime_; + /// + /// If set, the time at which this operation finished or was cancelled. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateBackupMetadata); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateBackupMetadata other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (SourceTable != other.SourceTable) return false; + if (!object.Equals(StartTime, other.StartTime)) return false; + if (!object.Equals(EndTime, other.EndTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (SourceTable.Length != 0) hash ^= SourceTable.GetHashCode(); + if (startTime_ != null) hash ^= StartTime.GetHashCode(); + if (endTime_ != null) hash ^= EndTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (SourceTable.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SourceTable); + } + if (startTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(StartTime); + } + if (endTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(EndTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (SourceTable.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SourceTable); + } + if (startTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(StartTime); + } + if (endTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(EndTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (SourceTable.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SourceTable); + } + if (startTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTime); + } + if (endTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateBackupMetadata other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.SourceTable.Length != 0) { + SourceTable = other.SourceTable; + } + if (other.startTime_ != null) { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + StartTime.MergeFrom(other.StartTime); + } + if (other.endTime_ != null) { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + EndTime.MergeFrom(other.EndTime); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + SourceTable = input.ReadString(); + break; + } + case 26: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 34: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + SourceTable = input.ReadString(); + break; + } + case 26: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 34: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + } + } + } + #endif + + } + + /// + /// The request for + /// [UpdateBackup][google.bigtable.admin.v2.BigtableTableAdmin.UpdateBackup]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UpdateBackupRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateBackupRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[30]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateBackupRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateBackupRequest(UpdateBackupRequest other) : this() { + backup_ = other.backup_ != null ? other.backup_.Clone() : null; + updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateBackupRequest Clone() { + return new UpdateBackupRequest(this); + } + + /// Field number for the "backup" field. + public const int BackupFieldNumber = 1; + private global::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`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Backup Backup { + get { return backup_; } + set { + backup_ = value; + } + } + + /// Field number for the "update_mask" field. + public const int UpdateMaskFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { + get { return updateMask_; } + set { + updateMask_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateBackupRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateBackupRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Backup, other.Backup)) return false; + if (!object.Equals(UpdateMask, other.UpdateMask)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (backup_ != null) hash ^= Backup.GetHashCode(); + if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (backup_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Backup); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (backup_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Backup); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (backup_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Backup); + } + if (updateMask_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateBackupRequest other) { + if (other == null) { + return; + } + if (other.backup_ != null) { + if (backup_ == null) { + Backup = new global::Google.Cloud.Bigtable.Admin.V2.Backup(); + } + Backup.MergeFrom(other.Backup); + } + if (other.updateMask_ != null) { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + UpdateMask.MergeFrom(other.UpdateMask); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (backup_ == null) { + Backup = new global::Google.Cloud.Bigtable.Admin.V2.Backup(); + } + input.ReadMessage(Backup); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (backup_ == null) { + Backup = new global::Google.Cloud.Bigtable.Admin.V2.Backup(); + } + input.ReadMessage(Backup); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + } + } + } + #endif + + } + + /// + /// The request for + /// [GetBackup][google.bigtable.admin.v2.BigtableTableAdmin.GetBackup]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetBackupRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetBackupRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[31]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetBackupRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetBackupRequest(GetBackupRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetBackupRequest Clone() { + return new GetBackupRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. Name of the backup. + /// Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetBackupRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetBackupRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetBackupRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// The request for + /// [DeleteBackup][google.bigtable.admin.v2.BigtableTableAdmin.DeleteBackup]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DeleteBackupRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteBackupRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[32]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteBackupRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteBackupRequest(DeleteBackupRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteBackupRequest Clone() { + return new DeleteBackupRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. Name of the backup to delete. + /// Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteBackupRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteBackupRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteBackupRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// The request for + /// [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListBackupsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListBackupsRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[33]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListBackupsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListBackupsRequest(ListBackupsRequest other) : this() { + parent_ = other.parent_; + filter_ = other.filter_; + orderBy_ = other.orderBy_; + pageSize_ = other.pageSize_; + pageToken_ = other.pageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListBackupsRequest Clone() { + return new ListBackupsRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private 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/-`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Parent { + get { return parent_; } + set { + parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "filter" field. + public const int FilterFieldNumber = 2; + private 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 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Filter { + get { return filter_; } + set { + filter_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "order_by" field. + public const int OrderByFieldNumber = 3; + private string orderBy_ = ""; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OrderBy { + get { return orderBy_; } + set { + orderBy_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "page_size" field. + public const int PageSizeFieldNumber = 4; + private int pageSize_; + /// + /// Number of backups to be returned in the response. If 0 or + /// less, defaults to the server's maximum allowed page size. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PageSize { + get { return pageSize_; } + set { + pageSize_ = value; + } + } + + /// Field number for the "page_token" field. + public const int PageTokenFieldNumber = 5; + private string pageToken_ = ""; + /// + /// 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`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PageToken { + get { return pageToken_; } + set { + pageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListBackupsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListBackupsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (Filter != other.Filter) return false; + if (OrderBy != other.OrderBy) return false; + if (PageSize != other.PageSize) return false; + if (PageToken != other.PageToken) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (Filter.Length != 0) hash ^= Filter.GetHashCode(); + if (OrderBy.Length != 0) hash ^= OrderBy.GetHashCode(); + if (PageSize != 0) hash ^= PageSize.GetHashCode(); + if (PageToken.Length != 0) hash ^= PageToken.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (Filter.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Filter); + } + if (OrderBy.Length != 0) { + output.WriteRawTag(26); + output.WriteString(OrderBy); + } + if (PageSize != 0) { + output.WriteRawTag(32); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(42); + output.WriteString(PageToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (Filter.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Filter); + } + if (OrderBy.Length != 0) { + output.WriteRawTag(26); + output.WriteString(OrderBy); + } + if (PageSize != 0) { + output.WriteRawTag(32); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(42); + output.WriteString(PageToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + if (Filter.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Filter); + } + if (OrderBy.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OrderBy); + } + if (PageSize != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize); + } + if (PageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PageToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListBackupsRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.Filter.Length != 0) { + Filter = other.Filter; + } + if (other.OrderBy.Length != 0) { + OrderBy = other.OrderBy; + } + if (other.PageSize != 0) { + PageSize = other.PageSize; + } + if (other.PageToken.Length != 0) { + PageToken = other.PageToken; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + Filter = input.ReadString(); + break; + } + case 26: { + OrderBy = input.ReadString(); + break; + } + case 32: { + PageSize = input.ReadInt32(); + break; + } + case 42: { + PageToken = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + Filter = input.ReadString(); + break; + } + case 26: { + OrderBy = input.ReadString(); + break; + } + case 32: { + PageSize = input.ReadInt32(); + break; + } + case 42: { + PageToken = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// The response for + /// [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListBackupsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListBackupsResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[34]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListBackupsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListBackupsResponse(ListBackupsResponse other) : this() { + backups_ = other.backups_.Clone(); + nextPageToken_ = other.nextPageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListBackupsResponse Clone() { + return new ListBackupsResponse(this); + } + + /// Field number for the "backups" field. + public const int BackupsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_backups_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.Bigtable.Admin.V2.Backup.Parser); + private readonly pbc::RepeatedField backups_ = new pbc::RepeatedField(); + /// + /// The list of matching backups. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Backups { + get { return backups_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private string nextPageToken_ = ""; + /// + /// `next_page_token` can be sent in a subsequent + /// [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups] call + /// to fetch more of the matching backups. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NextPageToken { + get { return nextPageToken_; } + set { + nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListBackupsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListBackupsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!backups_.Equals(other.backups_)) return false; + if (NextPageToken != other.NextPageToken) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= backups_.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + backups_.WriteTo(output, _repeated_backups_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + backups_.WriteTo(ref output, _repeated_backups_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += backups_.CalculateSize(_repeated_backups_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListBackupsResponse other) { + if (other == null) { + return; + } + backups_.Add(other.backups_); + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + backups_.AddEntriesFrom(input, _repeated_backups_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + backups_.AddEntriesFrom(ref input, _repeated_backups_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// The request for + /// [CopyBackup][google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CopyBackupRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CopyBackupRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[35]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CopyBackupRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CopyBackupRequest(CopyBackupRequest other) : this() { + parent_ = other.parent_; + backupId_ = other.backupId_; + sourceBackup_ = other.sourceBackup_; + expireTime_ = other.expireTime_ != null ? other.expireTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CopyBackupRequest Clone() { + return new CopyBackupRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private 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}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Parent { + get { return parent_; } + set { + parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "backup_id" field. + public const int BackupIdFieldNumber = 2; + private 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]*. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string BackupId { + get { return backupId_; } + set { + backupId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "source_backup" field. + public const int SourceBackupFieldNumber = 3; + private 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/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SourceBackup { + get { return sourceBackup_; } + set { + sourceBackup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "expire_time" field. + public const int ExpireTimeFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp ExpireTime { + get { return expireTime_; } + set { + expireTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CopyBackupRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CopyBackupRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (BackupId != other.BackupId) return false; + if (SourceBackup != other.SourceBackup) return false; + if (!object.Equals(ExpireTime, other.ExpireTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (BackupId.Length != 0) hash ^= BackupId.GetHashCode(); + if (SourceBackup.Length != 0) hash ^= SourceBackup.GetHashCode(); + if (expireTime_ != null) hash ^= ExpireTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (BackupId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(BackupId); + } + if (SourceBackup.Length != 0) { + output.WriteRawTag(26); + output.WriteString(SourceBackup); + } + if (expireTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ExpireTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (BackupId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(BackupId); + } + if (SourceBackup.Length != 0) { + output.WriteRawTag(26); + output.WriteString(SourceBackup); + } + if (expireTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ExpireTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + if (BackupId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BackupId); + } + if (SourceBackup.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SourceBackup); + } + if (expireTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpireTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CopyBackupRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.BackupId.Length != 0) { + BackupId = other.BackupId; + } + if (other.SourceBackup.Length != 0) { + SourceBackup = other.SourceBackup; + } + if (other.expireTime_ != null) { + if (expireTime_ == null) { + ExpireTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + ExpireTime.MergeFrom(other.ExpireTime); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + BackupId = input.ReadString(); + break; + } + case 26: { + SourceBackup = input.ReadString(); + break; + } + case 34: { + if (expireTime_ == null) { + ExpireTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ExpireTime); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + BackupId = input.ReadString(); + break; + } + case 26: { + SourceBackup = input.ReadString(); + break; + } + case 34: { + if (expireTime_ == null) { + ExpireTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ExpireTime); + break; + } + } + } + } + #endif + + } + + /// + /// Metadata type for the google.longrunning.Operation returned by + /// [CopyBackup][google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CopyBackupMetadata : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CopyBackupMetadata()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[36]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CopyBackupMetadata() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CopyBackupMetadata(CopyBackupMetadata other) : this() { + name_ = other.name_; + sourceBackupInfo_ = other.sourceBackupInfo_ != null ? other.sourceBackupInfo_.Clone() : null; + progress_ = other.progress_ != null ? other.progress_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CopyBackupMetadata Clone() { + return new CopyBackupMetadata(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// The name of the backup being created through the copy operation. + /// Values are of the form + /// `projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "source_backup_info" field. + public const int SourceBackupInfoFieldNumber = 2; + private global::Google.Cloud.Bigtable.Admin.V2.BackupInfo sourceBackupInfo_; + /// + /// Information about the source backup that is being copied from. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.BackupInfo SourceBackupInfo { + get { return sourceBackupInfo_; } + set { + sourceBackupInfo_ = value; + } + } + + /// Field number for the "progress" field. + public const int ProgressFieldNumber = 3; + private global::Google.Cloud.Bigtable.Admin.V2.OperationProgress progress_; + /// + /// The progress of the + /// [CopyBackup][google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup] + /// operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.OperationProgress Progress { + get { return progress_; } + set { + progress_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CopyBackupMetadata); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CopyBackupMetadata other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (!object.Equals(SourceBackupInfo, other.SourceBackupInfo)) return false; + if (!object.Equals(Progress, other.Progress)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (sourceBackupInfo_ != null) hash ^= SourceBackupInfo.GetHashCode(); + if (progress_ != null) hash ^= Progress.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (sourceBackupInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(SourceBackupInfo); + } + if (progress_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Progress); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (sourceBackupInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(SourceBackupInfo); + } + if (progress_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Progress); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (sourceBackupInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourceBackupInfo); + } + if (progress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Progress); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CopyBackupMetadata other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.sourceBackupInfo_ != null) { + if (sourceBackupInfo_ == null) { + SourceBackupInfo = new global::Google.Cloud.Bigtable.Admin.V2.BackupInfo(); + } + SourceBackupInfo.MergeFrom(other.SourceBackupInfo); + } + if (other.progress_ != null) { + if (progress_ == null) { + Progress = new global::Google.Cloud.Bigtable.Admin.V2.OperationProgress(); + } + Progress.MergeFrom(other.Progress); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + if (sourceBackupInfo_ == null) { + SourceBackupInfo = new global::Google.Cloud.Bigtable.Admin.V2.BackupInfo(); + } + input.ReadMessage(SourceBackupInfo); + break; + } + case 26: { + if (progress_ == null) { + Progress = new global::Google.Cloud.Bigtable.Admin.V2.OperationProgress(); + } + input.ReadMessage(Progress); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + if (sourceBackupInfo_ == null) { + SourceBackupInfo = new global::Google.Cloud.Bigtable.Admin.V2.BackupInfo(); + } + input.ReadMessage(SourceBackupInfo); + break; + } + case 26: { + if (progress_ == null) { + Progress = new global::Google.Cloud.Bigtable.Admin.V2.OperationProgress(); + } + input.ReadMessage(Progress); + break; + } + } + } + } + #endif + + } + + /// + /// The request for + /// [CreateAuthorizedView][google.bigtable.admin.v2.BigtableTableAdmin.CreateAuthorizedView] + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CreateAuthorizedViewRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateAuthorizedViewRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[37]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateAuthorizedViewRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateAuthorizedViewRequest(CreateAuthorizedViewRequest other) : this() { + parent_ = other.parent_; + authorizedViewId_ = other.authorizedViewId_; + authorizedView_ = other.authorizedView_ != null ? other.authorizedView_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateAuthorizedViewRequest Clone() { + return new CreateAuthorizedViewRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private 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}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Parent { + get { return parent_; } + set { + parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "authorized_view_id" field. + public const int AuthorizedViewIdFieldNumber = 2; + private 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}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AuthorizedViewId { + get { return authorizedViewId_; } + set { + authorizedViewId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "authorized_view" field. + public const int AuthorizedViewFieldNumber = 3; + private global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView authorizedView_; + /// + /// Required. The AuthorizedView to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView AuthorizedView { + get { return authorizedView_; } + set { + authorizedView_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateAuthorizedViewRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateAuthorizedViewRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (AuthorizedViewId != other.AuthorizedViewId) return false; + if (!object.Equals(AuthorizedView, other.AuthorizedView)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (AuthorizedViewId.Length != 0) hash ^= AuthorizedViewId.GetHashCode(); + if (authorizedView_ != null) hash ^= AuthorizedView.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (AuthorizedViewId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(AuthorizedViewId); + } + if (authorizedView_ != null) { + output.WriteRawTag(26); + output.WriteMessage(AuthorizedView); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (AuthorizedViewId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(AuthorizedViewId); + } + if (authorizedView_ != null) { + output.WriteRawTag(26); + output.WriteMessage(AuthorizedView); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + if (AuthorizedViewId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AuthorizedViewId); + } + if (authorizedView_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AuthorizedView); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateAuthorizedViewRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.AuthorizedViewId.Length != 0) { + AuthorizedViewId = other.AuthorizedViewId; + } + if (other.authorizedView_ != null) { + if (authorizedView_ == null) { + AuthorizedView = new global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView(); + } + AuthorizedView.MergeFrom(other.AuthorizedView); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + AuthorizedViewId = input.ReadString(); + break; + } + case 26: { + if (authorizedView_ == null) { + AuthorizedView = new global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView(); + } + input.ReadMessage(AuthorizedView); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + AuthorizedViewId = input.ReadString(); + break; + } + case 26: { + if (authorizedView_ == null) { + AuthorizedView = new global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView(); + } + input.ReadMessage(AuthorizedView); + break; + } + } + } + } + #endif + + } + + /// + /// The metadata for the Operation returned by CreateAuthorizedView. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CreateAuthorizedViewMetadata : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateAuthorizedViewMetadata()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[38]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateAuthorizedViewMetadata() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateAuthorizedViewMetadata(CreateAuthorizedViewMetadata other) : this() { + originalRequest_ = other.originalRequest_ != null ? other.originalRequest_.Clone() : null; + requestTime_ = other.requestTime_ != null ? other.requestTime_.Clone() : null; + finishTime_ = other.finishTime_ != null ? other.finishTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateAuthorizedViewMetadata Clone() { + return new CreateAuthorizedViewMetadata(this); + } + + /// Field number for the "original_request" field. + public const int OriginalRequestFieldNumber = 1; + private global::Google.Cloud.Bigtable.Admin.V2.CreateAuthorizedViewRequest originalRequest_; + /// + /// The request that prompted the initiation of this CreateInstance operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.CreateAuthorizedViewRequest OriginalRequest { + get { return originalRequest_; } + set { + originalRequest_ = value; + } + } + + /// Field number for the "request_time" field. + public const int RequestTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp requestTime_; + /// + /// The time at which the original request was received. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp RequestTime { + get { return requestTime_; } + set { + requestTime_ = value; + } + } + + /// Field number for the "finish_time" field. + public const int FinishTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp finishTime_; + /// + /// The time at which the operation failed or was completed successfully. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp FinishTime { + get { return finishTime_; } + set { + finishTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateAuthorizedViewMetadata); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateAuthorizedViewMetadata other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(OriginalRequest, other.OriginalRequest)) return false; + if (!object.Equals(RequestTime, other.RequestTime)) return false; + if (!object.Equals(FinishTime, other.FinishTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (originalRequest_ != null) hash ^= OriginalRequest.GetHashCode(); + if (requestTime_ != null) hash ^= RequestTime.GetHashCode(); + if (finishTime_ != null) hash ^= FinishTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (originalRequest_ != null) { + output.WriteRawTag(10); + output.WriteMessage(OriginalRequest); + } + if (requestTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(RequestTime); + } + if (finishTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(FinishTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (originalRequest_ != null) { + output.WriteRawTag(10); + output.WriteMessage(OriginalRequest); + } + if (requestTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(RequestTime); + } + if (finishTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(FinishTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (originalRequest_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OriginalRequest); + } + if (requestTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RequestTime); + } + if (finishTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FinishTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateAuthorizedViewMetadata other) { + if (other == null) { + return; + } + if (other.originalRequest_ != null) { + if (originalRequest_ == null) { + OriginalRequest = new global::Google.Cloud.Bigtable.Admin.V2.CreateAuthorizedViewRequest(); + } + OriginalRequest.MergeFrom(other.OriginalRequest); + } + if (other.requestTime_ != null) { + if (requestTime_ == null) { + RequestTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + RequestTime.MergeFrom(other.RequestTime); + } + if (other.finishTime_ != null) { + if (finishTime_ == null) { + FinishTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + FinishTime.MergeFrom(other.FinishTime); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (originalRequest_ == null) { + OriginalRequest = new global::Google.Cloud.Bigtable.Admin.V2.CreateAuthorizedViewRequest(); + } + input.ReadMessage(OriginalRequest); + break; + } + case 18: { + if (requestTime_ == null) { + RequestTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(RequestTime); + break; + } + case 26: { + if (finishTime_ == null) { + FinishTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(FinishTime); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (originalRequest_ == null) { + OriginalRequest = new global::Google.Cloud.Bigtable.Admin.V2.CreateAuthorizedViewRequest(); + } + input.ReadMessage(OriginalRequest); + break; + } + case 18: { + if (requestTime_ == null) { + RequestTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(RequestTime); + break; + } + case 26: { + if (finishTime_ == null) { + FinishTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(FinishTime); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews][google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews] + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListAuthorizedViewsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListAuthorizedViewsRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[39]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListAuthorizedViewsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListAuthorizedViewsRequest(ListAuthorizedViewsRequest other) : this() { + parent_ = other.parent_; + pageSize_ = other.pageSize_; + pageToken_ = other.pageToken_; + view_ = other.view_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListAuthorizedViewsRequest Clone() { + return new ListAuthorizedViewsRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private 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}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Parent { + get { return parent_; } + set { + parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "page_size" field. + public const int PageSizeFieldNumber = 2; + private int pageSize_; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PageSize { + get { return pageSize_; } + set { + pageSize_ = value; + } + } + + /// Field number for the "page_token" field. + public const int PageTokenFieldNumber = 3; + private string pageToken_ = ""; + /// + /// Optional. The value of `next_page_token` returned by a previous call. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PageToken { + get { return pageToken_; } + set { + pageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "view" field. + public const int ViewFieldNumber = 4; + private global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Types.ResponseView view_ = global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Types.ResponseView.Unspecified; + /// + /// Optional. The resource_view to be applied to the returned views' fields. + /// Default to NAME_ONLY. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Types.ResponseView View { + get { return view_; } + set { + view_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListAuthorizedViewsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListAuthorizedViewsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (PageSize != other.PageSize) return false; + if (PageToken != other.PageToken) return false; + if (View != other.View) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (PageSize != 0) hash ^= PageSize.GetHashCode(); + if (PageToken.Length != 0) hash ^= PageToken.GetHashCode(); + if (View != global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Types.ResponseView.Unspecified) hash ^= View.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (PageSize != 0) { + output.WriteRawTag(16); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(26); + output.WriteString(PageToken); + } + if (View != global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Types.ResponseView.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) View); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (PageSize != 0) { + output.WriteRawTag(16); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(26); + output.WriteString(PageToken); + } + if (View != global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Types.ResponseView.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) View); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + if (PageSize != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize); + } + if (PageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PageToken); + } + if (View != global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Types.ResponseView.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) View); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListAuthorizedViewsRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.PageSize != 0) { + PageSize = other.PageSize; + } + if (other.PageToken.Length != 0) { + PageToken = other.PageToken; + } + if (other.View != global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Types.ResponseView.Unspecified) { + View = other.View; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 16: { + PageSize = input.ReadInt32(); + break; + } + case 26: { + PageToken = input.ReadString(); + break; + } + case 32: { + View = (global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Types.ResponseView) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 16: { + PageSize = input.ReadInt32(); + break; + } + case 26: { + PageToken = input.ReadString(); + break; + } + case 32: { + View = (global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Types.ResponseView) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + /// + /// Response message for + /// [google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews][google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews] + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListAuthorizedViewsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListAuthorizedViewsResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[40]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListAuthorizedViewsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListAuthorizedViewsResponse(ListAuthorizedViewsResponse other) : this() { + authorizedViews_ = other.authorizedViews_.Clone(); + nextPageToken_ = other.nextPageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListAuthorizedViewsResponse Clone() { + return new ListAuthorizedViewsResponse(this); + } + + /// Field number for the "authorized_views" field. + public const int AuthorizedViewsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_authorizedViews_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Parser); + private readonly pbc::RepeatedField authorizedViews_ = new pbc::RepeatedField(); + /// + /// The AuthorizedViews present in the requested table. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AuthorizedViews { + get { return authorizedViews_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private string nextPageToken_ = ""; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NextPageToken { + get { return nextPageToken_; } + set { + nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListAuthorizedViewsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListAuthorizedViewsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!authorizedViews_.Equals(other.authorizedViews_)) return false; + if (NextPageToken != other.NextPageToken) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= authorizedViews_.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + authorizedViews_.WriteTo(output, _repeated_authorizedViews_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + authorizedViews_.WriteTo(ref output, _repeated_authorizedViews_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += authorizedViews_.CalculateSize(_repeated_authorizedViews_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListAuthorizedViewsResponse other) { + if (other == null) { + return; + } + authorizedViews_.Add(other.authorizedViews_); + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + authorizedViews_.AddEntriesFrom(input, _repeated_authorizedViews_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + authorizedViews_.AddEntriesFrom(ref input, _repeated_authorizedViews_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [google.bigtable.admin.v2.BigtableTableAdmin.GetAuthorizedView][google.bigtable.admin.v2.BigtableTableAdmin.GetAuthorizedView] + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetAuthorizedViewRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAuthorizedViewRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[41]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetAuthorizedViewRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetAuthorizedViewRequest(GetAuthorizedViewRequest other) : this() { + name_ = other.name_; + view_ = other.view_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetAuthorizedViewRequest Clone() { + return new GetAuthorizedViewRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The unique name of the requested AuthorizedView. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "view" field. + public const int ViewFieldNumber = 2; + private global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Types.ResponseView view_ = global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Types.ResponseView.Unspecified; + /// + /// Optional. The resource_view to be applied to the returned AuthorizedView's + /// fields. Default to BASIC. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Types.ResponseView View { + get { return view_; } + set { + view_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetAuthorizedViewRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetAuthorizedViewRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (View != other.View) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (View != global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Types.ResponseView.Unspecified) hash ^= View.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (View != global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Types.ResponseView.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) View); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (View != global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Types.ResponseView.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) View); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (View != global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Types.ResponseView.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) View); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetAuthorizedViewRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.View != global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Types.ResponseView.Unspecified) { + View = other.View; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + View = (global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Types.ResponseView) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + View = (global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Types.ResponseView) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + /// + /// The request for + /// [UpdateAuthorizedView][google.bigtable.admin.v2.BigtableTableAdmin.UpdateAuthorizedView]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UpdateAuthorizedViewRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateAuthorizedViewRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[42]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateAuthorizedViewRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateAuthorizedViewRequest(UpdateAuthorizedViewRequest other) : this() { + authorizedView_ = other.authorizedView_ != null ? other.authorizedView_.Clone() : null; + updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; + ignoreWarnings_ = other.ignoreWarnings_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateAuthorizedViewRequest Clone() { + return new UpdateAuthorizedViewRequest(this); + } + + /// Field number for the "authorized_view" field. + public const int AuthorizedViewFieldNumber = 1; + private global::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> + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView AuthorizedView { + get { return authorizedView_; } + set { + authorizedView_ = value; + } + } + + /// Field number for the "update_mask" field. + public const int UpdateMaskFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.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). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { + get { return updateMask_; } + set { + updateMask_ = value; + } + } + + /// Field number for the "ignore_warnings" field. + public const int IgnoreWarningsFieldNumber = 3; + private bool ignoreWarnings_; + /// + /// Optional. If true, ignore the safety checks when updating the + /// AuthorizedView. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IgnoreWarnings { + get { return ignoreWarnings_; } + set { + ignoreWarnings_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateAuthorizedViewRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateAuthorizedViewRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AuthorizedView, other.AuthorizedView)) return false; + if (!object.Equals(UpdateMask, other.UpdateMask)) return false; + if (IgnoreWarnings != other.IgnoreWarnings) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (authorizedView_ != null) hash ^= AuthorizedView.GetHashCode(); + if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); + if (IgnoreWarnings != false) hash ^= IgnoreWarnings.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (authorizedView_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AuthorizedView); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + if (IgnoreWarnings != false) { + output.WriteRawTag(24); + output.WriteBool(IgnoreWarnings); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (authorizedView_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AuthorizedView); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + if (IgnoreWarnings != false) { + output.WriteRawTag(24); + output.WriteBool(IgnoreWarnings); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (authorizedView_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AuthorizedView); + } + if (updateMask_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); + } + if (IgnoreWarnings != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateAuthorizedViewRequest other) { + if (other == null) { + return; + } + if (other.authorizedView_ != null) { + if (authorizedView_ == null) { + AuthorizedView = new global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView(); + } + AuthorizedView.MergeFrom(other.AuthorizedView); + } + if (other.updateMask_ != null) { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + UpdateMask.MergeFrom(other.UpdateMask); + } + if (other.IgnoreWarnings != false) { + IgnoreWarnings = other.IgnoreWarnings; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (authorizedView_ == null) { + AuthorizedView = new global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView(); + } + input.ReadMessage(AuthorizedView); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + case 24: { + IgnoreWarnings = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (authorizedView_ == null) { + AuthorizedView = new global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView(); + } + input.ReadMessage(AuthorizedView); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + case 24: { + IgnoreWarnings = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + /// + /// Metadata for the google.longrunning.Operation returned by + /// [UpdateAuthorizedView][google.bigtable.admin.v2.BigtableTableAdmin.UpdateAuthorizedView]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UpdateAuthorizedViewMetadata : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateAuthorizedViewMetadata()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[43]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateAuthorizedViewMetadata() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateAuthorizedViewMetadata(UpdateAuthorizedViewMetadata other) : this() { + originalRequest_ = other.originalRequest_ != null ? other.originalRequest_.Clone() : null; + requestTime_ = other.requestTime_ != null ? other.requestTime_.Clone() : null; + finishTime_ = other.finishTime_ != null ? other.finishTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateAuthorizedViewMetadata Clone() { + return new UpdateAuthorizedViewMetadata(this); + } + + /// Field number for the "original_request" field. + public const int OriginalRequestFieldNumber = 1; + private global::Google.Cloud.Bigtable.Admin.V2.UpdateAuthorizedViewRequest originalRequest_; + /// + /// The request that prompted the initiation of this UpdateAuthorizedView + /// operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.UpdateAuthorizedViewRequest OriginalRequest { + get { return originalRequest_; } + set { + originalRequest_ = value; + } + } + + /// Field number for the "request_time" field. + public const int RequestTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp requestTime_; + /// + /// The time at which the original request was received. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp RequestTime { + get { return requestTime_; } + set { + requestTime_ = value; + } + } + + /// Field number for the "finish_time" field. + public const int FinishTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp finishTime_; + /// + /// The time at which the operation failed or was completed successfully. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp FinishTime { + get { return finishTime_; } + set { + finishTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateAuthorizedViewMetadata); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateAuthorizedViewMetadata other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(OriginalRequest, other.OriginalRequest)) return false; + if (!object.Equals(RequestTime, other.RequestTime)) return false; + if (!object.Equals(FinishTime, other.FinishTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (originalRequest_ != null) hash ^= OriginalRequest.GetHashCode(); + if (requestTime_ != null) hash ^= RequestTime.GetHashCode(); + if (finishTime_ != null) hash ^= FinishTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (originalRequest_ != null) { + output.WriteRawTag(10); + output.WriteMessage(OriginalRequest); + } + if (requestTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(RequestTime); + } + if (finishTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(FinishTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (originalRequest_ != null) { + output.WriteRawTag(10); + output.WriteMessage(OriginalRequest); + } + if (requestTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(RequestTime); + } + if (finishTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(FinishTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (originalRequest_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OriginalRequest); + } + if (requestTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RequestTime); + } + if (finishTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FinishTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateAuthorizedViewMetadata other) { + if (other == null) { + return; + } + if (other.originalRequest_ != null) { + if (originalRequest_ == null) { + OriginalRequest = new global::Google.Cloud.Bigtable.Admin.V2.UpdateAuthorizedViewRequest(); + } + OriginalRequest.MergeFrom(other.OriginalRequest); + } + if (other.requestTime_ != null) { + if (requestTime_ == null) { + RequestTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + RequestTime.MergeFrom(other.RequestTime); + } + if (other.finishTime_ != null) { + if (finishTime_ == null) { + FinishTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + FinishTime.MergeFrom(other.FinishTime); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (originalRequest_ == null) { + OriginalRequest = new global::Google.Cloud.Bigtable.Admin.V2.UpdateAuthorizedViewRequest(); + } + input.ReadMessage(OriginalRequest); + break; + } + case 18: { + if (requestTime_ == null) { + RequestTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(RequestTime); + break; + } + case 26: { + if (finishTime_ == null) { + FinishTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(FinishTime); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (originalRequest_ == null) { + OriginalRequest = new global::Google.Cloud.Bigtable.Admin.V2.UpdateAuthorizedViewRequest(); + } + input.ReadMessage(OriginalRequest); + break; + } + case 18: { + if (requestTime_ == null) { + RequestTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(RequestTime); + break; + } + case 26: { + if (finishTime_ == null) { + FinishTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(FinishTime); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [google.bigtable.admin.v2.BigtableTableAdmin.DeleteAuthorizedView][google.bigtable.admin.v2.BigtableTableAdmin.DeleteAuthorizedView] + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DeleteAuthorizedViewRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteAuthorizedViewRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.MessageTypes[44]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteAuthorizedViewRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteAuthorizedViewRequest(DeleteAuthorizedViewRequest other) : this() { + name_ = other.name_; + etag_ = other.etag_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteAuthorizedViewRequest Clone() { + return new DeleteAuthorizedViewRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private 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}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "etag" field. + public const int EtagFieldNumber = 2; + private 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Etag { + get { return etag_; } + set { + etag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteAuthorizedViewRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteAuthorizedViewRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Etag != other.Etag) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Etag.Length != 0) hash ^= Etag.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Etag.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Etag); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Etag.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Etag); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Etag.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Etag); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteAuthorizedViewRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Etag.Length != 0) { + Etag = other.Etag; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Etag = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Etag = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableTableAdminClient.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableTableAdminClient.g.cs new file mode 100755 index 000000000000..afac9441b644 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableTableAdminClient.g.cs @@ -0,0 +1,6976 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +#pragma warning disable CS8981 +using gax = Google.Api.Gax; +using gaxgrpc = Google.Api.Gax.Grpc; +using gciv = Google.Cloud.Iam.V1; +using grpccore = Grpc.Core; +using grpcinter = Grpc.Core.Interceptors; +using lro = Google.LongRunning; +using mel = Microsoft.Extensions.Logging; +using proto = Google.Protobuf; +using sc = System.Collections; +using scg = System.Collections.Generic; +using sco = System.Collections.ObjectModel; +using st = System.Threading; +using stt = System.Threading.Tasks; +using sys = System; +using wkt = Google.Protobuf.WellKnownTypes; + +namespace Google.Cloud.Bigtable.Admin.V2 +{ + /// Settings for instances. + public sealed partial class BigtableTableAdminSettings : gaxgrpc::ServiceSettingsBase + { + /// Get a new instance of the default . + /// A new instance of the default . + public static BigtableTableAdminSettings GetDefault() => new BigtableTableAdminSettings(); + + /// Constructs a new object with default settings. + public BigtableTableAdminSettings() + { + } + + private BigtableTableAdminSettings(BigtableTableAdminSettings existing) : base(existing) + { + gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); + CreateTableSettings = existing.CreateTableSettings; + CreateTableFromSnapshotSettings = existing.CreateTableFromSnapshotSettings; + CreateTableFromSnapshotOperationsSettings = existing.CreateTableFromSnapshotOperationsSettings.Clone(); + ListTablesSettings = existing.ListTablesSettings; + GetTableSettings = existing.GetTableSettings; + UpdateTableSettings = existing.UpdateTableSettings; + UpdateTableOperationsSettings = existing.UpdateTableOperationsSettings.Clone(); + DeleteTableSettings = existing.DeleteTableSettings; + UndeleteTableSettings = existing.UndeleteTableSettings; + UndeleteTableOperationsSettings = existing.UndeleteTableOperationsSettings.Clone(); + CreateAuthorizedViewSettings = existing.CreateAuthorizedViewSettings; + CreateAuthorizedViewOperationsSettings = existing.CreateAuthorizedViewOperationsSettings.Clone(); + ListAuthorizedViewsSettings = existing.ListAuthorizedViewsSettings; + GetAuthorizedViewSettings = existing.GetAuthorizedViewSettings; + UpdateAuthorizedViewSettings = existing.UpdateAuthorizedViewSettings; + UpdateAuthorizedViewOperationsSettings = existing.UpdateAuthorizedViewOperationsSettings.Clone(); + DeleteAuthorizedViewSettings = existing.DeleteAuthorizedViewSettings; + ModifyColumnFamiliesSettings = existing.ModifyColumnFamiliesSettings; + DropRowRangeSettings = existing.DropRowRangeSettings; + GenerateConsistencyTokenSettings = existing.GenerateConsistencyTokenSettings; + CheckConsistencySettings = existing.CheckConsistencySettings; + SnapshotTableSettings = existing.SnapshotTableSettings; + SnapshotTableOperationsSettings = existing.SnapshotTableOperationsSettings.Clone(); + GetSnapshotSettings = existing.GetSnapshotSettings; + ListSnapshotsSettings = existing.ListSnapshotsSettings; + DeleteSnapshotSettings = existing.DeleteSnapshotSettings; + CreateBackupSettings = existing.CreateBackupSettings; + CreateBackupOperationsSettings = existing.CreateBackupOperationsSettings.Clone(); + GetBackupSettings = existing.GetBackupSettings; + UpdateBackupSettings = existing.UpdateBackupSettings; + DeleteBackupSettings = existing.DeleteBackupSettings; + ListBackupsSettings = existing.ListBackupsSettings; + RestoreTableSettings = existing.RestoreTableSettings; + RestoreTableOperationsSettings = existing.RestoreTableOperationsSettings.Clone(); + CopyBackupSettings = existing.CopyBackupSettings; + CopyBackupOperationsSettings = existing.CopyBackupOperationsSettings.Clone(); + GetIamPolicySettings = existing.GetIamPolicySettings; + SetIamPolicySettings = existing.SetIamPolicySettings; + TestIamPermissionsSettings = existing.TestIamPermissionsSettings; + OnCopy(existing); + } + + partial void OnCopy(BigtableTableAdminSettings existing); + + /// + /// for synchronous and asynchronous calls to + /// BigtableTableAdminClient.CreateTable and BigtableTableAdminClient.CreateTableAsync. + /// + /// + /// + /// This call will not be retried. + /// Timeout: 300 seconds. + /// + /// + public gaxgrpc::CallSettings CreateTableSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(300000))); + + /// + /// for synchronous and asynchronous calls to + /// BigtableTableAdminClient.CreateTableFromSnapshot and + /// BigtableTableAdminClient.CreateTableFromSnapshotAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings CreateTableFromSnapshotSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// Long Running Operation settings for calls to BigtableTableAdminClient.CreateTableFromSnapshot and + /// BigtableTableAdminClient.CreateTableFromSnapshotAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings CreateTableFromSnapshotOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// BigtableTableAdminClient.ListTables and BigtableTableAdminClient.ListTablesAsync. + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 2 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: 5 + /// + /// + /// Retriable status codes: , + /// . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings ListTablesSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 2, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// for synchronous and asynchronous calls to + /// BigtableTableAdminClient.GetTable and BigtableTableAdminClient.GetTableAsync. + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 2 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: 5 + /// + /// + /// Retriable status codes: , + /// . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings GetTableSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 2, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// for synchronous and asynchronous calls to + /// BigtableTableAdminClient.UpdateTable and BigtableTableAdminClient.UpdateTableAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings UpdateTableSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// Long Running Operation settings for calls to BigtableTableAdminClient.UpdateTable and + /// BigtableTableAdminClient.UpdateTableAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings UpdateTableOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// BigtableTableAdminClient.DeleteTable and BigtableTableAdminClient.DeleteTableAsync. + /// + /// + /// + /// This call will not be retried. + /// Timeout: 300 seconds. + /// + /// + public gaxgrpc::CallSettings DeleteTableSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(300000))); + + /// + /// for synchronous and asynchronous calls to + /// BigtableTableAdminClient.UndeleteTable and BigtableTableAdminClient.UndeleteTableAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings UndeleteTableSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// Long Running Operation settings for calls to BigtableTableAdminClient.UndeleteTable and + /// BigtableTableAdminClient.UndeleteTableAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings UndeleteTableOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// BigtableTableAdminClient.CreateAuthorizedView and + /// BigtableTableAdminClient.CreateAuthorizedViewAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings CreateAuthorizedViewSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// Long Running Operation settings for calls to BigtableTableAdminClient.CreateAuthorizedView and + /// BigtableTableAdminClient.CreateAuthorizedViewAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings CreateAuthorizedViewOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// BigtableTableAdminClient.ListAuthorizedViews and BigtableTableAdminClient.ListAuthorizedViewsAsync + /// . + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings ListAuthorizedViewsSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// for synchronous and asynchronous calls to + /// BigtableTableAdminClient.GetAuthorizedView and BigtableTableAdminClient.GetAuthorizedViewAsync + /// . + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings GetAuthorizedViewSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// for synchronous and asynchronous calls to + /// BigtableTableAdminClient.UpdateAuthorizedView and + /// BigtableTableAdminClient.UpdateAuthorizedViewAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings UpdateAuthorizedViewSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// Long Running Operation settings for calls to BigtableTableAdminClient.UpdateAuthorizedView and + /// BigtableTableAdminClient.UpdateAuthorizedViewAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings UpdateAuthorizedViewOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// BigtableTableAdminClient.DeleteAuthorizedView and + /// BigtableTableAdminClient.DeleteAuthorizedViewAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings DeleteAuthorizedViewSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// for synchronous and asynchronous calls to + /// BigtableTableAdminClient.ModifyColumnFamilies and + /// BigtableTableAdminClient.ModifyColumnFamiliesAsync. + /// + /// + /// + /// This call will not be retried. + /// Timeout: 300 seconds. + /// + /// + public gaxgrpc::CallSettings ModifyColumnFamiliesSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(300000))); + + /// + /// for synchronous and asynchronous calls to + /// BigtableTableAdminClient.DropRowRange and BigtableTableAdminClient.DropRowRangeAsync. + /// + /// + /// + /// This call will not be retried. + /// Timeout: 3600 seconds. + /// + /// + public gaxgrpc::CallSettings DropRowRangeSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(3600000))); + + /// + /// for synchronous and asynchronous calls to + /// BigtableTableAdminClient.GenerateConsistencyToken and + /// BigtableTableAdminClient.GenerateConsistencyTokenAsync. + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 2 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: 5 + /// + /// + /// Retriable status codes: , + /// . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings GenerateConsistencyTokenSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 2, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// for synchronous and asynchronous calls to + /// BigtableTableAdminClient.CheckConsistency and BigtableTableAdminClient.CheckConsistencyAsync. + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 2 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: 100 + /// + /// + /// Retriable status codes: , + /// . + /// + /// + /// Timeout: 3600 seconds. + /// + /// + public gaxgrpc::CallSettings CheckConsistencySettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(3600000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 100, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 2, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// for synchronous and asynchronous calls to + /// BigtableTableAdminClient.SnapshotTable and BigtableTableAdminClient.SnapshotTableAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings SnapshotTableSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// Long Running Operation settings for calls to BigtableTableAdminClient.SnapshotTable and + /// BigtableTableAdminClient.SnapshotTableAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings SnapshotTableOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// BigtableTableAdminClient.GetSnapshot and BigtableTableAdminClient.GetSnapshotAsync. + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 2 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: 5 + /// + /// + /// Retriable status codes: , + /// . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings GetSnapshotSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 2, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// for synchronous and asynchronous calls to + /// BigtableTableAdminClient.ListSnapshots and BigtableTableAdminClient.ListSnapshotsAsync. + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 2 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: 5 + /// + /// + /// Retriable status codes: , + /// . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings ListSnapshotsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 2, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// for synchronous and asynchronous calls to + /// BigtableTableAdminClient.DeleteSnapshot and BigtableTableAdminClient.DeleteSnapshotAsync. + /// + /// + /// + /// This call will not be retried. + /// Timeout: 300 seconds. + /// + /// + public gaxgrpc::CallSettings DeleteSnapshotSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(300000))); + + /// + /// for synchronous and asynchronous calls to + /// BigtableTableAdminClient.CreateBackup and BigtableTableAdminClient.CreateBackupAsync. + /// + /// + /// + /// This call will not be retried. + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings CreateBackupSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))); + + /// + /// Long Running Operation settings for calls to BigtableTableAdminClient.CreateBackup and + /// BigtableTableAdminClient.CreateBackupAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings CreateBackupOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// BigtableTableAdminClient.GetBackup and BigtableTableAdminClient.GetBackupAsync. + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 2 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: 5 + /// + /// + /// Retriable status codes: , + /// . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings GetBackupSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 2, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// for synchronous and asynchronous calls to + /// BigtableTableAdminClient.UpdateBackup and BigtableTableAdminClient.UpdateBackupAsync. + /// + /// + /// + /// This call will not be retried. + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings UpdateBackupSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))); + + /// + /// for synchronous and asynchronous calls to + /// BigtableTableAdminClient.DeleteBackup and BigtableTableAdminClient.DeleteBackupAsync. + /// + /// + /// + /// This call will not be retried. + /// Timeout: 300 seconds. + /// + /// + public gaxgrpc::CallSettings DeleteBackupSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(300000))); + + /// + /// for synchronous and asynchronous calls to + /// BigtableTableAdminClient.ListBackups and BigtableTableAdminClient.ListBackupsAsync. + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 2 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: 5 + /// + /// + /// Retriable status codes: , + /// . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings ListBackupsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 2, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// for synchronous and asynchronous calls to + /// BigtableTableAdminClient.RestoreTable and BigtableTableAdminClient.RestoreTableAsync. + /// + /// + /// + /// This call will not be retried. + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings RestoreTableSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))); + + /// + /// Long Running Operation settings for calls to BigtableTableAdminClient.RestoreTable and + /// BigtableTableAdminClient.RestoreTableAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings RestoreTableOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// BigtableTableAdminClient.CopyBackup and BigtableTableAdminClient.CopyBackupAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings CopyBackupSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// Long Running Operation settings for calls to BigtableTableAdminClient.CopyBackup and + /// BigtableTableAdminClient.CopyBackupAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings CopyBackupOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + + /// + /// for synchronous and asynchronous calls to + /// BigtableTableAdminClient.GetIamPolicy and BigtableTableAdminClient.GetIamPolicyAsync. + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 2 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: 5 + /// + /// + /// Retriable status codes: , + /// . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings GetIamPolicySettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 2, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// + /// for synchronous and asynchronous calls to + /// BigtableTableAdminClient.SetIamPolicy and BigtableTableAdminClient.SetIamPolicyAsync. + /// + /// + /// + /// This call will not be retried. + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings SetIamPolicySettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))); + + /// + /// for synchronous and asynchronous calls to + /// BigtableTableAdminClient.TestIamPermissions and BigtableTableAdminClient.TestIamPermissionsAsync + /// . + /// + /// + /// + /// Initial retry delay: 1000 milliseconds. + /// Retry delay multiplier: 2 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: 5 + /// + /// + /// Retriable status codes: , + /// . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings TestIamPermissionsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(1000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 2, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); + + /// Creates a deep clone of this object, with all the same property values. + /// A deep clone of this object. + public BigtableTableAdminSettings Clone() => new BigtableTableAdminSettings(this); + } + + /// + /// Builder class for to provide simple configuration of credentials, + /// endpoint etc. + /// + public sealed partial class BigtableTableAdminClientBuilder : gaxgrpc::ClientBuilderBase + { + /// The settings to use for RPCs, or null for the default settings. + public BigtableTableAdminSettings Settings { get; set; } + + /// Creates a new builder with default settings. + public BigtableTableAdminClientBuilder() : base(BigtableTableAdminClient.ServiceMetadata) + { + } + + partial void InterceptBuild(ref BigtableTableAdminClient client); + + partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); + + /// Builds the resulting client. + public override BigtableTableAdminClient Build() + { + BigtableTableAdminClient client = null; + InterceptBuild(ref client); + return client ?? BuildImpl(); + } + + /// Builds the resulting client asynchronously. + public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) + { + stt::Task task = null; + InterceptBuildAsync(cancellationToken, ref task); + return task ?? BuildAsyncImpl(cancellationToken); + } + + private BigtableTableAdminClient BuildImpl() + { + Validate(); + grpccore::CallInvoker callInvoker = CreateCallInvoker(); + return BigtableTableAdminClient.Create(callInvoker, GetEffectiveSettings(Settings?.Clone()), Logger); + } + + private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) + { + Validate(); + grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); + return BigtableTableAdminClient.Create(callInvoker, GetEffectiveSettings(Settings?.Clone()), Logger); + } + + /// Returns the channel pool to use when no other options are specified. + protected override gaxgrpc::ChannelPool GetChannelPool() => BigtableTableAdminClient.ChannelPool; + } + + /// BigtableTableAdmin client wrapper, for convenient use. + /// + /// Service for creating, configuring, and deleting Cloud Bigtable tables. + /// + /// + /// Provides access to the table schemas only, not the data stored within + /// the tables. + /// + public abstract partial class BigtableTableAdminClient + { + /// + /// The default endpoint for the BigtableTableAdmin service, which is a host of "bigtableadmin.googleapis.com" + /// and a port of 443. + /// + public static string DefaultEndpoint { get; } = "bigtableadmin.googleapis.com:443"; + + /// The default BigtableTableAdmin scopes. + /// + /// The default BigtableTableAdmin scopes are: + /// + /// 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 + /// + /// + public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] + { + "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", + }); + + /// The service metadata associated with this client type. + public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(BigtableTableAdmin.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); + + internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); + + /// + /// Asynchronously creates a using the default credentials, endpoint and + /// settings. To specify custom credentials or other settings, use + /// . + /// + /// + /// The to use while creating the client. + /// + /// The task representing the created . + public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => + new BigtableTableAdminClientBuilder().BuildAsync(cancellationToken); + + /// + /// Synchronously creates a using the default credentials, endpoint and + /// settings. To specify custom credentials or other settings, use + /// . + /// + /// The created . + public static BigtableTableAdminClient Create() => new BigtableTableAdminClientBuilder().Build(); + + /// + /// Creates a which uses the specified call invoker for remote + /// operations. + /// + /// + /// The for remote operations. Must not be null. + /// + /// Optional . + /// Optional . + /// The created . + internal static BigtableTableAdminClient Create(grpccore::CallInvoker callInvoker, BigtableTableAdminSettings settings = null, mel::ILogger logger = null) + { + gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); + grpcinter::Interceptor interceptor = settings?.Interceptor; + if (interceptor != null) + { + callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); + } + BigtableTableAdmin.BigtableTableAdminClient grpcClient = new BigtableTableAdmin.BigtableTableAdminClient(callInvoker); + return new BigtableTableAdminClientImpl(grpcClient, settings, logger); + } + + /// + /// Shuts down any channels automatically created by and + /// . Channels which weren't automatically created are not + /// affected. + /// + /// + /// After calling this method, further calls to and + /// will create new channels, which could in turn be shut down + /// by another call to this method. + /// + /// A task representing the asynchronous shutdown operation. + public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); + + /// The underlying gRPC BigtableTableAdmin client + public virtual BigtableTableAdmin.BigtableTableAdminClient GrpcClient => throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Table CreateTable(CreateTableRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task
CreateTableAsync(CreateTableRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task
CreateTableAsync(CreateTableRequest request, st::CancellationToken cancellationToken) => + CreateTableAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// 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. + /// + /// + /// Required. The unique name of the instance in which to create the table. + /// Values are of the form `projects/{project}/instances/{instance}`. + /// + /// + /// 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. + /// + /// + /// Required. The Table to create. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Table CreateTable(string parent, string tableId, Table table, gaxgrpc::CallSettings callSettings = null) => + CreateTable(new CreateTableRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + TableId = gax::GaxPreconditions.CheckNotNullOrEmpty(tableId, nameof(tableId)), + Table = gax::GaxPreconditions.CheckNotNull(table, nameof(table)), + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the instance in which to create the table. + /// Values are of the form `projects/{project}/instances/{instance}`. + /// + /// + /// 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. + /// + /// + /// Required. The Table to create. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task
CreateTableAsync(string parent, string tableId, Table table, gaxgrpc::CallSettings callSettings = null) => + CreateTableAsync(new CreateTableRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + TableId = gax::GaxPreconditions.CheckNotNullOrEmpty(tableId, nameof(tableId)), + Table = gax::GaxPreconditions.CheckNotNull(table, nameof(table)), + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the instance in which to create the table. + /// Values are of the form `projects/{project}/instances/{instance}`. + /// + /// + /// 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. + /// + /// + /// Required. The Table to create. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task
CreateTableAsync(string parent, string tableId, Table table, st::CancellationToken cancellationToken) => + CreateTableAsync(parent, tableId, table, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// 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. + /// + /// + /// Required. The unique name of the instance in which to create the table. + /// Values are of the form `projects/{project}/instances/{instance}`. + /// + /// + /// 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. + /// + /// + /// Required. The Table to create. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Table CreateTable(InstanceName parent, string tableId, Table table, gaxgrpc::CallSettings callSettings = null) => + CreateTable(new CreateTableRequest + { + ParentAsInstanceName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + TableId = gax::GaxPreconditions.CheckNotNullOrEmpty(tableId, nameof(tableId)), + Table = gax::GaxPreconditions.CheckNotNull(table, nameof(table)), + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the instance in which to create the table. + /// Values are of the form `projects/{project}/instances/{instance}`. + /// + /// + /// 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. + /// + /// + /// Required. The Table to create. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task
CreateTableAsync(InstanceName parent, string tableId, Table table, gaxgrpc::CallSettings callSettings = null) => + CreateTableAsync(new CreateTableRequest + { + ParentAsInstanceName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + TableId = gax::GaxPreconditions.CheckNotNullOrEmpty(tableId, nameof(tableId)), + Table = gax::GaxPreconditions.CheckNotNull(table, nameof(table)), + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the instance in which to create the table. + /// Values are of the form `projects/{project}/instances/{instance}`. + /// + /// + /// 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. + /// + /// + /// Required. The Table to create. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task
CreateTableAsync(InstanceName parent, string tableId, Table table, st::CancellationToken cancellationToken) => + CreateTableAsync(parent, tableId, table, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateTableFromSnapshot(CreateTableFromSnapshotRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateTableFromSnapshotAsync(CreateTableFromSnapshotRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateTableFromSnapshotAsync(CreateTableFromSnapshotRequest request, st::CancellationToken cancellationToken) => + CreateTableFromSnapshotAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for CreateTableFromSnapshot. + public virtual lro::OperationsClient CreateTableFromSnapshotOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of + /// CreateTableFromSnapshot. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceCreateTableFromSnapshot(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), CreateTableFromSnapshotOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// CreateTableFromSnapshot. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceCreateTableFromSnapshotAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), CreateTableFromSnapshotOperationsClient, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the instance in which to create the table. + /// Values are of the form `projects/{project}/instances/{instance}`. + /// + /// + /// Required. The name by which the new table should be referred to within the + /// parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + /// + /// + /// 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}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateTableFromSnapshot(string parent, string tableId, string sourceSnapshot, gaxgrpc::CallSettings callSettings = null) => + CreateTableFromSnapshot(new CreateTableFromSnapshotRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + TableId = gax::GaxPreconditions.CheckNotNullOrEmpty(tableId, nameof(tableId)), + SourceSnapshot = gax::GaxPreconditions.CheckNotNullOrEmpty(sourceSnapshot, nameof(sourceSnapshot)), + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the instance in which to create the table. + /// Values are of the form `projects/{project}/instances/{instance}`. + /// + /// + /// Required. The name by which the new table should be referred to within the + /// parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + /// + /// + /// 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}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateTableFromSnapshotAsync(string parent, string tableId, string sourceSnapshot, gaxgrpc::CallSettings callSettings = null) => + CreateTableFromSnapshotAsync(new CreateTableFromSnapshotRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + TableId = gax::GaxPreconditions.CheckNotNullOrEmpty(tableId, nameof(tableId)), + SourceSnapshot = gax::GaxPreconditions.CheckNotNullOrEmpty(sourceSnapshot, nameof(sourceSnapshot)), + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the instance in which to create the table. + /// Values are of the form `projects/{project}/instances/{instance}`. + /// + /// + /// Required. The name by which the new table should be referred to within the + /// parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + /// + /// + /// 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}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateTableFromSnapshotAsync(string parent, string tableId, string sourceSnapshot, st::CancellationToken cancellationToken) => + CreateTableFromSnapshotAsync(parent, tableId, sourceSnapshot, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// 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. + /// + /// + /// Required. The unique name of the instance in which to create the table. + /// Values are of the form `projects/{project}/instances/{instance}`. + /// + /// + /// Required. The name by which the new table should be referred to within the + /// parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + /// + /// + /// 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}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateTableFromSnapshot(InstanceName parent, string tableId, SnapshotName sourceSnapshot, gaxgrpc::CallSettings callSettings = null) => + CreateTableFromSnapshot(new CreateTableFromSnapshotRequest + { + ParentAsInstanceName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + TableId = gax::GaxPreconditions.CheckNotNullOrEmpty(tableId, nameof(tableId)), + SourceSnapshotAsSnapshotName = gax::GaxPreconditions.CheckNotNull(sourceSnapshot, nameof(sourceSnapshot)), + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the instance in which to create the table. + /// Values are of the form `projects/{project}/instances/{instance}`. + /// + /// + /// Required. The name by which the new table should be referred to within the + /// parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + /// + /// + /// 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}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateTableFromSnapshotAsync(InstanceName parent, string tableId, SnapshotName sourceSnapshot, gaxgrpc::CallSettings callSettings = null) => + CreateTableFromSnapshotAsync(new CreateTableFromSnapshotRequest + { + ParentAsInstanceName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + TableId = gax::GaxPreconditions.CheckNotNullOrEmpty(tableId, nameof(tableId)), + SourceSnapshotAsSnapshotName = gax::GaxPreconditions.CheckNotNull(sourceSnapshot, nameof(sourceSnapshot)), + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the instance in which to create the table. + /// Values are of the form `projects/{project}/instances/{instance}`. + /// + /// + /// Required. The name by which the new table should be referred to within the + /// parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + /// + /// + /// 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}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateTableFromSnapshotAsync(InstanceName parent, string tableId, SnapshotName sourceSnapshot, st::CancellationToken cancellationToken) => + CreateTableFromSnapshotAsync(parent, tableId, sourceSnapshot, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Lists all tables served from a specified instance. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListTables(ListTablesRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists all tables served from a specified instance. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListTablesAsync(ListTablesRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists all tables served from a specified instance. + /// + /// + /// Required. The unique name of the instance for which tables should be + /// listed. Values are of the form `projects/{project}/instances/{instance}`. + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListTables(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListTablesRequest request = new ListTablesRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListTables(request, callSettings); + } + + /// + /// Lists all tables served from a specified instance. + /// + /// + /// Required. The unique name of the instance for which tables should be + /// listed. Values are of the form `projects/{project}/instances/{instance}`. + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListTablesAsync(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListTablesRequest request = new ListTablesRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListTablesAsync(request, callSettings); + } + + /// + /// Lists all tables served from a specified instance. + /// + /// + /// Required. The unique name of the instance for which tables should be + /// listed. Values are of the form `projects/{project}/instances/{instance}`. + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListTables(InstanceName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListTablesRequest request = new ListTablesRequest + { + ParentAsInstanceName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListTables(request, callSettings); + } + + /// + /// Lists all tables served from a specified instance. + /// + /// + /// Required. The unique name of the instance for which tables should be + /// listed. Values are of the form `projects/{project}/instances/{instance}`. + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListTablesAsync(InstanceName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListTablesRequest request = new ListTablesRequest + { + ParentAsInstanceName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListTablesAsync(request, callSettings); + } + + /// + /// Gets metadata information about the specified table. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Table GetTable(GetTableRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets metadata information about the specified table. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task
GetTableAsync(GetTableRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets metadata information about the specified table. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task
GetTableAsync(GetTableRequest request, st::CancellationToken cancellationToken) => + GetTableAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets metadata information about the specified table. + /// + /// + /// Required. The unique name of the requested table. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Table GetTable(string name, gaxgrpc::CallSettings callSettings = null) => + GetTable(new GetTableRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets metadata information about the specified table. + /// + /// + /// Required. The unique name of the requested table. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task
GetTableAsync(string name, gaxgrpc::CallSettings callSettings = null) => + GetTableAsync(new GetTableRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets metadata information about the specified table. + /// + /// + /// Required. The unique name of the requested table. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task
GetTableAsync(string name, st::CancellationToken cancellationToken) => + GetTableAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets metadata information about the specified table. + /// + /// + /// Required. The unique name of the requested table. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Table GetTable(TableName name, gaxgrpc::CallSettings callSettings = null) => + GetTable(new GetTableRequest + { + TableName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets metadata information about the specified table. + /// + /// + /// Required. The unique name of the requested table. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task
GetTableAsync(TableName name, gaxgrpc::CallSettings callSettings = null) => + GetTableAsync(new GetTableRequest + { + TableName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets metadata information about the specified table. + /// + /// + /// Required. The unique name of the requested table. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task
GetTableAsync(TableName name, st::CancellationToken cancellationToken) => + GetTableAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Updates a specified table. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation UpdateTable(UpdateTableRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Updates a specified table. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> UpdateTableAsync(UpdateTableRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Updates a specified table. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> UpdateTableAsync(UpdateTableRequest request, st::CancellationToken cancellationToken) => + UpdateTableAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for UpdateTable. + public virtual lro::OperationsClient UpdateTableOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of UpdateTable. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceUpdateTable(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), UpdateTableOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// UpdateTable. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceUpdateTableAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), UpdateTableOperationsClient, callSettings); + + /// + /// Updates a specified table. + /// + /// + /// Required. The table to update. + /// The table's `name` field is used to identify the table to update. + /// + /// + /// 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` + /// + /// If `column_families` is set in `update_mask`, it will return an + /// UNIMPLEMENTED error. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation UpdateTable(Table table, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateTable(new UpdateTableRequest + { + Table = gax::GaxPreconditions.CheckNotNull(table, nameof(table)), + UpdateMask = gax::GaxPreconditions.CheckNotNull(updateMask, nameof(updateMask)), + }, callSettings); + + /// + /// Updates a specified table. + /// + /// + /// Required. The table to update. + /// The table's `name` field is used to identify the table to update. + /// + /// + /// 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` + /// + /// If `column_families` is set in `update_mask`, it will return an + /// UNIMPLEMENTED error. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> UpdateTableAsync(Table table, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateTableAsync(new UpdateTableRequest + { + Table = gax::GaxPreconditions.CheckNotNull(table, nameof(table)), + UpdateMask = gax::GaxPreconditions.CheckNotNull(updateMask, nameof(updateMask)), + }, callSettings); + + /// + /// Updates a specified table. + /// + /// + /// Required. The table to update. + /// The table's `name` field is used to identify the table to update. + /// + /// + /// 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` + /// + /// If `column_families` is set in `update_mask`, it will return an + /// UNIMPLEMENTED error. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> UpdateTableAsync(Table table, wkt::FieldMask updateMask, st::CancellationToken cancellationToken) => + UpdateTableAsync(table, updateMask, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Permanently deletes a specified table and all of its data. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteTable(DeleteTableRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Permanently deletes a specified table and all of its data. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteTableAsync(DeleteTableRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Permanently deletes a specified table and all of its data. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteTableAsync(DeleteTableRequest request, st::CancellationToken cancellationToken) => + DeleteTableAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Permanently deletes a specified table and all of its data. + /// + /// + /// Required. The unique name of the table to be deleted. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteTable(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteTable(new DeleteTableRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Permanently deletes a specified table and all of its data. + /// + /// + /// Required. The unique name of the table to be deleted. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteTableAsync(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteTableAsync(new DeleteTableRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Permanently deletes a specified table and all of its data. + /// + /// + /// Required. The unique name of the table to be deleted. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteTableAsync(string name, st::CancellationToken cancellationToken) => + DeleteTableAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Permanently deletes a specified table and all of its data. + /// + /// + /// Required. The unique name of the table to be deleted. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteTable(TableName name, gaxgrpc::CallSettings callSettings = null) => + DeleteTable(new DeleteTableRequest + { + TableName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Permanently deletes a specified table and all of its data. + /// + /// + /// Required. The unique name of the table to be deleted. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteTableAsync(TableName name, gaxgrpc::CallSettings callSettings = null) => + DeleteTableAsync(new DeleteTableRequest + { + TableName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Permanently deletes a specified table and all of its data. + /// + /// + /// Required. The unique name of the table to be deleted. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteTableAsync(TableName name, st::CancellationToken cancellationToken) => + DeleteTableAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Restores a specified table which was accidentally deleted. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation UndeleteTable(UndeleteTableRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Restores a specified table which was accidentally deleted. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> UndeleteTableAsync(UndeleteTableRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Restores a specified table which was accidentally deleted. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> UndeleteTableAsync(UndeleteTableRequest request, st::CancellationToken cancellationToken) => + UndeleteTableAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for UndeleteTable. + public virtual lro::OperationsClient UndeleteTableOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of UndeleteTable. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceUndeleteTable(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), UndeleteTableOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// UndeleteTable. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceUndeleteTableAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), UndeleteTableOperationsClient, callSettings); + + /// + /// Restores a specified table which was accidentally deleted. + /// + /// + /// Required. The unique name of the table to be restored. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation UndeleteTable(string name, gaxgrpc::CallSettings callSettings = null) => + UndeleteTable(new UndeleteTableRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Restores a specified table which was accidentally deleted. + /// + /// + /// Required. The unique name of the table to be restored. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> UndeleteTableAsync(string name, gaxgrpc::CallSettings callSettings = null) => + UndeleteTableAsync(new UndeleteTableRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Restores a specified table which was accidentally deleted. + /// + /// + /// Required. The unique name of the table to be restored. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> UndeleteTableAsync(string name, st::CancellationToken cancellationToken) => + UndeleteTableAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Restores a specified table which was accidentally deleted. + /// + /// + /// Required. The unique name of the table to be restored. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation UndeleteTable(TableName name, gaxgrpc::CallSettings callSettings = null) => + UndeleteTable(new UndeleteTableRequest + { + TableName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Restores a specified table which was accidentally deleted. + /// + /// + /// Required. The unique name of the table to be restored. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> UndeleteTableAsync(TableName name, gaxgrpc::CallSettings callSettings = null) => + UndeleteTableAsync(new UndeleteTableRequest + { + TableName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Restores a specified table which was accidentally deleted. + /// + /// + /// Required. The unique name of the table to be restored. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> UndeleteTableAsync(TableName name, st::CancellationToken cancellationToken) => + UndeleteTableAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates a new AuthorizedView in a table. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateAuthorizedView(CreateAuthorizedViewRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Creates a new AuthorizedView in a table. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateAuthorizedViewAsync(CreateAuthorizedViewRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Creates a new AuthorizedView in a table. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateAuthorizedViewAsync(CreateAuthorizedViewRequest request, st::CancellationToken cancellationToken) => + CreateAuthorizedViewAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for CreateAuthorizedView. + public virtual lro::OperationsClient CreateAuthorizedViewOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of CreateAuthorizedView + /// . + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceCreateAuthorizedView(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), CreateAuthorizedViewOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// CreateAuthorizedView. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceCreateAuthorizedViewAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), CreateAuthorizedViewOperationsClient, callSettings); + + /// + /// Creates a new AuthorizedView in a table. + /// + /// + /// Required. This is the name of the table the AuthorizedView belongs to. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// + /// Required. The AuthorizedView to create. + /// + /// + /// 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}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateAuthorizedView(string parent, AuthorizedView authorizedView, string authorizedViewId, gaxgrpc::CallSettings callSettings = null) => + CreateAuthorizedView(new CreateAuthorizedViewRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + AuthorizedViewId = gax::GaxPreconditions.CheckNotNullOrEmpty(authorizedViewId, nameof(authorizedViewId)), + AuthorizedView = gax::GaxPreconditions.CheckNotNull(authorizedView, nameof(authorizedView)), + }, callSettings); + + /// + /// Creates a new AuthorizedView in a table. + /// + /// + /// Required. This is the name of the table the AuthorizedView belongs to. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// + /// Required. The AuthorizedView to create. + /// + /// + /// 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}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateAuthorizedViewAsync(string parent, AuthorizedView authorizedView, string authorizedViewId, gaxgrpc::CallSettings callSettings = null) => + CreateAuthorizedViewAsync(new CreateAuthorizedViewRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + AuthorizedViewId = gax::GaxPreconditions.CheckNotNullOrEmpty(authorizedViewId, nameof(authorizedViewId)), + AuthorizedView = gax::GaxPreconditions.CheckNotNull(authorizedView, nameof(authorizedView)), + }, callSettings); + + /// + /// Creates a new AuthorizedView in a table. + /// + /// + /// Required. This is the name of the table the AuthorizedView belongs to. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// + /// Required. The AuthorizedView to create. + /// + /// + /// 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}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateAuthorizedViewAsync(string parent, AuthorizedView authorizedView, string authorizedViewId, st::CancellationToken cancellationToken) => + CreateAuthorizedViewAsync(parent, authorizedView, authorizedViewId, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates a new AuthorizedView in a table. + /// + /// + /// Required. This is the name of the table the AuthorizedView belongs to. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// + /// Required. The AuthorizedView to create. + /// + /// + /// 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}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateAuthorizedView(TableName parent, AuthorizedView authorizedView, string authorizedViewId, gaxgrpc::CallSettings callSettings = null) => + CreateAuthorizedView(new CreateAuthorizedViewRequest + { + ParentAsTableName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + AuthorizedViewId = gax::GaxPreconditions.CheckNotNullOrEmpty(authorizedViewId, nameof(authorizedViewId)), + AuthorizedView = gax::GaxPreconditions.CheckNotNull(authorizedView, nameof(authorizedView)), + }, callSettings); + + /// + /// Creates a new AuthorizedView in a table. + /// + /// + /// Required. This is the name of the table the AuthorizedView belongs to. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// + /// Required. The AuthorizedView to create. + /// + /// + /// 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}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateAuthorizedViewAsync(TableName parent, AuthorizedView authorizedView, string authorizedViewId, gaxgrpc::CallSettings callSettings = null) => + CreateAuthorizedViewAsync(new CreateAuthorizedViewRequest + { + ParentAsTableName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + AuthorizedViewId = gax::GaxPreconditions.CheckNotNullOrEmpty(authorizedViewId, nameof(authorizedViewId)), + AuthorizedView = gax::GaxPreconditions.CheckNotNull(authorizedView, nameof(authorizedView)), + }, callSettings); + + /// + /// Creates a new AuthorizedView in a table. + /// + /// + /// Required. This is the name of the table the AuthorizedView belongs to. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// + /// Required. The AuthorizedView to create. + /// + /// + /// 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}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateAuthorizedViewAsync(TableName parent, AuthorizedView authorizedView, string authorizedViewId, st::CancellationToken cancellationToken) => + CreateAuthorizedViewAsync(parent, authorizedView, authorizedViewId, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Lists all AuthorizedViews from a specific table. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListAuthorizedViews(ListAuthorizedViewsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists all AuthorizedViews from a specific table. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListAuthorizedViewsAsync(ListAuthorizedViewsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists all AuthorizedViews from a specific table. + /// + /// + /// Required. The unique name of the table for which AuthorizedViews should be + /// listed. Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListAuthorizedViews(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListAuthorizedViewsRequest request = new ListAuthorizedViewsRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListAuthorizedViews(request, callSettings); + } + + /// + /// Lists all AuthorizedViews from a specific table. + /// + /// + /// Required. The unique name of the table for which AuthorizedViews should be + /// listed. Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListAuthorizedViewsAsync(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListAuthorizedViewsRequest request = new ListAuthorizedViewsRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListAuthorizedViewsAsync(request, callSettings); + } + + /// + /// Lists all AuthorizedViews from a specific table. + /// + /// + /// Required. The unique name of the table for which AuthorizedViews should be + /// listed. Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListAuthorizedViews(TableName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListAuthorizedViewsRequest request = new ListAuthorizedViewsRequest + { + ParentAsTableName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListAuthorizedViews(request, callSettings); + } + + /// + /// Lists all AuthorizedViews from a specific table. + /// + /// + /// Required. The unique name of the table for which AuthorizedViews should be + /// listed. Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListAuthorizedViewsAsync(TableName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListAuthorizedViewsRequest request = new ListAuthorizedViewsRequest + { + ParentAsTableName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListAuthorizedViewsAsync(request, callSettings); + } + + /// + /// Gets information from a specified AuthorizedView. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual AuthorizedView GetAuthorizedView(GetAuthorizedViewRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets information from a specified AuthorizedView. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetAuthorizedViewAsync(GetAuthorizedViewRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets information from a specified AuthorizedView. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetAuthorizedViewAsync(GetAuthorizedViewRequest request, st::CancellationToken cancellationToken) => + GetAuthorizedViewAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets information from a specified AuthorizedView. + /// + /// + /// Required. The unique name of the requested AuthorizedView. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual AuthorizedView GetAuthorizedView(string name, gaxgrpc::CallSettings callSettings = null) => + GetAuthorizedView(new GetAuthorizedViewRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets information from a specified AuthorizedView. + /// + /// + /// Required. The unique name of the requested AuthorizedView. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetAuthorizedViewAsync(string name, gaxgrpc::CallSettings callSettings = null) => + GetAuthorizedViewAsync(new GetAuthorizedViewRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets information from a specified AuthorizedView. + /// + /// + /// Required. The unique name of the requested AuthorizedView. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetAuthorizedViewAsync(string name, st::CancellationToken cancellationToken) => + GetAuthorizedViewAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets information from a specified AuthorizedView. + /// + /// + /// Required. The unique name of the requested AuthorizedView. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual AuthorizedView GetAuthorizedView(AuthorizedViewName name, gaxgrpc::CallSettings callSettings = null) => + GetAuthorizedView(new GetAuthorizedViewRequest + { + AuthorizedViewName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets information from a specified AuthorizedView. + /// + /// + /// Required. The unique name of the requested AuthorizedView. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetAuthorizedViewAsync(AuthorizedViewName name, gaxgrpc::CallSettings callSettings = null) => + GetAuthorizedViewAsync(new GetAuthorizedViewRequest + { + AuthorizedViewName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets information from a specified AuthorizedView. + /// + /// + /// Required. The unique name of the requested AuthorizedView. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetAuthorizedViewAsync(AuthorizedViewName name, st::CancellationToken cancellationToken) => + GetAuthorizedViewAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Updates an AuthorizedView in a table. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation UpdateAuthorizedView(UpdateAuthorizedViewRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Updates an AuthorizedView in a table. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> UpdateAuthorizedViewAsync(UpdateAuthorizedViewRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Updates an AuthorizedView in a table. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> UpdateAuthorizedViewAsync(UpdateAuthorizedViewRequest request, st::CancellationToken cancellationToken) => + UpdateAuthorizedViewAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for UpdateAuthorizedView. + public virtual lro::OperationsClient UpdateAuthorizedViewOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of UpdateAuthorizedView + /// . + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceUpdateAuthorizedView(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), UpdateAuthorizedViewOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// UpdateAuthorizedView. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceUpdateAuthorizedViewAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), UpdateAuthorizedViewOperationsClient, callSettings); + + /// + /// Updates an AuthorizedView in a table. + /// + /// + /// 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> + /// + /// + /// 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). + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation UpdateAuthorizedView(AuthorizedView authorizedView, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateAuthorizedView(new UpdateAuthorizedViewRequest + { + AuthorizedView = gax::GaxPreconditions.CheckNotNull(authorizedView, nameof(authorizedView)), + UpdateMask = updateMask, + }, callSettings); + + /// + /// Updates an AuthorizedView in a table. + /// + /// + /// 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> + /// + /// + /// 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). + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> UpdateAuthorizedViewAsync(AuthorizedView authorizedView, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateAuthorizedViewAsync(new UpdateAuthorizedViewRequest + { + AuthorizedView = gax::GaxPreconditions.CheckNotNull(authorizedView, nameof(authorizedView)), + UpdateMask = updateMask, + }, callSettings); + + /// + /// Updates an AuthorizedView in a table. + /// + /// + /// 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> + /// + /// + /// 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). + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> UpdateAuthorizedViewAsync(AuthorizedView authorizedView, wkt::FieldMask updateMask, st::CancellationToken cancellationToken) => + UpdateAuthorizedViewAsync(authorizedView, updateMask, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Permanently deletes a specified AuthorizedView. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteAuthorizedView(DeleteAuthorizedViewRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Permanently deletes a specified AuthorizedView. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteAuthorizedViewAsync(DeleteAuthorizedViewRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Permanently deletes a specified AuthorizedView. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteAuthorizedViewAsync(DeleteAuthorizedViewRequest request, st::CancellationToken cancellationToken) => + DeleteAuthorizedViewAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Permanently deletes a specified AuthorizedView. + /// + /// + /// Required. The unique name of the AuthorizedView to be deleted. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteAuthorizedView(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteAuthorizedView(new DeleteAuthorizedViewRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Permanently deletes a specified AuthorizedView. + /// + /// + /// Required. The unique name of the AuthorizedView to be deleted. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteAuthorizedViewAsync(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteAuthorizedViewAsync(new DeleteAuthorizedViewRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Permanently deletes a specified AuthorizedView. + /// + /// + /// Required. The unique name of the AuthorizedView to be deleted. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteAuthorizedViewAsync(string name, st::CancellationToken cancellationToken) => + DeleteAuthorizedViewAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Permanently deletes a specified AuthorizedView. + /// + /// + /// Required. The unique name of the AuthorizedView to be deleted. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteAuthorizedView(AuthorizedViewName name, gaxgrpc::CallSettings callSettings = null) => + DeleteAuthorizedView(new DeleteAuthorizedViewRequest + { + AuthorizedViewName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Permanently deletes a specified AuthorizedView. + /// + /// + /// Required. The unique name of the AuthorizedView to be deleted. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteAuthorizedViewAsync(AuthorizedViewName name, gaxgrpc::CallSettings callSettings = null) => + DeleteAuthorizedViewAsync(new DeleteAuthorizedViewRequest + { + AuthorizedViewName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Permanently deletes a specified AuthorizedView. + /// + /// + /// Required. The unique name of the AuthorizedView to be deleted. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteAuthorizedViewAsync(AuthorizedViewName name, st::CancellationToken cancellationToken) => + DeleteAuthorizedViewAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Table ModifyColumnFamilies(ModifyColumnFamiliesRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task
ModifyColumnFamiliesAsync(ModifyColumnFamiliesRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task
ModifyColumnFamiliesAsync(ModifyColumnFamiliesRequest request, st::CancellationToken cancellationToken) => + ModifyColumnFamiliesAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// 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. + /// + /// + /// Required. The unique name of the table whose families should be modified. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// + /// 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). + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Table ModifyColumnFamilies(string name, scg::IEnumerable modifications, gaxgrpc::CallSettings callSettings = null) => + ModifyColumnFamilies(new ModifyColumnFamiliesRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + Modifications = + { + gax::GaxPreconditions.CheckNotNull(modifications, nameof(modifications)), + }, + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the table whose families should be modified. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// + /// 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). + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task
ModifyColumnFamiliesAsync(string name, scg::IEnumerable modifications, gaxgrpc::CallSettings callSettings = null) => + ModifyColumnFamiliesAsync(new ModifyColumnFamiliesRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + Modifications = + { + gax::GaxPreconditions.CheckNotNull(modifications, nameof(modifications)), + }, + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the table whose families should be modified. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// + /// 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). + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task
ModifyColumnFamiliesAsync(string name, scg::IEnumerable modifications, st::CancellationToken cancellationToken) => + ModifyColumnFamiliesAsync(name, modifications, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// 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. + /// + /// + /// Required. The unique name of the table whose families should be modified. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// + /// 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). + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Table ModifyColumnFamilies(TableName name, scg::IEnumerable modifications, gaxgrpc::CallSettings callSettings = null) => + ModifyColumnFamilies(new ModifyColumnFamiliesRequest + { + TableName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + Modifications = + { + gax::GaxPreconditions.CheckNotNull(modifications, nameof(modifications)), + }, + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the table whose families should be modified. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// + /// 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). + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task
ModifyColumnFamiliesAsync(TableName name, scg::IEnumerable modifications, gaxgrpc::CallSettings callSettings = null) => + ModifyColumnFamiliesAsync(new ModifyColumnFamiliesRequest + { + TableName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + Modifications = + { + gax::GaxPreconditions.CheckNotNull(modifications, nameof(modifications)), + }, + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the table whose families should be modified. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// + /// 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). + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task
ModifyColumnFamiliesAsync(TableName name, scg::IEnumerable modifications, st::CancellationToken cancellationToken) => + ModifyColumnFamiliesAsync(name, modifications, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DropRowRange(DropRowRangeRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DropRowRangeAsync(DropRowRangeRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DropRowRangeAsync(DropRowRangeRequest request, st::CancellationToken cancellationToken) => + DropRowRangeAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual GenerateConsistencyTokenResponse GenerateConsistencyToken(GenerateConsistencyTokenRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GenerateConsistencyTokenAsync(GenerateConsistencyTokenRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GenerateConsistencyTokenAsync(GenerateConsistencyTokenRequest request, st::CancellationToken cancellationToken) => + GenerateConsistencyTokenAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// 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. + /// + /// + /// 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}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual GenerateConsistencyTokenResponse GenerateConsistencyToken(string name, gaxgrpc::CallSettings callSettings = null) => + GenerateConsistencyToken(new GenerateConsistencyTokenRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// 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. + /// + /// + /// 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}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GenerateConsistencyTokenAsync(string name, gaxgrpc::CallSettings callSettings = null) => + GenerateConsistencyTokenAsync(new GenerateConsistencyTokenRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// 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. + /// + /// + /// 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}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GenerateConsistencyTokenAsync(string name, st::CancellationToken cancellationToken) => + GenerateConsistencyTokenAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// 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. + /// + /// + /// 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}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual GenerateConsistencyTokenResponse GenerateConsistencyToken(TableName name, gaxgrpc::CallSettings callSettings = null) => + GenerateConsistencyToken(new GenerateConsistencyTokenRequest + { + TableName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// 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. + /// + /// + /// 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}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GenerateConsistencyTokenAsync(TableName name, gaxgrpc::CallSettings callSettings = null) => + GenerateConsistencyTokenAsync(new GenerateConsistencyTokenRequest + { + TableName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// 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. + /// + /// + /// 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}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GenerateConsistencyTokenAsync(TableName name, st::CancellationToken cancellationToken) => + GenerateConsistencyTokenAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual CheckConsistencyResponse CheckConsistency(CheckConsistencyRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task CheckConsistencyAsync(CheckConsistencyRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task CheckConsistencyAsync(CheckConsistencyRequest request, st::CancellationToken cancellationToken) => + CheckConsistencyAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// 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. + /// + /// + /// Required. The unique name of the Table for which to check replication + /// consistency. Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// + /// Required. The token created using GenerateConsistencyToken for the Table. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual CheckConsistencyResponse CheckConsistency(string name, string consistencyToken, gaxgrpc::CallSettings callSettings = null) => + CheckConsistency(new CheckConsistencyRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + ConsistencyToken = gax::GaxPreconditions.CheckNotNullOrEmpty(consistencyToken, nameof(consistencyToken)), + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the Table for which to check replication + /// consistency. Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// + /// Required. The token created using GenerateConsistencyToken for the Table. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task CheckConsistencyAsync(string name, string consistencyToken, gaxgrpc::CallSettings callSettings = null) => + CheckConsistencyAsync(new CheckConsistencyRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + ConsistencyToken = gax::GaxPreconditions.CheckNotNullOrEmpty(consistencyToken, nameof(consistencyToken)), + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the Table for which to check replication + /// consistency. Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// + /// Required. The token created using GenerateConsistencyToken for the Table. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task CheckConsistencyAsync(string name, string consistencyToken, st::CancellationToken cancellationToken) => + CheckConsistencyAsync(name, consistencyToken, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// 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. + /// + /// + /// Required. The unique name of the Table for which to check replication + /// consistency. Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// + /// Required. The token created using GenerateConsistencyToken for the Table. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual CheckConsistencyResponse CheckConsistency(TableName name, string consistencyToken, gaxgrpc::CallSettings callSettings = null) => + CheckConsistency(new CheckConsistencyRequest + { + TableName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + ConsistencyToken = gax::GaxPreconditions.CheckNotNullOrEmpty(consistencyToken, nameof(consistencyToken)), + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the Table for which to check replication + /// consistency. Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// + /// Required. The token created using GenerateConsistencyToken for the Table. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task CheckConsistencyAsync(TableName name, string consistencyToken, gaxgrpc::CallSettings callSettings = null) => + CheckConsistencyAsync(new CheckConsistencyRequest + { + TableName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + ConsistencyToken = gax::GaxPreconditions.CheckNotNullOrEmpty(consistencyToken, nameof(consistencyToken)), + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the Table for which to check replication + /// consistency. Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// + /// Required. The token created using GenerateConsistencyToken for the Table. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task CheckConsistencyAsync(TableName name, string consistencyToken, st::CancellationToken cancellationToken) => + CheckConsistencyAsync(name, consistencyToken, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation SnapshotTable(SnapshotTableRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> SnapshotTableAsync(SnapshotTableRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> SnapshotTableAsync(SnapshotTableRequest request, st::CancellationToken cancellationToken) => + SnapshotTableAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for SnapshotTable. + public virtual lro::OperationsClient SnapshotTableOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of SnapshotTable. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceSnapshotTable(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), SnapshotTableOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// SnapshotTable. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceSnapshotTableAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), SnapshotTableOperationsClient, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the table to have the snapshot taken. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// + /// Required. The name of the cluster where the snapshot will be created in. + /// Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{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`. + /// + /// + /// Description of the snapshot. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation SnapshotTable(string name, string cluster, string snapshotId, string description, gaxgrpc::CallSettings callSettings = null) => + SnapshotTable(new SnapshotTableRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + Cluster = gax::GaxPreconditions.CheckNotNullOrEmpty(cluster, nameof(cluster)), + SnapshotId = gax::GaxPreconditions.CheckNotNullOrEmpty(snapshotId, nameof(snapshotId)), + Description = description ?? "", + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the table to have the snapshot taken. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// + /// Required. The name of the cluster where the snapshot will be created in. + /// Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{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`. + /// + /// + /// Description of the snapshot. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> SnapshotTableAsync(string name, string cluster, string snapshotId, string description, gaxgrpc::CallSettings callSettings = null) => + SnapshotTableAsync(new SnapshotTableRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + Cluster = gax::GaxPreconditions.CheckNotNullOrEmpty(cluster, nameof(cluster)), + SnapshotId = gax::GaxPreconditions.CheckNotNullOrEmpty(snapshotId, nameof(snapshotId)), + Description = description ?? "", + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the table to have the snapshot taken. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// + /// Required. The name of the cluster where the snapshot will be created in. + /// Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{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`. + /// + /// + /// Description of the snapshot. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> SnapshotTableAsync(string name, string cluster, string snapshotId, string description, st::CancellationToken cancellationToken) => + SnapshotTableAsync(name, cluster, snapshotId, description, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// 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. + /// + /// + /// Required. The unique name of the table to have the snapshot taken. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// + /// Required. The name of the cluster where the snapshot will be created in. + /// Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{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`. + /// + /// + /// Description of the snapshot. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation SnapshotTable(TableName name, ClusterName cluster, string snapshotId, string description, gaxgrpc::CallSettings callSettings = null) => + SnapshotTable(new SnapshotTableRequest + { + TableName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + ClusterAsClusterName = gax::GaxPreconditions.CheckNotNull(cluster, nameof(cluster)), + SnapshotId = gax::GaxPreconditions.CheckNotNullOrEmpty(snapshotId, nameof(snapshotId)), + Description = description ?? "", + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the table to have the snapshot taken. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// + /// Required. The name of the cluster where the snapshot will be created in. + /// Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{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`. + /// + /// + /// Description of the snapshot. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> SnapshotTableAsync(TableName name, ClusterName cluster, string snapshotId, string description, gaxgrpc::CallSettings callSettings = null) => + SnapshotTableAsync(new SnapshotTableRequest + { + TableName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + ClusterAsClusterName = gax::GaxPreconditions.CheckNotNull(cluster, nameof(cluster)), + SnapshotId = gax::GaxPreconditions.CheckNotNullOrEmpty(snapshotId, nameof(snapshotId)), + Description = description ?? "", + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the table to have the snapshot taken. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}`. + /// + /// + /// Required. The name of the cluster where the snapshot will be created in. + /// Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{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`. + /// + /// + /// Description of the snapshot. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> SnapshotTableAsync(TableName name, ClusterName cluster, string snapshotId, string description, st::CancellationToken cancellationToken) => + SnapshotTableAsync(name, cluster, snapshotId, description, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Snapshot GetSnapshot(GetSnapshotRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetSnapshotAsync(GetSnapshotRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetSnapshotAsync(GetSnapshotRequest request, st::CancellationToken cancellationToken) => + GetSnapshotAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// 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. + /// + /// + /// Required. The unique name of the requested snapshot. + /// Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Snapshot GetSnapshot(string name, gaxgrpc::CallSettings callSettings = null) => + GetSnapshot(new GetSnapshotRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the requested snapshot. + /// Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetSnapshotAsync(string name, gaxgrpc::CallSettings callSettings = null) => + GetSnapshotAsync(new GetSnapshotRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the requested snapshot. + /// Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetSnapshotAsync(string name, st::CancellationToken cancellationToken) => + GetSnapshotAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// 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. + /// + /// + /// Required. The unique name of the requested snapshot. + /// Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Snapshot GetSnapshot(SnapshotName name, gaxgrpc::CallSettings callSettings = null) => + GetSnapshot(new GetSnapshotRequest + { + SnapshotName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the requested snapshot. + /// Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetSnapshotAsync(SnapshotName name, gaxgrpc::CallSettings callSettings = null) => + GetSnapshotAsync(new GetSnapshotRequest + { + SnapshotName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the requested snapshot. + /// Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetSnapshotAsync(SnapshotName name, st::CancellationToken cancellationToken) => + GetSnapshotAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListSnapshots(ListSnapshotsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListSnapshotsAsync(ListSnapshotsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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. + /// + /// + /// 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/-`. + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListSnapshots(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListSnapshotsRequest request = new ListSnapshotsRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListSnapshots(request, callSettings); + } + + /// + /// 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. + /// + /// + /// 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/-`. + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListSnapshotsAsync(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListSnapshotsRequest request = new ListSnapshotsRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListSnapshotsAsync(request, callSettings); + } + + /// + /// 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. + /// + /// + /// 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/-`. + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListSnapshots(ClusterName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListSnapshotsRequest request = new ListSnapshotsRequest + { + ParentAsClusterName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListSnapshots(request, callSettings); + } + + /// + /// 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. + /// + /// + /// 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/-`. + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListSnapshotsAsync(ClusterName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListSnapshotsRequest request = new ListSnapshotsRequest + { + ParentAsClusterName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListSnapshotsAsync(request, callSettings); + } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteSnapshot(DeleteSnapshotRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteSnapshotAsync(DeleteSnapshotRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteSnapshotAsync(DeleteSnapshotRequest request, st::CancellationToken cancellationToken) => + DeleteSnapshotAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// 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. + /// + /// + /// Required. The unique name of the snapshot to be deleted. + /// Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteSnapshot(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteSnapshot(new DeleteSnapshotRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the snapshot to be deleted. + /// Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteSnapshotAsync(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteSnapshotAsync(new DeleteSnapshotRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the snapshot to be deleted. + /// Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteSnapshotAsync(string name, st::CancellationToken cancellationToken) => + DeleteSnapshotAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// 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. + /// + /// + /// Required. The unique name of the snapshot to be deleted. + /// Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteSnapshot(SnapshotName name, gaxgrpc::CallSettings callSettings = null) => + DeleteSnapshot(new DeleteSnapshotRequest + { + SnapshotName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the snapshot to be deleted. + /// Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteSnapshotAsync(SnapshotName name, gaxgrpc::CallSettings callSettings = null) => + DeleteSnapshotAsync(new DeleteSnapshotRequest + { + SnapshotName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// 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. + /// + /// + /// Required. The unique name of the snapshot to be deleted. + /// Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteSnapshotAsync(SnapshotName name, st::CancellationToken cancellationToken) => + DeleteSnapshotAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateBackup(CreateBackupRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateBackupAsync(CreateBackupRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateBackupAsync(CreateBackupRequest request, st::CancellationToken cancellationToken) => + CreateBackupAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for CreateBackup. + public virtual lro::OperationsClient CreateBackupOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of CreateBackup. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceCreateBackup(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), CreateBackupOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// CreateBackup. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceCreateBackupAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), CreateBackupOperationsClient, callSettings); + + /// + /// 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. + /// + /// + /// 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}`. + /// + /// + /// 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]*. + /// + /// + /// Required. The backup to create. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateBackup(string parent, string backupId, Backup backup, gaxgrpc::CallSettings callSettings = null) => + CreateBackup(new CreateBackupRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + BackupId = gax::GaxPreconditions.CheckNotNullOrEmpty(backupId, nameof(backupId)), + Backup = gax::GaxPreconditions.CheckNotNull(backup, nameof(backup)), + }, callSettings); + + /// + /// 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. + /// + /// + /// 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}`. + /// + /// + /// 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]*. + /// + /// + /// Required. The backup to create. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateBackupAsync(string parent, string backupId, Backup backup, gaxgrpc::CallSettings callSettings = null) => + CreateBackupAsync(new CreateBackupRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + BackupId = gax::GaxPreconditions.CheckNotNullOrEmpty(backupId, nameof(backupId)), + Backup = gax::GaxPreconditions.CheckNotNull(backup, nameof(backup)), + }, callSettings); + + /// + /// 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. + /// + /// + /// 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}`. + /// + /// + /// 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]*. + /// + /// + /// Required. The backup to create. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateBackupAsync(string parent, string backupId, Backup backup, st::CancellationToken cancellationToken) => + CreateBackupAsync(parent, backupId, backup, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// 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. + /// + /// + /// 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}`. + /// + /// + /// 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]*. + /// + /// + /// Required. The backup to create. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CreateBackup(ClusterName parent, string backupId, Backup backup, gaxgrpc::CallSettings callSettings = null) => + CreateBackup(new CreateBackupRequest + { + ParentAsClusterName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + BackupId = gax::GaxPreconditions.CheckNotNullOrEmpty(backupId, nameof(backupId)), + Backup = gax::GaxPreconditions.CheckNotNull(backup, nameof(backup)), + }, callSettings); + + /// + /// 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. + /// + /// + /// 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}`. + /// + /// + /// 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]*. + /// + /// + /// Required. The backup to create. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CreateBackupAsync(ClusterName parent, string backupId, Backup backup, gaxgrpc::CallSettings callSettings = null) => + CreateBackupAsync(new CreateBackupRequest + { + ParentAsClusterName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + BackupId = gax::GaxPreconditions.CheckNotNullOrEmpty(backupId, nameof(backupId)), + Backup = gax::GaxPreconditions.CheckNotNull(backup, nameof(backup)), + }, callSettings); + + /// + /// 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. + /// + /// + /// 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}`. + /// + /// + /// 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]*. + /// + /// + /// Required. The backup to create. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CreateBackupAsync(ClusterName parent, string backupId, Backup backup, st::CancellationToken cancellationToken) => + CreateBackupAsync(parent, backupId, backup, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets metadata on a pending or completed Cloud Bigtable Backup. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Backup GetBackup(GetBackupRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets metadata on a pending or completed Cloud Bigtable Backup. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetBackupAsync(GetBackupRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets metadata on a pending or completed Cloud Bigtable Backup. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetBackupAsync(GetBackupRequest request, st::CancellationToken cancellationToken) => + GetBackupAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets metadata on a pending or completed Cloud Bigtable Backup. + /// + /// + /// Required. Name of the backup. + /// Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Backup GetBackup(string name, gaxgrpc::CallSettings callSettings = null) => + GetBackup(new GetBackupRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets metadata on a pending or completed Cloud Bigtable Backup. + /// + /// + /// Required. Name of the backup. + /// Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetBackupAsync(string name, gaxgrpc::CallSettings callSettings = null) => + GetBackupAsync(new GetBackupRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets metadata on a pending or completed Cloud Bigtable Backup. + /// + /// + /// Required. Name of the backup. + /// Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetBackupAsync(string name, st::CancellationToken cancellationToken) => + GetBackupAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets metadata on a pending or completed Cloud Bigtable Backup. + /// + /// + /// Required. Name of the backup. + /// Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Backup GetBackup(BackupName name, gaxgrpc::CallSettings callSettings = null) => + GetBackup(new GetBackupRequest + { + BackupName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets metadata on a pending or completed Cloud Bigtable Backup. + /// + /// + /// Required. Name of the backup. + /// Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetBackupAsync(BackupName name, gaxgrpc::CallSettings callSettings = null) => + GetBackupAsync(new GetBackupRequest + { + BackupName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets metadata on a pending or completed Cloud Bigtable Backup. + /// + /// + /// Required. Name of the backup. + /// Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetBackupAsync(BackupName name, st::CancellationToken cancellationToken) => + GetBackupAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Updates a pending or completed Cloud Bigtable Backup. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Backup UpdateBackup(UpdateBackupRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Updates a pending or completed Cloud Bigtable Backup. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task UpdateBackupAsync(UpdateBackupRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Updates a pending or completed Cloud Bigtable Backup. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task UpdateBackupAsync(UpdateBackupRequest request, st::CancellationToken cancellationToken) => + UpdateBackupAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Updates a pending or completed Cloud Bigtable 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`. + /// + /// + /// 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. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Backup UpdateBackup(Backup backup, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateBackup(new UpdateBackupRequest + { + Backup = gax::GaxPreconditions.CheckNotNull(backup, nameof(backup)), + UpdateMask = gax::GaxPreconditions.CheckNotNull(updateMask, nameof(updateMask)), + }, callSettings); + + /// + /// Updates a pending or completed Cloud Bigtable 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`. + /// + /// + /// 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. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task UpdateBackupAsync(Backup backup, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateBackupAsync(new UpdateBackupRequest + { + Backup = gax::GaxPreconditions.CheckNotNull(backup, nameof(backup)), + UpdateMask = gax::GaxPreconditions.CheckNotNull(updateMask, nameof(updateMask)), + }, callSettings); + + /// + /// Updates a pending or completed Cloud Bigtable 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`. + /// + /// + /// 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. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task UpdateBackupAsync(Backup backup, wkt::FieldMask updateMask, st::CancellationToken cancellationToken) => + UpdateBackupAsync(backup, updateMask, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Deletes a pending or completed Cloud Bigtable backup. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteBackup(DeleteBackupRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Deletes a pending or completed Cloud Bigtable backup. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteBackupAsync(DeleteBackupRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Deletes a pending or completed Cloud Bigtable backup. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteBackupAsync(DeleteBackupRequest request, st::CancellationToken cancellationToken) => + DeleteBackupAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Deletes a pending or completed Cloud Bigtable backup. + /// + /// + /// Required. Name of the backup to delete. + /// Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteBackup(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteBackup(new DeleteBackupRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Deletes a pending or completed Cloud Bigtable backup. + /// + /// + /// Required. Name of the backup to delete. + /// Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteBackupAsync(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteBackupAsync(new DeleteBackupRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Deletes a pending or completed Cloud Bigtable backup. + /// + /// + /// Required. Name of the backup to delete. + /// Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteBackupAsync(string name, st::CancellationToken cancellationToken) => + DeleteBackupAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Deletes a pending or completed Cloud Bigtable backup. + /// + /// + /// Required. Name of the backup to delete. + /// Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteBackup(BackupName name, gaxgrpc::CallSettings callSettings = null) => + DeleteBackup(new DeleteBackupRequest + { + BackupName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Deletes a pending or completed Cloud Bigtable backup. + /// + /// + /// Required. Name of the backup to delete. + /// Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteBackupAsync(BackupName name, gaxgrpc::CallSettings callSettings = null) => + DeleteBackupAsync(new DeleteBackupRequest + { + BackupName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Deletes a pending or completed Cloud Bigtable backup. + /// + /// + /// Required. Name of the backup to delete. + /// Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteBackupAsync(BackupName name, st::CancellationToken cancellationToken) => + DeleteBackupAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Lists Cloud Bigtable backups. Returns both completed and pending + /// backups. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListBackups(ListBackupsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists Cloud Bigtable backups. Returns both completed and pending + /// backups. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListBackupsAsync(ListBackupsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists Cloud Bigtable backups. Returns both completed and pending + /// backups. + /// + /// + /// 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/-`. + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListBackups(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListBackupsRequest request = new ListBackupsRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListBackups(request, callSettings); + } + + /// + /// Lists Cloud Bigtable backups. Returns both completed and pending + /// backups. + /// + /// + /// 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/-`. + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListBackupsAsync(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListBackupsRequest request = new ListBackupsRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListBackupsAsync(request, callSettings); + } + + /// + /// Lists Cloud Bigtable backups. Returns both completed and pending + /// backups. + /// + /// + /// 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/-`. + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListBackups(ClusterName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListBackupsRequest request = new ListBackupsRequest + { + ParentAsClusterName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListBackups(request, callSettings); + } + + /// + /// Lists Cloud Bigtable backups. Returns both completed and pending + /// backups. + /// + /// + /// 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/-`. + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListBackupsAsync(ClusterName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListBackupsRequest request = new ListBackupsRequest + { + ParentAsClusterName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListBackupsAsync(request, callSettings); + } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation RestoreTable(RestoreTableRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> RestoreTableAsync(RestoreTableRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// 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 request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> RestoreTableAsync(RestoreTableRequest request, st::CancellationToken cancellationToken) => + RestoreTableAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for RestoreTable. + public virtual lro::OperationsClient RestoreTableOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of RestoreTable. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceRestoreTable(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), RestoreTableOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// RestoreTable. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceRestoreTableAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), RestoreTableOperationsClient, callSettings); + + /// + /// Copy a Cloud Bigtable backup to a new backup in the destination cluster + /// located in the destination instance and project. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CopyBackup(CopyBackupRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Copy a Cloud Bigtable backup to a new backup in the destination cluster + /// located in the destination instance and project. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CopyBackupAsync(CopyBackupRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Copy a Cloud Bigtable backup to a new backup in the destination cluster + /// located in the destination instance and project. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CopyBackupAsync(CopyBackupRequest request, st::CancellationToken cancellationToken) => + CopyBackupAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for CopyBackup. + public virtual lro::OperationsClient CopyBackupOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of CopyBackup. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceCopyBackup(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), CopyBackupOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// CopyBackup. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceCopyBackupAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), CopyBackupOperationsClient, callSettings); + + /// + /// Copy a Cloud Bigtable backup to a new backup in the destination cluster + /// located in the destination instance and project. + /// + /// + /// 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}`. + /// + /// + /// 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]*. + /// + /// + /// 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/<project>/instances/<instance>/clusters/<cluster>/backups/<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. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CopyBackup(string parent, string backupId, string sourceBackup, wkt::Timestamp expireTime, gaxgrpc::CallSettings callSettings = null) => + CopyBackup(new CopyBackupRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + BackupId = gax::GaxPreconditions.CheckNotNullOrEmpty(backupId, nameof(backupId)), + SourceBackup = gax::GaxPreconditions.CheckNotNullOrEmpty(sourceBackup, nameof(sourceBackup)), + ExpireTime = gax::GaxPreconditions.CheckNotNull(expireTime, nameof(expireTime)), + }, callSettings); + + /// + /// Copy a Cloud Bigtable backup to a new backup in the destination cluster + /// located in the destination instance and project. + /// + /// + /// 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}`. + /// + /// + /// 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]*. + /// + /// + /// 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/<project>/instances/<instance>/clusters/<cluster>/backups/<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. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CopyBackupAsync(string parent, string backupId, string sourceBackup, wkt::Timestamp expireTime, gaxgrpc::CallSettings callSettings = null) => + CopyBackupAsync(new CopyBackupRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + BackupId = gax::GaxPreconditions.CheckNotNullOrEmpty(backupId, nameof(backupId)), + SourceBackup = gax::GaxPreconditions.CheckNotNullOrEmpty(sourceBackup, nameof(sourceBackup)), + ExpireTime = gax::GaxPreconditions.CheckNotNull(expireTime, nameof(expireTime)), + }, callSettings); + + /// + /// Copy a Cloud Bigtable backup to a new backup in the destination cluster + /// located in the destination instance and project. + /// + /// + /// 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}`. + /// + /// + /// 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]*. + /// + /// + /// 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/<project>/instances/<instance>/clusters/<cluster>/backups/<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. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CopyBackupAsync(string parent, string backupId, string sourceBackup, wkt::Timestamp expireTime, st::CancellationToken cancellationToken) => + CopyBackupAsync(parent, backupId, sourceBackup, expireTime, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Copy a Cloud Bigtable backup to a new backup in the destination cluster + /// located in the destination instance and project. + /// + /// + /// 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}`. + /// + /// + /// 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]*. + /// + /// + /// 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/<project>/instances/<instance>/clusters/<cluster>/backups/<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. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation CopyBackup(ClusterName parent, string backupId, BackupName sourceBackup, wkt::Timestamp expireTime, gaxgrpc::CallSettings callSettings = null) => + CopyBackup(new CopyBackupRequest + { + ParentAsClusterName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + BackupId = gax::GaxPreconditions.CheckNotNullOrEmpty(backupId, nameof(backupId)), + SourceBackupAsBackupName = gax::GaxPreconditions.CheckNotNull(sourceBackup, nameof(sourceBackup)), + ExpireTime = gax::GaxPreconditions.CheckNotNull(expireTime, nameof(expireTime)), + }, callSettings); + + /// + /// Copy a Cloud Bigtable backup to a new backup in the destination cluster + /// located in the destination instance and project. + /// + /// + /// 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}`. + /// + /// + /// 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]*. + /// + /// + /// 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/<project>/instances/<instance>/clusters/<cluster>/backups/<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. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> CopyBackupAsync(ClusterName parent, string backupId, BackupName sourceBackup, wkt::Timestamp expireTime, gaxgrpc::CallSettings callSettings = null) => + CopyBackupAsync(new CopyBackupRequest + { + ParentAsClusterName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + BackupId = gax::GaxPreconditions.CheckNotNullOrEmpty(backupId, nameof(backupId)), + SourceBackupAsBackupName = gax::GaxPreconditions.CheckNotNull(sourceBackup, nameof(sourceBackup)), + ExpireTime = gax::GaxPreconditions.CheckNotNull(expireTime, nameof(expireTime)), + }, callSettings); + + /// + /// Copy a Cloud Bigtable backup to a new backup in the destination cluster + /// located in the destination instance and project. + /// + /// + /// 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}`. + /// + /// + /// 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]*. + /// + /// + /// 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/<project>/instances/<instance>/clusters/<cluster>/backups/<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. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> CopyBackupAsync(ClusterName parent, string backupId, BackupName sourceBackup, wkt::Timestamp expireTime, st::CancellationToken cancellationToken) => + CopyBackupAsync(parent, backupId, sourceBackup, expireTime, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets the access control policy for a Table or Backup resource. + /// Returns an empty policy if the resource exists but does not have a policy + /// set. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual gciv::Policy GetIamPolicy(gciv::GetIamPolicyRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets the access control policy for a Table or Backup resource. + /// Returns an empty policy if the resource exists but does not have a policy + /// set. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetIamPolicyAsync(gciv::GetIamPolicyRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets the access control policy for a Table or Backup resource. + /// Returns an empty policy if the resource exists but does not have a policy + /// set. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetIamPolicyAsync(gciv::GetIamPolicyRequest request, st::CancellationToken cancellationToken) => + GetIamPolicyAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets the access control policy for a Table or Backup resource. + /// Returns an empty policy if the resource exists but does not have a policy + /// set. + /// + /// + /// REQUIRED: The resource for which the policy is being requested. + /// See the operation documentation for the appropriate value for this field. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual gciv::Policy GetIamPolicy(string resource, gaxgrpc::CallSettings callSettings = null) => + GetIamPolicy(new gciv::GetIamPolicyRequest + { + Resource = gax::GaxPreconditions.CheckNotNullOrEmpty(resource, nameof(resource)), + }, callSettings); + + /// + /// Gets the access control policy for a Table or Backup resource. + /// Returns an empty policy if the resource exists but does not have a policy + /// set. + /// + /// + /// REQUIRED: The resource for which the policy is being requested. + /// See the operation documentation for the appropriate value for this field. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetIamPolicyAsync(string resource, gaxgrpc::CallSettings callSettings = null) => + GetIamPolicyAsync(new gciv::GetIamPolicyRequest + { + Resource = gax::GaxPreconditions.CheckNotNullOrEmpty(resource, nameof(resource)), + }, callSettings); + + /// + /// Gets the access control policy for a Table or Backup resource. + /// Returns an empty policy if the resource exists but does not have a policy + /// set. + /// + /// + /// REQUIRED: The resource for which the policy is being requested. + /// See the operation documentation for the appropriate value for this field. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetIamPolicyAsync(string resource, st::CancellationToken cancellationToken) => + GetIamPolicyAsync(resource, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets the access control policy for a Table or Backup resource. + /// Returns an empty policy if the resource exists but does not have a policy + /// set. + /// + /// + /// REQUIRED: The resource for which the policy is being requested. + /// See the operation documentation for the appropriate value for this field. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual gciv::Policy GetIamPolicy(gax::IResourceName resource, gaxgrpc::CallSettings callSettings = null) => + GetIamPolicy(new gciv::GetIamPolicyRequest + { + ResourceAsResourceName = gax::GaxPreconditions.CheckNotNull(resource, nameof(resource)), + }, callSettings); + + /// + /// Gets the access control policy for a Table or Backup resource. + /// Returns an empty policy if the resource exists but does not have a policy + /// set. + /// + /// + /// REQUIRED: The resource for which the policy is being requested. + /// See the operation documentation for the appropriate value for this field. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetIamPolicyAsync(gax::IResourceName resource, gaxgrpc::CallSettings callSettings = null) => + GetIamPolicyAsync(new gciv::GetIamPolicyRequest + { + ResourceAsResourceName = gax::GaxPreconditions.CheckNotNull(resource, nameof(resource)), + }, callSettings); + + /// + /// Gets the access control policy for a Table or Backup resource. + /// Returns an empty policy if the resource exists but does not have a policy + /// set. + /// + /// + /// REQUIRED: The resource for which the policy is being requested. + /// See the operation documentation for the appropriate value for this field. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetIamPolicyAsync(gax::IResourceName resource, st::CancellationToken cancellationToken) => + GetIamPolicyAsync(resource, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Sets the access control policy on a Table or Backup resource. + /// Replaces any existing policy. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual gciv::Policy SetIamPolicy(gciv::SetIamPolicyRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Sets the access control policy on a Table or Backup resource. + /// Replaces any existing policy. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task SetIamPolicyAsync(gciv::SetIamPolicyRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Sets the access control policy on a Table or Backup resource. + /// Replaces any existing policy. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task SetIamPolicyAsync(gciv::SetIamPolicyRequest request, st::CancellationToken cancellationToken) => + SetIamPolicyAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Sets the access control policy on a Table or Backup resource. + /// Replaces any existing policy. + /// + /// + /// REQUIRED: The resource for which the policy is being specified. + /// See the operation documentation for the appropriate value for this field. + /// + /// + /// REQUIRED: The complete policy to be applied to the `resource`. The size of + /// the policy is limited to a few 10s of KB. An empty policy is a + /// valid policy but certain Cloud Platform services (such as Projects) + /// might reject them. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual gciv::Policy SetIamPolicy(string resource, gciv::Policy policy, gaxgrpc::CallSettings callSettings = null) => + SetIamPolicy(new gciv::SetIamPolicyRequest + { + Resource = gax::GaxPreconditions.CheckNotNullOrEmpty(resource, nameof(resource)), + Policy = gax::GaxPreconditions.CheckNotNull(policy, nameof(policy)), + }, callSettings); + + /// + /// Sets the access control policy on a Table or Backup resource. + /// Replaces any existing policy. + /// + /// + /// REQUIRED: The resource for which the policy is being specified. + /// See the operation documentation for the appropriate value for this field. + /// + /// + /// REQUIRED: The complete policy to be applied to the `resource`. The size of + /// the policy is limited to a few 10s of KB. An empty policy is a + /// valid policy but certain Cloud Platform services (such as Projects) + /// might reject them. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task SetIamPolicyAsync(string resource, gciv::Policy policy, gaxgrpc::CallSettings callSettings = null) => + SetIamPolicyAsync(new gciv::SetIamPolicyRequest + { + Resource = gax::GaxPreconditions.CheckNotNullOrEmpty(resource, nameof(resource)), + Policy = gax::GaxPreconditions.CheckNotNull(policy, nameof(policy)), + }, callSettings); + + /// + /// Sets the access control policy on a Table or Backup resource. + /// Replaces any existing policy. + /// + /// + /// REQUIRED: The resource for which the policy is being specified. + /// See the operation documentation for the appropriate value for this field. + /// + /// + /// REQUIRED: The complete policy to be applied to the `resource`. The size of + /// the policy is limited to a few 10s of KB. An empty policy is a + /// valid policy but certain Cloud Platform services (such as Projects) + /// might reject them. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task SetIamPolicyAsync(string resource, gciv::Policy policy, st::CancellationToken cancellationToken) => + SetIamPolicyAsync(resource, policy, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Sets the access control policy on a Table or Backup resource. + /// Replaces any existing policy. + /// + /// + /// REQUIRED: The resource for which the policy is being specified. + /// See the operation documentation for the appropriate value for this field. + /// + /// + /// REQUIRED: The complete policy to be applied to the `resource`. The size of + /// the policy is limited to a few 10s of KB. An empty policy is a + /// valid policy but certain Cloud Platform services (such as Projects) + /// might reject them. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual gciv::Policy SetIamPolicy(gax::IResourceName resource, gciv::Policy policy, gaxgrpc::CallSettings callSettings = null) => + SetIamPolicy(new gciv::SetIamPolicyRequest + { + ResourceAsResourceName = gax::GaxPreconditions.CheckNotNull(resource, nameof(resource)), + Policy = gax::GaxPreconditions.CheckNotNull(policy, nameof(policy)), + }, callSettings); + + /// + /// Sets the access control policy on a Table or Backup resource. + /// Replaces any existing policy. + /// + /// + /// REQUIRED: The resource for which the policy is being specified. + /// See the operation documentation for the appropriate value for this field. + /// + /// + /// REQUIRED: The complete policy to be applied to the `resource`. The size of + /// the policy is limited to a few 10s of KB. An empty policy is a + /// valid policy but certain Cloud Platform services (such as Projects) + /// might reject them. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task SetIamPolicyAsync(gax::IResourceName resource, gciv::Policy policy, gaxgrpc::CallSettings callSettings = null) => + SetIamPolicyAsync(new gciv::SetIamPolicyRequest + { + ResourceAsResourceName = gax::GaxPreconditions.CheckNotNull(resource, nameof(resource)), + Policy = gax::GaxPreconditions.CheckNotNull(policy, nameof(policy)), + }, callSettings); + + /// + /// Sets the access control policy on a Table or Backup resource. + /// Replaces any existing policy. + /// + /// + /// REQUIRED: The resource for which the policy is being specified. + /// See the operation documentation for the appropriate value for this field. + /// + /// + /// REQUIRED: The complete policy to be applied to the `resource`. The size of + /// the policy is limited to a few 10s of KB. An empty policy is a + /// valid policy but certain Cloud Platform services (such as Projects) + /// might reject them. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task SetIamPolicyAsync(gax::IResourceName resource, gciv::Policy policy, st::CancellationToken cancellationToken) => + SetIamPolicyAsync(resource, policy, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Returns permissions that the caller has on the specified Table or Backup + /// resource. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual gciv::TestIamPermissionsResponse TestIamPermissions(gciv::TestIamPermissionsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Returns permissions that the caller has on the specified Table or Backup + /// resource. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task TestIamPermissionsAsync(gciv::TestIamPermissionsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Returns permissions that the caller has on the specified Table or Backup + /// resource. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task TestIamPermissionsAsync(gciv::TestIamPermissionsRequest request, st::CancellationToken cancellationToken) => + TestIamPermissionsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Returns permissions that the caller has on the specified Table or Backup + /// resource. + /// + /// + /// REQUIRED: The resource for which the policy detail is being requested. + /// See the operation documentation for the appropriate value for this field. + /// + /// + /// The set of permissions to check for the `resource`. Permissions with + /// wildcards (such as '*' or 'storage.*') are not allowed. For more + /// information see + /// [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual gciv::TestIamPermissionsResponse TestIamPermissions(string resource, scg::IEnumerable permissions, gaxgrpc::CallSettings callSettings = null) => + TestIamPermissions(new gciv::TestIamPermissionsRequest + { + Resource = gax::GaxPreconditions.CheckNotNullOrEmpty(resource, nameof(resource)), + Permissions = + { + gax::GaxPreconditions.CheckNotNull(permissions, nameof(permissions)), + }, + }, callSettings); + + /// + /// Returns permissions that the caller has on the specified Table or Backup + /// resource. + /// + /// + /// REQUIRED: The resource for which the policy detail is being requested. + /// See the operation documentation for the appropriate value for this field. + /// + /// + /// The set of permissions to check for the `resource`. Permissions with + /// wildcards (such as '*' or 'storage.*') are not allowed. For more + /// information see + /// [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task TestIamPermissionsAsync(string resource, scg::IEnumerable permissions, gaxgrpc::CallSettings callSettings = null) => + TestIamPermissionsAsync(new gciv::TestIamPermissionsRequest + { + Resource = gax::GaxPreconditions.CheckNotNullOrEmpty(resource, nameof(resource)), + Permissions = + { + gax::GaxPreconditions.CheckNotNull(permissions, nameof(permissions)), + }, + }, callSettings); + + /// + /// Returns permissions that the caller has on the specified Table or Backup + /// resource. + /// + /// + /// REQUIRED: The resource for which the policy detail is being requested. + /// See the operation documentation for the appropriate value for this field. + /// + /// + /// The set of permissions to check for the `resource`. Permissions with + /// wildcards (such as '*' or 'storage.*') are not allowed. For more + /// information see + /// [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task TestIamPermissionsAsync(string resource, scg::IEnumerable permissions, st::CancellationToken cancellationToken) => + TestIamPermissionsAsync(resource, permissions, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Returns permissions that the caller has on the specified Table or Backup + /// resource. + /// + /// + /// REQUIRED: The resource for which the policy detail is being requested. + /// See the operation documentation for the appropriate value for this field. + /// + /// + /// The set of permissions to check for the `resource`. Permissions with + /// wildcards (such as '*' or 'storage.*') are not allowed. For more + /// information see + /// [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual gciv::TestIamPermissionsResponse TestIamPermissions(gax::IResourceName resource, scg::IEnumerable permissions, gaxgrpc::CallSettings callSettings = null) => + TestIamPermissions(new gciv::TestIamPermissionsRequest + { + ResourceAsResourceName = gax::GaxPreconditions.CheckNotNull(resource, nameof(resource)), + Permissions = + { + gax::GaxPreconditions.CheckNotNull(permissions, nameof(permissions)), + }, + }, callSettings); + + /// + /// Returns permissions that the caller has on the specified Table or Backup + /// resource. + /// + /// + /// REQUIRED: The resource for which the policy detail is being requested. + /// See the operation documentation for the appropriate value for this field. + /// + /// + /// The set of permissions to check for the `resource`. Permissions with + /// wildcards (such as '*' or 'storage.*') are not allowed. For more + /// information see + /// [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task TestIamPermissionsAsync(gax::IResourceName resource, scg::IEnumerable permissions, gaxgrpc::CallSettings callSettings = null) => + TestIamPermissionsAsync(new gciv::TestIamPermissionsRequest + { + ResourceAsResourceName = gax::GaxPreconditions.CheckNotNull(resource, nameof(resource)), + Permissions = + { + gax::GaxPreconditions.CheckNotNull(permissions, nameof(permissions)), + }, + }, callSettings); + + /// + /// Returns permissions that the caller has on the specified Table or Backup + /// resource. + /// + /// + /// REQUIRED: The resource for which the policy detail is being requested. + /// See the operation documentation for the appropriate value for this field. + /// + /// + /// The set of permissions to check for the `resource`. Permissions with + /// wildcards (such as '*' or 'storage.*') are not allowed. For more + /// information see + /// [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task TestIamPermissionsAsync(gax::IResourceName resource, scg::IEnumerable permissions, st::CancellationToken cancellationToken) => + TestIamPermissionsAsync(resource, permissions, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + } + + /// BigtableTableAdmin client wrapper implementation, for convenient use. + /// + /// Service for creating, configuring, and deleting Cloud Bigtable tables. + /// + /// + /// Provides access to the table schemas only, not the data stored within + /// the tables. + /// + public sealed partial class BigtableTableAdminClientImpl : BigtableTableAdminClient + { + private readonly gaxgrpc::ApiCall _callCreateTable; + + private readonly gaxgrpc::ApiCall _callCreateTableFromSnapshot; + + private readonly gaxgrpc::ApiCall _callListTables; + + private readonly gaxgrpc::ApiCall _callGetTable; + + private readonly gaxgrpc::ApiCall _callUpdateTable; + + private readonly gaxgrpc::ApiCall _callDeleteTable; + + private readonly gaxgrpc::ApiCall _callUndeleteTable; + + private readonly gaxgrpc::ApiCall _callCreateAuthorizedView; + + private readonly gaxgrpc::ApiCall _callListAuthorizedViews; + + private readonly gaxgrpc::ApiCall _callGetAuthorizedView; + + private readonly gaxgrpc::ApiCall _callUpdateAuthorizedView; + + private readonly gaxgrpc::ApiCall _callDeleteAuthorizedView; + + private readonly gaxgrpc::ApiCall _callModifyColumnFamilies; + + private readonly gaxgrpc::ApiCall _callDropRowRange; + + private readonly gaxgrpc::ApiCall _callGenerateConsistencyToken; + + private readonly gaxgrpc::ApiCall _callCheckConsistency; + + private readonly gaxgrpc::ApiCall _callSnapshotTable; + + private readonly gaxgrpc::ApiCall _callGetSnapshot; + + private readonly gaxgrpc::ApiCall _callListSnapshots; + + private readonly gaxgrpc::ApiCall _callDeleteSnapshot; + + private readonly gaxgrpc::ApiCall _callCreateBackup; + + private readonly gaxgrpc::ApiCall _callGetBackup; + + private readonly gaxgrpc::ApiCall _callUpdateBackup; + + private readonly gaxgrpc::ApiCall _callDeleteBackup; + + private readonly gaxgrpc::ApiCall _callListBackups; + + private readonly gaxgrpc::ApiCall _callRestoreTable; + + private readonly gaxgrpc::ApiCall _callCopyBackup; + + private readonly gaxgrpc::ApiCall _callGetIamPolicy; + + private readonly gaxgrpc::ApiCall _callSetIamPolicy; + + private readonly gaxgrpc::ApiCall _callTestIamPermissions; + + /// + /// Constructs a client wrapper for the BigtableTableAdmin service, with the specified gRPC client and settings. + /// + /// The underlying gRPC client. + /// The base used within this client. + /// Optional to use within this client. + public BigtableTableAdminClientImpl(BigtableTableAdmin.BigtableTableAdminClient grpcClient, BigtableTableAdminSettings settings, mel::ILogger logger) + { + GrpcClient = grpcClient; + BigtableTableAdminSettings effectiveSettings = settings ?? BigtableTableAdminSettings.GetDefault(); + gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(new gaxgrpc::ClientHelper.Options + { + Settings = effectiveSettings, + Logger = logger, + }); + CreateTableFromSnapshotOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.CreateTableFromSnapshotOperationsSettings, logger); + UpdateTableOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.UpdateTableOperationsSettings, logger); + UndeleteTableOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.UndeleteTableOperationsSettings, logger); + CreateAuthorizedViewOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.CreateAuthorizedViewOperationsSettings, logger); + UpdateAuthorizedViewOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.UpdateAuthorizedViewOperationsSettings, logger); + SnapshotTableOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.SnapshotTableOperationsSettings, logger); + CreateBackupOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.CreateBackupOperationsSettings, logger); + RestoreTableOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.RestoreTableOperationsSettings, logger); + CopyBackupOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.CopyBackupOperationsSettings, logger); + _callCreateTable = clientHelper.BuildApiCall("CreateTable", grpcClient.CreateTableAsync, grpcClient.CreateTable, effectiveSettings.CreateTableSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callCreateTable); + Modify_CreateTableApiCall(ref _callCreateTable); + _callCreateTableFromSnapshot = clientHelper.BuildApiCall("CreateTableFromSnapshot", grpcClient.CreateTableFromSnapshotAsync, grpcClient.CreateTableFromSnapshot, effectiveSettings.CreateTableFromSnapshotSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callCreateTableFromSnapshot); + Modify_CreateTableFromSnapshotApiCall(ref _callCreateTableFromSnapshot); + _callListTables = clientHelper.BuildApiCall("ListTables", grpcClient.ListTablesAsync, grpcClient.ListTables, effectiveSettings.ListTablesSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callListTables); + Modify_ListTablesApiCall(ref _callListTables); + _callGetTable = clientHelper.BuildApiCall("GetTable", grpcClient.GetTableAsync, grpcClient.GetTable, effectiveSettings.GetTableSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callGetTable); + Modify_GetTableApiCall(ref _callGetTable); + _callUpdateTable = clientHelper.BuildApiCall("UpdateTable", grpcClient.UpdateTableAsync, grpcClient.UpdateTable, effectiveSettings.UpdateTableSettings).WithGoogleRequestParam("table.name", request => request.Table?.Name); + Modify_ApiCall(ref _callUpdateTable); + Modify_UpdateTableApiCall(ref _callUpdateTable); + _callDeleteTable = clientHelper.BuildApiCall("DeleteTable", grpcClient.DeleteTableAsync, grpcClient.DeleteTable, effectiveSettings.DeleteTableSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callDeleteTable); + Modify_DeleteTableApiCall(ref _callDeleteTable); + _callUndeleteTable = clientHelper.BuildApiCall("UndeleteTable", grpcClient.UndeleteTableAsync, grpcClient.UndeleteTable, effectiveSettings.UndeleteTableSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callUndeleteTable); + Modify_UndeleteTableApiCall(ref _callUndeleteTable); + _callCreateAuthorizedView = clientHelper.BuildApiCall("CreateAuthorizedView", grpcClient.CreateAuthorizedViewAsync, grpcClient.CreateAuthorizedView, effectiveSettings.CreateAuthorizedViewSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callCreateAuthorizedView); + Modify_CreateAuthorizedViewApiCall(ref _callCreateAuthorizedView); + _callListAuthorizedViews = clientHelper.BuildApiCall("ListAuthorizedViews", grpcClient.ListAuthorizedViewsAsync, grpcClient.ListAuthorizedViews, effectiveSettings.ListAuthorizedViewsSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callListAuthorizedViews); + Modify_ListAuthorizedViewsApiCall(ref _callListAuthorizedViews); + _callGetAuthorizedView = clientHelper.BuildApiCall("GetAuthorizedView", grpcClient.GetAuthorizedViewAsync, grpcClient.GetAuthorizedView, effectiveSettings.GetAuthorizedViewSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callGetAuthorizedView); + Modify_GetAuthorizedViewApiCall(ref _callGetAuthorizedView); + _callUpdateAuthorizedView = clientHelper.BuildApiCall("UpdateAuthorizedView", grpcClient.UpdateAuthorizedViewAsync, grpcClient.UpdateAuthorizedView, effectiveSettings.UpdateAuthorizedViewSettings).WithGoogleRequestParam("authorized_view.name", request => request.AuthorizedView?.Name); + Modify_ApiCall(ref _callUpdateAuthorizedView); + Modify_UpdateAuthorizedViewApiCall(ref _callUpdateAuthorizedView); + _callDeleteAuthorizedView = clientHelper.BuildApiCall("DeleteAuthorizedView", grpcClient.DeleteAuthorizedViewAsync, grpcClient.DeleteAuthorizedView, effectiveSettings.DeleteAuthorizedViewSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callDeleteAuthorizedView); + Modify_DeleteAuthorizedViewApiCall(ref _callDeleteAuthorizedView); + _callModifyColumnFamilies = clientHelper.BuildApiCall("ModifyColumnFamilies", grpcClient.ModifyColumnFamiliesAsync, grpcClient.ModifyColumnFamilies, effectiveSettings.ModifyColumnFamiliesSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callModifyColumnFamilies); + Modify_ModifyColumnFamiliesApiCall(ref _callModifyColumnFamilies); + _callDropRowRange = clientHelper.BuildApiCall("DropRowRange", grpcClient.DropRowRangeAsync, grpcClient.DropRowRange, effectiveSettings.DropRowRangeSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callDropRowRange); + Modify_DropRowRangeApiCall(ref _callDropRowRange); + _callGenerateConsistencyToken = clientHelper.BuildApiCall("GenerateConsistencyToken", grpcClient.GenerateConsistencyTokenAsync, grpcClient.GenerateConsistencyToken, effectiveSettings.GenerateConsistencyTokenSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callGenerateConsistencyToken); + Modify_GenerateConsistencyTokenApiCall(ref _callGenerateConsistencyToken); + _callCheckConsistency = clientHelper.BuildApiCall("CheckConsistency", grpcClient.CheckConsistencyAsync, grpcClient.CheckConsistency, effectiveSettings.CheckConsistencySettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callCheckConsistency); + Modify_CheckConsistencyApiCall(ref _callCheckConsistency); + _callSnapshotTable = clientHelper.BuildApiCall("SnapshotTable", grpcClient.SnapshotTableAsync, grpcClient.SnapshotTable, effectiveSettings.SnapshotTableSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callSnapshotTable); + Modify_SnapshotTableApiCall(ref _callSnapshotTable); + _callGetSnapshot = clientHelper.BuildApiCall("GetSnapshot", grpcClient.GetSnapshotAsync, grpcClient.GetSnapshot, effectiveSettings.GetSnapshotSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callGetSnapshot); + Modify_GetSnapshotApiCall(ref _callGetSnapshot); + _callListSnapshots = clientHelper.BuildApiCall("ListSnapshots", grpcClient.ListSnapshotsAsync, grpcClient.ListSnapshots, effectiveSettings.ListSnapshotsSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callListSnapshots); + Modify_ListSnapshotsApiCall(ref _callListSnapshots); + _callDeleteSnapshot = clientHelper.BuildApiCall("DeleteSnapshot", grpcClient.DeleteSnapshotAsync, grpcClient.DeleteSnapshot, effectiveSettings.DeleteSnapshotSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callDeleteSnapshot); + Modify_DeleteSnapshotApiCall(ref _callDeleteSnapshot); + _callCreateBackup = clientHelper.BuildApiCall("CreateBackup", grpcClient.CreateBackupAsync, grpcClient.CreateBackup, effectiveSettings.CreateBackupSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callCreateBackup); + Modify_CreateBackupApiCall(ref _callCreateBackup); + _callGetBackup = clientHelper.BuildApiCall("GetBackup", grpcClient.GetBackupAsync, grpcClient.GetBackup, effectiveSettings.GetBackupSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callGetBackup); + Modify_GetBackupApiCall(ref _callGetBackup); + _callUpdateBackup = clientHelper.BuildApiCall("UpdateBackup", grpcClient.UpdateBackupAsync, grpcClient.UpdateBackup, effectiveSettings.UpdateBackupSettings).WithGoogleRequestParam("backup.name", request => request.Backup?.Name); + Modify_ApiCall(ref _callUpdateBackup); + Modify_UpdateBackupApiCall(ref _callUpdateBackup); + _callDeleteBackup = clientHelper.BuildApiCall("DeleteBackup", grpcClient.DeleteBackupAsync, grpcClient.DeleteBackup, effectiveSettings.DeleteBackupSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callDeleteBackup); + Modify_DeleteBackupApiCall(ref _callDeleteBackup); + _callListBackups = clientHelper.BuildApiCall("ListBackups", grpcClient.ListBackupsAsync, grpcClient.ListBackups, effectiveSettings.ListBackupsSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callListBackups); + Modify_ListBackupsApiCall(ref _callListBackups); + _callRestoreTable = clientHelper.BuildApiCall("RestoreTable", grpcClient.RestoreTableAsync, grpcClient.RestoreTable, effectiveSettings.RestoreTableSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callRestoreTable); + Modify_RestoreTableApiCall(ref _callRestoreTable); + _callCopyBackup = clientHelper.BuildApiCall("CopyBackup", grpcClient.CopyBackupAsync, grpcClient.CopyBackup, effectiveSettings.CopyBackupSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callCopyBackup); + Modify_CopyBackupApiCall(ref _callCopyBackup); + _callGetIamPolicy = clientHelper.BuildApiCall("GetIamPolicy", grpcClient.GetIamPolicyAsync, grpcClient.GetIamPolicy, effectiveSettings.GetIamPolicySettings).WithGoogleRequestParam("resource", request => request.Resource); + Modify_ApiCall(ref _callGetIamPolicy); + Modify_GetIamPolicyApiCall(ref _callGetIamPolicy); + _callSetIamPolicy = clientHelper.BuildApiCall("SetIamPolicy", grpcClient.SetIamPolicyAsync, grpcClient.SetIamPolicy, effectiveSettings.SetIamPolicySettings).WithGoogleRequestParam("resource", request => request.Resource); + Modify_ApiCall(ref _callSetIamPolicy); + Modify_SetIamPolicyApiCall(ref _callSetIamPolicy); + _callTestIamPermissions = clientHelper.BuildApiCall("TestIamPermissions", grpcClient.TestIamPermissionsAsync, grpcClient.TestIamPermissions, effectiveSettings.TestIamPermissionsSettings).WithGoogleRequestParam("resource", request => request.Resource); + Modify_ApiCall(ref _callTestIamPermissions); + Modify_TestIamPermissionsApiCall(ref _callTestIamPermissions); + OnConstruction(grpcClient, effectiveSettings, clientHelper); + } + + partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; + + partial void Modify_CreateTableApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_CreateTableFromSnapshotApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_ListTablesApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_GetTableApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_UpdateTableApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_DeleteTableApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_UndeleteTableApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_CreateAuthorizedViewApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_ListAuthorizedViewsApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_GetAuthorizedViewApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_UpdateAuthorizedViewApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_DeleteAuthorizedViewApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_ModifyColumnFamiliesApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_DropRowRangeApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_GenerateConsistencyTokenApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_CheckConsistencyApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_SnapshotTableApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_GetSnapshotApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_ListSnapshotsApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_DeleteSnapshotApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_CreateBackupApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_GetBackupApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_UpdateBackupApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_DeleteBackupApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_ListBackupsApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_RestoreTableApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_CopyBackupApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_GetIamPolicyApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_SetIamPolicyApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_TestIamPermissionsApiCall(ref gaxgrpc::ApiCall call); + + partial void OnConstruction(BigtableTableAdmin.BigtableTableAdminClient grpcClient, BigtableTableAdminSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); + + /// The underlying gRPC BigtableTableAdmin client + public override BigtableTableAdmin.BigtableTableAdminClient GrpcClient { get; } + + partial void Modify_CreateTableRequest(ref CreateTableRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_CreateTableFromSnapshotRequest(ref CreateTableFromSnapshotRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_ListTablesRequest(ref ListTablesRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_GetTableRequest(ref GetTableRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_UpdateTableRequest(ref UpdateTableRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_DeleteTableRequest(ref DeleteTableRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_UndeleteTableRequest(ref UndeleteTableRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_CreateAuthorizedViewRequest(ref CreateAuthorizedViewRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_ListAuthorizedViewsRequest(ref ListAuthorizedViewsRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_GetAuthorizedViewRequest(ref GetAuthorizedViewRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_UpdateAuthorizedViewRequest(ref UpdateAuthorizedViewRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_DeleteAuthorizedViewRequest(ref DeleteAuthorizedViewRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_ModifyColumnFamiliesRequest(ref ModifyColumnFamiliesRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_DropRowRangeRequest(ref DropRowRangeRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_GenerateConsistencyTokenRequest(ref GenerateConsistencyTokenRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_CheckConsistencyRequest(ref CheckConsistencyRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_SnapshotTableRequest(ref SnapshotTableRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_GetSnapshotRequest(ref GetSnapshotRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_ListSnapshotsRequest(ref ListSnapshotsRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_DeleteSnapshotRequest(ref DeleteSnapshotRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_CreateBackupRequest(ref CreateBackupRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_GetBackupRequest(ref GetBackupRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_UpdateBackupRequest(ref UpdateBackupRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_DeleteBackupRequest(ref DeleteBackupRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_ListBackupsRequest(ref ListBackupsRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_RestoreTableRequest(ref RestoreTableRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_CopyBackupRequest(ref CopyBackupRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_GetIamPolicyRequest(ref gciv::GetIamPolicyRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_SetIamPolicyRequest(ref gciv::SetIamPolicyRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_TestIamPermissionsRequest(ref gciv::TestIamPermissionsRequest request, ref gaxgrpc::CallSettings settings); + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override Table CreateTable(CreateTableRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateTableRequest(ref request, ref callSettings); + return _callCreateTable.Sync(request, callSettings); + } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task
CreateTableAsync(CreateTableRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateTableRequest(ref request, ref callSettings); + return _callCreateTable.Async(request, callSettings); + } + + /// The long-running operations client for CreateTableFromSnapshot. + public override lro::OperationsClient CreateTableFromSnapshotOperationsClient { get; } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation CreateTableFromSnapshot(CreateTableFromSnapshotRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateTableFromSnapshotRequest(ref request, ref callSettings); + return new lro::Operation(_callCreateTableFromSnapshot.Sync(request, callSettings), CreateTableFromSnapshotOperationsClient); + } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> CreateTableFromSnapshotAsync(CreateTableFromSnapshotRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateTableFromSnapshotRequest(ref request, ref callSettings); + return new lro::Operation(await _callCreateTableFromSnapshot.Async(request, callSettings).ConfigureAwait(false), CreateTableFromSnapshotOperationsClient); + } + + /// + /// Lists all tables served from a specified instance. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public override gax::PagedEnumerable ListTables(ListTablesRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListTablesRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedEnumerable(_callListTables, request, callSettings); + } + + /// + /// Lists all tables served from a specified instance. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public override gax::PagedAsyncEnumerable ListTablesAsync(ListTablesRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListTablesRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedAsyncEnumerable(_callListTables, request, callSettings); + } + + /// + /// Gets metadata information about the specified table. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override Table GetTable(GetTableRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetTableRequest(ref request, ref callSettings); + return _callGetTable.Sync(request, callSettings); + } + + /// + /// Gets metadata information about the specified table. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task
GetTableAsync(GetTableRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetTableRequest(ref request, ref callSettings); + return _callGetTable.Async(request, callSettings); + } + + /// The long-running operations client for UpdateTable. + public override lro::OperationsClient UpdateTableOperationsClient { get; } + + /// + /// Updates a specified table. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation UpdateTable(UpdateTableRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateTableRequest(ref request, ref callSettings); + return new lro::Operation(_callUpdateTable.Sync(request, callSettings), UpdateTableOperationsClient); + } + + /// + /// Updates a specified table. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> UpdateTableAsync(UpdateTableRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateTableRequest(ref request, ref callSettings); + return new lro::Operation(await _callUpdateTable.Async(request, callSettings).ConfigureAwait(false), UpdateTableOperationsClient); + } + + /// + /// Permanently deletes a specified table and all of its data. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override void DeleteTable(DeleteTableRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteTableRequest(ref request, ref callSettings); + _callDeleteTable.Sync(request, callSettings); + } + + /// + /// Permanently deletes a specified table and all of its data. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task DeleteTableAsync(DeleteTableRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteTableRequest(ref request, ref callSettings); + return _callDeleteTable.Async(request, callSettings); + } + + /// The long-running operations client for UndeleteTable. + public override lro::OperationsClient UndeleteTableOperationsClient { get; } + + /// + /// Restores a specified table which was accidentally deleted. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation UndeleteTable(UndeleteTableRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UndeleteTableRequest(ref request, ref callSettings); + return new lro::Operation(_callUndeleteTable.Sync(request, callSettings), UndeleteTableOperationsClient); + } + + /// + /// Restores a specified table which was accidentally deleted. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> UndeleteTableAsync(UndeleteTableRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UndeleteTableRequest(ref request, ref callSettings); + return new lro::Operation(await _callUndeleteTable.Async(request, callSettings).ConfigureAwait(false), UndeleteTableOperationsClient); + } + + /// The long-running operations client for CreateAuthorizedView. + public override lro::OperationsClient CreateAuthorizedViewOperationsClient { get; } + + /// + /// Creates a new AuthorizedView in a table. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation CreateAuthorizedView(CreateAuthorizedViewRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateAuthorizedViewRequest(ref request, ref callSettings); + return new lro::Operation(_callCreateAuthorizedView.Sync(request, callSettings), CreateAuthorizedViewOperationsClient); + } + + /// + /// Creates a new AuthorizedView in a table. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> CreateAuthorizedViewAsync(CreateAuthorizedViewRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateAuthorizedViewRequest(ref request, ref callSettings); + return new lro::Operation(await _callCreateAuthorizedView.Async(request, callSettings).ConfigureAwait(false), CreateAuthorizedViewOperationsClient); + } + + /// + /// Lists all AuthorizedViews from a specific table. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public override gax::PagedEnumerable ListAuthorizedViews(ListAuthorizedViewsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListAuthorizedViewsRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedEnumerable(_callListAuthorizedViews, request, callSettings); + } + + /// + /// Lists all AuthorizedViews from a specific table. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public override gax::PagedAsyncEnumerable ListAuthorizedViewsAsync(ListAuthorizedViewsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListAuthorizedViewsRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedAsyncEnumerable(_callListAuthorizedViews, request, callSettings); + } + + /// + /// Gets information from a specified AuthorizedView. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override AuthorizedView GetAuthorizedView(GetAuthorizedViewRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetAuthorizedViewRequest(ref request, ref callSettings); + return _callGetAuthorizedView.Sync(request, callSettings); + } + + /// + /// Gets information from a specified AuthorizedView. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task GetAuthorizedViewAsync(GetAuthorizedViewRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetAuthorizedViewRequest(ref request, ref callSettings); + return _callGetAuthorizedView.Async(request, callSettings); + } + + /// The long-running operations client for UpdateAuthorizedView. + public override lro::OperationsClient UpdateAuthorizedViewOperationsClient { get; } + + /// + /// Updates an AuthorizedView in a table. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation UpdateAuthorizedView(UpdateAuthorizedViewRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateAuthorizedViewRequest(ref request, ref callSettings); + return new lro::Operation(_callUpdateAuthorizedView.Sync(request, callSettings), UpdateAuthorizedViewOperationsClient); + } + + /// + /// Updates an AuthorizedView in a table. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> UpdateAuthorizedViewAsync(UpdateAuthorizedViewRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateAuthorizedViewRequest(ref request, ref callSettings); + return new lro::Operation(await _callUpdateAuthorizedView.Async(request, callSettings).ConfigureAwait(false), UpdateAuthorizedViewOperationsClient); + } + + /// + /// Permanently deletes a specified AuthorizedView. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override void DeleteAuthorizedView(DeleteAuthorizedViewRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteAuthorizedViewRequest(ref request, ref callSettings); + _callDeleteAuthorizedView.Sync(request, callSettings); + } + + /// + /// Permanently deletes a specified AuthorizedView. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task DeleteAuthorizedViewAsync(DeleteAuthorizedViewRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteAuthorizedViewRequest(ref request, ref callSettings); + return _callDeleteAuthorizedView.Async(request, callSettings); + } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override Table ModifyColumnFamilies(ModifyColumnFamiliesRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ModifyColumnFamiliesRequest(ref request, ref callSettings); + return _callModifyColumnFamilies.Sync(request, callSettings); + } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task
ModifyColumnFamiliesAsync(ModifyColumnFamiliesRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ModifyColumnFamiliesRequest(ref request, ref callSettings); + return _callModifyColumnFamilies.Async(request, callSettings); + } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override void DropRowRange(DropRowRangeRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DropRowRangeRequest(ref request, ref callSettings); + _callDropRowRange.Sync(request, callSettings); + } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task DropRowRangeAsync(DropRowRangeRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DropRowRangeRequest(ref request, ref callSettings); + return _callDropRowRange.Async(request, callSettings); + } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override GenerateConsistencyTokenResponse GenerateConsistencyToken(GenerateConsistencyTokenRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GenerateConsistencyTokenRequest(ref request, ref callSettings); + return _callGenerateConsistencyToken.Sync(request, callSettings); + } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task GenerateConsistencyTokenAsync(GenerateConsistencyTokenRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GenerateConsistencyTokenRequest(ref request, ref callSettings); + return _callGenerateConsistencyToken.Async(request, callSettings); + } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override CheckConsistencyResponse CheckConsistency(CheckConsistencyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CheckConsistencyRequest(ref request, ref callSettings); + return _callCheckConsistency.Sync(request, callSettings); + } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task CheckConsistencyAsync(CheckConsistencyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CheckConsistencyRequest(ref request, ref callSettings); + return _callCheckConsistency.Async(request, callSettings); + } + + /// The long-running operations client for SnapshotTable. + public override lro::OperationsClient SnapshotTableOperationsClient { get; } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation SnapshotTable(SnapshotTableRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_SnapshotTableRequest(ref request, ref callSettings); + return new lro::Operation(_callSnapshotTable.Sync(request, callSettings), SnapshotTableOperationsClient); + } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> SnapshotTableAsync(SnapshotTableRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_SnapshotTableRequest(ref request, ref callSettings); + return new lro::Operation(await _callSnapshotTable.Async(request, callSettings).ConfigureAwait(false), SnapshotTableOperationsClient); + } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override Snapshot GetSnapshot(GetSnapshotRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetSnapshotRequest(ref request, ref callSettings); + return _callGetSnapshot.Sync(request, callSettings); + } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task GetSnapshotAsync(GetSnapshotRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetSnapshotRequest(ref request, ref callSettings); + return _callGetSnapshot.Async(request, callSettings); + } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public override gax::PagedEnumerable ListSnapshots(ListSnapshotsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListSnapshotsRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedEnumerable(_callListSnapshots, request, callSettings); + } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public override gax::PagedAsyncEnumerable ListSnapshotsAsync(ListSnapshotsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListSnapshotsRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedAsyncEnumerable(_callListSnapshots, request, callSettings); + } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override void DeleteSnapshot(DeleteSnapshotRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteSnapshotRequest(ref request, ref callSettings); + _callDeleteSnapshot.Sync(request, callSettings); + } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task DeleteSnapshotAsync(DeleteSnapshotRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteSnapshotRequest(ref request, ref callSettings); + return _callDeleteSnapshot.Async(request, callSettings); + } + + /// The long-running operations client for CreateBackup. + public override lro::OperationsClient CreateBackupOperationsClient { get; } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation CreateBackup(CreateBackupRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateBackupRequest(ref request, ref callSettings); + return new lro::Operation(_callCreateBackup.Sync(request, callSettings), CreateBackupOperationsClient); + } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> CreateBackupAsync(CreateBackupRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateBackupRequest(ref request, ref callSettings); + return new lro::Operation(await _callCreateBackup.Async(request, callSettings).ConfigureAwait(false), CreateBackupOperationsClient); + } + + /// + /// Gets metadata on a pending or completed Cloud Bigtable Backup. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override Backup GetBackup(GetBackupRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetBackupRequest(ref request, ref callSettings); + return _callGetBackup.Sync(request, callSettings); + } + + /// + /// Gets metadata on a pending or completed Cloud Bigtable Backup. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task GetBackupAsync(GetBackupRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetBackupRequest(ref request, ref callSettings); + return _callGetBackup.Async(request, callSettings); + } + + /// + /// Updates a pending or completed Cloud Bigtable Backup. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override Backup UpdateBackup(UpdateBackupRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateBackupRequest(ref request, ref callSettings); + return _callUpdateBackup.Sync(request, callSettings); + } + + /// + /// Updates a pending or completed Cloud Bigtable Backup. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task UpdateBackupAsync(UpdateBackupRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateBackupRequest(ref request, ref callSettings); + return _callUpdateBackup.Async(request, callSettings); + } + + /// + /// Deletes a pending or completed Cloud Bigtable backup. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override void DeleteBackup(DeleteBackupRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteBackupRequest(ref request, ref callSettings); + _callDeleteBackup.Sync(request, callSettings); + } + + /// + /// Deletes a pending or completed Cloud Bigtable backup. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task DeleteBackupAsync(DeleteBackupRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteBackupRequest(ref request, ref callSettings); + return _callDeleteBackup.Async(request, callSettings); + } + + /// + /// Lists Cloud Bigtable backups. Returns both completed and pending + /// backups. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public override gax::PagedEnumerable ListBackups(ListBackupsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListBackupsRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedEnumerable(_callListBackups, request, callSettings); + } + + /// + /// Lists Cloud Bigtable backups. Returns both completed and pending + /// backups. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public override gax::PagedAsyncEnumerable ListBackupsAsync(ListBackupsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListBackupsRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedAsyncEnumerable(_callListBackups, request, callSettings); + } + + /// The long-running operations client for RestoreTable. + public override lro::OperationsClient RestoreTableOperationsClient { get; } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation RestoreTable(RestoreTableRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_RestoreTableRequest(ref request, ref callSettings); + return new lro::Operation(_callRestoreTable.Sync(request, callSettings), RestoreTableOperationsClient); + } + + /// + /// 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 request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> RestoreTableAsync(RestoreTableRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_RestoreTableRequest(ref request, ref callSettings); + return new lro::Operation(await _callRestoreTable.Async(request, callSettings).ConfigureAwait(false), RestoreTableOperationsClient); + } + + /// The long-running operations client for CopyBackup. + public override lro::OperationsClient CopyBackupOperationsClient { get; } + + /// + /// Copy a Cloud Bigtable backup to a new backup in the destination cluster + /// located in the destination instance and project. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation CopyBackup(CopyBackupRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CopyBackupRequest(ref request, ref callSettings); + return new lro::Operation(_callCopyBackup.Sync(request, callSettings), CopyBackupOperationsClient); + } + + /// + /// Copy a Cloud Bigtable backup to a new backup in the destination cluster + /// located in the destination instance and project. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> CopyBackupAsync(CopyBackupRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CopyBackupRequest(ref request, ref callSettings); + return new lro::Operation(await _callCopyBackup.Async(request, callSettings).ConfigureAwait(false), CopyBackupOperationsClient); + } + + /// + /// Gets the access control policy for a Table or Backup resource. + /// Returns an empty policy if the resource exists but does not have a policy + /// set. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override gciv::Policy GetIamPolicy(gciv::GetIamPolicyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetIamPolicyRequest(ref request, ref callSettings); + return _callGetIamPolicy.Sync(request, callSettings); + } + + /// + /// Gets the access control policy for a Table or Backup resource. + /// Returns an empty policy if the resource exists but does not have a policy + /// set. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task GetIamPolicyAsync(gciv::GetIamPolicyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetIamPolicyRequest(ref request, ref callSettings); + return _callGetIamPolicy.Async(request, callSettings); + } + + /// + /// Sets the access control policy on a Table or Backup resource. + /// Replaces any existing policy. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override gciv::Policy SetIamPolicy(gciv::SetIamPolicyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_SetIamPolicyRequest(ref request, ref callSettings); + return _callSetIamPolicy.Sync(request, callSettings); + } + + /// + /// Sets the access control policy on a Table or Backup resource. + /// Replaces any existing policy. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task SetIamPolicyAsync(gciv::SetIamPolicyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_SetIamPolicyRequest(ref request, ref callSettings); + return _callSetIamPolicy.Async(request, callSettings); + } + + /// + /// Returns permissions that the caller has on the specified Table or Backup + /// resource. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override gciv::TestIamPermissionsResponse TestIamPermissions(gciv::TestIamPermissionsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_TestIamPermissionsRequest(ref request, ref callSettings); + return _callTestIamPermissions.Sync(request, callSettings); + } + + /// + /// Returns permissions that the caller has on the specified Table or Backup + /// resource. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task TestIamPermissionsAsync(gciv::TestIamPermissionsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_TestIamPermissionsRequest(ref request, ref callSettings); + return _callTestIamPermissions.Async(request, callSettings); + } + } + + public partial class ListTablesRequest : gaxgrpc::IPageRequest + { + } + + public partial class ListAuthorizedViewsRequest : gaxgrpc::IPageRequest + { + } + + public partial class ListSnapshotsRequest : gaxgrpc::IPageRequest + { + } + + public partial class ListBackupsRequest : gaxgrpc::IPageRequest + { + } + + public partial class ListTablesResponse : gaxgrpc::IPageResponse
+ { + /// Returns an enumerator that iterates through the resources in this response. + public scg::IEnumerator
GetEnumerator() => Tables.GetEnumerator(); + + sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); + } + + public partial class ListAuthorizedViewsResponse : gaxgrpc::IPageResponse + { + /// Returns an enumerator that iterates through the resources in this response. + public scg::IEnumerator GetEnumerator() => AuthorizedViews.GetEnumerator(); + + sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); + } + + public partial class ListSnapshotsResponse : gaxgrpc::IPageResponse + { + /// Returns an enumerator that iterates through the resources in this response. + public scg::IEnumerator GetEnumerator() => Snapshots.GetEnumerator(); + + sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); + } + + public partial class ListBackupsResponse : gaxgrpc::IPageResponse + { + /// Returns an enumerator that iterates through the resources in this response. + public scg::IEnumerator GetEnumerator() => Backups.GetEnumerator(); + + sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); + } + + public static partial class BigtableTableAdmin + { + public partial class BigtableTableAdminClient + { + /// + /// Creates a new instance of using the same call invoker as + /// this client. + /// + /// A new Operations client for the same target as this client. + public virtual lro::Operations.OperationsClient CreateOperationsClient() => + new lro::Operations.OperationsClient(CallInvoker); + } + } +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableTableAdminGrpc.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableTableAdminGrpc.g.cs new file mode 100755 index 000000000000..d7bab4e41983 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableTableAdminGrpc.g.cs @@ -0,0 +1,2639 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/bigtable/admin/v2/bigtable_table_admin.proto +// +// Original file comments: +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#pragma warning disable 0414, 1591, 8981, 0612 +#region Designer generated code + +using grpc = global::Grpc.Core; + +namespace Google.Cloud.Bigtable.Admin.V2 { + /// + /// Service for creating, configuring, and deleting Cloud Bigtable tables. + /// + /// Provides access to the table schemas only, not the data stored within + /// the tables. + /// + public static partial class BigtableTableAdmin + { + static readonly string __ServiceName = "google.bigtable.admin.v2.BigtableTableAdmin"; + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (message is global::Google.Protobuf.IBufferMessage) + { + context.SetPayloadLength(message.CalculateSize()); + global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); + context.Complete(); + return; + } + #endif + context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static class __Helper_MessageCache + { + public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (__Helper_MessageCache.IsBufferMessage) + { + return parser.ParseFrom(context.PayloadAsReadOnlySequence()); + } + #endif + return parser.ParseFrom(context.PayloadAsNewBuffer()); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_CreateTableRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.CreateTableRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_Table = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.Table.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_CreateTableFromSnapshotRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.CreateTableFromSnapshotRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_longrunning_Operation = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.LongRunning.Operation.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_ListTablesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.ListTablesRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_ListTablesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.ListTablesResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_GetTableRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.GetTableRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_UpdateTableRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.UpdateTableRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_DeleteTableRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.DeleteTableRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_protobuf_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Protobuf.WellKnownTypes.Empty.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_UndeleteTableRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.UndeleteTableRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_CreateAuthorizedViewRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.CreateAuthorizedViewRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_ListAuthorizedViewsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.ListAuthorizedViewsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_ListAuthorizedViewsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.ListAuthorizedViewsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_GetAuthorizedViewRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.GetAuthorizedViewRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_AuthorizedView = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_UpdateAuthorizedViewRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.UpdateAuthorizedViewRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_DeleteAuthorizedViewRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.DeleteAuthorizedViewRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_ModifyColumnFamiliesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.ModifyColumnFamiliesRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_DropRowRangeRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.DropRowRangeRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_GenerateConsistencyTokenRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.GenerateConsistencyTokenRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_GenerateConsistencyTokenResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.GenerateConsistencyTokenResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_CheckConsistencyRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.CheckConsistencyRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_CheckConsistencyResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.CheckConsistencyResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_SnapshotTableRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.SnapshotTableRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_GetSnapshotRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.GetSnapshotRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_Snapshot = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.Snapshot.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_ListSnapshotsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.ListSnapshotsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_ListSnapshotsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.ListSnapshotsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_DeleteSnapshotRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.DeleteSnapshotRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_CreateBackupRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.CreateBackupRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_GetBackupRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.GetBackupRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_Backup = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.Backup.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_UpdateBackupRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.UpdateBackupRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_DeleteBackupRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.DeleteBackupRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_ListBackupsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.ListBackupsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_ListBackupsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.ListBackupsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_RestoreTableRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.RestoreTableRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_bigtable_admin_v2_CopyBackupRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Bigtable.Admin.V2.CopyBackupRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_iam_v1_GetIamPolicyRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Iam.V1.GetIamPolicyRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_iam_v1_Policy = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Iam.V1.Policy.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_iam_v1_SetIamPolicyRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Iam.V1.SetIamPolicyRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_iam_v1_TestIamPermissionsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Iam.V1.TestIamPermissionsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_iam_v1_TestIamPermissionsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Iam.V1.TestIamPermissionsResponse.Parser)); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateTable = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateTable", + __Marshaller_google_bigtable_admin_v2_CreateTableRequest, + __Marshaller_google_bigtable_admin_v2_Table); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateTableFromSnapshot = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateTableFromSnapshot", + __Marshaller_google_bigtable_admin_v2_CreateTableFromSnapshotRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ListTables = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ListTables", + __Marshaller_google_bigtable_admin_v2_ListTablesRequest, + __Marshaller_google_bigtable_admin_v2_ListTablesResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetTable = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetTable", + __Marshaller_google_bigtable_admin_v2_GetTableRequest, + __Marshaller_google_bigtable_admin_v2_Table); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateTable = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateTable", + __Marshaller_google_bigtable_admin_v2_UpdateTableRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteTable = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteTable", + __Marshaller_google_bigtable_admin_v2_DeleteTableRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UndeleteTable = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UndeleteTable", + __Marshaller_google_bigtable_admin_v2_UndeleteTableRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateAuthorizedView = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateAuthorizedView", + __Marshaller_google_bigtable_admin_v2_CreateAuthorizedViewRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ListAuthorizedViews = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ListAuthorizedViews", + __Marshaller_google_bigtable_admin_v2_ListAuthorizedViewsRequest, + __Marshaller_google_bigtable_admin_v2_ListAuthorizedViewsResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetAuthorizedView = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetAuthorizedView", + __Marshaller_google_bigtable_admin_v2_GetAuthorizedViewRequest, + __Marshaller_google_bigtable_admin_v2_AuthorizedView); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateAuthorizedView = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateAuthorizedView", + __Marshaller_google_bigtable_admin_v2_UpdateAuthorizedViewRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteAuthorizedView = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteAuthorizedView", + __Marshaller_google_bigtable_admin_v2_DeleteAuthorizedViewRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ModifyColumnFamilies = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ModifyColumnFamilies", + __Marshaller_google_bigtable_admin_v2_ModifyColumnFamiliesRequest, + __Marshaller_google_bigtable_admin_v2_Table); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DropRowRange = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DropRowRange", + __Marshaller_google_bigtable_admin_v2_DropRowRangeRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GenerateConsistencyToken = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GenerateConsistencyToken", + __Marshaller_google_bigtable_admin_v2_GenerateConsistencyTokenRequest, + __Marshaller_google_bigtable_admin_v2_GenerateConsistencyTokenResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CheckConsistency = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CheckConsistency", + __Marshaller_google_bigtable_admin_v2_CheckConsistencyRequest, + __Marshaller_google_bigtable_admin_v2_CheckConsistencyResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_SnapshotTable = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "SnapshotTable", + __Marshaller_google_bigtable_admin_v2_SnapshotTableRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetSnapshot = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetSnapshot", + __Marshaller_google_bigtable_admin_v2_GetSnapshotRequest, + __Marshaller_google_bigtable_admin_v2_Snapshot); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ListSnapshots = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ListSnapshots", + __Marshaller_google_bigtable_admin_v2_ListSnapshotsRequest, + __Marshaller_google_bigtable_admin_v2_ListSnapshotsResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteSnapshot = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteSnapshot", + __Marshaller_google_bigtable_admin_v2_DeleteSnapshotRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateBackup = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateBackup", + __Marshaller_google_bigtable_admin_v2_CreateBackupRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetBackup = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetBackup", + __Marshaller_google_bigtable_admin_v2_GetBackupRequest, + __Marshaller_google_bigtable_admin_v2_Backup); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateBackup = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateBackup", + __Marshaller_google_bigtable_admin_v2_UpdateBackupRequest, + __Marshaller_google_bigtable_admin_v2_Backup); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteBackup = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteBackup", + __Marshaller_google_bigtable_admin_v2_DeleteBackupRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ListBackups = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ListBackups", + __Marshaller_google_bigtable_admin_v2_ListBackupsRequest, + __Marshaller_google_bigtable_admin_v2_ListBackupsResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_RestoreTable = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "RestoreTable", + __Marshaller_google_bigtable_admin_v2_RestoreTableRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CopyBackup = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CopyBackup", + __Marshaller_google_bigtable_admin_v2_CopyBackupRequest, + __Marshaller_google_longrunning_Operation); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetIamPolicy = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetIamPolicy", + __Marshaller_google_iam_v1_GetIamPolicyRequest, + __Marshaller_google_iam_v1_Policy); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_SetIamPolicy = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "SetIamPolicy", + __Marshaller_google_iam_v1_SetIamPolicyRequest, + __Marshaller_google_iam_v1_Policy); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_TestIamPermissions = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "TestIamPermissions", + __Marshaller_google_iam_v1_TestIamPermissionsRequest, + __Marshaller_google_iam_v1_TestIamPermissionsResponse); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Google.Cloud.Bigtable.Admin.V2.BigtableTableAdminReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of BigtableTableAdmin + [grpc::BindServiceMethod(typeof(BigtableTableAdmin), "BindService")] + public abstract partial class BigtableTableAdminBase + { + /// + /// 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 request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task CreateTable(global::Google.Cloud.Bigtable.Admin.V2.CreateTableRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// 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 request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task CreateTableFromSnapshot(global::Google.Cloud.Bigtable.Admin.V2.CreateTableFromSnapshotRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Lists all tables served from a specified instance. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task ListTables(global::Google.Cloud.Bigtable.Admin.V2.ListTablesRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Gets metadata information about the specified table. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetTable(global::Google.Cloud.Bigtable.Admin.V2.GetTableRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Updates a specified table. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task UpdateTable(global::Google.Cloud.Bigtable.Admin.V2.UpdateTableRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Permanently deletes a specified table and all of its data. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task DeleteTable(global::Google.Cloud.Bigtable.Admin.V2.DeleteTableRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Restores a specified table which was accidentally deleted. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task UndeleteTable(global::Google.Cloud.Bigtable.Admin.V2.UndeleteTableRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Creates a new AuthorizedView in a table. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task CreateAuthorizedView(global::Google.Cloud.Bigtable.Admin.V2.CreateAuthorizedViewRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Lists all AuthorizedViews from a specific table. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task ListAuthorizedViews(global::Google.Cloud.Bigtable.Admin.V2.ListAuthorizedViewsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Gets information from a specified AuthorizedView. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetAuthorizedView(global::Google.Cloud.Bigtable.Admin.V2.GetAuthorizedViewRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Updates an AuthorizedView in a table. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task UpdateAuthorizedView(global::Google.Cloud.Bigtable.Admin.V2.UpdateAuthorizedViewRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Permanently deletes a specified AuthorizedView. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task DeleteAuthorizedView(global::Google.Cloud.Bigtable.Admin.V2.DeleteAuthorizedViewRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// 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 request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task ModifyColumnFamilies(global::Google.Cloud.Bigtable.Admin.V2.ModifyColumnFamiliesRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// 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 request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task DropRowRange(global::Google.Cloud.Bigtable.Admin.V2.DropRowRangeRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// 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 request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GenerateConsistencyToken(global::Google.Cloud.Bigtable.Admin.V2.GenerateConsistencyTokenRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// 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 request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task CheckConsistency(global::Google.Cloud.Bigtable.Admin.V2.CheckConsistencyRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// 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 request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task SnapshotTable(global::Google.Cloud.Bigtable.Admin.V2.SnapshotTableRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// 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 request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetSnapshot(global::Google.Cloud.Bigtable.Admin.V2.GetSnapshotRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// 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 request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task ListSnapshots(global::Google.Cloud.Bigtable.Admin.V2.ListSnapshotsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// 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 request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task DeleteSnapshot(global::Google.Cloud.Bigtable.Admin.V2.DeleteSnapshotRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// 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 request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task CreateBackup(global::Google.Cloud.Bigtable.Admin.V2.CreateBackupRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Gets metadata on a pending or completed Cloud Bigtable Backup. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetBackup(global::Google.Cloud.Bigtable.Admin.V2.GetBackupRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Updates a pending or completed Cloud Bigtable Backup. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task UpdateBackup(global::Google.Cloud.Bigtable.Admin.V2.UpdateBackupRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Deletes a pending or completed Cloud Bigtable backup. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task DeleteBackup(global::Google.Cloud.Bigtable.Admin.V2.DeleteBackupRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Lists Cloud Bigtable backups. Returns both completed and pending + /// backups. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task ListBackups(global::Google.Cloud.Bigtable.Admin.V2.ListBackupsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// 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 request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task RestoreTable(global::Google.Cloud.Bigtable.Admin.V2.RestoreTableRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Copy a Cloud Bigtable backup to a new backup in the destination cluster + /// located in the destination instance and project. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task CopyBackup(global::Google.Cloud.Bigtable.Admin.V2.CopyBackupRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Gets the access control policy for a Table or Backup resource. + /// Returns an empty policy if the resource exists but does not have a policy + /// set. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetIamPolicy(global::Google.Cloud.Iam.V1.GetIamPolicyRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Sets the access control policy on a Table or Backup resource. + /// Replaces any existing policy. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task SetIamPolicy(global::Google.Cloud.Iam.V1.SetIamPolicyRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Returns permissions that the caller has on the specified Table or Backup + /// resource. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task TestIamPermissions(global::Google.Cloud.Iam.V1.TestIamPermissionsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + } + + /// Client for BigtableTableAdmin + public partial class BigtableTableAdminClient : grpc::ClientBase + { + /// Creates a new client for BigtableTableAdmin + /// The channel to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public BigtableTableAdminClient(grpc::ChannelBase channel) : base(channel) + { + } + /// Creates a new client for BigtableTableAdmin that uses a custom CallInvoker. + /// The callInvoker to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public BigtableTableAdminClient(grpc::CallInvoker callInvoker) : base(callInvoker) + { + } + /// Protected parameterless constructor to allow creation of test doubles. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected BigtableTableAdminClient() : base() + { + } + /// Protected constructor to allow creation of configured clients. + /// The client configuration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected BigtableTableAdminClient(ClientBaseConfiguration configuration) : base(configuration) + { + } + + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.Table CreateTable(global::Google.Cloud.Bigtable.Admin.V2.CreateTableRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateTable(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.Table CreateTable(global::Google.Cloud.Bigtable.Admin.V2.CreateTableRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateTable, null, options, request); + } + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateTableAsync(global::Google.Cloud.Bigtable.Admin.V2.CreateTableRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateTableAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateTableAsync(global::Google.Cloud.Bigtable.Admin.V2.CreateTableRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateTable, null, options, request); + } + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation CreateTableFromSnapshot(global::Google.Cloud.Bigtable.Admin.V2.CreateTableFromSnapshotRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateTableFromSnapshot(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation CreateTableFromSnapshot(global::Google.Cloud.Bigtable.Admin.V2.CreateTableFromSnapshotRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateTableFromSnapshot, null, options, request); + } + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateTableFromSnapshotAsync(global::Google.Cloud.Bigtable.Admin.V2.CreateTableFromSnapshotRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateTableFromSnapshotAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateTableFromSnapshotAsync(global::Google.Cloud.Bigtable.Admin.V2.CreateTableFromSnapshotRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateTableFromSnapshot, null, options, request); + } + /// + /// Lists all tables served from a specified instance. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.ListTablesResponse ListTables(global::Google.Cloud.Bigtable.Admin.V2.ListTablesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListTables(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists all tables served from a specified instance. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.ListTablesResponse ListTables(global::Google.Cloud.Bigtable.Admin.V2.ListTablesRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListTables, null, options, request); + } + /// + /// Lists all tables served from a specified instance. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListTablesAsync(global::Google.Cloud.Bigtable.Admin.V2.ListTablesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListTablesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists all tables served from a specified instance. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListTablesAsync(global::Google.Cloud.Bigtable.Admin.V2.ListTablesRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListTables, null, options, request); + } + /// + /// Gets metadata information about the specified table. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.Table GetTable(global::Google.Cloud.Bigtable.Admin.V2.GetTableRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetTable(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets metadata information about the specified table. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.Table GetTable(global::Google.Cloud.Bigtable.Admin.V2.GetTableRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetTable, null, options, request); + } + /// + /// Gets metadata information about the specified table. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetTableAsync(global::Google.Cloud.Bigtable.Admin.V2.GetTableRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetTableAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets metadata information about the specified table. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetTableAsync(global::Google.Cloud.Bigtable.Admin.V2.GetTableRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetTable, null, options, request); + } + /// + /// Updates a specified table. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation UpdateTable(global::Google.Cloud.Bigtable.Admin.V2.UpdateTableRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateTable(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Updates a specified table. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation UpdateTable(global::Google.Cloud.Bigtable.Admin.V2.UpdateTableRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateTable, null, options, request); + } + /// + /// Updates a specified table. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateTableAsync(global::Google.Cloud.Bigtable.Admin.V2.UpdateTableRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateTableAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Updates a specified table. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateTableAsync(global::Google.Cloud.Bigtable.Admin.V2.UpdateTableRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateTable, null, options, request); + } + /// + /// Permanently deletes a specified table and all of its data. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteTable(global::Google.Cloud.Bigtable.Admin.V2.DeleteTableRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteTable(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Permanently deletes a specified table and all of its data. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteTable(global::Google.Cloud.Bigtable.Admin.V2.DeleteTableRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteTable, null, options, request); + } + /// + /// Permanently deletes a specified table and all of its data. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteTableAsync(global::Google.Cloud.Bigtable.Admin.V2.DeleteTableRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteTableAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Permanently deletes a specified table and all of its data. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteTableAsync(global::Google.Cloud.Bigtable.Admin.V2.DeleteTableRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteTable, null, options, request); + } + /// + /// Restores a specified table which was accidentally deleted. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation UndeleteTable(global::Google.Cloud.Bigtable.Admin.V2.UndeleteTableRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UndeleteTable(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Restores a specified table which was accidentally deleted. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation UndeleteTable(global::Google.Cloud.Bigtable.Admin.V2.UndeleteTableRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UndeleteTable, null, options, request); + } + /// + /// Restores a specified table which was accidentally deleted. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UndeleteTableAsync(global::Google.Cloud.Bigtable.Admin.V2.UndeleteTableRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UndeleteTableAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Restores a specified table which was accidentally deleted. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UndeleteTableAsync(global::Google.Cloud.Bigtable.Admin.V2.UndeleteTableRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UndeleteTable, null, options, request); + } + /// + /// Creates a new AuthorizedView in a table. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation CreateAuthorizedView(global::Google.Cloud.Bigtable.Admin.V2.CreateAuthorizedViewRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateAuthorizedView(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Creates a new AuthorizedView in a table. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation CreateAuthorizedView(global::Google.Cloud.Bigtable.Admin.V2.CreateAuthorizedViewRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateAuthorizedView, null, options, request); + } + /// + /// Creates a new AuthorizedView in a table. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateAuthorizedViewAsync(global::Google.Cloud.Bigtable.Admin.V2.CreateAuthorizedViewRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateAuthorizedViewAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Creates a new AuthorizedView in a table. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateAuthorizedViewAsync(global::Google.Cloud.Bigtable.Admin.V2.CreateAuthorizedViewRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateAuthorizedView, null, options, request); + } + /// + /// Lists all AuthorizedViews from a specific table. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.ListAuthorizedViewsResponse ListAuthorizedViews(global::Google.Cloud.Bigtable.Admin.V2.ListAuthorizedViewsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListAuthorizedViews(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists all AuthorizedViews from a specific table. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.ListAuthorizedViewsResponse ListAuthorizedViews(global::Google.Cloud.Bigtable.Admin.V2.ListAuthorizedViewsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListAuthorizedViews, null, options, request); + } + /// + /// Lists all AuthorizedViews from a specific table. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListAuthorizedViewsAsync(global::Google.Cloud.Bigtable.Admin.V2.ListAuthorizedViewsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListAuthorizedViewsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists all AuthorizedViews from a specific table. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListAuthorizedViewsAsync(global::Google.Cloud.Bigtable.Admin.V2.ListAuthorizedViewsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListAuthorizedViews, null, options, request); + } + /// + /// Gets information from a specified AuthorizedView. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView GetAuthorizedView(global::Google.Cloud.Bigtable.Admin.V2.GetAuthorizedViewRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetAuthorizedView(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets information from a specified AuthorizedView. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView GetAuthorizedView(global::Google.Cloud.Bigtable.Admin.V2.GetAuthorizedViewRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetAuthorizedView, null, options, request); + } + /// + /// Gets information from a specified AuthorizedView. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetAuthorizedViewAsync(global::Google.Cloud.Bigtable.Admin.V2.GetAuthorizedViewRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetAuthorizedViewAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets information from a specified AuthorizedView. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetAuthorizedViewAsync(global::Google.Cloud.Bigtable.Admin.V2.GetAuthorizedViewRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetAuthorizedView, null, options, request); + } + /// + /// Updates an AuthorizedView in a table. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation UpdateAuthorizedView(global::Google.Cloud.Bigtable.Admin.V2.UpdateAuthorizedViewRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateAuthorizedView(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Updates an AuthorizedView in a table. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation UpdateAuthorizedView(global::Google.Cloud.Bigtable.Admin.V2.UpdateAuthorizedViewRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateAuthorizedView, null, options, request); + } + /// + /// Updates an AuthorizedView in a table. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateAuthorizedViewAsync(global::Google.Cloud.Bigtable.Admin.V2.UpdateAuthorizedViewRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateAuthorizedViewAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Updates an AuthorizedView in a table. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateAuthorizedViewAsync(global::Google.Cloud.Bigtable.Admin.V2.UpdateAuthorizedViewRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateAuthorizedView, null, options, request); + } + /// + /// Permanently deletes a specified AuthorizedView. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteAuthorizedView(global::Google.Cloud.Bigtable.Admin.V2.DeleteAuthorizedViewRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteAuthorizedView(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Permanently deletes a specified AuthorizedView. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteAuthorizedView(global::Google.Cloud.Bigtable.Admin.V2.DeleteAuthorizedViewRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteAuthorizedView, null, options, request); + } + /// + /// Permanently deletes a specified AuthorizedView. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteAuthorizedViewAsync(global::Google.Cloud.Bigtable.Admin.V2.DeleteAuthorizedViewRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteAuthorizedViewAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Permanently deletes a specified AuthorizedView. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteAuthorizedViewAsync(global::Google.Cloud.Bigtable.Admin.V2.DeleteAuthorizedViewRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteAuthorizedView, null, options, request); + } + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.Table ModifyColumnFamilies(global::Google.Cloud.Bigtable.Admin.V2.ModifyColumnFamiliesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ModifyColumnFamilies(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.Table ModifyColumnFamilies(global::Google.Cloud.Bigtable.Admin.V2.ModifyColumnFamiliesRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ModifyColumnFamilies, null, options, request); + } + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ModifyColumnFamiliesAsync(global::Google.Cloud.Bigtable.Admin.V2.ModifyColumnFamiliesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ModifyColumnFamiliesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ModifyColumnFamiliesAsync(global::Google.Cloud.Bigtable.Admin.V2.ModifyColumnFamiliesRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ModifyColumnFamilies, null, options, request); + } + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DropRowRange(global::Google.Cloud.Bigtable.Admin.V2.DropRowRangeRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DropRowRange(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DropRowRange(global::Google.Cloud.Bigtable.Admin.V2.DropRowRangeRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DropRowRange, null, options, request); + } + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DropRowRangeAsync(global::Google.Cloud.Bigtable.Admin.V2.DropRowRangeRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DropRowRangeAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DropRowRangeAsync(global::Google.Cloud.Bigtable.Admin.V2.DropRowRangeRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DropRowRange, null, options, request); + } + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.GenerateConsistencyTokenResponse GenerateConsistencyToken(global::Google.Cloud.Bigtable.Admin.V2.GenerateConsistencyTokenRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GenerateConsistencyToken(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.GenerateConsistencyTokenResponse GenerateConsistencyToken(global::Google.Cloud.Bigtable.Admin.V2.GenerateConsistencyTokenRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GenerateConsistencyToken, null, options, request); + } + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GenerateConsistencyTokenAsync(global::Google.Cloud.Bigtable.Admin.V2.GenerateConsistencyTokenRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GenerateConsistencyTokenAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GenerateConsistencyTokenAsync(global::Google.Cloud.Bigtable.Admin.V2.GenerateConsistencyTokenRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GenerateConsistencyToken, null, options, request); + } + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.CheckConsistencyResponse CheckConsistency(global::Google.Cloud.Bigtable.Admin.V2.CheckConsistencyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CheckConsistency(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.CheckConsistencyResponse CheckConsistency(global::Google.Cloud.Bigtable.Admin.V2.CheckConsistencyRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CheckConsistency, null, options, request); + } + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CheckConsistencyAsync(global::Google.Cloud.Bigtable.Admin.V2.CheckConsistencyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CheckConsistencyAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CheckConsistencyAsync(global::Google.Cloud.Bigtable.Admin.V2.CheckConsistencyRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CheckConsistency, null, options, request); + } + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation SnapshotTable(global::Google.Cloud.Bigtable.Admin.V2.SnapshotTableRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return SnapshotTable(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation SnapshotTable(global::Google.Cloud.Bigtable.Admin.V2.SnapshotTableRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_SnapshotTable, null, options, request); + } + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall SnapshotTableAsync(global::Google.Cloud.Bigtable.Admin.V2.SnapshotTableRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return SnapshotTableAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall SnapshotTableAsync(global::Google.Cloud.Bigtable.Admin.V2.SnapshotTableRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_SnapshotTable, null, options, request); + } + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.Snapshot GetSnapshot(global::Google.Cloud.Bigtable.Admin.V2.GetSnapshotRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetSnapshot(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.Snapshot GetSnapshot(global::Google.Cloud.Bigtable.Admin.V2.GetSnapshotRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetSnapshot, null, options, request); + } + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetSnapshotAsync(global::Google.Cloud.Bigtable.Admin.V2.GetSnapshotRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetSnapshotAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetSnapshotAsync(global::Google.Cloud.Bigtable.Admin.V2.GetSnapshotRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetSnapshot, null, options, request); + } + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.ListSnapshotsResponse ListSnapshots(global::Google.Cloud.Bigtable.Admin.V2.ListSnapshotsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListSnapshots(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.ListSnapshotsResponse ListSnapshots(global::Google.Cloud.Bigtable.Admin.V2.ListSnapshotsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListSnapshots, null, options, request); + } + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListSnapshotsAsync(global::Google.Cloud.Bigtable.Admin.V2.ListSnapshotsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListSnapshotsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListSnapshotsAsync(global::Google.Cloud.Bigtable.Admin.V2.ListSnapshotsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListSnapshots, null, options, request); + } + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteSnapshot(global::Google.Cloud.Bigtable.Admin.V2.DeleteSnapshotRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteSnapshot(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteSnapshot(global::Google.Cloud.Bigtable.Admin.V2.DeleteSnapshotRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteSnapshot, null, options, request); + } + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteSnapshotAsync(global::Google.Cloud.Bigtable.Admin.V2.DeleteSnapshotRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteSnapshotAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteSnapshotAsync(global::Google.Cloud.Bigtable.Admin.V2.DeleteSnapshotRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteSnapshot, null, options, request); + } + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation CreateBackup(global::Google.Cloud.Bigtable.Admin.V2.CreateBackupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateBackup(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation CreateBackup(global::Google.Cloud.Bigtable.Admin.V2.CreateBackupRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateBackup, null, options, request); + } + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateBackupAsync(global::Google.Cloud.Bigtable.Admin.V2.CreateBackupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateBackupAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateBackupAsync(global::Google.Cloud.Bigtable.Admin.V2.CreateBackupRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateBackup, null, options, request); + } + /// + /// Gets metadata on a pending or completed Cloud Bigtable Backup. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.Backup GetBackup(global::Google.Cloud.Bigtable.Admin.V2.GetBackupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetBackup(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets metadata on a pending or completed Cloud Bigtable Backup. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.Backup GetBackup(global::Google.Cloud.Bigtable.Admin.V2.GetBackupRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetBackup, null, options, request); + } + /// + /// Gets metadata on a pending or completed Cloud Bigtable Backup. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetBackupAsync(global::Google.Cloud.Bigtable.Admin.V2.GetBackupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetBackupAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets metadata on a pending or completed Cloud Bigtable Backup. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetBackupAsync(global::Google.Cloud.Bigtable.Admin.V2.GetBackupRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetBackup, null, options, request); + } + /// + /// Updates a pending or completed Cloud Bigtable Backup. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.Backup UpdateBackup(global::Google.Cloud.Bigtable.Admin.V2.UpdateBackupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateBackup(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Updates a pending or completed Cloud Bigtable Backup. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.Backup UpdateBackup(global::Google.Cloud.Bigtable.Admin.V2.UpdateBackupRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateBackup, null, options, request); + } + /// + /// Updates a pending or completed Cloud Bigtable Backup. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateBackupAsync(global::Google.Cloud.Bigtable.Admin.V2.UpdateBackupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateBackupAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Updates a pending or completed Cloud Bigtable Backup. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateBackupAsync(global::Google.Cloud.Bigtable.Admin.V2.UpdateBackupRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateBackup, null, options, request); + } + /// + /// Deletes a pending or completed Cloud Bigtable backup. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteBackup(global::Google.Cloud.Bigtable.Admin.V2.DeleteBackupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteBackup(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Deletes a pending or completed Cloud Bigtable backup. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteBackup(global::Google.Cloud.Bigtable.Admin.V2.DeleteBackupRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteBackup, null, options, request); + } + /// + /// Deletes a pending or completed Cloud Bigtable backup. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteBackupAsync(global::Google.Cloud.Bigtable.Admin.V2.DeleteBackupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteBackupAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Deletes a pending or completed Cloud Bigtable backup. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteBackupAsync(global::Google.Cloud.Bigtable.Admin.V2.DeleteBackupRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteBackup, null, options, request); + } + /// + /// Lists Cloud Bigtable backups. Returns both completed and pending + /// backups. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.ListBackupsResponse ListBackups(global::Google.Cloud.Bigtable.Admin.V2.ListBackupsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListBackups(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists Cloud Bigtable backups. Returns both completed and pending + /// backups. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Bigtable.Admin.V2.ListBackupsResponse ListBackups(global::Google.Cloud.Bigtable.Admin.V2.ListBackupsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListBackups, null, options, request); + } + /// + /// Lists Cloud Bigtable backups. Returns both completed and pending + /// backups. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListBackupsAsync(global::Google.Cloud.Bigtable.Admin.V2.ListBackupsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListBackupsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists Cloud Bigtable backups. Returns both completed and pending + /// backups. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListBackupsAsync(global::Google.Cloud.Bigtable.Admin.V2.ListBackupsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListBackups, null, options, request); + } + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation RestoreTable(global::Google.Cloud.Bigtable.Admin.V2.RestoreTableRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return RestoreTable(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation RestoreTable(global::Google.Cloud.Bigtable.Admin.V2.RestoreTableRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_RestoreTable, null, options, request); + } + /// + /// 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 request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall RestoreTableAsync(global::Google.Cloud.Bigtable.Admin.V2.RestoreTableRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return RestoreTableAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// 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 request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall RestoreTableAsync(global::Google.Cloud.Bigtable.Admin.V2.RestoreTableRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_RestoreTable, null, options, request); + } + /// + /// Copy a Cloud Bigtable backup to a new backup in the destination cluster + /// located in the destination instance and project. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation CopyBackup(global::Google.Cloud.Bigtable.Admin.V2.CopyBackupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CopyBackup(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Copy a Cloud Bigtable backup to a new backup in the destination cluster + /// located in the destination instance and project. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation CopyBackup(global::Google.Cloud.Bigtable.Admin.V2.CopyBackupRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CopyBackup, null, options, request); + } + /// + /// Copy a Cloud Bigtable backup to a new backup in the destination cluster + /// located in the destination instance and project. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CopyBackupAsync(global::Google.Cloud.Bigtable.Admin.V2.CopyBackupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CopyBackupAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Copy a Cloud Bigtable backup to a new backup in the destination cluster + /// located in the destination instance and project. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CopyBackupAsync(global::Google.Cloud.Bigtable.Admin.V2.CopyBackupRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CopyBackup, null, options, request); + } + /// + /// Gets the access control policy for a Table or Backup resource. + /// Returns an empty policy if the resource exists but does not have a policy + /// set. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Iam.V1.Policy GetIamPolicy(global::Google.Cloud.Iam.V1.GetIamPolicyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetIamPolicy(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets the access control policy for a Table or Backup resource. + /// Returns an empty policy if the resource exists but does not have a policy + /// set. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Iam.V1.Policy GetIamPolicy(global::Google.Cloud.Iam.V1.GetIamPolicyRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetIamPolicy, null, options, request); + } + /// + /// Gets the access control policy for a Table or Backup resource. + /// Returns an empty policy if the resource exists but does not have a policy + /// set. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetIamPolicyAsync(global::Google.Cloud.Iam.V1.GetIamPolicyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetIamPolicyAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets the access control policy for a Table or Backup resource. + /// Returns an empty policy if the resource exists but does not have a policy + /// set. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetIamPolicyAsync(global::Google.Cloud.Iam.V1.GetIamPolicyRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetIamPolicy, null, options, request); + } + /// + /// Sets the access control policy on a Table or Backup resource. + /// Replaces any existing policy. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Iam.V1.Policy SetIamPolicy(global::Google.Cloud.Iam.V1.SetIamPolicyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return SetIamPolicy(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Sets the access control policy on a Table or Backup resource. + /// Replaces any existing policy. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Iam.V1.Policy SetIamPolicy(global::Google.Cloud.Iam.V1.SetIamPolicyRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_SetIamPolicy, null, options, request); + } + /// + /// Sets the access control policy on a Table or Backup resource. + /// Replaces any existing policy. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall SetIamPolicyAsync(global::Google.Cloud.Iam.V1.SetIamPolicyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return SetIamPolicyAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Sets the access control policy on a Table or Backup resource. + /// Replaces any existing policy. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall SetIamPolicyAsync(global::Google.Cloud.Iam.V1.SetIamPolicyRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_SetIamPolicy, null, options, request); + } + /// + /// Returns permissions that the caller has on the specified Table or Backup + /// resource. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Iam.V1.TestIamPermissionsResponse TestIamPermissions(global::Google.Cloud.Iam.V1.TestIamPermissionsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return TestIamPermissions(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Returns permissions that the caller has on the specified Table or Backup + /// resource. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Iam.V1.TestIamPermissionsResponse TestIamPermissions(global::Google.Cloud.Iam.V1.TestIamPermissionsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_TestIamPermissions, null, options, request); + } + /// + /// Returns permissions that the caller has on the specified Table or Backup + /// resource. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall TestIamPermissionsAsync(global::Google.Cloud.Iam.V1.TestIamPermissionsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return TestIamPermissionsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Returns permissions that the caller has on the specified Table or Backup + /// resource. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall TestIamPermissionsAsync(global::Google.Cloud.Iam.V1.TestIamPermissionsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_TestIamPermissions, null, options, request); + } + /// Creates a new instance of client from given ClientBaseConfiguration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected override BigtableTableAdminClient NewInstance(ClientBaseConfiguration configuration) + { + return new BigtableTableAdminClient(configuration); + } + } + + /// Creates service definition that can be registered with a server + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static grpc::ServerServiceDefinition BindService(BigtableTableAdminBase serviceImpl) + { + return grpc::ServerServiceDefinition.CreateBuilder() + .AddMethod(__Method_CreateTable, serviceImpl.CreateTable) + .AddMethod(__Method_CreateTableFromSnapshot, serviceImpl.CreateTableFromSnapshot) + .AddMethod(__Method_ListTables, serviceImpl.ListTables) + .AddMethod(__Method_GetTable, serviceImpl.GetTable) + .AddMethod(__Method_UpdateTable, serviceImpl.UpdateTable) + .AddMethod(__Method_DeleteTable, serviceImpl.DeleteTable) + .AddMethod(__Method_UndeleteTable, serviceImpl.UndeleteTable) + .AddMethod(__Method_CreateAuthorizedView, serviceImpl.CreateAuthorizedView) + .AddMethod(__Method_ListAuthorizedViews, serviceImpl.ListAuthorizedViews) + .AddMethod(__Method_GetAuthorizedView, serviceImpl.GetAuthorizedView) + .AddMethod(__Method_UpdateAuthorizedView, serviceImpl.UpdateAuthorizedView) + .AddMethod(__Method_DeleteAuthorizedView, serviceImpl.DeleteAuthorizedView) + .AddMethod(__Method_ModifyColumnFamilies, serviceImpl.ModifyColumnFamilies) + .AddMethod(__Method_DropRowRange, serviceImpl.DropRowRange) + .AddMethod(__Method_GenerateConsistencyToken, serviceImpl.GenerateConsistencyToken) + .AddMethod(__Method_CheckConsistency, serviceImpl.CheckConsistency) + .AddMethod(__Method_SnapshotTable, serviceImpl.SnapshotTable) + .AddMethod(__Method_GetSnapshot, serviceImpl.GetSnapshot) + .AddMethod(__Method_ListSnapshots, serviceImpl.ListSnapshots) + .AddMethod(__Method_DeleteSnapshot, serviceImpl.DeleteSnapshot) + .AddMethod(__Method_CreateBackup, serviceImpl.CreateBackup) + .AddMethod(__Method_GetBackup, serviceImpl.GetBackup) + .AddMethod(__Method_UpdateBackup, serviceImpl.UpdateBackup) + .AddMethod(__Method_DeleteBackup, serviceImpl.DeleteBackup) + .AddMethod(__Method_ListBackups, serviceImpl.ListBackups) + .AddMethod(__Method_RestoreTable, serviceImpl.RestoreTable) + .AddMethod(__Method_CopyBackup, serviceImpl.CopyBackup) + .AddMethod(__Method_GetIamPolicy, serviceImpl.GetIamPolicy) + .AddMethod(__Method_SetIamPolicy, serviceImpl.SetIamPolicy) + .AddMethod(__Method_TestIamPermissions, serviceImpl.TestIamPermissions).Build(); + } + + /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. + /// Note: this method is part of an experimental API that can change or be removed without any prior notice. + /// Service methods will be bound by calling AddMethod on this object. + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static void BindService(grpc::ServiceBinderBase serviceBinder, BigtableTableAdminBase serviceImpl) + { + serviceBinder.AddMethod(__Method_CreateTable, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateTable)); + serviceBinder.AddMethod(__Method_CreateTableFromSnapshot, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateTableFromSnapshot)); + serviceBinder.AddMethod(__Method_ListTables, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListTables)); + serviceBinder.AddMethod(__Method_GetTable, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetTable)); + serviceBinder.AddMethod(__Method_UpdateTable, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateTable)); + serviceBinder.AddMethod(__Method_DeleteTable, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteTable)); + serviceBinder.AddMethod(__Method_UndeleteTable, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UndeleteTable)); + serviceBinder.AddMethod(__Method_CreateAuthorizedView, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateAuthorizedView)); + serviceBinder.AddMethod(__Method_ListAuthorizedViews, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListAuthorizedViews)); + serviceBinder.AddMethod(__Method_GetAuthorizedView, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetAuthorizedView)); + serviceBinder.AddMethod(__Method_UpdateAuthorizedView, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateAuthorizedView)); + serviceBinder.AddMethod(__Method_DeleteAuthorizedView, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteAuthorizedView)); + serviceBinder.AddMethod(__Method_ModifyColumnFamilies, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ModifyColumnFamilies)); + serviceBinder.AddMethod(__Method_DropRowRange, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DropRowRange)); + serviceBinder.AddMethod(__Method_GenerateConsistencyToken, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GenerateConsistencyToken)); + serviceBinder.AddMethod(__Method_CheckConsistency, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CheckConsistency)); + serviceBinder.AddMethod(__Method_SnapshotTable, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.SnapshotTable)); + serviceBinder.AddMethod(__Method_GetSnapshot, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetSnapshot)); + serviceBinder.AddMethod(__Method_ListSnapshots, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListSnapshots)); + serviceBinder.AddMethod(__Method_DeleteSnapshot, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteSnapshot)); + serviceBinder.AddMethod(__Method_CreateBackup, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateBackup)); + serviceBinder.AddMethod(__Method_GetBackup, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetBackup)); + serviceBinder.AddMethod(__Method_UpdateBackup, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateBackup)); + serviceBinder.AddMethod(__Method_DeleteBackup, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteBackup)); + serviceBinder.AddMethod(__Method_ListBackups, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListBackups)); + serviceBinder.AddMethod(__Method_RestoreTable, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.RestoreTable)); + serviceBinder.AddMethod(__Method_CopyBackup, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CopyBackup)); + serviceBinder.AddMethod(__Method_GetIamPolicy, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetIamPolicy)); + serviceBinder.AddMethod(__Method_SetIamPolicy, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.SetIamPolicy)); + serviceBinder.AddMethod(__Method_TestIamPermissions, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.TestIamPermissions)); + } + + } +} +#endregion diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableTableAdminResourceNames.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableTableAdminResourceNames.g.cs new file mode 100755 index 000000000000..54dadd3edcd3 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableTableAdminResourceNames.g.cs @@ -0,0 +1,351 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +#pragma warning disable CS8981 +using gcbav = Google.Cloud.Bigtable.Admin.V2; + +namespace Google.Cloud.Bigtable.Admin.V2 +{ + public partial class RestoreTableRequest + { + /// + /// -typed view over the resource name property. + /// + public InstanceName ParentAsInstanceName + { + get => string.IsNullOrEmpty(Parent) ? null : InstanceName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + + /// -typed view over the resource name property. + public BackupName BackupAsBackupName + { + get => string.IsNullOrEmpty(Backup) ? null : BackupName.Parse(Backup, allowUnparsed: true); + set => Backup = value?.ToString() ?? ""; + } + } + + public partial class CreateTableRequest + { + /// + /// -typed view over the resource name property. + /// + public InstanceName ParentAsInstanceName + { + get => string.IsNullOrEmpty(Parent) ? null : InstanceName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class CreateTableFromSnapshotRequest + { + /// + /// -typed view over the resource name property. + /// + public InstanceName ParentAsInstanceName + { + get => string.IsNullOrEmpty(Parent) ? null : InstanceName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + + /// + /// -typed view over the resource name property. + /// + public SnapshotName SourceSnapshotAsSnapshotName + { + get => string.IsNullOrEmpty(SourceSnapshot) ? null : SnapshotName.Parse(SourceSnapshot, allowUnparsed: true); + set => SourceSnapshot = value?.ToString() ?? ""; + } + } + + public partial class DropRowRangeRequest + { + /// + /// -typed view over the resource name property. + /// + public gcbav::TableName TableName + { + get => string.IsNullOrEmpty(Name) ? null : gcbav::TableName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class ListTablesRequest + { + /// + /// -typed view over the resource name property. + /// + public InstanceName ParentAsInstanceName + { + get => string.IsNullOrEmpty(Parent) ? null : InstanceName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class GetTableRequest + { + /// + /// -typed view over the resource name property. + /// + public gcbav::TableName TableName + { + get => string.IsNullOrEmpty(Name) ? null : gcbav::TableName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class DeleteTableRequest + { + /// + /// -typed view over the resource name property. + /// + public gcbav::TableName TableName + { + get => string.IsNullOrEmpty(Name) ? null : gcbav::TableName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class UndeleteTableRequest + { + /// + /// -typed view over the resource name property. + /// + public gcbav::TableName TableName + { + get => string.IsNullOrEmpty(Name) ? null : gcbav::TableName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class ModifyColumnFamiliesRequest + { + /// + /// -typed view over the resource name property. + /// + public gcbav::TableName TableName + { + get => string.IsNullOrEmpty(Name) ? null : gcbav::TableName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class GenerateConsistencyTokenRequest + { + /// + /// -typed view over the resource name property. + /// + public gcbav::TableName TableName + { + get => string.IsNullOrEmpty(Name) ? null : gcbav::TableName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class CheckConsistencyRequest + { + /// + /// -typed view over the resource name property. + /// + public gcbav::TableName TableName + { + get => string.IsNullOrEmpty(Name) ? null : gcbav::TableName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class SnapshotTableRequest + { + /// + /// -typed view over the resource name property. + /// + public gcbav::TableName TableName + { + get => string.IsNullOrEmpty(Name) ? null : gcbav::TableName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + + /// + /// -typed view over the resource name property. + /// + public ClusterName ClusterAsClusterName + { + get => string.IsNullOrEmpty(Cluster) ? null : ClusterName.Parse(Cluster, allowUnparsed: true); + set => Cluster = value?.ToString() ?? ""; + } + } + + public partial class GetSnapshotRequest + { + /// + /// -typed view over the resource name property. + /// + public gcbav::SnapshotName SnapshotName + { + get => string.IsNullOrEmpty(Name) ? null : gcbav::SnapshotName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class ListSnapshotsRequest + { + /// + /// -typed view over the resource name property. + /// + public ClusterName ParentAsClusterName + { + get => string.IsNullOrEmpty(Parent) ? null : ClusterName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class DeleteSnapshotRequest + { + /// + /// -typed view over the resource name property. + /// + public gcbav::SnapshotName SnapshotName + { + get => string.IsNullOrEmpty(Name) ? null : gcbav::SnapshotName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class CreateBackupRequest + { + /// + /// -typed view over the resource name property. + /// + public ClusterName ParentAsClusterName + { + get => string.IsNullOrEmpty(Parent) ? null : ClusterName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class GetBackupRequest + { + /// + /// -typed view over the resource name property. + /// + public gcbav::BackupName BackupName + { + get => string.IsNullOrEmpty(Name) ? null : gcbav::BackupName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class DeleteBackupRequest + { + /// + /// -typed view over the resource name property. + /// + public gcbav::BackupName BackupName + { + get => string.IsNullOrEmpty(Name) ? null : gcbav::BackupName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class ListBackupsRequest + { + /// + /// -typed view over the resource name property. + /// + public ClusterName ParentAsClusterName + { + get => string.IsNullOrEmpty(Parent) ? null : ClusterName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class CopyBackupRequest + { + /// + /// -typed view over the resource name property. + /// + public ClusterName ParentAsClusterName + { + get => string.IsNullOrEmpty(Parent) ? null : ClusterName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + + /// + /// -typed view over the resource name property. + /// + public BackupName SourceBackupAsBackupName + { + get => string.IsNullOrEmpty(SourceBackup) ? null : BackupName.Parse(SourceBackup, allowUnparsed: true); + set => SourceBackup = value?.ToString() ?? ""; + } + } + + public partial class CopyBackupMetadata + { + /// + /// -typed view over the resource name property. + /// + public gcbav::BackupName BackupName + { + get => string.IsNullOrEmpty(Name) ? null : gcbav::BackupName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class CreateAuthorizedViewRequest + { + /// -typed view over the resource name property. + public TableName ParentAsTableName + { + get => string.IsNullOrEmpty(Parent) ? null : TableName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class ListAuthorizedViewsRequest + { + /// -typed view over the resource name property. + public TableName ParentAsTableName + { + get => string.IsNullOrEmpty(Parent) ? null : TableName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class GetAuthorizedViewRequest + { + /// + /// -typed view over the resource name property. + /// + public gcbav::AuthorizedViewName AuthorizedViewName + { + get => string.IsNullOrEmpty(Name) ? null : gcbav::AuthorizedViewName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class DeleteAuthorizedViewRequest + { + /// + /// -typed view over the resource name property. + /// + public gcbav::AuthorizedViewName AuthorizedViewName + { + get => string.IsNullOrEmpty(Name) ? null : gcbav::AuthorizedViewName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/Common.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/Common.g.cs new file mode 100755 index 000000000000..7908ae9dfcd8 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/Common.g.cs @@ -0,0 +1,371 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/bigtable/admin/v2/common.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Google.Cloud.Bigtable.Admin.V2 { + + /// Holder for reflection information generated from google/bigtable/admin/v2/common.proto + public static partial class CommonReflection { + + #region Descriptor + /// File descriptor for google/bigtable/admin/v2/common.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static CommonReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiVnb29nbGUvYmlndGFibGUvYWRtaW4vdjIvY29tbW9uLnByb3RvEhhnb29n", + "bGUuYmlndGFibGUuYWRtaW4udjIaH2dvb2dsZS9wcm90b2J1Zi90aW1lc3Rh", + "bXAucHJvdG8iiwEKEU9wZXJhdGlvblByb2dyZXNzEhgKEHByb2dyZXNzX3Bl", + "cmNlbnQYASABKAUSLgoKc3RhcnRfdGltZRgCIAEoCzIaLmdvb2dsZS5wcm90", + "b2J1Zi5UaW1lc3RhbXASLAoIZW5kX3RpbWUYAyABKAsyGi5nb29nbGUucHJv", + "dG9idWYuVGltZXN0YW1wKj0KC1N0b3JhZ2VUeXBlEhwKGFNUT1JBR0VfVFlQ", + "RV9VTlNQRUNJRklFRBAAEgcKA1NTRBABEgcKA0hERBACQs4BChxjb20uZ29v", + "Z2xlLmJpZ3RhYmxlLmFkbWluLnYyQgtDb21tb25Qcm90b1ABWjhjbG91ZC5n", + "b29nbGUuY29tL2dvL2JpZ3RhYmxlL2FkbWluL2FwaXYyL2FkbWlucGI7YWRt", + "aW5wYqoCHkdvb2dsZS5DbG91ZC5CaWd0YWJsZS5BZG1pbi5WMsoCHkdvb2ds", + "ZVxDbG91ZFxCaWd0YWJsZVxBZG1pblxWMuoCIkdvb2dsZTo6Q2xvdWQ6OkJp", + "Z3RhYmxlOjpBZG1pbjo6VjJiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Cloud.Bigtable.Admin.V2.StorageType), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.OperationProgress), global::Google.Cloud.Bigtable.Admin.V2.OperationProgress.Parser, new[]{ "ProgressPercent", "StartTime", "EndTime" }, null, null, null, null) + })); + } + #endregion + + } + #region Enums + /// + /// Storage media types for persisting Bigtable data. + /// + public enum StorageType { + /// + /// The user did not specify a storage type. + /// + [pbr::OriginalName("STORAGE_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// Flash (SSD) storage should be used. + /// + [pbr::OriginalName("SSD")] Ssd = 1, + /// + /// Magnetic drive (HDD) storage should be used. + /// + [pbr::OriginalName("HDD")] Hdd = 2, + } + + #endregion + + #region Messages + /// + /// Encapsulates progress related information for a Cloud Bigtable long + /// running operation. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class OperationProgress : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OperationProgress()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.CommonReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OperationProgress() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OperationProgress(OperationProgress other) : this() { + progressPercent_ = other.progressPercent_; + startTime_ = other.startTime_ != null ? other.startTime_.Clone() : null; + endTime_ = other.endTime_ != null ? other.endTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OperationProgress Clone() { + return new OperationProgress(this); + } + + /// Field number for the "progress_percent" field. + public const int ProgressPercentFieldNumber = 1; + private int progressPercent_; + /// + /// Percent completion of the operation. + /// Values are between 0 and 100 inclusive. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ProgressPercent { + get { return progressPercent_; } + set { + progressPercent_ = value; + } + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp startTime_; + /// + /// Time the request was received. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp StartTime { + get { return startTime_; } + set { + startTime_ = value; + } + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp endTime_; + /// + /// If set, the time at which this operation failed or was completed + /// successfully. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as OperationProgress); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(OperationProgress other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ProgressPercent != other.ProgressPercent) return false; + if (!object.Equals(StartTime, other.StartTime)) return false; + if (!object.Equals(EndTime, other.EndTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ProgressPercent != 0) hash ^= ProgressPercent.GetHashCode(); + if (startTime_ != null) hash ^= StartTime.GetHashCode(); + if (endTime_ != null) hash ^= EndTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ProgressPercent != 0) { + output.WriteRawTag(8); + output.WriteInt32(ProgressPercent); + } + if (startTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(StartTime); + } + if (endTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(EndTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ProgressPercent != 0) { + output.WriteRawTag(8); + output.WriteInt32(ProgressPercent); + } + if (startTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(StartTime); + } + if (endTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(EndTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ProgressPercent != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ProgressPercent); + } + if (startTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTime); + } + if (endTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(OperationProgress other) { + if (other == null) { + return; + } + if (other.ProgressPercent != 0) { + ProgressPercent = other.ProgressPercent; + } + if (other.startTime_ != null) { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + StartTime.MergeFrom(other.StartTime); + } + if (other.endTime_ != null) { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + EndTime.MergeFrom(other.EndTime); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ProgressPercent = input.ReadInt32(); + break; + } + case 18: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 26: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ProgressPercent = input.ReadInt32(); + break; + } + case 18: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 26: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.csproj b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.csproj new file mode 100755 index 000000000000..a49f73a0966a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.csproj @@ -0,0 +1,49 @@ + + + + + + 1.0.0-alpha01 + + + + + + + + + netstandard2.0;net462 + latest + true + true + true + + + + + + + + + + + + \ No newline at end of file diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/Instance.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/Instance.g.cs new file mode 100755 index 000000000000..27f4eca2fab5 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/Instance.g.cs @@ -0,0 +1,4657 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/bigtable/admin/v2/instance.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Google.Cloud.Bigtable.Admin.V2 { + + /// Holder for reflection information generated from google/bigtable/admin/v2/instance.proto + public static partial class InstanceReflection { + + #region Descriptor + /// File descriptor for google/bigtable/admin/v2/instance.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static InstanceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cidnb29nbGUvYmlndGFibGUvYWRtaW4vdjIvaW5zdGFuY2UucHJvdG8SGGdv", + "b2dsZS5iaWd0YWJsZS5hZG1pbi52MhofZ29vZ2xlL2FwaS9maWVsZF9iZWhh", + "dmlvci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90bxolZ29vZ2xl", + "L2JpZ3RhYmxlL2FkbWluL3YyL2NvbW1vbi5wcm90bxofZ29vZ2xlL3Byb3Rv", + "YnVmL3RpbWVzdGFtcC5wcm90byLGBAoISW5zdGFuY2USDAoEbmFtZRgBIAEo", + "CRIZCgxkaXNwbGF5X25hbWUYAiABKAlCA+BBAhI3CgVzdGF0ZRgDIAEoDjIo", + "Lmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5JbnN0YW5jZS5TdGF0ZRI1CgR0", + "eXBlGAQgASgOMicuZ29vZ2xlLmJpZ3RhYmxlLmFkbWluLnYyLkluc3RhbmNl", + "LlR5cGUSPgoGbGFiZWxzGAUgAygLMi4uZ29vZ2xlLmJpZ3RhYmxlLmFkbWlu", + "LnYyLkluc3RhbmNlLkxhYmVsc0VudHJ5EjQKC2NyZWF0ZV90aW1lGAcgASgL", + "MhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EEDEh8KDXNhdGlzZmll", + "c19wenMYCCABKAhCA+BBA0gAiAEBGi0KC0xhYmVsc0VudHJ5EgsKA2tleRgB", + "IAEoCRINCgV2YWx1ZRgCIAEoCToCOAEiNQoFU3RhdGUSEwoPU1RBVEVfTk9U", + "X0tOT1dOEAASCQoFUkVBRFkQARIMCghDUkVBVElORxACIj0KBFR5cGUSFAoQ", + "VFlQRV9VTlNQRUNJRklFRBAAEg4KClBST0RVQ1RJT04QARIPCgtERVZFTE9Q", + "TUVOVBACOlPqQVAKJWJpZ3RhYmxlYWRtaW4uZ29vZ2xlYXBpcy5jb20vSW5z", + "dGFuY2USJ3Byb2plY3RzL3twcm9qZWN0fS9pbnN0YW5jZXMve2luc3RhbmNl", + "fUIQCg5fc2F0aXNmaWVzX3B6cyJfChJBdXRvc2NhbGluZ1RhcmdldHMSHwoX", + "Y3B1X3V0aWxpemF0aW9uX3BlcmNlbnQYAiABKAUSKAogc3RvcmFnZV91dGls", + "aXphdGlvbl9naWJfcGVyX25vZGUYAyABKAUiTwoRQXV0b3NjYWxpbmdMaW1p", + "dHMSHAoPbWluX3NlcnZlX25vZGVzGAEgASgFQgPgQQISHAoPbWF4X3NlcnZl", + "X25vZGVzGAIgASgFQgPgQQIimgkKB0NsdXN0ZXISDAoEbmFtZRgBIAEoCRI7", + "Cghsb2NhdGlvbhgCIAEoCUIp4EEF+kEjCiFsb2NhdGlvbnMuZ29vZ2xlYXBp", + "cy5jb20vTG9jYXRpb24SOwoFc3RhdGUYAyABKA4yJy5nb29nbGUuYmlndGFi", + "bGUuYWRtaW4udjIuQ2x1c3Rlci5TdGF0ZUID4EEDEhMKC3NlcnZlX25vZGVz", + "GAQgASgFElUKE25vZGVfc2NhbGluZ19mYWN0b3IYCSABKA4yMy5nb29nbGUu", + "YmlndGFibGUuYWRtaW4udjIuQ2x1c3Rlci5Ob2RlU2NhbGluZ0ZhY3RvckID", + "4EEFEkkKDmNsdXN0ZXJfY29uZmlnGAcgASgLMi8uZ29vZ2xlLmJpZ3RhYmxl", + "LmFkbWluLnYyLkNsdXN0ZXIuQ2x1c3RlckNvbmZpZ0gAEkgKFGRlZmF1bHRf", + "c3RvcmFnZV90eXBlGAUgASgOMiUuZ29vZ2xlLmJpZ3RhYmxlLmFkbWluLnYy", + "LlN0b3JhZ2VUeXBlQgPgQQUSUgoRZW5jcnlwdGlvbl9jb25maWcYBiABKAsy", + "Mi5nb29nbGUuYmlndGFibGUuYWRtaW4udjIuQ2x1c3Rlci5FbmNyeXB0aW9u", + "Q29uZmlnQgPgQQUauAEKGENsdXN0ZXJBdXRvc2NhbGluZ0NvbmZpZxJMChJh", + "dXRvc2NhbGluZ19saW1pdHMYASABKAsyKy5nb29nbGUuYmlndGFibGUuYWRt", + "aW4udjIuQXV0b3NjYWxpbmdMaW1pdHNCA+BBAhJOChNhdXRvc2NhbGluZ190", + "YXJnZXRzGAIgASgLMiwuZ29vZ2xlLmJpZ3RhYmxlLmFkbWluLnYyLkF1dG9z", + "Y2FsaW5nVGFyZ2V0c0ID4EECGm8KDUNsdXN0ZXJDb25maWcSXgoaY2x1c3Rl", + "cl9hdXRvc2NhbGluZ19jb25maWcYASABKAsyOi5nb29nbGUuYmlndGFibGUu", + "YWRtaW4udjIuQ2x1c3Rlci5DbHVzdGVyQXV0b3NjYWxpbmdDb25maWcaUAoQ", + "RW5jcnlwdGlvbkNvbmZpZxI8CgxrbXNfa2V5X25hbWUYASABKAlCJvpBIwoh", + "Y2xvdWRrbXMuZ29vZ2xlYXBpcy5jb20vQ3J5cHRvS2V5IlEKBVN0YXRlEhMK", + "D1NUQVRFX05PVF9LTk9XThAAEgkKBVJFQURZEAESDAoIQ1JFQVRJTkcQAhIM", + "CghSRVNJWklORxADEgwKCERJU0FCTEVEEAQicAoRTm9kZVNjYWxpbmdGYWN0", + "b3ISIwofTk9ERV9TQ0FMSU5HX0ZBQ1RPUl9VTlNQRUNJRklFRBAAEhoKFk5P", + "REVfU0NBTElOR19GQUNUT1JfMVgQARIaChZOT0RFX1NDQUxJTkdfRkFDVE9S", + "XzJYEAI6ZepBYgokYmlndGFibGVhZG1pbi5nb29nbGVhcGlzLmNvbS9DbHVz", + "dGVyEjpwcm9qZWN0cy97cHJvamVjdH0vaW5zdGFuY2VzL3tpbnN0YW5jZX0v", + "Y2x1c3RlcnMve2NsdXN0ZXJ9QggKBmNvbmZpZyLSCgoKQXBwUHJvZmlsZRIM", + "CgRuYW1lGAEgASgJEgwKBGV0YWcYAiABKAkSEwoLZGVzY3JpcHRpb24YAyAB", + "KAkSZwodbXVsdGlfY2x1c3Rlcl9yb3V0aW5nX3VzZV9hbnkYBSABKAsyPi5n", + "b29nbGUuYmlndGFibGUuYWRtaW4udjIuQXBwUHJvZmlsZS5NdWx0aUNsdXN0", + "ZXJSb3V0aW5nVXNlQW55SAASWwoWc2luZ2xlX2NsdXN0ZXJfcm91dGluZxgG", + "IAEoCzI5Lmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5BcHBQcm9maWxlLlNp", + "bmdsZUNsdXN0ZXJSb3V0aW5nSAASRQoIcHJpb3JpdHkYByABKA4yLS5nb29n", + "bGUuYmlndGFibGUuYWRtaW4udjIuQXBwUHJvZmlsZS5Qcmlvcml0eUICGAFI", + "ARJUChJzdGFuZGFyZF9pc29sYXRpb24YCyABKAsyNi5nb29nbGUuYmlndGFi", + "bGUuYWRtaW4udjIuQXBwUHJvZmlsZS5TdGFuZGFyZElzb2xhdGlvbkgBEmkK", + "HmRhdGFfYm9vc3RfaXNvbGF0aW9uX3JlYWRfb25seRgKIAEoCzI/Lmdvb2ds", + "ZS5iaWd0YWJsZS5hZG1pbi52Mi5BcHBQcm9maWxlLkRhdGFCb29zdElzb2xh", + "dGlvblJlYWRPbmx5SAEarwEKGU11bHRpQ2x1c3RlclJvdXRpbmdVc2VBbnkS", + "EwoLY2x1c3Rlcl9pZHMYASADKAkSYgoMcm93X2FmZmluaXR5GAMgASgLMkou", + "Z29vZ2xlLmJpZ3RhYmxlLmFkbWluLnYyLkFwcFByb2ZpbGUuTXVsdGlDbHVz", + "dGVyUm91dGluZ1VzZUFueS5Sb3dBZmZpbml0eUgAGg0KC1Jvd0FmZmluaXR5", + "QgoKCGFmZmluaXR5Gk4KFFNpbmdsZUNsdXN0ZXJSb3V0aW5nEhIKCmNsdXN0", + "ZXJfaWQYASABKAkSIgoaYWxsb3dfdHJhbnNhY3Rpb25hbF93cml0ZXMYAiAB", + "KAgaVAoRU3RhbmRhcmRJc29sYXRpb24SPwoIcHJpb3JpdHkYASABKA4yLS5n", + "b29nbGUuYmlndGFibGUuYWRtaW4udjIuQXBwUHJvZmlsZS5Qcmlvcml0eRr8", + "AQoaRGF0YUJvb3N0SXNvbGF0aW9uUmVhZE9ubHkSdwoVY29tcHV0ZV9iaWxs", + "aW5nX293bmVyGAEgASgOMlMuZ29vZ2xlLmJpZ3RhYmxlLmFkbWluLnYyLkFw", + "cFByb2ZpbGUuRGF0YUJvb3N0SXNvbGF0aW9uUmVhZE9ubHkuQ29tcHV0ZUJp", + "bGxpbmdPd25lckgAiAEBIksKE0NvbXB1dGVCaWxsaW5nT3duZXISJQohQ09N", + "UFVURV9CSUxMSU5HX09XTkVSX1VOU1BFQ0lGSUVEEAASDQoJSE9TVF9QQVlT", + "EAFCGAoWX2NvbXB1dGVfYmlsbGluZ19vd25lciJeCghQcmlvcml0eRIYChRQ", + "UklPUklUWV9VTlNQRUNJRklFRBAAEhAKDFBSSU9SSVRZX0xPVxABEhMKD1BS", + "SU9SSVRZX01FRElVTRACEhEKDVBSSU9SSVRZX0hJR0gQAzpv6kFsCidiaWd0", + "YWJsZWFkbWluLmdvb2dsZWFwaXMuY29tL0FwcFByb2ZpbGUSQXByb2plY3Rz", + "L3twcm9qZWN0fS9pbnN0YW5jZXMve2luc3RhbmNlfS9hcHBQcm9maWxlcy97", + "YXBwX3Byb2ZpbGV9QhAKDnJvdXRpbmdfcG9saWN5QgsKCWlzb2xhdGlvbiKI", + "AwoJSG90VGFibGV0EgwKBG5hbWUYASABKAkSOwoKdGFibGVfbmFtZRgCIAEo", + "CUIn+kEkCiJiaWd0YWJsZWFkbWluLmdvb2dsZWFwaXMuY29tL1RhYmxlEjMK", + "CnN0YXJ0X3RpbWUYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1w", + "QgPgQQMSMQoIZW5kX3RpbWUYBCABKAsyGi5nb29nbGUucHJvdG9idWYuVGlt", + "ZXN0YW1wQgPgQQMSEQoJc3RhcnRfa2V5GAUgASgJEg8KB2VuZF9rZXkYBiAB", + "KAkSIwoWbm9kZV9jcHVfdXNhZ2VfcGVyY2VudBgHIAEoAkID4EEDOn/qQXwK", + "JmJpZ3RhYmxlYWRtaW4uZ29vZ2xlYXBpcy5jb20vSG90VGFibGV0ElJwcm9q", + "ZWN0cy97cHJvamVjdH0vaW5zdGFuY2VzL3tpbnN0YW5jZX0vY2x1c3RlcnMv", + "e2NsdXN0ZXJ9L2hvdFRhYmxldHMve2hvdF90YWJsZXR9QssCChxjb20uZ29v", + "Z2xlLmJpZ3RhYmxlLmFkbWluLnYyQg1JbnN0YW5jZVByb3RvUAFaOGNsb3Vk", + "Lmdvb2dsZS5jb20vZ28vYmlndGFibGUvYWRtaW4vYXBpdjIvYWRtaW5wYjth", + "ZG1pbnBiqgIeR29vZ2xlLkNsb3VkLkJpZ3RhYmxlLkFkbWluLlYyygIeR29v", + "Z2xlXENsb3VkXEJpZ3RhYmxlXEFkbWluXFYy6gIiR29vZ2xlOjpDbG91ZDo6", + "QmlndGFibGU6OkFkbWluOjpWMupBeAohY2xvdWRrbXMuZ29vZ2xlYXBpcy5j", + "b20vQ3J5cHRvS2V5ElNwcm9qZWN0cy97cHJvamVjdH0vbG9jYXRpb25zL3ts", + "b2NhdGlvbn0va2V5UmluZ3Mve2tleV9yaW5nfS9jcnlwdG9LZXlzL3tjcnlw", + "dG9fa2V5fWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Cloud.Bigtable.Admin.V2.CommonReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.Instance), global::Google.Cloud.Bigtable.Admin.V2.Instance.Parser, new[]{ "Name", "DisplayName", "State", "Type", "Labels", "CreateTime", "SatisfiesPzs" }, new[]{ "SatisfiesPzs" }, new[]{ typeof(global::Google.Cloud.Bigtable.Admin.V2.Instance.Types.State), typeof(global::Google.Cloud.Bigtable.Admin.V2.Instance.Types.Type) }, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.AutoscalingTargets), global::Google.Cloud.Bigtable.Admin.V2.AutoscalingTargets.Parser, new[]{ "CpuUtilizationPercent", "StorageUtilizationGibPerNode" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.AutoscalingLimits), global::Google.Cloud.Bigtable.Admin.V2.AutoscalingLimits.Parser, new[]{ "MinServeNodes", "MaxServeNodes" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.Cluster), global::Google.Cloud.Bigtable.Admin.V2.Cluster.Parser, new[]{ "Name", "Location", "State", "ServeNodes", "NodeScalingFactor", "ClusterConfig", "DefaultStorageType", "EncryptionConfig" }, new[]{ "Config" }, new[]{ typeof(global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.State), typeof(global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.NodeScalingFactor) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.ClusterAutoscalingConfig), global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.ClusterAutoscalingConfig.Parser, new[]{ "AutoscalingLimits", "AutoscalingTargets" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.ClusterConfig), global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.ClusterConfig.Parser, new[]{ "ClusterAutoscalingConfig" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.EncryptionConfig), global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.EncryptionConfig.Parser, new[]{ "KmsKeyName" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.AppProfile), global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Parser, new[]{ "Name", "Etag", "Description", "MultiClusterRoutingUseAny", "SingleClusterRouting", "Priority", "StandardIsolation", "DataBoostIsolationReadOnly" }, new[]{ "RoutingPolicy", "Isolation" }, new[]{ typeof(global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.Priority) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.MultiClusterRoutingUseAny), global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.MultiClusterRoutingUseAny.Parser, new[]{ "ClusterIds", "RowAffinity" }, new[]{ "Affinity" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.MultiClusterRoutingUseAny.Types.RowAffinity), global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.MultiClusterRoutingUseAny.Types.RowAffinity.Parser, null, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.SingleClusterRouting), global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.SingleClusterRouting.Parser, new[]{ "ClusterId", "AllowTransactionalWrites" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.StandardIsolation), global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.StandardIsolation.Parser, new[]{ "Priority" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.DataBoostIsolationReadOnly), global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.DataBoostIsolationReadOnly.Parser, new[]{ "ComputeBillingOwner" }, new[]{ "ComputeBillingOwner" }, new[]{ typeof(global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.DataBoostIsolationReadOnly.Types.ComputeBillingOwner) }, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.HotTablet), global::Google.Cloud.Bigtable.Admin.V2.HotTablet.Parser, new[]{ "Name", "TableName", "StartTime", "EndTime", "StartKey", "EndKey", "NodeCpuUsagePercent" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// A collection of Bigtable [Tables][google.bigtable.admin.v2.Table] and + /// the resources that serve them. + /// All tables in an instance are served from all + /// [Clusters][google.bigtable.admin.v2.Cluster] in the instance. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Instance : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Instance()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.InstanceReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Instance() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Instance(Instance other) : this() { + _hasBits0 = other._hasBits0; + name_ = other.name_; + displayName_ = other.displayName_; + state_ = other.state_; + type_ = other.type_; + labels_ = other.labels_.Clone(); + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + satisfiesPzs_ = other.satisfiesPzs_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Instance Clone() { + return new Instance(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// The unique name of the instance. Values are of the form + /// `projects/{project}/instances/[a-z][a-z0-9\\-]+[a-z0-9]`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "display_name" field. + public const int DisplayNameFieldNumber = 2; + private string displayName_ = ""; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 3; + private global::Google.Cloud.Bigtable.Admin.V2.Instance.Types.State state_ = global::Google.Cloud.Bigtable.Admin.V2.Instance.Types.State.NotKnown; + /// + /// (`OutputOnly`) + /// The current state of the instance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Instance.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 4; + private global::Google.Cloud.Bigtable.Admin.V2.Instance.Types.Type type_ = global::Google.Cloud.Bigtable.Admin.V2.Instance.Types.Type.Unspecified; + /// + /// The type of the instance. Defaults to `PRODUCTION`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Instance.Types.Type Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 5; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 42); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 7; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. A server-assigned timestamp representing when this Instance + /// was created. For instances created before this field was added (August + /// 2021), this value is `seconds: 0, nanos: 1`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "satisfies_pzs" field. + public const int SatisfiesPzsFieldNumber = 8; + private readonly static bool SatisfiesPzsDefaultValue = false; + + private bool satisfiesPzs_; + /// + /// Output only. Reserved for future use. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool SatisfiesPzs { + get { if ((_hasBits0 & 1) != 0) { return satisfiesPzs_; } else { return SatisfiesPzsDefaultValue; } } + set { + _hasBits0 |= 1; + satisfiesPzs_ = value; + } + } + /// Gets whether the "satisfies_pzs" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSatisfiesPzs { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "satisfies_pzs" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSatisfiesPzs() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Instance); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Instance other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (DisplayName != other.DisplayName) return false; + if (State != other.State) return false; + if (Type != other.Type) return false; + if (!Labels.Equals(other.Labels)) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (SatisfiesPzs != other.SatisfiesPzs) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (State != global::Google.Cloud.Bigtable.Admin.V2.Instance.Types.State.NotKnown) hash ^= State.GetHashCode(); + if (Type != global::Google.Cloud.Bigtable.Admin.V2.Instance.Types.Type.Unspecified) hash ^= Type.GetHashCode(); + hash ^= Labels.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (HasSatisfiesPzs) hash ^= SatisfiesPzs.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DisplayName); + } + if (State != global::Google.Cloud.Bigtable.Admin.V2.Instance.Types.State.NotKnown) { + output.WriteRawTag(24); + output.WriteEnum((int) State); + } + if (Type != global::Google.Cloud.Bigtable.Admin.V2.Instance.Types.Type.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) Type); + } + labels_.WriteTo(output, _map_labels_codec); + if (createTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(CreateTime); + } + if (HasSatisfiesPzs) { + output.WriteRawTag(64); + output.WriteBool(SatisfiesPzs); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DisplayName); + } + if (State != global::Google.Cloud.Bigtable.Admin.V2.Instance.Types.State.NotKnown) { + output.WriteRawTag(24); + output.WriteEnum((int) State); + } + if (Type != global::Google.Cloud.Bigtable.Admin.V2.Instance.Types.Type.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) Type); + } + labels_.WriteTo(ref output, _map_labels_codec); + if (createTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(CreateTime); + } + if (HasSatisfiesPzs) { + output.WriteRawTag(64); + output.WriteBool(SatisfiesPzs); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (State != global::Google.Cloud.Bigtable.Admin.V2.Instance.Types.State.NotKnown) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (Type != global::Google.Cloud.Bigtable.Admin.V2.Instance.Types.Type.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + size += labels_.CalculateSize(_map_labels_codec); + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (HasSatisfiesPzs) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Instance other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + if (other.State != global::Google.Cloud.Bigtable.Admin.V2.Instance.Types.State.NotKnown) { + State = other.State; + } + if (other.Type != global::Google.Cloud.Bigtable.Admin.V2.Instance.Types.Type.Unspecified) { + Type = other.Type; + } + labels_.MergeFrom(other.labels_); + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.HasSatisfiesPzs) { + SatisfiesPzs = other.SatisfiesPzs; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + DisplayName = input.ReadString(); + break; + } + case 24: { + State = (global::Google.Cloud.Bigtable.Admin.V2.Instance.Types.State) input.ReadEnum(); + break; + } + case 32: { + Type = (global::Google.Cloud.Bigtable.Admin.V2.Instance.Types.Type) input.ReadEnum(); + break; + } + case 42: { + labels_.AddEntriesFrom(input, _map_labels_codec); + break; + } + case 58: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 64: { + SatisfiesPzs = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + DisplayName = input.ReadString(); + break; + } + case 24: { + State = (global::Google.Cloud.Bigtable.Admin.V2.Instance.Types.State) input.ReadEnum(); + break; + } + case 32: { + Type = (global::Google.Cloud.Bigtable.Admin.V2.Instance.Types.Type) input.ReadEnum(); + break; + } + case 42: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + case 58: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 64: { + SatisfiesPzs = input.ReadBool(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Instance message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Possible states of an instance. + /// + public enum State { + /// + /// The state of the instance could not be determined. + /// + [pbr::OriginalName("STATE_NOT_KNOWN")] NotKnown = 0, + /// + /// The instance has been successfully created and can serve requests + /// to its tables. + /// + [pbr::OriginalName("READY")] Ready = 1, + /// + /// The instance is currently being created, and may be destroyed + /// if the creation process encounters an error. + /// + [pbr::OriginalName("CREATING")] Creating = 2, + } + + /// + /// The type of the instance. + /// + public enum 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. + /// + [pbr::OriginalName("TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// An instance meant for production use. `serve_nodes` must be set + /// on the cluster. + /// + [pbr::OriginalName("PRODUCTION")] Production = 1, + /// + /// DEPRECATED: Prefer PRODUCTION for all use cases, as it no longer enforces + /// a higher minimum node count than DEVELOPMENT. + /// + [pbr::OriginalName("DEVELOPMENT")] Development = 2, + } + + } + #endregion + + } + + /// + /// The Autoscaling targets for a Cluster. These determine the recommended nodes. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AutoscalingTargets : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AutoscalingTargets()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.InstanceReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AutoscalingTargets() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AutoscalingTargets(AutoscalingTargets other) : this() { + cpuUtilizationPercent_ = other.cpuUtilizationPercent_; + storageUtilizationGibPerNode_ = other.storageUtilizationGibPerNode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AutoscalingTargets Clone() { + return new AutoscalingTargets(this); + } + + /// Field number for the "cpu_utilization_percent" field. + public const int CpuUtilizationPercentFieldNumber = 2; + private int cpuUtilizationPercent_; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CpuUtilizationPercent { + get { return cpuUtilizationPercent_; } + set { + cpuUtilizationPercent_ = value; + } + } + + /// Field number for the "storage_utilization_gib_per_node" field. + public const int StorageUtilizationGibPerNodeFieldNumber = 3; + private int storageUtilizationGibPerNode_; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int StorageUtilizationGibPerNode { + get { return storageUtilizationGibPerNode_; } + set { + storageUtilizationGibPerNode_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AutoscalingTargets); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AutoscalingTargets other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (CpuUtilizationPercent != other.CpuUtilizationPercent) return false; + if (StorageUtilizationGibPerNode != other.StorageUtilizationGibPerNode) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (CpuUtilizationPercent != 0) hash ^= CpuUtilizationPercent.GetHashCode(); + if (StorageUtilizationGibPerNode != 0) hash ^= StorageUtilizationGibPerNode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (CpuUtilizationPercent != 0) { + output.WriteRawTag(16); + output.WriteInt32(CpuUtilizationPercent); + } + if (StorageUtilizationGibPerNode != 0) { + output.WriteRawTag(24); + output.WriteInt32(StorageUtilizationGibPerNode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (CpuUtilizationPercent != 0) { + output.WriteRawTag(16); + output.WriteInt32(CpuUtilizationPercent); + } + if (StorageUtilizationGibPerNode != 0) { + output.WriteRawTag(24); + output.WriteInt32(StorageUtilizationGibPerNode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (CpuUtilizationPercent != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CpuUtilizationPercent); + } + if (StorageUtilizationGibPerNode != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(StorageUtilizationGibPerNode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AutoscalingTargets other) { + if (other == null) { + return; + } + if (other.CpuUtilizationPercent != 0) { + CpuUtilizationPercent = other.CpuUtilizationPercent; + } + if (other.StorageUtilizationGibPerNode != 0) { + StorageUtilizationGibPerNode = other.StorageUtilizationGibPerNode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 16: { + CpuUtilizationPercent = input.ReadInt32(); + break; + } + case 24: { + StorageUtilizationGibPerNode = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + CpuUtilizationPercent = input.ReadInt32(); + break; + } + case 24: { + StorageUtilizationGibPerNode = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + /// + /// Limits for the number of nodes a Cluster can autoscale up/down to. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AutoscalingLimits : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AutoscalingLimits()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.InstanceReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AutoscalingLimits() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AutoscalingLimits(AutoscalingLimits other) : this() { + minServeNodes_ = other.minServeNodes_; + maxServeNodes_ = other.maxServeNodes_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AutoscalingLimits Clone() { + return new AutoscalingLimits(this); + } + + /// Field number for the "min_serve_nodes" field. + public const int MinServeNodesFieldNumber = 1; + private int minServeNodes_; + /// + /// Required. Minimum number of nodes to scale down to. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MinServeNodes { + get { return minServeNodes_; } + set { + minServeNodes_ = value; + } + } + + /// Field number for the "max_serve_nodes" field. + public const int MaxServeNodesFieldNumber = 2; + private int maxServeNodes_; + /// + /// Required. Maximum number of nodes to scale up to. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaxServeNodes { + get { return maxServeNodes_; } + set { + maxServeNodes_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AutoscalingLimits); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AutoscalingLimits other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MinServeNodes != other.MinServeNodes) return false; + if (MaxServeNodes != other.MaxServeNodes) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (MinServeNodes != 0) hash ^= MinServeNodes.GetHashCode(); + if (MaxServeNodes != 0) hash ^= MaxServeNodes.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (MinServeNodes != 0) { + output.WriteRawTag(8); + output.WriteInt32(MinServeNodes); + } + if (MaxServeNodes != 0) { + output.WriteRawTag(16); + output.WriteInt32(MaxServeNodes); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (MinServeNodes != 0) { + output.WriteRawTag(8); + output.WriteInt32(MinServeNodes); + } + if (MaxServeNodes != 0) { + output.WriteRawTag(16); + output.WriteInt32(MaxServeNodes); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (MinServeNodes != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MinServeNodes); + } + if (MaxServeNodes != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxServeNodes); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AutoscalingLimits other) { + if (other == null) { + return; + } + if (other.MinServeNodes != 0) { + MinServeNodes = other.MinServeNodes; + } + if (other.MaxServeNodes != 0) { + MaxServeNodes = other.MaxServeNodes; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + MinServeNodes = input.ReadInt32(); + break; + } + case 16: { + MaxServeNodes = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + MinServeNodes = input.ReadInt32(); + break; + } + case 16: { + MaxServeNodes = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + /// + /// A resizable group of nodes in a particular cloud location, capable + /// of serving all [Tables][google.bigtable.admin.v2.Table] in the parent + /// [Instance][google.bigtable.admin.v2.Instance]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Cluster : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Cluster()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.InstanceReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Cluster() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Cluster(Cluster other) : this() { + name_ = other.name_; + location_ = other.location_; + state_ = other.state_; + serveNodes_ = other.serveNodes_; + nodeScalingFactor_ = other.nodeScalingFactor_; + defaultStorageType_ = other.defaultStorageType_; + encryptionConfig_ = other.encryptionConfig_ != null ? other.encryptionConfig_.Clone() : null; + switch (other.ConfigCase) { + case ConfigOneofCase.ClusterConfig: + ClusterConfig = other.ClusterConfig.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Cluster Clone() { + return new Cluster(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// The unique name of the cluster. Values are of the form + /// `projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "location" field. + public const int LocationFieldNumber = 2; + private 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}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Location { + get { return location_; } + set { + location_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 3; + private global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.State state_ = global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.State.NotKnown; + /// + /// Output only. The current state of the cluster. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "serve_nodes" field. + public const int ServeNodesFieldNumber = 4; + private int serveNodes_; + /// + /// The number of nodes allocated to this cluster. More nodes enable higher + /// throughput and more consistent performance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ServeNodes { + get { return serveNodes_; } + set { + serveNodes_ = value; + } + } + + /// Field number for the "node_scaling_factor" field. + public const int NodeScalingFactorFieldNumber = 9; + private global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.NodeScalingFactor nodeScalingFactor_ = global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.NodeScalingFactor.Unspecified; + /// + /// Immutable. The node scaling factor of this cluster. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.NodeScalingFactor NodeScalingFactor { + get { return nodeScalingFactor_; } + set { + nodeScalingFactor_ = value; + } + } + + /// Field number for the "cluster_config" field. + public const int ClusterConfigFieldNumber = 7; + /// + /// Configuration for this cluster. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.ClusterConfig ClusterConfig { + get { return configCase_ == ConfigOneofCase.ClusterConfig ? (global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.ClusterConfig) config_ : null; } + set { + config_ = value; + configCase_ = value == null ? ConfigOneofCase.None : ConfigOneofCase.ClusterConfig; + } + } + + /// Field number for the "default_storage_type" field. + public const int DefaultStorageTypeFieldNumber = 5; + private global::Google.Cloud.Bigtable.Admin.V2.StorageType defaultStorageType_ = global::Google.Cloud.Bigtable.Admin.V2.StorageType.Unspecified; + /// + /// Immutable. The type of storage used by this cluster to serve its + /// parent instance's tables, unless explicitly overridden. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.StorageType DefaultStorageType { + get { return defaultStorageType_; } + set { + defaultStorageType_ = value; + } + } + + /// Field number for the "encryption_config" field. + public const int EncryptionConfigFieldNumber = 6; + private global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.EncryptionConfig encryptionConfig_; + /// + /// Immutable. The encryption configuration for CMEK-protected clusters. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.EncryptionConfig EncryptionConfig { + get { return encryptionConfig_; } + set { + encryptionConfig_ = value; + } + } + + private object config_; + /// Enum of possible cases for the "config" oneof. + public enum ConfigOneofCase { + None = 0, + ClusterConfig = 7, + } + private ConfigOneofCase configCase_ = ConfigOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConfigOneofCase ConfigCase { + get { return configCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearConfig() { + configCase_ = ConfigOneofCase.None; + config_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Cluster); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Cluster other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Location != other.Location) return false; + if (State != other.State) return false; + if (ServeNodes != other.ServeNodes) return false; + if (NodeScalingFactor != other.NodeScalingFactor) return false; + if (!object.Equals(ClusterConfig, other.ClusterConfig)) return false; + if (DefaultStorageType != other.DefaultStorageType) return false; + if (!object.Equals(EncryptionConfig, other.EncryptionConfig)) return false; + if (ConfigCase != other.ConfigCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Location.Length != 0) hash ^= Location.GetHashCode(); + if (State != global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.State.NotKnown) hash ^= State.GetHashCode(); + if (ServeNodes != 0) hash ^= ServeNodes.GetHashCode(); + if (NodeScalingFactor != global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.NodeScalingFactor.Unspecified) hash ^= NodeScalingFactor.GetHashCode(); + if (configCase_ == ConfigOneofCase.ClusterConfig) hash ^= ClusterConfig.GetHashCode(); + if (DefaultStorageType != global::Google.Cloud.Bigtable.Admin.V2.StorageType.Unspecified) hash ^= DefaultStorageType.GetHashCode(); + if (encryptionConfig_ != null) hash ^= EncryptionConfig.GetHashCode(); + hash ^= (int) configCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Location.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Location); + } + if (State != global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.State.NotKnown) { + output.WriteRawTag(24); + output.WriteEnum((int) State); + } + if (ServeNodes != 0) { + output.WriteRawTag(32); + output.WriteInt32(ServeNodes); + } + if (DefaultStorageType != global::Google.Cloud.Bigtable.Admin.V2.StorageType.Unspecified) { + output.WriteRawTag(40); + output.WriteEnum((int) DefaultStorageType); + } + if (encryptionConfig_ != null) { + output.WriteRawTag(50); + output.WriteMessage(EncryptionConfig); + } + if (configCase_ == ConfigOneofCase.ClusterConfig) { + output.WriteRawTag(58); + output.WriteMessage(ClusterConfig); + } + if (NodeScalingFactor != global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.NodeScalingFactor.Unspecified) { + output.WriteRawTag(72); + output.WriteEnum((int) NodeScalingFactor); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Location.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Location); + } + if (State != global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.State.NotKnown) { + output.WriteRawTag(24); + output.WriteEnum((int) State); + } + if (ServeNodes != 0) { + output.WriteRawTag(32); + output.WriteInt32(ServeNodes); + } + if (DefaultStorageType != global::Google.Cloud.Bigtable.Admin.V2.StorageType.Unspecified) { + output.WriteRawTag(40); + output.WriteEnum((int) DefaultStorageType); + } + if (encryptionConfig_ != null) { + output.WriteRawTag(50); + output.WriteMessage(EncryptionConfig); + } + if (configCase_ == ConfigOneofCase.ClusterConfig) { + output.WriteRawTag(58); + output.WriteMessage(ClusterConfig); + } + if (NodeScalingFactor != global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.NodeScalingFactor.Unspecified) { + output.WriteRawTag(72); + output.WriteEnum((int) NodeScalingFactor); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Location.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Location); + } + if (State != global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.State.NotKnown) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (ServeNodes != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ServeNodes); + } + if (NodeScalingFactor != global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.NodeScalingFactor.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) NodeScalingFactor); + } + if (configCase_ == ConfigOneofCase.ClusterConfig) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClusterConfig); + } + if (DefaultStorageType != global::Google.Cloud.Bigtable.Admin.V2.StorageType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DefaultStorageType); + } + if (encryptionConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EncryptionConfig); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Cluster other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Location.Length != 0) { + Location = other.Location; + } + if (other.State != global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.State.NotKnown) { + State = other.State; + } + if (other.ServeNodes != 0) { + ServeNodes = other.ServeNodes; + } + if (other.NodeScalingFactor != global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.NodeScalingFactor.Unspecified) { + NodeScalingFactor = other.NodeScalingFactor; + } + if (other.DefaultStorageType != global::Google.Cloud.Bigtable.Admin.V2.StorageType.Unspecified) { + DefaultStorageType = other.DefaultStorageType; + } + if (other.encryptionConfig_ != null) { + if (encryptionConfig_ == null) { + EncryptionConfig = new global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.EncryptionConfig(); + } + EncryptionConfig.MergeFrom(other.EncryptionConfig); + } + switch (other.ConfigCase) { + case ConfigOneofCase.ClusterConfig: + if (ClusterConfig == null) { + ClusterConfig = new global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.ClusterConfig(); + } + ClusterConfig.MergeFrom(other.ClusterConfig); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Location = input.ReadString(); + break; + } + case 24: { + State = (global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.State) input.ReadEnum(); + break; + } + case 32: { + ServeNodes = input.ReadInt32(); + break; + } + case 40: { + DefaultStorageType = (global::Google.Cloud.Bigtable.Admin.V2.StorageType) input.ReadEnum(); + break; + } + case 50: { + if (encryptionConfig_ == null) { + EncryptionConfig = new global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.EncryptionConfig(); + } + input.ReadMessage(EncryptionConfig); + break; + } + case 58: { + global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.ClusterConfig subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.ClusterConfig(); + if (configCase_ == ConfigOneofCase.ClusterConfig) { + subBuilder.MergeFrom(ClusterConfig); + } + input.ReadMessage(subBuilder); + ClusterConfig = subBuilder; + break; + } + case 72: { + NodeScalingFactor = (global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.NodeScalingFactor) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Location = input.ReadString(); + break; + } + case 24: { + State = (global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.State) input.ReadEnum(); + break; + } + case 32: { + ServeNodes = input.ReadInt32(); + break; + } + case 40: { + DefaultStorageType = (global::Google.Cloud.Bigtable.Admin.V2.StorageType) input.ReadEnum(); + break; + } + case 50: { + if (encryptionConfig_ == null) { + EncryptionConfig = new global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.EncryptionConfig(); + } + input.ReadMessage(EncryptionConfig); + break; + } + case 58: { + global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.ClusterConfig subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.ClusterConfig(); + if (configCase_ == ConfigOneofCase.ClusterConfig) { + subBuilder.MergeFrom(ClusterConfig); + } + input.ReadMessage(subBuilder); + ClusterConfig = subBuilder; + break; + } + case 72: { + NodeScalingFactor = (global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.NodeScalingFactor) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Cluster message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Possible states of a cluster. + /// + public enum State { + /// + /// The state of the cluster could not be determined. + /// + [pbr::OriginalName("STATE_NOT_KNOWN")] NotKnown = 0, + /// + /// The cluster has been successfully created and is ready to serve requests. + /// + [pbr::OriginalName("READY")] 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. + /// + [pbr::OriginalName("CREATING")] 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. + /// + [pbr::OriginalName("RESIZING")] Resizing = 3, + /// + /// The cluster has no backing nodes. The data (tables) still + /// exist, but no operations can be performed on the cluster. + /// + [pbr::OriginalName("DISABLED")] Disabled = 4, + } + + /// + /// Possible node scaling factors of the clusters. Node scaling delivers better + /// latency and more throughput by removing node boundaries. + /// + public enum NodeScalingFactor { + /// + /// No node scaling specified. Defaults to NODE_SCALING_FACTOR_1X. + /// + [pbr::OriginalName("NODE_SCALING_FACTOR_UNSPECIFIED")] Unspecified = 0, + /// + /// The cluster is running with a scaling factor of 1. + /// + [pbr::OriginalName("NODE_SCALING_FACTOR_1X")] _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. + /// + [pbr::OriginalName("NODE_SCALING_FACTOR_2X")] _2X = 2, + } + + /// + /// Autoscaling config for a cluster. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ClusterAutoscalingConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClusterAutoscalingConfig()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.Cluster.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClusterAutoscalingConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClusterAutoscalingConfig(ClusterAutoscalingConfig other) : this() { + autoscalingLimits_ = other.autoscalingLimits_ != null ? other.autoscalingLimits_.Clone() : null; + autoscalingTargets_ = other.autoscalingTargets_ != null ? other.autoscalingTargets_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClusterAutoscalingConfig Clone() { + return new ClusterAutoscalingConfig(this); + } + + /// Field number for the "autoscaling_limits" field. + public const int AutoscalingLimitsFieldNumber = 1; + private global::Google.Cloud.Bigtable.Admin.V2.AutoscalingLimits autoscalingLimits_; + /// + /// Required. Autoscaling limits for this cluster. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.AutoscalingLimits AutoscalingLimits { + get { return autoscalingLimits_; } + set { + autoscalingLimits_ = value; + } + } + + /// Field number for the "autoscaling_targets" field. + public const int AutoscalingTargetsFieldNumber = 2; + private global::Google.Cloud.Bigtable.Admin.V2.AutoscalingTargets autoscalingTargets_; + /// + /// Required. Autoscaling targets for this cluster. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.AutoscalingTargets AutoscalingTargets { + get { return autoscalingTargets_; } + set { + autoscalingTargets_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ClusterAutoscalingConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ClusterAutoscalingConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AutoscalingLimits, other.AutoscalingLimits)) return false; + if (!object.Equals(AutoscalingTargets, other.AutoscalingTargets)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (autoscalingLimits_ != null) hash ^= AutoscalingLimits.GetHashCode(); + if (autoscalingTargets_ != null) hash ^= AutoscalingTargets.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (autoscalingLimits_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AutoscalingLimits); + } + if (autoscalingTargets_ != null) { + output.WriteRawTag(18); + output.WriteMessage(AutoscalingTargets); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (autoscalingLimits_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AutoscalingLimits); + } + if (autoscalingTargets_ != null) { + output.WriteRawTag(18); + output.WriteMessage(AutoscalingTargets); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (autoscalingLimits_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AutoscalingLimits); + } + if (autoscalingTargets_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AutoscalingTargets); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ClusterAutoscalingConfig other) { + if (other == null) { + return; + } + if (other.autoscalingLimits_ != null) { + if (autoscalingLimits_ == null) { + AutoscalingLimits = new global::Google.Cloud.Bigtable.Admin.V2.AutoscalingLimits(); + } + AutoscalingLimits.MergeFrom(other.AutoscalingLimits); + } + if (other.autoscalingTargets_ != null) { + if (autoscalingTargets_ == null) { + AutoscalingTargets = new global::Google.Cloud.Bigtable.Admin.V2.AutoscalingTargets(); + } + AutoscalingTargets.MergeFrom(other.AutoscalingTargets); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (autoscalingLimits_ == null) { + AutoscalingLimits = new global::Google.Cloud.Bigtable.Admin.V2.AutoscalingLimits(); + } + input.ReadMessage(AutoscalingLimits); + break; + } + case 18: { + if (autoscalingTargets_ == null) { + AutoscalingTargets = new global::Google.Cloud.Bigtable.Admin.V2.AutoscalingTargets(); + } + input.ReadMessage(AutoscalingTargets); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (autoscalingLimits_ == null) { + AutoscalingLimits = new global::Google.Cloud.Bigtable.Admin.V2.AutoscalingLimits(); + } + input.ReadMessage(AutoscalingLimits); + break; + } + case 18: { + if (autoscalingTargets_ == null) { + AutoscalingTargets = new global::Google.Cloud.Bigtable.Admin.V2.AutoscalingTargets(); + } + input.ReadMessage(AutoscalingTargets); + break; + } + } + } + } + #endif + + } + + /// + /// Configuration for a cluster. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ClusterConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClusterConfig()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.Cluster.Descriptor.NestedTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClusterConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClusterConfig(ClusterConfig other) : this() { + clusterAutoscalingConfig_ = other.clusterAutoscalingConfig_ != null ? other.clusterAutoscalingConfig_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClusterConfig Clone() { + return new ClusterConfig(this); + } + + /// Field number for the "cluster_autoscaling_config" field. + public const int ClusterAutoscalingConfigFieldNumber = 1; + private global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.ClusterAutoscalingConfig clusterAutoscalingConfig_; + /// + /// Autoscaling configuration for this cluster. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.ClusterAutoscalingConfig ClusterAutoscalingConfig { + get { return clusterAutoscalingConfig_; } + set { + clusterAutoscalingConfig_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ClusterConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ClusterConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ClusterAutoscalingConfig, other.ClusterAutoscalingConfig)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (clusterAutoscalingConfig_ != null) hash ^= ClusterAutoscalingConfig.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (clusterAutoscalingConfig_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ClusterAutoscalingConfig); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (clusterAutoscalingConfig_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ClusterAutoscalingConfig); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (clusterAutoscalingConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClusterAutoscalingConfig); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ClusterConfig other) { + if (other == null) { + return; + } + if (other.clusterAutoscalingConfig_ != null) { + if (clusterAutoscalingConfig_ == null) { + ClusterAutoscalingConfig = new global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.ClusterAutoscalingConfig(); + } + ClusterAutoscalingConfig.MergeFrom(other.ClusterAutoscalingConfig); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (clusterAutoscalingConfig_ == null) { + ClusterAutoscalingConfig = new global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.ClusterAutoscalingConfig(); + } + input.ReadMessage(ClusterAutoscalingConfig); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (clusterAutoscalingConfig_ == null) { + ClusterAutoscalingConfig = new global::Google.Cloud.Bigtable.Admin.V2.Cluster.Types.ClusterAutoscalingConfig(); + } + input.ReadMessage(ClusterAutoscalingConfig); + break; + } + } + } + } + #endif + + } + + /// + /// Cloud Key Management Service (Cloud KMS) settings for a CMEK-protected + /// cluster. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EncryptionConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EncryptionConfig()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.Cluster.Descriptor.NestedTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EncryptionConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EncryptionConfig(EncryptionConfig other) : this() { + kmsKeyName_ = other.kmsKeyName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EncryptionConfig Clone() { + return new EncryptionConfig(this); + } + + /// Field number for the "kms_key_name" field. + public const int KmsKeyNameFieldNumber = 1; + private string kmsKeyName_ = ""; + /// + /// 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. + /// 3) All clusters within an instance must use the same CMEK key. + /// Values are of the form + /// `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string KmsKeyName { + get { return kmsKeyName_; } + set { + kmsKeyName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EncryptionConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EncryptionConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (KmsKeyName != other.KmsKeyName) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (KmsKeyName.Length != 0) hash ^= KmsKeyName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (KmsKeyName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(KmsKeyName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (KmsKeyName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(KmsKeyName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (KmsKeyName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(KmsKeyName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EncryptionConfig other) { + if (other == null) { + return; + } + if (other.KmsKeyName.Length != 0) { + KmsKeyName = other.KmsKeyName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + KmsKeyName = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + KmsKeyName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// A configuration object describing how Cloud Bigtable should treat traffic + /// from a particular end user application. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AppProfile : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppProfile()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.InstanceReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppProfile() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppProfile(AppProfile other) : this() { + name_ = other.name_; + etag_ = other.etag_; + description_ = other.description_; + switch (other.RoutingPolicyCase) { + case RoutingPolicyOneofCase.MultiClusterRoutingUseAny: + MultiClusterRoutingUseAny = other.MultiClusterRoutingUseAny.Clone(); + break; + case RoutingPolicyOneofCase.SingleClusterRouting: + SingleClusterRouting = other.SingleClusterRouting.Clone(); + break; + } + + switch (other.IsolationCase) { + case IsolationOneofCase.Priority: + Priority = other.Priority; + break; + case IsolationOneofCase.StandardIsolation: + StandardIsolation = other.StandardIsolation.Clone(); + break; + case IsolationOneofCase.DataBoostIsolationReadOnly: + DataBoostIsolationReadOnly = other.DataBoostIsolationReadOnly.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppProfile Clone() { + return new AppProfile(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private 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]*`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "etag" field. + public const int EtagFieldNumber = 2; + private 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Etag { + get { return etag_; } + set { + etag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 3; + private string description_ = ""; + /// + /// Long form description of the use case for this AppProfile. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "multi_cluster_routing_use_any" field. + public const int MultiClusterRoutingUseAnyFieldNumber = 5; + /// + /// Use a multi-cluster routing policy. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.MultiClusterRoutingUseAny MultiClusterRoutingUseAny { + get { return routingPolicyCase_ == RoutingPolicyOneofCase.MultiClusterRoutingUseAny ? (global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.MultiClusterRoutingUseAny) routingPolicy_ : null; } + set { + routingPolicy_ = value; + routingPolicyCase_ = value == null ? RoutingPolicyOneofCase.None : RoutingPolicyOneofCase.MultiClusterRoutingUseAny; + } + } + + /// Field number for the "single_cluster_routing" field. + public const int SingleClusterRoutingFieldNumber = 6; + /// + /// Use a single-cluster routing policy. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.SingleClusterRouting SingleClusterRouting { + get { return routingPolicyCase_ == RoutingPolicyOneofCase.SingleClusterRouting ? (global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.SingleClusterRouting) routingPolicy_ : null; } + set { + routingPolicy_ = value; + routingPolicyCase_ = value == null ? RoutingPolicyOneofCase.None : RoutingPolicyOneofCase.SingleClusterRouting; + } + } + + /// Field number for the "priority" field. + public const int PriorityFieldNumber = 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. + /// + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.Priority Priority { + get { return HasPriority ? (global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.Priority) isolation_ : global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.Priority.Unspecified; } + set { + isolation_ = value; + isolationCase_ = IsolationOneofCase.Priority; + } + } + /// Gets whether the "priority" field is set + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPriority { + get { return isolationCase_ == IsolationOneofCase.Priority; } + } + /// Clears the value of the oneof if it's currently set to "priority" + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPriority() { + if (HasPriority) { + ClearIsolation(); + } + } + + /// Field number for the "standard_isolation" field. + public const int StandardIsolationFieldNumber = 11; + /// + /// The standard options used for isolating this app profile's traffic from + /// other use cases. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.StandardIsolation StandardIsolation { + get { return isolationCase_ == IsolationOneofCase.StandardIsolation ? (global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.StandardIsolation) isolation_ : null; } + set { + isolation_ = value; + isolationCase_ = value == null ? IsolationOneofCase.None : IsolationOneofCase.StandardIsolation; + } + } + + /// Field number for the "data_boost_isolation_read_only" field. + public const int DataBoostIsolationReadOnlyFieldNumber = 10; + /// + /// Specifies that this app profile is intended for read-only usage via the + /// Data Boost feature. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.DataBoostIsolationReadOnly DataBoostIsolationReadOnly { + get { return isolationCase_ == IsolationOneofCase.DataBoostIsolationReadOnly ? (global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.DataBoostIsolationReadOnly) isolation_ : null; } + set { + isolation_ = value; + isolationCase_ = value == null ? IsolationOneofCase.None : IsolationOneofCase.DataBoostIsolationReadOnly; + } + } + + private object routingPolicy_; + /// Enum of possible cases for the "routing_policy" oneof. + public enum RoutingPolicyOneofCase { + None = 0, + MultiClusterRoutingUseAny = 5, + SingleClusterRouting = 6, + } + private RoutingPolicyOneofCase routingPolicyCase_ = RoutingPolicyOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoutingPolicyOneofCase RoutingPolicyCase { + get { return routingPolicyCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRoutingPolicy() { + routingPolicyCase_ = RoutingPolicyOneofCase.None; + routingPolicy_ = null; + } + + private object isolation_; + /// Enum of possible cases for the "isolation" oneof. + public enum IsolationOneofCase { + None = 0, + Priority = 7, + StandardIsolation = 11, + DataBoostIsolationReadOnly = 10, + } + private IsolationOneofCase isolationCase_ = IsolationOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public IsolationOneofCase IsolationCase { + get { return isolationCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIsolation() { + isolationCase_ = IsolationOneofCase.None; + isolation_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AppProfile); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppProfile other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Etag != other.Etag) return false; + if (Description != other.Description) return false; + if (!object.Equals(MultiClusterRoutingUseAny, other.MultiClusterRoutingUseAny)) return false; + if (!object.Equals(SingleClusterRouting, other.SingleClusterRouting)) return false; + if (Priority != other.Priority) return false; + if (!object.Equals(StandardIsolation, other.StandardIsolation)) return false; + if (!object.Equals(DataBoostIsolationReadOnly, other.DataBoostIsolationReadOnly)) return false; + if (RoutingPolicyCase != other.RoutingPolicyCase) return false; + if (IsolationCase != other.IsolationCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Etag.Length != 0) hash ^= Etag.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (routingPolicyCase_ == RoutingPolicyOneofCase.MultiClusterRoutingUseAny) hash ^= MultiClusterRoutingUseAny.GetHashCode(); + if (routingPolicyCase_ == RoutingPolicyOneofCase.SingleClusterRouting) hash ^= SingleClusterRouting.GetHashCode(); + if (HasPriority) hash ^= Priority.GetHashCode(); + if (isolationCase_ == IsolationOneofCase.StandardIsolation) hash ^= StandardIsolation.GetHashCode(); + if (isolationCase_ == IsolationOneofCase.DataBoostIsolationReadOnly) hash ^= DataBoostIsolationReadOnly.GetHashCode(); + hash ^= (int) routingPolicyCase_; + hash ^= (int) isolationCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Etag.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Etag); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + if (routingPolicyCase_ == RoutingPolicyOneofCase.MultiClusterRoutingUseAny) { + output.WriteRawTag(42); + output.WriteMessage(MultiClusterRoutingUseAny); + } + if (routingPolicyCase_ == RoutingPolicyOneofCase.SingleClusterRouting) { + output.WriteRawTag(50); + output.WriteMessage(SingleClusterRouting); + } + if (HasPriority) { + output.WriteRawTag(56); + output.WriteEnum((int) Priority); + } + if (isolationCase_ == IsolationOneofCase.DataBoostIsolationReadOnly) { + output.WriteRawTag(82); + output.WriteMessage(DataBoostIsolationReadOnly); + } + if (isolationCase_ == IsolationOneofCase.StandardIsolation) { + output.WriteRawTag(90); + output.WriteMessage(StandardIsolation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Etag.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Etag); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + if (routingPolicyCase_ == RoutingPolicyOneofCase.MultiClusterRoutingUseAny) { + output.WriteRawTag(42); + output.WriteMessage(MultiClusterRoutingUseAny); + } + if (routingPolicyCase_ == RoutingPolicyOneofCase.SingleClusterRouting) { + output.WriteRawTag(50); + output.WriteMessage(SingleClusterRouting); + } + if (HasPriority) { + output.WriteRawTag(56); + output.WriteEnum((int) Priority); + } + if (isolationCase_ == IsolationOneofCase.DataBoostIsolationReadOnly) { + output.WriteRawTag(82); + output.WriteMessage(DataBoostIsolationReadOnly); + } + if (isolationCase_ == IsolationOneofCase.StandardIsolation) { + output.WriteRawTag(90); + output.WriteMessage(StandardIsolation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Etag.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Etag); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (routingPolicyCase_ == RoutingPolicyOneofCase.MultiClusterRoutingUseAny) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MultiClusterRoutingUseAny); + } + if (routingPolicyCase_ == RoutingPolicyOneofCase.SingleClusterRouting) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SingleClusterRouting); + } + if (HasPriority) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Priority); + } + if (isolationCase_ == IsolationOneofCase.StandardIsolation) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StandardIsolation); + } + if (isolationCase_ == IsolationOneofCase.DataBoostIsolationReadOnly) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DataBoostIsolationReadOnly); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppProfile other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Etag.Length != 0) { + Etag = other.Etag; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + switch (other.RoutingPolicyCase) { + case RoutingPolicyOneofCase.MultiClusterRoutingUseAny: + if (MultiClusterRoutingUseAny == null) { + MultiClusterRoutingUseAny = new global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.MultiClusterRoutingUseAny(); + } + MultiClusterRoutingUseAny.MergeFrom(other.MultiClusterRoutingUseAny); + break; + case RoutingPolicyOneofCase.SingleClusterRouting: + if (SingleClusterRouting == null) { + SingleClusterRouting = new global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.SingleClusterRouting(); + } + SingleClusterRouting.MergeFrom(other.SingleClusterRouting); + break; + } + + switch (other.IsolationCase) { + case IsolationOneofCase.Priority: + Priority = other.Priority; + break; + case IsolationOneofCase.StandardIsolation: + if (StandardIsolation == null) { + StandardIsolation = new global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.StandardIsolation(); + } + StandardIsolation.MergeFrom(other.StandardIsolation); + break; + case IsolationOneofCase.DataBoostIsolationReadOnly: + if (DataBoostIsolationReadOnly == null) { + DataBoostIsolationReadOnly = new global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.DataBoostIsolationReadOnly(); + } + DataBoostIsolationReadOnly.MergeFrom(other.DataBoostIsolationReadOnly); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Etag = input.ReadString(); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 42: { + global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.MultiClusterRoutingUseAny subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.MultiClusterRoutingUseAny(); + if (routingPolicyCase_ == RoutingPolicyOneofCase.MultiClusterRoutingUseAny) { + subBuilder.MergeFrom(MultiClusterRoutingUseAny); + } + input.ReadMessage(subBuilder); + MultiClusterRoutingUseAny = subBuilder; + break; + } + case 50: { + global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.SingleClusterRouting subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.SingleClusterRouting(); + if (routingPolicyCase_ == RoutingPolicyOneofCase.SingleClusterRouting) { + subBuilder.MergeFrom(SingleClusterRouting); + } + input.ReadMessage(subBuilder); + SingleClusterRouting = subBuilder; + break; + } + case 56: { + isolation_ = input.ReadEnum(); + isolationCase_ = IsolationOneofCase.Priority; + break; + } + case 82: { + global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.DataBoostIsolationReadOnly subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.DataBoostIsolationReadOnly(); + if (isolationCase_ == IsolationOneofCase.DataBoostIsolationReadOnly) { + subBuilder.MergeFrom(DataBoostIsolationReadOnly); + } + input.ReadMessage(subBuilder); + DataBoostIsolationReadOnly = subBuilder; + break; + } + case 90: { + global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.StandardIsolation subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.StandardIsolation(); + if (isolationCase_ == IsolationOneofCase.StandardIsolation) { + subBuilder.MergeFrom(StandardIsolation); + } + input.ReadMessage(subBuilder); + StandardIsolation = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Etag = input.ReadString(); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + case 42: { + global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.MultiClusterRoutingUseAny subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.MultiClusterRoutingUseAny(); + if (routingPolicyCase_ == RoutingPolicyOneofCase.MultiClusterRoutingUseAny) { + subBuilder.MergeFrom(MultiClusterRoutingUseAny); + } + input.ReadMessage(subBuilder); + MultiClusterRoutingUseAny = subBuilder; + break; + } + case 50: { + global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.SingleClusterRouting subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.SingleClusterRouting(); + if (routingPolicyCase_ == RoutingPolicyOneofCase.SingleClusterRouting) { + subBuilder.MergeFrom(SingleClusterRouting); + } + input.ReadMessage(subBuilder); + SingleClusterRouting = subBuilder; + break; + } + case 56: { + isolation_ = input.ReadEnum(); + isolationCase_ = IsolationOneofCase.Priority; + break; + } + case 82: { + global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.DataBoostIsolationReadOnly subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.DataBoostIsolationReadOnly(); + if (isolationCase_ == IsolationOneofCase.DataBoostIsolationReadOnly) { + subBuilder.MergeFrom(DataBoostIsolationReadOnly); + } + input.ReadMessage(subBuilder); + DataBoostIsolationReadOnly = subBuilder; + break; + } + case 90: { + global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.StandardIsolation subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.StandardIsolation(); + if (isolationCase_ == IsolationOneofCase.StandardIsolation) { + subBuilder.MergeFrom(StandardIsolation); + } + input.ReadMessage(subBuilder); + StandardIsolation = subBuilder; + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the AppProfile message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Possible priorities for an app profile. Note that higher priority writes + /// can sometimes queue behind lower priority writes to the same tablet, as + /// writes must be strictly sequenced in the durability log. + /// + public enum Priority { + /// + /// Default value. Mapped to PRIORITY_HIGH (the legacy behavior) on creation. + /// + [pbr::OriginalName("PRIORITY_UNSPECIFIED")] Unspecified = 0, + [pbr::OriginalName("PRIORITY_LOW")] Low = 1, + [pbr::OriginalName("PRIORITY_MEDIUM")] Medium = 2, + [pbr::OriginalName("PRIORITY_HIGH")] High = 3, + } + + /// + /// Read/write requests are routed to the nearest cluster in the instance, and + /// will fail over to the nearest cluster that is available in the event of + /// transient errors or delays. Clusters in a region are considered + /// equidistant. Choosing this option sacrifices read-your-writes consistency + /// to improve availability. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MultiClusterRoutingUseAny : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MultiClusterRoutingUseAny()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MultiClusterRoutingUseAny() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MultiClusterRoutingUseAny(MultiClusterRoutingUseAny other) : this() { + clusterIds_ = other.clusterIds_.Clone(); + switch (other.AffinityCase) { + case AffinityOneofCase.RowAffinity: + RowAffinity = other.RowAffinity.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MultiClusterRoutingUseAny Clone() { + return new MultiClusterRoutingUseAny(this); + } + + /// Field number for the "cluster_ids" field. + public const int ClusterIdsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_clusterIds_codec + = pb::FieldCodec.ForString(10); + private readonly pbc::RepeatedField clusterIds_ = new pbc::RepeatedField(); + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ClusterIds { + get { return clusterIds_; } + } + + /// Field number for the "row_affinity" field. + public const int RowAffinityFieldNumber = 3; + /// + /// Row affinity sticky routing based on the row key of the request. + /// Requests that span multiple rows are routed non-deterministically. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.MultiClusterRoutingUseAny.Types.RowAffinity RowAffinity { + get { return affinityCase_ == AffinityOneofCase.RowAffinity ? (global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.MultiClusterRoutingUseAny.Types.RowAffinity) affinity_ : null; } + set { + affinity_ = value; + affinityCase_ = value == null ? AffinityOneofCase.None : AffinityOneofCase.RowAffinity; + } + } + + private object affinity_; + /// Enum of possible cases for the "affinity" oneof. + public enum AffinityOneofCase { + None = 0, + RowAffinity = 3, + } + private AffinityOneofCase affinityCase_ = AffinityOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AffinityOneofCase AffinityCase { + get { return affinityCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAffinity() { + affinityCase_ = AffinityOneofCase.None; + affinity_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MultiClusterRoutingUseAny); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MultiClusterRoutingUseAny other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!clusterIds_.Equals(other.clusterIds_)) return false; + if (!object.Equals(RowAffinity, other.RowAffinity)) return false; + if (AffinityCase != other.AffinityCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= clusterIds_.GetHashCode(); + if (affinityCase_ == AffinityOneofCase.RowAffinity) hash ^= RowAffinity.GetHashCode(); + hash ^= (int) affinityCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + clusterIds_.WriteTo(output, _repeated_clusterIds_codec); + if (affinityCase_ == AffinityOneofCase.RowAffinity) { + output.WriteRawTag(26); + output.WriteMessage(RowAffinity); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + clusterIds_.WriteTo(ref output, _repeated_clusterIds_codec); + if (affinityCase_ == AffinityOneofCase.RowAffinity) { + output.WriteRawTag(26); + output.WriteMessage(RowAffinity); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += clusterIds_.CalculateSize(_repeated_clusterIds_codec); + if (affinityCase_ == AffinityOneofCase.RowAffinity) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RowAffinity); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MultiClusterRoutingUseAny other) { + if (other == null) { + return; + } + clusterIds_.Add(other.clusterIds_); + switch (other.AffinityCase) { + case AffinityOneofCase.RowAffinity: + if (RowAffinity == null) { + RowAffinity = new global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.MultiClusterRoutingUseAny.Types.RowAffinity(); + } + RowAffinity.MergeFrom(other.RowAffinity); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + clusterIds_.AddEntriesFrom(input, _repeated_clusterIds_codec); + break; + } + case 26: { + global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.MultiClusterRoutingUseAny.Types.RowAffinity subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.MultiClusterRoutingUseAny.Types.RowAffinity(); + if (affinityCase_ == AffinityOneofCase.RowAffinity) { + subBuilder.MergeFrom(RowAffinity); + } + input.ReadMessage(subBuilder); + RowAffinity = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + clusterIds_.AddEntriesFrom(ref input, _repeated_clusterIds_codec); + break; + } + case 26: { + global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.MultiClusterRoutingUseAny.Types.RowAffinity subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.MultiClusterRoutingUseAny.Types.RowAffinity(); + if (affinityCase_ == AffinityOneofCase.RowAffinity) { + subBuilder.MergeFrom(RowAffinity); + } + input.ReadMessage(subBuilder); + RowAffinity = subBuilder; + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the MultiClusterRoutingUseAny message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// If enabled, Bigtable will route the request based on the row key of the + /// request, rather than randomly. Instead, each row key will be assigned + /// to a cluster, and will stick to that cluster. If clusters are added or + /// removed, then this may affect which row keys stick to which clusters. + /// To avoid this, users can use a cluster group to specify which clusters + /// are to be used. In this case, new clusters that are not a part of the + /// cluster group will not be routed to, and routing will be unaffected by + /// the new cluster. Moreover, clusters specified in the cluster group cannot + /// be deleted unless removed from the cluster group. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RowAffinity : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RowAffinity()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.MultiClusterRoutingUseAny.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RowAffinity() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RowAffinity(RowAffinity other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RowAffinity Clone() { + return new RowAffinity(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RowAffinity); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RowAffinity other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RowAffinity other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// Unconditionally routes all read/write requests to a specific cluster. + /// This option preserves read-your-writes consistency but does not improve + /// availability. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SingleClusterRouting : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SingleClusterRouting()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Descriptor.NestedTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SingleClusterRouting() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SingleClusterRouting(SingleClusterRouting other) : this() { + clusterId_ = other.clusterId_; + allowTransactionalWrites_ = other.allowTransactionalWrites_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SingleClusterRouting Clone() { + return new SingleClusterRouting(this); + } + + /// Field number for the "cluster_id" field. + public const int ClusterIdFieldNumber = 1; + private string clusterId_ = ""; + /// + /// The cluster to which read/write requests should be routed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ClusterId { + get { return clusterId_; } + set { + clusterId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "allow_transactional_writes" field. + public const int AllowTransactionalWritesFieldNumber = 2; + private bool allowTransactionalWrites_; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AllowTransactionalWrites { + get { return allowTransactionalWrites_; } + set { + allowTransactionalWrites_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SingleClusterRouting); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SingleClusterRouting other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ClusterId != other.ClusterId) return false; + if (AllowTransactionalWrites != other.AllowTransactionalWrites) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ClusterId.Length != 0) hash ^= ClusterId.GetHashCode(); + if (AllowTransactionalWrites != false) hash ^= AllowTransactionalWrites.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ClusterId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ClusterId); + } + if (AllowTransactionalWrites != false) { + output.WriteRawTag(16); + output.WriteBool(AllowTransactionalWrites); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ClusterId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ClusterId); + } + if (AllowTransactionalWrites != false) { + output.WriteRawTag(16); + output.WriteBool(AllowTransactionalWrites); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ClusterId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ClusterId); + } + if (AllowTransactionalWrites != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SingleClusterRouting other) { + if (other == null) { + return; + } + if (other.ClusterId.Length != 0) { + ClusterId = other.ClusterId; + } + if (other.AllowTransactionalWrites != false) { + AllowTransactionalWrites = other.AllowTransactionalWrites; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + ClusterId = input.ReadString(); + break; + } + case 16: { + AllowTransactionalWrites = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ClusterId = input.ReadString(); + break; + } + case 16: { + AllowTransactionalWrites = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + /// + /// Standard options for isolating this app profile's traffic from other use + /// cases. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class StandardIsolation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StandardIsolation()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Descriptor.NestedTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StandardIsolation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StandardIsolation(StandardIsolation other) : this() { + priority_ = other.priority_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StandardIsolation Clone() { + return new StandardIsolation(this); + } + + /// Field number for the "priority" field. + public const int PriorityFieldNumber = 1; + private global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.Priority priority_ = global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.Priority.Unspecified; + /// + /// The priority of requests sent using this app profile. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.Priority Priority { + get { return priority_; } + set { + priority_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as StandardIsolation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StandardIsolation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Priority != other.Priority) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Priority != global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.Priority.Unspecified) hash ^= Priority.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Priority != global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.Priority.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Priority); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Priority != global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.Priority.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Priority); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Priority != global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.Priority.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Priority); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StandardIsolation other) { + if (other == null) { + return; + } + if (other.Priority != global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.Priority.Unspecified) { + Priority = other.Priority; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Priority = (global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.Priority) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Priority = (global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.Priority) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + /// + /// Data Boost is a serverless compute capability that lets you run + /// high-throughput read jobs on your Bigtable data, without impacting the + /// performance of the clusters that handle your application traffic. + /// Currently, Data Boost exclusively supports read-only use-cases with + /// single-cluster routing. + /// + /// Data Boost reads are only guaranteed to see the results of writes that + /// were written at least 30 minutes ago. This means newly written values may + /// not become visible for up to 30m, and also means that old values may + /// remain visible for up to 30m after being deleted or overwritten. To + /// mitigate the staleness of the data, users may either wait 30m, or use + /// CheckConsistency. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DataBoostIsolationReadOnly : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DataBoostIsolationReadOnly()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Descriptor.NestedTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DataBoostIsolationReadOnly() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DataBoostIsolationReadOnly(DataBoostIsolationReadOnly other) : this() { + _hasBits0 = other._hasBits0; + computeBillingOwner_ = other.computeBillingOwner_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DataBoostIsolationReadOnly Clone() { + return new DataBoostIsolationReadOnly(this); + } + + /// Field number for the "compute_billing_owner" field. + public const int ComputeBillingOwnerFieldNumber = 1; + private readonly static global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.DataBoostIsolationReadOnly.Types.ComputeBillingOwner ComputeBillingOwnerDefaultValue = global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.DataBoostIsolationReadOnly.Types.ComputeBillingOwner.Unspecified; + + private global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.DataBoostIsolationReadOnly.Types.ComputeBillingOwner computeBillingOwner_; + /// + /// The Compute Billing Owner for this Data Boost App Profile. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.DataBoostIsolationReadOnly.Types.ComputeBillingOwner ComputeBillingOwner { + get { if ((_hasBits0 & 1) != 0) { return computeBillingOwner_; } else { return ComputeBillingOwnerDefaultValue; } } + set { + _hasBits0 |= 1; + computeBillingOwner_ = value; + } + } + /// Gets whether the "compute_billing_owner" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasComputeBillingOwner { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "compute_billing_owner" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearComputeBillingOwner() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DataBoostIsolationReadOnly); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DataBoostIsolationReadOnly other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ComputeBillingOwner != other.ComputeBillingOwner) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasComputeBillingOwner) hash ^= ComputeBillingOwner.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasComputeBillingOwner) { + output.WriteRawTag(8); + output.WriteEnum((int) ComputeBillingOwner); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasComputeBillingOwner) { + output.WriteRawTag(8); + output.WriteEnum((int) ComputeBillingOwner); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasComputeBillingOwner) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ComputeBillingOwner); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DataBoostIsolationReadOnly other) { + if (other == null) { + return; + } + if (other.HasComputeBillingOwner) { + ComputeBillingOwner = other.ComputeBillingOwner; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ComputeBillingOwner = (global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.DataBoostIsolationReadOnly.Types.ComputeBillingOwner) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ComputeBillingOwner = (global::Google.Cloud.Bigtable.Admin.V2.AppProfile.Types.DataBoostIsolationReadOnly.Types.ComputeBillingOwner) input.ReadEnum(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the DataBoostIsolationReadOnly message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Compute Billing Owner specifies how usage should be accounted when using + /// Data Boost. Compute Billing Owner also configures which Cloud Project is + /// charged for relevant quota. + /// + public enum ComputeBillingOwner { + /// + /// Unspecified value. + /// + [pbr::OriginalName("COMPUTE_BILLING_OWNER_UNSPECIFIED")] Unspecified = 0, + /// + /// The host Cloud Project containing the targeted Bigtable Instance / + /// Table pays for compute. + /// + [pbr::OriginalName("HOST_PAYS")] HostPays = 1, + } + + } + #endregion + + } + + } + #endregion + + } + + /// + /// A tablet is a defined by a start and end key and is explained in + /// https://cloud.google.com/bigtable/docs/overview#architecture and + /// https://cloud.google.com/bigtable/docs/performance#optimization. + /// A Hot tablet is a tablet that exhibits high average cpu usage during the time + /// interval from start time to end time. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class HotTablet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HotTablet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.InstanceReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HotTablet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HotTablet(HotTablet other) : this() { + name_ = other.name_; + tableName_ = other.tableName_; + startTime_ = other.startTime_ != null ? other.startTime_.Clone() : null; + endTime_ = other.endTime_ != null ? other.endTime_.Clone() : null; + startKey_ = other.startKey_; + endKey_ = other.endKey_; + nodeCpuUsagePercent_ = other.nodeCpuUsagePercent_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HotTablet Clone() { + return new HotTablet(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private 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_-]*`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "table_name" field. + public const int TableNameFieldNumber = 2; + private string tableName_ = ""; + /// + /// 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]*`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TableName { + get { return tableName_; } + set { + tableName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp startTime_; + /// + /// Output only. The start time of the hot tablet. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp StartTime { + get { return startTime_; } + set { + startTime_ = value; + } + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp endTime_; + /// + /// Output only. The end time of the hot tablet. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + + /// Field number for the "start_key" field. + public const int StartKeyFieldNumber = 5; + private string startKey_ = ""; + /// + /// Tablet Start Key (inclusive). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string StartKey { + get { return startKey_; } + set { + startKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "end_key" field. + public const int EndKeyFieldNumber = 6; + private string endKey_ = ""; + /// + /// Tablet End Key (inclusive). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EndKey { + get { return endKey_; } + set { + endKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "node_cpu_usage_percent" field. + public const int NodeCpuUsagePercentFieldNumber = 7; + private float nodeCpuUsagePercent_; + /// + /// 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). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float NodeCpuUsagePercent { + get { return nodeCpuUsagePercent_; } + set { + nodeCpuUsagePercent_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as HotTablet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HotTablet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (TableName != other.TableName) return false; + if (!object.Equals(StartTime, other.StartTime)) return false; + if (!object.Equals(EndTime, other.EndTime)) return false; + if (StartKey != other.StartKey) return false; + if (EndKey != other.EndKey) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(NodeCpuUsagePercent, other.NodeCpuUsagePercent)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (TableName.Length != 0) hash ^= TableName.GetHashCode(); + if (startTime_ != null) hash ^= StartTime.GetHashCode(); + if (endTime_ != null) hash ^= EndTime.GetHashCode(); + if (StartKey.Length != 0) hash ^= StartKey.GetHashCode(); + if (EndKey.Length != 0) hash ^= EndKey.GetHashCode(); + if (NodeCpuUsagePercent != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(NodeCpuUsagePercent); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (TableName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TableName); + } + if (startTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(StartTime); + } + if (endTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(EndTime); + } + if (StartKey.Length != 0) { + output.WriteRawTag(42); + output.WriteString(StartKey); + } + if (EndKey.Length != 0) { + output.WriteRawTag(50); + output.WriteString(EndKey); + } + if (NodeCpuUsagePercent != 0F) { + output.WriteRawTag(61); + output.WriteFloat(NodeCpuUsagePercent); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (TableName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TableName); + } + if (startTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(StartTime); + } + if (endTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(EndTime); + } + if (StartKey.Length != 0) { + output.WriteRawTag(42); + output.WriteString(StartKey); + } + if (EndKey.Length != 0) { + output.WriteRawTag(50); + output.WriteString(EndKey); + } + if (NodeCpuUsagePercent != 0F) { + output.WriteRawTag(61); + output.WriteFloat(NodeCpuUsagePercent); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (TableName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TableName); + } + if (startTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTime); + } + if (endTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTime); + } + if (StartKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(StartKey); + } + if (EndKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EndKey); + } + if (NodeCpuUsagePercent != 0F) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(HotTablet other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.TableName.Length != 0) { + TableName = other.TableName; + } + if (other.startTime_ != null) { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + StartTime.MergeFrom(other.StartTime); + } + if (other.endTime_ != null) { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + EndTime.MergeFrom(other.EndTime); + } + if (other.StartKey.Length != 0) { + StartKey = other.StartKey; + } + if (other.EndKey.Length != 0) { + EndKey = other.EndKey; + } + if (other.NodeCpuUsagePercent != 0F) { + NodeCpuUsagePercent = other.NodeCpuUsagePercent; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + TableName = input.ReadString(); + break; + } + case 26: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 34: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 42: { + StartKey = input.ReadString(); + break; + } + case 50: { + EndKey = input.ReadString(); + break; + } + case 61: { + NodeCpuUsagePercent = input.ReadFloat(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + TableName = input.ReadString(); + break; + } + case 26: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 34: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 42: { + StartKey = input.ReadString(); + break; + } + case 50: { + EndKey = input.ReadString(); + break; + } + case 61: { + NodeCpuUsagePercent = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/InstanceResourceNames.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/InstanceResourceNames.g.cs new file mode 100755 index 000000000000..3778cf997d81 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/InstanceResourceNames.g.cs @@ -0,0 +1,1363 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +#pragma warning disable CS8981 +using gagr = Google.Api.Gax.ResourceNames; +using gax = Google.Api.Gax; +using gcbav = Google.Cloud.Bigtable.Admin.V2; +using sys = System; + +namespace Google.Cloud.Bigtable.Admin.V2 +{ + /// Resource name for the Instance resource. + public sealed partial class InstanceName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// A resource name with pattern projects/{project}/instances/{instance}. + ProjectInstance = 1, + } + + private static gax::PathTemplate s_projectInstance = new gax::PathTemplate("projects/{project}/instances/{instance}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static InstanceName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new InstanceName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern projects/{project}/instances/{instance}. + /// + /// The Project ID. Must not be null or empty. + /// The Instance ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static InstanceName FromProjectInstance(string projectId, string instanceId) => + new InstanceName(ResourceNameType.ProjectInstance, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), instanceId: gax::GaxPreconditions.CheckNotNullOrEmpty(instanceId, nameof(instanceId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/instances/{instance}. + /// + /// The Project ID. Must not be null or empty. + /// The Instance ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/instances/{instance}. + /// + public static string Format(string projectId, string instanceId) => FormatProjectInstance(projectId, instanceId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/instances/{instance}. + /// + /// The Project ID. Must not be null or empty. + /// The Instance ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/instances/{instance}. + /// + public static string FormatProjectInstance(string projectId, string instanceId) => + s_projectInstance.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(instanceId, nameof(instanceId))); + + /// Parses the given resource name string into a new instance. + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// projects/{project}/instances/{instance} + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static InstanceName Parse(string instanceName) => Parse(instanceName, false); + + /// + /// Parses the given resource name string into a new instance; optionally allowing an + /// unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// projects/{project}/instances/{instance} + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// The parsed if successful. + public static InstanceName Parse(string instanceName, bool allowUnparsed) => + TryParse(instanceName, allowUnparsed, out InstanceName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); + + /// + /// Tries to parse the given resource name string into a new instance. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// projects/{project}/instances/{instance} + /// + /// + /// The resource name in string form. Must not be null. + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string instanceName, out InstanceName result) => TryParse(instanceName, false, out result); + + /// + /// Tries to parse the given resource name string into a new instance; optionally + /// allowing an unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// projects/{project}/instances/{instance} + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string instanceName, bool allowUnparsed, out InstanceName result) + { + gax::GaxPreconditions.CheckNotNull(instanceName, nameof(instanceName)); + gax::TemplatedResourceName resourceName; + if (s_projectInstance.TryParseName(instanceName, out resourceName)) + { + result = FromProjectInstance(resourceName[0], resourceName[1]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(instanceName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private InstanceName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string instanceId = null, string projectId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + InstanceId = instanceId; + ProjectId = projectId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// projects/{project}/instances/{instance} + /// + /// The Project ID. Must not be null or empty. + /// The Instance ID. Must not be null or empty. + public InstanceName(string projectId, string instanceId) : this(ResourceNameType.ProjectInstance, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), instanceId: gax::GaxPreconditions.CheckNotNullOrEmpty(instanceId, nameof(instanceId))) + { + } + + /// The of the contained resource name. + public ResourceNameType Type { get; } + + /// + /// The contained . Only non-null if this instance contains an + /// unparsed resource name. + /// + public gax::UnparsedResourceName UnparsedResource { get; } + + /// + /// The Instance ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string InstanceId { get; } + + /// + /// The Project ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string ProjectId { get; } + + /// Whether this instance contains a resource name with a known pattern. + public bool IsKnownPattern => Type != ResourceNameType.Unparsed; + + /// The string representation of the resource name. + /// The string representation of the resource name. + public override string ToString() + { + switch (Type) + { + case ResourceNameType.Unparsed: return UnparsedResource.ToString(); + case ResourceNameType.ProjectInstance: return s_projectInstance.Expand(ProjectId, InstanceId); + default: throw new sys::InvalidOperationException("Unrecognized resource-type."); + } + } + + /// Returns a hash code for this resource name. + public override int GetHashCode() => ToString().GetHashCode(); + + /// + public override bool Equals(object obj) => Equals(obj as InstanceName); + + /// + public bool Equals(InstanceName other) => ToString() == other?.ToString(); + + /// Determines whether two specified resource names have the same value. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is the same as the value of ; otherwise, + /// false. + /// + public static bool operator ==(InstanceName a, InstanceName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); + + /// Determines whether two specified resource names have different values. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is different from the value of ; otherwise, + /// false. + /// + public static bool operator !=(InstanceName a, InstanceName b) => !(a == b); + } + + /// Resource name for the Cluster resource. + public sealed partial class ClusterName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// A resource name with pattern projects/{project}/instances/{instance}/clusters/{cluster}. + /// + ProjectInstanceCluster = 1, + } + + private static gax::PathTemplate s_projectInstanceCluster = new gax::PathTemplate("projects/{project}/instances/{instance}/clusters/{cluster}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided . + /// + public static ClusterName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new ClusterName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern + /// projects/{project}/instances/{instance}/clusters/{cluster}. + /// + /// The Project ID. Must not be null or empty. + /// The Instance ID. Must not be null or empty. + /// The Cluster ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static ClusterName FromProjectInstanceCluster(string projectId, string instanceId, string clusterId) => + new ClusterName(ResourceNameType.ProjectInstanceCluster, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), instanceId: gax::GaxPreconditions.CheckNotNullOrEmpty(instanceId, nameof(instanceId)), clusterId: gax::GaxPreconditions.CheckNotNullOrEmpty(clusterId, nameof(clusterId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/instances/{instance}/clusters/{cluster}. + /// + /// The Project ID. Must not be null or empty. + /// The Instance ID. Must not be null or empty. + /// The Cluster ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/instances/{instance}/clusters/{cluster}. + /// + public static string Format(string projectId, string instanceId, string clusterId) => + FormatProjectInstanceCluster(projectId, instanceId, clusterId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/instances/{instance}/clusters/{cluster}. + /// + /// The Project ID. Must not be null or empty. + /// The Instance ID. Must not be null or empty. + /// The Cluster ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/instances/{instance}/clusters/{cluster}. + /// + public static string FormatProjectInstanceCluster(string projectId, string instanceId, string clusterId) => + s_projectInstanceCluster.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(instanceId, nameof(instanceId)), gax::GaxPreconditions.CheckNotNullOrEmpty(clusterId, nameof(clusterId))); + + /// Parses the given resource name string into a new instance. + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// projects/{project}/instances/{instance}/clusters/{cluster} + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static ClusterName Parse(string clusterName) => Parse(clusterName, false); + + /// + /// Parses the given resource name string into a new instance; optionally allowing an + /// unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// projects/{project}/instances/{instance}/clusters/{cluster} + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// The parsed if successful. + public static ClusterName Parse(string clusterName, bool allowUnparsed) => + TryParse(clusterName, allowUnparsed, out ClusterName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); + + /// + /// Tries to parse the given resource name string into a new instance. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// projects/{project}/instances/{instance}/clusters/{cluster} + /// + /// + /// The resource name in string form. Must not be null. + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string clusterName, out ClusterName result) => TryParse(clusterName, false, out result); + + /// + /// Tries to parse the given resource name string into a new instance; optionally + /// allowing an unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// projects/{project}/instances/{instance}/clusters/{cluster} + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string clusterName, bool allowUnparsed, out ClusterName result) + { + gax::GaxPreconditions.CheckNotNull(clusterName, nameof(clusterName)); + gax::TemplatedResourceName resourceName; + if (s_projectInstanceCluster.TryParseName(clusterName, out resourceName)) + { + result = FromProjectInstanceCluster(resourceName[0], resourceName[1], resourceName[2]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(clusterName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private ClusterName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string clusterId = null, string instanceId = null, string projectId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + ClusterId = clusterId; + InstanceId = instanceId; + ProjectId = projectId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// projects/{project}/instances/{instance}/clusters/{cluster} + /// + /// The Project ID. Must not be null or empty. + /// The Instance ID. Must not be null or empty. + /// The Cluster ID. Must not be null or empty. + public ClusterName(string projectId, string instanceId, string clusterId) : this(ResourceNameType.ProjectInstanceCluster, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), instanceId: gax::GaxPreconditions.CheckNotNullOrEmpty(instanceId, nameof(instanceId)), clusterId: gax::GaxPreconditions.CheckNotNullOrEmpty(clusterId, nameof(clusterId))) + { + } + + /// The of the contained resource name. + public ResourceNameType Type { get; } + + /// + /// The contained . Only non-null if this instance contains an + /// unparsed resource name. + /// + public gax::UnparsedResourceName UnparsedResource { get; } + + /// + /// The Cluster ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string ClusterId { get; } + + /// + /// The Instance ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string InstanceId { get; } + + /// + /// The Project ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string ProjectId { get; } + + /// Whether this instance contains a resource name with a known pattern. + public bool IsKnownPattern => Type != ResourceNameType.Unparsed; + + /// The string representation of the resource name. + /// The string representation of the resource name. + public override string ToString() + { + switch (Type) + { + case ResourceNameType.Unparsed: return UnparsedResource.ToString(); + case ResourceNameType.ProjectInstanceCluster: return s_projectInstanceCluster.Expand(ProjectId, InstanceId, ClusterId); + default: throw new sys::InvalidOperationException("Unrecognized resource-type."); + } + } + + /// Returns a hash code for this resource name. + public override int GetHashCode() => ToString().GetHashCode(); + + /// + public override bool Equals(object obj) => Equals(obj as ClusterName); + + /// + public bool Equals(ClusterName other) => ToString() == other?.ToString(); + + /// Determines whether two specified resource names have the same value. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is the same as the value of ; otherwise, + /// false. + /// + public static bool operator ==(ClusterName a, ClusterName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); + + /// Determines whether two specified resource names have different values. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is different from the value of ; otherwise, + /// false. + /// + public static bool operator !=(ClusterName a, ClusterName b) => !(a == b); + } + + /// Resource name for the AppProfile resource. + public sealed partial class AppProfileName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// A resource name with pattern projects/{project}/instances/{instance}/appProfiles/{app_profile}. + /// + ProjectInstanceAppProfile = 1, + } + + private static gax::PathTemplate s_projectInstanceAppProfile = new gax::PathTemplate("projects/{project}/instances/{instance}/appProfiles/{app_profile}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static AppProfileName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new AppProfileName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern + /// projects/{project}/instances/{instance}/appProfiles/{app_profile}. + /// + /// The Project ID. Must not be null or empty. + /// The Instance ID. Must not be null or empty. + /// The AppProfile ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static AppProfileName FromProjectInstanceAppProfile(string projectId, string instanceId, string appProfileId) => + new AppProfileName(ResourceNameType.ProjectInstanceAppProfile, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), instanceId: gax::GaxPreconditions.CheckNotNullOrEmpty(instanceId, nameof(instanceId)), appProfileId: gax::GaxPreconditions.CheckNotNullOrEmpty(appProfileId, nameof(appProfileId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/instances/{instance}/appProfiles/{app_profile}. + /// + /// The Project ID. Must not be null or empty. + /// The Instance ID. Must not be null or empty. + /// The AppProfile ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/instances/{instance}/appProfiles/{app_profile}. + /// + public static string Format(string projectId, string instanceId, string appProfileId) => + FormatProjectInstanceAppProfile(projectId, instanceId, appProfileId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/instances/{instance}/appProfiles/{app_profile}. + /// + /// The Project ID. Must not be null or empty. + /// The Instance ID. Must not be null or empty. + /// The AppProfile ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/instances/{instance}/appProfiles/{app_profile}. + /// + public static string FormatProjectInstanceAppProfile(string projectId, string instanceId, string appProfileId) => + s_projectInstanceAppProfile.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(instanceId, nameof(instanceId)), gax::GaxPreconditions.CheckNotNullOrEmpty(appProfileId, nameof(appProfileId))); + + /// Parses the given resource name string into a new instance. + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// projects/{project}/instances/{instance}/appProfiles/{app_profile} + /// + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static AppProfileName Parse(string appProfileName) => Parse(appProfileName, false); + + /// + /// Parses the given resource name string into a new instance; optionally allowing + /// an unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// projects/{project}/instances/{instance}/appProfiles/{app_profile} + /// + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// The parsed if successful. + public static AppProfileName Parse(string appProfileName, bool allowUnparsed) => + TryParse(appProfileName, allowUnparsed, out AppProfileName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); + + /// + /// Tries to parse the given resource name string into a new instance. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// projects/{project}/instances/{instance}/appProfiles/{app_profile} + /// + /// + /// + /// The resource name in string form. Must not be null. + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string appProfileName, out AppProfileName result) => + TryParse(appProfileName, false, out result); + + /// + /// Tries to parse the given resource name string into a new instance; optionally + /// allowing an unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// projects/{project}/instances/{instance}/appProfiles/{app_profile} + /// + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string appProfileName, bool allowUnparsed, out AppProfileName result) + { + gax::GaxPreconditions.CheckNotNull(appProfileName, nameof(appProfileName)); + gax::TemplatedResourceName resourceName; + if (s_projectInstanceAppProfile.TryParseName(appProfileName, out resourceName)) + { + result = FromProjectInstanceAppProfile(resourceName[0], resourceName[1], resourceName[2]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(appProfileName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private AppProfileName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string appProfileId = null, string instanceId = null, string projectId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + AppProfileId = appProfileId; + InstanceId = instanceId; + ProjectId = projectId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// projects/{project}/instances/{instance}/appProfiles/{app_profile} + /// + /// The Project ID. Must not be null or empty. + /// The Instance ID. Must not be null or empty. + /// The AppProfile ID. Must not be null or empty. + public AppProfileName(string projectId, string instanceId, string appProfileId) : this(ResourceNameType.ProjectInstanceAppProfile, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), instanceId: gax::GaxPreconditions.CheckNotNullOrEmpty(instanceId, nameof(instanceId)), appProfileId: gax::GaxPreconditions.CheckNotNullOrEmpty(appProfileId, nameof(appProfileId))) + { + } + + /// The of the contained resource name. + public ResourceNameType Type { get; } + + /// + /// The contained . Only non-null if this instance contains an + /// unparsed resource name. + /// + public gax::UnparsedResourceName UnparsedResource { get; } + + /// + /// The AppProfile ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string AppProfileId { get; } + + /// + /// The Instance ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string InstanceId { get; } + + /// + /// The Project ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string ProjectId { get; } + + /// Whether this instance contains a resource name with a known pattern. + public bool IsKnownPattern => Type != ResourceNameType.Unparsed; + + /// The string representation of the resource name. + /// The string representation of the resource name. + public override string ToString() + { + switch (Type) + { + case ResourceNameType.Unparsed: return UnparsedResource.ToString(); + case ResourceNameType.ProjectInstanceAppProfile: return s_projectInstanceAppProfile.Expand(ProjectId, InstanceId, AppProfileId); + default: throw new sys::InvalidOperationException("Unrecognized resource-type."); + } + } + + /// Returns a hash code for this resource name. + public override int GetHashCode() => ToString().GetHashCode(); + + /// + public override bool Equals(object obj) => Equals(obj as AppProfileName); + + /// + public bool Equals(AppProfileName other) => ToString() == other?.ToString(); + + /// Determines whether two specified resource names have the same value. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is the same as the value of ; otherwise, + /// false. + /// + public static bool operator ==(AppProfileName a, AppProfileName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); + + /// Determines whether two specified resource names have different values. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is different from the value of ; otherwise, + /// false. + /// + public static bool operator !=(AppProfileName a, AppProfileName b) => !(a == b); + } + + /// Resource name for the HotTablet resource. + public sealed partial class HotTabletName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// A resource name with pattern + /// projects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/{hot_tablet}. + /// + ProjectInstanceClusterHotTablet = 1, + } + + private static gax::PathTemplate s_projectInstanceClusterHotTablet = new gax::PathTemplate("projects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/{hot_tablet}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static HotTabletName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new HotTabletName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern + /// projects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/{hot_tablet}. + /// + /// The Project ID. Must not be null or empty. + /// The Instance ID. Must not be null or empty. + /// The Cluster ID. Must not be null or empty. + /// The HotTablet ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static HotTabletName FromProjectInstanceClusterHotTablet(string projectId, string instanceId, string clusterId, string hotTabletId) => + new HotTabletName(ResourceNameType.ProjectInstanceClusterHotTablet, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), instanceId: gax::GaxPreconditions.CheckNotNullOrEmpty(instanceId, nameof(instanceId)), clusterId: gax::GaxPreconditions.CheckNotNullOrEmpty(clusterId, nameof(clusterId)), hotTabletId: gax::GaxPreconditions.CheckNotNullOrEmpty(hotTabletId, nameof(hotTabletId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/{hot_tablet}. + /// + /// The Project ID. Must not be null or empty. + /// The Instance ID. Must not be null or empty. + /// The Cluster ID. Must not be null or empty. + /// The HotTablet ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/{hot_tablet}. + /// + public static string Format(string projectId, string instanceId, string clusterId, string hotTabletId) => + FormatProjectInstanceClusterHotTablet(projectId, instanceId, clusterId, hotTabletId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/{hot_tablet}. + /// + /// The Project ID. Must not be null or empty. + /// The Instance ID. Must not be null or empty. + /// The Cluster ID. Must not be null or empty. + /// The HotTablet ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/{hot_tablet}. + /// + public static string FormatProjectInstanceClusterHotTablet(string projectId, string instanceId, string clusterId, string hotTabletId) => + s_projectInstanceClusterHotTablet.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(instanceId, nameof(instanceId)), gax::GaxPreconditions.CheckNotNullOrEmpty(clusterId, nameof(clusterId)), gax::GaxPreconditions.CheckNotNullOrEmpty(hotTabletId, nameof(hotTabletId))); + + /// Parses the given resource name string into a new instance. + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// + /// projects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/{hot_tablet} + /// + /// + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static HotTabletName Parse(string hotTabletName) => Parse(hotTabletName, false); + + /// + /// Parses the given resource name string into a new instance; optionally allowing + /// an unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// + /// projects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/{hot_tablet} + /// + /// + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// The parsed if successful. + public static HotTabletName Parse(string hotTabletName, bool allowUnparsed) => + TryParse(hotTabletName, allowUnparsed, out HotTabletName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); + + /// + /// Tries to parse the given resource name string into a new instance. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// + /// projects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/{hot_tablet} + /// + /// + /// + /// + /// The resource name in string form. Must not be null. + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string hotTabletName, out HotTabletName result) => TryParse(hotTabletName, false, out result); + + /// + /// Tries to parse the given resource name string into a new instance; optionally + /// allowing an unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// + /// projects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/{hot_tablet} + /// + /// + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string hotTabletName, bool allowUnparsed, out HotTabletName result) + { + gax::GaxPreconditions.CheckNotNull(hotTabletName, nameof(hotTabletName)); + gax::TemplatedResourceName resourceName; + if (s_projectInstanceClusterHotTablet.TryParseName(hotTabletName, out resourceName)) + { + result = FromProjectInstanceClusterHotTablet(resourceName[0], resourceName[1], resourceName[2], resourceName[3]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(hotTabletName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private HotTabletName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string clusterId = null, string hotTabletId = null, string instanceId = null, string projectId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + ClusterId = clusterId; + HotTabletId = hotTabletId; + InstanceId = instanceId; + ProjectId = projectId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// projects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/{hot_tablet} + /// + /// The Project ID. Must not be null or empty. + /// The Instance ID. Must not be null or empty. + /// The Cluster ID. Must not be null or empty. + /// The HotTablet ID. Must not be null or empty. + public HotTabletName(string projectId, string instanceId, string clusterId, string hotTabletId) : this(ResourceNameType.ProjectInstanceClusterHotTablet, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), instanceId: gax::GaxPreconditions.CheckNotNullOrEmpty(instanceId, nameof(instanceId)), clusterId: gax::GaxPreconditions.CheckNotNullOrEmpty(clusterId, nameof(clusterId)), hotTabletId: gax::GaxPreconditions.CheckNotNullOrEmpty(hotTabletId, nameof(hotTabletId))) + { + } + + /// The of the contained resource name. + public ResourceNameType Type { get; } + + /// + /// The contained . Only non-null if this instance contains an + /// unparsed resource name. + /// + public gax::UnparsedResourceName UnparsedResource { get; } + + /// + /// The Cluster ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string ClusterId { get; } + + /// + /// The HotTablet ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string HotTabletId { get; } + + /// + /// The Instance ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string InstanceId { get; } + + /// + /// The Project ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string ProjectId { get; } + + /// Whether this instance contains a resource name with a known pattern. + public bool IsKnownPattern => Type != ResourceNameType.Unparsed; + + /// The string representation of the resource name. + /// The string representation of the resource name. + public override string ToString() + { + switch (Type) + { + case ResourceNameType.Unparsed: return UnparsedResource.ToString(); + case ResourceNameType.ProjectInstanceClusterHotTablet: return s_projectInstanceClusterHotTablet.Expand(ProjectId, InstanceId, ClusterId, HotTabletId); + default: throw new sys::InvalidOperationException("Unrecognized resource-type."); + } + } + + /// Returns a hash code for this resource name. + public override int GetHashCode() => ToString().GetHashCode(); + + /// + public override bool Equals(object obj) => Equals(obj as HotTabletName); + + /// + public bool Equals(HotTabletName other) => ToString() == other?.ToString(); + + /// Determines whether two specified resource names have the same value. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is the same as the value of ; otherwise, + /// false. + /// + public static bool operator ==(HotTabletName a, HotTabletName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); + + /// Determines whether two specified resource names have different values. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is different from the value of ; otherwise, + /// false. + /// + public static bool operator !=(HotTabletName a, HotTabletName b) => !(a == b); + } + + /// Resource name for the CryptoKey resource. + public sealed partial class CryptoKeyName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// A resource name with pattern + /// projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}. + /// + ProjectLocationKeyRingCryptoKey = 1, + } + + private static gax::PathTemplate s_projectLocationKeyRingCryptoKey = new gax::PathTemplate("projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static CryptoKeyName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new CryptoKeyName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern + /// projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The KeyRing ID. Must not be null or empty. + /// The CryptoKey ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static CryptoKeyName FromProjectLocationKeyRingCryptoKey(string projectId, string locationId, string keyRingId, string cryptoKeyId) => + new CryptoKeyName(ResourceNameType.ProjectLocationKeyRingCryptoKey, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), keyRingId: gax::GaxPreconditions.CheckNotNullOrEmpty(keyRingId, nameof(keyRingId)), cryptoKeyId: gax::GaxPreconditions.CheckNotNullOrEmpty(cryptoKeyId, nameof(cryptoKeyId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The KeyRing ID. Must not be null or empty. + /// The CryptoKey ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}. + /// + public static string Format(string projectId, string locationId, string keyRingId, string cryptoKeyId) => + FormatProjectLocationKeyRingCryptoKey(projectId, locationId, keyRingId, cryptoKeyId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The KeyRing ID. Must not be null or empty. + /// The CryptoKey ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}. + /// + public static string FormatProjectLocationKeyRingCryptoKey(string projectId, string locationId, string keyRingId, string cryptoKeyId) => + s_projectLocationKeyRingCryptoKey.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(keyRingId, nameof(keyRingId)), gax::GaxPreconditions.CheckNotNullOrEmpty(cryptoKeyId, nameof(cryptoKeyId))); + + /// Parses the given resource name string into a new instance. + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// + /// projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key} + /// + /// + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static CryptoKeyName Parse(string cryptoKeyName) => Parse(cryptoKeyName, false); + + /// + /// Parses the given resource name string into a new instance; optionally allowing + /// an unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// + /// projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key} + /// + /// + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// The parsed if successful. + public static CryptoKeyName Parse(string cryptoKeyName, bool allowUnparsed) => + TryParse(cryptoKeyName, allowUnparsed, out CryptoKeyName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); + + /// + /// Tries to parse the given resource name string into a new instance. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// + /// projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key} + /// + /// + /// + /// + /// The resource name in string form. Must not be null. + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string cryptoKeyName, out CryptoKeyName result) => TryParse(cryptoKeyName, false, out result); + + /// + /// Tries to parse the given resource name string into a new instance; optionally + /// allowing an unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// + /// projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key} + /// + /// + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string cryptoKeyName, bool allowUnparsed, out CryptoKeyName result) + { + gax::GaxPreconditions.CheckNotNull(cryptoKeyName, nameof(cryptoKeyName)); + gax::TemplatedResourceName resourceName; + if (s_projectLocationKeyRingCryptoKey.TryParseName(cryptoKeyName, out resourceName)) + { + result = FromProjectLocationKeyRingCryptoKey(resourceName[0], resourceName[1], resourceName[2], resourceName[3]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(cryptoKeyName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private CryptoKeyName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string cryptoKeyId = null, string keyRingId = null, string locationId = null, string projectId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + CryptoKeyId = cryptoKeyId; + KeyRingId = keyRingId; + LocationId = locationId; + ProjectId = projectId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key} + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The KeyRing ID. Must not be null or empty. + /// The CryptoKey ID. Must not be null or empty. + public CryptoKeyName(string projectId, string locationId, string keyRingId, string cryptoKeyId) : this(ResourceNameType.ProjectLocationKeyRingCryptoKey, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), keyRingId: gax::GaxPreconditions.CheckNotNullOrEmpty(keyRingId, nameof(keyRingId)), cryptoKeyId: gax::GaxPreconditions.CheckNotNullOrEmpty(cryptoKeyId, nameof(cryptoKeyId))) + { + } + + /// The of the contained resource name. + public ResourceNameType Type { get; } + + /// + /// The contained . Only non-null if this instance contains an + /// unparsed resource name. + /// + public gax::UnparsedResourceName UnparsedResource { get; } + + /// + /// The CryptoKey ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string CryptoKeyId { get; } + + /// + /// The KeyRing ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string KeyRingId { get; } + + /// + /// The Location ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string LocationId { get; } + + /// + /// The Project ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string ProjectId { get; } + + /// Whether this instance contains a resource name with a known pattern. + public bool IsKnownPattern => Type != ResourceNameType.Unparsed; + + /// The string representation of the resource name. + /// The string representation of the resource name. + public override string ToString() + { + switch (Type) + { + case ResourceNameType.Unparsed: return UnparsedResource.ToString(); + case ResourceNameType.ProjectLocationKeyRingCryptoKey: return s_projectLocationKeyRingCryptoKey.Expand(ProjectId, LocationId, KeyRingId, CryptoKeyId); + default: throw new sys::InvalidOperationException("Unrecognized resource-type."); + } + } + + /// Returns a hash code for this resource name. + public override int GetHashCode() => ToString().GetHashCode(); + + /// + public override bool Equals(object obj) => Equals(obj as CryptoKeyName); + + /// + public bool Equals(CryptoKeyName other) => ToString() == other?.ToString(); + + /// Determines whether two specified resource names have the same value. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is the same as the value of ; otherwise, + /// false. + /// + public static bool operator ==(CryptoKeyName a, CryptoKeyName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); + + /// Determines whether two specified resource names have different values. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is different from the value of ; otherwise, + /// false. + /// + public static bool operator !=(CryptoKeyName a, CryptoKeyName b) => !(a == b); + } + + public partial class Instance + { + /// + /// -typed view over the resource name property. + /// + public gcbav::InstanceName InstanceName + { + get => string.IsNullOrEmpty(Name) ? null : gcbav::InstanceName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class Cluster + { + /// + /// -typed view over the resource name property. + /// + public gcbav::ClusterName ClusterName + { + get => string.IsNullOrEmpty(Name) ? null : gcbav::ClusterName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + + /// + /// -typed view over the resource name property. + /// + public gagr::LocationName LocationAsLocationName + { + get => string.IsNullOrEmpty(Location) ? null : gagr::LocationName.Parse(Location, allowUnparsed: true); + set => Location = value?.ToString() ?? ""; + } + + public partial class Types + { + public partial class EncryptionConfig + { + /// + /// -typed view over the resource name property. + /// + public CryptoKeyName KmsKeyNameAsCryptoKeyName + { + get => string.IsNullOrEmpty(KmsKeyName) ? null : CryptoKeyName.Parse(KmsKeyName, allowUnparsed: true); + set => KmsKeyName = value?.ToString() ?? ""; + } + } + } + } + + public partial class AppProfile + { + /// + /// -typed view over the resource name property. + /// + public gcbav::AppProfileName AppProfileName + { + get => string.IsNullOrEmpty(Name) ? null : gcbav::AppProfileName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class HotTablet + { + /// + /// -typed view over the resource name property. + /// + public gcbav::HotTabletName HotTabletName + { + get => string.IsNullOrEmpty(Name) ? null : gcbav::HotTabletName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + + /// + /// -typed view over the resource name property. + /// + public gcbav::TableName TableNameAsTableName + { + get => string.IsNullOrEmpty(TableName) ? null : gcbav::TableName.Parse(TableName, allowUnparsed: true); + set => TableName = value?.ToString() ?? ""; + } + } +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/PackageApiMetadata.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/PackageApiMetadata.g.cs new file mode 100755 index 000000000000..14e4944dd0f8 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/PackageApiMetadata.g.cs @@ -0,0 +1,67 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +#pragma warning disable CS8981 +using gaxgrpc = Google.Api.Gax.Grpc; +using gpr = Google.Protobuf.Reflection; +using lro = Google.LongRunning; +using proto = Google.Protobuf; +using scg = System.Collections.Generic; + +namespace Google.Cloud.Bigtable.Admin.V2 +{ + /// Static class to provide common access to package-wide API metadata. + internal static class PackageApiMetadata + { + /// The for services in this package. + internal static gaxgrpc::ApiMetadata ApiMetadata { get; } = new gaxgrpc::ApiMetadata("Google.Cloud.Bigtable.Admin.V2", GetFileDescriptors) + .WithRequestNumericEnumJsonEncoding(true) + .WithHttpRuleOverrides(new scg::Dictionary + { + { + "google.longrunning.Operations.CancelOperation", + // { "post": "/v2/{name=operations/**}:cancel" } + proto::ByteString.FromBase64("Ih8vdjIve25hbWU9b3BlcmF0aW9ucy8qKn06Y2FuY2Vs") + }, + { + "google.longrunning.Operations.DeleteOperation", + // { "delete": "/v2/{name=operations/**}" } + proto::ByteString.FromBase64("KhgvdjIve25hbWU9b3BlcmF0aW9ucy8qKn0=") + }, + { + "google.longrunning.Operations.GetOperation", + // { "get": "/v2/{name=operations/**}" } + proto::ByteString.FromBase64("EhgvdjIve25hbWU9b3BlcmF0aW9ucy8qKn0=") + }, + { + "google.longrunning.Operations.ListOperations", + // { "get": "/v2/{name=operations/projects/**}/operations" } + proto::ByteString.FromBase64("EiwvdjIve25hbWU9b3BlcmF0aW9ucy9wcm9qZWN0cy8qKn0vb3BlcmF0aW9ucw==") + }, + }); + + private static scg::IEnumerable GetFileDescriptors() + { + yield return BigtableInstanceAdminReflection.Descriptor; + yield return BigtableTableAdminReflection.Descriptor; + yield return CommonReflection.Descriptor; + yield return InstanceReflection.Descriptor; + yield return TableReflection.Descriptor; + yield return TypesReflection.Descriptor; + yield return lro::OperationsReflection.Descriptor; + } + } +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/ServiceCollectionExtensions.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/ServiceCollectionExtensions.g.cs new file mode 100755 index 000000000000..23d2eb4c4ec2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/ServiceCollectionExtensions.g.cs @@ -0,0 +1,103 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +#pragma warning disable CS8981 +using gaxgrpc = Google.Api.Gax.Grpc; +using gcbav = Google.Cloud.Bigtable.Admin.V2; +using gpr = Google.Protobuf.Reflection; +using lro = Google.LongRunning; +using proto = Google.Protobuf; +using scg = System.Collections.Generic; +using sys = System; + +namespace Microsoft.Extensions.DependencyInjection +{ + /// Static class to provide extension methods to configure API clients. + public static partial class ServiceCollectionExtensions + { + /// + /// Adds a singleton to . + /// + /// + /// The service collection to add the client to. The services are used to configure the client when requested. + /// + /// + /// An optional action to invoke on the client builder. This is invoked before services from + /// are used. + /// + public static IServiceCollection AddBigtableInstanceAdminClient(this IServiceCollection services, sys::Action action = null) => + services.AddSingleton(provider => + { + gcbav::BigtableInstanceAdminClientBuilder builder = new gcbav::BigtableInstanceAdminClientBuilder(); + action?.Invoke(builder); + return builder.Build(provider); + }); + + /// + /// Adds a singleton to . + /// + /// + /// The service collection to add the client to. The services are used to configure the client when requested. + /// + /// + /// An optional action to invoke on the client builder. This is invoked before services from + /// are used. + /// + public static IServiceCollection AddBigtableInstanceAdminClient(this IServiceCollection services, sys::Action action) => + services.AddSingleton(provider => + { + gcbav::BigtableInstanceAdminClientBuilder builder = new gcbav::BigtableInstanceAdminClientBuilder(); + action?.Invoke(provider, builder); + return builder.Build(provider); + }); + + /// + /// Adds a singleton to . + /// + /// + /// The service collection to add the client to. The services are used to configure the client when requested. + /// + /// + /// An optional action to invoke on the client builder. This is invoked before services from + /// are used. + /// + public static IServiceCollection AddBigtableTableAdminClient(this IServiceCollection services, sys::Action action = null) => + services.AddSingleton(provider => + { + gcbav::BigtableTableAdminClientBuilder builder = new gcbav::BigtableTableAdminClientBuilder(); + action?.Invoke(builder); + return builder.Build(provider); + }); + + /// + /// Adds a singleton to . + /// + /// + /// The service collection to add the client to. The services are used to configure the client when requested. + /// + /// + /// An optional action to invoke on the client builder. This is invoked before services from + /// are used. + /// + public static IServiceCollection AddBigtableTableAdminClient(this IServiceCollection services, sys::Action action) => + services.AddSingleton(provider => + { + gcbav::BigtableTableAdminClientBuilder builder = new gcbav::BigtableTableAdminClientBuilder(); + action?.Invoke(provider, builder); + return builder.Build(provider); + }); + } +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/Table.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/Table.g.cs new file mode 100755 index 000000000000..c061248e9c85 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/Table.g.cs @@ -0,0 +1,5622 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/bigtable/admin/v2/table.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Google.Cloud.Bigtable.Admin.V2 { + + /// Holder for reflection information generated from google/bigtable/admin/v2/table.proto + public static partial class TableReflection { + + #region Descriptor + /// File descriptor for google/bigtable/admin/v2/table.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TableReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiRnb29nbGUvYmlndGFibGUvYWRtaW4vdjIvdGFibGUucHJvdG8SGGdvb2ds", + "ZS5iaWd0YWJsZS5hZG1pbi52MhofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlv", + "ci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90bxokZ29vZ2xlL2Jp", + "Z3RhYmxlL2FkbWluL3YyL3R5cGVzLnByb3RvGh5nb29nbGUvcHJvdG9idWYv", + "ZHVyYXRpb24ucHJvdG8aH2dvb2dsZS9wcm90b2J1Zi90aW1lc3RhbXAucHJv", + "dG8aF2dvb2dsZS9ycGMvc3RhdHVzLnByb3RvIpsBCgtSZXN0b3JlSW5mbxJA", + "Cgtzb3VyY2VfdHlwZRgBIAEoDjIrLmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52", + "Mi5SZXN0b3JlU291cmNlVHlwZRI7CgtiYWNrdXBfaW5mbxgCIAEoCzIkLmdv", + "b2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5CYWNrdXBJbmZvSABCDQoLc291cmNl", + "X2luZm8iSQoSQ2hhbmdlU3RyZWFtQ29uZmlnEjMKEHJldGVudGlvbl9wZXJp", + "b2QYASABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb24i1gsKBVRhYmxl", + "EgwKBG5hbWUYASABKAkSTwoOY2x1c3Rlcl9zdGF0ZXMYAiADKAsyMi5nb29n", + "bGUuYmlndGFibGUuYWRtaW4udjIuVGFibGUuQ2x1c3RlclN0YXRlc0VudHJ5", + "QgPgQQMSTAoPY29sdW1uX2ZhbWlsaWVzGAMgAygLMjMuZ29vZ2xlLmJpZ3Rh", + "YmxlLmFkbWluLnYyLlRhYmxlLkNvbHVtbkZhbWlsaWVzRW50cnkSTgoLZ3Jh", + "bnVsYXJpdHkYBCABKA4yNC5nb29nbGUuYmlndGFibGUuYWRtaW4udjIuVGFi", + "bGUuVGltZXN0YW1wR3JhbnVsYXJpdHlCA+BBBRJACgxyZXN0b3JlX2luZm8Y", + "BiABKAsyJS5nb29nbGUuYmlndGFibGUuYWRtaW4udjIuUmVzdG9yZUluZm9C", + "A+BBAxJKChRjaGFuZ2Vfc3RyZWFtX2NvbmZpZxgIIAEoCzIsLmdvb2dsZS5i", + "aWd0YWJsZS5hZG1pbi52Mi5DaGFuZ2VTdHJlYW1Db25maWcSGwoTZGVsZXRp", + "b25fcHJvdGVjdGlvbhgJIAEoCBJYChdhdXRvbWF0ZWRfYmFja3VwX3BvbGlj", + "eRgNIAEoCzI1Lmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5UYWJsZS5BdXRv", + "bWF0ZWRCYWNrdXBQb2xpY3lIABrGAgoMQ2x1c3RlclN0YXRlEl0KEXJlcGxp", + "Y2F0aW9uX3N0YXRlGAEgASgOMj0uZ29vZ2xlLmJpZ3RhYmxlLmFkbWluLnYy", + "LlRhYmxlLkNsdXN0ZXJTdGF0ZS5SZXBsaWNhdGlvblN0YXRlQgPgQQMSRgoP", + "ZW5jcnlwdGlvbl9pbmZvGAIgAygLMiguZ29vZ2xlLmJpZ3RhYmxlLmFkbWlu", + "LnYyLkVuY3J5cHRpb25JbmZvQgPgQQMijgEKEFJlcGxpY2F0aW9uU3RhdGUS", + "EwoPU1RBVEVfTk9UX0tOT1dOEAASEAoMSU5JVElBTElaSU5HEAESFwoTUExB", + "Tk5FRF9NQUlOVEVOQU5DRRACEhkKFVVOUExBTk5FRF9NQUlOVEVOQU5DRRAD", + "EgkKBVJFQURZEAQSFAoQUkVBRFlfT1BUSU1JWklORxAFGoQBChVBdXRvbWF0", + "ZWRCYWNrdXBQb2xpY3kSOAoQcmV0ZW50aW9uX3BlcmlvZBgBIAEoCzIZLmdv", + "b2dsZS5wcm90b2J1Zi5EdXJhdGlvbkID4EECEjEKCWZyZXF1ZW5jeRgCIAEo", + "CzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbkID4EECGmIKEkNsdXN0ZXJT", + "dGF0ZXNFbnRyeRILCgNrZXkYASABKAkSOwoFdmFsdWUYAiABKAsyLC5nb29n", + "bGUuYmlndGFibGUuYWRtaW4udjIuVGFibGUuQ2x1c3RlclN0YXRlOgI4ARpd", + "ChNDb2x1bW5GYW1pbGllc0VudHJ5EgsKA2tleRgBIAEoCRI1CgV2YWx1ZRgC", + "IAEoCzImLmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5Db2x1bW5GYW1pbHk6", + "AjgBIkkKFFRpbWVzdGFtcEdyYW51bGFyaXR5EiUKIVRJTUVTVEFNUF9HUkFO", + "VUxBUklUWV9VTlNQRUNJRklFRBAAEgoKBk1JTExJUxABInEKBFZpZXcSFAoQ", + "VklFV19VTlNQRUNJRklFRBAAEg0KCU5BTUVfT05MWRABEg8KC1NDSEVNQV9W", + "SUVXEAISFAoQUkVQTElDQVRJT05fVklFVxADEhMKD0VOQ1JZUFRJT05fVklF", + "VxAFEggKBEZVTEwQBDpf6kFcCiJiaWd0YWJsZWFkbWluLmdvb2dsZWFwaXMu", + "Y29tL1RhYmxlEjZwcm9qZWN0cy97cHJvamVjdH0vaW5zdGFuY2VzL3tpbnN0", + "YW5jZX0vdGFibGVzL3t0YWJsZX1CGQoXYXV0b21hdGVkX2JhY2t1cF9jb25m", + "aWci4wUKDkF1dGhvcml6ZWRWaWV3EhEKBG5hbWUYASABKAlCA+BBCBJKCgtz", + "dWJzZXRfdmlldxgCIAEoCzIzLmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5B", + "dXRob3JpemVkVmlldy5TdWJzZXRWaWV3SAASDAoEZXRhZxgDIAEoCRIbChNk", + "ZWxldGlvbl9wcm90ZWN0aW9uGAQgASgIGj8KDUZhbWlseVN1YnNldHMSEgoK", + "cXVhbGlmaWVycxgBIAMoDBIaChJxdWFsaWZpZXJfcHJlZml4ZXMYAiADKAwa", + "8AEKClN1YnNldFZpZXcSFAoMcm93X3ByZWZpeGVzGAEgAygMEl4KDmZhbWls", + "eV9zdWJzZXRzGAIgAygLMkYuZ29vZ2xlLmJpZ3RhYmxlLmFkbWluLnYyLkF1", + "dGhvcml6ZWRWaWV3LlN1YnNldFZpZXcuRmFtaWx5U3Vic2V0c0VudHJ5GmwK", + "EkZhbWlseVN1YnNldHNFbnRyeRILCgNrZXkYASABKAkSRQoFdmFsdWUYAiAB", + "KAsyNi5nb29nbGUuYmlndGFibGUuYWRtaW4udjIuQXV0aG9yaXplZFZpZXcu", + "RmFtaWx5U3Vic2V0czoCOAEiUQoMUmVzcG9uc2VWaWV3Eh0KGVJFU1BPTlNF", + "X1ZJRVdfVU5TUEVDSUZJRUQQABINCglOQU1FX09OTFkQARIJCgVCQVNJQxAC", + "EggKBEZVTEwQAzqsAepBqAEKK2JpZ3RhYmxlYWRtaW4uZ29vZ2xlYXBpcy5j", + "b20vQXV0aG9yaXplZFZpZXcSWHByb2plY3RzL3twcm9qZWN0fS9pbnN0YW5j", + "ZXMve2luc3RhbmNlfS90YWJsZXMve3RhYmxlfS9hdXRob3JpemVkVmlld3Mv", + "e2F1dGhvcml6ZWRfdmlld30qD2F1dGhvcml6ZWRWaWV3czIOYXV0aG9yaXpl", + "ZFZpZXdCEQoPYXV0aG9yaXplZF92aWV3InUKDENvbHVtbkZhbWlseRIxCgdn", + "Y19ydWxlGAEgASgLMiAuZ29vZ2xlLmJpZ3RhYmxlLmFkbWluLnYyLkdjUnVs", + "ZRIyCgp2YWx1ZV90eXBlGAMgASgLMh4uZ29vZ2xlLmJpZ3RhYmxlLmFkbWlu", + "LnYyLlR5cGUi1QIKBkdjUnVsZRIaChBtYXhfbnVtX3ZlcnNpb25zGAEgASgF", + "SAASLAoHbWF4X2FnZRgCIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlv", + "bkgAEkUKDGludGVyc2VjdGlvbhgDIAEoCzItLmdvb2dsZS5iaWd0YWJsZS5h", + "ZG1pbi52Mi5HY1J1bGUuSW50ZXJzZWN0aW9uSAASNwoFdW5pb24YBCABKAsy", + "Ji5nb29nbGUuYmlndGFibGUuYWRtaW4udjIuR2NSdWxlLlVuaW9uSAAaPwoM", + "SW50ZXJzZWN0aW9uEi8KBXJ1bGVzGAEgAygLMiAuZ29vZ2xlLmJpZ3RhYmxl", + "LmFkbWluLnYyLkdjUnVsZRo4CgVVbmlvbhIvCgVydWxlcxgBIAMoCzIgLmdv", + "b2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5HY1J1bGVCBgoEcnVsZSLZAgoORW5j", + "cnlwdGlvbkluZm8SVQoPZW5jcnlwdGlvbl90eXBlGAMgASgOMjcuZ29vZ2xl", + "LmJpZ3RhYmxlLmFkbWluLnYyLkVuY3J5cHRpb25JbmZvLkVuY3J5cHRpb25U", + "eXBlQgPgQQMSMgoRZW5jcnlwdGlvbl9zdGF0dXMYBCABKAsyEi5nb29nbGUu", + "cnBjLlN0YXR1c0ID4EEDEkkKD2ttc19rZXlfdmVyc2lvbhgCIAEoCUIw4EED", + "+kEqCihjbG91ZGttcy5nb29nbGVhcGlzLmNvbS9DcnlwdG9LZXlWZXJzaW9u", + "InEKDkVuY3J5cHRpb25UeXBlEh8KG0VOQ1JZUFRJT05fVFlQRV9VTlNQRUNJ", + "RklFRBAAEh0KGUdPT0dMRV9ERUZBVUxUX0VOQ1JZUFRJT04QARIfChtDVVNU", + "T01FUl9NQU5BR0VEX0VOQ1JZUFRJT04QAiLgAwoIU25hcHNob3QSDAoEbmFt", + "ZRgBIAEoCRI6Cgxzb3VyY2VfdGFibGUYAiABKAsyHy5nb29nbGUuYmlndGFi", + "bGUuYWRtaW4udjIuVGFibGVCA+BBAxIcCg9kYXRhX3NpemVfYnl0ZXMYAyAB", + "KANCA+BBAxI0CgtjcmVhdGVfdGltZRgEIAEoCzIaLmdvb2dsZS5wcm90b2J1", + "Zi5UaW1lc3RhbXBCA+BBAxIvCgtkZWxldGVfdGltZRgFIAEoCzIaLmdvb2ds", + "ZS5wcm90b2J1Zi5UaW1lc3RhbXASPAoFc3RhdGUYBiABKA4yKC5nb29nbGUu", + "YmlndGFibGUuYWRtaW4udjIuU25hcHNob3QuU3RhdGVCA+BBAxITCgtkZXNj", + "cmlwdGlvbhgHIAEoCSI1CgVTdGF0ZRITCg9TVEFURV9OT1RfS05PV04QABIJ", + "CgVSRUFEWRABEgwKCENSRUFUSU5HEAI6e+pBeAolYmlndGFibGVhZG1pbi5n", + "b29nbGVhcGlzLmNvbS9TbmFwc2hvdBJPcHJvamVjdHMve3Byb2plY3R9L2lu", + "c3RhbmNlcy97aW5zdGFuY2V9L2NsdXN0ZXJzL3tjbHVzdGVyfS9zbmFwc2hv", + "dHMve3NuYXBzaG90fSL5BQoGQmFja3VwEgwKBG5hbWUYASABKAkSHAoMc291", + "cmNlX3RhYmxlGAIgASgJQgbgQQXgQQISGgoNc291cmNlX2JhY2t1cBgKIAEo", + "CUID4EEDEjQKC2V4cGlyZV90aW1lGAMgASgLMhouZ29vZ2xlLnByb3RvYnVm", + "LlRpbWVzdGFtcEID4EECEjMKCnN0YXJ0X3RpbWUYBCABKAsyGi5nb29nbGUu", + "cHJvdG9idWYuVGltZXN0YW1wQgPgQQMSMQoIZW5kX3RpbWUYBSABKAsyGi5n", + "b29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQMSFwoKc2l6ZV9ieXRlcxgG", + "IAEoA0ID4EEDEjoKBXN0YXRlGAcgASgOMiYuZ29vZ2xlLmJpZ3RhYmxlLmFk", + "bWluLnYyLkJhY2t1cC5TdGF0ZUID4EEDEkYKD2VuY3J5cHRpb25faW5mbxgJ", + "IAEoCzIoLmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5FbmNyeXB0aW9uSW5m", + "b0ID4EEDEkAKC2JhY2t1cF90eXBlGAsgASgOMisuZ29vZ2xlLmJpZ3RhYmxl", + "LmFkbWluLnYyLkJhY2t1cC5CYWNrdXBUeXBlEjgKFGhvdF90b19zdGFuZGFy", + "ZF90aW1lGAwgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCI3CgVT", + "dGF0ZRIVChFTVEFURV9VTlNQRUNJRklFRBAAEgwKCENSRUFUSU5HEAESCQoF", + "UkVBRFkQAiJACgpCYWNrdXBUeXBlEhsKF0JBQ0tVUF9UWVBFX1VOU1BFQ0lG", + "SUVEEAASDAoIU1RBTkRBUkQQARIHCgNIT1QQAjp16kFyCiNiaWd0YWJsZWFk", + "bWluLmdvb2dsZWFwaXMuY29tL0JhY2t1cBJLcHJvamVjdHMve3Byb2plY3R9", + "L2luc3RhbmNlcy97aW5zdGFuY2V9L2NsdXN0ZXJzL3tjbHVzdGVyfS9iYWNr", + "dXBzL3tiYWNrdXB9IsABCgpCYWNrdXBJbmZvEhMKBmJhY2t1cBgBIAEoCUID", + "4EEDEjMKCnN0YXJ0X3RpbWUYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGlt", + "ZXN0YW1wQgPgQQMSMQoIZW5kX3RpbWUYAyABKAsyGi5nb29nbGUucHJvdG9i", + "dWYuVGltZXN0YW1wQgPgQQMSGQoMc291cmNlX3RhYmxlGAQgASgJQgPgQQMS", + "GgoNc291cmNlX2JhY2t1cBgKIAEoCUID4EEDKkQKEVJlc3RvcmVTb3VyY2VU", + "eXBlEiMKH1JFU1RPUkVfU09VUkNFX1RZUEVfVU5TUEVDSUZJRUQQABIKCgZC", + "QUNLVVAQAUL3AgocY29tLmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52MkIKVGFi", + "bGVQcm90b1ABWjhjbG91ZC5nb29nbGUuY29tL2dvL2JpZ3RhYmxlL2FkbWlu", + "L2FwaXYyL2FkbWlucGI7YWRtaW5wYqoCHkdvb2dsZS5DbG91ZC5CaWd0YWJs", + "ZS5BZG1pbi5WMsoCHkdvb2dsZVxDbG91ZFxCaWd0YWJsZVxBZG1pblxWMuoC", + "Ikdvb2dsZTo6Q2xvdWQ6OkJpZ3RhYmxlOjpBZG1pbjo6VjLqQaYBCihjbG91", + "ZGttcy5nb29nbGVhcGlzLmNvbS9DcnlwdG9LZXlWZXJzaW9uEnpwcm9qZWN0", + "cy97cHJvamVjdH0vbG9jYXRpb25zL3tsb2NhdGlvbn0va2V5UmluZ3Mve2tl", + "eV9yaW5nfS9jcnlwdG9LZXlzL3tjcnlwdG9fa2V5fS9jcnlwdG9LZXlWZXJz", + "aW9ucy97Y3J5cHRvX2tleV92ZXJzaW9ufWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Cloud.Bigtable.Admin.V2.TypesReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Cloud.Bigtable.Admin.V2.RestoreSourceType), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.RestoreInfo), global::Google.Cloud.Bigtable.Admin.V2.RestoreInfo.Parser, new[]{ "SourceType", "BackupInfo" }, new[]{ "SourceInfo" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.ChangeStreamConfig), global::Google.Cloud.Bigtable.Admin.V2.ChangeStreamConfig.Parser, new[]{ "RetentionPeriod" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.Table), global::Google.Cloud.Bigtable.Admin.V2.Table.Parser, new[]{ "Name", "ClusterStates", "ColumnFamilies", "Granularity", "RestoreInfo", "ChangeStreamConfig", "DeletionProtection", "AutomatedBackupPolicy" }, new[]{ "AutomatedBackupConfig" }, new[]{ typeof(global::Google.Cloud.Bigtable.Admin.V2.Table.Types.TimestampGranularity), typeof(global::Google.Cloud.Bigtable.Admin.V2.Table.Types.View) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.Table.Types.ClusterState), global::Google.Cloud.Bigtable.Admin.V2.Table.Types.ClusterState.Parser, new[]{ "ReplicationState", "EncryptionInfo" }, null, new[]{ typeof(global::Google.Cloud.Bigtable.Admin.V2.Table.Types.ClusterState.Types.ReplicationState) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.Table.Types.AutomatedBackupPolicy), global::Google.Cloud.Bigtable.Admin.V2.Table.Types.AutomatedBackupPolicy.Parser, new[]{ "RetentionPeriod", "Frequency" }, null, null, null, null), + null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView), global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Parser, new[]{ "Name", "SubsetView", "Etag", "DeletionProtection" }, new[]{ "AuthorizedView" }, new[]{ typeof(global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Types.ResponseView) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Types.FamilySubsets), global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Types.FamilySubsets.Parser, new[]{ "Qualifiers", "QualifierPrefixes" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Types.SubsetView), global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Types.SubsetView.Parser, new[]{ "RowPrefixes", "FamilySubsets" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, })}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.ColumnFamily), global::Google.Cloud.Bigtable.Admin.V2.ColumnFamily.Parser, new[]{ "GcRule", "ValueType" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.GcRule), global::Google.Cloud.Bigtable.Admin.V2.GcRule.Parser, new[]{ "MaxNumVersions", "MaxAge", "Intersection", "Union" }, new[]{ "Rule" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.GcRule.Types.Intersection), global::Google.Cloud.Bigtable.Admin.V2.GcRule.Types.Intersection.Parser, new[]{ "Rules" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.GcRule.Types.Union), global::Google.Cloud.Bigtable.Admin.V2.GcRule.Types.Union.Parser, new[]{ "Rules" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.EncryptionInfo), global::Google.Cloud.Bigtable.Admin.V2.EncryptionInfo.Parser, new[]{ "EncryptionType", "EncryptionStatus", "KmsKeyVersion" }, null, new[]{ typeof(global::Google.Cloud.Bigtable.Admin.V2.EncryptionInfo.Types.EncryptionType) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.Snapshot), global::Google.Cloud.Bigtable.Admin.V2.Snapshot.Parser, new[]{ "Name", "SourceTable", "DataSizeBytes", "CreateTime", "DeleteTime", "State", "Description" }, null, new[]{ typeof(global::Google.Cloud.Bigtable.Admin.V2.Snapshot.Types.State) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.Backup), global::Google.Cloud.Bigtable.Admin.V2.Backup.Parser, new[]{ "Name", "SourceTable", "SourceBackup", "ExpireTime", "StartTime", "EndTime", "SizeBytes", "State", "EncryptionInfo", "BackupType", "HotToStandardTime" }, null, new[]{ typeof(global::Google.Cloud.Bigtable.Admin.V2.Backup.Types.State), typeof(global::Google.Cloud.Bigtable.Admin.V2.Backup.Types.BackupType) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.BackupInfo), global::Google.Cloud.Bigtable.Admin.V2.BackupInfo.Parser, new[]{ "Backup", "StartTime", "EndTime", "SourceTable", "SourceBackup" }, null, null, null, null) + })); + } + #endregion + + } + #region Enums + /// + /// Indicates the type of the restore source. + /// + public enum RestoreSourceType { + /// + /// No restore associated. + /// + [pbr::OriginalName("RESTORE_SOURCE_TYPE_UNSPECIFIED")] Unspecified = 0, + /// + /// A backup was used as the source of the restore. + /// + [pbr::OriginalName("BACKUP")] Backup = 1, + } + + #endregion + + #region Messages + /// + /// Information about a table restore. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RestoreInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RestoreInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.TableReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RestoreInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RestoreInfo(RestoreInfo other) : this() { + sourceType_ = other.sourceType_; + switch (other.SourceInfoCase) { + case SourceInfoOneofCase.BackupInfo: + BackupInfo = other.BackupInfo.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RestoreInfo Clone() { + return new RestoreInfo(this); + } + + /// Field number for the "source_type" field. + public const int SourceTypeFieldNumber = 1; + private global::Google.Cloud.Bigtable.Admin.V2.RestoreSourceType sourceType_ = global::Google.Cloud.Bigtable.Admin.V2.RestoreSourceType.Unspecified; + /// + /// The type of the restore source. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.RestoreSourceType SourceType { + get { return sourceType_; } + set { + sourceType_ = value; + } + } + + /// Field number for the "backup_info" field. + public const int BackupInfoFieldNumber = 2; + /// + /// Information about the backup used to restore the table. The backup + /// may no longer exist. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.BackupInfo BackupInfo { + get { return sourceInfoCase_ == SourceInfoOneofCase.BackupInfo ? (global::Google.Cloud.Bigtable.Admin.V2.BackupInfo) sourceInfo_ : null; } + set { + sourceInfo_ = value; + sourceInfoCase_ = value == null ? SourceInfoOneofCase.None : SourceInfoOneofCase.BackupInfo; + } + } + + private object sourceInfo_; + /// Enum of possible cases for the "source_info" oneof. + public enum SourceInfoOneofCase { + None = 0, + BackupInfo = 2, + } + private SourceInfoOneofCase sourceInfoCase_ = SourceInfoOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SourceInfoOneofCase SourceInfoCase { + get { return sourceInfoCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSourceInfo() { + sourceInfoCase_ = SourceInfoOneofCase.None; + sourceInfo_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RestoreInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RestoreInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SourceType != other.SourceType) return false; + if (!object.Equals(BackupInfo, other.BackupInfo)) return false; + if (SourceInfoCase != other.SourceInfoCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (SourceType != global::Google.Cloud.Bigtable.Admin.V2.RestoreSourceType.Unspecified) hash ^= SourceType.GetHashCode(); + if (sourceInfoCase_ == SourceInfoOneofCase.BackupInfo) hash ^= BackupInfo.GetHashCode(); + hash ^= (int) sourceInfoCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (SourceType != global::Google.Cloud.Bigtable.Admin.V2.RestoreSourceType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) SourceType); + } + if (sourceInfoCase_ == SourceInfoOneofCase.BackupInfo) { + output.WriteRawTag(18); + output.WriteMessage(BackupInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (SourceType != global::Google.Cloud.Bigtable.Admin.V2.RestoreSourceType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) SourceType); + } + if (sourceInfoCase_ == SourceInfoOneofCase.BackupInfo) { + output.WriteRawTag(18); + output.WriteMessage(BackupInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (SourceType != global::Google.Cloud.Bigtable.Admin.V2.RestoreSourceType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SourceType); + } + if (sourceInfoCase_ == SourceInfoOneofCase.BackupInfo) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BackupInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RestoreInfo other) { + if (other == null) { + return; + } + if (other.SourceType != global::Google.Cloud.Bigtable.Admin.V2.RestoreSourceType.Unspecified) { + SourceType = other.SourceType; + } + switch (other.SourceInfoCase) { + case SourceInfoOneofCase.BackupInfo: + if (BackupInfo == null) { + BackupInfo = new global::Google.Cloud.Bigtable.Admin.V2.BackupInfo(); + } + BackupInfo.MergeFrom(other.BackupInfo); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + SourceType = (global::Google.Cloud.Bigtable.Admin.V2.RestoreSourceType) input.ReadEnum(); + break; + } + case 18: { + global::Google.Cloud.Bigtable.Admin.V2.BackupInfo subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.BackupInfo(); + if (sourceInfoCase_ == SourceInfoOneofCase.BackupInfo) { + subBuilder.MergeFrom(BackupInfo); + } + input.ReadMessage(subBuilder); + BackupInfo = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + SourceType = (global::Google.Cloud.Bigtable.Admin.V2.RestoreSourceType) input.ReadEnum(); + break; + } + case 18: { + global::Google.Cloud.Bigtable.Admin.V2.BackupInfo subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.BackupInfo(); + if (sourceInfoCase_ == SourceInfoOneofCase.BackupInfo) { + subBuilder.MergeFrom(BackupInfo); + } + input.ReadMessage(subBuilder); + BackupInfo = subBuilder; + break; + } + } + } + } + #endif + + } + + /// + /// Change stream configuration. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ChangeStreamConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChangeStreamConfig()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.TableReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChangeStreamConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChangeStreamConfig(ChangeStreamConfig other) : this() { + retentionPeriod_ = other.retentionPeriod_ != null ? other.retentionPeriod_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChangeStreamConfig Clone() { + return new ChangeStreamConfig(this); + } + + /// Field number for the "retention_period" field. + public const int RetentionPeriodFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Duration retentionPeriod_; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration RetentionPeriod { + get { return retentionPeriod_; } + set { + retentionPeriod_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChangeStreamConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChangeStreamConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RetentionPeriod, other.RetentionPeriod)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (retentionPeriod_ != null) hash ^= RetentionPeriod.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (retentionPeriod_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RetentionPeriod); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (retentionPeriod_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RetentionPeriod); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (retentionPeriod_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RetentionPeriod); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChangeStreamConfig other) { + if (other == null) { + return; + } + if (other.retentionPeriod_ != null) { + if (retentionPeriod_ == null) { + RetentionPeriod = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + RetentionPeriod.MergeFrom(other.RetentionPeriod); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (retentionPeriod_ == null) { + RetentionPeriod = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(RetentionPeriod); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (retentionPeriod_ == null) { + RetentionPeriod = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(RetentionPeriod); + break; + } + } + } + } + #endif + + } + + /// + /// A collection of user data indexed by row, column, and timestamp. + /// Each table is served using the resources of its parent cluster. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Table : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser
_parser = new pb::MessageParser
(() => new Table()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser
Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.TableReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Table() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Table(Table other) : this() { + name_ = other.name_; + clusterStates_ = other.clusterStates_.Clone(); + columnFamilies_ = other.columnFamilies_.Clone(); + granularity_ = other.granularity_; + restoreInfo_ = other.restoreInfo_ != null ? other.restoreInfo_.Clone() : null; + changeStreamConfig_ = other.changeStreamConfig_ != null ? other.changeStreamConfig_.Clone() : null; + deletionProtection_ = other.deletionProtection_; + switch (other.AutomatedBackupConfigCase) { + case AutomatedBackupConfigOneofCase.AutomatedBackupPolicy: + AutomatedBackupPolicy = other.AutomatedBackupPolicy.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Table Clone() { + return new Table(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private 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` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "cluster_states" field. + public const int ClusterStatesFieldNumber = 2; + private static readonly pbc::MapField.Codec _map_clusterStates_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Google.Cloud.Bigtable.Admin.V2.Table.Types.ClusterState.Parser), 18); + private readonly pbc::MapField clusterStates_ = new pbc::MapField(); + /// + /// 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` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField ClusterStates { + get { return clusterStates_; } + } + + /// Field number for the "column_families" field. + public const int ColumnFamiliesFieldNumber = 3; + private static readonly pbc::MapField.Codec _map_columnFamilies_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Google.Cloud.Bigtable.Admin.V2.ColumnFamily.Parser), 26); + private readonly pbc::MapField columnFamilies_ = new pbc::MapField(); + /// + /// The column families configured for this table, mapped by column family ID. + /// Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField ColumnFamilies { + get { return columnFamilies_; } + } + + /// Field number for the "granularity" field. + public const int GranularityFieldNumber = 4; + private global::Google.Cloud.Bigtable.Admin.V2.Table.Types.TimestampGranularity granularity_ = global::Google.Cloud.Bigtable.Admin.V2.Table.Types.TimestampGranularity.Unspecified; + /// + /// 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`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Table.Types.TimestampGranularity Granularity { + get { return granularity_; } + set { + granularity_ = value; + } + } + + /// Field number for the "restore_info" field. + public const int RestoreInfoFieldNumber = 6; + private global::Google.Cloud.Bigtable.Admin.V2.RestoreInfo restoreInfo_; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.RestoreInfo RestoreInfo { + get { return restoreInfo_; } + set { + restoreInfo_ = value; + } + } + + /// Field number for the "change_stream_config" field. + public const int ChangeStreamConfigFieldNumber = 8; + private global::Google.Cloud.Bigtable.Admin.V2.ChangeStreamConfig changeStreamConfig_; + /// + /// If specified, enable the change stream on this table. + /// Otherwise, the change stream is disabled and the change stream is not + /// retained. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.ChangeStreamConfig ChangeStreamConfig { + get { return changeStreamConfig_; } + set { + changeStreamConfig_ = value; + } + } + + /// Field number for the "deletion_protection" field. + public const int DeletionProtectionFieldNumber = 9; + private bool deletionProtection_; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool DeletionProtection { + get { return deletionProtection_; } + set { + deletionProtection_ = value; + } + } + + /// Field number for the "automated_backup_policy" field. + public const int AutomatedBackupPolicyFieldNumber = 13; + /// + /// If specified, automated backups are enabled for this table. + /// Otherwise, automated backups are disabled. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Table.Types.AutomatedBackupPolicy AutomatedBackupPolicy { + get { return automatedBackupConfigCase_ == AutomatedBackupConfigOneofCase.AutomatedBackupPolicy ? (global::Google.Cloud.Bigtable.Admin.V2.Table.Types.AutomatedBackupPolicy) automatedBackupConfig_ : null; } + set { + automatedBackupConfig_ = value; + automatedBackupConfigCase_ = value == null ? AutomatedBackupConfigOneofCase.None : AutomatedBackupConfigOneofCase.AutomatedBackupPolicy; + } + } + + private object automatedBackupConfig_; + /// Enum of possible cases for the "automated_backup_config" oneof. + public enum AutomatedBackupConfigOneofCase { + None = 0, + AutomatedBackupPolicy = 13, + } + private AutomatedBackupConfigOneofCase automatedBackupConfigCase_ = AutomatedBackupConfigOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AutomatedBackupConfigOneofCase AutomatedBackupConfigCase { + get { return automatedBackupConfigCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAutomatedBackupConfig() { + automatedBackupConfigCase_ = AutomatedBackupConfigOneofCase.None; + automatedBackupConfig_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Table); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Table other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (!ClusterStates.Equals(other.ClusterStates)) return false; + if (!ColumnFamilies.Equals(other.ColumnFamilies)) return false; + if (Granularity != other.Granularity) return false; + if (!object.Equals(RestoreInfo, other.RestoreInfo)) return false; + if (!object.Equals(ChangeStreamConfig, other.ChangeStreamConfig)) return false; + if (DeletionProtection != other.DeletionProtection) return false; + if (!object.Equals(AutomatedBackupPolicy, other.AutomatedBackupPolicy)) return false; + if (AutomatedBackupConfigCase != other.AutomatedBackupConfigCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + hash ^= ClusterStates.GetHashCode(); + hash ^= ColumnFamilies.GetHashCode(); + if (Granularity != global::Google.Cloud.Bigtable.Admin.V2.Table.Types.TimestampGranularity.Unspecified) hash ^= Granularity.GetHashCode(); + if (restoreInfo_ != null) hash ^= RestoreInfo.GetHashCode(); + if (changeStreamConfig_ != null) hash ^= ChangeStreamConfig.GetHashCode(); + if (DeletionProtection != false) hash ^= DeletionProtection.GetHashCode(); + if (automatedBackupConfigCase_ == AutomatedBackupConfigOneofCase.AutomatedBackupPolicy) hash ^= AutomatedBackupPolicy.GetHashCode(); + hash ^= (int) automatedBackupConfigCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + clusterStates_.WriteTo(output, _map_clusterStates_codec); + columnFamilies_.WriteTo(output, _map_columnFamilies_codec); + if (Granularity != global::Google.Cloud.Bigtable.Admin.V2.Table.Types.TimestampGranularity.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) Granularity); + } + if (restoreInfo_ != null) { + output.WriteRawTag(50); + output.WriteMessage(RestoreInfo); + } + if (changeStreamConfig_ != null) { + output.WriteRawTag(66); + output.WriteMessage(ChangeStreamConfig); + } + if (DeletionProtection != false) { + output.WriteRawTag(72); + output.WriteBool(DeletionProtection); + } + if (automatedBackupConfigCase_ == AutomatedBackupConfigOneofCase.AutomatedBackupPolicy) { + output.WriteRawTag(106); + output.WriteMessage(AutomatedBackupPolicy); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + clusterStates_.WriteTo(ref output, _map_clusterStates_codec); + columnFamilies_.WriteTo(ref output, _map_columnFamilies_codec); + if (Granularity != global::Google.Cloud.Bigtable.Admin.V2.Table.Types.TimestampGranularity.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) Granularity); + } + if (restoreInfo_ != null) { + output.WriteRawTag(50); + output.WriteMessage(RestoreInfo); + } + if (changeStreamConfig_ != null) { + output.WriteRawTag(66); + output.WriteMessage(ChangeStreamConfig); + } + if (DeletionProtection != false) { + output.WriteRawTag(72); + output.WriteBool(DeletionProtection); + } + if (automatedBackupConfigCase_ == AutomatedBackupConfigOneofCase.AutomatedBackupPolicy) { + output.WriteRawTag(106); + output.WriteMessage(AutomatedBackupPolicy); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + size += clusterStates_.CalculateSize(_map_clusterStates_codec); + size += columnFamilies_.CalculateSize(_map_columnFamilies_codec); + if (Granularity != global::Google.Cloud.Bigtable.Admin.V2.Table.Types.TimestampGranularity.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Granularity); + } + if (restoreInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RestoreInfo); + } + if (changeStreamConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChangeStreamConfig); + } + if (DeletionProtection != false) { + size += 1 + 1; + } + if (automatedBackupConfigCase_ == AutomatedBackupConfigOneofCase.AutomatedBackupPolicy) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AutomatedBackupPolicy); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Table other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + clusterStates_.MergeFrom(other.clusterStates_); + columnFamilies_.MergeFrom(other.columnFamilies_); + if (other.Granularity != global::Google.Cloud.Bigtable.Admin.V2.Table.Types.TimestampGranularity.Unspecified) { + Granularity = other.Granularity; + } + if (other.restoreInfo_ != null) { + if (restoreInfo_ == null) { + RestoreInfo = new global::Google.Cloud.Bigtable.Admin.V2.RestoreInfo(); + } + RestoreInfo.MergeFrom(other.RestoreInfo); + } + if (other.changeStreamConfig_ != null) { + if (changeStreamConfig_ == null) { + ChangeStreamConfig = new global::Google.Cloud.Bigtable.Admin.V2.ChangeStreamConfig(); + } + ChangeStreamConfig.MergeFrom(other.ChangeStreamConfig); + } + if (other.DeletionProtection != false) { + DeletionProtection = other.DeletionProtection; + } + switch (other.AutomatedBackupConfigCase) { + case AutomatedBackupConfigOneofCase.AutomatedBackupPolicy: + if (AutomatedBackupPolicy == null) { + AutomatedBackupPolicy = new global::Google.Cloud.Bigtable.Admin.V2.Table.Types.AutomatedBackupPolicy(); + } + AutomatedBackupPolicy.MergeFrom(other.AutomatedBackupPolicy); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + clusterStates_.AddEntriesFrom(input, _map_clusterStates_codec); + break; + } + case 26: { + columnFamilies_.AddEntriesFrom(input, _map_columnFamilies_codec); + break; + } + case 32: { + Granularity = (global::Google.Cloud.Bigtable.Admin.V2.Table.Types.TimestampGranularity) input.ReadEnum(); + break; + } + case 50: { + if (restoreInfo_ == null) { + RestoreInfo = new global::Google.Cloud.Bigtable.Admin.V2.RestoreInfo(); + } + input.ReadMessage(RestoreInfo); + break; + } + case 66: { + if (changeStreamConfig_ == null) { + ChangeStreamConfig = new global::Google.Cloud.Bigtable.Admin.V2.ChangeStreamConfig(); + } + input.ReadMessage(ChangeStreamConfig); + break; + } + case 72: { + DeletionProtection = input.ReadBool(); + break; + } + case 106: { + global::Google.Cloud.Bigtable.Admin.V2.Table.Types.AutomatedBackupPolicy subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Table.Types.AutomatedBackupPolicy(); + if (automatedBackupConfigCase_ == AutomatedBackupConfigOneofCase.AutomatedBackupPolicy) { + subBuilder.MergeFrom(AutomatedBackupPolicy); + } + input.ReadMessage(subBuilder); + AutomatedBackupPolicy = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + clusterStates_.AddEntriesFrom(ref input, _map_clusterStates_codec); + break; + } + case 26: { + columnFamilies_.AddEntriesFrom(ref input, _map_columnFamilies_codec); + break; + } + case 32: { + Granularity = (global::Google.Cloud.Bigtable.Admin.V2.Table.Types.TimestampGranularity) input.ReadEnum(); + break; + } + case 50: { + if (restoreInfo_ == null) { + RestoreInfo = new global::Google.Cloud.Bigtable.Admin.V2.RestoreInfo(); + } + input.ReadMessage(RestoreInfo); + break; + } + case 66: { + if (changeStreamConfig_ == null) { + ChangeStreamConfig = new global::Google.Cloud.Bigtable.Admin.V2.ChangeStreamConfig(); + } + input.ReadMessage(ChangeStreamConfig); + break; + } + case 72: { + DeletionProtection = input.ReadBool(); + break; + } + case 106: { + global::Google.Cloud.Bigtable.Admin.V2.Table.Types.AutomatedBackupPolicy subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Table.Types.AutomatedBackupPolicy(); + if (automatedBackupConfigCase_ == AutomatedBackupConfigOneofCase.AutomatedBackupPolicy) { + subBuilder.MergeFrom(AutomatedBackupPolicy); + } + input.ReadMessage(subBuilder); + AutomatedBackupPolicy = subBuilder; + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Table message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Possible timestamp granularities to use when keeping multiple versions + /// of data in a table. + /// + public enum TimestampGranularity { + /// + /// The user did not specify a granularity. Should not be returned. + /// When specified during table creation, MILLIS will be used. + /// + [pbr::OriginalName("TIMESTAMP_GRANULARITY_UNSPECIFIED")] Unspecified = 0, + /// + /// The table keeps data versioned at a granularity of 1ms. + /// + [pbr::OriginalName("MILLIS")] Millis = 1, + } + + /// + /// Defines a view over a table's fields. + /// + public enum View { + /// + /// Uses the default view for each method as documented in its request. + /// + [pbr::OriginalName("VIEW_UNSPECIFIED")] Unspecified = 0, + /// + /// Only populates `name`. + /// + [pbr::OriginalName("NAME_ONLY")] NameOnly = 1, + /// + /// Only populates `name` and fields related to the table's schema. + /// + [pbr::OriginalName("SCHEMA_VIEW")] SchemaView = 2, + /// + /// Only populates `name` and fields related to the table's replication + /// state. + /// + [pbr::OriginalName("REPLICATION_VIEW")] ReplicationView = 3, + /// + /// Only populates `name` and fields related to the table's encryption state. + /// + [pbr::OriginalName("ENCRYPTION_VIEW")] EncryptionView = 5, + /// + /// Populates all fields. + /// + [pbr::OriginalName("FULL")] Full = 4, + } + + /// + /// The state of a table's data in a particular cluster. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ClusterState : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClusterState()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.Table.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClusterState() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClusterState(ClusterState other) : this() { + replicationState_ = other.replicationState_; + encryptionInfo_ = other.encryptionInfo_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClusterState Clone() { + return new ClusterState(this); + } + + /// Field number for the "replication_state" field. + public const int ReplicationStateFieldNumber = 1; + private global::Google.Cloud.Bigtable.Admin.V2.Table.Types.ClusterState.Types.ReplicationState replicationState_ = global::Google.Cloud.Bigtable.Admin.V2.Table.Types.ClusterState.Types.ReplicationState.StateNotKnown; + /// + /// Output only. The state of replication for the table in this cluster. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Table.Types.ClusterState.Types.ReplicationState ReplicationState { + get { return replicationState_; } + set { + replicationState_ = value; + } + } + + /// Field number for the "encryption_info" field. + public const int EncryptionInfoFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_encryptionInfo_codec + = pb::FieldCodec.ForMessage(18, global::Google.Cloud.Bigtable.Admin.V2.EncryptionInfo.Parser); + private readonly pbc::RepeatedField encryptionInfo_ = new pbc::RepeatedField(); + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EncryptionInfo { + get { return encryptionInfo_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ClusterState); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ClusterState other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ReplicationState != other.ReplicationState) return false; + if(!encryptionInfo_.Equals(other.encryptionInfo_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ReplicationState != global::Google.Cloud.Bigtable.Admin.V2.Table.Types.ClusterState.Types.ReplicationState.StateNotKnown) hash ^= ReplicationState.GetHashCode(); + hash ^= encryptionInfo_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ReplicationState != global::Google.Cloud.Bigtable.Admin.V2.Table.Types.ClusterState.Types.ReplicationState.StateNotKnown) { + output.WriteRawTag(8); + output.WriteEnum((int) ReplicationState); + } + encryptionInfo_.WriteTo(output, _repeated_encryptionInfo_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ReplicationState != global::Google.Cloud.Bigtable.Admin.V2.Table.Types.ClusterState.Types.ReplicationState.StateNotKnown) { + output.WriteRawTag(8); + output.WriteEnum((int) ReplicationState); + } + encryptionInfo_.WriteTo(ref output, _repeated_encryptionInfo_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ReplicationState != global::Google.Cloud.Bigtable.Admin.V2.Table.Types.ClusterState.Types.ReplicationState.StateNotKnown) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ReplicationState); + } + size += encryptionInfo_.CalculateSize(_repeated_encryptionInfo_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ClusterState other) { + if (other == null) { + return; + } + if (other.ReplicationState != global::Google.Cloud.Bigtable.Admin.V2.Table.Types.ClusterState.Types.ReplicationState.StateNotKnown) { + ReplicationState = other.ReplicationState; + } + encryptionInfo_.Add(other.encryptionInfo_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ReplicationState = (global::Google.Cloud.Bigtable.Admin.V2.Table.Types.ClusterState.Types.ReplicationState) input.ReadEnum(); + break; + } + case 18: { + encryptionInfo_.AddEntriesFrom(input, _repeated_encryptionInfo_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ReplicationState = (global::Google.Cloud.Bigtable.Admin.V2.Table.Types.ClusterState.Types.ReplicationState) input.ReadEnum(); + break; + } + case 18: { + encryptionInfo_.AddEntriesFrom(ref input, _repeated_encryptionInfo_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the ClusterState message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Table replication states. + /// + public enum ReplicationState { + /// + /// The replication state of the table is unknown in this cluster. + /// + [pbr::OriginalName("STATE_NOT_KNOWN")] StateNotKnown = 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. + /// + [pbr::OriginalName("INITIALIZING")] Initializing = 1, + /// + /// The table is temporarily unable to serve Data API requests from this + /// cluster due to planned internal maintenance. + /// + [pbr::OriginalName("PLANNED_MAINTENANCE")] PlannedMaintenance = 2, + /// + /// The table is temporarily unable to serve Data API requests from this + /// cluster due to unplanned or emergency maintenance. + /// + [pbr::OriginalName("UNPLANNED_MAINTENANCE")] UnplannedMaintenance = 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. + /// + [pbr::OriginalName("READY")] 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. + /// + [pbr::OriginalName("READY_OPTIMIZING")] ReadyOptimizing = 5, + } + + } + #endregion + + } + + /// + /// Defines an automated backup policy for a table + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AutomatedBackupPolicy : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AutomatedBackupPolicy()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.Table.Descriptor.NestedTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AutomatedBackupPolicy() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AutomatedBackupPolicy(AutomatedBackupPolicy other) : this() { + retentionPeriod_ = other.retentionPeriod_ != null ? other.retentionPeriod_.Clone() : null; + frequency_ = other.frequency_ != null ? other.frequency_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AutomatedBackupPolicy Clone() { + return new AutomatedBackupPolicy(this); + } + + /// Field number for the "retention_period" field. + public const int RetentionPeriodFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Duration retentionPeriod_; + /// + /// Required. How long the automated backups should be retained. The only + /// supported value at this time is 3 days. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration RetentionPeriod { + get { return retentionPeriod_; } + set { + retentionPeriod_ = value; + } + } + + /// Field number for the "frequency" field. + public const int FrequencyFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Duration frequency_; + /// + /// Required. How frequently automated backups should occur. The only + /// supported value at this time is 24 hours. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration Frequency { + get { return frequency_; } + set { + frequency_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AutomatedBackupPolicy); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AutomatedBackupPolicy other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RetentionPeriod, other.RetentionPeriod)) return false; + if (!object.Equals(Frequency, other.Frequency)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (retentionPeriod_ != null) hash ^= RetentionPeriod.GetHashCode(); + if (frequency_ != null) hash ^= Frequency.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (retentionPeriod_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RetentionPeriod); + } + if (frequency_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Frequency); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (retentionPeriod_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RetentionPeriod); + } + if (frequency_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Frequency); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (retentionPeriod_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RetentionPeriod); + } + if (frequency_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Frequency); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AutomatedBackupPolicy other) { + if (other == null) { + return; + } + if (other.retentionPeriod_ != null) { + if (retentionPeriod_ == null) { + RetentionPeriod = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + RetentionPeriod.MergeFrom(other.RetentionPeriod); + } + if (other.frequency_ != null) { + if (frequency_ == null) { + Frequency = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + Frequency.MergeFrom(other.Frequency); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (retentionPeriod_ == null) { + RetentionPeriod = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(RetentionPeriod); + break; + } + case 18: { + if (frequency_ == null) { + Frequency = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(Frequency); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (retentionPeriod_ == null) { + RetentionPeriod = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(RetentionPeriod); + break; + } + case 18: { + if (frequency_ == null) { + Frequency = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(Frequency); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// AuthorizedViews represent subsets of a particular Cloud Bigtable table. Users + /// can configure access to each Authorized View independently from the table and + /// use the existing Data APIs to access the subset of data. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AuthorizedView : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AuthorizedView()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.TableReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AuthorizedView() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AuthorizedView(AuthorizedView other) : this() { + name_ = other.name_; + etag_ = other.etag_; + deletionProtection_ = other.deletionProtection_; + switch (other.AuthorizedViewCase) { + case AuthorizedViewOneofCase.SubsetView: + SubsetView = other.SubsetView.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AuthorizedView Clone() { + return new AuthorizedView(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Identifier. The name of this AuthorizedView. + /// Values are of the form + /// `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "subset_view" field. + public const int SubsetViewFieldNumber = 2; + /// + /// An AuthorizedView permitting access to an explicit subset of a Table. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Types.SubsetView SubsetView { + get { return authorizedViewCase_ == AuthorizedViewOneofCase.SubsetView ? (global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Types.SubsetView) authorizedView_ : null; } + set { + authorizedView_ = value; + authorizedViewCase_ = value == null ? AuthorizedViewOneofCase.None : AuthorizedViewOneofCase.SubsetView; + } + } + + /// Field number for the "etag" field. + public const int EtagFieldNumber = 3; + private 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Etag { + get { return etag_; } + set { + etag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "deletion_protection" field. + public const int DeletionProtectionFieldNumber = 4; + private bool deletionProtection_; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool DeletionProtection { + get { return deletionProtection_; } + set { + deletionProtection_ = value; + } + } + + private object authorizedView_; + /// Enum of possible cases for the "authorized_view" oneof. + public enum AuthorizedViewOneofCase { + None = 0, + SubsetView = 2, + } + private AuthorizedViewOneofCase authorizedViewCase_ = AuthorizedViewOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AuthorizedViewOneofCase AuthorizedViewCase { + get { return authorizedViewCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAuthorizedView() { + authorizedViewCase_ = AuthorizedViewOneofCase.None; + authorizedView_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AuthorizedView); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AuthorizedView other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (!object.Equals(SubsetView, other.SubsetView)) return false; + if (Etag != other.Etag) return false; + if (DeletionProtection != other.DeletionProtection) return false; + if (AuthorizedViewCase != other.AuthorizedViewCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (authorizedViewCase_ == AuthorizedViewOneofCase.SubsetView) hash ^= SubsetView.GetHashCode(); + if (Etag.Length != 0) hash ^= Etag.GetHashCode(); + if (DeletionProtection != false) hash ^= DeletionProtection.GetHashCode(); + hash ^= (int) authorizedViewCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (authorizedViewCase_ == AuthorizedViewOneofCase.SubsetView) { + output.WriteRawTag(18); + output.WriteMessage(SubsetView); + } + if (Etag.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Etag); + } + if (DeletionProtection != false) { + output.WriteRawTag(32); + output.WriteBool(DeletionProtection); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (authorizedViewCase_ == AuthorizedViewOneofCase.SubsetView) { + output.WriteRawTag(18); + output.WriteMessage(SubsetView); + } + if (Etag.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Etag); + } + if (DeletionProtection != false) { + output.WriteRawTag(32); + output.WriteBool(DeletionProtection); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (authorizedViewCase_ == AuthorizedViewOneofCase.SubsetView) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SubsetView); + } + if (Etag.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Etag); + } + if (DeletionProtection != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AuthorizedView other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Etag.Length != 0) { + Etag = other.Etag; + } + if (other.DeletionProtection != false) { + DeletionProtection = other.DeletionProtection; + } + switch (other.AuthorizedViewCase) { + case AuthorizedViewOneofCase.SubsetView: + if (SubsetView == null) { + SubsetView = new global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Types.SubsetView(); + } + SubsetView.MergeFrom(other.SubsetView); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Types.SubsetView subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Types.SubsetView(); + if (authorizedViewCase_ == AuthorizedViewOneofCase.SubsetView) { + subBuilder.MergeFrom(SubsetView); + } + input.ReadMessage(subBuilder); + SubsetView = subBuilder; + break; + } + case 26: { + Etag = input.ReadString(); + break; + } + case 32: { + DeletionProtection = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Types.SubsetView subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Types.SubsetView(); + if (authorizedViewCase_ == AuthorizedViewOneofCase.SubsetView) { + subBuilder.MergeFrom(SubsetView); + } + input.ReadMessage(subBuilder); + SubsetView = subBuilder; + break; + } + case 26: { + Etag = input.ReadString(); + break; + } + case 32: { + DeletionProtection = input.ReadBool(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the AuthorizedView message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Defines a subset of an AuthorizedView's fields. + /// + public enum ResponseView { + /// + /// Uses the default view for each method as documented in the request. + /// + [pbr::OriginalName("RESPONSE_VIEW_UNSPECIFIED")] Unspecified = 0, + /// + /// Only populates `name`. + /// + [pbr::OriginalName("NAME_ONLY")] NameOnly = 1, + /// + /// Only populates the AuthorizedView's basic metadata. This includes: + /// name, deletion_protection, etag. + /// + [pbr::OriginalName("BASIC")] Basic = 2, + /// + /// Populates every fields. + /// + [pbr::OriginalName("FULL")] Full = 3, + } + + /// + /// Subsets of a column family that are included in this AuthorizedView. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class FamilySubsets : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FamilySubsets()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FamilySubsets() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FamilySubsets(FamilySubsets other) : this() { + qualifiers_ = other.qualifiers_.Clone(); + qualifierPrefixes_ = other.qualifierPrefixes_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FamilySubsets Clone() { + return new FamilySubsets(this); + } + + /// Field number for the "qualifiers" field. + public const int QualifiersFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_qualifiers_codec + = pb::FieldCodec.ForBytes(10); + private readonly pbc::RepeatedField qualifiers_ = new pbc::RepeatedField(); + /// + /// Individual exact column qualifiers to be included in the AuthorizedView. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Qualifiers { + get { return qualifiers_; } + } + + /// Field number for the "qualifier_prefixes" field. + public const int QualifierPrefixesFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_qualifierPrefixes_codec + = pb::FieldCodec.ForBytes(18); + private readonly pbc::RepeatedField qualifierPrefixes_ = new pbc::RepeatedField(); + /// + /// 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 + /// (""). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField QualifierPrefixes { + get { return qualifierPrefixes_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as FamilySubsets); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FamilySubsets other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!qualifiers_.Equals(other.qualifiers_)) return false; + if(!qualifierPrefixes_.Equals(other.qualifierPrefixes_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= qualifiers_.GetHashCode(); + hash ^= qualifierPrefixes_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + qualifiers_.WriteTo(output, _repeated_qualifiers_codec); + qualifierPrefixes_.WriteTo(output, _repeated_qualifierPrefixes_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + qualifiers_.WriteTo(ref output, _repeated_qualifiers_codec); + qualifierPrefixes_.WriteTo(ref output, _repeated_qualifierPrefixes_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += qualifiers_.CalculateSize(_repeated_qualifiers_codec); + size += qualifierPrefixes_.CalculateSize(_repeated_qualifierPrefixes_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FamilySubsets other) { + if (other == null) { + return; + } + qualifiers_.Add(other.qualifiers_); + qualifierPrefixes_.Add(other.qualifierPrefixes_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + qualifiers_.AddEntriesFrom(input, _repeated_qualifiers_codec); + break; + } + case 18: { + qualifierPrefixes_.AddEntriesFrom(input, _repeated_qualifierPrefixes_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + qualifiers_.AddEntriesFrom(ref input, _repeated_qualifiers_codec); + break; + } + case 18: { + qualifierPrefixes_.AddEntriesFrom(ref input, _repeated_qualifierPrefixes_codec); + break; + } + } + } + } + #endif + + } + + /// + /// Defines a simple AuthorizedView that is a subset of the underlying Table. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SubsetView : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubsetView()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Descriptor.NestedTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SubsetView() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SubsetView(SubsetView other) : this() { + rowPrefixes_ = other.rowPrefixes_.Clone(); + familySubsets_ = other.familySubsets_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SubsetView Clone() { + return new SubsetView(this); + } + + /// Field number for the "row_prefixes" field. + public const int RowPrefixesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_rowPrefixes_codec + = pb::FieldCodec.ForBytes(10); + private readonly pbc::RepeatedField rowPrefixes_ = new pbc::RepeatedField(); + /// + /// Row prefixes to be included in the AuthorizedView. + /// To provide access to all rows, include the empty string as a prefix (""). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField RowPrefixes { + get { return rowPrefixes_; } + } + + /// Field number for the "family_subsets" field. + public const int FamilySubsetsFieldNumber = 2; + private static readonly pbc::MapField.Codec _map_familySubsets_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Google.Cloud.Bigtable.Admin.V2.AuthorizedView.Types.FamilySubsets.Parser), 18); + private readonly pbc::MapField familySubsets_ = new pbc::MapField(); + /// + /// Map from column family name to the columns in this family to be included + /// in the AuthorizedView. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField FamilySubsets { + get { return familySubsets_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SubsetView); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SubsetView other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!rowPrefixes_.Equals(other.rowPrefixes_)) return false; + if (!FamilySubsets.Equals(other.FamilySubsets)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= rowPrefixes_.GetHashCode(); + hash ^= FamilySubsets.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + rowPrefixes_.WriteTo(output, _repeated_rowPrefixes_codec); + familySubsets_.WriteTo(output, _map_familySubsets_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + rowPrefixes_.WriteTo(ref output, _repeated_rowPrefixes_codec); + familySubsets_.WriteTo(ref output, _map_familySubsets_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += rowPrefixes_.CalculateSize(_repeated_rowPrefixes_codec); + size += familySubsets_.CalculateSize(_map_familySubsets_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SubsetView other) { + if (other == null) { + return; + } + rowPrefixes_.Add(other.rowPrefixes_); + familySubsets_.MergeFrom(other.familySubsets_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + rowPrefixes_.AddEntriesFrom(input, _repeated_rowPrefixes_codec); + break; + } + case 18: { + familySubsets_.AddEntriesFrom(input, _map_familySubsets_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + rowPrefixes_.AddEntriesFrom(ref input, _repeated_rowPrefixes_codec); + break; + } + case 18: { + familySubsets_.AddEntriesFrom(ref input, _map_familySubsets_codec); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// A set of columns within a table which share a common configuration. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ColumnFamily : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ColumnFamily()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.TableReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ColumnFamily() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ColumnFamily(ColumnFamily other) : this() { + gcRule_ = other.gcRule_ != null ? other.gcRule_.Clone() : null; + valueType_ = other.valueType_ != null ? other.valueType_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ColumnFamily Clone() { + return new ColumnFamily(this); + } + + /// Field number for the "gc_rule" field. + public const int GcRuleFieldNumber = 1; + private global::Google.Cloud.Bigtable.Admin.V2.GcRule gcRule_; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.GcRule GcRule { + get { return gcRule_; } + set { + gcRule_ = value; + } + } + + /// Field number for the "value_type" field. + public const int ValueTypeFieldNumber = 3; + private global::Google.Cloud.Bigtable.Admin.V2.Type valueType_; + /// + /// 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 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Type ValueType { + get { return valueType_; } + set { + valueType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ColumnFamily); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ColumnFamily other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(GcRule, other.GcRule)) return false; + if (!object.Equals(ValueType, other.ValueType)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (gcRule_ != null) hash ^= GcRule.GetHashCode(); + if (valueType_ != null) hash ^= ValueType.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (gcRule_ != null) { + output.WriteRawTag(10); + output.WriteMessage(GcRule); + } + if (valueType_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ValueType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (gcRule_ != null) { + output.WriteRawTag(10); + output.WriteMessage(GcRule); + } + if (valueType_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ValueType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (gcRule_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GcRule); + } + if (valueType_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ValueType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ColumnFamily other) { + if (other == null) { + return; + } + if (other.gcRule_ != null) { + if (gcRule_ == null) { + GcRule = new global::Google.Cloud.Bigtable.Admin.V2.GcRule(); + } + GcRule.MergeFrom(other.GcRule); + } + if (other.valueType_ != null) { + if (valueType_ == null) { + ValueType = new global::Google.Cloud.Bigtable.Admin.V2.Type(); + } + ValueType.MergeFrom(other.ValueType); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (gcRule_ == null) { + GcRule = new global::Google.Cloud.Bigtable.Admin.V2.GcRule(); + } + input.ReadMessage(GcRule); + break; + } + case 26: { + if (valueType_ == null) { + ValueType = new global::Google.Cloud.Bigtable.Admin.V2.Type(); + } + input.ReadMessage(ValueType); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (gcRule_ == null) { + GcRule = new global::Google.Cloud.Bigtable.Admin.V2.GcRule(); + } + input.ReadMessage(GcRule); + break; + } + case 26: { + if (valueType_ == null) { + ValueType = new global::Google.Cloud.Bigtable.Admin.V2.Type(); + } + input.ReadMessage(ValueType); + break; + } + } + } + } + #endif + + } + + /// + /// Rule for determining which cells to delete during garbage collection. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GcRule : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GcRule()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.TableReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GcRule() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GcRule(GcRule other) : this() { + switch (other.RuleCase) { + case RuleOneofCase.MaxNumVersions: + MaxNumVersions = other.MaxNumVersions; + break; + case RuleOneofCase.MaxAge: + MaxAge = other.MaxAge.Clone(); + break; + case RuleOneofCase.Intersection: + Intersection = other.Intersection.Clone(); + break; + case RuleOneofCase.Union: + Union = other.Union.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GcRule Clone() { + return new GcRule(this); + } + + /// Field number for the "max_num_versions" field. + public const int MaxNumVersionsFieldNumber = 1; + /// + /// Delete all cells in a column except the most recent N. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaxNumVersions { + get { return HasMaxNumVersions ? (int) rule_ : 0; } + set { + rule_ = value; + ruleCase_ = RuleOneofCase.MaxNumVersions; + } + } + /// Gets whether the "max_num_versions" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMaxNumVersions { + get { return ruleCase_ == RuleOneofCase.MaxNumVersions; } + } + /// Clears the value of the oneof if it's currently set to "max_num_versions" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMaxNumVersions() { + if (HasMaxNumVersions) { + ClearRule(); + } + } + + /// Field number for the "max_age" field. + public const int MaxAgeFieldNumber = 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration MaxAge { + get { return ruleCase_ == RuleOneofCase.MaxAge ? (global::Google.Protobuf.WellKnownTypes.Duration) rule_ : null; } + set { + rule_ = value; + ruleCase_ = value == null ? RuleOneofCase.None : RuleOneofCase.MaxAge; + } + } + + /// Field number for the "intersection" field. + public const int IntersectionFieldNumber = 3; + /// + /// Delete cells that would be deleted by every nested rule. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.GcRule.Types.Intersection Intersection { + get { return ruleCase_ == RuleOneofCase.Intersection ? (global::Google.Cloud.Bigtable.Admin.V2.GcRule.Types.Intersection) rule_ : null; } + set { + rule_ = value; + ruleCase_ = value == null ? RuleOneofCase.None : RuleOneofCase.Intersection; + } + } + + /// Field number for the "union" field. + public const int UnionFieldNumber = 4; + /// + /// Delete cells that would be deleted by any nested rule. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.GcRule.Types.Union Union { + get { return ruleCase_ == RuleOneofCase.Union ? (global::Google.Cloud.Bigtable.Admin.V2.GcRule.Types.Union) rule_ : null; } + set { + rule_ = value; + ruleCase_ = value == null ? RuleOneofCase.None : RuleOneofCase.Union; + } + } + + private object rule_; + /// Enum of possible cases for the "rule" oneof. + public enum RuleOneofCase { + None = 0, + MaxNumVersions = 1, + MaxAge = 2, + Intersection = 3, + Union = 4, + } + private RuleOneofCase ruleCase_ = RuleOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RuleOneofCase RuleCase { + get { return ruleCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRule() { + ruleCase_ = RuleOneofCase.None; + rule_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GcRule); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GcRule other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MaxNumVersions != other.MaxNumVersions) return false; + if (!object.Equals(MaxAge, other.MaxAge)) return false; + if (!object.Equals(Intersection, other.Intersection)) return false; + if (!object.Equals(Union, other.Union)) return false; + if (RuleCase != other.RuleCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasMaxNumVersions) hash ^= MaxNumVersions.GetHashCode(); + if (ruleCase_ == RuleOneofCase.MaxAge) hash ^= MaxAge.GetHashCode(); + if (ruleCase_ == RuleOneofCase.Intersection) hash ^= Intersection.GetHashCode(); + if (ruleCase_ == RuleOneofCase.Union) hash ^= Union.GetHashCode(); + hash ^= (int) ruleCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasMaxNumVersions) { + output.WriteRawTag(8); + output.WriteInt32(MaxNumVersions); + } + if (ruleCase_ == RuleOneofCase.MaxAge) { + output.WriteRawTag(18); + output.WriteMessage(MaxAge); + } + if (ruleCase_ == RuleOneofCase.Intersection) { + output.WriteRawTag(26); + output.WriteMessage(Intersection); + } + if (ruleCase_ == RuleOneofCase.Union) { + output.WriteRawTag(34); + output.WriteMessage(Union); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasMaxNumVersions) { + output.WriteRawTag(8); + output.WriteInt32(MaxNumVersions); + } + if (ruleCase_ == RuleOneofCase.MaxAge) { + output.WriteRawTag(18); + output.WriteMessage(MaxAge); + } + if (ruleCase_ == RuleOneofCase.Intersection) { + output.WriteRawTag(26); + output.WriteMessage(Intersection); + } + if (ruleCase_ == RuleOneofCase.Union) { + output.WriteRawTag(34); + output.WriteMessage(Union); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasMaxNumVersions) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxNumVersions); + } + if (ruleCase_ == RuleOneofCase.MaxAge) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MaxAge); + } + if (ruleCase_ == RuleOneofCase.Intersection) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Intersection); + } + if (ruleCase_ == RuleOneofCase.Union) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Union); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GcRule other) { + if (other == null) { + return; + } + switch (other.RuleCase) { + case RuleOneofCase.MaxNumVersions: + MaxNumVersions = other.MaxNumVersions; + break; + case RuleOneofCase.MaxAge: + if (MaxAge == null) { + MaxAge = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + MaxAge.MergeFrom(other.MaxAge); + break; + case RuleOneofCase.Intersection: + if (Intersection == null) { + Intersection = new global::Google.Cloud.Bigtable.Admin.V2.GcRule.Types.Intersection(); + } + Intersection.MergeFrom(other.Intersection); + break; + case RuleOneofCase.Union: + if (Union == null) { + Union = new global::Google.Cloud.Bigtable.Admin.V2.GcRule.Types.Union(); + } + Union.MergeFrom(other.Union); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + MaxNumVersions = input.ReadInt32(); + break; + } + case 18: { + global::Google.Protobuf.WellKnownTypes.Duration subBuilder = new global::Google.Protobuf.WellKnownTypes.Duration(); + if (ruleCase_ == RuleOneofCase.MaxAge) { + subBuilder.MergeFrom(MaxAge); + } + input.ReadMessage(subBuilder); + MaxAge = subBuilder; + break; + } + case 26: { + global::Google.Cloud.Bigtable.Admin.V2.GcRule.Types.Intersection subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.GcRule.Types.Intersection(); + if (ruleCase_ == RuleOneofCase.Intersection) { + subBuilder.MergeFrom(Intersection); + } + input.ReadMessage(subBuilder); + Intersection = subBuilder; + break; + } + case 34: { + global::Google.Cloud.Bigtable.Admin.V2.GcRule.Types.Union subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.GcRule.Types.Union(); + if (ruleCase_ == RuleOneofCase.Union) { + subBuilder.MergeFrom(Union); + } + input.ReadMessage(subBuilder); + Union = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + MaxNumVersions = input.ReadInt32(); + break; + } + case 18: { + global::Google.Protobuf.WellKnownTypes.Duration subBuilder = new global::Google.Protobuf.WellKnownTypes.Duration(); + if (ruleCase_ == RuleOneofCase.MaxAge) { + subBuilder.MergeFrom(MaxAge); + } + input.ReadMessage(subBuilder); + MaxAge = subBuilder; + break; + } + case 26: { + global::Google.Cloud.Bigtable.Admin.V2.GcRule.Types.Intersection subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.GcRule.Types.Intersection(); + if (ruleCase_ == RuleOneofCase.Intersection) { + subBuilder.MergeFrom(Intersection); + } + input.ReadMessage(subBuilder); + Intersection = subBuilder; + break; + } + case 34: { + global::Google.Cloud.Bigtable.Admin.V2.GcRule.Types.Union subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.GcRule.Types.Union(); + if (ruleCase_ == RuleOneofCase.Union) { + subBuilder.MergeFrom(Union); + } + input.ReadMessage(subBuilder); + Union = subBuilder; + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the GcRule message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// A GcRule which deletes cells matching all of the given rules. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Intersection : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Intersection()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.GcRule.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Intersection() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Intersection(Intersection other) : this() { + rules_ = other.rules_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Intersection Clone() { + return new Intersection(this); + } + + /// Field number for the "rules" field. + public const int RulesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_rules_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.Bigtable.Admin.V2.GcRule.Parser); + private readonly pbc::RepeatedField rules_ = new pbc::RepeatedField(); + /// + /// Only delete cells which would be deleted by every element of `rules`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Rules { + get { return rules_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Intersection); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Intersection other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!rules_.Equals(other.rules_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= rules_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + rules_.WriteTo(output, _repeated_rules_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + rules_.WriteTo(ref output, _repeated_rules_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += rules_.CalculateSize(_repeated_rules_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Intersection other) { + if (other == null) { + return; + } + rules_.Add(other.rules_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + rules_.AddEntriesFrom(input, _repeated_rules_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + rules_.AddEntriesFrom(ref input, _repeated_rules_codec); + break; + } + } + } + } + #endif + + } + + /// + /// A GcRule which deletes cells matching any of the given rules. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Union : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Union()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.GcRule.Descriptor.NestedTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Union() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Union(Union other) : this() { + rules_ = other.rules_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Union Clone() { + return new Union(this); + } + + /// Field number for the "rules" field. + public const int RulesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_rules_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.Bigtable.Admin.V2.GcRule.Parser); + private readonly pbc::RepeatedField rules_ = new pbc::RepeatedField(); + /// + /// Delete cells which would be deleted by any element of `rules`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Rules { + get { return rules_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Union); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Union other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!rules_.Equals(other.rules_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= rules_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + rules_.WriteTo(output, _repeated_rules_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + rules_.WriteTo(ref output, _repeated_rules_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += rules_.CalculateSize(_repeated_rules_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Union other) { + if (other == null) { + return; + } + rules_.Add(other.rules_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + rules_.AddEntriesFrom(input, _repeated_rules_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + rules_.AddEntriesFrom(ref input, _repeated_rules_codec); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// Encryption information for a given resource. + /// If this resource is protected with customer managed encryption, the in-use + /// Cloud Key Management Service (Cloud KMS) key version is specified along with + /// its status. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EncryptionInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EncryptionInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.TableReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EncryptionInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EncryptionInfo(EncryptionInfo other) : this() { + encryptionType_ = other.encryptionType_; + encryptionStatus_ = other.encryptionStatus_ != null ? other.encryptionStatus_.Clone() : null; + kmsKeyVersion_ = other.kmsKeyVersion_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EncryptionInfo Clone() { + return new EncryptionInfo(this); + } + + /// Field number for the "encryption_type" field. + public const int EncryptionTypeFieldNumber = 3; + private global::Google.Cloud.Bigtable.Admin.V2.EncryptionInfo.Types.EncryptionType encryptionType_ = global::Google.Cloud.Bigtable.Admin.V2.EncryptionInfo.Types.EncryptionType.Unspecified; + /// + /// Output only. The type of encryption used to protect this resource. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.EncryptionInfo.Types.EncryptionType EncryptionType { + get { return encryptionType_; } + set { + encryptionType_ = value; + } + } + + /// Field number for the "encryption_status" field. + public const int EncryptionStatusFieldNumber = 4; + private global::Google.Rpc.Status encryptionStatus_; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Rpc.Status EncryptionStatus { + get { return encryptionStatus_; } + set { + encryptionStatus_ = value; + } + } + + /// Field number for the "kms_key_version" field. + public const int KmsKeyVersionFieldNumber = 2; + private string kmsKeyVersion_ = ""; + /// + /// Output only. The version of the Cloud KMS key specified in the parent + /// cluster that is in use for the data underlying this table. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string KmsKeyVersion { + get { return kmsKeyVersion_; } + set { + kmsKeyVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EncryptionInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EncryptionInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (EncryptionType != other.EncryptionType) return false; + if (!object.Equals(EncryptionStatus, other.EncryptionStatus)) return false; + if (KmsKeyVersion != other.KmsKeyVersion) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (EncryptionType != global::Google.Cloud.Bigtable.Admin.V2.EncryptionInfo.Types.EncryptionType.Unspecified) hash ^= EncryptionType.GetHashCode(); + if (encryptionStatus_ != null) hash ^= EncryptionStatus.GetHashCode(); + if (KmsKeyVersion.Length != 0) hash ^= KmsKeyVersion.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (KmsKeyVersion.Length != 0) { + output.WriteRawTag(18); + output.WriteString(KmsKeyVersion); + } + if (EncryptionType != global::Google.Cloud.Bigtable.Admin.V2.EncryptionInfo.Types.EncryptionType.Unspecified) { + output.WriteRawTag(24); + output.WriteEnum((int) EncryptionType); + } + if (encryptionStatus_ != null) { + output.WriteRawTag(34); + output.WriteMessage(EncryptionStatus); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (KmsKeyVersion.Length != 0) { + output.WriteRawTag(18); + output.WriteString(KmsKeyVersion); + } + if (EncryptionType != global::Google.Cloud.Bigtable.Admin.V2.EncryptionInfo.Types.EncryptionType.Unspecified) { + output.WriteRawTag(24); + output.WriteEnum((int) EncryptionType); + } + if (encryptionStatus_ != null) { + output.WriteRawTag(34); + output.WriteMessage(EncryptionStatus); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (EncryptionType != global::Google.Cloud.Bigtable.Admin.V2.EncryptionInfo.Types.EncryptionType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EncryptionType); + } + if (encryptionStatus_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EncryptionStatus); + } + if (KmsKeyVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(KmsKeyVersion); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EncryptionInfo other) { + if (other == null) { + return; + } + if (other.EncryptionType != global::Google.Cloud.Bigtable.Admin.V2.EncryptionInfo.Types.EncryptionType.Unspecified) { + EncryptionType = other.EncryptionType; + } + if (other.encryptionStatus_ != null) { + if (encryptionStatus_ == null) { + EncryptionStatus = new global::Google.Rpc.Status(); + } + EncryptionStatus.MergeFrom(other.EncryptionStatus); + } + if (other.KmsKeyVersion.Length != 0) { + KmsKeyVersion = other.KmsKeyVersion; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 18: { + KmsKeyVersion = input.ReadString(); + break; + } + case 24: { + EncryptionType = (global::Google.Cloud.Bigtable.Admin.V2.EncryptionInfo.Types.EncryptionType) input.ReadEnum(); + break; + } + case 34: { + if (encryptionStatus_ == null) { + EncryptionStatus = new global::Google.Rpc.Status(); + } + input.ReadMessage(EncryptionStatus); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 18: { + KmsKeyVersion = input.ReadString(); + break; + } + case 24: { + EncryptionType = (global::Google.Cloud.Bigtable.Admin.V2.EncryptionInfo.Types.EncryptionType) input.ReadEnum(); + break; + } + case 34: { + if (encryptionStatus_ == null) { + EncryptionStatus = new global::Google.Rpc.Status(); + } + input.ReadMessage(EncryptionStatus); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the EncryptionInfo message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Possible encryption types for a resource. + /// + public enum EncryptionType { + /// + /// Encryption type was not specified, though data at rest remains encrypted. + /// + [pbr::OriginalName("ENCRYPTION_TYPE_UNSPECIFIED")] 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. + /// + [pbr::OriginalName("GOOGLE_DEFAULT_ENCRYPTION")] GoogleDefaultEncryption = 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`. + /// + [pbr::OriginalName("CUSTOMER_MANAGED_ENCRYPTION")] CustomerManagedEncryption = 2, + } + + } + #endregion + + } + + /// + /// A snapshot of a table at a particular time. A snapshot can be used as a + /// checkpoint for data restoration or a data source for a new table. + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Snapshot : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Snapshot()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.TableReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Snapshot() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Snapshot(Snapshot other) : this() { + name_ = other.name_; + sourceTable_ = other.sourceTable_ != null ? other.sourceTable_.Clone() : null; + dataSizeBytes_ = other.dataSizeBytes_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + deleteTime_ = other.deleteTime_ != null ? other.deleteTime_.Clone() : null; + state_ = other.state_; + description_ = other.description_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Snapshot Clone() { + return new Snapshot(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// The unique name of the snapshot. + /// Values are of the form + /// `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "source_table" field. + public const int SourceTableFieldNumber = 2; + private global::Google.Cloud.Bigtable.Admin.V2.Table sourceTable_; + /// + /// Output only. The source table at the time the snapshot was taken. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Table SourceTable { + get { return sourceTable_; } + set { + sourceTable_ = value; + } + } + + /// Field number for the "data_size_bytes" field. + public const int DataSizeBytesFieldNumber = 3; + private long dataSizeBytes_; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long DataSizeBytes { + get { return dataSizeBytes_; } + set { + dataSizeBytes_ = value; + } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. The time when the snapshot is created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "delete_time" field. + public const int DeleteTimeFieldNumber = 5; + private global::Google.Protobuf.WellKnownTypes.Timestamp deleteTime_; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp DeleteTime { + get { return deleteTime_; } + set { + deleteTime_ = value; + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 6; + private global::Google.Cloud.Bigtable.Admin.V2.Snapshot.Types.State state_ = global::Google.Cloud.Bigtable.Admin.V2.Snapshot.Types.State.NotKnown; + /// + /// Output only. The current state of the snapshot. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Snapshot.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 7; + private string description_ = ""; + /// + /// Description of the snapshot. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Snapshot); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Snapshot other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (!object.Equals(SourceTable, other.SourceTable)) return false; + if (DataSizeBytes != other.DataSizeBytes) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(DeleteTime, other.DeleteTime)) return false; + if (State != other.State) return false; + if (Description != other.Description) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (sourceTable_ != null) hash ^= SourceTable.GetHashCode(); + if (DataSizeBytes != 0L) hash ^= DataSizeBytes.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (deleteTime_ != null) hash ^= DeleteTime.GetHashCode(); + if (State != global::Google.Cloud.Bigtable.Admin.V2.Snapshot.Types.State.NotKnown) hash ^= State.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (sourceTable_ != null) { + output.WriteRawTag(18); + output.WriteMessage(SourceTable); + } + if (DataSizeBytes != 0L) { + output.WriteRawTag(24); + output.WriteInt64(DataSizeBytes); + } + if (createTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(CreateTime); + } + if (deleteTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(DeleteTime); + } + if (State != global::Google.Cloud.Bigtable.Admin.V2.Snapshot.Types.State.NotKnown) { + output.WriteRawTag(48); + output.WriteEnum((int) State); + } + if (Description.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Description); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (sourceTable_ != null) { + output.WriteRawTag(18); + output.WriteMessage(SourceTable); + } + if (DataSizeBytes != 0L) { + output.WriteRawTag(24); + output.WriteInt64(DataSizeBytes); + } + if (createTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(CreateTime); + } + if (deleteTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(DeleteTime); + } + if (State != global::Google.Cloud.Bigtable.Admin.V2.Snapshot.Types.State.NotKnown) { + output.WriteRawTag(48); + output.WriteEnum((int) State); + } + if (Description.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Description); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (sourceTable_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourceTable); + } + if (DataSizeBytes != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(DataSizeBytes); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (deleteTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeleteTime); + } + if (State != global::Google.Cloud.Bigtable.Admin.V2.Snapshot.Types.State.NotKnown) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Snapshot other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.sourceTable_ != null) { + if (sourceTable_ == null) { + SourceTable = new global::Google.Cloud.Bigtable.Admin.V2.Table(); + } + SourceTable.MergeFrom(other.SourceTable); + } + if (other.DataSizeBytes != 0L) { + DataSizeBytes = other.DataSizeBytes; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.deleteTime_ != null) { + if (deleteTime_ == null) { + DeleteTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + DeleteTime.MergeFrom(other.DeleteTime); + } + if (other.State != global::Google.Cloud.Bigtable.Admin.V2.Snapshot.Types.State.NotKnown) { + State = other.State; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + if (sourceTable_ == null) { + SourceTable = new global::Google.Cloud.Bigtable.Admin.V2.Table(); + } + input.ReadMessage(SourceTable); + break; + } + case 24: { + DataSizeBytes = input.ReadInt64(); + break; + } + case 34: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 42: { + if (deleteTime_ == null) { + DeleteTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(DeleteTime); + break; + } + case 48: { + State = (global::Google.Cloud.Bigtable.Admin.V2.Snapshot.Types.State) input.ReadEnum(); + break; + } + case 58: { + Description = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + if (sourceTable_ == null) { + SourceTable = new global::Google.Cloud.Bigtable.Admin.V2.Table(); + } + input.ReadMessage(SourceTable); + break; + } + case 24: { + DataSizeBytes = input.ReadInt64(); + break; + } + case 34: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 42: { + if (deleteTime_ == null) { + DeleteTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(DeleteTime); + break; + } + case 48: { + State = (global::Google.Cloud.Bigtable.Admin.V2.Snapshot.Types.State) input.ReadEnum(); + break; + } + case 58: { + Description = input.ReadString(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Snapshot message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Possible states of a snapshot. + /// + public enum State { + /// + /// The state of the snapshot could not be determined. + /// + [pbr::OriginalName("STATE_NOT_KNOWN")] NotKnown = 0, + /// + /// The snapshot has been successfully created and can serve all requests. + /// + [pbr::OriginalName("READY")] 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. + /// + [pbr::OriginalName("CREATING")] Creating = 2, + } + + } + #endregion + + } + + /// + /// A backup of a Cloud Bigtable table. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Backup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Backup()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.TableReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Backup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Backup(Backup other) : this() { + name_ = other.name_; + sourceTable_ = other.sourceTable_; + sourceBackup_ = other.sourceBackup_; + expireTime_ = other.expireTime_ != null ? other.expireTime_.Clone() : null; + startTime_ = other.startTime_ != null ? other.startTime_.Clone() : null; + endTime_ = other.endTime_ != null ? other.endTime_.Clone() : null; + sizeBytes_ = other.sizeBytes_; + state_ = other.state_; + encryptionInfo_ = other.encryptionInfo_ != null ? other.encryptionInfo_.Clone() : null; + backupType_ = other.backupType_; + hotToStandardTime_ = other.hotToStandardTime_ != null ? other.hotToStandardTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Backup Clone() { + return new Backup(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private 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}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "source_table" field. + public const int SourceTableFieldNumber = 2; + private string sourceTable_ = ""; + /// + /// 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}`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SourceTable { + get { return sourceTable_; } + set { + sourceTable_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "source_backup" field. + public const int SourceBackupFieldNumber = 10; + private string sourceBackup_ = ""; + /// + /// 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/<project>/instances/<instance>/clusters/<cluster>/backups/<backup> + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SourceBackup { + get { return sourceBackup_; } + set { + sourceBackup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "expire_time" field. + public const int ExpireTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp expireTime_; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp ExpireTime { + get { return expireTime_; } + set { + expireTime_ = value; + } + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 4; + private global::Google.Protobuf.WellKnownTypes.Timestamp startTime_; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp StartTime { + get { return startTime_; } + set { + startTime_ = value; + } + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 5; + private global::Google.Protobuf.WellKnownTypes.Timestamp endTime_; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + + /// Field number for the "size_bytes" field. + public const int SizeBytesFieldNumber = 6; + private long sizeBytes_; + /// + /// Output only. Size of the backup in bytes. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long SizeBytes { + get { return sizeBytes_; } + set { + sizeBytes_ = value; + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 7; + private global::Google.Cloud.Bigtable.Admin.V2.Backup.Types.State state_ = global::Google.Cloud.Bigtable.Admin.V2.Backup.Types.State.Unspecified; + /// + /// Output only. The current state of the backup. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Backup.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "encryption_info" field. + public const int EncryptionInfoFieldNumber = 9; + private global::Google.Cloud.Bigtable.Admin.V2.EncryptionInfo encryptionInfo_; + /// + /// Output only. The encryption information for the backup. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.EncryptionInfo EncryptionInfo { + get { return encryptionInfo_; } + set { + encryptionInfo_ = value; + } + } + + /// Field number for the "backup_type" field. + public const int BackupTypeFieldNumber = 11; + private global::Google.Cloud.Bigtable.Admin.V2.Backup.Types.BackupType backupType_ = global::Google.Cloud.Bigtable.Admin.V2.Backup.Types.BackupType.Unspecified; + /// + /// Indicates the backup type of the backup. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Backup.Types.BackupType BackupType { + get { return backupType_; } + set { + backupType_ = value; + } + } + + /// Field number for the "hot_to_standard_time" field. + public const int HotToStandardTimeFieldNumber = 12; + private global::Google.Protobuf.WellKnownTypes.Timestamp hotToStandardTime_; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp HotToStandardTime { + get { return hotToStandardTime_; } + set { + hotToStandardTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Backup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Backup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (SourceTable != other.SourceTable) return false; + if (SourceBackup != other.SourceBackup) return false; + if (!object.Equals(ExpireTime, other.ExpireTime)) return false; + if (!object.Equals(StartTime, other.StartTime)) return false; + if (!object.Equals(EndTime, other.EndTime)) return false; + if (SizeBytes != other.SizeBytes) return false; + if (State != other.State) return false; + if (!object.Equals(EncryptionInfo, other.EncryptionInfo)) return false; + if (BackupType != other.BackupType) return false; + if (!object.Equals(HotToStandardTime, other.HotToStandardTime)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (SourceTable.Length != 0) hash ^= SourceTable.GetHashCode(); + if (SourceBackup.Length != 0) hash ^= SourceBackup.GetHashCode(); + if (expireTime_ != null) hash ^= ExpireTime.GetHashCode(); + if (startTime_ != null) hash ^= StartTime.GetHashCode(); + if (endTime_ != null) hash ^= EndTime.GetHashCode(); + if (SizeBytes != 0L) hash ^= SizeBytes.GetHashCode(); + if (State != global::Google.Cloud.Bigtable.Admin.V2.Backup.Types.State.Unspecified) hash ^= State.GetHashCode(); + if (encryptionInfo_ != null) hash ^= EncryptionInfo.GetHashCode(); + if (BackupType != global::Google.Cloud.Bigtable.Admin.V2.Backup.Types.BackupType.Unspecified) hash ^= BackupType.GetHashCode(); + if (hotToStandardTime_ != null) hash ^= HotToStandardTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (SourceTable.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SourceTable); + } + if (expireTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ExpireTime); + } + if (startTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(StartTime); + } + if (endTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(EndTime); + } + if (SizeBytes != 0L) { + output.WriteRawTag(48); + output.WriteInt64(SizeBytes); + } + if (State != global::Google.Cloud.Bigtable.Admin.V2.Backup.Types.State.Unspecified) { + output.WriteRawTag(56); + output.WriteEnum((int) State); + } + if (encryptionInfo_ != null) { + output.WriteRawTag(74); + output.WriteMessage(EncryptionInfo); + } + if (SourceBackup.Length != 0) { + output.WriteRawTag(82); + output.WriteString(SourceBackup); + } + if (BackupType != global::Google.Cloud.Bigtable.Admin.V2.Backup.Types.BackupType.Unspecified) { + output.WriteRawTag(88); + output.WriteEnum((int) BackupType); + } + if (hotToStandardTime_ != null) { + output.WriteRawTag(98); + output.WriteMessage(HotToStandardTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (SourceTable.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SourceTable); + } + if (expireTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ExpireTime); + } + if (startTime_ != null) { + output.WriteRawTag(34); + output.WriteMessage(StartTime); + } + if (endTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(EndTime); + } + if (SizeBytes != 0L) { + output.WriteRawTag(48); + output.WriteInt64(SizeBytes); + } + if (State != global::Google.Cloud.Bigtable.Admin.V2.Backup.Types.State.Unspecified) { + output.WriteRawTag(56); + output.WriteEnum((int) State); + } + if (encryptionInfo_ != null) { + output.WriteRawTag(74); + output.WriteMessage(EncryptionInfo); + } + if (SourceBackup.Length != 0) { + output.WriteRawTag(82); + output.WriteString(SourceBackup); + } + if (BackupType != global::Google.Cloud.Bigtable.Admin.V2.Backup.Types.BackupType.Unspecified) { + output.WriteRawTag(88); + output.WriteEnum((int) BackupType); + } + if (hotToStandardTime_ != null) { + output.WriteRawTag(98); + output.WriteMessage(HotToStandardTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (SourceTable.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SourceTable); + } + if (SourceBackup.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SourceBackup); + } + if (expireTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpireTime); + } + if (startTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTime); + } + if (endTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTime); + } + if (SizeBytes != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(SizeBytes); + } + if (State != global::Google.Cloud.Bigtable.Admin.V2.Backup.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (encryptionInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EncryptionInfo); + } + if (BackupType != global::Google.Cloud.Bigtable.Admin.V2.Backup.Types.BackupType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) BackupType); + } + if (hotToStandardTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(HotToStandardTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Backup other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.SourceTable.Length != 0) { + SourceTable = other.SourceTable; + } + if (other.SourceBackup.Length != 0) { + SourceBackup = other.SourceBackup; + } + if (other.expireTime_ != null) { + if (expireTime_ == null) { + ExpireTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + ExpireTime.MergeFrom(other.ExpireTime); + } + if (other.startTime_ != null) { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + StartTime.MergeFrom(other.StartTime); + } + if (other.endTime_ != null) { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + EndTime.MergeFrom(other.EndTime); + } + if (other.SizeBytes != 0L) { + SizeBytes = other.SizeBytes; + } + if (other.State != global::Google.Cloud.Bigtable.Admin.V2.Backup.Types.State.Unspecified) { + State = other.State; + } + if (other.encryptionInfo_ != null) { + if (encryptionInfo_ == null) { + EncryptionInfo = new global::Google.Cloud.Bigtable.Admin.V2.EncryptionInfo(); + } + EncryptionInfo.MergeFrom(other.EncryptionInfo); + } + if (other.BackupType != global::Google.Cloud.Bigtable.Admin.V2.Backup.Types.BackupType.Unspecified) { + BackupType = other.BackupType; + } + if (other.hotToStandardTime_ != null) { + if (hotToStandardTime_ == null) { + HotToStandardTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + HotToStandardTime.MergeFrom(other.HotToStandardTime); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + SourceTable = input.ReadString(); + break; + } + case 26: { + if (expireTime_ == null) { + ExpireTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ExpireTime); + break; + } + case 34: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 42: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 48: { + SizeBytes = input.ReadInt64(); + break; + } + case 56: { + State = (global::Google.Cloud.Bigtable.Admin.V2.Backup.Types.State) input.ReadEnum(); + break; + } + case 74: { + if (encryptionInfo_ == null) { + EncryptionInfo = new global::Google.Cloud.Bigtable.Admin.V2.EncryptionInfo(); + } + input.ReadMessage(EncryptionInfo); + break; + } + case 82: { + SourceBackup = input.ReadString(); + break; + } + case 88: { + BackupType = (global::Google.Cloud.Bigtable.Admin.V2.Backup.Types.BackupType) input.ReadEnum(); + break; + } + case 98: { + if (hotToStandardTime_ == null) { + HotToStandardTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(HotToStandardTime); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + SourceTable = input.ReadString(); + break; + } + case 26: { + if (expireTime_ == null) { + ExpireTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ExpireTime); + break; + } + case 34: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 42: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 48: { + SizeBytes = input.ReadInt64(); + break; + } + case 56: { + State = (global::Google.Cloud.Bigtable.Admin.V2.Backup.Types.State) input.ReadEnum(); + break; + } + case 74: { + if (encryptionInfo_ == null) { + EncryptionInfo = new global::Google.Cloud.Bigtable.Admin.V2.EncryptionInfo(); + } + input.ReadMessage(EncryptionInfo); + break; + } + case 82: { + SourceBackup = input.ReadString(); + break; + } + case 88: { + BackupType = (global::Google.Cloud.Bigtable.Admin.V2.Backup.Types.BackupType) input.ReadEnum(); + break; + } + case 98: { + if (hotToStandardTime_ == null) { + HotToStandardTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(HotToStandardTime); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Backup message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Indicates the current state of the backup. + /// + public enum State { + /// + /// Not specified. + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The pending backup is still being created. Operations on the + /// backup may fail with `FAILED_PRECONDITION` in this state. + /// + [pbr::OriginalName("CREATING")] Creating = 1, + /// + /// The backup is complete and ready for use. + /// + [pbr::OriginalName("READY")] Ready = 2, + } + + /// + /// The type of the backup. + /// + public enum BackupType { + /// + /// Not specified. + /// + [pbr::OriginalName("BACKUP_TYPE_UNSPECIFIED")] 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. + /// + [pbr::OriginalName("STANDARD")] 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. + /// + [pbr::OriginalName("HOT")] Hot = 2, + } + + } + #endregion + + } + + /// + /// Information about a backup. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BackupInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BackupInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.TableReflection.Descriptor.MessageTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BackupInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BackupInfo(BackupInfo other) : this() { + backup_ = other.backup_; + startTime_ = other.startTime_ != null ? other.startTime_.Clone() : null; + endTime_ = other.endTime_ != null ? other.endTime_.Clone() : null; + sourceTable_ = other.sourceTable_; + sourceBackup_ = other.sourceBackup_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BackupInfo Clone() { + return new BackupInfo(this); + } + + /// Field number for the "backup" field. + public const int BackupFieldNumber = 1; + private string backup_ = ""; + /// + /// Output only. Name of the backup. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Backup { + get { return backup_; } + set { + backup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp startTime_; + /// + /// Output only. The time that the backup was started. Row data in the backup + /// will be no older than this timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp StartTime { + get { return startTime_; } + set { + startTime_ = value; + } + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp endTime_; + /// + /// Output only. This time that the backup was finished. Row data in the + /// backup will be no newer than this timestamp. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + + /// Field number for the "source_table" field. + public const int SourceTableFieldNumber = 4; + private string sourceTable_ = ""; + /// + /// Output only. Name of the table the backup was created from. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SourceTable { + get { return sourceTable_; } + set { + sourceTable_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "source_backup" field. + public const int SourceBackupFieldNumber = 10; + private string sourceBackup_ = ""; + /// + /// 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/<project>/instances/<instance>/clusters/<cluster>/backups/<backup> + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SourceBackup { + get { return sourceBackup_; } + set { + sourceBackup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BackupInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BackupInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Backup != other.Backup) return false; + if (!object.Equals(StartTime, other.StartTime)) return false; + if (!object.Equals(EndTime, other.EndTime)) return false; + if (SourceTable != other.SourceTable) return false; + if (SourceBackup != other.SourceBackup) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Backup.Length != 0) hash ^= Backup.GetHashCode(); + if (startTime_ != null) hash ^= StartTime.GetHashCode(); + if (endTime_ != null) hash ^= EndTime.GetHashCode(); + if (SourceTable.Length != 0) hash ^= SourceTable.GetHashCode(); + if (SourceBackup.Length != 0) hash ^= SourceBackup.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Backup.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Backup); + } + if (startTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(StartTime); + } + if (endTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(EndTime); + } + if (SourceTable.Length != 0) { + output.WriteRawTag(34); + output.WriteString(SourceTable); + } + if (SourceBackup.Length != 0) { + output.WriteRawTag(82); + output.WriteString(SourceBackup); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Backup.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Backup); + } + if (startTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(StartTime); + } + if (endTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(EndTime); + } + if (SourceTable.Length != 0) { + output.WriteRawTag(34); + output.WriteString(SourceTable); + } + if (SourceBackup.Length != 0) { + output.WriteRawTag(82); + output.WriteString(SourceBackup); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Backup.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Backup); + } + if (startTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartTime); + } + if (endTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTime); + } + if (SourceTable.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SourceTable); + } + if (SourceBackup.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SourceBackup); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BackupInfo other) { + if (other == null) { + return; + } + if (other.Backup.Length != 0) { + Backup = other.Backup; + } + if (other.startTime_ != null) { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + StartTime.MergeFrom(other.StartTime); + } + if (other.endTime_ != null) { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + EndTime.MergeFrom(other.EndTime); + } + if (other.SourceTable.Length != 0) { + SourceTable = other.SourceTable; + } + if (other.SourceBackup.Length != 0) { + SourceBackup = other.SourceBackup; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Backup = input.ReadString(); + break; + } + case 18: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 26: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 34: { + SourceTable = input.ReadString(); + break; + } + case 82: { + SourceBackup = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Backup = input.ReadString(); + break; + } + case 18: { + if (startTime_ == null) { + StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartTime); + break; + } + case 26: { + if (endTime_ == null) { + EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(EndTime); + break; + } + case 34: { + SourceTable = input.ReadString(); + break; + } + case 82: { + SourceBackup = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/TableResourceNames.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/TableResourceNames.g.cs new file mode 100755 index 000000000000..fa32adba3ded --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/TableResourceNames.g.cs @@ -0,0 +1,1434 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +#pragma warning disable CS8981 +using gax = Google.Api.Gax; +using gcbav = Google.Cloud.Bigtable.Admin.V2; +using sys = System; + +namespace Google.Cloud.Bigtable.Admin.V2 +{ + /// Resource name for the Table resource. + public sealed partial class TableName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// A resource name with pattern projects/{project}/instances/{instance}/tables/{table}. + /// + ProjectInstanceTable = 1, + } + + private static gax::PathTemplate s_projectInstanceTable = new gax::PathTemplate("projects/{project}/instances/{instance}/tables/{table}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided . + /// + public static TableName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new TableName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern projects/{project}/instances/{instance}/tables/{table} + /// . + /// + /// The Project ID. Must not be null or empty. + /// The Instance ID. Must not be null or empty. + /// The Table ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static TableName FromProjectInstanceTable(string projectId, string instanceId, string tableId) => + new TableName(ResourceNameType.ProjectInstanceTable, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), instanceId: gax::GaxPreconditions.CheckNotNullOrEmpty(instanceId, nameof(instanceId)), tableId: gax::GaxPreconditions.CheckNotNullOrEmpty(tableId, nameof(tableId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/instances/{instance}/tables/{table}. + /// + /// The Project ID. Must not be null or empty. + /// The Instance ID. Must not be null or empty. + /// The Table ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/instances/{instance}/tables/{table}. + /// + public static string Format(string projectId, string instanceId, string tableId) => + FormatProjectInstanceTable(projectId, instanceId, tableId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/instances/{instance}/tables/{table}. + /// + /// The Project ID. Must not be null or empty. + /// The Instance ID. Must not be null or empty. + /// The Table ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/instances/{instance}/tables/{table}. + /// + public static string FormatProjectInstanceTable(string projectId, string instanceId, string tableId) => + s_projectInstanceTable.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(instanceId, nameof(instanceId)), gax::GaxPreconditions.CheckNotNullOrEmpty(tableId, nameof(tableId))); + + /// Parses the given resource name string into a new instance. + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// projects/{project}/instances/{instance}/tables/{table} + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static TableName Parse(string tableName) => Parse(tableName, false); + + /// + /// Parses the given resource name string into a new instance; optionally allowing an + /// unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// projects/{project}/instances/{instance}/tables/{table} + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// The parsed if successful. + public static TableName Parse(string tableName, bool allowUnparsed) => + TryParse(tableName, allowUnparsed, out TableName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); + + /// + /// Tries to parse the given resource name string into a new instance. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// projects/{project}/instances/{instance}/tables/{table} + /// + /// + /// The resource name in string form. Must not be null. + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string tableName, out TableName result) => TryParse(tableName, false, out result); + + /// + /// Tries to parse the given resource name string into a new instance; optionally + /// allowing an unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// projects/{project}/instances/{instance}/tables/{table} + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string tableName, bool allowUnparsed, out TableName result) + { + gax::GaxPreconditions.CheckNotNull(tableName, nameof(tableName)); + gax::TemplatedResourceName resourceName; + if (s_projectInstanceTable.TryParseName(tableName, out resourceName)) + { + result = FromProjectInstanceTable(resourceName[0], resourceName[1], resourceName[2]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(tableName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private TableName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string instanceId = null, string projectId = null, string tableId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + InstanceId = instanceId; + ProjectId = projectId; + TableId = tableId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// projects/{project}/instances/{instance}/tables/{table} + /// + /// The Project ID. Must not be null or empty. + /// The Instance ID. Must not be null or empty. + /// The Table ID. Must not be null or empty. + public TableName(string projectId, string instanceId, string tableId) : this(ResourceNameType.ProjectInstanceTable, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), instanceId: gax::GaxPreconditions.CheckNotNullOrEmpty(instanceId, nameof(instanceId)), tableId: gax::GaxPreconditions.CheckNotNullOrEmpty(tableId, nameof(tableId))) + { + } + + /// The of the contained resource name. + public ResourceNameType Type { get; } + + /// + /// The contained . Only non-null if this instance contains an + /// unparsed resource name. + /// + public gax::UnparsedResourceName UnparsedResource { get; } + + /// + /// The Instance ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string InstanceId { get; } + + /// + /// The Project ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string ProjectId { get; } + + /// + /// The Table ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string TableId { get; } + + /// Whether this instance contains a resource name with a known pattern. + public bool IsKnownPattern => Type != ResourceNameType.Unparsed; + + /// The string representation of the resource name. + /// The string representation of the resource name. + public override string ToString() + { + switch (Type) + { + case ResourceNameType.Unparsed: return UnparsedResource.ToString(); + case ResourceNameType.ProjectInstanceTable: return s_projectInstanceTable.Expand(ProjectId, InstanceId, TableId); + default: throw new sys::InvalidOperationException("Unrecognized resource-type."); + } + } + + /// Returns a hash code for this resource name. + public override int GetHashCode() => ToString().GetHashCode(); + + /// + public override bool Equals(object obj) => Equals(obj as TableName); + + /// + public bool Equals(TableName other) => ToString() == other?.ToString(); + + /// Determines whether two specified resource names have the same value. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is the same as the value of ; otherwise, + /// false. + /// + public static bool operator ==(TableName a, TableName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); + + /// Determines whether two specified resource names have different values. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is different from the value of ; otherwise, + /// false. + /// + public static bool operator !=(TableName a, TableName b) => !(a == b); + } + + /// Resource name for the AuthorizedView resource. + public sealed partial class AuthorizedViewName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// A resource name with pattern + /// projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}. + /// + ProjectInstanceTableAuthorizedView = 1, + } + + private static gax::PathTemplate s_projectInstanceTableAuthorizedView = new gax::PathTemplate("projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static AuthorizedViewName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new AuthorizedViewName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern + /// projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}. + /// + /// The Project ID. Must not be null or empty. + /// The Instance ID. Must not be null or empty. + /// The Table ID. Must not be null or empty. + /// The AuthorizedView ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static AuthorizedViewName FromProjectInstanceTableAuthorizedView(string projectId, string instanceId, string tableId, string authorizedViewId) => + new AuthorizedViewName(ResourceNameType.ProjectInstanceTableAuthorizedView, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), instanceId: gax::GaxPreconditions.CheckNotNullOrEmpty(instanceId, nameof(instanceId)), tableId: gax::GaxPreconditions.CheckNotNullOrEmpty(tableId, nameof(tableId)), authorizedViewId: gax::GaxPreconditions.CheckNotNullOrEmpty(authorizedViewId, nameof(authorizedViewId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}. + /// + /// The Project ID. Must not be null or empty. + /// The Instance ID. Must not be null or empty. + /// The Table ID. Must not be null or empty. + /// The AuthorizedView ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}. + /// + public static string Format(string projectId, string instanceId, string tableId, string authorizedViewId) => + FormatProjectInstanceTableAuthorizedView(projectId, instanceId, tableId, authorizedViewId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}. + /// + /// The Project ID. Must not be null or empty. + /// The Instance ID. Must not be null or empty. + /// The Table ID. Must not be null or empty. + /// The AuthorizedView ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}. + /// + public static string FormatProjectInstanceTableAuthorizedView(string projectId, string instanceId, string tableId, string authorizedViewId) => + s_projectInstanceTableAuthorizedView.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(instanceId, nameof(instanceId)), gax::GaxPreconditions.CheckNotNullOrEmpty(tableId, nameof(tableId)), gax::GaxPreconditions.CheckNotNullOrEmpty(authorizedViewId, nameof(authorizedViewId))); + + /// + /// Parses the given resource name string into a new instance. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// + /// projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view} + /// + /// + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static AuthorizedViewName Parse(string authorizedViewName) => Parse(authorizedViewName, false); + + /// + /// Parses the given resource name string into a new instance; optionally + /// allowing an unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// + /// projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view} + /// + /// + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// The parsed if successful. + public static AuthorizedViewName Parse(string authorizedViewName, bool allowUnparsed) => + TryParse(authorizedViewName, allowUnparsed, out AuthorizedViewName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); + + /// + /// Tries to parse the given resource name string into a new instance. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// + /// projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view} + /// + /// + /// + /// + /// The resource name in string form. Must not be null. + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string authorizedViewName, out AuthorizedViewName result) => + TryParse(authorizedViewName, false, out result); + + /// + /// Tries to parse the given resource name string into a new instance; + /// optionally allowing an unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// + /// projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view} + /// + /// + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string authorizedViewName, bool allowUnparsed, out AuthorizedViewName result) + { + gax::GaxPreconditions.CheckNotNull(authorizedViewName, nameof(authorizedViewName)); + gax::TemplatedResourceName resourceName; + if (s_projectInstanceTableAuthorizedView.TryParseName(authorizedViewName, out resourceName)) + { + result = FromProjectInstanceTableAuthorizedView(resourceName[0], resourceName[1], resourceName[2], resourceName[3]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(authorizedViewName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private AuthorizedViewName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string authorizedViewId = null, string instanceId = null, string projectId = null, string tableId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + AuthorizedViewId = authorizedViewId; + InstanceId = instanceId; + ProjectId = projectId; + TableId = tableId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view} + /// + /// The Project ID. Must not be null or empty. + /// The Instance ID. Must not be null or empty. + /// The Table ID. Must not be null or empty. + /// The AuthorizedView ID. Must not be null or empty. + public AuthorizedViewName(string projectId, string instanceId, string tableId, string authorizedViewId) : this(ResourceNameType.ProjectInstanceTableAuthorizedView, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), instanceId: gax::GaxPreconditions.CheckNotNullOrEmpty(instanceId, nameof(instanceId)), tableId: gax::GaxPreconditions.CheckNotNullOrEmpty(tableId, nameof(tableId)), authorizedViewId: gax::GaxPreconditions.CheckNotNullOrEmpty(authorizedViewId, nameof(authorizedViewId))) + { + } + + /// The of the contained resource name. + public ResourceNameType Type { get; } + + /// + /// The contained . Only non-null if this instance contains an + /// unparsed resource name. + /// + public gax::UnparsedResourceName UnparsedResource { get; } + + /// + /// The AuthorizedView ID. Will not be null, unless this instance contains an unparsed resource + /// name. + /// + public string AuthorizedViewId { get; } + + /// + /// The Instance ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string InstanceId { get; } + + /// + /// The Project ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string ProjectId { get; } + + /// + /// The Table ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string TableId { get; } + + /// Whether this instance contains a resource name with a known pattern. + public bool IsKnownPattern => Type != ResourceNameType.Unparsed; + + /// The string representation of the resource name. + /// The string representation of the resource name. + public override string ToString() + { + switch (Type) + { + case ResourceNameType.Unparsed: return UnparsedResource.ToString(); + case ResourceNameType.ProjectInstanceTableAuthorizedView: return s_projectInstanceTableAuthorizedView.Expand(ProjectId, InstanceId, TableId, AuthorizedViewId); + default: throw new sys::InvalidOperationException("Unrecognized resource-type."); + } + } + + /// Returns a hash code for this resource name. + public override int GetHashCode() => ToString().GetHashCode(); + + /// + public override bool Equals(object obj) => Equals(obj as AuthorizedViewName); + + /// + public bool Equals(AuthorizedViewName other) => ToString() == other?.ToString(); + + /// Determines whether two specified resource names have the same value. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is the same as the value of ; otherwise, + /// false. + /// + public static bool operator ==(AuthorizedViewName a, AuthorizedViewName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); + + /// Determines whether two specified resource names have different values. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is different from the value of ; otherwise, + /// false. + /// + public static bool operator !=(AuthorizedViewName a, AuthorizedViewName b) => !(a == b); + } + + /// Resource name for the Snapshot resource. + public sealed partial class SnapshotName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// A resource name with pattern + /// projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}. + /// + ProjectInstanceClusterSnapshot = 1, + } + + private static gax::PathTemplate s_projectInstanceClusterSnapshot = new gax::PathTemplate("projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static SnapshotName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new SnapshotName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern + /// projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}. + /// + /// The Project ID. Must not be null or empty. + /// The Instance ID. Must not be null or empty. + /// The Cluster ID. Must not be null or empty. + /// The Snapshot ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static SnapshotName FromProjectInstanceClusterSnapshot(string projectId, string instanceId, string clusterId, string snapshotId) => + new SnapshotName(ResourceNameType.ProjectInstanceClusterSnapshot, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), instanceId: gax::GaxPreconditions.CheckNotNullOrEmpty(instanceId, nameof(instanceId)), clusterId: gax::GaxPreconditions.CheckNotNullOrEmpty(clusterId, nameof(clusterId)), snapshotId: gax::GaxPreconditions.CheckNotNullOrEmpty(snapshotId, nameof(snapshotId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}. + /// + /// The Project ID. Must not be null or empty. + /// The Instance ID. Must not be null or empty. + /// The Cluster ID. Must not be null or empty. + /// The Snapshot ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}. + /// + public static string Format(string projectId, string instanceId, string clusterId, string snapshotId) => + FormatProjectInstanceClusterSnapshot(projectId, instanceId, clusterId, snapshotId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}. + /// + /// The Project ID. Must not be null or empty. + /// The Instance ID. Must not be null or empty. + /// The Cluster ID. Must not be null or empty. + /// The Snapshot ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}. + /// + public static string FormatProjectInstanceClusterSnapshot(string projectId, string instanceId, string clusterId, string snapshotId) => + s_projectInstanceClusterSnapshot.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(instanceId, nameof(instanceId)), gax::GaxPreconditions.CheckNotNullOrEmpty(clusterId, nameof(clusterId)), gax::GaxPreconditions.CheckNotNullOrEmpty(snapshotId, nameof(snapshotId))); + + /// Parses the given resource name string into a new instance. + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// + /// projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot} + /// + /// + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static SnapshotName Parse(string snapshotName) => Parse(snapshotName, false); + + /// + /// Parses the given resource name string into a new instance; optionally allowing an + /// unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// + /// projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot} + /// + /// + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// The parsed if successful. + public static SnapshotName Parse(string snapshotName, bool allowUnparsed) => + TryParse(snapshotName, allowUnparsed, out SnapshotName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); + + /// + /// Tries to parse the given resource name string into a new instance. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// + /// projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot} + /// + /// + /// + /// + /// The resource name in string form. Must not be null. + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string snapshotName, out SnapshotName result) => TryParse(snapshotName, false, out result); + + /// + /// Tries to parse the given resource name string into a new instance; optionally + /// allowing an unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// + /// projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot} + /// + /// + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string snapshotName, bool allowUnparsed, out SnapshotName result) + { + gax::GaxPreconditions.CheckNotNull(snapshotName, nameof(snapshotName)); + gax::TemplatedResourceName resourceName; + if (s_projectInstanceClusterSnapshot.TryParseName(snapshotName, out resourceName)) + { + result = FromProjectInstanceClusterSnapshot(resourceName[0], resourceName[1], resourceName[2], resourceName[3]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(snapshotName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private SnapshotName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string clusterId = null, string instanceId = null, string projectId = null, string snapshotId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + ClusterId = clusterId; + InstanceId = instanceId; + ProjectId = projectId; + SnapshotId = snapshotId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot} + /// + /// The Project ID. Must not be null or empty. + /// The Instance ID. Must not be null or empty. + /// The Cluster ID. Must not be null or empty. + /// The Snapshot ID. Must not be null or empty. + public SnapshotName(string projectId, string instanceId, string clusterId, string snapshotId) : this(ResourceNameType.ProjectInstanceClusterSnapshot, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), instanceId: gax::GaxPreconditions.CheckNotNullOrEmpty(instanceId, nameof(instanceId)), clusterId: gax::GaxPreconditions.CheckNotNullOrEmpty(clusterId, nameof(clusterId)), snapshotId: gax::GaxPreconditions.CheckNotNullOrEmpty(snapshotId, nameof(snapshotId))) + { + } + + /// The of the contained resource name. + public ResourceNameType Type { get; } + + /// + /// The contained . Only non-null if this instance contains an + /// unparsed resource name. + /// + public gax::UnparsedResourceName UnparsedResource { get; } + + /// + /// The Cluster ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string ClusterId { get; } + + /// + /// The Instance ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string InstanceId { get; } + + /// + /// The Project ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string ProjectId { get; } + + /// + /// The Snapshot ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string SnapshotId { get; } + + /// Whether this instance contains a resource name with a known pattern. + public bool IsKnownPattern => Type != ResourceNameType.Unparsed; + + /// The string representation of the resource name. + /// The string representation of the resource name. + public override string ToString() + { + switch (Type) + { + case ResourceNameType.Unparsed: return UnparsedResource.ToString(); + case ResourceNameType.ProjectInstanceClusterSnapshot: return s_projectInstanceClusterSnapshot.Expand(ProjectId, InstanceId, ClusterId, SnapshotId); + default: throw new sys::InvalidOperationException("Unrecognized resource-type."); + } + } + + /// Returns a hash code for this resource name. + public override int GetHashCode() => ToString().GetHashCode(); + + /// + public override bool Equals(object obj) => Equals(obj as SnapshotName); + + /// + public bool Equals(SnapshotName other) => ToString() == other?.ToString(); + + /// Determines whether two specified resource names have the same value. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is the same as the value of ; otherwise, + /// false. + /// + public static bool operator ==(SnapshotName a, SnapshotName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); + + /// Determines whether two specified resource names have different values. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is different from the value of ; otherwise, + /// false. + /// + public static bool operator !=(SnapshotName a, SnapshotName b) => !(a == b); + } + + /// Resource name for the Backup resource. + public sealed partial class BackupName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// A resource name with pattern + /// projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}. + /// + ProjectInstanceClusterBackup = 1, + } + + private static gax::PathTemplate s_projectInstanceClusterBackup = new gax::PathTemplate("projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided . + /// + public static BackupName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new BackupName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern + /// projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}. + /// + /// The Project ID. Must not be null or empty. + /// The Instance ID. Must not be null or empty. + /// The Cluster ID. Must not be null or empty. + /// The Backup ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static BackupName FromProjectInstanceClusterBackup(string projectId, string instanceId, string clusterId, string backupId) => + new BackupName(ResourceNameType.ProjectInstanceClusterBackup, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), instanceId: gax::GaxPreconditions.CheckNotNullOrEmpty(instanceId, nameof(instanceId)), clusterId: gax::GaxPreconditions.CheckNotNullOrEmpty(clusterId, nameof(clusterId)), backupId: gax::GaxPreconditions.CheckNotNullOrEmpty(backupId, nameof(backupId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}. + /// + /// The Project ID. Must not be null or empty. + /// The Instance ID. Must not be null or empty. + /// The Cluster ID. Must not be null or empty. + /// The Backup ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}. + /// + public static string Format(string projectId, string instanceId, string clusterId, string backupId) => + FormatProjectInstanceClusterBackup(projectId, instanceId, clusterId, backupId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}. + /// + /// The Project ID. Must not be null or empty. + /// The Instance ID. Must not be null or empty. + /// The Cluster ID. Must not be null or empty. + /// The Backup ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}. + /// + public static string FormatProjectInstanceClusterBackup(string projectId, string instanceId, string clusterId, string backupId) => + s_projectInstanceClusterBackup.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(instanceId, nameof(instanceId)), gax::GaxPreconditions.CheckNotNullOrEmpty(clusterId, nameof(clusterId)), gax::GaxPreconditions.CheckNotNullOrEmpty(backupId, nameof(backupId))); + + /// Parses the given resource name string into a new instance. + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// + /// projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup} + /// + /// + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static BackupName Parse(string backupName) => Parse(backupName, false); + + /// + /// Parses the given resource name string into a new instance; optionally allowing an + /// unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// + /// projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup} + /// + /// + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// The parsed if successful. + public static BackupName Parse(string backupName, bool allowUnparsed) => + TryParse(backupName, allowUnparsed, out BackupName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); + + /// + /// Tries to parse the given resource name string into a new instance. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// + /// projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup} + /// + /// + /// + /// + /// The resource name in string form. Must not be null. + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string backupName, out BackupName result) => TryParse(backupName, false, out result); + + /// + /// Tries to parse the given resource name string into a new instance; optionally + /// allowing an unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// + /// projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup} + /// + /// + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string backupName, bool allowUnparsed, out BackupName result) + { + gax::GaxPreconditions.CheckNotNull(backupName, nameof(backupName)); + gax::TemplatedResourceName resourceName; + if (s_projectInstanceClusterBackup.TryParseName(backupName, out resourceName)) + { + result = FromProjectInstanceClusterBackup(resourceName[0], resourceName[1], resourceName[2], resourceName[3]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(backupName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private BackupName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string backupId = null, string clusterId = null, string instanceId = null, string projectId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + BackupId = backupId; + ClusterId = clusterId; + InstanceId = instanceId; + ProjectId = projectId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup} + /// + /// The Project ID. Must not be null or empty. + /// The Instance ID. Must not be null or empty. + /// The Cluster ID. Must not be null or empty. + /// The Backup ID. Must not be null or empty. + public BackupName(string projectId, string instanceId, string clusterId, string backupId) : this(ResourceNameType.ProjectInstanceClusterBackup, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), instanceId: gax::GaxPreconditions.CheckNotNullOrEmpty(instanceId, nameof(instanceId)), clusterId: gax::GaxPreconditions.CheckNotNullOrEmpty(clusterId, nameof(clusterId)), backupId: gax::GaxPreconditions.CheckNotNullOrEmpty(backupId, nameof(backupId))) + { + } + + /// The of the contained resource name. + public ResourceNameType Type { get; } + + /// + /// The contained . Only non-null if this instance contains an + /// unparsed resource name. + /// + public gax::UnparsedResourceName UnparsedResource { get; } + + /// + /// The Backup ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string BackupId { get; } + + /// + /// The Cluster ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string ClusterId { get; } + + /// + /// The Instance ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string InstanceId { get; } + + /// + /// The Project ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string ProjectId { get; } + + /// Whether this instance contains a resource name with a known pattern. + public bool IsKnownPattern => Type != ResourceNameType.Unparsed; + + /// The string representation of the resource name. + /// The string representation of the resource name. + public override string ToString() + { + switch (Type) + { + case ResourceNameType.Unparsed: return UnparsedResource.ToString(); + case ResourceNameType.ProjectInstanceClusterBackup: return s_projectInstanceClusterBackup.Expand(ProjectId, InstanceId, ClusterId, BackupId); + default: throw new sys::InvalidOperationException("Unrecognized resource-type."); + } + } + + /// Returns a hash code for this resource name. + public override int GetHashCode() => ToString().GetHashCode(); + + /// + public override bool Equals(object obj) => Equals(obj as BackupName); + + /// + public bool Equals(BackupName other) => ToString() == other?.ToString(); + + /// Determines whether two specified resource names have the same value. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is the same as the value of ; otherwise, + /// false. + /// + public static bool operator ==(BackupName a, BackupName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); + + /// Determines whether two specified resource names have different values. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is different from the value of ; otherwise, + /// false. + /// + public static bool operator !=(BackupName a, BackupName b) => !(a == b); + } + + /// Resource name for the CryptoKeyVersion resource. + public sealed partial class CryptoKeyVersionName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// A resource name with pattern + /// + /// projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version} + /// . + /// + ProjectLocationKeyRingCryptoKeyCryptoKeyVersion = 1, + } + + private static gax::PathTemplate s_projectLocationKeyRingCryptoKeyCryptoKeyVersion = new gax::PathTemplate("projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided + /// . + /// + public static CryptoKeyVersionName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new CryptoKeyVersionName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern + /// + /// projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version} + /// . + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The KeyRing ID. Must not be null or empty. + /// The CryptoKey ID. Must not be null or empty. + /// The CryptoKeyVersion ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static CryptoKeyVersionName FromProjectLocationKeyRingCryptoKeyCryptoKeyVersion(string projectId, string locationId, string keyRingId, string cryptoKeyId, string cryptoKeyVersionId) => + new CryptoKeyVersionName(ResourceNameType.ProjectLocationKeyRingCryptoKeyCryptoKeyVersion, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), keyRingId: gax::GaxPreconditions.CheckNotNullOrEmpty(keyRingId, nameof(keyRingId)), cryptoKeyId: gax::GaxPreconditions.CheckNotNullOrEmpty(cryptoKeyId, nameof(cryptoKeyId)), cryptoKeyVersionId: gax::GaxPreconditions.CheckNotNullOrEmpty(cryptoKeyVersionId, nameof(cryptoKeyVersionId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// + /// projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version} + /// . + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The KeyRing ID. Must not be null or empty. + /// The CryptoKey ID. Must not be null or empty. + /// The CryptoKeyVersion ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// + /// projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version} + /// . + /// + public static string Format(string projectId, string locationId, string keyRingId, string cryptoKeyId, string cryptoKeyVersionId) => + FormatProjectLocationKeyRingCryptoKeyCryptoKeyVersion(projectId, locationId, keyRingId, cryptoKeyId, cryptoKeyVersionId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// + /// projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version} + /// . + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The KeyRing ID. Must not be null or empty. + /// The CryptoKey ID. Must not be null or empty. + /// The CryptoKeyVersion ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// + /// projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version} + /// . + /// + public static string FormatProjectLocationKeyRingCryptoKeyCryptoKeyVersion(string projectId, string locationId, string keyRingId, string cryptoKeyId, string cryptoKeyVersionId) => + s_projectLocationKeyRingCryptoKeyCryptoKeyVersion.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(keyRingId, nameof(keyRingId)), gax::GaxPreconditions.CheckNotNullOrEmpty(cryptoKeyId, nameof(cryptoKeyId)), gax::GaxPreconditions.CheckNotNullOrEmpty(cryptoKeyVersionId, nameof(cryptoKeyVersionId))); + + /// + /// Parses the given resource name string into a new instance. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// + /// + /// projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version} + /// + /// + /// + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static CryptoKeyVersionName Parse(string cryptoKeyVersionName) => Parse(cryptoKeyVersionName, false); + + /// + /// Parses the given resource name string into a new instance; optionally + /// allowing an unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// + /// + /// projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version} + /// + /// + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// The parsed if successful. + public static CryptoKeyVersionName Parse(string cryptoKeyVersionName, bool allowUnparsed) => + TryParse(cryptoKeyVersionName, allowUnparsed, out CryptoKeyVersionName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); + + /// + /// Tries to parse the given resource name string into a new instance. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// + /// + /// projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version} + /// + /// + /// + /// + /// The resource name in string form. Must not be null. + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string cryptoKeyVersionName, out CryptoKeyVersionName result) => + TryParse(cryptoKeyVersionName, false, out result); + + /// + /// Tries to parse the given resource name string into a new instance; + /// optionally allowing an unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// + /// + /// projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version} + /// + /// + /// + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string cryptoKeyVersionName, bool allowUnparsed, out CryptoKeyVersionName result) + { + gax::GaxPreconditions.CheckNotNull(cryptoKeyVersionName, nameof(cryptoKeyVersionName)); + gax::TemplatedResourceName resourceName; + if (s_projectLocationKeyRingCryptoKeyCryptoKeyVersion.TryParseName(cryptoKeyVersionName, out resourceName)) + { + result = FromProjectLocationKeyRingCryptoKeyCryptoKeyVersion(resourceName[0], resourceName[1], resourceName[2], resourceName[3], resourceName[4]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(cryptoKeyVersionName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private CryptoKeyVersionName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string cryptoKeyId = null, string cryptoKeyVersionId = null, string keyRingId = null, string locationId = null, string projectId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + CryptoKeyId = cryptoKeyId; + CryptoKeyVersionId = cryptoKeyVersionId; + KeyRingId = keyRingId; + LocationId = locationId; + ProjectId = projectId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// + /// projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version} + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The KeyRing ID. Must not be null or empty. + /// The CryptoKey ID. Must not be null or empty. + /// The CryptoKeyVersion ID. Must not be null or empty. + public CryptoKeyVersionName(string projectId, string locationId, string keyRingId, string cryptoKeyId, string cryptoKeyVersionId) : this(ResourceNameType.ProjectLocationKeyRingCryptoKeyCryptoKeyVersion, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), keyRingId: gax::GaxPreconditions.CheckNotNullOrEmpty(keyRingId, nameof(keyRingId)), cryptoKeyId: gax::GaxPreconditions.CheckNotNullOrEmpty(cryptoKeyId, nameof(cryptoKeyId)), cryptoKeyVersionId: gax::GaxPreconditions.CheckNotNullOrEmpty(cryptoKeyVersionId, nameof(cryptoKeyVersionId))) + { + } + + /// The of the contained resource name. + public ResourceNameType Type { get; } + + /// + /// The contained . Only non-null if this instance contains an + /// unparsed resource name. + /// + public gax::UnparsedResourceName UnparsedResource { get; } + + /// + /// The CryptoKey ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string CryptoKeyId { get; } + + /// + /// The CryptoKeyVersion ID. Will not be null, unless this instance contains an unparsed resource + /// name. + /// + public string CryptoKeyVersionId { get; } + + /// + /// The KeyRing ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string KeyRingId { get; } + + /// + /// The Location ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string LocationId { get; } + + /// + /// The Project ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string ProjectId { get; } + + /// Whether this instance contains a resource name with a known pattern. + public bool IsKnownPattern => Type != ResourceNameType.Unparsed; + + /// The string representation of the resource name. + /// The string representation of the resource name. + public override string ToString() + { + switch (Type) + { + case ResourceNameType.Unparsed: return UnparsedResource.ToString(); + case ResourceNameType.ProjectLocationKeyRingCryptoKeyCryptoKeyVersion: return s_projectLocationKeyRingCryptoKeyCryptoKeyVersion.Expand(ProjectId, LocationId, KeyRingId, CryptoKeyId, CryptoKeyVersionId); + default: throw new sys::InvalidOperationException("Unrecognized resource-type."); + } + } + + /// Returns a hash code for this resource name. + public override int GetHashCode() => ToString().GetHashCode(); + + /// + public override bool Equals(object obj) => Equals(obj as CryptoKeyVersionName); + + /// + public bool Equals(CryptoKeyVersionName other) => ToString() == other?.ToString(); + + /// Determines whether two specified resource names have the same value. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is the same as the value of ; otherwise, + /// false. + /// + public static bool operator ==(CryptoKeyVersionName a, CryptoKeyVersionName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); + + /// Determines whether two specified resource names have different values. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is different from the value of ; otherwise, + /// false. + /// + public static bool operator !=(CryptoKeyVersionName a, CryptoKeyVersionName b) => !(a == b); + } + + public partial class Table + { + /// + /// -typed view over the resource name property. + /// + public gcbav::TableName TableName + { + get => string.IsNullOrEmpty(Name) ? null : gcbav::TableName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class AuthorizedView + { + /// + /// -typed view over the resource name property. + /// + public gcbav::AuthorizedViewName AuthorizedViewName + { + get => string.IsNullOrEmpty(Name) ? null : gcbav::AuthorizedViewName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class EncryptionInfo + { + /// + /// -typed view over the resource name property. + /// + public CryptoKeyVersionName KmsKeyVersionAsCryptoKeyVersionName + { + get => string.IsNullOrEmpty(KmsKeyVersion) ? null : CryptoKeyVersionName.Parse(KmsKeyVersion, allowUnparsed: true); + set => KmsKeyVersion = value?.ToString() ?? ""; + } + } + + public partial class Snapshot + { + /// + /// -typed view over the resource name property. + /// + public gcbav::SnapshotName SnapshotName + { + get => string.IsNullOrEmpty(Name) ? null : gcbav::SnapshotName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class Backup + { + /// + /// -typed view over the resource name property. + /// + public gcbav::BackupName BackupName + { + get => string.IsNullOrEmpty(Name) ? null : gcbav::BackupName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } +} diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/Types.g.cs b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/Types.g.cs new file mode 100755 index 000000000000..ec83359d4929 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/Types.g.cs @@ -0,0 +1,5982 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/bigtable/admin/v2/types.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Google.Cloud.Bigtable.Admin.V2 { + + /// Holder for reflection information generated from google/bigtable/admin/v2/types.proto + public static partial class TypesReflection { + + #region Descriptor + /// File descriptor for google/bigtable/admin/v2/types.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static TypesReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CiRnb29nbGUvYmlndGFibGUvYWRtaW4vdjIvdHlwZXMucHJvdG8SGGdvb2ds", + "ZS5iaWd0YWJsZS5hZG1pbi52MhofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlv", + "ci5wcm90byKaEgoEVHlwZRI6CgpieXRlc190eXBlGAEgASgLMiQuZ29vZ2xl", + "LmJpZ3RhYmxlLmFkbWluLnYyLlR5cGUuQnl0ZXNIABI8CgtzdHJpbmdfdHlw", + "ZRgCIAEoCzIlLmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5UeXBlLlN0cmlu", + "Z0gAEjoKCmludDY0X3R5cGUYBSABKAsyJC5nb29nbGUuYmlndGFibGUuYWRt", + "aW4udjIuVHlwZS5JbnQ2NEgAEj4KDGZsb2F0MzJfdHlwZRgMIAEoCzImLmdv", + "b2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5UeXBlLkZsb2F0MzJIABI+CgxmbG9h", + "dDY0X3R5cGUYCSABKAsyJi5nb29nbGUuYmlndGFibGUuYWRtaW4udjIuVHlw", + "ZS5GbG9hdDY0SAASOAoJYm9vbF90eXBlGAggASgLMiMuZ29vZ2xlLmJpZ3Rh", + "YmxlLmFkbWluLnYyLlR5cGUuQm9vbEgAEkIKDnRpbWVzdGFtcF90eXBlGAog", + "ASgLMiguZ29vZ2xlLmJpZ3RhYmxlLmFkbWluLnYyLlR5cGUuVGltZXN0YW1w", + "SAASOAoJZGF0ZV90eXBlGAsgASgLMiMuZ29vZ2xlLmJpZ3RhYmxlLmFkbWlu", + "LnYyLlR5cGUuRGF0ZUgAEkIKDmFnZ3JlZ2F0ZV90eXBlGAYgASgLMiguZ29v", + "Z2xlLmJpZ3RhYmxlLmFkbWluLnYyLlR5cGUuQWdncmVnYXRlSAASPAoLc3Ry", + "dWN0X3R5cGUYByABKAsyJS5nb29nbGUuYmlndGFibGUuYWRtaW4udjIuVHlw", + "ZS5TdHJ1Y3RIABI6CgphcnJheV90eXBlGAMgASgLMiQuZ29vZ2xlLmJpZ3Rh", + "YmxlLmFkbWluLnYyLlR5cGUuQXJyYXlIABI2CghtYXBfdHlwZRgEIAEoCzIi", + "Lmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5UeXBlLk1hcEgAGqkBCgVCeXRl", + "cxI/CghlbmNvZGluZxgBIAEoCzItLmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52", + "Mi5UeXBlLkJ5dGVzLkVuY29kaW5nGl8KCEVuY29kaW5nEkAKA3JhdxgBIAEo", + "CzIxLmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5UeXBlLkJ5dGVzLkVuY29k", + "aW5nLlJhd0gAGgUKA1Jhd0IKCghlbmNvZGluZxqfAgoGU3RyaW5nEkAKCGVu", + "Y29kaW5nGAEgASgLMi4uZ29vZ2xlLmJpZ3RhYmxlLmFkbWluLnYyLlR5cGUu", + "U3RyaW5nLkVuY29kaW5nGtIBCghFbmNvZGluZxJOCgh1dGY4X3JhdxgBIAEo", + "CzI2Lmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5UeXBlLlN0cmluZy5FbmNv", + "ZGluZy5VdGY4UmF3QgIYAUgAEk4KCnV0ZjhfYnl0ZXMYAiABKAsyOC5nb29n", + "bGUuYmlndGFibGUuYWRtaW4udjIuVHlwZS5TdHJpbmcuRW5jb2RpbmcuVXRm", + "OEJ5dGVzSAAaDQoHVXRmOFJhdzoCGAEaCwoJVXRmOEJ5dGVzQgoKCGVuY29k", + "aW5nGocCCgVJbnQ2NBI/CghlbmNvZGluZxgBIAEoCzItLmdvb2dsZS5iaWd0", + "YWJsZS5hZG1pbi52Mi5UeXBlLkludDY0LkVuY29kaW5nGrwBCghFbmNvZGlu", + "ZxJYChBiaWdfZW5kaWFuX2J5dGVzGAEgASgLMjwuZ29vZ2xlLmJpZ3RhYmxl", + "LmFkbWluLnYyLlR5cGUuSW50NjQuRW5jb2RpbmcuQmlnRW5kaWFuQnl0ZXNI", + "ABpKCg5CaWdFbmRpYW5CeXRlcxI4CgpieXRlc190eXBlGAEgASgLMiQuZ29v", + "Z2xlLmJpZ3RhYmxlLmFkbWluLnYyLlR5cGUuQnl0ZXNCCgoIZW5jb2Rpbmca", + "BgoEQm9vbBoJCgdGbG9hdDMyGgkKB0Zsb2F0NjQaCwoJVGltZXN0YW1wGgYK", + "BERhdGUakAEKBlN0cnVjdBI7CgZmaWVsZHMYASADKAsyKy5nb29nbGUuYmln", + "dGFibGUuYWRtaW4udjIuVHlwZS5TdHJ1Y3QuRmllbGQaSQoFRmllbGQSEgoK", + "ZmllbGRfbmFtZRgBIAEoCRIsCgR0eXBlGAIgASgLMh4uZ29vZ2xlLmJpZ3Rh", + "YmxlLmFkbWluLnYyLlR5cGUaPQoFQXJyYXkSNAoMZWxlbWVudF90eXBlGAEg", + "ASgLMh4uZ29vZ2xlLmJpZ3RhYmxlLmFkbWluLnYyLlR5cGUaawoDTWFwEjAK", + "CGtleV90eXBlGAEgASgLMh4uZ29vZ2xlLmJpZ3RhYmxlLmFkbWluLnYyLlR5", + "cGUSMgoKdmFsdWVfdHlwZRgCIAEoCzIeLmdvb2dsZS5iaWd0YWJsZS5hZG1p", + "bi52Mi5UeXBlGtsDCglBZ2dyZWdhdGUSMgoKaW5wdXRfdHlwZRgBIAEoCzIe", + "Lmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5UeXBlEjcKCnN0YXRlX3R5cGUY", + "AiABKAsyHi5nb29nbGUuYmlndGFibGUuYWRtaW4udjIuVHlwZUID4EEDEjsK", + "A3N1bRgEIAEoCzIsLmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5UeXBlLkFn", + "Z3JlZ2F0ZS5TdW1IABJlChJobGxwcF91bmlxdWVfY291bnQYBSABKAsyRy5n", + "b29nbGUuYmlndGFibGUuYWRtaW4udjIuVHlwZS5BZ2dyZWdhdGUuSHlwZXJM", + "b2dMb2dQbHVzUGx1c1VuaXF1ZUNvdW50SAASOwoDbWF4GAYgASgLMiwuZ29v", + "Z2xlLmJpZ3RhYmxlLmFkbWluLnYyLlR5cGUuQWdncmVnYXRlLk1heEgAEjsK", + "A21pbhgHIAEoCzIsLmdvb2dsZS5iaWd0YWJsZS5hZG1pbi52Mi5UeXBlLkFn", + "Z3JlZ2F0ZS5NaW5IABoFCgNTdW0aBQoDTWF4GgUKA01pbhogCh5IeXBlckxv", + "Z0xvZ1BsdXNQbHVzVW5pcXVlQ291bnRCDAoKYWdncmVnYXRvckIGCgRraW5k", + "Qs0BChxjb20uZ29vZ2xlLmJpZ3RhYmxlLmFkbWluLnYyQgpUeXBlc1Byb3Rv", + "UAFaOGNsb3VkLmdvb2dsZS5jb20vZ28vYmlndGFibGUvYWRtaW4vYXBpdjIv", + "YWRtaW5wYjthZG1pbnBiqgIeR29vZ2xlLkNsb3VkLkJpZ3RhYmxlLkFkbWlu", + "LlYyygIeR29vZ2xlXENsb3VkXEJpZ3RhYmxlXEFkbWluXFYy6gIiR29vZ2xl", + "OjpDbG91ZDo6QmlndGFibGU6OkFkbWluOjpWMmIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.Type), global::Google.Cloud.Bigtable.Admin.V2.Type.Parser, new[]{ "BytesType", "StringType", "Int64Type", "Float32Type", "Float64Type", "BoolType", "TimestampType", "DateType", "AggregateType", "StructType", "ArrayType", "MapType" }, new[]{ "Kind" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bytes), global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bytes.Parser, new[]{ "Encoding" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bytes.Types.Encoding), global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bytes.Types.Encoding.Parser, new[]{ "Raw" }, new[]{ "Encoding" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bytes.Types.Encoding.Types.Raw), global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bytes.Types.Encoding.Types.Raw.Parser, null, null, null, null, null)})}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.Type.Types.String), global::Google.Cloud.Bigtable.Admin.V2.Type.Types.String.Parser, new[]{ "Encoding" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.Type.Types.String.Types.Encoding), global::Google.Cloud.Bigtable.Admin.V2.Type.Types.String.Types.Encoding.Parser, new[]{ "Utf8Raw", "Utf8Bytes" }, new[]{ "Encoding" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.Type.Types.String.Types.Encoding.Types.Utf8Raw), global::Google.Cloud.Bigtable.Admin.V2.Type.Types.String.Types.Encoding.Types.Utf8Raw.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.Type.Types.String.Types.Encoding.Types.Utf8Bytes), global::Google.Cloud.Bigtable.Admin.V2.Type.Types.String.Types.Encoding.Types.Utf8Bytes.Parser, null, null, null, null, null)})}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Int64), global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Int64.Parser, new[]{ "Encoding" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Int64.Types.Encoding), global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Int64.Types.Encoding.Parser, new[]{ "BigEndianBytes" }, new[]{ "Encoding" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Int64.Types.Encoding.Types.BigEndianBytes), global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Int64.Types.Encoding.Types.BigEndianBytes.Parser, new[]{ "BytesType" }, null, null, null, null)})}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bool), global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bool.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Float32), global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Float32.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Float64), global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Float64.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Timestamp), global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Timestamp.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Date), global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Date.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Struct), global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Struct.Parser, new[]{ "Fields" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Struct.Types.Field), global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Struct.Types.Field.Parser, new[]{ "FieldName", "Type" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Array), global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Array.Parser, new[]{ "ElementType" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Map), global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Map.Parser, new[]{ "KeyType", "ValueType" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate), global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Parser, new[]{ "InputType", "StateType", "Sum", "HllppUniqueCount", "Max", "Min" }, new[]{ "Aggregator" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Types.Sum), global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Types.Sum.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Types.Max), global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Types.Max.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Types.Min), global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Types.Min.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Types.HyperLogLogPlusPlusUniqueCount), global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Types.HyperLogLogPlusPlusUniqueCount.Parser, null, null, null, null, null)})}) + })); + } + #endregion + + } + #region Messages + /// + /// `Type` represents the type of data that is written to, read from, or stored + /// in Bigtable. It is heavily based on the GoogleSQL standard to help maintain + /// familiarity and consistency across products and features. + /// + /// For compatibility with Bigtable's existing untyped APIs, each `Type` includes + /// an `Encoding` which describes how to convert to/from the underlying data. + /// + /// Each encoding also defines the following properties: + /// + /// * Order-preserving: Does the encoded value sort consistently with the + /// original typed value? Note that Bigtable will always sort data based on + /// the raw encoded value, *not* the decoded type. + /// - Example: BYTES values sort in the same order as their raw encodings. + /// - Counterexample: Encoding INT64 as a fixed-width decimal string does + /// *not* preserve sort order when dealing with negative numbers. + /// `INT64(1) > INT64(-1)`, but `STRING("-00001") > STRING("00001)`. + /// * Self-delimiting: If we concatenate two encoded values, can we always tell + /// where the first one ends and the second one begins? + /// - Example: If we encode INT64s to fixed-width STRINGs, the first value + /// will always contain exactly N digits, possibly preceded by a sign. + /// - Counterexample: If we concatenate two UTF-8 encoded STRINGs, we have + /// no way to tell where the first one ends. + /// * Compatibility: Which other systems have matching encoding schemes? For + /// example, does this encoding have a GoogleSQL equivalent? HBase? Java? + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Type : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Type()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.TypesReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Type() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Type(Type other) : this() { + switch (other.KindCase) { + case KindOneofCase.BytesType: + BytesType = other.BytesType.Clone(); + break; + case KindOneofCase.StringType: + StringType = other.StringType.Clone(); + break; + case KindOneofCase.Int64Type: + Int64Type = other.Int64Type.Clone(); + break; + case KindOneofCase.Float32Type: + Float32Type = other.Float32Type.Clone(); + break; + case KindOneofCase.Float64Type: + Float64Type = other.Float64Type.Clone(); + break; + case KindOneofCase.BoolType: + BoolType = other.BoolType.Clone(); + break; + case KindOneofCase.TimestampType: + TimestampType = other.TimestampType.Clone(); + break; + case KindOneofCase.DateType: + DateType = other.DateType.Clone(); + break; + case KindOneofCase.AggregateType: + AggregateType = other.AggregateType.Clone(); + break; + case KindOneofCase.StructType: + StructType = other.StructType.Clone(); + break; + case KindOneofCase.ArrayType: + ArrayType = other.ArrayType.Clone(); + break; + case KindOneofCase.MapType: + MapType = other.MapType.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Type Clone() { + return new Type(this); + } + + /// Field number for the "bytes_type" field. + public const int BytesTypeFieldNumber = 1; + /// + /// Bytes + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bytes BytesType { + get { return kindCase_ == KindOneofCase.BytesType ? (global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bytes) kind_ : null; } + set { + kind_ = value; + kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.BytesType; + } + } + + /// Field number for the "string_type" field. + public const int StringTypeFieldNumber = 2; + /// + /// String + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Type.Types.String StringType { + get { return kindCase_ == KindOneofCase.StringType ? (global::Google.Cloud.Bigtable.Admin.V2.Type.Types.String) kind_ : null; } + set { + kind_ = value; + kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.StringType; + } + } + + /// Field number for the "int64_type" field. + public const int Int64TypeFieldNumber = 5; + /// + /// Int64 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Int64 Int64Type { + get { return kindCase_ == KindOneofCase.Int64Type ? (global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Int64) kind_ : null; } + set { + kind_ = value; + kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.Int64Type; + } + } + + /// Field number for the "float32_type" field. + public const int Float32TypeFieldNumber = 12; + /// + /// Float32 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Float32 Float32Type { + get { return kindCase_ == KindOneofCase.Float32Type ? (global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Float32) kind_ : null; } + set { + kind_ = value; + kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.Float32Type; + } + } + + /// Field number for the "float64_type" field. + public const int Float64TypeFieldNumber = 9; + /// + /// Float64 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Float64 Float64Type { + get { return kindCase_ == KindOneofCase.Float64Type ? (global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Float64) kind_ : null; } + set { + kind_ = value; + kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.Float64Type; + } + } + + /// Field number for the "bool_type" field. + public const int BoolTypeFieldNumber = 8; + /// + /// Bool + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bool BoolType { + get { return kindCase_ == KindOneofCase.BoolType ? (global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bool) kind_ : null; } + set { + kind_ = value; + kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.BoolType; + } + } + + /// Field number for the "timestamp_type" field. + public const int TimestampTypeFieldNumber = 10; + /// + /// Timestamp + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Timestamp TimestampType { + get { return kindCase_ == KindOneofCase.TimestampType ? (global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Timestamp) kind_ : null; } + set { + kind_ = value; + kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.TimestampType; + } + } + + /// Field number for the "date_type" field. + public const int DateTypeFieldNumber = 11; + /// + /// Date + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Date DateType { + get { return kindCase_ == KindOneofCase.DateType ? (global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Date) kind_ : null; } + set { + kind_ = value; + kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.DateType; + } + } + + /// Field number for the "aggregate_type" field. + public const int AggregateTypeFieldNumber = 6; + /// + /// Aggregate + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate AggregateType { + get { return kindCase_ == KindOneofCase.AggregateType ? (global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate) kind_ : null; } + set { + kind_ = value; + kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.AggregateType; + } + } + + /// Field number for the "struct_type" field. + public const int StructTypeFieldNumber = 7; + /// + /// Struct + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Struct StructType { + get { return kindCase_ == KindOneofCase.StructType ? (global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Struct) kind_ : null; } + set { + kind_ = value; + kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.StructType; + } + } + + /// Field number for the "array_type" field. + public const int ArrayTypeFieldNumber = 3; + /// + /// Array + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Array ArrayType { + get { return kindCase_ == KindOneofCase.ArrayType ? (global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Array) kind_ : null; } + set { + kind_ = value; + kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.ArrayType; + } + } + + /// Field number for the "map_type" field. + public const int MapTypeFieldNumber = 4; + /// + /// Map + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Map MapType { + get { return kindCase_ == KindOneofCase.MapType ? (global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Map) kind_ : null; } + set { + kind_ = value; + kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.MapType; + } + } + + private object kind_; + /// Enum of possible cases for the "kind" oneof. + public enum KindOneofCase { + None = 0, + BytesType = 1, + StringType = 2, + Int64Type = 5, + Float32Type = 12, + Float64Type = 9, + BoolType = 8, + TimestampType = 10, + DateType = 11, + AggregateType = 6, + StructType = 7, + ArrayType = 3, + MapType = 4, + } + private KindOneofCase kindCase_ = KindOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public KindOneofCase KindCase { + get { return kindCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKind() { + kindCase_ = KindOneofCase.None; + kind_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Type); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Type other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(BytesType, other.BytesType)) return false; + if (!object.Equals(StringType, other.StringType)) return false; + if (!object.Equals(Int64Type, other.Int64Type)) return false; + if (!object.Equals(Float32Type, other.Float32Type)) return false; + if (!object.Equals(Float64Type, other.Float64Type)) return false; + if (!object.Equals(BoolType, other.BoolType)) return false; + if (!object.Equals(TimestampType, other.TimestampType)) return false; + if (!object.Equals(DateType, other.DateType)) return false; + if (!object.Equals(AggregateType, other.AggregateType)) return false; + if (!object.Equals(StructType, other.StructType)) return false; + if (!object.Equals(ArrayType, other.ArrayType)) return false; + if (!object.Equals(MapType, other.MapType)) return false; + if (KindCase != other.KindCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (kindCase_ == KindOneofCase.BytesType) hash ^= BytesType.GetHashCode(); + if (kindCase_ == KindOneofCase.StringType) hash ^= StringType.GetHashCode(); + if (kindCase_ == KindOneofCase.Int64Type) hash ^= Int64Type.GetHashCode(); + if (kindCase_ == KindOneofCase.Float32Type) hash ^= Float32Type.GetHashCode(); + if (kindCase_ == KindOneofCase.Float64Type) hash ^= Float64Type.GetHashCode(); + if (kindCase_ == KindOneofCase.BoolType) hash ^= BoolType.GetHashCode(); + if (kindCase_ == KindOneofCase.TimestampType) hash ^= TimestampType.GetHashCode(); + if (kindCase_ == KindOneofCase.DateType) hash ^= DateType.GetHashCode(); + if (kindCase_ == KindOneofCase.AggregateType) hash ^= AggregateType.GetHashCode(); + if (kindCase_ == KindOneofCase.StructType) hash ^= StructType.GetHashCode(); + if (kindCase_ == KindOneofCase.ArrayType) hash ^= ArrayType.GetHashCode(); + if (kindCase_ == KindOneofCase.MapType) hash ^= MapType.GetHashCode(); + hash ^= (int) kindCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (kindCase_ == KindOneofCase.BytesType) { + output.WriteRawTag(10); + output.WriteMessage(BytesType); + } + if (kindCase_ == KindOneofCase.StringType) { + output.WriteRawTag(18); + output.WriteMessage(StringType); + } + if (kindCase_ == KindOneofCase.ArrayType) { + output.WriteRawTag(26); + output.WriteMessage(ArrayType); + } + if (kindCase_ == KindOneofCase.MapType) { + output.WriteRawTag(34); + output.WriteMessage(MapType); + } + if (kindCase_ == KindOneofCase.Int64Type) { + output.WriteRawTag(42); + output.WriteMessage(Int64Type); + } + if (kindCase_ == KindOneofCase.AggregateType) { + output.WriteRawTag(50); + output.WriteMessage(AggregateType); + } + if (kindCase_ == KindOneofCase.StructType) { + output.WriteRawTag(58); + output.WriteMessage(StructType); + } + if (kindCase_ == KindOneofCase.BoolType) { + output.WriteRawTag(66); + output.WriteMessage(BoolType); + } + if (kindCase_ == KindOneofCase.Float64Type) { + output.WriteRawTag(74); + output.WriteMessage(Float64Type); + } + if (kindCase_ == KindOneofCase.TimestampType) { + output.WriteRawTag(82); + output.WriteMessage(TimestampType); + } + if (kindCase_ == KindOneofCase.DateType) { + output.WriteRawTag(90); + output.WriteMessage(DateType); + } + if (kindCase_ == KindOneofCase.Float32Type) { + output.WriteRawTag(98); + output.WriteMessage(Float32Type); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (kindCase_ == KindOneofCase.BytesType) { + output.WriteRawTag(10); + output.WriteMessage(BytesType); + } + if (kindCase_ == KindOneofCase.StringType) { + output.WriteRawTag(18); + output.WriteMessage(StringType); + } + if (kindCase_ == KindOneofCase.ArrayType) { + output.WriteRawTag(26); + output.WriteMessage(ArrayType); + } + if (kindCase_ == KindOneofCase.MapType) { + output.WriteRawTag(34); + output.WriteMessage(MapType); + } + if (kindCase_ == KindOneofCase.Int64Type) { + output.WriteRawTag(42); + output.WriteMessage(Int64Type); + } + if (kindCase_ == KindOneofCase.AggregateType) { + output.WriteRawTag(50); + output.WriteMessage(AggregateType); + } + if (kindCase_ == KindOneofCase.StructType) { + output.WriteRawTag(58); + output.WriteMessage(StructType); + } + if (kindCase_ == KindOneofCase.BoolType) { + output.WriteRawTag(66); + output.WriteMessage(BoolType); + } + if (kindCase_ == KindOneofCase.Float64Type) { + output.WriteRawTag(74); + output.WriteMessage(Float64Type); + } + if (kindCase_ == KindOneofCase.TimestampType) { + output.WriteRawTag(82); + output.WriteMessage(TimestampType); + } + if (kindCase_ == KindOneofCase.DateType) { + output.WriteRawTag(90); + output.WriteMessage(DateType); + } + if (kindCase_ == KindOneofCase.Float32Type) { + output.WriteRawTag(98); + output.WriteMessage(Float32Type); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (kindCase_ == KindOneofCase.BytesType) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BytesType); + } + if (kindCase_ == KindOneofCase.StringType) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StringType); + } + if (kindCase_ == KindOneofCase.Int64Type) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Int64Type); + } + if (kindCase_ == KindOneofCase.Float32Type) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Float32Type); + } + if (kindCase_ == KindOneofCase.Float64Type) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Float64Type); + } + if (kindCase_ == KindOneofCase.BoolType) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BoolType); + } + if (kindCase_ == KindOneofCase.TimestampType) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TimestampType); + } + if (kindCase_ == KindOneofCase.DateType) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DateType); + } + if (kindCase_ == KindOneofCase.AggregateType) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AggregateType); + } + if (kindCase_ == KindOneofCase.StructType) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StructType); + } + if (kindCase_ == KindOneofCase.ArrayType) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ArrayType); + } + if (kindCase_ == KindOneofCase.MapType) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MapType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Type other) { + if (other == null) { + return; + } + switch (other.KindCase) { + case KindOneofCase.BytesType: + if (BytesType == null) { + BytesType = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bytes(); + } + BytesType.MergeFrom(other.BytesType); + break; + case KindOneofCase.StringType: + if (StringType == null) { + StringType = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.String(); + } + StringType.MergeFrom(other.StringType); + break; + case KindOneofCase.Int64Type: + if (Int64Type == null) { + Int64Type = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Int64(); + } + Int64Type.MergeFrom(other.Int64Type); + break; + case KindOneofCase.Float32Type: + if (Float32Type == null) { + Float32Type = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Float32(); + } + Float32Type.MergeFrom(other.Float32Type); + break; + case KindOneofCase.Float64Type: + if (Float64Type == null) { + Float64Type = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Float64(); + } + Float64Type.MergeFrom(other.Float64Type); + break; + case KindOneofCase.BoolType: + if (BoolType == null) { + BoolType = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bool(); + } + BoolType.MergeFrom(other.BoolType); + break; + case KindOneofCase.TimestampType: + if (TimestampType == null) { + TimestampType = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Timestamp(); + } + TimestampType.MergeFrom(other.TimestampType); + break; + case KindOneofCase.DateType: + if (DateType == null) { + DateType = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Date(); + } + DateType.MergeFrom(other.DateType); + break; + case KindOneofCase.AggregateType: + if (AggregateType == null) { + AggregateType = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate(); + } + AggregateType.MergeFrom(other.AggregateType); + break; + case KindOneofCase.StructType: + if (StructType == null) { + StructType = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Struct(); + } + StructType.MergeFrom(other.StructType); + break; + case KindOneofCase.ArrayType: + if (ArrayType == null) { + ArrayType = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Array(); + } + ArrayType.MergeFrom(other.ArrayType); + break; + case KindOneofCase.MapType: + if (MapType == null) { + MapType = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Map(); + } + MapType.MergeFrom(other.MapType); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bytes subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bytes(); + if (kindCase_ == KindOneofCase.BytesType) { + subBuilder.MergeFrom(BytesType); + } + input.ReadMessage(subBuilder); + BytesType = subBuilder; + break; + } + case 18: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.String subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.String(); + if (kindCase_ == KindOneofCase.StringType) { + subBuilder.MergeFrom(StringType); + } + input.ReadMessage(subBuilder); + StringType = subBuilder; + break; + } + case 26: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Array subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Array(); + if (kindCase_ == KindOneofCase.ArrayType) { + subBuilder.MergeFrom(ArrayType); + } + input.ReadMessage(subBuilder); + ArrayType = subBuilder; + break; + } + case 34: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Map subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Map(); + if (kindCase_ == KindOneofCase.MapType) { + subBuilder.MergeFrom(MapType); + } + input.ReadMessage(subBuilder); + MapType = subBuilder; + break; + } + case 42: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Int64 subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Int64(); + if (kindCase_ == KindOneofCase.Int64Type) { + subBuilder.MergeFrom(Int64Type); + } + input.ReadMessage(subBuilder); + Int64Type = subBuilder; + break; + } + case 50: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate(); + if (kindCase_ == KindOneofCase.AggregateType) { + subBuilder.MergeFrom(AggregateType); + } + input.ReadMessage(subBuilder); + AggregateType = subBuilder; + break; + } + case 58: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Struct subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Struct(); + if (kindCase_ == KindOneofCase.StructType) { + subBuilder.MergeFrom(StructType); + } + input.ReadMessage(subBuilder); + StructType = subBuilder; + break; + } + case 66: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bool subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bool(); + if (kindCase_ == KindOneofCase.BoolType) { + subBuilder.MergeFrom(BoolType); + } + input.ReadMessage(subBuilder); + BoolType = subBuilder; + break; + } + case 74: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Float64 subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Float64(); + if (kindCase_ == KindOneofCase.Float64Type) { + subBuilder.MergeFrom(Float64Type); + } + input.ReadMessage(subBuilder); + Float64Type = subBuilder; + break; + } + case 82: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Timestamp subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Timestamp(); + if (kindCase_ == KindOneofCase.TimestampType) { + subBuilder.MergeFrom(TimestampType); + } + input.ReadMessage(subBuilder); + TimestampType = subBuilder; + break; + } + case 90: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Date subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Date(); + if (kindCase_ == KindOneofCase.DateType) { + subBuilder.MergeFrom(DateType); + } + input.ReadMessage(subBuilder); + DateType = subBuilder; + break; + } + case 98: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Float32 subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Float32(); + if (kindCase_ == KindOneofCase.Float32Type) { + subBuilder.MergeFrom(Float32Type); + } + input.ReadMessage(subBuilder); + Float32Type = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bytes subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bytes(); + if (kindCase_ == KindOneofCase.BytesType) { + subBuilder.MergeFrom(BytesType); + } + input.ReadMessage(subBuilder); + BytesType = subBuilder; + break; + } + case 18: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.String subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.String(); + if (kindCase_ == KindOneofCase.StringType) { + subBuilder.MergeFrom(StringType); + } + input.ReadMessage(subBuilder); + StringType = subBuilder; + break; + } + case 26: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Array subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Array(); + if (kindCase_ == KindOneofCase.ArrayType) { + subBuilder.MergeFrom(ArrayType); + } + input.ReadMessage(subBuilder); + ArrayType = subBuilder; + break; + } + case 34: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Map subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Map(); + if (kindCase_ == KindOneofCase.MapType) { + subBuilder.MergeFrom(MapType); + } + input.ReadMessage(subBuilder); + MapType = subBuilder; + break; + } + case 42: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Int64 subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Int64(); + if (kindCase_ == KindOneofCase.Int64Type) { + subBuilder.MergeFrom(Int64Type); + } + input.ReadMessage(subBuilder); + Int64Type = subBuilder; + break; + } + case 50: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate(); + if (kindCase_ == KindOneofCase.AggregateType) { + subBuilder.MergeFrom(AggregateType); + } + input.ReadMessage(subBuilder); + AggregateType = subBuilder; + break; + } + case 58: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Struct subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Struct(); + if (kindCase_ == KindOneofCase.StructType) { + subBuilder.MergeFrom(StructType); + } + input.ReadMessage(subBuilder); + StructType = subBuilder; + break; + } + case 66: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bool subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bool(); + if (kindCase_ == KindOneofCase.BoolType) { + subBuilder.MergeFrom(BoolType); + } + input.ReadMessage(subBuilder); + BoolType = subBuilder; + break; + } + case 74: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Float64 subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Float64(); + if (kindCase_ == KindOneofCase.Float64Type) { + subBuilder.MergeFrom(Float64Type); + } + input.ReadMessage(subBuilder); + Float64Type = subBuilder; + break; + } + case 82: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Timestamp subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Timestamp(); + if (kindCase_ == KindOneofCase.TimestampType) { + subBuilder.MergeFrom(TimestampType); + } + input.ReadMessage(subBuilder); + TimestampType = subBuilder; + break; + } + case 90: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Date subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Date(); + if (kindCase_ == KindOneofCase.DateType) { + subBuilder.MergeFrom(DateType); + } + input.ReadMessage(subBuilder); + DateType = subBuilder; + break; + } + case 98: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Float32 subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Float32(); + if (kindCase_ == KindOneofCase.Float32Type) { + subBuilder.MergeFrom(Float32Type); + } + input.ReadMessage(subBuilder); + Float32Type = subBuilder; + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Type message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Bytes + /// Values of type `Bytes` are stored in `Value.bytes_value`. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Bytes : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Bytes()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.Type.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Bytes() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Bytes(Bytes other) : this() { + encoding_ = other.encoding_ != null ? other.encoding_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Bytes Clone() { + return new Bytes(this); + } + + /// Field number for the "encoding" field. + public const int EncodingFieldNumber = 1; + private global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bytes.Types.Encoding encoding_; + /// + /// The encoding to use when converting to/from lower level types. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bytes.Types.Encoding Encoding { + get { return encoding_; } + set { + encoding_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Bytes); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Bytes other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Encoding, other.Encoding)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (encoding_ != null) hash ^= Encoding.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (encoding_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Encoding); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (encoding_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Encoding); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (encoding_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Encoding); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Bytes other) { + if (other == null) { + return; + } + if (other.encoding_ != null) { + if (encoding_ == null) { + Encoding = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bytes.Types.Encoding(); + } + Encoding.MergeFrom(other.Encoding); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (encoding_ == null) { + Encoding = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bytes.Types.Encoding(); + } + input.ReadMessage(Encoding); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (encoding_ == null) { + Encoding = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bytes.Types.Encoding(); + } + input.ReadMessage(Encoding); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Bytes message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Rules used to convert to/from lower level types. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Encoding : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Encoding()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bytes.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Encoding() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Encoding(Encoding other) : this() { + switch (other.EncodingCase) { + case EncodingOneofCase.Raw: + Raw = other.Raw.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Encoding Clone() { + return new Encoding(this); + } + + /// Field number for the "raw" field. + public const int RawFieldNumber = 1; + /// + /// Use `Raw` encoding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bytes.Types.Encoding.Types.Raw Raw { + get { return encodingCase_ == EncodingOneofCase.Raw ? (global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bytes.Types.Encoding.Types.Raw) encoding_ : null; } + set { + encoding_ = value; + encodingCase_ = value == null ? EncodingOneofCase.None : EncodingOneofCase.Raw; + } + } + + private object encoding_; + /// Enum of possible cases for the "encoding" oneof. + public enum EncodingOneofCase { + None = 0, + Raw = 1, + } + private EncodingOneofCase encodingCase_ = EncodingOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EncodingOneofCase EncodingCase { + get { return encodingCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEncoding() { + encodingCase_ = EncodingOneofCase.None; + encoding_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Encoding); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Encoding other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Raw, other.Raw)) return false; + if (EncodingCase != other.EncodingCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (encodingCase_ == EncodingOneofCase.Raw) hash ^= Raw.GetHashCode(); + hash ^= (int) encodingCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (encodingCase_ == EncodingOneofCase.Raw) { + output.WriteRawTag(10); + output.WriteMessage(Raw); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (encodingCase_ == EncodingOneofCase.Raw) { + output.WriteRawTag(10); + output.WriteMessage(Raw); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (encodingCase_ == EncodingOneofCase.Raw) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Raw); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Encoding other) { + if (other == null) { + return; + } + switch (other.EncodingCase) { + case EncodingOneofCase.Raw: + if (Raw == null) { + Raw = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bytes.Types.Encoding.Types.Raw(); + } + Raw.MergeFrom(other.Raw); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bytes.Types.Encoding.Types.Raw subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bytes.Types.Encoding.Types.Raw(); + if (encodingCase_ == EncodingOneofCase.Raw) { + subBuilder.MergeFrom(Raw); + } + input.ReadMessage(subBuilder); + Raw = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bytes.Types.Encoding.Types.Raw subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bytes.Types.Encoding.Types.Raw(); + if (encodingCase_ == EncodingOneofCase.Raw) { + subBuilder.MergeFrom(Raw); + } + input.ReadMessage(subBuilder); + Raw = subBuilder; + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Encoding message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Leaves the value "as-is" + /// * Order-preserving? Yes + /// * Self-delimiting? No + /// * Compatibility? N/A + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Raw : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Raw()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bytes.Types.Encoding.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Raw() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Raw(Raw other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Raw Clone() { + return new Raw(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Raw); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Raw other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Raw other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + } + #endregion + + } + + } + #endregion + + } + + /// + /// String + /// Values of type `String` are stored in `Value.string_value`. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class String : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new String()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.Type.Descriptor.NestedTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public String() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public String(String other) : this() { + encoding_ = other.encoding_ != null ? other.encoding_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public String Clone() { + return new String(this); + } + + /// Field number for the "encoding" field. + public const int EncodingFieldNumber = 1; + private global::Google.Cloud.Bigtable.Admin.V2.Type.Types.String.Types.Encoding encoding_; + /// + /// The encoding to use when converting to/from lower level types. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Type.Types.String.Types.Encoding Encoding { + get { return encoding_; } + set { + encoding_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as String); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(String other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Encoding, other.Encoding)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (encoding_ != null) hash ^= Encoding.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (encoding_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Encoding); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (encoding_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Encoding); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (encoding_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Encoding); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(String other) { + if (other == null) { + return; + } + if (other.encoding_ != null) { + if (encoding_ == null) { + Encoding = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.String.Types.Encoding(); + } + Encoding.MergeFrom(other.Encoding); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (encoding_ == null) { + Encoding = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.String.Types.Encoding(); + } + input.ReadMessage(Encoding); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (encoding_ == null) { + Encoding = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.String.Types.Encoding(); + } + input.ReadMessage(Encoding); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the String message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Rules used to convert to/from lower level types. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Encoding : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Encoding()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.Type.Types.String.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Encoding() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Encoding(Encoding other) : this() { + switch (other.EncodingCase) { + case EncodingOneofCase.Utf8Raw: + Utf8Raw = other.Utf8Raw.Clone(); + break; + case EncodingOneofCase.Utf8Bytes: + Utf8Bytes = other.Utf8Bytes.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Encoding Clone() { + return new Encoding(this); + } + + /// Field number for the "utf8_raw" field. + public const int Utf8RawFieldNumber = 1; + /// + /// Deprecated: if set, converts to an empty `utf8_bytes`. + /// + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Type.Types.String.Types.Encoding.Types.Utf8Raw Utf8Raw { + get { return encodingCase_ == EncodingOneofCase.Utf8Raw ? (global::Google.Cloud.Bigtable.Admin.V2.Type.Types.String.Types.Encoding.Types.Utf8Raw) encoding_ : null; } + set { + encoding_ = value; + encodingCase_ = value == null ? EncodingOneofCase.None : EncodingOneofCase.Utf8Raw; + } + } + + /// Field number for the "utf8_bytes" field. + public const int Utf8BytesFieldNumber = 2; + /// + /// Use `Utf8Bytes` encoding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Type.Types.String.Types.Encoding.Types.Utf8Bytes Utf8Bytes { + get { return encodingCase_ == EncodingOneofCase.Utf8Bytes ? (global::Google.Cloud.Bigtable.Admin.V2.Type.Types.String.Types.Encoding.Types.Utf8Bytes) encoding_ : null; } + set { + encoding_ = value; + encodingCase_ = value == null ? EncodingOneofCase.None : EncodingOneofCase.Utf8Bytes; + } + } + + private object encoding_; + /// Enum of possible cases for the "encoding" oneof. + public enum EncodingOneofCase { + None = 0, + Utf8Raw = 1, + Utf8Bytes = 2, + } + private EncodingOneofCase encodingCase_ = EncodingOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EncodingOneofCase EncodingCase { + get { return encodingCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEncoding() { + encodingCase_ = EncodingOneofCase.None; + encoding_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Encoding); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Encoding other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Utf8Raw, other.Utf8Raw)) return false; + if (!object.Equals(Utf8Bytes, other.Utf8Bytes)) return false; + if (EncodingCase != other.EncodingCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (encodingCase_ == EncodingOneofCase.Utf8Raw) hash ^= Utf8Raw.GetHashCode(); + if (encodingCase_ == EncodingOneofCase.Utf8Bytes) hash ^= Utf8Bytes.GetHashCode(); + hash ^= (int) encodingCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (encodingCase_ == EncodingOneofCase.Utf8Raw) { + output.WriteRawTag(10); + output.WriteMessage(Utf8Raw); + } + if (encodingCase_ == EncodingOneofCase.Utf8Bytes) { + output.WriteRawTag(18); + output.WriteMessage(Utf8Bytes); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (encodingCase_ == EncodingOneofCase.Utf8Raw) { + output.WriteRawTag(10); + output.WriteMessage(Utf8Raw); + } + if (encodingCase_ == EncodingOneofCase.Utf8Bytes) { + output.WriteRawTag(18); + output.WriteMessage(Utf8Bytes); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (encodingCase_ == EncodingOneofCase.Utf8Raw) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Utf8Raw); + } + if (encodingCase_ == EncodingOneofCase.Utf8Bytes) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Utf8Bytes); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Encoding other) { + if (other == null) { + return; + } + switch (other.EncodingCase) { + case EncodingOneofCase.Utf8Raw: + if (Utf8Raw == null) { + Utf8Raw = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.String.Types.Encoding.Types.Utf8Raw(); + } + Utf8Raw.MergeFrom(other.Utf8Raw); + break; + case EncodingOneofCase.Utf8Bytes: + if (Utf8Bytes == null) { + Utf8Bytes = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.String.Types.Encoding.Types.Utf8Bytes(); + } + Utf8Bytes.MergeFrom(other.Utf8Bytes); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.String.Types.Encoding.Types.Utf8Raw subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.String.Types.Encoding.Types.Utf8Raw(); + if (encodingCase_ == EncodingOneofCase.Utf8Raw) { + subBuilder.MergeFrom(Utf8Raw); + } + input.ReadMessage(subBuilder); + Utf8Raw = subBuilder; + break; + } + case 18: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.String.Types.Encoding.Types.Utf8Bytes subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.String.Types.Encoding.Types.Utf8Bytes(); + if (encodingCase_ == EncodingOneofCase.Utf8Bytes) { + subBuilder.MergeFrom(Utf8Bytes); + } + input.ReadMessage(subBuilder); + Utf8Bytes = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.String.Types.Encoding.Types.Utf8Raw subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.String.Types.Encoding.Types.Utf8Raw(); + if (encodingCase_ == EncodingOneofCase.Utf8Raw) { + subBuilder.MergeFrom(Utf8Raw); + } + input.ReadMessage(subBuilder); + Utf8Raw = subBuilder; + break; + } + case 18: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.String.Types.Encoding.Types.Utf8Bytes subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.String.Types.Encoding.Types.Utf8Bytes(); + if (encodingCase_ == EncodingOneofCase.Utf8Bytes) { + subBuilder.MergeFrom(Utf8Bytes); + } + input.ReadMessage(subBuilder); + Utf8Bytes = subBuilder; + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Encoding message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Deprecated: prefer the equivalent `Utf8Bytes`. + /// + [global::System.ObsoleteAttribute] + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Utf8Raw : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Utf8Raw()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.Type.Types.String.Types.Encoding.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Utf8Raw() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Utf8Raw(Utf8Raw other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Utf8Raw Clone() { + return new Utf8Raw(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Utf8Raw); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Utf8Raw other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Utf8Raw other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + /// + /// UTF-8 encoding + /// * Order-preserving? Yes (code point order) + /// * Self-delimiting? No + /// * Compatibility? + /// - BigQuery Federation `TEXT` encoding + /// - HBase `Bytes.toBytes` + /// - Java `String#getBytes(StandardCharsets.UTF_8)` + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Utf8Bytes : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Utf8Bytes()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.Type.Types.String.Types.Encoding.Descriptor.NestedTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Utf8Bytes() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Utf8Bytes(Utf8Bytes other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Utf8Bytes Clone() { + return new Utf8Bytes(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Utf8Bytes); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Utf8Bytes other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Utf8Bytes other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + } + #endregion + + } + + } + #endregion + + } + + /// + /// Int64 + /// Values of type `Int64` are stored in `Value.int_value`. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Int64 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Int64()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.Type.Descriptor.NestedTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Int64() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Int64(Int64 other) : this() { + encoding_ = other.encoding_ != null ? other.encoding_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Int64 Clone() { + return new Int64(this); + } + + /// Field number for the "encoding" field. + public const int EncodingFieldNumber = 1; + private global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Int64.Types.Encoding encoding_; + /// + /// The encoding to use when converting to/from lower level types. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Int64.Types.Encoding Encoding { + get { return encoding_; } + set { + encoding_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Int64); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Int64 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Encoding, other.Encoding)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (encoding_ != null) hash ^= Encoding.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (encoding_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Encoding); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (encoding_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Encoding); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (encoding_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Encoding); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Int64 other) { + if (other == null) { + return; + } + if (other.encoding_ != null) { + if (encoding_ == null) { + Encoding = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Int64.Types.Encoding(); + } + Encoding.MergeFrom(other.Encoding); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (encoding_ == null) { + Encoding = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Int64.Types.Encoding(); + } + input.ReadMessage(Encoding); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (encoding_ == null) { + Encoding = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Int64.Types.Encoding(); + } + input.ReadMessage(Encoding); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Int64 message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Rules used to convert to/from lower level types. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Encoding : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Encoding()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Int64.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Encoding() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Encoding(Encoding other) : this() { + switch (other.EncodingCase) { + case EncodingOneofCase.BigEndianBytes: + BigEndianBytes = other.BigEndianBytes.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Encoding Clone() { + return new Encoding(this); + } + + /// Field number for the "big_endian_bytes" field. + public const int BigEndianBytesFieldNumber = 1; + /// + /// Use `BigEndianBytes` encoding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Int64.Types.Encoding.Types.BigEndianBytes BigEndianBytes { + get { return encodingCase_ == EncodingOneofCase.BigEndianBytes ? (global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Int64.Types.Encoding.Types.BigEndianBytes) encoding_ : null; } + set { + encoding_ = value; + encodingCase_ = value == null ? EncodingOneofCase.None : EncodingOneofCase.BigEndianBytes; + } + } + + private object encoding_; + /// Enum of possible cases for the "encoding" oneof. + public enum EncodingOneofCase { + None = 0, + BigEndianBytes = 1, + } + private EncodingOneofCase encodingCase_ = EncodingOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EncodingOneofCase EncodingCase { + get { return encodingCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEncoding() { + encodingCase_ = EncodingOneofCase.None; + encoding_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Encoding); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Encoding other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(BigEndianBytes, other.BigEndianBytes)) return false; + if (EncodingCase != other.EncodingCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (encodingCase_ == EncodingOneofCase.BigEndianBytes) hash ^= BigEndianBytes.GetHashCode(); + hash ^= (int) encodingCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (encodingCase_ == EncodingOneofCase.BigEndianBytes) { + output.WriteRawTag(10); + output.WriteMessage(BigEndianBytes); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (encodingCase_ == EncodingOneofCase.BigEndianBytes) { + output.WriteRawTag(10); + output.WriteMessage(BigEndianBytes); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (encodingCase_ == EncodingOneofCase.BigEndianBytes) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BigEndianBytes); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Encoding other) { + if (other == null) { + return; + } + switch (other.EncodingCase) { + case EncodingOneofCase.BigEndianBytes: + if (BigEndianBytes == null) { + BigEndianBytes = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Int64.Types.Encoding.Types.BigEndianBytes(); + } + BigEndianBytes.MergeFrom(other.BigEndianBytes); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Int64.Types.Encoding.Types.BigEndianBytes subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Int64.Types.Encoding.Types.BigEndianBytes(); + if (encodingCase_ == EncodingOneofCase.BigEndianBytes) { + subBuilder.MergeFrom(BigEndianBytes); + } + input.ReadMessage(subBuilder); + BigEndianBytes = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Int64.Types.Encoding.Types.BigEndianBytes subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Int64.Types.Encoding.Types.BigEndianBytes(); + if (encodingCase_ == EncodingOneofCase.BigEndianBytes) { + subBuilder.MergeFrom(BigEndianBytes); + } + input.ReadMessage(subBuilder); + BigEndianBytes = subBuilder; + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Encoding message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Encodes the value as an 8-byte big endian twos complement `Bytes` + /// value. + /// * Order-preserving? No (positive values only) + /// * Self-delimiting? Yes + /// * Compatibility? + /// - BigQuery Federation `BINARY` encoding + /// - HBase `Bytes.toBytes` + /// - Java `ByteBuffer.putLong()` with `ByteOrder.BIG_ENDIAN` + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BigEndianBytes : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BigEndianBytes()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Int64.Types.Encoding.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BigEndianBytes() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BigEndianBytes(BigEndianBytes other) : this() { + bytesType_ = other.bytesType_ != null ? other.bytesType_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BigEndianBytes Clone() { + return new BigEndianBytes(this); + } + + /// Field number for the "bytes_type" field. + public const int BytesTypeFieldNumber = 1; + private global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bytes bytesType_; + /// + /// Deprecated: ignored if set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bytes BytesType { + get { return bytesType_; } + set { + bytesType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BigEndianBytes); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BigEndianBytes other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(BytesType, other.BytesType)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (bytesType_ != null) hash ^= BytesType.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (bytesType_ != null) { + output.WriteRawTag(10); + output.WriteMessage(BytesType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (bytesType_ != null) { + output.WriteRawTag(10); + output.WriteMessage(BytesType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (bytesType_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(BytesType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BigEndianBytes other) { + if (other == null) { + return; + } + if (other.bytesType_ != null) { + if (bytesType_ == null) { + BytesType = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bytes(); + } + BytesType.MergeFrom(other.BytesType); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (bytesType_ == null) { + BytesType = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bytes(); + } + input.ReadMessage(BytesType); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (bytesType_ == null) { + BytesType = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Bytes(); + } + input.ReadMessage(BytesType); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + } + #endregion + + } + + /// + /// bool + /// Values of type `Bool` are stored in `Value.bool_value`. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Bool : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Bool()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.Type.Descriptor.NestedTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Bool() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Bool(Bool other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Bool Clone() { + return new Bool(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Bool); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Bool other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Bool other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + /// + /// Float32 + /// Values of type `Float32` are stored in `Value.float_value`. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Float32 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Float32()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.Type.Descriptor.NestedTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Float32() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Float32(Float32 other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Float32 Clone() { + return new Float32(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Float32); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Float32 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Float32 other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + /// + /// Float64 + /// Values of type `Float64` are stored in `Value.float_value`. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Float64 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Float64()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.Type.Descriptor.NestedTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Float64() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Float64(Float64 other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Float64 Clone() { + return new Float64(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Float64); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Float64 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Float64 other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + /// + /// Timestamp + /// Values of type `Timestamp` are stored in `Value.timestamp_value`. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Timestamp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Timestamp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.Type.Descriptor.NestedTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Timestamp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Timestamp(Timestamp other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Timestamp Clone() { + return new Timestamp(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Timestamp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Timestamp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Timestamp other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + /// + /// Date + /// Values of type `Date` are stored in `Value.date_value`. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Date : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Date()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.Type.Descriptor.NestedTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Date() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Date(Date other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Date Clone() { + return new Date(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Date); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Date other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Date other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + /// + /// A structured data value, consisting of fields which map to dynamically + /// typed values. + /// Values of type `Struct` are stored in `Value.array_value` where entries are + /// in the same order and number as `field_types`. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Struct : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Struct()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.Type.Descriptor.NestedTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Struct() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Struct(Struct other) : this() { + fields_ = other.fields_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Struct Clone() { + return new Struct(this); + } + + /// Field number for the "fields" field. + public const int FieldsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_fields_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Struct.Types.Field.Parser); + private readonly pbc::RepeatedField fields_ = new pbc::RepeatedField(); + /// + /// The names and types of the fields in this struct. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Fields { + get { return fields_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Struct); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Struct other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!fields_.Equals(other.fields_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= fields_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + fields_.WriteTo(output, _repeated_fields_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + fields_.WriteTo(ref output, _repeated_fields_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += fields_.CalculateSize(_repeated_fields_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Struct other) { + if (other == null) { + return; + } + fields_.Add(other.fields_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + fields_.AddEntriesFrom(input, _repeated_fields_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + fields_.AddEntriesFrom(ref input, _repeated_fields_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Struct message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// A struct field and its type. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Field : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Field()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Struct.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Field() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Field(Field other) : this() { + fieldName_ = other.fieldName_; + type_ = other.type_ != null ? other.type_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Field Clone() { + return new Field(this); + } + + /// Field number for the "field_name" field. + public const int FieldNameFieldNumber = 1; + private string fieldName_ = ""; + /// + /// The field name (optional). Fields without a `field_name` are considered + /// anonymous and cannot be referenced by name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FieldName { + get { return fieldName_; } + set { + fieldName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 2; + private global::Google.Cloud.Bigtable.Admin.V2.Type type_; + /// + /// The type of values in this field. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Type Type { + get { return type_; } + set { + type_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Field); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Field other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (FieldName != other.FieldName) return false; + if (!object.Equals(Type, other.Type)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (FieldName.Length != 0) hash ^= FieldName.GetHashCode(); + if (type_ != null) hash ^= Type.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (FieldName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(FieldName); + } + if (type_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Type); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (FieldName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(FieldName); + } + if (type_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Type); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (FieldName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FieldName); + } + if (type_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Type); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Field other) { + if (other == null) { + return; + } + if (other.FieldName.Length != 0) { + FieldName = other.FieldName; + } + if (other.type_ != null) { + if (type_ == null) { + Type = new global::Google.Cloud.Bigtable.Admin.V2.Type(); + } + Type.MergeFrom(other.Type); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + FieldName = input.ReadString(); + break; + } + case 18: { + if (type_ == null) { + Type = new global::Google.Cloud.Bigtable.Admin.V2.Type(); + } + input.ReadMessage(Type); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + FieldName = input.ReadString(); + break; + } + case 18: { + if (type_ == null) { + Type = new global::Google.Cloud.Bigtable.Admin.V2.Type(); + } + input.ReadMessage(Type); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// An ordered list of elements of a given type. + /// Values of type `Array` are stored in `Value.array_value`. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Array : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Array()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.Type.Descriptor.NestedTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Array() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Array(Array other) : this() { + elementType_ = other.elementType_ != null ? other.elementType_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Array Clone() { + return new Array(this); + } + + /// Field number for the "element_type" field. + public const int ElementTypeFieldNumber = 1; + private global::Google.Cloud.Bigtable.Admin.V2.Type elementType_; + /// + /// The type of the elements in the array. This must not be `Array`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Type ElementType { + get { return elementType_; } + set { + elementType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Array); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Array other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ElementType, other.ElementType)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (elementType_ != null) hash ^= ElementType.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (elementType_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ElementType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (elementType_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ElementType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (elementType_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ElementType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Array other) { + if (other == null) { + return; + } + if (other.elementType_ != null) { + if (elementType_ == null) { + ElementType = new global::Google.Cloud.Bigtable.Admin.V2.Type(); + } + ElementType.MergeFrom(other.ElementType); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (elementType_ == null) { + ElementType = new global::Google.Cloud.Bigtable.Admin.V2.Type(); + } + input.ReadMessage(ElementType); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (elementType_ == null) { + ElementType = new global::Google.Cloud.Bigtable.Admin.V2.Type(); + } + input.ReadMessage(ElementType); + break; + } + } + } + } + #endif + + } + + /// + /// A mapping of keys to values of a given type. + /// Values of type `Map` are stored in a `Value.array_value` where each entry + /// is another `Value.array_value` with two elements (the key and the value, + /// in that order). + /// Normally encoded Map values won't have repeated keys, however, clients are + /// expected to handle the case in which they do. If the same key appears + /// multiple times, the _last_ value takes precedence. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Map : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Map()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.Type.Descriptor.NestedTypes[10]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Map() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Map(Map other) : this() { + keyType_ = other.keyType_ != null ? other.keyType_.Clone() : null; + valueType_ = other.valueType_ != null ? other.valueType_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Map Clone() { + return new Map(this); + } + + /// Field number for the "key_type" field. + public const int KeyTypeFieldNumber = 1; + private global::Google.Cloud.Bigtable.Admin.V2.Type keyType_; + /// + /// The type of a map key. + /// Only `Bytes`, `String`, and `Int64` are allowed as key types. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Type KeyType { + get { return keyType_; } + set { + keyType_ = value; + } + } + + /// Field number for the "value_type" field. + public const int ValueTypeFieldNumber = 2; + private global::Google.Cloud.Bigtable.Admin.V2.Type valueType_; + /// + /// The type of the values in a map. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Type ValueType { + get { return valueType_; } + set { + valueType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Map); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Map other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(KeyType, other.KeyType)) return false; + if (!object.Equals(ValueType, other.ValueType)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (keyType_ != null) hash ^= KeyType.GetHashCode(); + if (valueType_ != null) hash ^= ValueType.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (keyType_ != null) { + output.WriteRawTag(10); + output.WriteMessage(KeyType); + } + if (valueType_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ValueType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (keyType_ != null) { + output.WriteRawTag(10); + output.WriteMessage(KeyType); + } + if (valueType_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ValueType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (keyType_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(KeyType); + } + if (valueType_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ValueType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Map other) { + if (other == null) { + return; + } + if (other.keyType_ != null) { + if (keyType_ == null) { + KeyType = new global::Google.Cloud.Bigtable.Admin.V2.Type(); + } + KeyType.MergeFrom(other.KeyType); + } + if (other.valueType_ != null) { + if (valueType_ == null) { + ValueType = new global::Google.Cloud.Bigtable.Admin.V2.Type(); + } + ValueType.MergeFrom(other.ValueType); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (keyType_ == null) { + KeyType = new global::Google.Cloud.Bigtable.Admin.V2.Type(); + } + input.ReadMessage(KeyType); + break; + } + case 18: { + if (valueType_ == null) { + ValueType = new global::Google.Cloud.Bigtable.Admin.V2.Type(); + } + input.ReadMessage(ValueType); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (keyType_ == null) { + KeyType = new global::Google.Cloud.Bigtable.Admin.V2.Type(); + } + input.ReadMessage(KeyType); + break; + } + case 18: { + if (valueType_ == null) { + ValueType = new global::Google.Cloud.Bigtable.Admin.V2.Type(); + } + input.ReadMessage(ValueType); + break; + } + } + } + } + #endif + + } + + /// + /// A value that combines incremental updates into a summarized value. + /// + /// Data is never directly written or read using type `Aggregate`. Writes will + /// provide either the `input_type` or `state_type`, and reads will always + /// return the `state_type` . + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Aggregate : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Aggregate()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.Type.Descriptor.NestedTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Aggregate() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Aggregate(Aggregate other) : this() { + inputType_ = other.inputType_ != null ? other.inputType_.Clone() : null; + stateType_ = other.stateType_ != null ? other.stateType_.Clone() : null; + switch (other.AggregatorCase) { + case AggregatorOneofCase.Sum: + Sum = other.Sum.Clone(); + break; + case AggregatorOneofCase.HllppUniqueCount: + HllppUniqueCount = other.HllppUniqueCount.Clone(); + break; + case AggregatorOneofCase.Max: + Max = other.Max.Clone(); + break; + case AggregatorOneofCase.Min: + Min = other.Min.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Aggregate Clone() { + return new Aggregate(this); + } + + /// Field number for the "input_type" field. + public const int InputTypeFieldNumber = 1; + private global::Google.Cloud.Bigtable.Admin.V2.Type inputType_; + /// + /// Type of the inputs that are accumulated by this `Aggregate`, which must + /// specify a full encoding. + /// Use `AddInput` mutations to accumulate new inputs. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Type InputType { + get { return inputType_; } + set { + inputType_ = value; + } + } + + /// Field number for the "state_type" field. + public const int StateTypeFieldNumber = 2; + private global::Google.Cloud.Bigtable.Admin.V2.Type stateType_; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Type StateType { + get { return stateType_; } + set { + stateType_ = value; + } + } + + /// Field number for the "sum" field. + public const int SumFieldNumber = 4; + /// + /// Sum aggregator. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Types.Sum Sum { + get { return aggregatorCase_ == AggregatorOneofCase.Sum ? (global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Types.Sum) aggregator_ : null; } + set { + aggregator_ = value; + aggregatorCase_ = value == null ? AggregatorOneofCase.None : AggregatorOneofCase.Sum; + } + } + + /// Field number for the "hllpp_unique_count" field. + public const int HllppUniqueCountFieldNumber = 5; + /// + /// HyperLogLogPlusPlusUniqueCount aggregator. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Types.HyperLogLogPlusPlusUniqueCount HllppUniqueCount { + get { return aggregatorCase_ == AggregatorOneofCase.HllppUniqueCount ? (global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Types.HyperLogLogPlusPlusUniqueCount) aggregator_ : null; } + set { + aggregator_ = value; + aggregatorCase_ = value == null ? AggregatorOneofCase.None : AggregatorOneofCase.HllppUniqueCount; + } + } + + /// Field number for the "max" field. + public const int MaxFieldNumber = 6; + /// + /// Max aggregator. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Types.Max Max { + get { return aggregatorCase_ == AggregatorOneofCase.Max ? (global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Types.Max) aggregator_ : null; } + set { + aggregator_ = value; + aggregatorCase_ = value == null ? AggregatorOneofCase.None : AggregatorOneofCase.Max; + } + } + + /// Field number for the "min" field. + public const int MinFieldNumber = 7; + /// + /// Min aggregator. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Types.Min Min { + get { return aggregatorCase_ == AggregatorOneofCase.Min ? (global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Types.Min) aggregator_ : null; } + set { + aggregator_ = value; + aggregatorCase_ = value == null ? AggregatorOneofCase.None : AggregatorOneofCase.Min; + } + } + + private object aggregator_; + /// Enum of possible cases for the "aggregator" oneof. + public enum AggregatorOneofCase { + None = 0, + Sum = 4, + HllppUniqueCount = 5, + Max = 6, + Min = 7, + } + private AggregatorOneofCase aggregatorCase_ = AggregatorOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AggregatorOneofCase AggregatorCase { + get { return aggregatorCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAggregator() { + aggregatorCase_ = AggregatorOneofCase.None; + aggregator_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Aggregate); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Aggregate other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(InputType, other.InputType)) return false; + if (!object.Equals(StateType, other.StateType)) return false; + if (!object.Equals(Sum, other.Sum)) return false; + if (!object.Equals(HllppUniqueCount, other.HllppUniqueCount)) return false; + if (!object.Equals(Max, other.Max)) return false; + if (!object.Equals(Min, other.Min)) return false; + if (AggregatorCase != other.AggregatorCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (inputType_ != null) hash ^= InputType.GetHashCode(); + if (stateType_ != null) hash ^= StateType.GetHashCode(); + if (aggregatorCase_ == AggregatorOneofCase.Sum) hash ^= Sum.GetHashCode(); + if (aggregatorCase_ == AggregatorOneofCase.HllppUniqueCount) hash ^= HllppUniqueCount.GetHashCode(); + if (aggregatorCase_ == AggregatorOneofCase.Max) hash ^= Max.GetHashCode(); + if (aggregatorCase_ == AggregatorOneofCase.Min) hash ^= Min.GetHashCode(); + hash ^= (int) aggregatorCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (inputType_ != null) { + output.WriteRawTag(10); + output.WriteMessage(InputType); + } + if (stateType_ != null) { + output.WriteRawTag(18); + output.WriteMessage(StateType); + } + if (aggregatorCase_ == AggregatorOneofCase.Sum) { + output.WriteRawTag(34); + output.WriteMessage(Sum); + } + if (aggregatorCase_ == AggregatorOneofCase.HllppUniqueCount) { + output.WriteRawTag(42); + output.WriteMessage(HllppUniqueCount); + } + if (aggregatorCase_ == AggregatorOneofCase.Max) { + output.WriteRawTag(50); + output.WriteMessage(Max); + } + if (aggregatorCase_ == AggregatorOneofCase.Min) { + output.WriteRawTag(58); + output.WriteMessage(Min); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (inputType_ != null) { + output.WriteRawTag(10); + output.WriteMessage(InputType); + } + if (stateType_ != null) { + output.WriteRawTag(18); + output.WriteMessage(StateType); + } + if (aggregatorCase_ == AggregatorOneofCase.Sum) { + output.WriteRawTag(34); + output.WriteMessage(Sum); + } + if (aggregatorCase_ == AggregatorOneofCase.HllppUniqueCount) { + output.WriteRawTag(42); + output.WriteMessage(HllppUniqueCount); + } + if (aggregatorCase_ == AggregatorOneofCase.Max) { + output.WriteRawTag(50); + output.WriteMessage(Max); + } + if (aggregatorCase_ == AggregatorOneofCase.Min) { + output.WriteRawTag(58); + output.WriteMessage(Min); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (inputType_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(InputType); + } + if (stateType_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StateType); + } + if (aggregatorCase_ == AggregatorOneofCase.Sum) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sum); + } + if (aggregatorCase_ == AggregatorOneofCase.HllppUniqueCount) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(HllppUniqueCount); + } + if (aggregatorCase_ == AggregatorOneofCase.Max) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Max); + } + if (aggregatorCase_ == AggregatorOneofCase.Min) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Min); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Aggregate other) { + if (other == null) { + return; + } + if (other.inputType_ != null) { + if (inputType_ == null) { + InputType = new global::Google.Cloud.Bigtable.Admin.V2.Type(); + } + InputType.MergeFrom(other.InputType); + } + if (other.stateType_ != null) { + if (stateType_ == null) { + StateType = new global::Google.Cloud.Bigtable.Admin.V2.Type(); + } + StateType.MergeFrom(other.StateType); + } + switch (other.AggregatorCase) { + case AggregatorOneofCase.Sum: + if (Sum == null) { + Sum = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Types.Sum(); + } + Sum.MergeFrom(other.Sum); + break; + case AggregatorOneofCase.HllppUniqueCount: + if (HllppUniqueCount == null) { + HllppUniqueCount = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Types.HyperLogLogPlusPlusUniqueCount(); + } + HllppUniqueCount.MergeFrom(other.HllppUniqueCount); + break; + case AggregatorOneofCase.Max: + if (Max == null) { + Max = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Types.Max(); + } + Max.MergeFrom(other.Max); + break; + case AggregatorOneofCase.Min: + if (Min == null) { + Min = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Types.Min(); + } + Min.MergeFrom(other.Min); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (inputType_ == null) { + InputType = new global::Google.Cloud.Bigtable.Admin.V2.Type(); + } + input.ReadMessage(InputType); + break; + } + case 18: { + if (stateType_ == null) { + StateType = new global::Google.Cloud.Bigtable.Admin.V2.Type(); + } + input.ReadMessage(StateType); + break; + } + case 34: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Types.Sum subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Types.Sum(); + if (aggregatorCase_ == AggregatorOneofCase.Sum) { + subBuilder.MergeFrom(Sum); + } + input.ReadMessage(subBuilder); + Sum = subBuilder; + break; + } + case 42: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Types.HyperLogLogPlusPlusUniqueCount subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Types.HyperLogLogPlusPlusUniqueCount(); + if (aggregatorCase_ == AggregatorOneofCase.HllppUniqueCount) { + subBuilder.MergeFrom(HllppUniqueCount); + } + input.ReadMessage(subBuilder); + HllppUniqueCount = subBuilder; + break; + } + case 50: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Types.Max subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Types.Max(); + if (aggregatorCase_ == AggregatorOneofCase.Max) { + subBuilder.MergeFrom(Max); + } + input.ReadMessage(subBuilder); + Max = subBuilder; + break; + } + case 58: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Types.Min subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Types.Min(); + if (aggregatorCase_ == AggregatorOneofCase.Min) { + subBuilder.MergeFrom(Min); + } + input.ReadMessage(subBuilder); + Min = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (inputType_ == null) { + InputType = new global::Google.Cloud.Bigtable.Admin.V2.Type(); + } + input.ReadMessage(InputType); + break; + } + case 18: { + if (stateType_ == null) { + StateType = new global::Google.Cloud.Bigtable.Admin.V2.Type(); + } + input.ReadMessage(StateType); + break; + } + case 34: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Types.Sum subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Types.Sum(); + if (aggregatorCase_ == AggregatorOneofCase.Sum) { + subBuilder.MergeFrom(Sum); + } + input.ReadMessage(subBuilder); + Sum = subBuilder; + break; + } + case 42: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Types.HyperLogLogPlusPlusUniqueCount subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Types.HyperLogLogPlusPlusUniqueCount(); + if (aggregatorCase_ == AggregatorOneofCase.HllppUniqueCount) { + subBuilder.MergeFrom(HllppUniqueCount); + } + input.ReadMessage(subBuilder); + HllppUniqueCount = subBuilder; + break; + } + case 50: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Types.Max subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Types.Max(); + if (aggregatorCase_ == AggregatorOneofCase.Max) { + subBuilder.MergeFrom(Max); + } + input.ReadMessage(subBuilder); + Max = subBuilder; + break; + } + case 58: { + global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Types.Min subBuilder = new global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Types.Min(); + if (aggregatorCase_ == AggregatorOneofCase.Min) { + subBuilder.MergeFrom(Min); + } + input.ReadMessage(subBuilder); + Min = subBuilder; + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Aggregate message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Computes the sum of the input values. + /// Allowed input: `Int64` + /// State: same as input + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Sum : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Sum()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Sum() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Sum(Sum other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Sum Clone() { + return new Sum(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Sum); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Sum other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Sum other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + /// + /// Computes the max of the input values. + /// Allowed input: `Int64` + /// State: same as input + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Max : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Max()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Descriptor.NestedTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Max() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Max(Max other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Max Clone() { + return new Max(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Max); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Max other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Max other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + /// + /// Computes the min of the input values. + /// Allowed input: `Int64` + /// State: same as input + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Min : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Min()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Descriptor.NestedTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Min() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Min(Min other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Min Clone() { + return new Min(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Min); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Min other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Min other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + /// + /// Computes an approximate unique count over the input values. When using + /// raw data as input, be careful to use a consistent encoding. Otherwise + /// the same value encoded differently could count more than once, or two + /// distinct values could count as identical. + /// Input: Any, or omit for Raw + /// State: TBD + /// Special state conversions: `Int64` (the unique count estimate) + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class HyperLogLogPlusPlusUniqueCount : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HyperLogLogPlusPlusUniqueCount()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.Bigtable.Admin.V2.Type.Types.Aggregate.Descriptor.NestedTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HyperLogLogPlusPlusUniqueCount() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HyperLogLogPlusPlusUniqueCount(HyperLogLogPlusPlusUniqueCount other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HyperLogLogPlusPlusUniqueCount Clone() { + return new HyperLogLogPlusPlusUniqueCount(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as HyperLogLogPlusPlusUniqueCount); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HyperLogLogPlusPlusUniqueCount other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(HyperLogLogPlusPlusUniqueCount other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + } + #endregion + + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/gapic_metadata.json b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/gapic_metadata.json new file mode 100755 index 000000000000..7b658b8aea4b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.Bigtable.Admin.V2/gapic_metadata.json @@ -0,0 +1,333 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "csharp", + "protoPackage": "google.bigtable.admin.v2", + "libraryPackage": "Google.Cloud.Bigtable.Admin.V2", + "services": { + "BigtableInstanceAdmin": { + "clients": { + "grpc": { + "libraryClient": "BigtableInstanceAdminClient", + "rpcs": { + "CreateAppProfile": { + "methods": [ + "CreateAppProfile", + "CreateAppProfileAsync" + ] + }, + "CreateCluster": { + "methods": [ + "CreateCluster", + "CreateClusterAsync" + ] + }, + "CreateInstance": { + "methods": [ + "CreateInstance", + "CreateInstanceAsync" + ] + }, + "DeleteAppProfile": { + "methods": [ + "DeleteAppProfile", + "DeleteAppProfileAsync" + ] + }, + "DeleteCluster": { + "methods": [ + "DeleteCluster", + "DeleteClusterAsync" + ] + }, + "DeleteInstance": { + "methods": [ + "DeleteInstance", + "DeleteInstanceAsync" + ] + }, + "GetAppProfile": { + "methods": [ + "GetAppProfile", + "GetAppProfileAsync" + ] + }, + "GetCluster": { + "methods": [ + "GetCluster", + "GetClusterAsync" + ] + }, + "GetIamPolicy": { + "methods": [ + "GetIamPolicy", + "GetIamPolicyAsync" + ] + }, + "GetInstance": { + "methods": [ + "GetInstance", + "GetInstanceAsync" + ] + }, + "ListAppProfiles": { + "methods": [ + "ListAppProfiles", + "ListAppProfilesAsync" + ] + }, + "ListClusters": { + "methods": [ + "ListClusters", + "ListClustersAsync" + ] + }, + "ListHotTablets": { + "methods": [ + "ListHotTablets", + "ListHotTabletsAsync" + ] + }, + "ListInstances": { + "methods": [ + "ListInstances", + "ListInstancesAsync" + ] + }, + "PartialUpdateCluster": { + "methods": [ + "PartialUpdateCluster", + "PartialUpdateClusterAsync" + ] + }, + "PartialUpdateInstance": { + "methods": [ + "PartialUpdateInstance", + "PartialUpdateInstanceAsync" + ] + }, + "SetIamPolicy": { + "methods": [ + "SetIamPolicy", + "SetIamPolicyAsync" + ] + }, + "TestIamPermissions": { + "methods": [ + "TestIamPermissions", + "TestIamPermissionsAsync" + ] + }, + "UpdateAppProfile": { + "methods": [ + "UpdateAppProfile", + "UpdateAppProfileAsync" + ] + }, + "UpdateCluster": { + "methods": [ + "UpdateCluster", + "UpdateClusterAsync" + ] + }, + "UpdateInstance": { + "methods": [ + "UpdateInstance", + "UpdateInstanceAsync" + ] + } + } + } + } + }, + "BigtableTableAdmin": { + "clients": { + "grpc": { + "libraryClient": "BigtableTableAdminClient", + "rpcs": { + "CheckConsistency": { + "methods": [ + "CheckConsistency", + "CheckConsistencyAsync" + ] + }, + "CopyBackup": { + "methods": [ + "CopyBackup", + "CopyBackupAsync" + ] + }, + "CreateAuthorizedView": { + "methods": [ + "CreateAuthorizedView", + "CreateAuthorizedViewAsync" + ] + }, + "CreateBackup": { + "methods": [ + "CreateBackup", + "CreateBackupAsync" + ] + }, + "CreateTable": { + "methods": [ + "CreateTable", + "CreateTableAsync" + ] + }, + "CreateTableFromSnapshot": { + "methods": [ + "CreateTableFromSnapshot", + "CreateTableFromSnapshotAsync" + ] + }, + "DeleteAuthorizedView": { + "methods": [ + "DeleteAuthorizedView", + "DeleteAuthorizedViewAsync" + ] + }, + "DeleteBackup": { + "methods": [ + "DeleteBackup", + "DeleteBackupAsync" + ] + }, + "DeleteSnapshot": { + "methods": [ + "DeleteSnapshot", + "DeleteSnapshotAsync" + ] + }, + "DeleteTable": { + "methods": [ + "DeleteTable", + "DeleteTableAsync" + ] + }, + "DropRowRange": { + "methods": [ + "DropRowRange", + "DropRowRangeAsync" + ] + }, + "GenerateConsistencyToken": { + "methods": [ + "GenerateConsistencyToken", + "GenerateConsistencyTokenAsync" + ] + }, + "GetAuthorizedView": { + "methods": [ + "GetAuthorizedView", + "GetAuthorizedViewAsync" + ] + }, + "GetBackup": { + "methods": [ + "GetBackup", + "GetBackupAsync" + ] + }, + "GetIamPolicy": { + "methods": [ + "GetIamPolicy", + "GetIamPolicyAsync" + ] + }, + "GetSnapshot": { + "methods": [ + "GetSnapshot", + "GetSnapshotAsync" + ] + }, + "GetTable": { + "methods": [ + "GetTable", + "GetTableAsync" + ] + }, + "ListAuthorizedViews": { + "methods": [ + "ListAuthorizedViews", + "ListAuthorizedViewsAsync" + ] + }, + "ListBackups": { + "methods": [ + "ListBackups", + "ListBackupsAsync" + ] + }, + "ListSnapshots": { + "methods": [ + "ListSnapshots", + "ListSnapshotsAsync" + ] + }, + "ListTables": { + "methods": [ + "ListTables", + "ListTablesAsync" + ] + }, + "ModifyColumnFamilies": { + "methods": [ + "ModifyColumnFamilies", + "ModifyColumnFamiliesAsync" + ] + }, + "RestoreTable": { + "methods": [ + "RestoreTable", + "RestoreTableAsync" + ] + }, + "SetIamPolicy": { + "methods": [ + "SetIamPolicy", + "SetIamPolicyAsync" + ] + }, + "SnapshotTable": { + "methods": [ + "SnapshotTable", + "SnapshotTableAsync" + ] + }, + "TestIamPermissions": { + "methods": [ + "TestIamPermissions", + "TestIamPermissionsAsync" + ] + }, + "UndeleteTable": { + "methods": [ + "UndeleteTable", + "UndeleteTableAsync" + ] + }, + "UpdateAuthorizedView": { + "methods": [ + "UpdateAuthorizedView", + "UpdateAuthorizedViewAsync" + ] + }, + "UpdateBackup": { + "methods": [ + "UpdateBackup", + "UpdateBackupAsync" + ] + }, + "UpdateTable": { + "methods": [ + "UpdateTable", + "UpdateTableAsync" + ] + } + } + } + } + } + } +}