From 03b5e8e42b77f548d656eb4461d13819bf6dbd1b Mon Sep 17 00:00:00 2001 From: Sofia Leon Date: Mon, 16 May 2022 13:16:02 -0700 Subject: [PATCH 1/9] feat!: Update library to use Node 12 --- .kokoro/continuous/node10/common.cfg | 34 - .kokoro/continuous/node10/docs.cfg | 4 - .kokoro/continuous/node10/test.cfg | 9 - .kokoro/continuous/node8/common.cfg | 24 - .kokoro/continuous/node8/test.cfg | 0 .kokoro/presubmit/node10/common.cfg | 34 - .kokoro/presubmit/node10/docs.cfg | 4 - .kokoro/presubmit/node10/lint.cfg | 4 - .kokoro/presubmit/node10/test.cfg | 0 .kokoro/presubmit/node8/common.cfg | 24 - .kokoro/presubmit/node8/test.cfg | 0 package.json | 6 +- protos/protos.d.ts | 517 ++++++++---- protos/protos.js | 1115 ++++++++++++++++++++------ protos/protos.json | 70 +- samples/package.json | 2 +- 16 files changed, 1287 insertions(+), 560 deletions(-) delete mode 100644 .kokoro/continuous/node10/common.cfg delete mode 100644 .kokoro/continuous/node10/docs.cfg delete mode 100644 .kokoro/continuous/node10/test.cfg delete mode 100644 .kokoro/continuous/node8/common.cfg delete mode 100644 .kokoro/continuous/node8/test.cfg delete mode 100644 .kokoro/presubmit/node10/common.cfg delete mode 100644 .kokoro/presubmit/node10/docs.cfg delete mode 100644 .kokoro/presubmit/node10/lint.cfg delete mode 100644 .kokoro/presubmit/node10/test.cfg delete mode 100644 .kokoro/presubmit/node8/common.cfg delete mode 100644 .kokoro/presubmit/node8/test.cfg diff --git a/.kokoro/continuous/node10/common.cfg b/.kokoro/continuous/node10/common.cfg deleted file mode 100644 index 4a5e7f9f1..000000000 --- a/.kokoro/continuous/node10/common.cfg +++ /dev/null @@ -1,34 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Build logs will be here -action { - define_artifacts { - regex: "**/*sponge_log.xml" - } -} - -# Bring in codecov.io token into the build as $KOKORO_KEYSTORE_DIR/73713_dpebot_codecov_token -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "dpebot_codecov_token" - } - } -} - -# Download trampoline resources. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# Use the trampoline script to run in docker. -build_file: "nodejs-bigtable/.kokoro/trampoline_v2.sh" - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/node:10-user" -} -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/nodejs-bigtable/.kokoro/test.sh" -} diff --git a/.kokoro/continuous/node10/docs.cfg b/.kokoro/continuous/node10/docs.cfg deleted file mode 100644 index b9ce13b56..000000000 --- a/.kokoro/continuous/node10/docs.cfg +++ /dev/null @@ -1,4 +0,0 @@ -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/nodejs-bigtable/.kokoro/docs.sh" -} diff --git a/.kokoro/continuous/node10/test.cfg b/.kokoro/continuous/node10/test.cfg deleted file mode 100644 index 609c0cf0a..000000000 --- a/.kokoro/continuous/node10/test.cfg +++ /dev/null @@ -1,9 +0,0 @@ -# Bring in codecov.io token into the build as $KOKORO_KEYSTORE_DIR/73713_dpebot_codecov_token -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "dpebot_codecov_token" - } - } -} diff --git a/.kokoro/continuous/node8/common.cfg b/.kokoro/continuous/node8/common.cfg deleted file mode 100644 index ecd9bac21..000000000 --- a/.kokoro/continuous/node8/common.cfg +++ /dev/null @@ -1,24 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Build logs will be here -action { - define_artifacts { - regex: "**/*sponge_log.xml" - } -} - -# Download trampoline resources. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# Use the trampoline script to run in docker. -build_file: "nodejs-bigtable/.kokoro/trampoline.sh" - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/node:8-user" -} -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/nodejs-bigtable/.kokoro/test.sh" -} diff --git a/.kokoro/continuous/node8/test.cfg b/.kokoro/continuous/node8/test.cfg deleted file mode 100644 index e69de29bb..000000000 diff --git a/.kokoro/presubmit/node10/common.cfg b/.kokoro/presubmit/node10/common.cfg deleted file mode 100644 index 4a5e7f9f1..000000000 --- a/.kokoro/presubmit/node10/common.cfg +++ /dev/null @@ -1,34 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Build logs will be here -action { - define_artifacts { - regex: "**/*sponge_log.xml" - } -} - -# Bring in codecov.io token into the build as $KOKORO_KEYSTORE_DIR/73713_dpebot_codecov_token -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "dpebot_codecov_token" - } - } -} - -# Download trampoline resources. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# Use the trampoline script to run in docker. -build_file: "nodejs-bigtable/.kokoro/trampoline_v2.sh" - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/node:10-user" -} -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/nodejs-bigtable/.kokoro/test.sh" -} diff --git a/.kokoro/presubmit/node10/docs.cfg b/.kokoro/presubmit/node10/docs.cfg deleted file mode 100644 index b9ce13b56..000000000 --- a/.kokoro/presubmit/node10/docs.cfg +++ /dev/null @@ -1,4 +0,0 @@ -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/nodejs-bigtable/.kokoro/docs.sh" -} diff --git a/.kokoro/presubmit/node10/lint.cfg b/.kokoro/presubmit/node10/lint.cfg deleted file mode 100644 index fe841af51..000000000 --- a/.kokoro/presubmit/node10/lint.cfg +++ /dev/null @@ -1,4 +0,0 @@ -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/nodejs-bigtable/.kokoro/lint.sh" -} diff --git a/.kokoro/presubmit/node10/test.cfg b/.kokoro/presubmit/node10/test.cfg deleted file mode 100644 index e69de29bb..000000000 diff --git a/.kokoro/presubmit/node8/common.cfg b/.kokoro/presubmit/node8/common.cfg deleted file mode 100644 index ecd9bac21..000000000 --- a/.kokoro/presubmit/node8/common.cfg +++ /dev/null @@ -1,24 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Build logs will be here -action { - define_artifacts { - regex: "**/*sponge_log.xml" - } -} - -# Download trampoline resources. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# Use the trampoline script to run in docker. -build_file: "nodejs-bigtable/.kokoro/trampoline.sh" - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/node:8-user" -} -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/nodejs-bigtable/.kokoro/test.sh" -} diff --git a/.kokoro/presubmit/node8/test.cfg b/.kokoro/presubmit/node8/test.cfg deleted file mode 100644 index e69de29bb..000000000 diff --git a/package.json b/package.json index c48f6543c..4b4876a99 100644 --- a/package.json +++ b/package.json @@ -80,19 +80,19 @@ "jsdoc-fresh": "^1.0.2", "jsdoc-region-tag": "^1.0.4", "linkinator": "^2.0.3", - "mocha": "^8.0.0", + "mocha": "^9.2.2", "null-loader": "^4.0.0", "p-queue": "^6.0.2", "pack-n-play": "^1.0.0-2", "proxyquire": "^2.0.0", "sinon": "^14.0.0", "ts-loader": "^9.0.0", - "typescript": "^3.8.3", + "typescript": "^4.6.4", "uuid": "^8.0.0", "webpack": "^5.0.0", "webpack-cli": "^4.0.0" }, "engines": { - "node": ">=10" + "node": ">=12.0.0" } } diff --git a/protos/protos.d.ts b/protos/protos.d.ts index cc06d0e3a..54db50768 100644 --- a/protos/protos.d.ts +++ b/protos/protos.d.ts @@ -344,147 +344,147 @@ export namespace google { namespace BigtableInstanceAdmin { /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#createInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|createInstance}. * @param error Error, if any * @param [response] Operation */ type CreateInstanceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#getInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getInstance}. * @param error Error, if any * @param [response] Instance */ type GetInstanceCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Instance) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#listInstances}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listInstances}. * @param error Error, if any * @param [response] ListInstancesResponse */ type ListInstancesCallback = (error: (Error|null), response?: google.bigtable.admin.v2.ListInstancesResponse) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#updateInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|updateInstance}. * @param error Error, if any * @param [response] Instance */ type UpdateInstanceCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Instance) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#partialUpdateInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|partialUpdateInstance}. * @param error Error, if any * @param [response] Operation */ type PartialUpdateInstanceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#deleteInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|deleteInstance}. * @param error Error, if any * @param [response] Empty */ type DeleteInstanceCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#createCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|createCluster}. * @param error Error, if any * @param [response] Operation */ type CreateClusterCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#getCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getCluster}. * @param error Error, if any * @param [response] Cluster */ type GetClusterCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Cluster) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#listClusters}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listClusters}. * @param error Error, if any * @param [response] ListClustersResponse */ type ListClustersCallback = (error: (Error|null), response?: google.bigtable.admin.v2.ListClustersResponse) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#updateCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|updateCluster}. * @param error Error, if any * @param [response] Operation */ type UpdateClusterCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#partialUpdateCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|partialUpdateCluster}. * @param error Error, if any * @param [response] Operation */ type PartialUpdateClusterCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#deleteCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|deleteCluster}. * @param error Error, if any * @param [response] Empty */ type DeleteClusterCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#createAppProfile}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|createAppProfile}. * @param error Error, if any * @param [response] AppProfile */ type CreateAppProfileCallback = (error: (Error|null), response?: google.bigtable.admin.v2.AppProfile) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#getAppProfile}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getAppProfile}. * @param error Error, if any * @param [response] AppProfile */ type GetAppProfileCallback = (error: (Error|null), response?: google.bigtable.admin.v2.AppProfile) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#listAppProfiles}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listAppProfiles}. * @param error Error, if any * @param [response] ListAppProfilesResponse */ type ListAppProfilesCallback = (error: (Error|null), response?: google.bigtable.admin.v2.ListAppProfilesResponse) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#updateAppProfile}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|updateAppProfile}. * @param error Error, if any * @param [response] Operation */ type UpdateAppProfileCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#deleteAppProfile}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|deleteAppProfile}. * @param error Error, if any * @param [response] Empty */ type DeleteAppProfileCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#getIamPolicy}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getIamPolicy}. * @param error Error, if any * @param [response] Policy */ type GetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#setIamPolicy}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|setIamPolicy}. * @param error Error, if any * @param [response] Policy */ type SetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#testIamPermissions}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|testIamPermissions}. * @param error Error, if any * @param [response] TestIamPermissionsResponse */ type TestIamPermissionsCallback = (error: (Error|null), response?: google.iam.v1.TestIamPermissionsResponse) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#listHotTablets}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listHotTablets}. * @param error Error, if any * @param [response] ListHotTabletsResponse */ @@ -4666,154 +4666,154 @@ export namespace google { namespace BigtableTableAdmin { /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#createTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|createTable}. * @param error Error, if any * @param [response] Table */ type CreateTableCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Table) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#createTableFromSnapshot}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|createTableFromSnapshot}. * @param error Error, if any * @param [response] Operation */ type CreateTableFromSnapshotCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#listTables}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|listTables}. * @param error Error, if any * @param [response] ListTablesResponse */ type ListTablesCallback = (error: (Error|null), response?: google.bigtable.admin.v2.ListTablesResponse) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#getTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|getTable}. * @param error Error, if any * @param [response] Table */ type GetTableCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Table) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#deleteTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|deleteTable}. * @param error Error, if any * @param [response] Empty */ type DeleteTableCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#modifyColumnFamilies}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|modifyColumnFamilies}. * @param error Error, if any * @param [response] Table */ type ModifyColumnFamiliesCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Table) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#dropRowRange}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|dropRowRange}. * @param error Error, if any * @param [response] Empty */ type DropRowRangeCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#generateConsistencyToken}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|generateConsistencyToken}. * @param error Error, if any * @param [response] GenerateConsistencyTokenResponse */ type GenerateConsistencyTokenCallback = (error: (Error|null), response?: google.bigtable.admin.v2.GenerateConsistencyTokenResponse) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#checkConsistency}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|checkConsistency}. * @param error Error, if any * @param [response] CheckConsistencyResponse */ type CheckConsistencyCallback = (error: (Error|null), response?: google.bigtable.admin.v2.CheckConsistencyResponse) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#snapshotTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|snapshotTable}. * @param error Error, if any * @param [response] Operation */ type SnapshotTableCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#getSnapshot}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|getSnapshot}. * @param error Error, if any * @param [response] Snapshot */ type GetSnapshotCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Snapshot) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#listSnapshots}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|listSnapshots}. * @param error Error, if any * @param [response] ListSnapshotsResponse */ type ListSnapshotsCallback = (error: (Error|null), response?: google.bigtable.admin.v2.ListSnapshotsResponse) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#deleteSnapshot}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|deleteSnapshot}. * @param error Error, if any * @param [response] Empty */ type DeleteSnapshotCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#createBackup}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|createBackup}. * @param error Error, if any * @param [response] Operation */ type CreateBackupCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#getBackup}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|getBackup}. * @param error Error, if any * @param [response] Backup */ type GetBackupCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Backup) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#updateBackup}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|updateBackup}. * @param error Error, if any * @param [response] Backup */ type UpdateBackupCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Backup) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#deleteBackup}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|deleteBackup}. * @param error Error, if any * @param [response] Empty */ type DeleteBackupCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#listBackups}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|listBackups}. * @param error Error, if any * @param [response] ListBackupsResponse */ type ListBackupsCallback = (error: (Error|null), response?: google.bigtable.admin.v2.ListBackupsResponse) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#restoreTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|restoreTable}. * @param error Error, if any * @param [response] Operation */ type RestoreTableCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#getIamPolicy}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|getIamPolicy}. * @param error Error, if any * @param [response] Policy */ type GetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#setIamPolicy}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|setIamPolicy}. * @param error Error, if any * @param [response] Policy */ type SetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#testIamPermissions}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|testIamPermissions}. * @param error Error, if any * @param [response] TestIamPermissionsResponse */ @@ -9260,49 +9260,49 @@ export namespace google { namespace Bigtable { /** - * Callback as used by {@link google.bigtable.v2.Bigtable#readRows}. + * Callback as used by {@link google.bigtable.v2.Bigtable|readRows}. * @param error Error, if any * @param [response] ReadRowsResponse */ type ReadRowsCallback = (error: (Error|null), response?: google.bigtable.v2.ReadRowsResponse) => void; /** - * Callback as used by {@link google.bigtable.v2.Bigtable#sampleRowKeys}. + * Callback as used by {@link google.bigtable.v2.Bigtable|sampleRowKeys}. * @param error Error, if any * @param [response] SampleRowKeysResponse */ type SampleRowKeysCallback = (error: (Error|null), response?: google.bigtable.v2.SampleRowKeysResponse) => void; /** - * Callback as used by {@link google.bigtable.v2.Bigtable#mutateRow}. + * Callback as used by {@link google.bigtable.v2.Bigtable|mutateRow}. * @param error Error, if any * @param [response] MutateRowResponse */ type MutateRowCallback = (error: (Error|null), response?: google.bigtable.v2.MutateRowResponse) => void; /** - * Callback as used by {@link google.bigtable.v2.Bigtable#mutateRows}. + * Callback as used by {@link google.bigtable.v2.Bigtable|mutateRows}. * @param error Error, if any * @param [response] MutateRowsResponse */ type MutateRowsCallback = (error: (Error|null), response?: google.bigtable.v2.MutateRowsResponse) => void; /** - * Callback as used by {@link google.bigtable.v2.Bigtable#checkAndMutateRow}. + * Callback as used by {@link google.bigtable.v2.Bigtable|checkAndMutateRow}. * @param error Error, if any * @param [response] CheckAndMutateRowResponse */ type CheckAndMutateRowCallback = (error: (Error|null), response?: google.bigtable.v2.CheckAndMutateRowResponse) => void; /** - * Callback as used by {@link google.bigtable.v2.Bigtable#pingAndWarm}. + * Callback as used by {@link google.bigtable.v2.Bigtable|pingAndWarm}. * @param error Error, if any * @param [response] PingAndWarmResponse */ type PingAndWarmCallback = (error: (Error|null), response?: google.bigtable.v2.PingAndWarmResponse) => void; /** - * Callback as used by {@link google.bigtable.v2.Bigtable#readModifyWriteRow}. + * Callback as used by {@link google.bigtable.v2.Bigtable|readModifyWriteRow}. * @param error Error, if any * @param [response] ReadModifyWriteRowResponse */ @@ -15685,6 +15685,9 @@ export namespace google { /** FieldOptions lazy */ lazy?: (boolean|null); + /** FieldOptions unverifiedLazy */ + unverifiedLazy?: (boolean|null); + /** FieldOptions deprecated */ deprecated?: (boolean|null); @@ -15722,6 +15725,9 @@ export namespace google { /** FieldOptions lazy. */ public lazy: boolean; + /** FieldOptions unverifiedLazy. */ + public unverifiedLazy: boolean; + /** FieldOptions deprecated. */ public deprecated: boolean; @@ -17062,6 +17068,96 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a FieldMask. */ + interface IFieldMask { + + /** FieldMask paths */ + paths?: (string[]|null); + } + + /** Represents a FieldMask. */ + class FieldMask implements IFieldMask { + + /** + * Constructs a new FieldMask. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFieldMask); + + /** FieldMask paths. */ + public paths: string[]; + + /** + * Creates a new FieldMask instance using the specified properties. + * @param [properties] Properties to set + * @returns FieldMask instance + */ + public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask; + + /** + * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * @param message FieldMask message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * @param message FieldMask message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FieldMask message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FieldMask + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldMask; + + /** + * Decodes a FieldMask message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FieldMask + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldMask; + + /** + * Verifies a FieldMask message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FieldMask message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FieldMask + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask; + + /** + * Creates a plain object from a FieldMask message. Also converts values to other types if specified. + * @param message FieldMask + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FieldMask to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of an Any. */ interface IAny { @@ -17338,96 +17434,6 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** Properties of a FieldMask. */ - interface IFieldMask { - - /** FieldMask paths */ - paths?: (string[]|null); - } - - /** Represents a FieldMask. */ - class FieldMask implements IFieldMask { - - /** - * Constructs a new FieldMask. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IFieldMask); - - /** FieldMask paths. */ - public paths: string[]; - - /** - * Creates a new FieldMask instance using the specified properties. - * @param [properties] Properties to set - * @returns FieldMask instance - */ - public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask; - - /** - * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. - * @param message FieldMask message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. - * @param message FieldMask message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FieldMask message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FieldMask - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldMask; - - /** - * Decodes a FieldMask message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FieldMask - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldMask; - - /** - * Verifies a FieldMask message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a FieldMask message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FieldMask - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask; - - /** - * Creates a plain object from a FieldMask message. Also converts values to other types if specified. - * @param message FieldMask - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this FieldMask to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - /** Properties of a DoubleValue. */ interface IDoubleValue { @@ -18311,21 +18317,21 @@ export namespace google { namespace IAMPolicy { /** - * Callback as used by {@link google.iam.v1.IAMPolicy#setIamPolicy}. + * Callback as used by {@link google.iam.v1.IAMPolicy|setIamPolicy}. * @param error Error, if any * @param [response] Policy */ type SetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; /** - * Callback as used by {@link google.iam.v1.IAMPolicy#getIamPolicy}. + * Callback as used by {@link google.iam.v1.IAMPolicy|getIamPolicy}. * @param error Error, if any * @param [response] Policy */ type GetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; /** - * Callback as used by {@link google.iam.v1.IAMPolicy#testIamPermissions}. + * Callback as used by {@link google.iam.v1.IAMPolicy|testIamPermissions}. * @param error Error, if any * @param [response] TestIamPermissionsResponse */ @@ -18340,6 +18346,9 @@ export namespace google { /** SetIamPolicyRequest policy */ policy?: (google.iam.v1.IPolicy|null); + + /** SetIamPolicyRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } /** Represents a SetIamPolicyRequest. */ @@ -18357,6 +18366,9 @@ export namespace google { /** SetIamPolicyRequest policy. */ public policy?: (google.iam.v1.IPolicy|null); + /** SetIamPolicyRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + /** * Creates a new SetIamPolicyRequest instance using the specified properties. * @param [properties] Properties to set @@ -18809,6 +18821,9 @@ export namespace google { /** Policy bindings */ bindings?: (google.iam.v1.IBinding[]|null); + /** Policy auditConfigs */ + auditConfigs?: (google.iam.v1.IAuditConfig[]|null); + /** Policy etag */ etag?: (Uint8Array|string|null); } @@ -18828,6 +18843,9 @@ export namespace google { /** Policy bindings. */ public bindings: google.iam.v1.IBinding[]; + /** Policy auditConfigs. */ + public auditConfigs: google.iam.v1.IAuditConfig[]; + /** Policy etag. */ public etag: (Uint8Array|string); @@ -19004,6 +19022,209 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of an AuditConfig. */ + interface IAuditConfig { + + /** AuditConfig service */ + service?: (string|null); + + /** AuditConfig auditLogConfigs */ + auditLogConfigs?: (google.iam.v1.IAuditLogConfig[]|null); + } + + /** Represents an AuditConfig. */ + class AuditConfig implements IAuditConfig { + + /** + * Constructs a new AuditConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.iam.v1.IAuditConfig); + + /** AuditConfig service. */ + public service: string; + + /** AuditConfig auditLogConfigs. */ + public auditLogConfigs: google.iam.v1.IAuditLogConfig[]; + + /** + * Creates a new AuditConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns AuditConfig instance + */ + public static create(properties?: google.iam.v1.IAuditConfig): google.iam.v1.AuditConfig; + + /** + * Encodes the specified AuditConfig message. Does not implicitly {@link google.iam.v1.AuditConfig.verify|verify} messages. + * @param message AuditConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.iam.v1.IAuditConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AuditConfig message, length delimited. Does not implicitly {@link google.iam.v1.AuditConfig.verify|verify} messages. + * @param message AuditConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.iam.v1.IAuditConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AuditConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AuditConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.AuditConfig; + + /** + * Decodes an AuditConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AuditConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.AuditConfig; + + /** + * Verifies an AuditConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AuditConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AuditConfig + */ + public static fromObject(object: { [k: string]: any }): google.iam.v1.AuditConfig; + + /** + * Creates a plain object from an AuditConfig message. Also converts values to other types if specified. + * @param message AuditConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.iam.v1.AuditConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AuditConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AuditLogConfig. */ + interface IAuditLogConfig { + + /** AuditLogConfig logType */ + logType?: (google.iam.v1.AuditLogConfig.LogType|keyof typeof google.iam.v1.AuditLogConfig.LogType|null); + + /** AuditLogConfig exemptedMembers */ + exemptedMembers?: (string[]|null); + } + + /** Represents an AuditLogConfig. */ + class AuditLogConfig implements IAuditLogConfig { + + /** + * Constructs a new AuditLogConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.iam.v1.IAuditLogConfig); + + /** AuditLogConfig logType. */ + public logType: (google.iam.v1.AuditLogConfig.LogType|keyof typeof google.iam.v1.AuditLogConfig.LogType); + + /** AuditLogConfig exemptedMembers. */ + public exemptedMembers: string[]; + + /** + * Creates a new AuditLogConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns AuditLogConfig instance + */ + public static create(properties?: google.iam.v1.IAuditLogConfig): google.iam.v1.AuditLogConfig; + + /** + * Encodes the specified AuditLogConfig message. Does not implicitly {@link google.iam.v1.AuditLogConfig.verify|verify} messages. + * @param message AuditLogConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.iam.v1.IAuditLogConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AuditLogConfig message, length delimited. Does not implicitly {@link google.iam.v1.AuditLogConfig.verify|verify} messages. + * @param message AuditLogConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.iam.v1.IAuditLogConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AuditLogConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AuditLogConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.AuditLogConfig; + + /** + * Decodes an AuditLogConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AuditLogConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.AuditLogConfig; + + /** + * Verifies an AuditLogConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AuditLogConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AuditLogConfig + */ + public static fromObject(object: { [k: string]: any }): google.iam.v1.AuditLogConfig; + + /** + * Creates a plain object from an AuditLogConfig message. Also converts values to other types if specified. + * @param message AuditLogConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.iam.v1.AuditLogConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AuditLogConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace AuditLogConfig { + + /** LogType enum. */ + enum LogType { + LOG_TYPE_UNSPECIFIED = 0, + ADMIN_READ = 1, + DATA_WRITE = 2, + DATA_READ = 3 + } + } + /** Properties of a PolicyDelta. */ interface IPolicyDelta { @@ -19547,35 +19768,35 @@ export namespace google { namespace Operations { /** - * Callback as used by {@link google.longrunning.Operations#listOperations}. + * Callback as used by {@link google.longrunning.Operations|listOperations}. * @param error Error, if any * @param [response] ListOperationsResponse */ type ListOperationsCallback = (error: (Error|null), response?: google.longrunning.ListOperationsResponse) => void; /** - * Callback as used by {@link google.longrunning.Operations#getOperation}. + * Callback as used by {@link google.longrunning.Operations|getOperation}. * @param error Error, if any * @param [response] Operation */ type GetOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.longrunning.Operations#deleteOperation}. + * Callback as used by {@link google.longrunning.Operations|deleteOperation}. * @param error Error, if any * @param [response] Empty */ type DeleteOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.longrunning.Operations#cancelOperation}. + * Callback as used by {@link google.longrunning.Operations|cancelOperation}. * @param error Error, if any * @param [response] Empty */ type CancelOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.longrunning.Operations#waitOperation}. + * Callback as used by {@link google.longrunning.Operations|waitOperation}. * @param error Error, if any * @param [response] Operation */ diff --git a/protos/protos.js b/protos/protos.js index 2732c14b2..6dbada036 100644 --- a/protos/protos.js +++ b/protos/protos.js @@ -99,7 +99,7 @@ }; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#createInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|createInstance}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef CreateInstanceCallback * @type {function} @@ -132,7 +132,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#getInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getInstance}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef GetInstanceCallback * @type {function} @@ -165,7 +165,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#listInstances}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listInstances}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef ListInstancesCallback * @type {function} @@ -198,7 +198,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#updateInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|updateInstance}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef UpdateInstanceCallback * @type {function} @@ -231,7 +231,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#partialUpdateInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|partialUpdateInstance}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef PartialUpdateInstanceCallback * @type {function} @@ -264,7 +264,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#deleteInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|deleteInstance}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef DeleteInstanceCallback * @type {function} @@ -297,7 +297,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#createCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|createCluster}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef CreateClusterCallback * @type {function} @@ -330,7 +330,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#getCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getCluster}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef GetClusterCallback * @type {function} @@ -363,7 +363,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#listClusters}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listClusters}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef ListClustersCallback * @type {function} @@ -396,7 +396,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#updateCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|updateCluster}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef UpdateClusterCallback * @type {function} @@ -429,7 +429,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#partialUpdateCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|partialUpdateCluster}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef PartialUpdateClusterCallback * @type {function} @@ -462,7 +462,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#deleteCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|deleteCluster}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef DeleteClusterCallback * @type {function} @@ -495,7 +495,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#createAppProfile}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|createAppProfile}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef CreateAppProfileCallback * @type {function} @@ -528,7 +528,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#getAppProfile}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getAppProfile}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef GetAppProfileCallback * @type {function} @@ -561,7 +561,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#listAppProfiles}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listAppProfiles}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef ListAppProfilesCallback * @type {function} @@ -594,7 +594,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#updateAppProfile}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|updateAppProfile}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef UpdateAppProfileCallback * @type {function} @@ -627,7 +627,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#deleteAppProfile}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|deleteAppProfile}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef DeleteAppProfileCallback * @type {function} @@ -660,7 +660,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#getIamPolicy}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getIamPolicy}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef GetIamPolicyCallback * @type {function} @@ -693,7 +693,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#setIamPolicy}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|setIamPolicy}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef SetIamPolicyCallback * @type {function} @@ -726,7 +726,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#testIamPermissions}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|testIamPermissions}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef TestIamPermissionsCallback * @type {function} @@ -759,7 +759,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#listHotTablets}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listHotTablets}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef ListHotTabletsCallback * @type {function} @@ -9959,7 +9959,7 @@ }; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#createTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|createTable}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef CreateTableCallback * @type {function} @@ -9992,7 +9992,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#createTableFromSnapshot}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|createTableFromSnapshot}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef CreateTableFromSnapshotCallback * @type {function} @@ -10025,7 +10025,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#listTables}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|listTables}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef ListTablesCallback * @type {function} @@ -10058,7 +10058,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#getTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|getTable}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef GetTableCallback * @type {function} @@ -10091,7 +10091,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#deleteTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|deleteTable}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef DeleteTableCallback * @type {function} @@ -10124,7 +10124,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#modifyColumnFamilies}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|modifyColumnFamilies}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef ModifyColumnFamiliesCallback * @type {function} @@ -10157,7 +10157,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#dropRowRange}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|dropRowRange}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef DropRowRangeCallback * @type {function} @@ -10190,7 +10190,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#generateConsistencyToken}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|generateConsistencyToken}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef GenerateConsistencyTokenCallback * @type {function} @@ -10223,7 +10223,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#checkConsistency}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|checkConsistency}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef CheckConsistencyCallback * @type {function} @@ -10256,7 +10256,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#snapshotTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|snapshotTable}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef SnapshotTableCallback * @type {function} @@ -10289,7 +10289,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#getSnapshot}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|getSnapshot}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef GetSnapshotCallback * @type {function} @@ -10322,7 +10322,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#listSnapshots}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|listSnapshots}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef ListSnapshotsCallback * @type {function} @@ -10355,7 +10355,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#deleteSnapshot}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|deleteSnapshot}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef DeleteSnapshotCallback * @type {function} @@ -10388,7 +10388,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#createBackup}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|createBackup}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef CreateBackupCallback * @type {function} @@ -10421,7 +10421,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#getBackup}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|getBackup}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef GetBackupCallback * @type {function} @@ -10454,7 +10454,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#updateBackup}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|updateBackup}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef UpdateBackupCallback * @type {function} @@ -10487,7 +10487,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#deleteBackup}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|deleteBackup}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef DeleteBackupCallback * @type {function} @@ -10520,7 +10520,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#listBackups}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|listBackups}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef ListBackupsCallback * @type {function} @@ -10553,7 +10553,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#restoreTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|restoreTable}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef RestoreTableCallback * @type {function} @@ -10586,7 +10586,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#getIamPolicy}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|getIamPolicy}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef GetIamPolicyCallback * @type {function} @@ -10619,7 +10619,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#setIamPolicy}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|setIamPolicy}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef SetIamPolicyCallback * @type {function} @@ -10652,7 +10652,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#testIamPermissions}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|testIamPermissions}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef TestIamPermissionsCallback * @type {function} @@ -21153,7 +21153,7 @@ }; /** - * Callback as used by {@link google.bigtable.v2.Bigtable#readRows}. + * Callback as used by {@link google.bigtable.v2.Bigtable|readRows}. * @memberof google.bigtable.v2.Bigtable * @typedef ReadRowsCallback * @type {function} @@ -21186,7 +21186,7 @@ */ /** - * Callback as used by {@link google.bigtable.v2.Bigtable#sampleRowKeys}. + * Callback as used by {@link google.bigtable.v2.Bigtable|sampleRowKeys}. * @memberof google.bigtable.v2.Bigtable * @typedef SampleRowKeysCallback * @type {function} @@ -21219,7 +21219,7 @@ */ /** - * Callback as used by {@link google.bigtable.v2.Bigtable#mutateRow}. + * Callback as used by {@link google.bigtable.v2.Bigtable|mutateRow}. * @memberof google.bigtable.v2.Bigtable * @typedef MutateRowCallback * @type {function} @@ -21252,7 +21252,7 @@ */ /** - * Callback as used by {@link google.bigtable.v2.Bigtable#mutateRows}. + * Callback as used by {@link google.bigtable.v2.Bigtable|mutateRows}. * @memberof google.bigtable.v2.Bigtable * @typedef MutateRowsCallback * @type {function} @@ -21285,7 +21285,7 @@ */ /** - * Callback as used by {@link google.bigtable.v2.Bigtable#checkAndMutateRow}. + * Callback as used by {@link google.bigtable.v2.Bigtable|checkAndMutateRow}. * @memberof google.bigtable.v2.Bigtable * @typedef CheckAndMutateRowCallback * @type {function} @@ -21318,7 +21318,7 @@ */ /** - * Callback as used by {@link google.bigtable.v2.Bigtable#pingAndWarm}. + * Callback as used by {@link google.bigtable.v2.Bigtable|pingAndWarm}. * @memberof google.bigtable.v2.Bigtable * @typedef PingAndWarmCallback * @type {function} @@ -21351,7 +21351,7 @@ */ /** - * Callback as used by {@link google.bigtable.v2.Bigtable#readModifyWriteRow}. + * Callback as used by {@link google.bigtable.v2.Bigtable|readModifyWriteRow}. * @memberof google.bigtable.v2.Bigtable * @typedef ReadModifyWriteRowCallback * @type {function} @@ -38144,6 +38144,7 @@ * @property {boolean|null} [packed] FieldOptions packed * @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype * @property {boolean|null} [lazy] FieldOptions lazy + * @property {boolean|null} [unverifiedLazy] FieldOptions unverifiedLazy * @property {boolean|null} [deprecated] FieldOptions deprecated * @property {boolean|null} [weak] FieldOptions weak * @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption @@ -38200,6 +38201,14 @@ */ FieldOptions.prototype.lazy = false; + /** + * FieldOptions unverifiedLazy. + * @member {boolean} unverifiedLazy + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.unverifiedLazy = false; + /** * FieldOptions deprecated. * @member {boolean} deprecated @@ -38276,6 +38285,8 @@ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); if (message.weak != null && Object.hasOwnProperty.call(message, "weak")) writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); + if (message.unverifiedLazy != null && Object.hasOwnProperty.call(message, "unverifiedLazy")) + writer.uint32(/* id 15, wireType 0 =*/120).bool(message.unverifiedLazy); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); @@ -38333,6 +38344,9 @@ case 5: message.lazy = reader.bool(); break; + case 15: + message.unverifiedLazy = reader.bool(); + break; case 3: message.deprecated = reader.bool(); break; @@ -38416,6 +38430,9 @@ if (message.lazy != null && message.hasOwnProperty("lazy")) if (typeof message.lazy !== "boolean") return "lazy: boolean expected"; + if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) + if (typeof message.unverifiedLazy !== "boolean") + return "unverifiedLazy: boolean expected"; if (message.deprecated != null && message.hasOwnProperty("deprecated")) if (typeof message.deprecated !== "boolean") return "deprecated: boolean expected"; @@ -38501,6 +38518,8 @@ } if (object.lazy != null) message.lazy = Boolean(object.lazy); + if (object.unverifiedLazy != null) + message.unverifiedLazy = Boolean(object.unverifiedLazy); if (object.deprecated != null) message.deprecated = Boolean(object.deprecated); if (object.weak != null) @@ -38588,6 +38607,7 @@ object.lazy = false; object.jstype = options.enums === String ? "JS_NORMAL" : 0; object.weak = false; + object.unverifiedLazy = false; object[".google.api.resourceReference"] = null; } if (message.ctype != null && message.hasOwnProperty("ctype")) @@ -38602,6 +38622,8 @@ object.jstype = options.enums === String ? $root.google.protobuf.FieldOptions.JSType[message.jstype] : message.jstype; if (message.weak != null && message.hasOwnProperty("weak")) object.weak = message.weak; + if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) + object.unverifiedLazy = message.unverifiedLazy; if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (var j = 0; j < message.uninterpretedOption.length; ++j) @@ -41890,6 +41912,209 @@ return Timestamp; })(); + protobuf.FieldMask = (function() { + + /** + * Properties of a FieldMask. + * @memberof google.protobuf + * @interface IFieldMask + * @property {Array.|null} [paths] FieldMask paths + */ + + /** + * Constructs a new FieldMask. + * @memberof google.protobuf + * @classdesc Represents a FieldMask. + * @implements IFieldMask + * @constructor + * @param {google.protobuf.IFieldMask=} [properties] Properties to set + */ + function FieldMask(properties) { + this.paths = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FieldMask paths. + * @member {Array.} paths + * @memberof google.protobuf.FieldMask + * @instance + */ + FieldMask.prototype.paths = $util.emptyArray; + + /** + * Creates a new FieldMask instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldMask + * @static + * @param {google.protobuf.IFieldMask=} [properties] Properties to set + * @returns {google.protobuf.FieldMask} FieldMask instance + */ + FieldMask.create = function create(properties) { + return new FieldMask(properties); + }; + + /** + * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FieldMask + * @static + * @param {google.protobuf.IFieldMask} message FieldMask message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldMask.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.paths != null && message.paths.length) + for (var i = 0; i < message.paths.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.paths[i]); + return writer; + }; + + /** + * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FieldMask + * @static + * @param {google.protobuf.IFieldMask} message FieldMask message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldMask.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FieldMask message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldMask + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldMask} FieldMask + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldMask.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldMask(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.paths && message.paths.length)) + message.paths = []; + message.paths.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FieldMask message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FieldMask + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FieldMask} FieldMask + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldMask.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FieldMask message. + * @function verify + * @memberof google.protobuf.FieldMask + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FieldMask.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.paths != null && message.hasOwnProperty("paths")) { + if (!Array.isArray(message.paths)) + return "paths: array expected"; + for (var i = 0; i < message.paths.length; ++i) + if (!$util.isString(message.paths[i])) + return "paths: string[] expected"; + } + return null; + }; + + /** + * Creates a FieldMask message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FieldMask + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FieldMask} FieldMask + */ + FieldMask.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldMask) + return object; + var message = new $root.google.protobuf.FieldMask(); + if (object.paths) { + if (!Array.isArray(object.paths)) + throw TypeError(".google.protobuf.FieldMask.paths: array expected"); + message.paths = []; + for (var i = 0; i < object.paths.length; ++i) + message.paths[i] = String(object.paths[i]); + } + return message; + }; + + /** + * Creates a plain object from a FieldMask message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FieldMask + * @static + * @param {google.protobuf.FieldMask} message FieldMask + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FieldMask.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.paths = []; + if (message.paths && message.paths.length) { + object.paths = []; + for (var j = 0; j < message.paths.length; ++j) + object.paths[j] = message.paths[j]; + } + return object; + }; + + /** + * Converts this FieldMask to JSON. + * @function toJSON + * @memberof google.protobuf.FieldMask + * @instance + * @returns {Object.} JSON object + */ + FieldMask.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return FieldMask; + })(); + protobuf.Any = (function() { /** @@ -42493,209 +42718,6 @@ return Empty; })(); - protobuf.FieldMask = (function() { - - /** - * Properties of a FieldMask. - * @memberof google.protobuf - * @interface IFieldMask - * @property {Array.|null} [paths] FieldMask paths - */ - - /** - * Constructs a new FieldMask. - * @memberof google.protobuf - * @classdesc Represents a FieldMask. - * @implements IFieldMask - * @constructor - * @param {google.protobuf.IFieldMask=} [properties] Properties to set - */ - function FieldMask(properties) { - this.paths = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FieldMask paths. - * @member {Array.} paths - * @memberof google.protobuf.FieldMask - * @instance - */ - FieldMask.prototype.paths = $util.emptyArray; - - /** - * Creates a new FieldMask instance using the specified properties. - * @function create - * @memberof google.protobuf.FieldMask - * @static - * @param {google.protobuf.IFieldMask=} [properties] Properties to set - * @returns {google.protobuf.FieldMask} FieldMask instance - */ - FieldMask.create = function create(properties) { - return new FieldMask(properties); - }; - - /** - * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FieldMask - * @static - * @param {google.protobuf.IFieldMask} message FieldMask message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FieldMask.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.paths != null && message.paths.length) - for (var i = 0; i < message.paths.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.paths[i]); - return writer; - }; - - /** - * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.FieldMask - * @static - * @param {google.protobuf.IFieldMask} message FieldMask message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FieldMask.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FieldMask message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FieldMask - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FieldMask} FieldMask - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FieldMask.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldMask(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.paths && message.paths.length)) - message.paths = []; - message.paths.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FieldMask message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FieldMask - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FieldMask} FieldMask - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FieldMask.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FieldMask message. - * @function verify - * @memberof google.protobuf.FieldMask - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FieldMask.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.paths != null && message.hasOwnProperty("paths")) { - if (!Array.isArray(message.paths)) - return "paths: array expected"; - for (var i = 0; i < message.paths.length; ++i) - if (!$util.isString(message.paths[i])) - return "paths: string[] expected"; - } - return null; - }; - - /** - * Creates a FieldMask message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.FieldMask - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.FieldMask} FieldMask - */ - FieldMask.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FieldMask) - return object; - var message = new $root.google.protobuf.FieldMask(); - if (object.paths) { - if (!Array.isArray(object.paths)) - throw TypeError(".google.protobuf.FieldMask.paths: array expected"); - message.paths = []; - for (var i = 0; i < object.paths.length; ++i) - message.paths[i] = String(object.paths[i]); - } - return message; - }; - - /** - * Creates a plain object from a FieldMask message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.FieldMask - * @static - * @param {google.protobuf.FieldMask} message FieldMask - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FieldMask.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.paths = []; - if (message.paths && message.paths.length) { - object.paths = []; - for (var j = 0; j < message.paths.length; ++j) - object.paths[j] = message.paths[j]; - } - return object; - }; - - /** - * Converts this FieldMask to JSON. - * @function toJSON - * @memberof google.protobuf.FieldMask - * @instance - * @returns {Object.} JSON object - */ - FieldMask.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return FieldMask; - })(); - protobuf.DoubleValue = (function() { /** @@ -44470,7 +44492,7 @@ }; /** - * Callback as used by {@link google.iam.v1.IAMPolicy#setIamPolicy}. + * Callback as used by {@link google.iam.v1.IAMPolicy|setIamPolicy}. * @memberof google.iam.v1.IAMPolicy * @typedef SetIamPolicyCallback * @type {function} @@ -44503,7 +44525,7 @@ */ /** - * Callback as used by {@link google.iam.v1.IAMPolicy#getIamPolicy}. + * Callback as used by {@link google.iam.v1.IAMPolicy|getIamPolicy}. * @memberof google.iam.v1.IAMPolicy * @typedef GetIamPolicyCallback * @type {function} @@ -44536,7 +44558,7 @@ */ /** - * Callback as used by {@link google.iam.v1.IAMPolicy#testIamPermissions}. + * Callback as used by {@link google.iam.v1.IAMPolicy|testIamPermissions}. * @memberof google.iam.v1.IAMPolicy * @typedef TestIamPermissionsCallback * @type {function} @@ -44579,6 +44601,7 @@ * @interface ISetIamPolicyRequest * @property {string|null} [resource] SetIamPolicyRequest resource * @property {google.iam.v1.IPolicy|null} [policy] SetIamPolicyRequest policy + * @property {google.protobuf.IFieldMask|null} [updateMask] SetIamPolicyRequest updateMask */ /** @@ -44612,6 +44635,14 @@ */ SetIamPolicyRequest.prototype.policy = null; + /** + * SetIamPolicyRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.iam.v1.SetIamPolicyRequest + * @instance + */ + SetIamPolicyRequest.prototype.updateMask = null; + /** * Creates a new SetIamPolicyRequest instance using the specified properties. * @function create @@ -44640,6 +44671,8 @@ writer.uint32(/* id 1, wireType 2 =*/10).string(message.resource); if (message.policy != null && Object.hasOwnProperty.call(message, "policy")) $root.google.iam.v1.Policy.encode(message.policy, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -44680,6 +44713,9 @@ case 2: message.policy = $root.google.iam.v1.Policy.decode(reader, reader.uint32()); break; + case 3: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -44723,6 +44759,11 @@ if (error) return "policy." + error; } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } return null; }; @@ -44745,6 +44786,11 @@ throw TypeError(".google.iam.v1.SetIamPolicyRequest.policy: object expected"); message.policy = $root.google.iam.v1.Policy.fromObject(object.policy); } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.iam.v1.SetIamPolicyRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; @@ -44764,11 +44810,14 @@ if (options.defaults) { object.resource = ""; object.policy = null; + object.updateMask = null; } if (message.resource != null && message.hasOwnProperty("resource")) object.resource = message.resource; if (message.policy != null && message.hasOwnProperty("policy")) object.policy = $root.google.iam.v1.Policy.toObject(message.policy, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; @@ -45625,6 +45674,7 @@ * @interface IPolicy * @property {number|null} [version] Policy version * @property {Array.|null} [bindings] Policy bindings + * @property {Array.|null} [auditConfigs] Policy auditConfigs * @property {Uint8Array|null} [etag] Policy etag */ @@ -45638,6 +45688,7 @@ */ function Policy(properties) { this.bindings = []; + this.auditConfigs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -45660,6 +45711,14 @@ */ Policy.prototype.bindings = $util.emptyArray; + /** + * Policy auditConfigs. + * @member {Array.} auditConfigs + * @memberof google.iam.v1.Policy + * @instance + */ + Policy.prototype.auditConfigs = $util.emptyArray; + /** * Policy etag. * @member {Uint8Array} etag @@ -45699,6 +45758,9 @@ if (message.bindings != null && message.bindings.length) for (var i = 0; i < message.bindings.length; ++i) $root.google.iam.v1.Binding.encode(message.bindings[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.auditConfigs != null && message.auditConfigs.length) + for (var i = 0; i < message.auditConfigs.length; ++i) + $root.google.iam.v1.AuditConfig.encode(message.auditConfigs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; @@ -45741,6 +45803,11 @@ message.bindings = []; message.bindings.push($root.google.iam.v1.Binding.decode(reader, reader.uint32())); break; + case 6: + if (!(message.auditConfigs && message.auditConfigs.length)) + message.auditConfigs = []; + message.auditConfigs.push($root.google.iam.v1.AuditConfig.decode(reader, reader.uint32())); + break; case 3: message.etag = reader.bytes(); break; @@ -45791,6 +45858,15 @@ return "bindings." + error; } } + if (message.auditConfigs != null && message.hasOwnProperty("auditConfigs")) { + if (!Array.isArray(message.auditConfigs)) + return "auditConfigs: array expected"; + for (var i = 0; i < message.auditConfigs.length; ++i) { + var error = $root.google.iam.v1.AuditConfig.verify(message.auditConfigs[i]); + if (error) + return "auditConfigs." + error; + } + } if (message.etag != null && message.hasOwnProperty("etag")) if (!(message.etag && typeof message.etag.length === "number" || $util.isString(message.etag))) return "etag: buffer expected"; @@ -45821,6 +45897,16 @@ message.bindings[i] = $root.google.iam.v1.Binding.fromObject(object.bindings[i]); } } + if (object.auditConfigs) { + if (!Array.isArray(object.auditConfigs)) + throw TypeError(".google.iam.v1.Policy.auditConfigs: array expected"); + message.auditConfigs = []; + for (var i = 0; i < object.auditConfigs.length; ++i) { + if (typeof object.auditConfigs[i] !== "object") + throw TypeError(".google.iam.v1.Policy.auditConfigs: object expected"); + message.auditConfigs[i] = $root.google.iam.v1.AuditConfig.fromObject(object.auditConfigs[i]); + } + } if (object.etag != null) if (typeof object.etag === "string") $util.base64.decode(object.etag, message.etag = $util.newBuffer($util.base64.length(object.etag)), 0); @@ -45842,8 +45928,10 @@ if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) + if (options.arrays || options.defaults) { object.bindings = []; + object.auditConfigs = []; + } if (options.defaults) { object.version = 0; if (options.bytes === String) @@ -45863,6 +45951,11 @@ for (var j = 0; j < message.bindings.length; ++j) object.bindings[j] = $root.google.iam.v1.Binding.toObject(message.bindings[j], options); } + if (message.auditConfigs && message.auditConfigs.length) { + object.auditConfigs = []; + for (var j = 0; j < message.auditConfigs.length; ++j) + object.auditConfigs[j] = $root.google.iam.v1.AuditConfig.toObject(message.auditConfigs[j], options); + } return object; }; @@ -46134,6 +46227,504 @@ return Binding; })(); + v1.AuditConfig = (function() { + + /** + * Properties of an AuditConfig. + * @memberof google.iam.v1 + * @interface IAuditConfig + * @property {string|null} [service] AuditConfig service + * @property {Array.|null} [auditLogConfigs] AuditConfig auditLogConfigs + */ + + /** + * Constructs a new AuditConfig. + * @memberof google.iam.v1 + * @classdesc Represents an AuditConfig. + * @implements IAuditConfig + * @constructor + * @param {google.iam.v1.IAuditConfig=} [properties] Properties to set + */ + function AuditConfig(properties) { + this.auditLogConfigs = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AuditConfig service. + * @member {string} service + * @memberof google.iam.v1.AuditConfig + * @instance + */ + AuditConfig.prototype.service = ""; + + /** + * AuditConfig auditLogConfigs. + * @member {Array.} auditLogConfigs + * @memberof google.iam.v1.AuditConfig + * @instance + */ + AuditConfig.prototype.auditLogConfigs = $util.emptyArray; + + /** + * Creates a new AuditConfig instance using the specified properties. + * @function create + * @memberof google.iam.v1.AuditConfig + * @static + * @param {google.iam.v1.IAuditConfig=} [properties] Properties to set + * @returns {google.iam.v1.AuditConfig} AuditConfig instance + */ + AuditConfig.create = function create(properties) { + return new AuditConfig(properties); + }; + + /** + * Encodes the specified AuditConfig message. Does not implicitly {@link google.iam.v1.AuditConfig.verify|verify} messages. + * @function encode + * @memberof google.iam.v1.AuditConfig + * @static + * @param {google.iam.v1.IAuditConfig} message AuditConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AuditConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.service != null && Object.hasOwnProperty.call(message, "service")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.service); + if (message.auditLogConfigs != null && message.auditLogConfigs.length) + for (var i = 0; i < message.auditLogConfigs.length; ++i) + $root.google.iam.v1.AuditLogConfig.encode(message.auditLogConfigs[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified AuditConfig message, length delimited. Does not implicitly {@link google.iam.v1.AuditConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.iam.v1.AuditConfig + * @static + * @param {google.iam.v1.IAuditConfig} message AuditConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AuditConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AuditConfig message from the specified reader or buffer. + * @function decode + * @memberof google.iam.v1.AuditConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.iam.v1.AuditConfig} AuditConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AuditConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.iam.v1.AuditConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.service = reader.string(); + break; + case 3: + if (!(message.auditLogConfigs && message.auditLogConfigs.length)) + message.auditLogConfigs = []; + message.auditLogConfigs.push($root.google.iam.v1.AuditLogConfig.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AuditConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.iam.v1.AuditConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.iam.v1.AuditConfig} AuditConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AuditConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AuditConfig message. + * @function verify + * @memberof google.iam.v1.AuditConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AuditConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.service != null && message.hasOwnProperty("service")) + if (!$util.isString(message.service)) + return "service: string expected"; + if (message.auditLogConfigs != null && message.hasOwnProperty("auditLogConfigs")) { + if (!Array.isArray(message.auditLogConfigs)) + return "auditLogConfigs: array expected"; + for (var i = 0; i < message.auditLogConfigs.length; ++i) { + var error = $root.google.iam.v1.AuditLogConfig.verify(message.auditLogConfigs[i]); + if (error) + return "auditLogConfigs." + error; + } + } + return null; + }; + + /** + * Creates an AuditConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.iam.v1.AuditConfig + * @static + * @param {Object.} object Plain object + * @returns {google.iam.v1.AuditConfig} AuditConfig + */ + AuditConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.iam.v1.AuditConfig) + return object; + var message = new $root.google.iam.v1.AuditConfig(); + if (object.service != null) + message.service = String(object.service); + if (object.auditLogConfigs) { + if (!Array.isArray(object.auditLogConfigs)) + throw TypeError(".google.iam.v1.AuditConfig.auditLogConfigs: array expected"); + message.auditLogConfigs = []; + for (var i = 0; i < object.auditLogConfigs.length; ++i) { + if (typeof object.auditLogConfigs[i] !== "object") + throw TypeError(".google.iam.v1.AuditConfig.auditLogConfigs: object expected"); + message.auditLogConfigs[i] = $root.google.iam.v1.AuditLogConfig.fromObject(object.auditLogConfigs[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an AuditConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.iam.v1.AuditConfig + * @static + * @param {google.iam.v1.AuditConfig} message AuditConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AuditConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.auditLogConfigs = []; + if (options.defaults) + object.service = ""; + if (message.service != null && message.hasOwnProperty("service")) + object.service = message.service; + if (message.auditLogConfigs && message.auditLogConfigs.length) { + object.auditLogConfigs = []; + for (var j = 0; j < message.auditLogConfigs.length; ++j) + object.auditLogConfigs[j] = $root.google.iam.v1.AuditLogConfig.toObject(message.auditLogConfigs[j], options); + } + return object; + }; + + /** + * Converts this AuditConfig to JSON. + * @function toJSON + * @memberof google.iam.v1.AuditConfig + * @instance + * @returns {Object.} JSON object + */ + AuditConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AuditConfig; + })(); + + v1.AuditLogConfig = (function() { + + /** + * Properties of an AuditLogConfig. + * @memberof google.iam.v1 + * @interface IAuditLogConfig + * @property {google.iam.v1.AuditLogConfig.LogType|null} [logType] AuditLogConfig logType + * @property {Array.|null} [exemptedMembers] AuditLogConfig exemptedMembers + */ + + /** + * Constructs a new AuditLogConfig. + * @memberof google.iam.v1 + * @classdesc Represents an AuditLogConfig. + * @implements IAuditLogConfig + * @constructor + * @param {google.iam.v1.IAuditLogConfig=} [properties] Properties to set + */ + function AuditLogConfig(properties) { + this.exemptedMembers = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AuditLogConfig logType. + * @member {google.iam.v1.AuditLogConfig.LogType} logType + * @memberof google.iam.v1.AuditLogConfig + * @instance + */ + AuditLogConfig.prototype.logType = 0; + + /** + * AuditLogConfig exemptedMembers. + * @member {Array.} exemptedMembers + * @memberof google.iam.v1.AuditLogConfig + * @instance + */ + AuditLogConfig.prototype.exemptedMembers = $util.emptyArray; + + /** + * Creates a new AuditLogConfig instance using the specified properties. + * @function create + * @memberof google.iam.v1.AuditLogConfig + * @static + * @param {google.iam.v1.IAuditLogConfig=} [properties] Properties to set + * @returns {google.iam.v1.AuditLogConfig} AuditLogConfig instance + */ + AuditLogConfig.create = function create(properties) { + return new AuditLogConfig(properties); + }; + + /** + * Encodes the specified AuditLogConfig message. Does not implicitly {@link google.iam.v1.AuditLogConfig.verify|verify} messages. + * @function encode + * @memberof google.iam.v1.AuditLogConfig + * @static + * @param {google.iam.v1.IAuditLogConfig} message AuditLogConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AuditLogConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.logType != null && Object.hasOwnProperty.call(message, "logType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.logType); + if (message.exemptedMembers != null && message.exemptedMembers.length) + for (var i = 0; i < message.exemptedMembers.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.exemptedMembers[i]); + return writer; + }; + + /** + * Encodes the specified AuditLogConfig message, length delimited. Does not implicitly {@link google.iam.v1.AuditLogConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.iam.v1.AuditLogConfig + * @static + * @param {google.iam.v1.IAuditLogConfig} message AuditLogConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AuditLogConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AuditLogConfig message from the specified reader or buffer. + * @function decode + * @memberof google.iam.v1.AuditLogConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.iam.v1.AuditLogConfig} AuditLogConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AuditLogConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.iam.v1.AuditLogConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.logType = reader.int32(); + break; + case 2: + if (!(message.exemptedMembers && message.exemptedMembers.length)) + message.exemptedMembers = []; + message.exemptedMembers.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AuditLogConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.iam.v1.AuditLogConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.iam.v1.AuditLogConfig} AuditLogConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AuditLogConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AuditLogConfig message. + * @function verify + * @memberof google.iam.v1.AuditLogConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AuditLogConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.logType != null && message.hasOwnProperty("logType")) + switch (message.logType) { + default: + return "logType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.exemptedMembers != null && message.hasOwnProperty("exemptedMembers")) { + if (!Array.isArray(message.exemptedMembers)) + return "exemptedMembers: array expected"; + for (var i = 0; i < message.exemptedMembers.length; ++i) + if (!$util.isString(message.exemptedMembers[i])) + return "exemptedMembers: string[] expected"; + } + return null; + }; + + /** + * Creates an AuditLogConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.iam.v1.AuditLogConfig + * @static + * @param {Object.} object Plain object + * @returns {google.iam.v1.AuditLogConfig} AuditLogConfig + */ + AuditLogConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.iam.v1.AuditLogConfig) + return object; + var message = new $root.google.iam.v1.AuditLogConfig(); + switch (object.logType) { + case "LOG_TYPE_UNSPECIFIED": + case 0: + message.logType = 0; + break; + case "ADMIN_READ": + case 1: + message.logType = 1; + break; + case "DATA_WRITE": + case 2: + message.logType = 2; + break; + case "DATA_READ": + case 3: + message.logType = 3; + break; + } + if (object.exemptedMembers) { + if (!Array.isArray(object.exemptedMembers)) + throw TypeError(".google.iam.v1.AuditLogConfig.exemptedMembers: array expected"); + message.exemptedMembers = []; + for (var i = 0; i < object.exemptedMembers.length; ++i) + message.exemptedMembers[i] = String(object.exemptedMembers[i]); + } + return message; + }; + + /** + * Creates a plain object from an AuditLogConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.iam.v1.AuditLogConfig + * @static + * @param {google.iam.v1.AuditLogConfig} message AuditLogConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AuditLogConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.exemptedMembers = []; + if (options.defaults) + object.logType = options.enums === String ? "LOG_TYPE_UNSPECIFIED" : 0; + if (message.logType != null && message.hasOwnProperty("logType")) + object.logType = options.enums === String ? $root.google.iam.v1.AuditLogConfig.LogType[message.logType] : message.logType; + if (message.exemptedMembers && message.exemptedMembers.length) { + object.exemptedMembers = []; + for (var j = 0; j < message.exemptedMembers.length; ++j) + object.exemptedMembers[j] = message.exemptedMembers[j]; + } + return object; + }; + + /** + * Converts this AuditLogConfig to JSON. + * @function toJSON + * @memberof google.iam.v1.AuditLogConfig + * @instance + * @returns {Object.} JSON object + */ + AuditLogConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * LogType enum. + * @name google.iam.v1.AuditLogConfig.LogType + * @enum {number} + * @property {number} LOG_TYPE_UNSPECIFIED=0 LOG_TYPE_UNSPECIFIED value + * @property {number} ADMIN_READ=1 ADMIN_READ value + * @property {number} DATA_WRITE=2 DATA_WRITE value + * @property {number} DATA_READ=3 DATA_READ value + */ + AuditLogConfig.LogType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "LOG_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ADMIN_READ"] = 1; + values[valuesById[2] = "DATA_WRITE"] = 2; + values[valuesById[3] = "DATA_READ"] = 3; + return values; + })(); + + return AuditLogConfig; + })(); + v1.PolicyDelta = (function() { /** @@ -47281,7 +47872,7 @@ }; /** - * Callback as used by {@link google.longrunning.Operations#listOperations}. + * Callback as used by {@link google.longrunning.Operations|listOperations}. * @memberof google.longrunning.Operations * @typedef ListOperationsCallback * @type {function} @@ -47314,7 +47905,7 @@ */ /** - * Callback as used by {@link google.longrunning.Operations#getOperation}. + * Callback as used by {@link google.longrunning.Operations|getOperation}. * @memberof google.longrunning.Operations * @typedef GetOperationCallback * @type {function} @@ -47347,7 +47938,7 @@ */ /** - * Callback as used by {@link google.longrunning.Operations#deleteOperation}. + * Callback as used by {@link google.longrunning.Operations|deleteOperation}. * @memberof google.longrunning.Operations * @typedef DeleteOperationCallback * @type {function} @@ -47380,7 +47971,7 @@ */ /** - * Callback as used by {@link google.longrunning.Operations#cancelOperation}. + * Callback as used by {@link google.longrunning.Operations|cancelOperation}. * @memberof google.longrunning.Operations * @typedef CancelOperationCallback * @type {function} @@ -47413,7 +48004,7 @@ */ /** - * Callback as used by {@link google.longrunning.Operations#waitOperation}. + * Callback as used by {@link google.longrunning.Operations|waitOperation}. * @memberof google.longrunning.Operations * @typedef WaitOperationCallback * @type {function} diff --git a/protos/protos.json b/protos/protos.json index 64b6e60f2..a1196f467 100644 --- a/protos/protos.json +++ b/protos/protos.json @@ -4545,6 +4545,13 @@ "default": false } }, + "unverifiedLazy": { + "type": "bool", + "id": 15, + "options": { + "default": false + } + }, "deprecated": { "type": "bool", "id": 3, @@ -4854,6 +4861,15 @@ } } }, + "FieldMask": { + "fields": { + "paths": { + "rule": "repeated", + "type": "string", + "id": 1 + } + } + }, "Any": { "fields": { "type_url": { @@ -4881,15 +4897,6 @@ "Empty": { "fields": {} }, - "FieldMask": { - "fields": { - "paths": { - "rule": "repeated", - "type": "string", - "id": 1 - } - } - }, "DoubleValue": { "fields": { "value": { @@ -5048,6 +5055,10 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 3 } } }, @@ -5115,6 +5126,11 @@ "type": "Binding", "id": 4 }, + "auditConfigs": { + "rule": "repeated", + "type": "AuditConfig", + "id": 6 + }, "etag": { "type": "bytes", "id": 3 @@ -5138,6 +5154,42 @@ } } }, + "AuditConfig": { + "fields": { + "service": { + "type": "string", + "id": 1 + }, + "auditLogConfigs": { + "rule": "repeated", + "type": "AuditLogConfig", + "id": 3 + } + } + }, + "AuditLogConfig": { + "fields": { + "logType": { + "type": "LogType", + "id": 1 + }, + "exemptedMembers": { + "rule": "repeated", + "type": "string", + "id": 2 + } + }, + "nested": { + "LogType": { + "values": { + "LOG_TYPE_UNSPECIFIED": 0, + "ADMIN_READ": 1, + "DATA_WRITE": 2, + "DATA_READ": 3 + } + } + } + }, "PolicyDelta": { "fields": { "bindingDeltas": { diff --git a/samples/package.json b/samples/package.json index abbbbf654..99aa8a40e 100644 --- a/samples/package.json +++ b/samples/package.json @@ -11,7 +11,7 @@ "api-reference-doc-snippets/*.js" ], "engines": { - "node": ">=12" + "node": ">=12.0.0" }, "dependencies": { "@google-cloud/bigtable": "^3.12.0", From e2106168cd380e4391421135a1fae2bfc5ee388d Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 16 May 2022 20:17:58 +0000 Subject: [PATCH 2/9] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .github/sync-repo-settings.yaml | 2 +- .github/workflows/ci.yaml | 2 +- protos/protos.d.ts | 517 ++++---------- protos/protos.js | 1115 ++++++++----------------------- protos/protos.json | 70 +- 5 files changed, 421 insertions(+), 1285 deletions(-) diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 1b3626833..d1e8b5e6e 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -9,9 +9,9 @@ branchProtectionRules: - "ci/kokoro: System test" - docs - lint - - test (10) - test (12) - test (14) + - test (16) - cla/google - windows - OwlBot Post Processor diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 25251dbb7..f447b84ab 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node: [10, 12, 14] + node: [12, 14, 16] steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 diff --git a/protos/protos.d.ts b/protos/protos.d.ts index 54db50768..cc06d0e3a 100644 --- a/protos/protos.d.ts +++ b/protos/protos.d.ts @@ -344,147 +344,147 @@ export namespace google { namespace BigtableInstanceAdmin { /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|createInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#createInstance}. * @param error Error, if any * @param [response] Operation */ type CreateInstanceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#getInstance}. * @param error Error, if any * @param [response] Instance */ type GetInstanceCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Instance) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listInstances}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#listInstances}. * @param error Error, if any * @param [response] ListInstancesResponse */ type ListInstancesCallback = (error: (Error|null), response?: google.bigtable.admin.v2.ListInstancesResponse) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|updateInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#updateInstance}. * @param error Error, if any * @param [response] Instance */ type UpdateInstanceCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Instance) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|partialUpdateInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#partialUpdateInstance}. * @param error Error, if any * @param [response] Operation */ type PartialUpdateInstanceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|deleteInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#deleteInstance}. * @param error Error, if any * @param [response] Empty */ type DeleteInstanceCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|createCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#createCluster}. * @param error Error, if any * @param [response] Operation */ type CreateClusterCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#getCluster}. * @param error Error, if any * @param [response] Cluster */ type GetClusterCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Cluster) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listClusters}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#listClusters}. * @param error Error, if any * @param [response] ListClustersResponse */ type ListClustersCallback = (error: (Error|null), response?: google.bigtable.admin.v2.ListClustersResponse) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|updateCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#updateCluster}. * @param error Error, if any * @param [response] Operation */ type UpdateClusterCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|partialUpdateCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#partialUpdateCluster}. * @param error Error, if any * @param [response] Operation */ type PartialUpdateClusterCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|deleteCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#deleteCluster}. * @param error Error, if any * @param [response] Empty */ type DeleteClusterCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|createAppProfile}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#createAppProfile}. * @param error Error, if any * @param [response] AppProfile */ type CreateAppProfileCallback = (error: (Error|null), response?: google.bigtable.admin.v2.AppProfile) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getAppProfile}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#getAppProfile}. * @param error Error, if any * @param [response] AppProfile */ type GetAppProfileCallback = (error: (Error|null), response?: google.bigtable.admin.v2.AppProfile) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listAppProfiles}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#listAppProfiles}. * @param error Error, if any * @param [response] ListAppProfilesResponse */ type ListAppProfilesCallback = (error: (Error|null), response?: google.bigtable.admin.v2.ListAppProfilesResponse) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|updateAppProfile}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#updateAppProfile}. * @param error Error, if any * @param [response] Operation */ type UpdateAppProfileCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|deleteAppProfile}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#deleteAppProfile}. * @param error Error, if any * @param [response] Empty */ type DeleteAppProfileCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getIamPolicy}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#getIamPolicy}. * @param error Error, if any * @param [response] Policy */ type GetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|setIamPolicy}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#setIamPolicy}. * @param error Error, if any * @param [response] Policy */ type SetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|testIamPermissions}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#testIamPermissions}. * @param error Error, if any * @param [response] TestIamPermissionsResponse */ type TestIamPermissionsCallback = (error: (Error|null), response?: google.iam.v1.TestIamPermissionsResponse) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listHotTablets}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#listHotTablets}. * @param error Error, if any * @param [response] ListHotTabletsResponse */ @@ -4666,154 +4666,154 @@ export namespace google { namespace BigtableTableAdmin { /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|createTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#createTable}. * @param error Error, if any * @param [response] Table */ type CreateTableCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Table) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|createTableFromSnapshot}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#createTableFromSnapshot}. * @param error Error, if any * @param [response] Operation */ type CreateTableFromSnapshotCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|listTables}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#listTables}. * @param error Error, if any * @param [response] ListTablesResponse */ type ListTablesCallback = (error: (Error|null), response?: google.bigtable.admin.v2.ListTablesResponse) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|getTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#getTable}. * @param error Error, if any * @param [response] Table */ type GetTableCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Table) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|deleteTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#deleteTable}. * @param error Error, if any * @param [response] Empty */ type DeleteTableCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|modifyColumnFamilies}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#modifyColumnFamilies}. * @param error Error, if any * @param [response] Table */ type ModifyColumnFamiliesCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Table) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|dropRowRange}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#dropRowRange}. * @param error Error, if any * @param [response] Empty */ type DropRowRangeCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|generateConsistencyToken}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#generateConsistencyToken}. * @param error Error, if any * @param [response] GenerateConsistencyTokenResponse */ type GenerateConsistencyTokenCallback = (error: (Error|null), response?: google.bigtable.admin.v2.GenerateConsistencyTokenResponse) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|checkConsistency}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#checkConsistency}. * @param error Error, if any * @param [response] CheckConsistencyResponse */ type CheckConsistencyCallback = (error: (Error|null), response?: google.bigtable.admin.v2.CheckConsistencyResponse) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|snapshotTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#snapshotTable}. * @param error Error, if any * @param [response] Operation */ type SnapshotTableCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|getSnapshot}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#getSnapshot}. * @param error Error, if any * @param [response] Snapshot */ type GetSnapshotCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Snapshot) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|listSnapshots}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#listSnapshots}. * @param error Error, if any * @param [response] ListSnapshotsResponse */ type ListSnapshotsCallback = (error: (Error|null), response?: google.bigtable.admin.v2.ListSnapshotsResponse) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|deleteSnapshot}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#deleteSnapshot}. * @param error Error, if any * @param [response] Empty */ type DeleteSnapshotCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|createBackup}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#createBackup}. * @param error Error, if any * @param [response] Operation */ type CreateBackupCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|getBackup}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#getBackup}. * @param error Error, if any * @param [response] Backup */ type GetBackupCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Backup) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|updateBackup}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#updateBackup}. * @param error Error, if any * @param [response] Backup */ type UpdateBackupCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Backup) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|deleteBackup}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#deleteBackup}. * @param error Error, if any * @param [response] Empty */ type DeleteBackupCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|listBackups}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#listBackups}. * @param error Error, if any * @param [response] ListBackupsResponse */ type ListBackupsCallback = (error: (Error|null), response?: google.bigtable.admin.v2.ListBackupsResponse) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|restoreTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#restoreTable}. * @param error Error, if any * @param [response] Operation */ type RestoreTableCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|getIamPolicy}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#getIamPolicy}. * @param error Error, if any * @param [response] Policy */ type GetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|setIamPolicy}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#setIamPolicy}. * @param error Error, if any * @param [response] Policy */ type SetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|testIamPermissions}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#testIamPermissions}. * @param error Error, if any * @param [response] TestIamPermissionsResponse */ @@ -9260,49 +9260,49 @@ export namespace google { namespace Bigtable { /** - * Callback as used by {@link google.bigtable.v2.Bigtable|readRows}. + * Callback as used by {@link google.bigtable.v2.Bigtable#readRows}. * @param error Error, if any * @param [response] ReadRowsResponse */ type ReadRowsCallback = (error: (Error|null), response?: google.bigtable.v2.ReadRowsResponse) => void; /** - * Callback as used by {@link google.bigtable.v2.Bigtable|sampleRowKeys}. + * Callback as used by {@link google.bigtable.v2.Bigtable#sampleRowKeys}. * @param error Error, if any * @param [response] SampleRowKeysResponse */ type SampleRowKeysCallback = (error: (Error|null), response?: google.bigtable.v2.SampleRowKeysResponse) => void; /** - * Callback as used by {@link google.bigtable.v2.Bigtable|mutateRow}. + * Callback as used by {@link google.bigtable.v2.Bigtable#mutateRow}. * @param error Error, if any * @param [response] MutateRowResponse */ type MutateRowCallback = (error: (Error|null), response?: google.bigtable.v2.MutateRowResponse) => void; /** - * Callback as used by {@link google.bigtable.v2.Bigtable|mutateRows}. + * Callback as used by {@link google.bigtable.v2.Bigtable#mutateRows}. * @param error Error, if any * @param [response] MutateRowsResponse */ type MutateRowsCallback = (error: (Error|null), response?: google.bigtable.v2.MutateRowsResponse) => void; /** - * Callback as used by {@link google.bigtable.v2.Bigtable|checkAndMutateRow}. + * Callback as used by {@link google.bigtable.v2.Bigtable#checkAndMutateRow}. * @param error Error, if any * @param [response] CheckAndMutateRowResponse */ type CheckAndMutateRowCallback = (error: (Error|null), response?: google.bigtable.v2.CheckAndMutateRowResponse) => void; /** - * Callback as used by {@link google.bigtable.v2.Bigtable|pingAndWarm}. + * Callback as used by {@link google.bigtable.v2.Bigtable#pingAndWarm}. * @param error Error, if any * @param [response] PingAndWarmResponse */ type PingAndWarmCallback = (error: (Error|null), response?: google.bigtable.v2.PingAndWarmResponse) => void; /** - * Callback as used by {@link google.bigtable.v2.Bigtable|readModifyWriteRow}. + * Callback as used by {@link google.bigtable.v2.Bigtable#readModifyWriteRow}. * @param error Error, if any * @param [response] ReadModifyWriteRowResponse */ @@ -15685,9 +15685,6 @@ export namespace google { /** FieldOptions lazy */ lazy?: (boolean|null); - /** FieldOptions unverifiedLazy */ - unverifiedLazy?: (boolean|null); - /** FieldOptions deprecated */ deprecated?: (boolean|null); @@ -15725,9 +15722,6 @@ export namespace google { /** FieldOptions lazy. */ public lazy: boolean; - /** FieldOptions unverifiedLazy. */ - public unverifiedLazy: boolean; - /** FieldOptions deprecated. */ public deprecated: boolean; @@ -17068,96 +17062,6 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** Properties of a FieldMask. */ - interface IFieldMask { - - /** FieldMask paths */ - paths?: (string[]|null); - } - - /** Represents a FieldMask. */ - class FieldMask implements IFieldMask { - - /** - * Constructs a new FieldMask. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IFieldMask); - - /** FieldMask paths. */ - public paths: string[]; - - /** - * Creates a new FieldMask instance using the specified properties. - * @param [properties] Properties to set - * @returns FieldMask instance - */ - public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask; - - /** - * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. - * @param message FieldMask message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. - * @param message FieldMask message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FieldMask message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FieldMask - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldMask; - - /** - * Decodes a FieldMask message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FieldMask - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldMask; - - /** - * Verifies a FieldMask message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a FieldMask message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FieldMask - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask; - - /** - * Creates a plain object from a FieldMask message. Also converts values to other types if specified. - * @param message FieldMask - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this FieldMask to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - /** Properties of an Any. */ interface IAny { @@ -17434,6 +17338,96 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a FieldMask. */ + interface IFieldMask { + + /** FieldMask paths */ + paths?: (string[]|null); + } + + /** Represents a FieldMask. */ + class FieldMask implements IFieldMask { + + /** + * Constructs a new FieldMask. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFieldMask); + + /** FieldMask paths. */ + public paths: string[]; + + /** + * Creates a new FieldMask instance using the specified properties. + * @param [properties] Properties to set + * @returns FieldMask instance + */ + public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask; + + /** + * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * @param message FieldMask message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * @param message FieldMask message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FieldMask message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FieldMask + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldMask; + + /** + * Decodes a FieldMask message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FieldMask + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldMask; + + /** + * Verifies a FieldMask message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FieldMask message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FieldMask + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask; + + /** + * Creates a plain object from a FieldMask message. Also converts values to other types if specified. + * @param message FieldMask + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FieldMask to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a DoubleValue. */ interface IDoubleValue { @@ -18317,21 +18311,21 @@ export namespace google { namespace IAMPolicy { /** - * Callback as used by {@link google.iam.v1.IAMPolicy|setIamPolicy}. + * Callback as used by {@link google.iam.v1.IAMPolicy#setIamPolicy}. * @param error Error, if any * @param [response] Policy */ type SetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; /** - * Callback as used by {@link google.iam.v1.IAMPolicy|getIamPolicy}. + * Callback as used by {@link google.iam.v1.IAMPolicy#getIamPolicy}. * @param error Error, if any * @param [response] Policy */ type GetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; /** - * Callback as used by {@link google.iam.v1.IAMPolicy|testIamPermissions}. + * Callback as used by {@link google.iam.v1.IAMPolicy#testIamPermissions}. * @param error Error, if any * @param [response] TestIamPermissionsResponse */ @@ -18346,9 +18340,6 @@ export namespace google { /** SetIamPolicyRequest policy */ policy?: (google.iam.v1.IPolicy|null); - - /** SetIamPolicyRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); } /** Represents a SetIamPolicyRequest. */ @@ -18366,9 +18357,6 @@ export namespace google { /** SetIamPolicyRequest policy. */ public policy?: (google.iam.v1.IPolicy|null); - /** SetIamPolicyRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); - /** * Creates a new SetIamPolicyRequest instance using the specified properties. * @param [properties] Properties to set @@ -18821,9 +18809,6 @@ export namespace google { /** Policy bindings */ bindings?: (google.iam.v1.IBinding[]|null); - /** Policy auditConfigs */ - auditConfigs?: (google.iam.v1.IAuditConfig[]|null); - /** Policy etag */ etag?: (Uint8Array|string|null); } @@ -18843,9 +18828,6 @@ export namespace google { /** Policy bindings. */ public bindings: google.iam.v1.IBinding[]; - /** Policy auditConfigs. */ - public auditConfigs: google.iam.v1.IAuditConfig[]; - /** Policy etag. */ public etag: (Uint8Array|string); @@ -19022,209 +19004,6 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** Properties of an AuditConfig. */ - interface IAuditConfig { - - /** AuditConfig service */ - service?: (string|null); - - /** AuditConfig auditLogConfigs */ - auditLogConfigs?: (google.iam.v1.IAuditLogConfig[]|null); - } - - /** Represents an AuditConfig. */ - class AuditConfig implements IAuditConfig { - - /** - * Constructs a new AuditConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.iam.v1.IAuditConfig); - - /** AuditConfig service. */ - public service: string; - - /** AuditConfig auditLogConfigs. */ - public auditLogConfigs: google.iam.v1.IAuditLogConfig[]; - - /** - * Creates a new AuditConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns AuditConfig instance - */ - public static create(properties?: google.iam.v1.IAuditConfig): google.iam.v1.AuditConfig; - - /** - * Encodes the specified AuditConfig message. Does not implicitly {@link google.iam.v1.AuditConfig.verify|verify} messages. - * @param message AuditConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.iam.v1.IAuditConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified AuditConfig message, length delimited. Does not implicitly {@link google.iam.v1.AuditConfig.verify|verify} messages. - * @param message AuditConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.iam.v1.IAuditConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AuditConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AuditConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.AuditConfig; - - /** - * Decodes an AuditConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AuditConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.AuditConfig; - - /** - * Verifies an AuditConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an AuditConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AuditConfig - */ - public static fromObject(object: { [k: string]: any }): google.iam.v1.AuditConfig; - - /** - * Creates a plain object from an AuditConfig message. Also converts values to other types if specified. - * @param message AuditConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.iam.v1.AuditConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this AuditConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an AuditLogConfig. */ - interface IAuditLogConfig { - - /** AuditLogConfig logType */ - logType?: (google.iam.v1.AuditLogConfig.LogType|keyof typeof google.iam.v1.AuditLogConfig.LogType|null); - - /** AuditLogConfig exemptedMembers */ - exemptedMembers?: (string[]|null); - } - - /** Represents an AuditLogConfig. */ - class AuditLogConfig implements IAuditLogConfig { - - /** - * Constructs a new AuditLogConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.iam.v1.IAuditLogConfig); - - /** AuditLogConfig logType. */ - public logType: (google.iam.v1.AuditLogConfig.LogType|keyof typeof google.iam.v1.AuditLogConfig.LogType); - - /** AuditLogConfig exemptedMembers. */ - public exemptedMembers: string[]; - - /** - * Creates a new AuditLogConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns AuditLogConfig instance - */ - public static create(properties?: google.iam.v1.IAuditLogConfig): google.iam.v1.AuditLogConfig; - - /** - * Encodes the specified AuditLogConfig message. Does not implicitly {@link google.iam.v1.AuditLogConfig.verify|verify} messages. - * @param message AuditLogConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.iam.v1.IAuditLogConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified AuditLogConfig message, length delimited. Does not implicitly {@link google.iam.v1.AuditLogConfig.verify|verify} messages. - * @param message AuditLogConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.iam.v1.IAuditLogConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AuditLogConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AuditLogConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.AuditLogConfig; - - /** - * Decodes an AuditLogConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AuditLogConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.AuditLogConfig; - - /** - * Verifies an AuditLogConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an AuditLogConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AuditLogConfig - */ - public static fromObject(object: { [k: string]: any }): google.iam.v1.AuditLogConfig; - - /** - * Creates a plain object from an AuditLogConfig message. Also converts values to other types if specified. - * @param message AuditLogConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.iam.v1.AuditLogConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this AuditLogConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace AuditLogConfig { - - /** LogType enum. */ - enum LogType { - LOG_TYPE_UNSPECIFIED = 0, - ADMIN_READ = 1, - DATA_WRITE = 2, - DATA_READ = 3 - } - } - /** Properties of a PolicyDelta. */ interface IPolicyDelta { @@ -19768,35 +19547,35 @@ export namespace google { namespace Operations { /** - * Callback as used by {@link google.longrunning.Operations|listOperations}. + * Callback as used by {@link google.longrunning.Operations#listOperations}. * @param error Error, if any * @param [response] ListOperationsResponse */ type ListOperationsCallback = (error: (Error|null), response?: google.longrunning.ListOperationsResponse) => void; /** - * Callback as used by {@link google.longrunning.Operations|getOperation}. + * Callback as used by {@link google.longrunning.Operations#getOperation}. * @param error Error, if any * @param [response] Operation */ type GetOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.longrunning.Operations|deleteOperation}. + * Callback as used by {@link google.longrunning.Operations#deleteOperation}. * @param error Error, if any * @param [response] Empty */ type DeleteOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.longrunning.Operations|cancelOperation}. + * Callback as used by {@link google.longrunning.Operations#cancelOperation}. * @param error Error, if any * @param [response] Empty */ type CancelOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.longrunning.Operations|waitOperation}. + * Callback as used by {@link google.longrunning.Operations#waitOperation}. * @param error Error, if any * @param [response] Operation */ diff --git a/protos/protos.js b/protos/protos.js index 6dbada036..2732c14b2 100644 --- a/protos/protos.js +++ b/protos/protos.js @@ -99,7 +99,7 @@ }; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|createInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#createInstance}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef CreateInstanceCallback * @type {function} @@ -132,7 +132,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#getInstance}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef GetInstanceCallback * @type {function} @@ -165,7 +165,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listInstances}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#listInstances}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef ListInstancesCallback * @type {function} @@ -198,7 +198,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|updateInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#updateInstance}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef UpdateInstanceCallback * @type {function} @@ -231,7 +231,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|partialUpdateInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#partialUpdateInstance}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef PartialUpdateInstanceCallback * @type {function} @@ -264,7 +264,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|deleteInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#deleteInstance}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef DeleteInstanceCallback * @type {function} @@ -297,7 +297,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|createCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#createCluster}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef CreateClusterCallback * @type {function} @@ -330,7 +330,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#getCluster}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef GetClusterCallback * @type {function} @@ -363,7 +363,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listClusters}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#listClusters}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef ListClustersCallback * @type {function} @@ -396,7 +396,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|updateCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#updateCluster}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef UpdateClusterCallback * @type {function} @@ -429,7 +429,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|partialUpdateCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#partialUpdateCluster}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef PartialUpdateClusterCallback * @type {function} @@ -462,7 +462,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|deleteCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#deleteCluster}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef DeleteClusterCallback * @type {function} @@ -495,7 +495,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|createAppProfile}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#createAppProfile}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef CreateAppProfileCallback * @type {function} @@ -528,7 +528,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getAppProfile}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#getAppProfile}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef GetAppProfileCallback * @type {function} @@ -561,7 +561,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listAppProfiles}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#listAppProfiles}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef ListAppProfilesCallback * @type {function} @@ -594,7 +594,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|updateAppProfile}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#updateAppProfile}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef UpdateAppProfileCallback * @type {function} @@ -627,7 +627,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|deleteAppProfile}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#deleteAppProfile}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef DeleteAppProfileCallback * @type {function} @@ -660,7 +660,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getIamPolicy}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#getIamPolicy}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef GetIamPolicyCallback * @type {function} @@ -693,7 +693,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|setIamPolicy}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#setIamPolicy}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef SetIamPolicyCallback * @type {function} @@ -726,7 +726,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|testIamPermissions}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#testIamPermissions}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef TestIamPermissionsCallback * @type {function} @@ -759,7 +759,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listHotTablets}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#listHotTablets}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef ListHotTabletsCallback * @type {function} @@ -9959,7 +9959,7 @@ }; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|createTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#createTable}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef CreateTableCallback * @type {function} @@ -9992,7 +9992,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|createTableFromSnapshot}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#createTableFromSnapshot}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef CreateTableFromSnapshotCallback * @type {function} @@ -10025,7 +10025,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|listTables}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#listTables}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef ListTablesCallback * @type {function} @@ -10058,7 +10058,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|getTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#getTable}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef GetTableCallback * @type {function} @@ -10091,7 +10091,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|deleteTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#deleteTable}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef DeleteTableCallback * @type {function} @@ -10124,7 +10124,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|modifyColumnFamilies}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#modifyColumnFamilies}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef ModifyColumnFamiliesCallback * @type {function} @@ -10157,7 +10157,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|dropRowRange}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#dropRowRange}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef DropRowRangeCallback * @type {function} @@ -10190,7 +10190,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|generateConsistencyToken}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#generateConsistencyToken}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef GenerateConsistencyTokenCallback * @type {function} @@ -10223,7 +10223,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|checkConsistency}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#checkConsistency}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef CheckConsistencyCallback * @type {function} @@ -10256,7 +10256,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|snapshotTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#snapshotTable}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef SnapshotTableCallback * @type {function} @@ -10289,7 +10289,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|getSnapshot}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#getSnapshot}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef GetSnapshotCallback * @type {function} @@ -10322,7 +10322,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|listSnapshots}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#listSnapshots}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef ListSnapshotsCallback * @type {function} @@ -10355,7 +10355,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|deleteSnapshot}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#deleteSnapshot}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef DeleteSnapshotCallback * @type {function} @@ -10388,7 +10388,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|createBackup}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#createBackup}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef CreateBackupCallback * @type {function} @@ -10421,7 +10421,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|getBackup}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#getBackup}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef GetBackupCallback * @type {function} @@ -10454,7 +10454,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|updateBackup}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#updateBackup}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef UpdateBackupCallback * @type {function} @@ -10487,7 +10487,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|deleteBackup}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#deleteBackup}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef DeleteBackupCallback * @type {function} @@ -10520,7 +10520,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|listBackups}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#listBackups}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef ListBackupsCallback * @type {function} @@ -10553,7 +10553,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|restoreTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#restoreTable}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef RestoreTableCallback * @type {function} @@ -10586,7 +10586,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|getIamPolicy}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#getIamPolicy}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef GetIamPolicyCallback * @type {function} @@ -10619,7 +10619,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|setIamPolicy}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#setIamPolicy}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef SetIamPolicyCallback * @type {function} @@ -10652,7 +10652,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|testIamPermissions}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#testIamPermissions}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef TestIamPermissionsCallback * @type {function} @@ -21153,7 +21153,7 @@ }; /** - * Callback as used by {@link google.bigtable.v2.Bigtable|readRows}. + * Callback as used by {@link google.bigtable.v2.Bigtable#readRows}. * @memberof google.bigtable.v2.Bigtable * @typedef ReadRowsCallback * @type {function} @@ -21186,7 +21186,7 @@ */ /** - * Callback as used by {@link google.bigtable.v2.Bigtable|sampleRowKeys}. + * Callback as used by {@link google.bigtable.v2.Bigtable#sampleRowKeys}. * @memberof google.bigtable.v2.Bigtable * @typedef SampleRowKeysCallback * @type {function} @@ -21219,7 +21219,7 @@ */ /** - * Callback as used by {@link google.bigtable.v2.Bigtable|mutateRow}. + * Callback as used by {@link google.bigtable.v2.Bigtable#mutateRow}. * @memberof google.bigtable.v2.Bigtable * @typedef MutateRowCallback * @type {function} @@ -21252,7 +21252,7 @@ */ /** - * Callback as used by {@link google.bigtable.v2.Bigtable|mutateRows}. + * Callback as used by {@link google.bigtable.v2.Bigtable#mutateRows}. * @memberof google.bigtable.v2.Bigtable * @typedef MutateRowsCallback * @type {function} @@ -21285,7 +21285,7 @@ */ /** - * Callback as used by {@link google.bigtable.v2.Bigtable|checkAndMutateRow}. + * Callback as used by {@link google.bigtable.v2.Bigtable#checkAndMutateRow}. * @memberof google.bigtable.v2.Bigtable * @typedef CheckAndMutateRowCallback * @type {function} @@ -21318,7 +21318,7 @@ */ /** - * Callback as used by {@link google.bigtable.v2.Bigtable|pingAndWarm}. + * Callback as used by {@link google.bigtable.v2.Bigtable#pingAndWarm}. * @memberof google.bigtable.v2.Bigtable * @typedef PingAndWarmCallback * @type {function} @@ -21351,7 +21351,7 @@ */ /** - * Callback as used by {@link google.bigtable.v2.Bigtable|readModifyWriteRow}. + * Callback as used by {@link google.bigtable.v2.Bigtable#readModifyWriteRow}. * @memberof google.bigtable.v2.Bigtable * @typedef ReadModifyWriteRowCallback * @type {function} @@ -38144,7 +38144,6 @@ * @property {boolean|null} [packed] FieldOptions packed * @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype * @property {boolean|null} [lazy] FieldOptions lazy - * @property {boolean|null} [unverifiedLazy] FieldOptions unverifiedLazy * @property {boolean|null} [deprecated] FieldOptions deprecated * @property {boolean|null} [weak] FieldOptions weak * @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption @@ -38201,14 +38200,6 @@ */ FieldOptions.prototype.lazy = false; - /** - * FieldOptions unverifiedLazy. - * @member {boolean} unverifiedLazy - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.unverifiedLazy = false; - /** * FieldOptions deprecated. * @member {boolean} deprecated @@ -38285,8 +38276,6 @@ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); if (message.weak != null && Object.hasOwnProperty.call(message, "weak")) writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); - if (message.unverifiedLazy != null && Object.hasOwnProperty.call(message, "unverifiedLazy")) - writer.uint32(/* id 15, wireType 0 =*/120).bool(message.unverifiedLazy); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); @@ -38344,9 +38333,6 @@ case 5: message.lazy = reader.bool(); break; - case 15: - message.unverifiedLazy = reader.bool(); - break; case 3: message.deprecated = reader.bool(); break; @@ -38430,9 +38416,6 @@ if (message.lazy != null && message.hasOwnProperty("lazy")) if (typeof message.lazy !== "boolean") return "lazy: boolean expected"; - if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) - if (typeof message.unverifiedLazy !== "boolean") - return "unverifiedLazy: boolean expected"; if (message.deprecated != null && message.hasOwnProperty("deprecated")) if (typeof message.deprecated !== "boolean") return "deprecated: boolean expected"; @@ -38518,8 +38501,6 @@ } if (object.lazy != null) message.lazy = Boolean(object.lazy); - if (object.unverifiedLazy != null) - message.unverifiedLazy = Boolean(object.unverifiedLazy); if (object.deprecated != null) message.deprecated = Boolean(object.deprecated); if (object.weak != null) @@ -38607,7 +38588,6 @@ object.lazy = false; object.jstype = options.enums === String ? "JS_NORMAL" : 0; object.weak = false; - object.unverifiedLazy = false; object[".google.api.resourceReference"] = null; } if (message.ctype != null && message.hasOwnProperty("ctype")) @@ -38622,8 +38602,6 @@ object.jstype = options.enums === String ? $root.google.protobuf.FieldOptions.JSType[message.jstype] : message.jstype; if (message.weak != null && message.hasOwnProperty("weak")) object.weak = message.weak; - if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) - object.unverifiedLazy = message.unverifiedLazy; if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (var j = 0; j < message.uninterpretedOption.length; ++j) @@ -41912,209 +41890,6 @@ return Timestamp; })(); - protobuf.FieldMask = (function() { - - /** - * Properties of a FieldMask. - * @memberof google.protobuf - * @interface IFieldMask - * @property {Array.|null} [paths] FieldMask paths - */ - - /** - * Constructs a new FieldMask. - * @memberof google.protobuf - * @classdesc Represents a FieldMask. - * @implements IFieldMask - * @constructor - * @param {google.protobuf.IFieldMask=} [properties] Properties to set - */ - function FieldMask(properties) { - this.paths = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FieldMask paths. - * @member {Array.} paths - * @memberof google.protobuf.FieldMask - * @instance - */ - FieldMask.prototype.paths = $util.emptyArray; - - /** - * Creates a new FieldMask instance using the specified properties. - * @function create - * @memberof google.protobuf.FieldMask - * @static - * @param {google.protobuf.IFieldMask=} [properties] Properties to set - * @returns {google.protobuf.FieldMask} FieldMask instance - */ - FieldMask.create = function create(properties) { - return new FieldMask(properties); - }; - - /** - * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FieldMask - * @static - * @param {google.protobuf.IFieldMask} message FieldMask message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FieldMask.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.paths != null && message.paths.length) - for (var i = 0; i < message.paths.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.paths[i]); - return writer; - }; - - /** - * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.FieldMask - * @static - * @param {google.protobuf.IFieldMask} message FieldMask message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FieldMask.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FieldMask message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FieldMask - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FieldMask} FieldMask - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FieldMask.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldMask(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.paths && message.paths.length)) - message.paths = []; - message.paths.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FieldMask message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FieldMask - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FieldMask} FieldMask - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FieldMask.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FieldMask message. - * @function verify - * @memberof google.protobuf.FieldMask - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FieldMask.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.paths != null && message.hasOwnProperty("paths")) { - if (!Array.isArray(message.paths)) - return "paths: array expected"; - for (var i = 0; i < message.paths.length; ++i) - if (!$util.isString(message.paths[i])) - return "paths: string[] expected"; - } - return null; - }; - - /** - * Creates a FieldMask message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.FieldMask - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.FieldMask} FieldMask - */ - FieldMask.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FieldMask) - return object; - var message = new $root.google.protobuf.FieldMask(); - if (object.paths) { - if (!Array.isArray(object.paths)) - throw TypeError(".google.protobuf.FieldMask.paths: array expected"); - message.paths = []; - for (var i = 0; i < object.paths.length; ++i) - message.paths[i] = String(object.paths[i]); - } - return message; - }; - - /** - * Creates a plain object from a FieldMask message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.FieldMask - * @static - * @param {google.protobuf.FieldMask} message FieldMask - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FieldMask.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.paths = []; - if (message.paths && message.paths.length) { - object.paths = []; - for (var j = 0; j < message.paths.length; ++j) - object.paths[j] = message.paths[j]; - } - return object; - }; - - /** - * Converts this FieldMask to JSON. - * @function toJSON - * @memberof google.protobuf.FieldMask - * @instance - * @returns {Object.} JSON object - */ - FieldMask.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return FieldMask; - })(); - protobuf.Any = (function() { /** @@ -42718,6 +42493,209 @@ return Empty; })(); + protobuf.FieldMask = (function() { + + /** + * Properties of a FieldMask. + * @memberof google.protobuf + * @interface IFieldMask + * @property {Array.|null} [paths] FieldMask paths + */ + + /** + * Constructs a new FieldMask. + * @memberof google.protobuf + * @classdesc Represents a FieldMask. + * @implements IFieldMask + * @constructor + * @param {google.protobuf.IFieldMask=} [properties] Properties to set + */ + function FieldMask(properties) { + this.paths = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FieldMask paths. + * @member {Array.} paths + * @memberof google.protobuf.FieldMask + * @instance + */ + FieldMask.prototype.paths = $util.emptyArray; + + /** + * Creates a new FieldMask instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldMask + * @static + * @param {google.protobuf.IFieldMask=} [properties] Properties to set + * @returns {google.protobuf.FieldMask} FieldMask instance + */ + FieldMask.create = function create(properties) { + return new FieldMask(properties); + }; + + /** + * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FieldMask + * @static + * @param {google.protobuf.IFieldMask} message FieldMask message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldMask.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.paths != null && message.paths.length) + for (var i = 0; i < message.paths.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.paths[i]); + return writer; + }; + + /** + * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FieldMask + * @static + * @param {google.protobuf.IFieldMask} message FieldMask message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldMask.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FieldMask message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldMask + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldMask} FieldMask + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldMask.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldMask(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.paths && message.paths.length)) + message.paths = []; + message.paths.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FieldMask message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FieldMask + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FieldMask} FieldMask + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldMask.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FieldMask message. + * @function verify + * @memberof google.protobuf.FieldMask + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FieldMask.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.paths != null && message.hasOwnProperty("paths")) { + if (!Array.isArray(message.paths)) + return "paths: array expected"; + for (var i = 0; i < message.paths.length; ++i) + if (!$util.isString(message.paths[i])) + return "paths: string[] expected"; + } + return null; + }; + + /** + * Creates a FieldMask message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FieldMask + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FieldMask} FieldMask + */ + FieldMask.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldMask) + return object; + var message = new $root.google.protobuf.FieldMask(); + if (object.paths) { + if (!Array.isArray(object.paths)) + throw TypeError(".google.protobuf.FieldMask.paths: array expected"); + message.paths = []; + for (var i = 0; i < object.paths.length; ++i) + message.paths[i] = String(object.paths[i]); + } + return message; + }; + + /** + * Creates a plain object from a FieldMask message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FieldMask + * @static + * @param {google.protobuf.FieldMask} message FieldMask + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FieldMask.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.paths = []; + if (message.paths && message.paths.length) { + object.paths = []; + for (var j = 0; j < message.paths.length; ++j) + object.paths[j] = message.paths[j]; + } + return object; + }; + + /** + * Converts this FieldMask to JSON. + * @function toJSON + * @memberof google.protobuf.FieldMask + * @instance + * @returns {Object.} JSON object + */ + FieldMask.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return FieldMask; + })(); + protobuf.DoubleValue = (function() { /** @@ -44492,7 +44470,7 @@ }; /** - * Callback as used by {@link google.iam.v1.IAMPolicy|setIamPolicy}. + * Callback as used by {@link google.iam.v1.IAMPolicy#setIamPolicy}. * @memberof google.iam.v1.IAMPolicy * @typedef SetIamPolicyCallback * @type {function} @@ -44525,7 +44503,7 @@ */ /** - * Callback as used by {@link google.iam.v1.IAMPolicy|getIamPolicy}. + * Callback as used by {@link google.iam.v1.IAMPolicy#getIamPolicy}. * @memberof google.iam.v1.IAMPolicy * @typedef GetIamPolicyCallback * @type {function} @@ -44558,7 +44536,7 @@ */ /** - * Callback as used by {@link google.iam.v1.IAMPolicy|testIamPermissions}. + * Callback as used by {@link google.iam.v1.IAMPolicy#testIamPermissions}. * @memberof google.iam.v1.IAMPolicy * @typedef TestIamPermissionsCallback * @type {function} @@ -44601,7 +44579,6 @@ * @interface ISetIamPolicyRequest * @property {string|null} [resource] SetIamPolicyRequest resource * @property {google.iam.v1.IPolicy|null} [policy] SetIamPolicyRequest policy - * @property {google.protobuf.IFieldMask|null} [updateMask] SetIamPolicyRequest updateMask */ /** @@ -44635,14 +44612,6 @@ */ SetIamPolicyRequest.prototype.policy = null; - /** - * SetIamPolicyRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.iam.v1.SetIamPolicyRequest - * @instance - */ - SetIamPolicyRequest.prototype.updateMask = null; - /** * Creates a new SetIamPolicyRequest instance using the specified properties. * @function create @@ -44671,8 +44640,6 @@ writer.uint32(/* id 1, wireType 2 =*/10).string(message.resource); if (message.policy != null && Object.hasOwnProperty.call(message, "policy")) $root.google.iam.v1.Policy.encode(message.policy, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -44713,9 +44680,6 @@ case 2: message.policy = $root.google.iam.v1.Policy.decode(reader, reader.uint32()); break; - case 3: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -44759,11 +44723,6 @@ if (error) return "policy." + error; } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } return null; }; @@ -44786,11 +44745,6 @@ throw TypeError(".google.iam.v1.SetIamPolicyRequest.policy: object expected"); message.policy = $root.google.iam.v1.Policy.fromObject(object.policy); } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.iam.v1.SetIamPolicyRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } return message; }; @@ -44810,14 +44764,11 @@ if (options.defaults) { object.resource = ""; object.policy = null; - object.updateMask = null; } if (message.resource != null && message.hasOwnProperty("resource")) object.resource = message.resource; if (message.policy != null && message.hasOwnProperty("policy")) object.policy = $root.google.iam.v1.Policy.toObject(message.policy, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; @@ -45674,7 +45625,6 @@ * @interface IPolicy * @property {number|null} [version] Policy version * @property {Array.|null} [bindings] Policy bindings - * @property {Array.|null} [auditConfigs] Policy auditConfigs * @property {Uint8Array|null} [etag] Policy etag */ @@ -45688,7 +45638,6 @@ */ function Policy(properties) { this.bindings = []; - this.auditConfigs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -45711,14 +45660,6 @@ */ Policy.prototype.bindings = $util.emptyArray; - /** - * Policy auditConfigs. - * @member {Array.} auditConfigs - * @memberof google.iam.v1.Policy - * @instance - */ - Policy.prototype.auditConfigs = $util.emptyArray; - /** * Policy etag. * @member {Uint8Array} etag @@ -45758,9 +45699,6 @@ if (message.bindings != null && message.bindings.length) for (var i = 0; i < message.bindings.length; ++i) $root.google.iam.v1.Binding.encode(message.bindings[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.auditConfigs != null && message.auditConfigs.length) - for (var i = 0; i < message.auditConfigs.length; ++i) - $root.google.iam.v1.AuditConfig.encode(message.auditConfigs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; @@ -45803,11 +45741,6 @@ message.bindings = []; message.bindings.push($root.google.iam.v1.Binding.decode(reader, reader.uint32())); break; - case 6: - if (!(message.auditConfigs && message.auditConfigs.length)) - message.auditConfigs = []; - message.auditConfigs.push($root.google.iam.v1.AuditConfig.decode(reader, reader.uint32())); - break; case 3: message.etag = reader.bytes(); break; @@ -45858,15 +45791,6 @@ return "bindings." + error; } } - if (message.auditConfigs != null && message.hasOwnProperty("auditConfigs")) { - if (!Array.isArray(message.auditConfigs)) - return "auditConfigs: array expected"; - for (var i = 0; i < message.auditConfigs.length; ++i) { - var error = $root.google.iam.v1.AuditConfig.verify(message.auditConfigs[i]); - if (error) - return "auditConfigs." + error; - } - } if (message.etag != null && message.hasOwnProperty("etag")) if (!(message.etag && typeof message.etag.length === "number" || $util.isString(message.etag))) return "etag: buffer expected"; @@ -45897,16 +45821,6 @@ message.bindings[i] = $root.google.iam.v1.Binding.fromObject(object.bindings[i]); } } - if (object.auditConfigs) { - if (!Array.isArray(object.auditConfigs)) - throw TypeError(".google.iam.v1.Policy.auditConfigs: array expected"); - message.auditConfigs = []; - for (var i = 0; i < object.auditConfigs.length; ++i) { - if (typeof object.auditConfigs[i] !== "object") - throw TypeError(".google.iam.v1.Policy.auditConfigs: object expected"); - message.auditConfigs[i] = $root.google.iam.v1.AuditConfig.fromObject(object.auditConfigs[i]); - } - } if (object.etag != null) if (typeof object.etag === "string") $util.base64.decode(object.etag, message.etag = $util.newBuffer($util.base64.length(object.etag)), 0); @@ -45928,10 +45842,8 @@ if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { + if (options.arrays || options.defaults) object.bindings = []; - object.auditConfigs = []; - } if (options.defaults) { object.version = 0; if (options.bytes === String) @@ -45951,11 +45863,6 @@ for (var j = 0; j < message.bindings.length; ++j) object.bindings[j] = $root.google.iam.v1.Binding.toObject(message.bindings[j], options); } - if (message.auditConfigs && message.auditConfigs.length) { - object.auditConfigs = []; - for (var j = 0; j < message.auditConfigs.length; ++j) - object.auditConfigs[j] = $root.google.iam.v1.AuditConfig.toObject(message.auditConfigs[j], options); - } return object; }; @@ -46227,504 +46134,6 @@ return Binding; })(); - v1.AuditConfig = (function() { - - /** - * Properties of an AuditConfig. - * @memberof google.iam.v1 - * @interface IAuditConfig - * @property {string|null} [service] AuditConfig service - * @property {Array.|null} [auditLogConfigs] AuditConfig auditLogConfigs - */ - - /** - * Constructs a new AuditConfig. - * @memberof google.iam.v1 - * @classdesc Represents an AuditConfig. - * @implements IAuditConfig - * @constructor - * @param {google.iam.v1.IAuditConfig=} [properties] Properties to set - */ - function AuditConfig(properties) { - this.auditLogConfigs = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * AuditConfig service. - * @member {string} service - * @memberof google.iam.v1.AuditConfig - * @instance - */ - AuditConfig.prototype.service = ""; - - /** - * AuditConfig auditLogConfigs. - * @member {Array.} auditLogConfigs - * @memberof google.iam.v1.AuditConfig - * @instance - */ - AuditConfig.prototype.auditLogConfigs = $util.emptyArray; - - /** - * Creates a new AuditConfig instance using the specified properties. - * @function create - * @memberof google.iam.v1.AuditConfig - * @static - * @param {google.iam.v1.IAuditConfig=} [properties] Properties to set - * @returns {google.iam.v1.AuditConfig} AuditConfig instance - */ - AuditConfig.create = function create(properties) { - return new AuditConfig(properties); - }; - - /** - * Encodes the specified AuditConfig message. Does not implicitly {@link google.iam.v1.AuditConfig.verify|verify} messages. - * @function encode - * @memberof google.iam.v1.AuditConfig - * @static - * @param {google.iam.v1.IAuditConfig} message AuditConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AuditConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.service != null && Object.hasOwnProperty.call(message, "service")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.service); - if (message.auditLogConfigs != null && message.auditLogConfigs.length) - for (var i = 0; i < message.auditLogConfigs.length; ++i) - $root.google.iam.v1.AuditLogConfig.encode(message.auditLogConfigs[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified AuditConfig message, length delimited. Does not implicitly {@link google.iam.v1.AuditConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.iam.v1.AuditConfig - * @static - * @param {google.iam.v1.IAuditConfig} message AuditConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AuditConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an AuditConfig message from the specified reader or buffer. - * @function decode - * @memberof google.iam.v1.AuditConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.iam.v1.AuditConfig} AuditConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AuditConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.iam.v1.AuditConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.service = reader.string(); - break; - case 3: - if (!(message.auditLogConfigs && message.auditLogConfigs.length)) - message.auditLogConfigs = []; - message.auditLogConfigs.push($root.google.iam.v1.AuditLogConfig.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an AuditConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.iam.v1.AuditConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.iam.v1.AuditConfig} AuditConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AuditConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AuditConfig message. - * @function verify - * @memberof google.iam.v1.AuditConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AuditConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.service != null && message.hasOwnProperty("service")) - if (!$util.isString(message.service)) - return "service: string expected"; - if (message.auditLogConfigs != null && message.hasOwnProperty("auditLogConfigs")) { - if (!Array.isArray(message.auditLogConfigs)) - return "auditLogConfigs: array expected"; - for (var i = 0; i < message.auditLogConfigs.length; ++i) { - var error = $root.google.iam.v1.AuditLogConfig.verify(message.auditLogConfigs[i]); - if (error) - return "auditLogConfigs." + error; - } - } - return null; - }; - - /** - * Creates an AuditConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.iam.v1.AuditConfig - * @static - * @param {Object.} object Plain object - * @returns {google.iam.v1.AuditConfig} AuditConfig - */ - AuditConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.iam.v1.AuditConfig) - return object; - var message = new $root.google.iam.v1.AuditConfig(); - if (object.service != null) - message.service = String(object.service); - if (object.auditLogConfigs) { - if (!Array.isArray(object.auditLogConfigs)) - throw TypeError(".google.iam.v1.AuditConfig.auditLogConfigs: array expected"); - message.auditLogConfigs = []; - for (var i = 0; i < object.auditLogConfigs.length; ++i) { - if (typeof object.auditLogConfigs[i] !== "object") - throw TypeError(".google.iam.v1.AuditConfig.auditLogConfigs: object expected"); - message.auditLogConfigs[i] = $root.google.iam.v1.AuditLogConfig.fromObject(object.auditLogConfigs[i]); - } - } - return message; - }; - - /** - * Creates a plain object from an AuditConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.iam.v1.AuditConfig - * @static - * @param {google.iam.v1.AuditConfig} message AuditConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AuditConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.auditLogConfigs = []; - if (options.defaults) - object.service = ""; - if (message.service != null && message.hasOwnProperty("service")) - object.service = message.service; - if (message.auditLogConfigs && message.auditLogConfigs.length) { - object.auditLogConfigs = []; - for (var j = 0; j < message.auditLogConfigs.length; ++j) - object.auditLogConfigs[j] = $root.google.iam.v1.AuditLogConfig.toObject(message.auditLogConfigs[j], options); - } - return object; - }; - - /** - * Converts this AuditConfig to JSON. - * @function toJSON - * @memberof google.iam.v1.AuditConfig - * @instance - * @returns {Object.} JSON object - */ - AuditConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return AuditConfig; - })(); - - v1.AuditLogConfig = (function() { - - /** - * Properties of an AuditLogConfig. - * @memberof google.iam.v1 - * @interface IAuditLogConfig - * @property {google.iam.v1.AuditLogConfig.LogType|null} [logType] AuditLogConfig logType - * @property {Array.|null} [exemptedMembers] AuditLogConfig exemptedMembers - */ - - /** - * Constructs a new AuditLogConfig. - * @memberof google.iam.v1 - * @classdesc Represents an AuditLogConfig. - * @implements IAuditLogConfig - * @constructor - * @param {google.iam.v1.IAuditLogConfig=} [properties] Properties to set - */ - function AuditLogConfig(properties) { - this.exemptedMembers = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * AuditLogConfig logType. - * @member {google.iam.v1.AuditLogConfig.LogType} logType - * @memberof google.iam.v1.AuditLogConfig - * @instance - */ - AuditLogConfig.prototype.logType = 0; - - /** - * AuditLogConfig exemptedMembers. - * @member {Array.} exemptedMembers - * @memberof google.iam.v1.AuditLogConfig - * @instance - */ - AuditLogConfig.prototype.exemptedMembers = $util.emptyArray; - - /** - * Creates a new AuditLogConfig instance using the specified properties. - * @function create - * @memberof google.iam.v1.AuditLogConfig - * @static - * @param {google.iam.v1.IAuditLogConfig=} [properties] Properties to set - * @returns {google.iam.v1.AuditLogConfig} AuditLogConfig instance - */ - AuditLogConfig.create = function create(properties) { - return new AuditLogConfig(properties); - }; - - /** - * Encodes the specified AuditLogConfig message. Does not implicitly {@link google.iam.v1.AuditLogConfig.verify|verify} messages. - * @function encode - * @memberof google.iam.v1.AuditLogConfig - * @static - * @param {google.iam.v1.IAuditLogConfig} message AuditLogConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AuditLogConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.logType != null && Object.hasOwnProperty.call(message, "logType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.logType); - if (message.exemptedMembers != null && message.exemptedMembers.length) - for (var i = 0; i < message.exemptedMembers.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.exemptedMembers[i]); - return writer; - }; - - /** - * Encodes the specified AuditLogConfig message, length delimited. Does not implicitly {@link google.iam.v1.AuditLogConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.iam.v1.AuditLogConfig - * @static - * @param {google.iam.v1.IAuditLogConfig} message AuditLogConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AuditLogConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an AuditLogConfig message from the specified reader or buffer. - * @function decode - * @memberof google.iam.v1.AuditLogConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.iam.v1.AuditLogConfig} AuditLogConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AuditLogConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.iam.v1.AuditLogConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.logType = reader.int32(); - break; - case 2: - if (!(message.exemptedMembers && message.exemptedMembers.length)) - message.exemptedMembers = []; - message.exemptedMembers.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an AuditLogConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.iam.v1.AuditLogConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.iam.v1.AuditLogConfig} AuditLogConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AuditLogConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AuditLogConfig message. - * @function verify - * @memberof google.iam.v1.AuditLogConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AuditLogConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.logType != null && message.hasOwnProperty("logType")) - switch (message.logType) { - default: - return "logType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.exemptedMembers != null && message.hasOwnProperty("exemptedMembers")) { - if (!Array.isArray(message.exemptedMembers)) - return "exemptedMembers: array expected"; - for (var i = 0; i < message.exemptedMembers.length; ++i) - if (!$util.isString(message.exemptedMembers[i])) - return "exemptedMembers: string[] expected"; - } - return null; - }; - - /** - * Creates an AuditLogConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.iam.v1.AuditLogConfig - * @static - * @param {Object.} object Plain object - * @returns {google.iam.v1.AuditLogConfig} AuditLogConfig - */ - AuditLogConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.iam.v1.AuditLogConfig) - return object; - var message = new $root.google.iam.v1.AuditLogConfig(); - switch (object.logType) { - case "LOG_TYPE_UNSPECIFIED": - case 0: - message.logType = 0; - break; - case "ADMIN_READ": - case 1: - message.logType = 1; - break; - case "DATA_WRITE": - case 2: - message.logType = 2; - break; - case "DATA_READ": - case 3: - message.logType = 3; - break; - } - if (object.exemptedMembers) { - if (!Array.isArray(object.exemptedMembers)) - throw TypeError(".google.iam.v1.AuditLogConfig.exemptedMembers: array expected"); - message.exemptedMembers = []; - for (var i = 0; i < object.exemptedMembers.length; ++i) - message.exemptedMembers[i] = String(object.exemptedMembers[i]); - } - return message; - }; - - /** - * Creates a plain object from an AuditLogConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.iam.v1.AuditLogConfig - * @static - * @param {google.iam.v1.AuditLogConfig} message AuditLogConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AuditLogConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.exemptedMembers = []; - if (options.defaults) - object.logType = options.enums === String ? "LOG_TYPE_UNSPECIFIED" : 0; - if (message.logType != null && message.hasOwnProperty("logType")) - object.logType = options.enums === String ? $root.google.iam.v1.AuditLogConfig.LogType[message.logType] : message.logType; - if (message.exemptedMembers && message.exemptedMembers.length) { - object.exemptedMembers = []; - for (var j = 0; j < message.exemptedMembers.length; ++j) - object.exemptedMembers[j] = message.exemptedMembers[j]; - } - return object; - }; - - /** - * Converts this AuditLogConfig to JSON. - * @function toJSON - * @memberof google.iam.v1.AuditLogConfig - * @instance - * @returns {Object.} JSON object - */ - AuditLogConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * LogType enum. - * @name google.iam.v1.AuditLogConfig.LogType - * @enum {number} - * @property {number} LOG_TYPE_UNSPECIFIED=0 LOG_TYPE_UNSPECIFIED value - * @property {number} ADMIN_READ=1 ADMIN_READ value - * @property {number} DATA_WRITE=2 DATA_WRITE value - * @property {number} DATA_READ=3 DATA_READ value - */ - AuditLogConfig.LogType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "LOG_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "ADMIN_READ"] = 1; - values[valuesById[2] = "DATA_WRITE"] = 2; - values[valuesById[3] = "DATA_READ"] = 3; - return values; - })(); - - return AuditLogConfig; - })(); - v1.PolicyDelta = (function() { /** @@ -47872,7 +47281,7 @@ }; /** - * Callback as used by {@link google.longrunning.Operations|listOperations}. + * Callback as used by {@link google.longrunning.Operations#listOperations}. * @memberof google.longrunning.Operations * @typedef ListOperationsCallback * @type {function} @@ -47905,7 +47314,7 @@ */ /** - * Callback as used by {@link google.longrunning.Operations|getOperation}. + * Callback as used by {@link google.longrunning.Operations#getOperation}. * @memberof google.longrunning.Operations * @typedef GetOperationCallback * @type {function} @@ -47938,7 +47347,7 @@ */ /** - * Callback as used by {@link google.longrunning.Operations|deleteOperation}. + * Callback as used by {@link google.longrunning.Operations#deleteOperation}. * @memberof google.longrunning.Operations * @typedef DeleteOperationCallback * @type {function} @@ -47971,7 +47380,7 @@ */ /** - * Callback as used by {@link google.longrunning.Operations|cancelOperation}. + * Callback as used by {@link google.longrunning.Operations#cancelOperation}. * @memberof google.longrunning.Operations * @typedef CancelOperationCallback * @type {function} @@ -48004,7 +47413,7 @@ */ /** - * Callback as used by {@link google.longrunning.Operations|waitOperation}. + * Callback as used by {@link google.longrunning.Operations#waitOperation}. * @memberof google.longrunning.Operations * @typedef WaitOperationCallback * @type {function} diff --git a/protos/protos.json b/protos/protos.json index a1196f467..64b6e60f2 100644 --- a/protos/protos.json +++ b/protos/protos.json @@ -4545,13 +4545,6 @@ "default": false } }, - "unverifiedLazy": { - "type": "bool", - "id": 15, - "options": { - "default": false - } - }, "deprecated": { "type": "bool", "id": 3, @@ -4861,15 +4854,6 @@ } } }, - "FieldMask": { - "fields": { - "paths": { - "rule": "repeated", - "type": "string", - "id": 1 - } - } - }, "Any": { "fields": { "type_url": { @@ -4897,6 +4881,15 @@ "Empty": { "fields": {} }, + "FieldMask": { + "fields": { + "paths": { + "rule": "repeated", + "type": "string", + "id": 1 + } + } + }, "DoubleValue": { "fields": { "value": { @@ -5055,10 +5048,6 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } - }, - "updateMask": { - "type": "google.protobuf.FieldMask", - "id": 3 } } }, @@ -5126,11 +5115,6 @@ "type": "Binding", "id": 4 }, - "auditConfigs": { - "rule": "repeated", - "type": "AuditConfig", - "id": 6 - }, "etag": { "type": "bytes", "id": 3 @@ -5154,42 +5138,6 @@ } } }, - "AuditConfig": { - "fields": { - "service": { - "type": "string", - "id": 1 - }, - "auditLogConfigs": { - "rule": "repeated", - "type": "AuditLogConfig", - "id": 3 - } - } - }, - "AuditLogConfig": { - "fields": { - "logType": { - "type": "LogType", - "id": 1 - }, - "exemptedMembers": { - "rule": "repeated", - "type": "string", - "id": 2 - } - }, - "nested": { - "LogType": { - "values": { - "LOG_TYPE_UNSPECIFIED": 0, - "ADMIN_READ": 1, - "DATA_WRITE": 2, - "DATA_READ": 3 - } - } - } - }, "PolicyDelta": { "fields": { "bindingDeltas": { From 097325068cbc72c628bc23380da2078aa24ac376 Mon Sep 17 00:00:00 2001 From: Sofia Leon Date: Mon, 16 May 2022 14:01:22 -0700 Subject: [PATCH 3/9] dep: update gts --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4b4876a99..ee2cccb4b 100644 --- a/package.json +++ b/package.json @@ -75,7 +75,7 @@ "@types/uuid": "^8.0.0", "c8": "^7.1.0", "codecov": "^3.6.5", - "gts": "^3.0.0", + "gts": "^3.1.0", "jsdoc": "^3.6.3", "jsdoc-fresh": "^1.0.2", "jsdoc-region-tag": "^1.0.4", From b17bc82ea7e6424d95b94e8cfdd2172004dfad86 Mon Sep 17 00:00:00 2001 From: Sofia Leon Date: Mon, 16 May 2022 14:19:08 -0700 Subject: [PATCH 4/9] dep: update google-gax --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ee2cccb4b..5238bccd4 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "dot-prop": "^6.0.0", "escape-string-regexp": "^4.0.0", "extend": "^3.0.2", - "google-gax": "^2.29.5", + "google-gax": "^3.0.1", "grpc-gcp": "0.4.2", "is": "^3.0.1", "is-utf8": "^0.2.1", From 8417a02d8cebcd2bfcaa5b2e4dfa16311dff40e8 Mon Sep 17 00:00:00 2001 From: Sofia Leon Date: Mon, 16 May 2022 18:12:53 -0700 Subject: [PATCH 5/9] run lint --- protos/protos.d.ts | 517 ++++++++++++++------ protos/protos.js | 1115 +++++++++++++++++++++++++++++++++----------- protos/protos.json | 70 ++- 3 files changed, 1283 insertions(+), 419 deletions(-) diff --git a/protos/protos.d.ts b/protos/protos.d.ts index cc06d0e3a..54db50768 100644 --- a/protos/protos.d.ts +++ b/protos/protos.d.ts @@ -344,147 +344,147 @@ export namespace google { namespace BigtableInstanceAdmin { /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#createInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|createInstance}. * @param error Error, if any * @param [response] Operation */ type CreateInstanceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#getInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getInstance}. * @param error Error, if any * @param [response] Instance */ type GetInstanceCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Instance) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#listInstances}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listInstances}. * @param error Error, if any * @param [response] ListInstancesResponse */ type ListInstancesCallback = (error: (Error|null), response?: google.bigtable.admin.v2.ListInstancesResponse) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#updateInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|updateInstance}. * @param error Error, if any * @param [response] Instance */ type UpdateInstanceCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Instance) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#partialUpdateInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|partialUpdateInstance}. * @param error Error, if any * @param [response] Operation */ type PartialUpdateInstanceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#deleteInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|deleteInstance}. * @param error Error, if any * @param [response] Empty */ type DeleteInstanceCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#createCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|createCluster}. * @param error Error, if any * @param [response] Operation */ type CreateClusterCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#getCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getCluster}. * @param error Error, if any * @param [response] Cluster */ type GetClusterCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Cluster) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#listClusters}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listClusters}. * @param error Error, if any * @param [response] ListClustersResponse */ type ListClustersCallback = (error: (Error|null), response?: google.bigtable.admin.v2.ListClustersResponse) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#updateCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|updateCluster}. * @param error Error, if any * @param [response] Operation */ type UpdateClusterCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#partialUpdateCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|partialUpdateCluster}. * @param error Error, if any * @param [response] Operation */ type PartialUpdateClusterCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#deleteCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|deleteCluster}. * @param error Error, if any * @param [response] Empty */ type DeleteClusterCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#createAppProfile}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|createAppProfile}. * @param error Error, if any * @param [response] AppProfile */ type CreateAppProfileCallback = (error: (Error|null), response?: google.bigtable.admin.v2.AppProfile) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#getAppProfile}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getAppProfile}. * @param error Error, if any * @param [response] AppProfile */ type GetAppProfileCallback = (error: (Error|null), response?: google.bigtable.admin.v2.AppProfile) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#listAppProfiles}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listAppProfiles}. * @param error Error, if any * @param [response] ListAppProfilesResponse */ type ListAppProfilesCallback = (error: (Error|null), response?: google.bigtable.admin.v2.ListAppProfilesResponse) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#updateAppProfile}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|updateAppProfile}. * @param error Error, if any * @param [response] Operation */ type UpdateAppProfileCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#deleteAppProfile}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|deleteAppProfile}. * @param error Error, if any * @param [response] Empty */ type DeleteAppProfileCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#getIamPolicy}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getIamPolicy}. * @param error Error, if any * @param [response] Policy */ type GetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#setIamPolicy}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|setIamPolicy}. * @param error Error, if any * @param [response] Policy */ type SetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#testIamPermissions}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|testIamPermissions}. * @param error Error, if any * @param [response] TestIamPermissionsResponse */ type TestIamPermissionsCallback = (error: (Error|null), response?: google.iam.v1.TestIamPermissionsResponse) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#listHotTablets}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listHotTablets}. * @param error Error, if any * @param [response] ListHotTabletsResponse */ @@ -4666,154 +4666,154 @@ export namespace google { namespace BigtableTableAdmin { /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#createTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|createTable}. * @param error Error, if any * @param [response] Table */ type CreateTableCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Table) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#createTableFromSnapshot}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|createTableFromSnapshot}. * @param error Error, if any * @param [response] Operation */ type CreateTableFromSnapshotCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#listTables}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|listTables}. * @param error Error, if any * @param [response] ListTablesResponse */ type ListTablesCallback = (error: (Error|null), response?: google.bigtable.admin.v2.ListTablesResponse) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#getTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|getTable}. * @param error Error, if any * @param [response] Table */ type GetTableCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Table) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#deleteTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|deleteTable}. * @param error Error, if any * @param [response] Empty */ type DeleteTableCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#modifyColumnFamilies}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|modifyColumnFamilies}. * @param error Error, if any * @param [response] Table */ type ModifyColumnFamiliesCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Table) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#dropRowRange}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|dropRowRange}. * @param error Error, if any * @param [response] Empty */ type DropRowRangeCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#generateConsistencyToken}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|generateConsistencyToken}. * @param error Error, if any * @param [response] GenerateConsistencyTokenResponse */ type GenerateConsistencyTokenCallback = (error: (Error|null), response?: google.bigtable.admin.v2.GenerateConsistencyTokenResponse) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#checkConsistency}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|checkConsistency}. * @param error Error, if any * @param [response] CheckConsistencyResponse */ type CheckConsistencyCallback = (error: (Error|null), response?: google.bigtable.admin.v2.CheckConsistencyResponse) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#snapshotTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|snapshotTable}. * @param error Error, if any * @param [response] Operation */ type SnapshotTableCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#getSnapshot}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|getSnapshot}. * @param error Error, if any * @param [response] Snapshot */ type GetSnapshotCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Snapshot) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#listSnapshots}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|listSnapshots}. * @param error Error, if any * @param [response] ListSnapshotsResponse */ type ListSnapshotsCallback = (error: (Error|null), response?: google.bigtable.admin.v2.ListSnapshotsResponse) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#deleteSnapshot}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|deleteSnapshot}. * @param error Error, if any * @param [response] Empty */ type DeleteSnapshotCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#createBackup}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|createBackup}. * @param error Error, if any * @param [response] Operation */ type CreateBackupCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#getBackup}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|getBackup}. * @param error Error, if any * @param [response] Backup */ type GetBackupCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Backup) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#updateBackup}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|updateBackup}. * @param error Error, if any * @param [response] Backup */ type UpdateBackupCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Backup) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#deleteBackup}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|deleteBackup}. * @param error Error, if any * @param [response] Empty */ type DeleteBackupCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#listBackups}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|listBackups}. * @param error Error, if any * @param [response] ListBackupsResponse */ type ListBackupsCallback = (error: (Error|null), response?: google.bigtable.admin.v2.ListBackupsResponse) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#restoreTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|restoreTable}. * @param error Error, if any * @param [response] Operation */ type RestoreTableCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#getIamPolicy}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|getIamPolicy}. * @param error Error, if any * @param [response] Policy */ type GetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#setIamPolicy}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|setIamPolicy}. * @param error Error, if any * @param [response] Policy */ type SetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#testIamPermissions}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|testIamPermissions}. * @param error Error, if any * @param [response] TestIamPermissionsResponse */ @@ -9260,49 +9260,49 @@ export namespace google { namespace Bigtable { /** - * Callback as used by {@link google.bigtable.v2.Bigtable#readRows}. + * Callback as used by {@link google.bigtable.v2.Bigtable|readRows}. * @param error Error, if any * @param [response] ReadRowsResponse */ type ReadRowsCallback = (error: (Error|null), response?: google.bigtable.v2.ReadRowsResponse) => void; /** - * Callback as used by {@link google.bigtable.v2.Bigtable#sampleRowKeys}. + * Callback as used by {@link google.bigtable.v2.Bigtable|sampleRowKeys}. * @param error Error, if any * @param [response] SampleRowKeysResponse */ type SampleRowKeysCallback = (error: (Error|null), response?: google.bigtable.v2.SampleRowKeysResponse) => void; /** - * Callback as used by {@link google.bigtable.v2.Bigtable#mutateRow}. + * Callback as used by {@link google.bigtable.v2.Bigtable|mutateRow}. * @param error Error, if any * @param [response] MutateRowResponse */ type MutateRowCallback = (error: (Error|null), response?: google.bigtable.v2.MutateRowResponse) => void; /** - * Callback as used by {@link google.bigtable.v2.Bigtable#mutateRows}. + * Callback as used by {@link google.bigtable.v2.Bigtable|mutateRows}. * @param error Error, if any * @param [response] MutateRowsResponse */ type MutateRowsCallback = (error: (Error|null), response?: google.bigtable.v2.MutateRowsResponse) => void; /** - * Callback as used by {@link google.bigtable.v2.Bigtable#checkAndMutateRow}. + * Callback as used by {@link google.bigtable.v2.Bigtable|checkAndMutateRow}. * @param error Error, if any * @param [response] CheckAndMutateRowResponse */ type CheckAndMutateRowCallback = (error: (Error|null), response?: google.bigtable.v2.CheckAndMutateRowResponse) => void; /** - * Callback as used by {@link google.bigtable.v2.Bigtable#pingAndWarm}. + * Callback as used by {@link google.bigtable.v2.Bigtable|pingAndWarm}. * @param error Error, if any * @param [response] PingAndWarmResponse */ type PingAndWarmCallback = (error: (Error|null), response?: google.bigtable.v2.PingAndWarmResponse) => void; /** - * Callback as used by {@link google.bigtable.v2.Bigtable#readModifyWriteRow}. + * Callback as used by {@link google.bigtable.v2.Bigtable|readModifyWriteRow}. * @param error Error, if any * @param [response] ReadModifyWriteRowResponse */ @@ -15685,6 +15685,9 @@ export namespace google { /** FieldOptions lazy */ lazy?: (boolean|null); + /** FieldOptions unverifiedLazy */ + unverifiedLazy?: (boolean|null); + /** FieldOptions deprecated */ deprecated?: (boolean|null); @@ -15722,6 +15725,9 @@ export namespace google { /** FieldOptions lazy. */ public lazy: boolean; + /** FieldOptions unverifiedLazy. */ + public unverifiedLazy: boolean; + /** FieldOptions deprecated. */ public deprecated: boolean; @@ -17062,6 +17068,96 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a FieldMask. */ + interface IFieldMask { + + /** FieldMask paths */ + paths?: (string[]|null); + } + + /** Represents a FieldMask. */ + class FieldMask implements IFieldMask { + + /** + * Constructs a new FieldMask. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFieldMask); + + /** FieldMask paths. */ + public paths: string[]; + + /** + * Creates a new FieldMask instance using the specified properties. + * @param [properties] Properties to set + * @returns FieldMask instance + */ + public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask; + + /** + * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * @param message FieldMask message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * @param message FieldMask message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FieldMask message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FieldMask + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldMask; + + /** + * Decodes a FieldMask message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FieldMask + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldMask; + + /** + * Verifies a FieldMask message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FieldMask message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FieldMask + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask; + + /** + * Creates a plain object from a FieldMask message. Also converts values to other types if specified. + * @param message FieldMask + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FieldMask to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of an Any. */ interface IAny { @@ -17338,96 +17434,6 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** Properties of a FieldMask. */ - interface IFieldMask { - - /** FieldMask paths */ - paths?: (string[]|null); - } - - /** Represents a FieldMask. */ - class FieldMask implements IFieldMask { - - /** - * Constructs a new FieldMask. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IFieldMask); - - /** FieldMask paths. */ - public paths: string[]; - - /** - * Creates a new FieldMask instance using the specified properties. - * @param [properties] Properties to set - * @returns FieldMask instance - */ - public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask; - - /** - * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. - * @param message FieldMask message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. - * @param message FieldMask message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FieldMask message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FieldMask - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldMask; - - /** - * Decodes a FieldMask message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FieldMask - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldMask; - - /** - * Verifies a FieldMask message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a FieldMask message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FieldMask - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask; - - /** - * Creates a plain object from a FieldMask message. Also converts values to other types if specified. - * @param message FieldMask - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this FieldMask to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - /** Properties of a DoubleValue. */ interface IDoubleValue { @@ -18311,21 +18317,21 @@ export namespace google { namespace IAMPolicy { /** - * Callback as used by {@link google.iam.v1.IAMPolicy#setIamPolicy}. + * Callback as used by {@link google.iam.v1.IAMPolicy|setIamPolicy}. * @param error Error, if any * @param [response] Policy */ type SetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; /** - * Callback as used by {@link google.iam.v1.IAMPolicy#getIamPolicy}. + * Callback as used by {@link google.iam.v1.IAMPolicy|getIamPolicy}. * @param error Error, if any * @param [response] Policy */ type GetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; /** - * Callback as used by {@link google.iam.v1.IAMPolicy#testIamPermissions}. + * Callback as used by {@link google.iam.v1.IAMPolicy|testIamPermissions}. * @param error Error, if any * @param [response] TestIamPermissionsResponse */ @@ -18340,6 +18346,9 @@ export namespace google { /** SetIamPolicyRequest policy */ policy?: (google.iam.v1.IPolicy|null); + + /** SetIamPolicyRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } /** Represents a SetIamPolicyRequest. */ @@ -18357,6 +18366,9 @@ export namespace google { /** SetIamPolicyRequest policy. */ public policy?: (google.iam.v1.IPolicy|null); + /** SetIamPolicyRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + /** * Creates a new SetIamPolicyRequest instance using the specified properties. * @param [properties] Properties to set @@ -18809,6 +18821,9 @@ export namespace google { /** Policy bindings */ bindings?: (google.iam.v1.IBinding[]|null); + /** Policy auditConfigs */ + auditConfigs?: (google.iam.v1.IAuditConfig[]|null); + /** Policy etag */ etag?: (Uint8Array|string|null); } @@ -18828,6 +18843,9 @@ export namespace google { /** Policy bindings. */ public bindings: google.iam.v1.IBinding[]; + /** Policy auditConfigs. */ + public auditConfigs: google.iam.v1.IAuditConfig[]; + /** Policy etag. */ public etag: (Uint8Array|string); @@ -19004,6 +19022,209 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of an AuditConfig. */ + interface IAuditConfig { + + /** AuditConfig service */ + service?: (string|null); + + /** AuditConfig auditLogConfigs */ + auditLogConfigs?: (google.iam.v1.IAuditLogConfig[]|null); + } + + /** Represents an AuditConfig. */ + class AuditConfig implements IAuditConfig { + + /** + * Constructs a new AuditConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.iam.v1.IAuditConfig); + + /** AuditConfig service. */ + public service: string; + + /** AuditConfig auditLogConfigs. */ + public auditLogConfigs: google.iam.v1.IAuditLogConfig[]; + + /** + * Creates a new AuditConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns AuditConfig instance + */ + public static create(properties?: google.iam.v1.IAuditConfig): google.iam.v1.AuditConfig; + + /** + * Encodes the specified AuditConfig message. Does not implicitly {@link google.iam.v1.AuditConfig.verify|verify} messages. + * @param message AuditConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.iam.v1.IAuditConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AuditConfig message, length delimited. Does not implicitly {@link google.iam.v1.AuditConfig.verify|verify} messages. + * @param message AuditConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.iam.v1.IAuditConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AuditConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AuditConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.AuditConfig; + + /** + * Decodes an AuditConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AuditConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.AuditConfig; + + /** + * Verifies an AuditConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AuditConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AuditConfig + */ + public static fromObject(object: { [k: string]: any }): google.iam.v1.AuditConfig; + + /** + * Creates a plain object from an AuditConfig message. Also converts values to other types if specified. + * @param message AuditConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.iam.v1.AuditConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AuditConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AuditLogConfig. */ + interface IAuditLogConfig { + + /** AuditLogConfig logType */ + logType?: (google.iam.v1.AuditLogConfig.LogType|keyof typeof google.iam.v1.AuditLogConfig.LogType|null); + + /** AuditLogConfig exemptedMembers */ + exemptedMembers?: (string[]|null); + } + + /** Represents an AuditLogConfig. */ + class AuditLogConfig implements IAuditLogConfig { + + /** + * Constructs a new AuditLogConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.iam.v1.IAuditLogConfig); + + /** AuditLogConfig logType. */ + public logType: (google.iam.v1.AuditLogConfig.LogType|keyof typeof google.iam.v1.AuditLogConfig.LogType); + + /** AuditLogConfig exemptedMembers. */ + public exemptedMembers: string[]; + + /** + * Creates a new AuditLogConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns AuditLogConfig instance + */ + public static create(properties?: google.iam.v1.IAuditLogConfig): google.iam.v1.AuditLogConfig; + + /** + * Encodes the specified AuditLogConfig message. Does not implicitly {@link google.iam.v1.AuditLogConfig.verify|verify} messages. + * @param message AuditLogConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.iam.v1.IAuditLogConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AuditLogConfig message, length delimited. Does not implicitly {@link google.iam.v1.AuditLogConfig.verify|verify} messages. + * @param message AuditLogConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.iam.v1.IAuditLogConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AuditLogConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AuditLogConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.AuditLogConfig; + + /** + * Decodes an AuditLogConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AuditLogConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.AuditLogConfig; + + /** + * Verifies an AuditLogConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AuditLogConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AuditLogConfig + */ + public static fromObject(object: { [k: string]: any }): google.iam.v1.AuditLogConfig; + + /** + * Creates a plain object from an AuditLogConfig message. Also converts values to other types if specified. + * @param message AuditLogConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.iam.v1.AuditLogConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AuditLogConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace AuditLogConfig { + + /** LogType enum. */ + enum LogType { + LOG_TYPE_UNSPECIFIED = 0, + ADMIN_READ = 1, + DATA_WRITE = 2, + DATA_READ = 3 + } + } + /** Properties of a PolicyDelta. */ interface IPolicyDelta { @@ -19547,35 +19768,35 @@ export namespace google { namespace Operations { /** - * Callback as used by {@link google.longrunning.Operations#listOperations}. + * Callback as used by {@link google.longrunning.Operations|listOperations}. * @param error Error, if any * @param [response] ListOperationsResponse */ type ListOperationsCallback = (error: (Error|null), response?: google.longrunning.ListOperationsResponse) => void; /** - * Callback as used by {@link google.longrunning.Operations#getOperation}. + * Callback as used by {@link google.longrunning.Operations|getOperation}. * @param error Error, if any * @param [response] Operation */ type GetOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.longrunning.Operations#deleteOperation}. + * Callback as used by {@link google.longrunning.Operations|deleteOperation}. * @param error Error, if any * @param [response] Empty */ type DeleteOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.longrunning.Operations#cancelOperation}. + * Callback as used by {@link google.longrunning.Operations|cancelOperation}. * @param error Error, if any * @param [response] Empty */ type CancelOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.longrunning.Operations#waitOperation}. + * Callback as used by {@link google.longrunning.Operations|waitOperation}. * @param error Error, if any * @param [response] Operation */ diff --git a/protos/protos.js b/protos/protos.js index 2732c14b2..6dbada036 100644 --- a/protos/protos.js +++ b/protos/protos.js @@ -99,7 +99,7 @@ }; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#createInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|createInstance}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef CreateInstanceCallback * @type {function} @@ -132,7 +132,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#getInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getInstance}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef GetInstanceCallback * @type {function} @@ -165,7 +165,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#listInstances}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listInstances}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef ListInstancesCallback * @type {function} @@ -198,7 +198,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#updateInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|updateInstance}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef UpdateInstanceCallback * @type {function} @@ -231,7 +231,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#partialUpdateInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|partialUpdateInstance}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef PartialUpdateInstanceCallback * @type {function} @@ -264,7 +264,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#deleteInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|deleteInstance}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef DeleteInstanceCallback * @type {function} @@ -297,7 +297,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#createCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|createCluster}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef CreateClusterCallback * @type {function} @@ -330,7 +330,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#getCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getCluster}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef GetClusterCallback * @type {function} @@ -363,7 +363,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#listClusters}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listClusters}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef ListClustersCallback * @type {function} @@ -396,7 +396,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#updateCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|updateCluster}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef UpdateClusterCallback * @type {function} @@ -429,7 +429,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#partialUpdateCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|partialUpdateCluster}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef PartialUpdateClusterCallback * @type {function} @@ -462,7 +462,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#deleteCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|deleteCluster}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef DeleteClusterCallback * @type {function} @@ -495,7 +495,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#createAppProfile}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|createAppProfile}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef CreateAppProfileCallback * @type {function} @@ -528,7 +528,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#getAppProfile}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getAppProfile}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef GetAppProfileCallback * @type {function} @@ -561,7 +561,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#listAppProfiles}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listAppProfiles}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef ListAppProfilesCallback * @type {function} @@ -594,7 +594,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#updateAppProfile}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|updateAppProfile}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef UpdateAppProfileCallback * @type {function} @@ -627,7 +627,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#deleteAppProfile}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|deleteAppProfile}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef DeleteAppProfileCallback * @type {function} @@ -660,7 +660,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#getIamPolicy}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getIamPolicy}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef GetIamPolicyCallback * @type {function} @@ -693,7 +693,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#setIamPolicy}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|setIamPolicy}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef SetIamPolicyCallback * @type {function} @@ -726,7 +726,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#testIamPermissions}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|testIamPermissions}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef TestIamPermissionsCallback * @type {function} @@ -759,7 +759,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#listHotTablets}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listHotTablets}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef ListHotTabletsCallback * @type {function} @@ -9959,7 +9959,7 @@ }; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#createTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|createTable}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef CreateTableCallback * @type {function} @@ -9992,7 +9992,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#createTableFromSnapshot}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|createTableFromSnapshot}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef CreateTableFromSnapshotCallback * @type {function} @@ -10025,7 +10025,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#listTables}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|listTables}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef ListTablesCallback * @type {function} @@ -10058,7 +10058,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#getTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|getTable}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef GetTableCallback * @type {function} @@ -10091,7 +10091,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#deleteTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|deleteTable}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef DeleteTableCallback * @type {function} @@ -10124,7 +10124,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#modifyColumnFamilies}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|modifyColumnFamilies}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef ModifyColumnFamiliesCallback * @type {function} @@ -10157,7 +10157,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#dropRowRange}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|dropRowRange}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef DropRowRangeCallback * @type {function} @@ -10190,7 +10190,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#generateConsistencyToken}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|generateConsistencyToken}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef GenerateConsistencyTokenCallback * @type {function} @@ -10223,7 +10223,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#checkConsistency}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|checkConsistency}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef CheckConsistencyCallback * @type {function} @@ -10256,7 +10256,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#snapshotTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|snapshotTable}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef SnapshotTableCallback * @type {function} @@ -10289,7 +10289,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#getSnapshot}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|getSnapshot}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef GetSnapshotCallback * @type {function} @@ -10322,7 +10322,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#listSnapshots}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|listSnapshots}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef ListSnapshotsCallback * @type {function} @@ -10355,7 +10355,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#deleteSnapshot}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|deleteSnapshot}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef DeleteSnapshotCallback * @type {function} @@ -10388,7 +10388,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#createBackup}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|createBackup}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef CreateBackupCallback * @type {function} @@ -10421,7 +10421,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#getBackup}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|getBackup}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef GetBackupCallback * @type {function} @@ -10454,7 +10454,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#updateBackup}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|updateBackup}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef UpdateBackupCallback * @type {function} @@ -10487,7 +10487,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#deleteBackup}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|deleteBackup}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef DeleteBackupCallback * @type {function} @@ -10520,7 +10520,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#listBackups}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|listBackups}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef ListBackupsCallback * @type {function} @@ -10553,7 +10553,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#restoreTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|restoreTable}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef RestoreTableCallback * @type {function} @@ -10586,7 +10586,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#getIamPolicy}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|getIamPolicy}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef GetIamPolicyCallback * @type {function} @@ -10619,7 +10619,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#setIamPolicy}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|setIamPolicy}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef SetIamPolicyCallback * @type {function} @@ -10652,7 +10652,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#testIamPermissions}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|testIamPermissions}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef TestIamPermissionsCallback * @type {function} @@ -21153,7 +21153,7 @@ }; /** - * Callback as used by {@link google.bigtable.v2.Bigtable#readRows}. + * Callback as used by {@link google.bigtable.v2.Bigtable|readRows}. * @memberof google.bigtable.v2.Bigtable * @typedef ReadRowsCallback * @type {function} @@ -21186,7 +21186,7 @@ */ /** - * Callback as used by {@link google.bigtable.v2.Bigtable#sampleRowKeys}. + * Callback as used by {@link google.bigtable.v2.Bigtable|sampleRowKeys}. * @memberof google.bigtable.v2.Bigtable * @typedef SampleRowKeysCallback * @type {function} @@ -21219,7 +21219,7 @@ */ /** - * Callback as used by {@link google.bigtable.v2.Bigtable#mutateRow}. + * Callback as used by {@link google.bigtable.v2.Bigtable|mutateRow}. * @memberof google.bigtable.v2.Bigtable * @typedef MutateRowCallback * @type {function} @@ -21252,7 +21252,7 @@ */ /** - * Callback as used by {@link google.bigtable.v2.Bigtable#mutateRows}. + * Callback as used by {@link google.bigtable.v2.Bigtable|mutateRows}. * @memberof google.bigtable.v2.Bigtable * @typedef MutateRowsCallback * @type {function} @@ -21285,7 +21285,7 @@ */ /** - * Callback as used by {@link google.bigtable.v2.Bigtable#checkAndMutateRow}. + * Callback as used by {@link google.bigtable.v2.Bigtable|checkAndMutateRow}. * @memberof google.bigtable.v2.Bigtable * @typedef CheckAndMutateRowCallback * @type {function} @@ -21318,7 +21318,7 @@ */ /** - * Callback as used by {@link google.bigtable.v2.Bigtable#pingAndWarm}. + * Callback as used by {@link google.bigtable.v2.Bigtable|pingAndWarm}. * @memberof google.bigtable.v2.Bigtable * @typedef PingAndWarmCallback * @type {function} @@ -21351,7 +21351,7 @@ */ /** - * Callback as used by {@link google.bigtable.v2.Bigtable#readModifyWriteRow}. + * Callback as used by {@link google.bigtable.v2.Bigtable|readModifyWriteRow}. * @memberof google.bigtable.v2.Bigtable * @typedef ReadModifyWriteRowCallback * @type {function} @@ -38144,6 +38144,7 @@ * @property {boolean|null} [packed] FieldOptions packed * @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype * @property {boolean|null} [lazy] FieldOptions lazy + * @property {boolean|null} [unverifiedLazy] FieldOptions unverifiedLazy * @property {boolean|null} [deprecated] FieldOptions deprecated * @property {boolean|null} [weak] FieldOptions weak * @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption @@ -38200,6 +38201,14 @@ */ FieldOptions.prototype.lazy = false; + /** + * FieldOptions unverifiedLazy. + * @member {boolean} unverifiedLazy + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.unverifiedLazy = false; + /** * FieldOptions deprecated. * @member {boolean} deprecated @@ -38276,6 +38285,8 @@ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); if (message.weak != null && Object.hasOwnProperty.call(message, "weak")) writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); + if (message.unverifiedLazy != null && Object.hasOwnProperty.call(message, "unverifiedLazy")) + writer.uint32(/* id 15, wireType 0 =*/120).bool(message.unverifiedLazy); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); @@ -38333,6 +38344,9 @@ case 5: message.lazy = reader.bool(); break; + case 15: + message.unverifiedLazy = reader.bool(); + break; case 3: message.deprecated = reader.bool(); break; @@ -38416,6 +38430,9 @@ if (message.lazy != null && message.hasOwnProperty("lazy")) if (typeof message.lazy !== "boolean") return "lazy: boolean expected"; + if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) + if (typeof message.unverifiedLazy !== "boolean") + return "unverifiedLazy: boolean expected"; if (message.deprecated != null && message.hasOwnProperty("deprecated")) if (typeof message.deprecated !== "boolean") return "deprecated: boolean expected"; @@ -38501,6 +38518,8 @@ } if (object.lazy != null) message.lazy = Boolean(object.lazy); + if (object.unverifiedLazy != null) + message.unverifiedLazy = Boolean(object.unverifiedLazy); if (object.deprecated != null) message.deprecated = Boolean(object.deprecated); if (object.weak != null) @@ -38588,6 +38607,7 @@ object.lazy = false; object.jstype = options.enums === String ? "JS_NORMAL" : 0; object.weak = false; + object.unverifiedLazy = false; object[".google.api.resourceReference"] = null; } if (message.ctype != null && message.hasOwnProperty("ctype")) @@ -38602,6 +38622,8 @@ object.jstype = options.enums === String ? $root.google.protobuf.FieldOptions.JSType[message.jstype] : message.jstype; if (message.weak != null && message.hasOwnProperty("weak")) object.weak = message.weak; + if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) + object.unverifiedLazy = message.unverifiedLazy; if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (var j = 0; j < message.uninterpretedOption.length; ++j) @@ -41890,6 +41912,209 @@ return Timestamp; })(); + protobuf.FieldMask = (function() { + + /** + * Properties of a FieldMask. + * @memberof google.protobuf + * @interface IFieldMask + * @property {Array.|null} [paths] FieldMask paths + */ + + /** + * Constructs a new FieldMask. + * @memberof google.protobuf + * @classdesc Represents a FieldMask. + * @implements IFieldMask + * @constructor + * @param {google.protobuf.IFieldMask=} [properties] Properties to set + */ + function FieldMask(properties) { + this.paths = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FieldMask paths. + * @member {Array.} paths + * @memberof google.protobuf.FieldMask + * @instance + */ + FieldMask.prototype.paths = $util.emptyArray; + + /** + * Creates a new FieldMask instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldMask + * @static + * @param {google.protobuf.IFieldMask=} [properties] Properties to set + * @returns {google.protobuf.FieldMask} FieldMask instance + */ + FieldMask.create = function create(properties) { + return new FieldMask(properties); + }; + + /** + * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FieldMask + * @static + * @param {google.protobuf.IFieldMask} message FieldMask message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldMask.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.paths != null && message.paths.length) + for (var i = 0; i < message.paths.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.paths[i]); + return writer; + }; + + /** + * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FieldMask + * @static + * @param {google.protobuf.IFieldMask} message FieldMask message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldMask.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FieldMask message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldMask + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldMask} FieldMask + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldMask.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldMask(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.paths && message.paths.length)) + message.paths = []; + message.paths.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FieldMask message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FieldMask + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FieldMask} FieldMask + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldMask.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FieldMask message. + * @function verify + * @memberof google.protobuf.FieldMask + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FieldMask.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.paths != null && message.hasOwnProperty("paths")) { + if (!Array.isArray(message.paths)) + return "paths: array expected"; + for (var i = 0; i < message.paths.length; ++i) + if (!$util.isString(message.paths[i])) + return "paths: string[] expected"; + } + return null; + }; + + /** + * Creates a FieldMask message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FieldMask + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FieldMask} FieldMask + */ + FieldMask.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldMask) + return object; + var message = new $root.google.protobuf.FieldMask(); + if (object.paths) { + if (!Array.isArray(object.paths)) + throw TypeError(".google.protobuf.FieldMask.paths: array expected"); + message.paths = []; + for (var i = 0; i < object.paths.length; ++i) + message.paths[i] = String(object.paths[i]); + } + return message; + }; + + /** + * Creates a plain object from a FieldMask message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FieldMask + * @static + * @param {google.protobuf.FieldMask} message FieldMask + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FieldMask.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.paths = []; + if (message.paths && message.paths.length) { + object.paths = []; + for (var j = 0; j < message.paths.length; ++j) + object.paths[j] = message.paths[j]; + } + return object; + }; + + /** + * Converts this FieldMask to JSON. + * @function toJSON + * @memberof google.protobuf.FieldMask + * @instance + * @returns {Object.} JSON object + */ + FieldMask.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return FieldMask; + })(); + protobuf.Any = (function() { /** @@ -42493,209 +42718,6 @@ return Empty; })(); - protobuf.FieldMask = (function() { - - /** - * Properties of a FieldMask. - * @memberof google.protobuf - * @interface IFieldMask - * @property {Array.|null} [paths] FieldMask paths - */ - - /** - * Constructs a new FieldMask. - * @memberof google.protobuf - * @classdesc Represents a FieldMask. - * @implements IFieldMask - * @constructor - * @param {google.protobuf.IFieldMask=} [properties] Properties to set - */ - function FieldMask(properties) { - this.paths = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FieldMask paths. - * @member {Array.} paths - * @memberof google.protobuf.FieldMask - * @instance - */ - FieldMask.prototype.paths = $util.emptyArray; - - /** - * Creates a new FieldMask instance using the specified properties. - * @function create - * @memberof google.protobuf.FieldMask - * @static - * @param {google.protobuf.IFieldMask=} [properties] Properties to set - * @returns {google.protobuf.FieldMask} FieldMask instance - */ - FieldMask.create = function create(properties) { - return new FieldMask(properties); - }; - - /** - * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FieldMask - * @static - * @param {google.protobuf.IFieldMask} message FieldMask message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FieldMask.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.paths != null && message.paths.length) - for (var i = 0; i < message.paths.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.paths[i]); - return writer; - }; - - /** - * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.FieldMask - * @static - * @param {google.protobuf.IFieldMask} message FieldMask message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FieldMask.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FieldMask message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FieldMask - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FieldMask} FieldMask - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FieldMask.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldMask(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.paths && message.paths.length)) - message.paths = []; - message.paths.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FieldMask message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FieldMask - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FieldMask} FieldMask - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FieldMask.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FieldMask message. - * @function verify - * @memberof google.protobuf.FieldMask - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FieldMask.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.paths != null && message.hasOwnProperty("paths")) { - if (!Array.isArray(message.paths)) - return "paths: array expected"; - for (var i = 0; i < message.paths.length; ++i) - if (!$util.isString(message.paths[i])) - return "paths: string[] expected"; - } - return null; - }; - - /** - * Creates a FieldMask message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.FieldMask - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.FieldMask} FieldMask - */ - FieldMask.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FieldMask) - return object; - var message = new $root.google.protobuf.FieldMask(); - if (object.paths) { - if (!Array.isArray(object.paths)) - throw TypeError(".google.protobuf.FieldMask.paths: array expected"); - message.paths = []; - for (var i = 0; i < object.paths.length; ++i) - message.paths[i] = String(object.paths[i]); - } - return message; - }; - - /** - * Creates a plain object from a FieldMask message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.FieldMask - * @static - * @param {google.protobuf.FieldMask} message FieldMask - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FieldMask.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.paths = []; - if (message.paths && message.paths.length) { - object.paths = []; - for (var j = 0; j < message.paths.length; ++j) - object.paths[j] = message.paths[j]; - } - return object; - }; - - /** - * Converts this FieldMask to JSON. - * @function toJSON - * @memberof google.protobuf.FieldMask - * @instance - * @returns {Object.} JSON object - */ - FieldMask.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return FieldMask; - })(); - protobuf.DoubleValue = (function() { /** @@ -44470,7 +44492,7 @@ }; /** - * Callback as used by {@link google.iam.v1.IAMPolicy#setIamPolicy}. + * Callback as used by {@link google.iam.v1.IAMPolicy|setIamPolicy}. * @memberof google.iam.v1.IAMPolicy * @typedef SetIamPolicyCallback * @type {function} @@ -44503,7 +44525,7 @@ */ /** - * Callback as used by {@link google.iam.v1.IAMPolicy#getIamPolicy}. + * Callback as used by {@link google.iam.v1.IAMPolicy|getIamPolicy}. * @memberof google.iam.v1.IAMPolicy * @typedef GetIamPolicyCallback * @type {function} @@ -44536,7 +44558,7 @@ */ /** - * Callback as used by {@link google.iam.v1.IAMPolicy#testIamPermissions}. + * Callback as used by {@link google.iam.v1.IAMPolicy|testIamPermissions}. * @memberof google.iam.v1.IAMPolicy * @typedef TestIamPermissionsCallback * @type {function} @@ -44579,6 +44601,7 @@ * @interface ISetIamPolicyRequest * @property {string|null} [resource] SetIamPolicyRequest resource * @property {google.iam.v1.IPolicy|null} [policy] SetIamPolicyRequest policy + * @property {google.protobuf.IFieldMask|null} [updateMask] SetIamPolicyRequest updateMask */ /** @@ -44612,6 +44635,14 @@ */ SetIamPolicyRequest.prototype.policy = null; + /** + * SetIamPolicyRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.iam.v1.SetIamPolicyRequest + * @instance + */ + SetIamPolicyRequest.prototype.updateMask = null; + /** * Creates a new SetIamPolicyRequest instance using the specified properties. * @function create @@ -44640,6 +44671,8 @@ writer.uint32(/* id 1, wireType 2 =*/10).string(message.resource); if (message.policy != null && Object.hasOwnProperty.call(message, "policy")) $root.google.iam.v1.Policy.encode(message.policy, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -44680,6 +44713,9 @@ case 2: message.policy = $root.google.iam.v1.Policy.decode(reader, reader.uint32()); break; + case 3: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -44723,6 +44759,11 @@ if (error) return "policy." + error; } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } return null; }; @@ -44745,6 +44786,11 @@ throw TypeError(".google.iam.v1.SetIamPolicyRequest.policy: object expected"); message.policy = $root.google.iam.v1.Policy.fromObject(object.policy); } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.iam.v1.SetIamPolicyRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; @@ -44764,11 +44810,14 @@ if (options.defaults) { object.resource = ""; object.policy = null; + object.updateMask = null; } if (message.resource != null && message.hasOwnProperty("resource")) object.resource = message.resource; if (message.policy != null && message.hasOwnProperty("policy")) object.policy = $root.google.iam.v1.Policy.toObject(message.policy, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; @@ -45625,6 +45674,7 @@ * @interface IPolicy * @property {number|null} [version] Policy version * @property {Array.|null} [bindings] Policy bindings + * @property {Array.|null} [auditConfigs] Policy auditConfigs * @property {Uint8Array|null} [etag] Policy etag */ @@ -45638,6 +45688,7 @@ */ function Policy(properties) { this.bindings = []; + this.auditConfigs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -45660,6 +45711,14 @@ */ Policy.prototype.bindings = $util.emptyArray; + /** + * Policy auditConfigs. + * @member {Array.} auditConfigs + * @memberof google.iam.v1.Policy + * @instance + */ + Policy.prototype.auditConfigs = $util.emptyArray; + /** * Policy etag. * @member {Uint8Array} etag @@ -45699,6 +45758,9 @@ if (message.bindings != null && message.bindings.length) for (var i = 0; i < message.bindings.length; ++i) $root.google.iam.v1.Binding.encode(message.bindings[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.auditConfigs != null && message.auditConfigs.length) + for (var i = 0; i < message.auditConfigs.length; ++i) + $root.google.iam.v1.AuditConfig.encode(message.auditConfigs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; @@ -45741,6 +45803,11 @@ message.bindings = []; message.bindings.push($root.google.iam.v1.Binding.decode(reader, reader.uint32())); break; + case 6: + if (!(message.auditConfigs && message.auditConfigs.length)) + message.auditConfigs = []; + message.auditConfigs.push($root.google.iam.v1.AuditConfig.decode(reader, reader.uint32())); + break; case 3: message.etag = reader.bytes(); break; @@ -45791,6 +45858,15 @@ return "bindings." + error; } } + if (message.auditConfigs != null && message.hasOwnProperty("auditConfigs")) { + if (!Array.isArray(message.auditConfigs)) + return "auditConfigs: array expected"; + for (var i = 0; i < message.auditConfigs.length; ++i) { + var error = $root.google.iam.v1.AuditConfig.verify(message.auditConfigs[i]); + if (error) + return "auditConfigs." + error; + } + } if (message.etag != null && message.hasOwnProperty("etag")) if (!(message.etag && typeof message.etag.length === "number" || $util.isString(message.etag))) return "etag: buffer expected"; @@ -45821,6 +45897,16 @@ message.bindings[i] = $root.google.iam.v1.Binding.fromObject(object.bindings[i]); } } + if (object.auditConfigs) { + if (!Array.isArray(object.auditConfigs)) + throw TypeError(".google.iam.v1.Policy.auditConfigs: array expected"); + message.auditConfigs = []; + for (var i = 0; i < object.auditConfigs.length; ++i) { + if (typeof object.auditConfigs[i] !== "object") + throw TypeError(".google.iam.v1.Policy.auditConfigs: object expected"); + message.auditConfigs[i] = $root.google.iam.v1.AuditConfig.fromObject(object.auditConfigs[i]); + } + } if (object.etag != null) if (typeof object.etag === "string") $util.base64.decode(object.etag, message.etag = $util.newBuffer($util.base64.length(object.etag)), 0); @@ -45842,8 +45928,10 @@ if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) + if (options.arrays || options.defaults) { object.bindings = []; + object.auditConfigs = []; + } if (options.defaults) { object.version = 0; if (options.bytes === String) @@ -45863,6 +45951,11 @@ for (var j = 0; j < message.bindings.length; ++j) object.bindings[j] = $root.google.iam.v1.Binding.toObject(message.bindings[j], options); } + if (message.auditConfigs && message.auditConfigs.length) { + object.auditConfigs = []; + for (var j = 0; j < message.auditConfigs.length; ++j) + object.auditConfigs[j] = $root.google.iam.v1.AuditConfig.toObject(message.auditConfigs[j], options); + } return object; }; @@ -46134,6 +46227,504 @@ return Binding; })(); + v1.AuditConfig = (function() { + + /** + * Properties of an AuditConfig. + * @memberof google.iam.v1 + * @interface IAuditConfig + * @property {string|null} [service] AuditConfig service + * @property {Array.|null} [auditLogConfigs] AuditConfig auditLogConfigs + */ + + /** + * Constructs a new AuditConfig. + * @memberof google.iam.v1 + * @classdesc Represents an AuditConfig. + * @implements IAuditConfig + * @constructor + * @param {google.iam.v1.IAuditConfig=} [properties] Properties to set + */ + function AuditConfig(properties) { + this.auditLogConfigs = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AuditConfig service. + * @member {string} service + * @memberof google.iam.v1.AuditConfig + * @instance + */ + AuditConfig.prototype.service = ""; + + /** + * AuditConfig auditLogConfigs. + * @member {Array.} auditLogConfigs + * @memberof google.iam.v1.AuditConfig + * @instance + */ + AuditConfig.prototype.auditLogConfigs = $util.emptyArray; + + /** + * Creates a new AuditConfig instance using the specified properties. + * @function create + * @memberof google.iam.v1.AuditConfig + * @static + * @param {google.iam.v1.IAuditConfig=} [properties] Properties to set + * @returns {google.iam.v1.AuditConfig} AuditConfig instance + */ + AuditConfig.create = function create(properties) { + return new AuditConfig(properties); + }; + + /** + * Encodes the specified AuditConfig message. Does not implicitly {@link google.iam.v1.AuditConfig.verify|verify} messages. + * @function encode + * @memberof google.iam.v1.AuditConfig + * @static + * @param {google.iam.v1.IAuditConfig} message AuditConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AuditConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.service != null && Object.hasOwnProperty.call(message, "service")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.service); + if (message.auditLogConfigs != null && message.auditLogConfigs.length) + for (var i = 0; i < message.auditLogConfigs.length; ++i) + $root.google.iam.v1.AuditLogConfig.encode(message.auditLogConfigs[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified AuditConfig message, length delimited. Does not implicitly {@link google.iam.v1.AuditConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.iam.v1.AuditConfig + * @static + * @param {google.iam.v1.IAuditConfig} message AuditConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AuditConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AuditConfig message from the specified reader or buffer. + * @function decode + * @memberof google.iam.v1.AuditConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.iam.v1.AuditConfig} AuditConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AuditConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.iam.v1.AuditConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.service = reader.string(); + break; + case 3: + if (!(message.auditLogConfigs && message.auditLogConfigs.length)) + message.auditLogConfigs = []; + message.auditLogConfigs.push($root.google.iam.v1.AuditLogConfig.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AuditConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.iam.v1.AuditConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.iam.v1.AuditConfig} AuditConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AuditConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AuditConfig message. + * @function verify + * @memberof google.iam.v1.AuditConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AuditConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.service != null && message.hasOwnProperty("service")) + if (!$util.isString(message.service)) + return "service: string expected"; + if (message.auditLogConfigs != null && message.hasOwnProperty("auditLogConfigs")) { + if (!Array.isArray(message.auditLogConfigs)) + return "auditLogConfigs: array expected"; + for (var i = 0; i < message.auditLogConfigs.length; ++i) { + var error = $root.google.iam.v1.AuditLogConfig.verify(message.auditLogConfigs[i]); + if (error) + return "auditLogConfigs." + error; + } + } + return null; + }; + + /** + * Creates an AuditConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.iam.v1.AuditConfig + * @static + * @param {Object.} object Plain object + * @returns {google.iam.v1.AuditConfig} AuditConfig + */ + AuditConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.iam.v1.AuditConfig) + return object; + var message = new $root.google.iam.v1.AuditConfig(); + if (object.service != null) + message.service = String(object.service); + if (object.auditLogConfigs) { + if (!Array.isArray(object.auditLogConfigs)) + throw TypeError(".google.iam.v1.AuditConfig.auditLogConfigs: array expected"); + message.auditLogConfigs = []; + for (var i = 0; i < object.auditLogConfigs.length; ++i) { + if (typeof object.auditLogConfigs[i] !== "object") + throw TypeError(".google.iam.v1.AuditConfig.auditLogConfigs: object expected"); + message.auditLogConfigs[i] = $root.google.iam.v1.AuditLogConfig.fromObject(object.auditLogConfigs[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an AuditConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.iam.v1.AuditConfig + * @static + * @param {google.iam.v1.AuditConfig} message AuditConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AuditConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.auditLogConfigs = []; + if (options.defaults) + object.service = ""; + if (message.service != null && message.hasOwnProperty("service")) + object.service = message.service; + if (message.auditLogConfigs && message.auditLogConfigs.length) { + object.auditLogConfigs = []; + for (var j = 0; j < message.auditLogConfigs.length; ++j) + object.auditLogConfigs[j] = $root.google.iam.v1.AuditLogConfig.toObject(message.auditLogConfigs[j], options); + } + return object; + }; + + /** + * Converts this AuditConfig to JSON. + * @function toJSON + * @memberof google.iam.v1.AuditConfig + * @instance + * @returns {Object.} JSON object + */ + AuditConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AuditConfig; + })(); + + v1.AuditLogConfig = (function() { + + /** + * Properties of an AuditLogConfig. + * @memberof google.iam.v1 + * @interface IAuditLogConfig + * @property {google.iam.v1.AuditLogConfig.LogType|null} [logType] AuditLogConfig logType + * @property {Array.|null} [exemptedMembers] AuditLogConfig exemptedMembers + */ + + /** + * Constructs a new AuditLogConfig. + * @memberof google.iam.v1 + * @classdesc Represents an AuditLogConfig. + * @implements IAuditLogConfig + * @constructor + * @param {google.iam.v1.IAuditLogConfig=} [properties] Properties to set + */ + function AuditLogConfig(properties) { + this.exemptedMembers = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AuditLogConfig logType. + * @member {google.iam.v1.AuditLogConfig.LogType} logType + * @memberof google.iam.v1.AuditLogConfig + * @instance + */ + AuditLogConfig.prototype.logType = 0; + + /** + * AuditLogConfig exemptedMembers. + * @member {Array.} exemptedMembers + * @memberof google.iam.v1.AuditLogConfig + * @instance + */ + AuditLogConfig.prototype.exemptedMembers = $util.emptyArray; + + /** + * Creates a new AuditLogConfig instance using the specified properties. + * @function create + * @memberof google.iam.v1.AuditLogConfig + * @static + * @param {google.iam.v1.IAuditLogConfig=} [properties] Properties to set + * @returns {google.iam.v1.AuditLogConfig} AuditLogConfig instance + */ + AuditLogConfig.create = function create(properties) { + return new AuditLogConfig(properties); + }; + + /** + * Encodes the specified AuditLogConfig message. Does not implicitly {@link google.iam.v1.AuditLogConfig.verify|verify} messages. + * @function encode + * @memberof google.iam.v1.AuditLogConfig + * @static + * @param {google.iam.v1.IAuditLogConfig} message AuditLogConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AuditLogConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.logType != null && Object.hasOwnProperty.call(message, "logType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.logType); + if (message.exemptedMembers != null && message.exemptedMembers.length) + for (var i = 0; i < message.exemptedMembers.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.exemptedMembers[i]); + return writer; + }; + + /** + * Encodes the specified AuditLogConfig message, length delimited. Does not implicitly {@link google.iam.v1.AuditLogConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.iam.v1.AuditLogConfig + * @static + * @param {google.iam.v1.IAuditLogConfig} message AuditLogConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AuditLogConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AuditLogConfig message from the specified reader or buffer. + * @function decode + * @memberof google.iam.v1.AuditLogConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.iam.v1.AuditLogConfig} AuditLogConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AuditLogConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.iam.v1.AuditLogConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.logType = reader.int32(); + break; + case 2: + if (!(message.exemptedMembers && message.exemptedMembers.length)) + message.exemptedMembers = []; + message.exemptedMembers.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AuditLogConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.iam.v1.AuditLogConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.iam.v1.AuditLogConfig} AuditLogConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AuditLogConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AuditLogConfig message. + * @function verify + * @memberof google.iam.v1.AuditLogConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AuditLogConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.logType != null && message.hasOwnProperty("logType")) + switch (message.logType) { + default: + return "logType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.exemptedMembers != null && message.hasOwnProperty("exemptedMembers")) { + if (!Array.isArray(message.exemptedMembers)) + return "exemptedMembers: array expected"; + for (var i = 0; i < message.exemptedMembers.length; ++i) + if (!$util.isString(message.exemptedMembers[i])) + return "exemptedMembers: string[] expected"; + } + return null; + }; + + /** + * Creates an AuditLogConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.iam.v1.AuditLogConfig + * @static + * @param {Object.} object Plain object + * @returns {google.iam.v1.AuditLogConfig} AuditLogConfig + */ + AuditLogConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.iam.v1.AuditLogConfig) + return object; + var message = new $root.google.iam.v1.AuditLogConfig(); + switch (object.logType) { + case "LOG_TYPE_UNSPECIFIED": + case 0: + message.logType = 0; + break; + case "ADMIN_READ": + case 1: + message.logType = 1; + break; + case "DATA_WRITE": + case 2: + message.logType = 2; + break; + case "DATA_READ": + case 3: + message.logType = 3; + break; + } + if (object.exemptedMembers) { + if (!Array.isArray(object.exemptedMembers)) + throw TypeError(".google.iam.v1.AuditLogConfig.exemptedMembers: array expected"); + message.exemptedMembers = []; + for (var i = 0; i < object.exemptedMembers.length; ++i) + message.exemptedMembers[i] = String(object.exemptedMembers[i]); + } + return message; + }; + + /** + * Creates a plain object from an AuditLogConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.iam.v1.AuditLogConfig + * @static + * @param {google.iam.v1.AuditLogConfig} message AuditLogConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AuditLogConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.exemptedMembers = []; + if (options.defaults) + object.logType = options.enums === String ? "LOG_TYPE_UNSPECIFIED" : 0; + if (message.logType != null && message.hasOwnProperty("logType")) + object.logType = options.enums === String ? $root.google.iam.v1.AuditLogConfig.LogType[message.logType] : message.logType; + if (message.exemptedMembers && message.exemptedMembers.length) { + object.exemptedMembers = []; + for (var j = 0; j < message.exemptedMembers.length; ++j) + object.exemptedMembers[j] = message.exemptedMembers[j]; + } + return object; + }; + + /** + * Converts this AuditLogConfig to JSON. + * @function toJSON + * @memberof google.iam.v1.AuditLogConfig + * @instance + * @returns {Object.} JSON object + */ + AuditLogConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * LogType enum. + * @name google.iam.v1.AuditLogConfig.LogType + * @enum {number} + * @property {number} LOG_TYPE_UNSPECIFIED=0 LOG_TYPE_UNSPECIFIED value + * @property {number} ADMIN_READ=1 ADMIN_READ value + * @property {number} DATA_WRITE=2 DATA_WRITE value + * @property {number} DATA_READ=3 DATA_READ value + */ + AuditLogConfig.LogType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "LOG_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ADMIN_READ"] = 1; + values[valuesById[2] = "DATA_WRITE"] = 2; + values[valuesById[3] = "DATA_READ"] = 3; + return values; + })(); + + return AuditLogConfig; + })(); + v1.PolicyDelta = (function() { /** @@ -47281,7 +47872,7 @@ }; /** - * Callback as used by {@link google.longrunning.Operations#listOperations}. + * Callback as used by {@link google.longrunning.Operations|listOperations}. * @memberof google.longrunning.Operations * @typedef ListOperationsCallback * @type {function} @@ -47314,7 +47905,7 @@ */ /** - * Callback as used by {@link google.longrunning.Operations#getOperation}. + * Callback as used by {@link google.longrunning.Operations|getOperation}. * @memberof google.longrunning.Operations * @typedef GetOperationCallback * @type {function} @@ -47347,7 +47938,7 @@ */ /** - * Callback as used by {@link google.longrunning.Operations#deleteOperation}. + * Callback as used by {@link google.longrunning.Operations|deleteOperation}. * @memberof google.longrunning.Operations * @typedef DeleteOperationCallback * @type {function} @@ -47380,7 +47971,7 @@ */ /** - * Callback as used by {@link google.longrunning.Operations#cancelOperation}. + * Callback as used by {@link google.longrunning.Operations|cancelOperation}. * @memberof google.longrunning.Operations * @typedef CancelOperationCallback * @type {function} @@ -47413,7 +48004,7 @@ */ /** - * Callback as used by {@link google.longrunning.Operations#waitOperation}. + * Callback as used by {@link google.longrunning.Operations|waitOperation}. * @memberof google.longrunning.Operations * @typedef WaitOperationCallback * @type {function} diff --git a/protos/protos.json b/protos/protos.json index 64b6e60f2..a1196f467 100644 --- a/protos/protos.json +++ b/protos/protos.json @@ -4545,6 +4545,13 @@ "default": false } }, + "unverifiedLazy": { + "type": "bool", + "id": 15, + "options": { + "default": false + } + }, "deprecated": { "type": "bool", "id": 3, @@ -4854,6 +4861,15 @@ } } }, + "FieldMask": { + "fields": { + "paths": { + "rule": "repeated", + "type": "string", + "id": 1 + } + } + }, "Any": { "fields": { "type_url": { @@ -4881,15 +4897,6 @@ "Empty": { "fields": {} }, - "FieldMask": { - "fields": { - "paths": { - "rule": "repeated", - "type": "string", - "id": 1 - } - } - }, "DoubleValue": { "fields": { "value": { @@ -5048,6 +5055,10 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 3 } } }, @@ -5115,6 +5126,11 @@ "type": "Binding", "id": 4 }, + "auditConfigs": { + "rule": "repeated", + "type": "AuditConfig", + "id": 6 + }, "etag": { "type": "bytes", "id": 3 @@ -5138,6 +5154,42 @@ } } }, + "AuditConfig": { + "fields": { + "service": { + "type": "string", + "id": 1 + }, + "auditLogConfigs": { + "rule": "repeated", + "type": "AuditLogConfig", + "id": 3 + } + } + }, + "AuditLogConfig": { + "fields": { + "logType": { + "type": "LogType", + "id": 1 + }, + "exemptedMembers": { + "rule": "repeated", + "type": "string", + "id": 2 + } + }, + "nested": { + "LogType": { + "values": { + "LOG_TYPE_UNSPECIFIED": 0, + "ADMIN_READ": 1, + "DATA_WRITE": 2, + "DATA_READ": 3 + } + } + } + }, "PolicyDelta": { "fields": { "bindingDeltas": { From 9c4befe937f7f2bcb8be88d7f89caa356fefbbc7 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 17 May 2022 01:14:49 +0000 Subject: [PATCH 6/9] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- protos/protos.d.ts | 517 ++++++-------------- protos/protos.js | 1115 +++++++++++--------------------------------- protos/protos.json | 70 +-- 3 files changed, 419 insertions(+), 1283 deletions(-) diff --git a/protos/protos.d.ts b/protos/protos.d.ts index 54db50768..cc06d0e3a 100644 --- a/protos/protos.d.ts +++ b/protos/protos.d.ts @@ -344,147 +344,147 @@ export namespace google { namespace BigtableInstanceAdmin { /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|createInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#createInstance}. * @param error Error, if any * @param [response] Operation */ type CreateInstanceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#getInstance}. * @param error Error, if any * @param [response] Instance */ type GetInstanceCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Instance) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listInstances}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#listInstances}. * @param error Error, if any * @param [response] ListInstancesResponse */ type ListInstancesCallback = (error: (Error|null), response?: google.bigtable.admin.v2.ListInstancesResponse) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|updateInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#updateInstance}. * @param error Error, if any * @param [response] Instance */ type UpdateInstanceCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Instance) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|partialUpdateInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#partialUpdateInstance}. * @param error Error, if any * @param [response] Operation */ type PartialUpdateInstanceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|deleteInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#deleteInstance}. * @param error Error, if any * @param [response] Empty */ type DeleteInstanceCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|createCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#createCluster}. * @param error Error, if any * @param [response] Operation */ type CreateClusterCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#getCluster}. * @param error Error, if any * @param [response] Cluster */ type GetClusterCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Cluster) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listClusters}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#listClusters}. * @param error Error, if any * @param [response] ListClustersResponse */ type ListClustersCallback = (error: (Error|null), response?: google.bigtable.admin.v2.ListClustersResponse) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|updateCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#updateCluster}. * @param error Error, if any * @param [response] Operation */ type UpdateClusterCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|partialUpdateCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#partialUpdateCluster}. * @param error Error, if any * @param [response] Operation */ type PartialUpdateClusterCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|deleteCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#deleteCluster}. * @param error Error, if any * @param [response] Empty */ type DeleteClusterCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|createAppProfile}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#createAppProfile}. * @param error Error, if any * @param [response] AppProfile */ type CreateAppProfileCallback = (error: (Error|null), response?: google.bigtable.admin.v2.AppProfile) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getAppProfile}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#getAppProfile}. * @param error Error, if any * @param [response] AppProfile */ type GetAppProfileCallback = (error: (Error|null), response?: google.bigtable.admin.v2.AppProfile) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listAppProfiles}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#listAppProfiles}. * @param error Error, if any * @param [response] ListAppProfilesResponse */ type ListAppProfilesCallback = (error: (Error|null), response?: google.bigtable.admin.v2.ListAppProfilesResponse) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|updateAppProfile}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#updateAppProfile}. * @param error Error, if any * @param [response] Operation */ type UpdateAppProfileCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|deleteAppProfile}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#deleteAppProfile}. * @param error Error, if any * @param [response] Empty */ type DeleteAppProfileCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getIamPolicy}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#getIamPolicy}. * @param error Error, if any * @param [response] Policy */ type GetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|setIamPolicy}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#setIamPolicy}. * @param error Error, if any * @param [response] Policy */ type SetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|testIamPermissions}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#testIamPermissions}. * @param error Error, if any * @param [response] TestIamPermissionsResponse */ type TestIamPermissionsCallback = (error: (Error|null), response?: google.iam.v1.TestIamPermissionsResponse) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listHotTablets}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#listHotTablets}. * @param error Error, if any * @param [response] ListHotTabletsResponse */ @@ -4666,154 +4666,154 @@ export namespace google { namespace BigtableTableAdmin { /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|createTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#createTable}. * @param error Error, if any * @param [response] Table */ type CreateTableCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Table) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|createTableFromSnapshot}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#createTableFromSnapshot}. * @param error Error, if any * @param [response] Operation */ type CreateTableFromSnapshotCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|listTables}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#listTables}. * @param error Error, if any * @param [response] ListTablesResponse */ type ListTablesCallback = (error: (Error|null), response?: google.bigtable.admin.v2.ListTablesResponse) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|getTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#getTable}. * @param error Error, if any * @param [response] Table */ type GetTableCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Table) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|deleteTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#deleteTable}. * @param error Error, if any * @param [response] Empty */ type DeleteTableCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|modifyColumnFamilies}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#modifyColumnFamilies}. * @param error Error, if any * @param [response] Table */ type ModifyColumnFamiliesCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Table) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|dropRowRange}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#dropRowRange}. * @param error Error, if any * @param [response] Empty */ type DropRowRangeCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|generateConsistencyToken}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#generateConsistencyToken}. * @param error Error, if any * @param [response] GenerateConsistencyTokenResponse */ type GenerateConsistencyTokenCallback = (error: (Error|null), response?: google.bigtable.admin.v2.GenerateConsistencyTokenResponse) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|checkConsistency}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#checkConsistency}. * @param error Error, if any * @param [response] CheckConsistencyResponse */ type CheckConsistencyCallback = (error: (Error|null), response?: google.bigtable.admin.v2.CheckConsistencyResponse) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|snapshotTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#snapshotTable}. * @param error Error, if any * @param [response] Operation */ type SnapshotTableCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|getSnapshot}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#getSnapshot}. * @param error Error, if any * @param [response] Snapshot */ type GetSnapshotCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Snapshot) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|listSnapshots}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#listSnapshots}. * @param error Error, if any * @param [response] ListSnapshotsResponse */ type ListSnapshotsCallback = (error: (Error|null), response?: google.bigtable.admin.v2.ListSnapshotsResponse) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|deleteSnapshot}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#deleteSnapshot}. * @param error Error, if any * @param [response] Empty */ type DeleteSnapshotCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|createBackup}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#createBackup}. * @param error Error, if any * @param [response] Operation */ type CreateBackupCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|getBackup}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#getBackup}. * @param error Error, if any * @param [response] Backup */ type GetBackupCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Backup) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|updateBackup}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#updateBackup}. * @param error Error, if any * @param [response] Backup */ type UpdateBackupCallback = (error: (Error|null), response?: google.bigtable.admin.v2.Backup) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|deleteBackup}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#deleteBackup}. * @param error Error, if any * @param [response] Empty */ type DeleteBackupCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|listBackups}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#listBackups}. * @param error Error, if any * @param [response] ListBackupsResponse */ type ListBackupsCallback = (error: (Error|null), response?: google.bigtable.admin.v2.ListBackupsResponse) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|restoreTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#restoreTable}. * @param error Error, if any * @param [response] Operation */ type RestoreTableCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|getIamPolicy}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#getIamPolicy}. * @param error Error, if any * @param [response] Policy */ type GetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|setIamPolicy}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#setIamPolicy}. * @param error Error, if any * @param [response] Policy */ type SetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|testIamPermissions}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#testIamPermissions}. * @param error Error, if any * @param [response] TestIamPermissionsResponse */ @@ -9260,49 +9260,49 @@ export namespace google { namespace Bigtable { /** - * Callback as used by {@link google.bigtable.v2.Bigtable|readRows}. + * Callback as used by {@link google.bigtable.v2.Bigtable#readRows}. * @param error Error, if any * @param [response] ReadRowsResponse */ type ReadRowsCallback = (error: (Error|null), response?: google.bigtable.v2.ReadRowsResponse) => void; /** - * Callback as used by {@link google.bigtable.v2.Bigtable|sampleRowKeys}. + * Callback as used by {@link google.bigtable.v2.Bigtable#sampleRowKeys}. * @param error Error, if any * @param [response] SampleRowKeysResponse */ type SampleRowKeysCallback = (error: (Error|null), response?: google.bigtable.v2.SampleRowKeysResponse) => void; /** - * Callback as used by {@link google.bigtable.v2.Bigtable|mutateRow}. + * Callback as used by {@link google.bigtable.v2.Bigtable#mutateRow}. * @param error Error, if any * @param [response] MutateRowResponse */ type MutateRowCallback = (error: (Error|null), response?: google.bigtable.v2.MutateRowResponse) => void; /** - * Callback as used by {@link google.bigtable.v2.Bigtable|mutateRows}. + * Callback as used by {@link google.bigtable.v2.Bigtable#mutateRows}. * @param error Error, if any * @param [response] MutateRowsResponse */ type MutateRowsCallback = (error: (Error|null), response?: google.bigtable.v2.MutateRowsResponse) => void; /** - * Callback as used by {@link google.bigtable.v2.Bigtable|checkAndMutateRow}. + * Callback as used by {@link google.bigtable.v2.Bigtable#checkAndMutateRow}. * @param error Error, if any * @param [response] CheckAndMutateRowResponse */ type CheckAndMutateRowCallback = (error: (Error|null), response?: google.bigtable.v2.CheckAndMutateRowResponse) => void; /** - * Callback as used by {@link google.bigtable.v2.Bigtable|pingAndWarm}. + * Callback as used by {@link google.bigtable.v2.Bigtable#pingAndWarm}. * @param error Error, if any * @param [response] PingAndWarmResponse */ type PingAndWarmCallback = (error: (Error|null), response?: google.bigtable.v2.PingAndWarmResponse) => void; /** - * Callback as used by {@link google.bigtable.v2.Bigtable|readModifyWriteRow}. + * Callback as used by {@link google.bigtable.v2.Bigtable#readModifyWriteRow}. * @param error Error, if any * @param [response] ReadModifyWriteRowResponse */ @@ -15685,9 +15685,6 @@ export namespace google { /** FieldOptions lazy */ lazy?: (boolean|null); - /** FieldOptions unverifiedLazy */ - unverifiedLazy?: (boolean|null); - /** FieldOptions deprecated */ deprecated?: (boolean|null); @@ -15725,9 +15722,6 @@ export namespace google { /** FieldOptions lazy. */ public lazy: boolean; - /** FieldOptions unverifiedLazy. */ - public unverifiedLazy: boolean; - /** FieldOptions deprecated. */ public deprecated: boolean; @@ -17068,96 +17062,6 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** Properties of a FieldMask. */ - interface IFieldMask { - - /** FieldMask paths */ - paths?: (string[]|null); - } - - /** Represents a FieldMask. */ - class FieldMask implements IFieldMask { - - /** - * Constructs a new FieldMask. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IFieldMask); - - /** FieldMask paths. */ - public paths: string[]; - - /** - * Creates a new FieldMask instance using the specified properties. - * @param [properties] Properties to set - * @returns FieldMask instance - */ - public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask; - - /** - * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. - * @param message FieldMask message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. - * @param message FieldMask message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FieldMask message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FieldMask - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldMask; - - /** - * Decodes a FieldMask message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FieldMask - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldMask; - - /** - * Verifies a FieldMask message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a FieldMask message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FieldMask - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask; - - /** - * Creates a plain object from a FieldMask message. Also converts values to other types if specified. - * @param message FieldMask - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this FieldMask to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - /** Properties of an Any. */ interface IAny { @@ -17434,6 +17338,96 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a FieldMask. */ + interface IFieldMask { + + /** FieldMask paths */ + paths?: (string[]|null); + } + + /** Represents a FieldMask. */ + class FieldMask implements IFieldMask { + + /** + * Constructs a new FieldMask. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFieldMask); + + /** FieldMask paths. */ + public paths: string[]; + + /** + * Creates a new FieldMask instance using the specified properties. + * @param [properties] Properties to set + * @returns FieldMask instance + */ + public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask; + + /** + * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * @param message FieldMask message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * @param message FieldMask message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FieldMask message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FieldMask + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldMask; + + /** + * Decodes a FieldMask message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FieldMask + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldMask; + + /** + * Verifies a FieldMask message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FieldMask message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FieldMask + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask; + + /** + * Creates a plain object from a FieldMask message. Also converts values to other types if specified. + * @param message FieldMask + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FieldMask to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a DoubleValue. */ interface IDoubleValue { @@ -18317,21 +18311,21 @@ export namespace google { namespace IAMPolicy { /** - * Callback as used by {@link google.iam.v1.IAMPolicy|setIamPolicy}. + * Callback as used by {@link google.iam.v1.IAMPolicy#setIamPolicy}. * @param error Error, if any * @param [response] Policy */ type SetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; /** - * Callback as used by {@link google.iam.v1.IAMPolicy|getIamPolicy}. + * Callback as used by {@link google.iam.v1.IAMPolicy#getIamPolicy}. * @param error Error, if any * @param [response] Policy */ type GetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void; /** - * Callback as used by {@link google.iam.v1.IAMPolicy|testIamPermissions}. + * Callback as used by {@link google.iam.v1.IAMPolicy#testIamPermissions}. * @param error Error, if any * @param [response] TestIamPermissionsResponse */ @@ -18346,9 +18340,6 @@ export namespace google { /** SetIamPolicyRequest policy */ policy?: (google.iam.v1.IPolicy|null); - - /** SetIamPolicyRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); } /** Represents a SetIamPolicyRequest. */ @@ -18366,9 +18357,6 @@ export namespace google { /** SetIamPolicyRequest policy. */ public policy?: (google.iam.v1.IPolicy|null); - /** SetIamPolicyRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); - /** * Creates a new SetIamPolicyRequest instance using the specified properties. * @param [properties] Properties to set @@ -18821,9 +18809,6 @@ export namespace google { /** Policy bindings */ bindings?: (google.iam.v1.IBinding[]|null); - /** Policy auditConfigs */ - auditConfigs?: (google.iam.v1.IAuditConfig[]|null); - /** Policy etag */ etag?: (Uint8Array|string|null); } @@ -18843,9 +18828,6 @@ export namespace google { /** Policy bindings. */ public bindings: google.iam.v1.IBinding[]; - /** Policy auditConfigs. */ - public auditConfigs: google.iam.v1.IAuditConfig[]; - /** Policy etag. */ public etag: (Uint8Array|string); @@ -19022,209 +19004,6 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** Properties of an AuditConfig. */ - interface IAuditConfig { - - /** AuditConfig service */ - service?: (string|null); - - /** AuditConfig auditLogConfigs */ - auditLogConfigs?: (google.iam.v1.IAuditLogConfig[]|null); - } - - /** Represents an AuditConfig. */ - class AuditConfig implements IAuditConfig { - - /** - * Constructs a new AuditConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.iam.v1.IAuditConfig); - - /** AuditConfig service. */ - public service: string; - - /** AuditConfig auditLogConfigs. */ - public auditLogConfigs: google.iam.v1.IAuditLogConfig[]; - - /** - * Creates a new AuditConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns AuditConfig instance - */ - public static create(properties?: google.iam.v1.IAuditConfig): google.iam.v1.AuditConfig; - - /** - * Encodes the specified AuditConfig message. Does not implicitly {@link google.iam.v1.AuditConfig.verify|verify} messages. - * @param message AuditConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.iam.v1.IAuditConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified AuditConfig message, length delimited. Does not implicitly {@link google.iam.v1.AuditConfig.verify|verify} messages. - * @param message AuditConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.iam.v1.IAuditConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AuditConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AuditConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.AuditConfig; - - /** - * Decodes an AuditConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AuditConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.AuditConfig; - - /** - * Verifies an AuditConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an AuditConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AuditConfig - */ - public static fromObject(object: { [k: string]: any }): google.iam.v1.AuditConfig; - - /** - * Creates a plain object from an AuditConfig message. Also converts values to other types if specified. - * @param message AuditConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.iam.v1.AuditConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this AuditConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an AuditLogConfig. */ - interface IAuditLogConfig { - - /** AuditLogConfig logType */ - logType?: (google.iam.v1.AuditLogConfig.LogType|keyof typeof google.iam.v1.AuditLogConfig.LogType|null); - - /** AuditLogConfig exemptedMembers */ - exemptedMembers?: (string[]|null); - } - - /** Represents an AuditLogConfig. */ - class AuditLogConfig implements IAuditLogConfig { - - /** - * Constructs a new AuditLogConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.iam.v1.IAuditLogConfig); - - /** AuditLogConfig logType. */ - public logType: (google.iam.v1.AuditLogConfig.LogType|keyof typeof google.iam.v1.AuditLogConfig.LogType); - - /** AuditLogConfig exemptedMembers. */ - public exemptedMembers: string[]; - - /** - * Creates a new AuditLogConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns AuditLogConfig instance - */ - public static create(properties?: google.iam.v1.IAuditLogConfig): google.iam.v1.AuditLogConfig; - - /** - * Encodes the specified AuditLogConfig message. Does not implicitly {@link google.iam.v1.AuditLogConfig.verify|verify} messages. - * @param message AuditLogConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.iam.v1.IAuditLogConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified AuditLogConfig message, length delimited. Does not implicitly {@link google.iam.v1.AuditLogConfig.verify|verify} messages. - * @param message AuditLogConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.iam.v1.IAuditLogConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AuditLogConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AuditLogConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.AuditLogConfig; - - /** - * Decodes an AuditLogConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AuditLogConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.AuditLogConfig; - - /** - * Verifies an AuditLogConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an AuditLogConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AuditLogConfig - */ - public static fromObject(object: { [k: string]: any }): google.iam.v1.AuditLogConfig; - - /** - * Creates a plain object from an AuditLogConfig message. Also converts values to other types if specified. - * @param message AuditLogConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.iam.v1.AuditLogConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this AuditLogConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace AuditLogConfig { - - /** LogType enum. */ - enum LogType { - LOG_TYPE_UNSPECIFIED = 0, - ADMIN_READ = 1, - DATA_WRITE = 2, - DATA_READ = 3 - } - } - /** Properties of a PolicyDelta. */ interface IPolicyDelta { @@ -19768,35 +19547,35 @@ export namespace google { namespace Operations { /** - * Callback as used by {@link google.longrunning.Operations|listOperations}. + * Callback as used by {@link google.longrunning.Operations#listOperations}. * @param error Error, if any * @param [response] ListOperationsResponse */ type ListOperationsCallback = (error: (Error|null), response?: google.longrunning.ListOperationsResponse) => void; /** - * Callback as used by {@link google.longrunning.Operations|getOperation}. + * Callback as used by {@link google.longrunning.Operations#getOperation}. * @param error Error, if any * @param [response] Operation */ type GetOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.longrunning.Operations|deleteOperation}. + * Callback as used by {@link google.longrunning.Operations#deleteOperation}. * @param error Error, if any * @param [response] Empty */ type DeleteOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.longrunning.Operations|cancelOperation}. + * Callback as used by {@link google.longrunning.Operations#cancelOperation}. * @param error Error, if any * @param [response] Empty */ type CancelOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.longrunning.Operations|waitOperation}. + * Callback as used by {@link google.longrunning.Operations#waitOperation}. * @param error Error, if any * @param [response] Operation */ diff --git a/protos/protos.js b/protos/protos.js index 6dbada036..2732c14b2 100644 --- a/protos/protos.js +++ b/protos/protos.js @@ -99,7 +99,7 @@ }; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|createInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#createInstance}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef CreateInstanceCallback * @type {function} @@ -132,7 +132,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#getInstance}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef GetInstanceCallback * @type {function} @@ -165,7 +165,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listInstances}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#listInstances}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef ListInstancesCallback * @type {function} @@ -198,7 +198,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|updateInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#updateInstance}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef UpdateInstanceCallback * @type {function} @@ -231,7 +231,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|partialUpdateInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#partialUpdateInstance}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef PartialUpdateInstanceCallback * @type {function} @@ -264,7 +264,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|deleteInstance}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#deleteInstance}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef DeleteInstanceCallback * @type {function} @@ -297,7 +297,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|createCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#createCluster}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef CreateClusterCallback * @type {function} @@ -330,7 +330,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#getCluster}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef GetClusterCallback * @type {function} @@ -363,7 +363,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listClusters}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#listClusters}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef ListClustersCallback * @type {function} @@ -396,7 +396,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|updateCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#updateCluster}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef UpdateClusterCallback * @type {function} @@ -429,7 +429,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|partialUpdateCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#partialUpdateCluster}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef PartialUpdateClusterCallback * @type {function} @@ -462,7 +462,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|deleteCluster}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#deleteCluster}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef DeleteClusterCallback * @type {function} @@ -495,7 +495,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|createAppProfile}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#createAppProfile}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef CreateAppProfileCallback * @type {function} @@ -528,7 +528,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getAppProfile}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#getAppProfile}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef GetAppProfileCallback * @type {function} @@ -561,7 +561,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listAppProfiles}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#listAppProfiles}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef ListAppProfilesCallback * @type {function} @@ -594,7 +594,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|updateAppProfile}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#updateAppProfile}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef UpdateAppProfileCallback * @type {function} @@ -627,7 +627,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|deleteAppProfile}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#deleteAppProfile}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef DeleteAppProfileCallback * @type {function} @@ -660,7 +660,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|getIamPolicy}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#getIamPolicy}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef GetIamPolicyCallback * @type {function} @@ -693,7 +693,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|setIamPolicy}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#setIamPolicy}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef SetIamPolicyCallback * @type {function} @@ -726,7 +726,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|testIamPermissions}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#testIamPermissions}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef TestIamPermissionsCallback * @type {function} @@ -759,7 +759,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin|listHotTablets}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableInstanceAdmin#listHotTablets}. * @memberof google.bigtable.admin.v2.BigtableInstanceAdmin * @typedef ListHotTabletsCallback * @type {function} @@ -9959,7 +9959,7 @@ }; /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|createTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#createTable}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef CreateTableCallback * @type {function} @@ -9992,7 +9992,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|createTableFromSnapshot}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#createTableFromSnapshot}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef CreateTableFromSnapshotCallback * @type {function} @@ -10025,7 +10025,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|listTables}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#listTables}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef ListTablesCallback * @type {function} @@ -10058,7 +10058,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|getTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#getTable}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef GetTableCallback * @type {function} @@ -10091,7 +10091,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|deleteTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#deleteTable}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef DeleteTableCallback * @type {function} @@ -10124,7 +10124,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|modifyColumnFamilies}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#modifyColumnFamilies}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef ModifyColumnFamiliesCallback * @type {function} @@ -10157,7 +10157,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|dropRowRange}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#dropRowRange}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef DropRowRangeCallback * @type {function} @@ -10190,7 +10190,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|generateConsistencyToken}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#generateConsistencyToken}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef GenerateConsistencyTokenCallback * @type {function} @@ -10223,7 +10223,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|checkConsistency}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#checkConsistency}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef CheckConsistencyCallback * @type {function} @@ -10256,7 +10256,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|snapshotTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#snapshotTable}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef SnapshotTableCallback * @type {function} @@ -10289,7 +10289,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|getSnapshot}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#getSnapshot}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef GetSnapshotCallback * @type {function} @@ -10322,7 +10322,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|listSnapshots}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#listSnapshots}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef ListSnapshotsCallback * @type {function} @@ -10355,7 +10355,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|deleteSnapshot}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#deleteSnapshot}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef DeleteSnapshotCallback * @type {function} @@ -10388,7 +10388,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|createBackup}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#createBackup}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef CreateBackupCallback * @type {function} @@ -10421,7 +10421,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|getBackup}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#getBackup}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef GetBackupCallback * @type {function} @@ -10454,7 +10454,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|updateBackup}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#updateBackup}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef UpdateBackupCallback * @type {function} @@ -10487,7 +10487,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|deleteBackup}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#deleteBackup}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef DeleteBackupCallback * @type {function} @@ -10520,7 +10520,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|listBackups}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#listBackups}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef ListBackupsCallback * @type {function} @@ -10553,7 +10553,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|restoreTable}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#restoreTable}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef RestoreTableCallback * @type {function} @@ -10586,7 +10586,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|getIamPolicy}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#getIamPolicy}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef GetIamPolicyCallback * @type {function} @@ -10619,7 +10619,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|setIamPolicy}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#setIamPolicy}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef SetIamPolicyCallback * @type {function} @@ -10652,7 +10652,7 @@ */ /** - * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin|testIamPermissions}. + * Callback as used by {@link google.bigtable.admin.v2.BigtableTableAdmin#testIamPermissions}. * @memberof google.bigtable.admin.v2.BigtableTableAdmin * @typedef TestIamPermissionsCallback * @type {function} @@ -21153,7 +21153,7 @@ }; /** - * Callback as used by {@link google.bigtable.v2.Bigtable|readRows}. + * Callback as used by {@link google.bigtable.v2.Bigtable#readRows}. * @memberof google.bigtable.v2.Bigtable * @typedef ReadRowsCallback * @type {function} @@ -21186,7 +21186,7 @@ */ /** - * Callback as used by {@link google.bigtable.v2.Bigtable|sampleRowKeys}. + * Callback as used by {@link google.bigtable.v2.Bigtable#sampleRowKeys}. * @memberof google.bigtable.v2.Bigtable * @typedef SampleRowKeysCallback * @type {function} @@ -21219,7 +21219,7 @@ */ /** - * Callback as used by {@link google.bigtable.v2.Bigtable|mutateRow}. + * Callback as used by {@link google.bigtable.v2.Bigtable#mutateRow}. * @memberof google.bigtable.v2.Bigtable * @typedef MutateRowCallback * @type {function} @@ -21252,7 +21252,7 @@ */ /** - * Callback as used by {@link google.bigtable.v2.Bigtable|mutateRows}. + * Callback as used by {@link google.bigtable.v2.Bigtable#mutateRows}. * @memberof google.bigtable.v2.Bigtable * @typedef MutateRowsCallback * @type {function} @@ -21285,7 +21285,7 @@ */ /** - * Callback as used by {@link google.bigtable.v2.Bigtable|checkAndMutateRow}. + * Callback as used by {@link google.bigtable.v2.Bigtable#checkAndMutateRow}. * @memberof google.bigtable.v2.Bigtable * @typedef CheckAndMutateRowCallback * @type {function} @@ -21318,7 +21318,7 @@ */ /** - * Callback as used by {@link google.bigtable.v2.Bigtable|pingAndWarm}. + * Callback as used by {@link google.bigtable.v2.Bigtable#pingAndWarm}. * @memberof google.bigtable.v2.Bigtable * @typedef PingAndWarmCallback * @type {function} @@ -21351,7 +21351,7 @@ */ /** - * Callback as used by {@link google.bigtable.v2.Bigtable|readModifyWriteRow}. + * Callback as used by {@link google.bigtable.v2.Bigtable#readModifyWriteRow}. * @memberof google.bigtable.v2.Bigtable * @typedef ReadModifyWriteRowCallback * @type {function} @@ -38144,7 +38144,6 @@ * @property {boolean|null} [packed] FieldOptions packed * @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype * @property {boolean|null} [lazy] FieldOptions lazy - * @property {boolean|null} [unverifiedLazy] FieldOptions unverifiedLazy * @property {boolean|null} [deprecated] FieldOptions deprecated * @property {boolean|null} [weak] FieldOptions weak * @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption @@ -38201,14 +38200,6 @@ */ FieldOptions.prototype.lazy = false; - /** - * FieldOptions unverifiedLazy. - * @member {boolean} unverifiedLazy - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.unverifiedLazy = false; - /** * FieldOptions deprecated. * @member {boolean} deprecated @@ -38285,8 +38276,6 @@ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); if (message.weak != null && Object.hasOwnProperty.call(message, "weak")) writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); - if (message.unverifiedLazy != null && Object.hasOwnProperty.call(message, "unverifiedLazy")) - writer.uint32(/* id 15, wireType 0 =*/120).bool(message.unverifiedLazy); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); @@ -38344,9 +38333,6 @@ case 5: message.lazy = reader.bool(); break; - case 15: - message.unverifiedLazy = reader.bool(); - break; case 3: message.deprecated = reader.bool(); break; @@ -38430,9 +38416,6 @@ if (message.lazy != null && message.hasOwnProperty("lazy")) if (typeof message.lazy !== "boolean") return "lazy: boolean expected"; - if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) - if (typeof message.unverifiedLazy !== "boolean") - return "unverifiedLazy: boolean expected"; if (message.deprecated != null && message.hasOwnProperty("deprecated")) if (typeof message.deprecated !== "boolean") return "deprecated: boolean expected"; @@ -38518,8 +38501,6 @@ } if (object.lazy != null) message.lazy = Boolean(object.lazy); - if (object.unverifiedLazy != null) - message.unverifiedLazy = Boolean(object.unverifiedLazy); if (object.deprecated != null) message.deprecated = Boolean(object.deprecated); if (object.weak != null) @@ -38607,7 +38588,6 @@ object.lazy = false; object.jstype = options.enums === String ? "JS_NORMAL" : 0; object.weak = false; - object.unverifiedLazy = false; object[".google.api.resourceReference"] = null; } if (message.ctype != null && message.hasOwnProperty("ctype")) @@ -38622,8 +38602,6 @@ object.jstype = options.enums === String ? $root.google.protobuf.FieldOptions.JSType[message.jstype] : message.jstype; if (message.weak != null && message.hasOwnProperty("weak")) object.weak = message.weak; - if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) - object.unverifiedLazy = message.unverifiedLazy; if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (var j = 0; j < message.uninterpretedOption.length; ++j) @@ -41912,209 +41890,6 @@ return Timestamp; })(); - protobuf.FieldMask = (function() { - - /** - * Properties of a FieldMask. - * @memberof google.protobuf - * @interface IFieldMask - * @property {Array.|null} [paths] FieldMask paths - */ - - /** - * Constructs a new FieldMask. - * @memberof google.protobuf - * @classdesc Represents a FieldMask. - * @implements IFieldMask - * @constructor - * @param {google.protobuf.IFieldMask=} [properties] Properties to set - */ - function FieldMask(properties) { - this.paths = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FieldMask paths. - * @member {Array.} paths - * @memberof google.protobuf.FieldMask - * @instance - */ - FieldMask.prototype.paths = $util.emptyArray; - - /** - * Creates a new FieldMask instance using the specified properties. - * @function create - * @memberof google.protobuf.FieldMask - * @static - * @param {google.protobuf.IFieldMask=} [properties] Properties to set - * @returns {google.protobuf.FieldMask} FieldMask instance - */ - FieldMask.create = function create(properties) { - return new FieldMask(properties); - }; - - /** - * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FieldMask - * @static - * @param {google.protobuf.IFieldMask} message FieldMask message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FieldMask.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.paths != null && message.paths.length) - for (var i = 0; i < message.paths.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.paths[i]); - return writer; - }; - - /** - * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.FieldMask - * @static - * @param {google.protobuf.IFieldMask} message FieldMask message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FieldMask.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FieldMask message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FieldMask - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FieldMask} FieldMask - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FieldMask.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldMask(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.paths && message.paths.length)) - message.paths = []; - message.paths.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FieldMask message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FieldMask - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FieldMask} FieldMask - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FieldMask.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FieldMask message. - * @function verify - * @memberof google.protobuf.FieldMask - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FieldMask.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.paths != null && message.hasOwnProperty("paths")) { - if (!Array.isArray(message.paths)) - return "paths: array expected"; - for (var i = 0; i < message.paths.length; ++i) - if (!$util.isString(message.paths[i])) - return "paths: string[] expected"; - } - return null; - }; - - /** - * Creates a FieldMask message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.FieldMask - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.FieldMask} FieldMask - */ - FieldMask.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FieldMask) - return object; - var message = new $root.google.protobuf.FieldMask(); - if (object.paths) { - if (!Array.isArray(object.paths)) - throw TypeError(".google.protobuf.FieldMask.paths: array expected"); - message.paths = []; - for (var i = 0; i < object.paths.length; ++i) - message.paths[i] = String(object.paths[i]); - } - return message; - }; - - /** - * Creates a plain object from a FieldMask message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.FieldMask - * @static - * @param {google.protobuf.FieldMask} message FieldMask - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FieldMask.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.paths = []; - if (message.paths && message.paths.length) { - object.paths = []; - for (var j = 0; j < message.paths.length; ++j) - object.paths[j] = message.paths[j]; - } - return object; - }; - - /** - * Converts this FieldMask to JSON. - * @function toJSON - * @memberof google.protobuf.FieldMask - * @instance - * @returns {Object.} JSON object - */ - FieldMask.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return FieldMask; - })(); - protobuf.Any = (function() { /** @@ -42718,6 +42493,209 @@ return Empty; })(); + protobuf.FieldMask = (function() { + + /** + * Properties of a FieldMask. + * @memberof google.protobuf + * @interface IFieldMask + * @property {Array.|null} [paths] FieldMask paths + */ + + /** + * Constructs a new FieldMask. + * @memberof google.protobuf + * @classdesc Represents a FieldMask. + * @implements IFieldMask + * @constructor + * @param {google.protobuf.IFieldMask=} [properties] Properties to set + */ + function FieldMask(properties) { + this.paths = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FieldMask paths. + * @member {Array.} paths + * @memberof google.protobuf.FieldMask + * @instance + */ + FieldMask.prototype.paths = $util.emptyArray; + + /** + * Creates a new FieldMask instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldMask + * @static + * @param {google.protobuf.IFieldMask=} [properties] Properties to set + * @returns {google.protobuf.FieldMask} FieldMask instance + */ + FieldMask.create = function create(properties) { + return new FieldMask(properties); + }; + + /** + * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FieldMask + * @static + * @param {google.protobuf.IFieldMask} message FieldMask message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldMask.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.paths != null && message.paths.length) + for (var i = 0; i < message.paths.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.paths[i]); + return writer; + }; + + /** + * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FieldMask + * @static + * @param {google.protobuf.IFieldMask} message FieldMask message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldMask.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FieldMask message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldMask + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldMask} FieldMask + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldMask.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldMask(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.paths && message.paths.length)) + message.paths = []; + message.paths.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FieldMask message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FieldMask + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FieldMask} FieldMask + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldMask.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FieldMask message. + * @function verify + * @memberof google.protobuf.FieldMask + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FieldMask.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.paths != null && message.hasOwnProperty("paths")) { + if (!Array.isArray(message.paths)) + return "paths: array expected"; + for (var i = 0; i < message.paths.length; ++i) + if (!$util.isString(message.paths[i])) + return "paths: string[] expected"; + } + return null; + }; + + /** + * Creates a FieldMask message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FieldMask + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FieldMask} FieldMask + */ + FieldMask.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldMask) + return object; + var message = new $root.google.protobuf.FieldMask(); + if (object.paths) { + if (!Array.isArray(object.paths)) + throw TypeError(".google.protobuf.FieldMask.paths: array expected"); + message.paths = []; + for (var i = 0; i < object.paths.length; ++i) + message.paths[i] = String(object.paths[i]); + } + return message; + }; + + /** + * Creates a plain object from a FieldMask message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FieldMask + * @static + * @param {google.protobuf.FieldMask} message FieldMask + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FieldMask.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.paths = []; + if (message.paths && message.paths.length) { + object.paths = []; + for (var j = 0; j < message.paths.length; ++j) + object.paths[j] = message.paths[j]; + } + return object; + }; + + /** + * Converts this FieldMask to JSON. + * @function toJSON + * @memberof google.protobuf.FieldMask + * @instance + * @returns {Object.} JSON object + */ + FieldMask.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return FieldMask; + })(); + protobuf.DoubleValue = (function() { /** @@ -44492,7 +44470,7 @@ }; /** - * Callback as used by {@link google.iam.v1.IAMPolicy|setIamPolicy}. + * Callback as used by {@link google.iam.v1.IAMPolicy#setIamPolicy}. * @memberof google.iam.v1.IAMPolicy * @typedef SetIamPolicyCallback * @type {function} @@ -44525,7 +44503,7 @@ */ /** - * Callback as used by {@link google.iam.v1.IAMPolicy|getIamPolicy}. + * Callback as used by {@link google.iam.v1.IAMPolicy#getIamPolicy}. * @memberof google.iam.v1.IAMPolicy * @typedef GetIamPolicyCallback * @type {function} @@ -44558,7 +44536,7 @@ */ /** - * Callback as used by {@link google.iam.v1.IAMPolicy|testIamPermissions}. + * Callback as used by {@link google.iam.v1.IAMPolicy#testIamPermissions}. * @memberof google.iam.v1.IAMPolicy * @typedef TestIamPermissionsCallback * @type {function} @@ -44601,7 +44579,6 @@ * @interface ISetIamPolicyRequest * @property {string|null} [resource] SetIamPolicyRequest resource * @property {google.iam.v1.IPolicy|null} [policy] SetIamPolicyRequest policy - * @property {google.protobuf.IFieldMask|null} [updateMask] SetIamPolicyRequest updateMask */ /** @@ -44635,14 +44612,6 @@ */ SetIamPolicyRequest.prototype.policy = null; - /** - * SetIamPolicyRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.iam.v1.SetIamPolicyRequest - * @instance - */ - SetIamPolicyRequest.prototype.updateMask = null; - /** * Creates a new SetIamPolicyRequest instance using the specified properties. * @function create @@ -44671,8 +44640,6 @@ writer.uint32(/* id 1, wireType 2 =*/10).string(message.resource); if (message.policy != null && Object.hasOwnProperty.call(message, "policy")) $root.google.iam.v1.Policy.encode(message.policy, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -44713,9 +44680,6 @@ case 2: message.policy = $root.google.iam.v1.Policy.decode(reader, reader.uint32()); break; - case 3: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -44759,11 +44723,6 @@ if (error) return "policy." + error; } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } return null; }; @@ -44786,11 +44745,6 @@ throw TypeError(".google.iam.v1.SetIamPolicyRequest.policy: object expected"); message.policy = $root.google.iam.v1.Policy.fromObject(object.policy); } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.iam.v1.SetIamPolicyRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } return message; }; @@ -44810,14 +44764,11 @@ if (options.defaults) { object.resource = ""; object.policy = null; - object.updateMask = null; } if (message.resource != null && message.hasOwnProperty("resource")) object.resource = message.resource; if (message.policy != null && message.hasOwnProperty("policy")) object.policy = $root.google.iam.v1.Policy.toObject(message.policy, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; @@ -45674,7 +45625,6 @@ * @interface IPolicy * @property {number|null} [version] Policy version * @property {Array.|null} [bindings] Policy bindings - * @property {Array.|null} [auditConfigs] Policy auditConfigs * @property {Uint8Array|null} [etag] Policy etag */ @@ -45688,7 +45638,6 @@ */ function Policy(properties) { this.bindings = []; - this.auditConfigs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -45711,14 +45660,6 @@ */ Policy.prototype.bindings = $util.emptyArray; - /** - * Policy auditConfigs. - * @member {Array.} auditConfigs - * @memberof google.iam.v1.Policy - * @instance - */ - Policy.prototype.auditConfigs = $util.emptyArray; - /** * Policy etag. * @member {Uint8Array} etag @@ -45758,9 +45699,6 @@ if (message.bindings != null && message.bindings.length) for (var i = 0; i < message.bindings.length; ++i) $root.google.iam.v1.Binding.encode(message.bindings[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.auditConfigs != null && message.auditConfigs.length) - for (var i = 0; i < message.auditConfigs.length; ++i) - $root.google.iam.v1.AuditConfig.encode(message.auditConfigs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; @@ -45803,11 +45741,6 @@ message.bindings = []; message.bindings.push($root.google.iam.v1.Binding.decode(reader, reader.uint32())); break; - case 6: - if (!(message.auditConfigs && message.auditConfigs.length)) - message.auditConfigs = []; - message.auditConfigs.push($root.google.iam.v1.AuditConfig.decode(reader, reader.uint32())); - break; case 3: message.etag = reader.bytes(); break; @@ -45858,15 +45791,6 @@ return "bindings." + error; } } - if (message.auditConfigs != null && message.hasOwnProperty("auditConfigs")) { - if (!Array.isArray(message.auditConfigs)) - return "auditConfigs: array expected"; - for (var i = 0; i < message.auditConfigs.length; ++i) { - var error = $root.google.iam.v1.AuditConfig.verify(message.auditConfigs[i]); - if (error) - return "auditConfigs." + error; - } - } if (message.etag != null && message.hasOwnProperty("etag")) if (!(message.etag && typeof message.etag.length === "number" || $util.isString(message.etag))) return "etag: buffer expected"; @@ -45897,16 +45821,6 @@ message.bindings[i] = $root.google.iam.v1.Binding.fromObject(object.bindings[i]); } } - if (object.auditConfigs) { - if (!Array.isArray(object.auditConfigs)) - throw TypeError(".google.iam.v1.Policy.auditConfigs: array expected"); - message.auditConfigs = []; - for (var i = 0; i < object.auditConfigs.length; ++i) { - if (typeof object.auditConfigs[i] !== "object") - throw TypeError(".google.iam.v1.Policy.auditConfigs: object expected"); - message.auditConfigs[i] = $root.google.iam.v1.AuditConfig.fromObject(object.auditConfigs[i]); - } - } if (object.etag != null) if (typeof object.etag === "string") $util.base64.decode(object.etag, message.etag = $util.newBuffer($util.base64.length(object.etag)), 0); @@ -45928,10 +45842,8 @@ if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { + if (options.arrays || options.defaults) object.bindings = []; - object.auditConfigs = []; - } if (options.defaults) { object.version = 0; if (options.bytes === String) @@ -45951,11 +45863,6 @@ for (var j = 0; j < message.bindings.length; ++j) object.bindings[j] = $root.google.iam.v1.Binding.toObject(message.bindings[j], options); } - if (message.auditConfigs && message.auditConfigs.length) { - object.auditConfigs = []; - for (var j = 0; j < message.auditConfigs.length; ++j) - object.auditConfigs[j] = $root.google.iam.v1.AuditConfig.toObject(message.auditConfigs[j], options); - } return object; }; @@ -46227,504 +46134,6 @@ return Binding; })(); - v1.AuditConfig = (function() { - - /** - * Properties of an AuditConfig. - * @memberof google.iam.v1 - * @interface IAuditConfig - * @property {string|null} [service] AuditConfig service - * @property {Array.|null} [auditLogConfigs] AuditConfig auditLogConfigs - */ - - /** - * Constructs a new AuditConfig. - * @memberof google.iam.v1 - * @classdesc Represents an AuditConfig. - * @implements IAuditConfig - * @constructor - * @param {google.iam.v1.IAuditConfig=} [properties] Properties to set - */ - function AuditConfig(properties) { - this.auditLogConfigs = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * AuditConfig service. - * @member {string} service - * @memberof google.iam.v1.AuditConfig - * @instance - */ - AuditConfig.prototype.service = ""; - - /** - * AuditConfig auditLogConfigs. - * @member {Array.} auditLogConfigs - * @memberof google.iam.v1.AuditConfig - * @instance - */ - AuditConfig.prototype.auditLogConfigs = $util.emptyArray; - - /** - * Creates a new AuditConfig instance using the specified properties. - * @function create - * @memberof google.iam.v1.AuditConfig - * @static - * @param {google.iam.v1.IAuditConfig=} [properties] Properties to set - * @returns {google.iam.v1.AuditConfig} AuditConfig instance - */ - AuditConfig.create = function create(properties) { - return new AuditConfig(properties); - }; - - /** - * Encodes the specified AuditConfig message. Does not implicitly {@link google.iam.v1.AuditConfig.verify|verify} messages. - * @function encode - * @memberof google.iam.v1.AuditConfig - * @static - * @param {google.iam.v1.IAuditConfig} message AuditConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AuditConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.service != null && Object.hasOwnProperty.call(message, "service")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.service); - if (message.auditLogConfigs != null && message.auditLogConfigs.length) - for (var i = 0; i < message.auditLogConfigs.length; ++i) - $root.google.iam.v1.AuditLogConfig.encode(message.auditLogConfigs[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified AuditConfig message, length delimited. Does not implicitly {@link google.iam.v1.AuditConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.iam.v1.AuditConfig - * @static - * @param {google.iam.v1.IAuditConfig} message AuditConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AuditConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an AuditConfig message from the specified reader or buffer. - * @function decode - * @memberof google.iam.v1.AuditConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.iam.v1.AuditConfig} AuditConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AuditConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.iam.v1.AuditConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.service = reader.string(); - break; - case 3: - if (!(message.auditLogConfigs && message.auditLogConfigs.length)) - message.auditLogConfigs = []; - message.auditLogConfigs.push($root.google.iam.v1.AuditLogConfig.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an AuditConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.iam.v1.AuditConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.iam.v1.AuditConfig} AuditConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AuditConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AuditConfig message. - * @function verify - * @memberof google.iam.v1.AuditConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AuditConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.service != null && message.hasOwnProperty("service")) - if (!$util.isString(message.service)) - return "service: string expected"; - if (message.auditLogConfigs != null && message.hasOwnProperty("auditLogConfigs")) { - if (!Array.isArray(message.auditLogConfigs)) - return "auditLogConfigs: array expected"; - for (var i = 0; i < message.auditLogConfigs.length; ++i) { - var error = $root.google.iam.v1.AuditLogConfig.verify(message.auditLogConfigs[i]); - if (error) - return "auditLogConfigs." + error; - } - } - return null; - }; - - /** - * Creates an AuditConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.iam.v1.AuditConfig - * @static - * @param {Object.} object Plain object - * @returns {google.iam.v1.AuditConfig} AuditConfig - */ - AuditConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.iam.v1.AuditConfig) - return object; - var message = new $root.google.iam.v1.AuditConfig(); - if (object.service != null) - message.service = String(object.service); - if (object.auditLogConfigs) { - if (!Array.isArray(object.auditLogConfigs)) - throw TypeError(".google.iam.v1.AuditConfig.auditLogConfigs: array expected"); - message.auditLogConfigs = []; - for (var i = 0; i < object.auditLogConfigs.length; ++i) { - if (typeof object.auditLogConfigs[i] !== "object") - throw TypeError(".google.iam.v1.AuditConfig.auditLogConfigs: object expected"); - message.auditLogConfigs[i] = $root.google.iam.v1.AuditLogConfig.fromObject(object.auditLogConfigs[i]); - } - } - return message; - }; - - /** - * Creates a plain object from an AuditConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.iam.v1.AuditConfig - * @static - * @param {google.iam.v1.AuditConfig} message AuditConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AuditConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.auditLogConfigs = []; - if (options.defaults) - object.service = ""; - if (message.service != null && message.hasOwnProperty("service")) - object.service = message.service; - if (message.auditLogConfigs && message.auditLogConfigs.length) { - object.auditLogConfigs = []; - for (var j = 0; j < message.auditLogConfigs.length; ++j) - object.auditLogConfigs[j] = $root.google.iam.v1.AuditLogConfig.toObject(message.auditLogConfigs[j], options); - } - return object; - }; - - /** - * Converts this AuditConfig to JSON. - * @function toJSON - * @memberof google.iam.v1.AuditConfig - * @instance - * @returns {Object.} JSON object - */ - AuditConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return AuditConfig; - })(); - - v1.AuditLogConfig = (function() { - - /** - * Properties of an AuditLogConfig. - * @memberof google.iam.v1 - * @interface IAuditLogConfig - * @property {google.iam.v1.AuditLogConfig.LogType|null} [logType] AuditLogConfig logType - * @property {Array.|null} [exemptedMembers] AuditLogConfig exemptedMembers - */ - - /** - * Constructs a new AuditLogConfig. - * @memberof google.iam.v1 - * @classdesc Represents an AuditLogConfig. - * @implements IAuditLogConfig - * @constructor - * @param {google.iam.v1.IAuditLogConfig=} [properties] Properties to set - */ - function AuditLogConfig(properties) { - this.exemptedMembers = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * AuditLogConfig logType. - * @member {google.iam.v1.AuditLogConfig.LogType} logType - * @memberof google.iam.v1.AuditLogConfig - * @instance - */ - AuditLogConfig.prototype.logType = 0; - - /** - * AuditLogConfig exemptedMembers. - * @member {Array.} exemptedMembers - * @memberof google.iam.v1.AuditLogConfig - * @instance - */ - AuditLogConfig.prototype.exemptedMembers = $util.emptyArray; - - /** - * Creates a new AuditLogConfig instance using the specified properties. - * @function create - * @memberof google.iam.v1.AuditLogConfig - * @static - * @param {google.iam.v1.IAuditLogConfig=} [properties] Properties to set - * @returns {google.iam.v1.AuditLogConfig} AuditLogConfig instance - */ - AuditLogConfig.create = function create(properties) { - return new AuditLogConfig(properties); - }; - - /** - * Encodes the specified AuditLogConfig message. Does not implicitly {@link google.iam.v1.AuditLogConfig.verify|verify} messages. - * @function encode - * @memberof google.iam.v1.AuditLogConfig - * @static - * @param {google.iam.v1.IAuditLogConfig} message AuditLogConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AuditLogConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.logType != null && Object.hasOwnProperty.call(message, "logType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.logType); - if (message.exemptedMembers != null && message.exemptedMembers.length) - for (var i = 0; i < message.exemptedMembers.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.exemptedMembers[i]); - return writer; - }; - - /** - * Encodes the specified AuditLogConfig message, length delimited. Does not implicitly {@link google.iam.v1.AuditLogConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.iam.v1.AuditLogConfig - * @static - * @param {google.iam.v1.IAuditLogConfig} message AuditLogConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AuditLogConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an AuditLogConfig message from the specified reader or buffer. - * @function decode - * @memberof google.iam.v1.AuditLogConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.iam.v1.AuditLogConfig} AuditLogConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AuditLogConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.iam.v1.AuditLogConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.logType = reader.int32(); - break; - case 2: - if (!(message.exemptedMembers && message.exemptedMembers.length)) - message.exemptedMembers = []; - message.exemptedMembers.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an AuditLogConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.iam.v1.AuditLogConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.iam.v1.AuditLogConfig} AuditLogConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AuditLogConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AuditLogConfig message. - * @function verify - * @memberof google.iam.v1.AuditLogConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AuditLogConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.logType != null && message.hasOwnProperty("logType")) - switch (message.logType) { - default: - return "logType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.exemptedMembers != null && message.hasOwnProperty("exemptedMembers")) { - if (!Array.isArray(message.exemptedMembers)) - return "exemptedMembers: array expected"; - for (var i = 0; i < message.exemptedMembers.length; ++i) - if (!$util.isString(message.exemptedMembers[i])) - return "exemptedMembers: string[] expected"; - } - return null; - }; - - /** - * Creates an AuditLogConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.iam.v1.AuditLogConfig - * @static - * @param {Object.} object Plain object - * @returns {google.iam.v1.AuditLogConfig} AuditLogConfig - */ - AuditLogConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.iam.v1.AuditLogConfig) - return object; - var message = new $root.google.iam.v1.AuditLogConfig(); - switch (object.logType) { - case "LOG_TYPE_UNSPECIFIED": - case 0: - message.logType = 0; - break; - case "ADMIN_READ": - case 1: - message.logType = 1; - break; - case "DATA_WRITE": - case 2: - message.logType = 2; - break; - case "DATA_READ": - case 3: - message.logType = 3; - break; - } - if (object.exemptedMembers) { - if (!Array.isArray(object.exemptedMembers)) - throw TypeError(".google.iam.v1.AuditLogConfig.exemptedMembers: array expected"); - message.exemptedMembers = []; - for (var i = 0; i < object.exemptedMembers.length; ++i) - message.exemptedMembers[i] = String(object.exemptedMembers[i]); - } - return message; - }; - - /** - * Creates a plain object from an AuditLogConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.iam.v1.AuditLogConfig - * @static - * @param {google.iam.v1.AuditLogConfig} message AuditLogConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AuditLogConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.exemptedMembers = []; - if (options.defaults) - object.logType = options.enums === String ? "LOG_TYPE_UNSPECIFIED" : 0; - if (message.logType != null && message.hasOwnProperty("logType")) - object.logType = options.enums === String ? $root.google.iam.v1.AuditLogConfig.LogType[message.logType] : message.logType; - if (message.exemptedMembers && message.exemptedMembers.length) { - object.exemptedMembers = []; - for (var j = 0; j < message.exemptedMembers.length; ++j) - object.exemptedMembers[j] = message.exemptedMembers[j]; - } - return object; - }; - - /** - * Converts this AuditLogConfig to JSON. - * @function toJSON - * @memberof google.iam.v1.AuditLogConfig - * @instance - * @returns {Object.} JSON object - */ - AuditLogConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * LogType enum. - * @name google.iam.v1.AuditLogConfig.LogType - * @enum {number} - * @property {number} LOG_TYPE_UNSPECIFIED=0 LOG_TYPE_UNSPECIFIED value - * @property {number} ADMIN_READ=1 ADMIN_READ value - * @property {number} DATA_WRITE=2 DATA_WRITE value - * @property {number} DATA_READ=3 DATA_READ value - */ - AuditLogConfig.LogType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "LOG_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "ADMIN_READ"] = 1; - values[valuesById[2] = "DATA_WRITE"] = 2; - values[valuesById[3] = "DATA_READ"] = 3; - return values; - })(); - - return AuditLogConfig; - })(); - v1.PolicyDelta = (function() { /** @@ -47872,7 +47281,7 @@ }; /** - * Callback as used by {@link google.longrunning.Operations|listOperations}. + * Callback as used by {@link google.longrunning.Operations#listOperations}. * @memberof google.longrunning.Operations * @typedef ListOperationsCallback * @type {function} @@ -47905,7 +47314,7 @@ */ /** - * Callback as used by {@link google.longrunning.Operations|getOperation}. + * Callback as used by {@link google.longrunning.Operations#getOperation}. * @memberof google.longrunning.Operations * @typedef GetOperationCallback * @type {function} @@ -47938,7 +47347,7 @@ */ /** - * Callback as used by {@link google.longrunning.Operations|deleteOperation}. + * Callback as used by {@link google.longrunning.Operations#deleteOperation}. * @memberof google.longrunning.Operations * @typedef DeleteOperationCallback * @type {function} @@ -47971,7 +47380,7 @@ */ /** - * Callback as used by {@link google.longrunning.Operations|cancelOperation}. + * Callback as used by {@link google.longrunning.Operations#cancelOperation}. * @memberof google.longrunning.Operations * @typedef CancelOperationCallback * @type {function} @@ -48004,7 +47413,7 @@ */ /** - * Callback as used by {@link google.longrunning.Operations|waitOperation}. + * Callback as used by {@link google.longrunning.Operations#waitOperation}. * @memberof google.longrunning.Operations * @typedef WaitOperationCallback * @type {function} diff --git a/protos/protos.json b/protos/protos.json index a1196f467..64b6e60f2 100644 --- a/protos/protos.json +++ b/protos/protos.json @@ -4545,13 +4545,6 @@ "default": false } }, - "unverifiedLazy": { - "type": "bool", - "id": 15, - "options": { - "default": false - } - }, "deprecated": { "type": "bool", "id": 3, @@ -4861,15 +4854,6 @@ } } }, - "FieldMask": { - "fields": { - "paths": { - "rule": "repeated", - "type": "string", - "id": 1 - } - } - }, "Any": { "fields": { "type_url": { @@ -4897,6 +4881,15 @@ "Empty": { "fields": {} }, + "FieldMask": { + "fields": { + "paths": { + "rule": "repeated", + "type": "string", + "id": 1 + } + } + }, "DoubleValue": { "fields": { "value": { @@ -5055,10 +5048,6 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } - }, - "updateMask": { - "type": "google.protobuf.FieldMask", - "id": 3 } } }, @@ -5126,11 +5115,6 @@ "type": "Binding", "id": 4 }, - "auditConfigs": { - "rule": "repeated", - "type": "AuditConfig", - "id": 6 - }, "etag": { "type": "bytes", "id": 3 @@ -5154,42 +5138,6 @@ } } }, - "AuditConfig": { - "fields": { - "service": { - "type": "string", - "id": 1 - }, - "auditLogConfigs": { - "rule": "repeated", - "type": "AuditLogConfig", - "id": 3 - } - } - }, - "AuditLogConfig": { - "fields": { - "logType": { - "type": "LogType", - "id": 1 - }, - "exemptedMembers": { - "rule": "repeated", - "type": "string", - "id": 2 - } - }, - "nested": { - "LogType": { - "values": { - "LOG_TYPE_UNSPECIFIED": 0, - "ADMIN_READ": 1, - "DATA_WRITE": 2, - "DATA_READ": 3 - } - } - } - }, "PolicyDelta": { "fields": { "bindingDeltas": { From ada3def250e4a8eece82ad2df3b8ab2b7986abc0 Mon Sep 17 00:00:00 2001 From: Sofia Leon Date: Mon, 16 May 2022 18:45:18 -0700 Subject: [PATCH 7/9] run linting --- src/cluster.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/cluster.ts b/src/cluster.ts index 11479e699..9235bf7e8 100644 --- a/src/cluster.ts +++ b/src/cluster.ts @@ -89,7 +89,7 @@ export interface BasicClusterConfig { } export interface CreateBackupConfig extends ModifiableBackupFields { - table: string | Table; + table?: string | Table; gaxOptions?: CallOptions; } @@ -487,13 +487,13 @@ Please use the format 'my-cluster' or '${instance.name}/clusters/my-cluster'.`); const reqOpts: google.bigtable.admin.v2.IListBackupsRequest = { parent: this.name, - pageSize: gaxOpts.pageSize, - pageToken: gaxOpts.pageToken, + pageSize: (gaxOpts as GetBackupsOptions).pageSize, + pageToken: (gaxOpts as GetBackupsOptions).pageToken, ...options, }; - delete gaxOpts.pageSize; - delete gaxOpts.pageToken; + delete (gaxOpts as GetBackupsOptions).pageSize; + delete (gaxOpts as GetBackupsOptions).pageToken; delete (reqOpts as CallOptions).autoPaginate; delete (reqOpts as GetBackupsOptions).gaxOptions; From 9a48fc6d845060118432b3a9e0937e5a2f5db5ff Mon Sep 17 00:00:00 2001 From: Sofia Leon Date: Wed, 18 May 2022 17:12:57 -0700 Subject: [PATCH 8/9] run lint --- src/instance.ts | 40 ++++++++++++++++++++-------------------- system-test/bigtable.ts | 8 ++++++-- test/cluster.ts | 9 ++++++++- test/instance.ts | 11 ++++++----- 4 files changed, 40 insertions(+), 28 deletions(-) diff --git a/src/instance.ts b/src/instance.ts index 337262b6e..c54c59790 100644 --- a/src/instance.ts +++ b/src/instance.ts @@ -703,15 +703,15 @@ Please use the format 'my-instance' or '${bigtable.projectName}/instances/my-ins parent: this.name, }; - if (is.number(gaxOpts.pageSize)) { - reqOpts.pageSize = gaxOpts.pageSize; + if (is.number((gaxOpts as GetBackupsOptions).pageSize)) { + reqOpts.pageSize = (gaxOpts as GetBackupsOptions).pageSize; } - delete gaxOpts.pageSize; + delete (gaxOpts as GetBackupsOptions).pageSize; - if (gaxOpts.pageToken) { - reqOpts.pageToken = gaxOpts.pageToken; + if ((gaxOpts as GetBackupsOptions).pageToken) { + reqOpts.pageToken = (gaxOpts as GetBackupsOptions).pageToken; } - delete gaxOpts.pageToken; + delete (gaxOpts as GetBackupsOptions).pageToken; this.bigtable.request( { @@ -777,15 +777,15 @@ Please use the format 'my-instance' or '${bigtable.projectName}/instances/my-ins }; const gaxOpts = extend(true, {}, gaxOptions); - if (is.number(gaxOpts.pageSize)) { - reqOpts.pageSize = gaxOpts.pageSize; + if (is.number((gaxOpts as GetBackupsOptions).pageSize)) { + reqOpts.pageSize = (gaxOpts as GetBackupsOptions).pageSize; } - delete gaxOpts.pageSize; + delete (gaxOpts as GetBackupsOptions).pageSize; - if (gaxOpts.pageToken) { - reqOpts.pageToken = gaxOpts.pageToken; + if ((gaxOpts as GetBackupsOptions).pageToken) { + reqOpts.pageToken = (gaxOpts as GetBackupsOptions).pageToken; } - delete gaxOpts.pageToken; + delete (gaxOpts as GetBackupsOptions).pageToken; // eslint-disable-next-line @typescript-eslint/no-this-alias const self = this; @@ -1103,13 +1103,13 @@ Please use the format 'my-instance' or '${bigtable.projectName}/instances/my-ins reqOpts = extend( {}, { - pageSize: gaxOpts.pageSize, - pageToken: gaxOpts.pageToken, + pageSize: (gaxOpts as GetBackupsOptions).pageSize, + pageToken: (gaxOpts as GetBackupsOptions).pageToken, }, reqOpts ); - delete gaxOpts.pageSize; - delete gaxOpts.pageToken; + delete (gaxOpts as GetBackupsOptions).pageSize; + delete (gaxOpts as GetBackupsOptions).pageToken; } delete (reqOpts as GetTablesOptions).gaxOptions; @@ -1184,13 +1184,13 @@ Please use the format 'my-instance' or '${bigtable.projectName}/instances/my-ins reqOpts = extend( {}, { - pageSize: gaxOpts.pageSize, - pageToken: gaxOpts.pageToken, + pageSize: (gaxOpts as GetBackupsOptions).pageSize, + pageToken: (gaxOpts as GetBackupsOptions).pageToken, }, reqOpts ); - delete gaxOpts.pageSize; - delete gaxOpts.pageToken; + delete (gaxOpts as GetBackupsOptions).pageSize; + delete (gaxOpts as GetBackupsOptions).pageToken; } // eslint-disable-next-line @typescript-eslint/no-this-alias diff --git a/system-test/bigtable.ts b/system-test/bigtable.ts index 5ea0c5a5b..7d1d9be59 100644 --- a/system-test/bigtable.ts +++ b/system-test/bigtable.ts @@ -279,7 +279,11 @@ describe('Bigtable', () => { await operation.promise(); throw new Error('Cluster creation should not have succeeded'); } catch (e) { - assert(e.message.includes('default keys and CMEKs are not allowed')); + assert( + (e as Error).message.includes( + 'default keys and CMEKs are not allowed' + ) + ); } }); }); @@ -913,7 +917,7 @@ describe('Bigtable', () => { ]; await TABLE.insert(entries); const rows: Row[] = []; - await new Promise((resolve, reject) => { + await new Promise((resolve, reject) => { const stream = TABLE.createReadStream() .on('error', reject) .on('data', row => { diff --git a/test/cluster.ts b/test/cluster.ts index 90c36a5e2..ebd96061d 100644 --- a/test/cluster.ts +++ b/test/cluster.ts @@ -20,6 +20,13 @@ import {PassThrough, Readable} from 'stream'; import {CallOptions} from 'google-gax'; import {PreciseDate} from '@google-cloud/precise-date'; +export interface Options { + nodes?: Number; + gaxOptions?: { + timeout: number; + }; +} + let promisified = false; const fakePromisify = Object.assign({}, promisify, { // eslint-disable-next-line @typescript-eslint/no-explicit-any @@ -987,7 +994,7 @@ describe('Bigtable/Cluster', () => { defaultStorageType: 'exellent_type', }; - const expectedReqOpts = Object.assign( + const expectedReqOpts: Options = Object.assign( {}, {name: CLUSTER_NAME, serveNodes: options.nodes}, options diff --git a/test/instance.ts b/test/instance.ts index 0f93d949a..163cf2706 100644 --- a/test/instance.ts +++ b/test/instance.ts @@ -34,6 +34,7 @@ import {PassThrough} from 'stream'; import * as pumpify from 'pumpify'; import {FakeCluster} from '../system-test/common'; import {RestoreTableConfig} from '../src/backup'; +import {Options} from './cluster'; const sandbox = sinon.createSandbox(); @@ -904,7 +905,7 @@ describe('Bigtable/Instance', () => { const pageToken = 'token'; const gaxOptions = {pageToken, timeout: 1000}; const expectedGaxOpts = {timeout: 1000}; - const expectedReqOpts = Object.assign( + const expectedReqOpts: Options = Object.assign( {}, {gaxOptions}, {parent: instance.name}, @@ -926,7 +927,7 @@ describe('Bigtable/Instance', () => { const pageSize = 3; const gaxOptions = {pageSize, timeout: 1000}; const expectedGaxOpts = {timeout: 1000}; - const expectedReqOpts = Object.assign( + const expectedReqOpts: Options = Object.assign( {}, {gaxOptions}, {parent: instance.name}, @@ -1010,7 +1011,7 @@ describe('Bigtable/Instance', () => { const pageToken = 'token'; const gaxOptions = {pageToken, timeout: 1000}; const expectedGaxOpts = {timeout: 1000}; - const expectedReqOpts = Object.assign( + const expectedReqOpts: Options = Object.assign( {}, {gaxOptions}, {parent: instance.name}, @@ -1033,7 +1034,7 @@ describe('Bigtable/Instance', () => { const pageSize = 3; const gaxOptions = {pageSize, timeout: 1000}; const expectedGaxOpts = {timeout: 1000}; - const expectedReqOpts = Object.assign( + const expectedReqOpts: Options = Object.assign( {}, {gaxOptions}, {parent: instance.name}, @@ -1436,7 +1437,7 @@ describe('Bigtable/Instance', () => { const pageToken = 'token'; const gaxOptions = {pageSize, pageToken, timeout: 1000}; const expectedGaxOpts = {timeout: 1000}; - const expectedReqOpts = Object.assign( + const expectedReqOpts: Options = Object.assign( {}, {gaxOptions}, { From 08064fbd82650df814150605920f44ebdc800516 Mon Sep 17 00:00:00 2001 From: Sofia Leon Date: Wed, 18 May 2022 17:18:28 -0700 Subject: [PATCH 9/9] add type for error --- system-test/install.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system-test/install.ts b/system-test/install.ts index 5ff2e2ad9..9beb2ba62 100644 --- a/system-test/install.ts +++ b/system-test/install.ts @@ -50,8 +50,8 @@ describe('📦 pack-n-play test', () => { await packNTest(options); } catch (e) { // all of the actionable information is on the output attribute - if (e.output) { - e.message += 'output: ' + e.output; + if ((e as any).output) { + (e as any).message += 'output: ' + (e as any).output; } throw e; }