diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index 1b8ad314a69..ea72a93aa38 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -31,6 +31,7 @@
"packages/google-cloud-bigquery-dataexchange": "1.0.1",
"packages/google-cloud-bigquery-datapolicies": "1.1.0",
"packages/google-cloud-bigquery-datatransfer": "4.0.1",
+ "packages/google-cloud-bigquery-migration": "1.0.1",
"packages/google-cloud-bigquery-reservation": "3.0.1",
"packages/google-cloud-billing": "4.0.2",
"packages/google-cloud-billing-budgets": "5.1.0",
@@ -42,6 +43,7 @@
"packages/google-cloud-compute": "4.0.1",
"packages/google-cloud-confidentialcomputing": "1.1.0",
"packages/google-cloud-config": "0.1.1",
+ "packages/google-cloud-connectors": "0.1.0",
"packages/google-cloud-contactcenterinsights": "3.0.1",
"packages/google-cloud-contentwarehouse": "1.2.0",
"packages/google-cloud-datacatalog": "4.0.1",
@@ -60,6 +62,7 @@
"packages/google-cloud-dns": "4.0.0",
"packages/google-cloud-documentai": "8.0.1",
"packages/google-cloud-domains": "3.0.1",
+ "packages/google-cloud-edgecontainer": "0.1.0",
"packages/google-cloud-essentialcontacts": "3.0.1",
"packages/google-cloud-eventarc": "3.0.1",
"packages/google-cloud-eventarc-publishing": "3.0.1",
@@ -87,6 +90,7 @@
"packages/google-cloud-networkconnectivity": "3.1.0",
"packages/google-cloud-networkmanagement": "3.1.0",
"packages/google-cloud-networksecurity": "2.0.1",
+ "packages/google-cloud-networkservices": "0.1.0",
"packages/google-cloud-notebooks": "3.1.0",
"packages/google-cloud-optimization": "3.1.0",
"packages/google-cloud-orchestration-airflow-service": "3.0.1",
@@ -94,6 +98,7 @@
"packages/google-cloud-osconfig": "3.0.1",
"packages/google-cloud-oslogin": "5.1.0",
"packages/google-cloud-phishingprotection": "4.0.1",
+ "packages/google-cloud-policysimulator": "0.1.0",
"packages/google-cloud-policytroubleshooter": "3.1.1",
"packages/google-cloud-policytroubleshooter-iam": "0.2.1",
"packages/google-cloud-privatecatalog": "3.0.1",
@@ -137,6 +142,7 @@
"packages/google-dataflow": "3.0.1",
"packages/google-devtools-artifactregistry": "3.0.1",
"packages/google-devtools-cloudbuild": "4.0.1",
+ "packages/google-devtools-cloudprofiler": "0.1.0",
"packages/google-devtools-containeranalysis": "5.1.1",
"packages/google-iam": "1.0.1",
"packages/google-iam-credentials": "3.0.1",
@@ -149,10 +155,5 @@
"packages/google-privacy-dlp": "5.0.1",
"packages/google-storagetransfer": "3.0.1",
"packages/grafeas": "5.0.1",
- "packages/typeless-sample-bot": "2.0.0",
- "packages/google-cloud-connectors": "0.1.0",
- "packages/google-cloud-edgecontainer": "0.1.0",
- "packages/google-cloud-networkservices": "0.1.0",
- "packages/google-cloud-policysimulator": "0.1.0",
- "packages/google-devtools-cloudprofiler": "0.1.0"
+ "packages/typeless-sample-bot": "2.0.0"
}
diff --git a/packages/google-cloud-bigquery-migration/.github/.OwlBot.yaml b/packages/google-cloud-bigquery-migration/.OwlBot.yaml
similarity index 78%
rename from packages/google-cloud-bigquery-migration/.github/.OwlBot.yaml
rename to packages/google-cloud-bigquery-migration/.OwlBot.yaml
index 450812022f0..30ae9dd83fe 100644
--- a/packages/google-cloud-bigquery-migration/.github/.OwlBot.yaml
+++ b/packages/google-cloud-bigquery-migration/.OwlBot.yaml
@@ -11,12 +11,10 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-docker:
- image: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest
deep-remove-regex:
- /owl-bot-staging
deep-copy-regex:
- - source: /google/cloud/bigquery/migration/(.*)/.*-nodejs/(.*)
- dest: /owl-bot-staging/$1/$2
+ - source: /google/cloud/bigquery/migration/(.*)/.*-nodejs
+ dest: /owl-bot-staging/google-cloud-bigquery-migration/$1
diff --git a/packages/google-cloud-bigquery-migration/.mocharc.js b/packages/google-cloud-bigquery-migration/.mocharc.js
index 0b600509bed..49e7e228701 100644
--- a/packages/google-cloud-bigquery-migration/.mocharc.js
+++ b/packages/google-cloud-bigquery-migration/.mocharc.js
@@ -1,4 +1,4 @@
-// Copyright 2020 Google LLC
+// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/packages/google-cloud-bigquery-migration/.prettierrc.js b/packages/google-cloud-bigquery-migration/.prettierrc.js
index d1b95106f4c..1e6cec783e4 100644
--- a/packages/google-cloud-bigquery-migration/.prettierrc.js
+++ b/packages/google-cloud-bigquery-migration/.prettierrc.js
@@ -1,4 +1,4 @@
-// Copyright 2020 Google LLC
+// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/packages/google-cloud-bigquery-migration/.repo-metadata.json b/packages/google-cloud-bigquery-migration/.repo-metadata.json
index 8e20f1baafb..31dfb286fdd 100644
--- a/packages/google-cloud-bigquery-migration/.repo-metadata.json
+++ b/packages/google-cloud-bigquery-migration/.repo-metadata.json
@@ -1,15 +1,15 @@
{
- "name": "bigquerymigration",
- "name_pretty": "BigQuery Migration API",
- "product_documentation": "https://cloud.google.com/bigquery/docs/migration-intro",
- "client_documentation": "https://cloud.google.com/nodejs/docs/reference/bigquery-migration/latest",
- "issue_tracker": "https://github.com/googleapis/nodejs-bigquery-migration/issues",
- "release_level": "stable",
- "language": "nodejs",
- "repo": "googleapis/nodejs-bigquery-migration",
- "distribution_name": "@google-cloud/bigquery-migration",
- "api_id": "bigquerymigration.googleapis.com",
- "default_version": "v2",
- "requires_billing": true,
- "library_type": "GAPIC_AUTO"
- }
+ "name": "bigquerymigration",
+ "name_pretty": "BigQuery Migration API",
+ "product_documentation": "https://cloud.google.com/bigquery/docs/migration-intro",
+ "client_documentation": "https://cloud.google.com/nodejs/docs/reference/bigquery-migration/latest",
+ "issue_tracker": "https://github.com/googleapis/google-cloud-node/issues",
+ "release_level": "stable",
+ "language": "nodejs",
+ "repo": "googleapis/google-cloud-node",
+ "distribution_name": "@google-cloud/bigquery-migration",
+ "api_id": "bigquerymigration.googleapis.com",
+ "default_version": "v2",
+ "requires_billing": true,
+ "library_type": "GAPIC_AUTO"
+}
diff --git a/packages/google-cloud-bigquery-migration/README.md b/packages/google-cloud-bigquery-migration/README.md
index 056e9f0b69c..ef0b20a9705 100644
--- a/packages/google-cloud-bigquery-migration/README.md
+++ b/packages/google-cloud-bigquery-migration/README.md
@@ -2,7 +2,7 @@
[//]: # "To regenerate it, use `python -m synthtool`."
-# [BigQuery Migration API: Node.js Client](https://github.com/googleapis/nodejs-bigquery-migration)
+# [BigQuery Migration API: Node.js Client](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-bigquery-migration)
[](https://cloud.google.com/terms/launch-stages)
[](https://www.npmjs.org/package/@google-cloud/bigquery-migration)
@@ -14,11 +14,11 @@ bigquery-migration client for Node.js
A comprehensive list of changes in each version may be found in
-[the CHANGELOG](https://github.com/googleapis/nodejs-bigquery-migration/blob/main/CHANGELOG.md).
+[the CHANGELOG](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-bigquery-migration/CHANGELOG.md).
* [BigQuery Migration API Node.js Client API Reference][client-docs]
* [BigQuery Migration API Documentation][product-docs]
-* [github.com/googleapis/nodejs-bigquery-migration](https://github.com/googleapis/nodejs-bigquery-migration)
+* [github.com/googleapis/google-cloud-node/packages/google-cloud-bigquery-migration](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-bigquery-migration)
Read more about the client libraries for Cloud APIs, including the older
Google APIs Client Libraries, in [Client Libraries Explained][explained].
@@ -32,7 +32,7 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained].
* [Before you begin](#before-you-begin)
* [Installing the client library](#installing-the-client-library)
-
+* [Samples](#samples)
* [Versioning](#versioning)
* [Contributing](#contributing)
* [License](#license)
@@ -56,6 +56,30 @@ npm install @google-cloud/bigquery-migration
+## Samples
+
+Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-bigquery-migration/samples) directory. Each sample's `README.md` has instructions for running its sample.
+
+| Sample | Source Code | Try it |
+| --------------------------- | --------------------------------- | ------ |
+| Migration_service.create_migration_workflow | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-migration/samples/generated/v2/migration_service.create_migration_workflow.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-migration/samples/generated/v2/migration_service.create_migration_workflow.js,packages/google-cloud-bigquery-migration/samples/README.md) |
+| Migration_service.delete_migration_workflow | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-migration/samples/generated/v2/migration_service.delete_migration_workflow.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-migration/samples/generated/v2/migration_service.delete_migration_workflow.js,packages/google-cloud-bigquery-migration/samples/README.md) |
+| Migration_service.get_migration_subtask | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-migration/samples/generated/v2/migration_service.get_migration_subtask.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-migration/samples/generated/v2/migration_service.get_migration_subtask.js,packages/google-cloud-bigquery-migration/samples/README.md) |
+| Migration_service.get_migration_workflow | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-migration/samples/generated/v2/migration_service.get_migration_workflow.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-migration/samples/generated/v2/migration_service.get_migration_workflow.js,packages/google-cloud-bigquery-migration/samples/README.md) |
+| Migration_service.list_migration_subtasks | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-migration/samples/generated/v2/migration_service.list_migration_subtasks.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-migration/samples/generated/v2/migration_service.list_migration_subtasks.js,packages/google-cloud-bigquery-migration/samples/README.md) |
+| Migration_service.list_migration_workflows | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-migration/samples/generated/v2/migration_service.list_migration_workflows.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-migration/samples/generated/v2/migration_service.list_migration_workflows.js,packages/google-cloud-bigquery-migration/samples/README.md) |
+| Migration_service.start_migration_workflow | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-migration/samples/generated/v2/migration_service.start_migration_workflow.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-migration/samples/generated/v2/migration_service.start_migration_workflow.js,packages/google-cloud-bigquery-migration/samples/README.md) |
+| Migration_service.create_migration_workflow | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-migration/samples/generated/v2alpha/migration_service.create_migration_workflow.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-migration/samples/generated/v2alpha/migration_service.create_migration_workflow.js,packages/google-cloud-bigquery-migration/samples/README.md) |
+| Migration_service.delete_migration_workflow | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-migration/samples/generated/v2alpha/migration_service.delete_migration_workflow.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-migration/samples/generated/v2alpha/migration_service.delete_migration_workflow.js,packages/google-cloud-bigquery-migration/samples/README.md) |
+| Migration_service.get_migration_subtask | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-migration/samples/generated/v2alpha/migration_service.get_migration_subtask.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-migration/samples/generated/v2alpha/migration_service.get_migration_subtask.js,packages/google-cloud-bigquery-migration/samples/README.md) |
+| Migration_service.get_migration_workflow | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-migration/samples/generated/v2alpha/migration_service.get_migration_workflow.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-migration/samples/generated/v2alpha/migration_service.get_migration_workflow.js,packages/google-cloud-bigquery-migration/samples/README.md) |
+| Migration_service.list_migration_subtasks | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-migration/samples/generated/v2alpha/migration_service.list_migration_subtasks.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-migration/samples/generated/v2alpha/migration_service.list_migration_subtasks.js,packages/google-cloud-bigquery-migration/samples/README.md) |
+| Migration_service.list_migration_workflows | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-migration/samples/generated/v2alpha/migration_service.list_migration_workflows.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-migration/samples/generated/v2alpha/migration_service.list_migration_workflows.js,packages/google-cloud-bigquery-migration/samples/README.md) |
+| Migration_service.start_migration_workflow | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-migration/samples/generated/v2alpha/migration_service.start_migration_workflow.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-migration/samples/generated/v2alpha/migration_service.start_migration_workflow.js,packages/google-cloud-bigquery-migration/samples/README.md) |
+| Sql_translation_service.translate_query | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-migration/samples/generated/v2alpha/sql_translation_service.translate_query.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-migration/samples/generated/v2alpha/sql_translation_service.translate_query.js,packages/google-cloud-bigquery-migration/samples/README.md) |
+| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-migration/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-migration/samples/quickstart.js,packages/google-cloud-bigquery-migration/samples/README.md) |
+
+
The [BigQuery Migration API Node.js Client API Reference][client-docs] documentation
also contains samples.
@@ -103,7 +127,7 @@ More Information: [Google Cloud Platform Launch Stages][launch_stages]
## Contributing
-Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/nodejs-bigquery-migration/blob/main/CONTRIBUTING.md).
+Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-cloud-node/blob/main/CONTRIBUTING.md).
Please note that this `README.md`, the `samples/README.md`,
and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`)
@@ -115,7 +139,7 @@ to its templates in
Apache Version 2.0
-See [LICENSE](https://github.com/googleapis/nodejs-bigquery-migration/blob/main/LICENSE)
+See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)
[client-docs]: https://cloud.google.com/nodejs/docs/reference/bigquery-migration/latest
[product-docs]: https://cloud.google.com/bigquery/docs/migration-intro
diff --git a/packages/google-cloud-bigquery-migration/package.json b/packages/google-cloud-bigquery-migration/package.json
index cb1ca286e34..19a9f596d6e 100644
--- a/packages/google-cloud-bigquery-migration/package.json
+++ b/packages/google-cloud-bigquery-migration/package.json
@@ -2,7 +2,11 @@
"name": "@google-cloud/bigquery-migration",
"version": "1.0.1",
"description": "bigquery-migration client for Node.js",
- "repository": "googleapis/nodejs-bigquery-migration",
+ "repository": {
+ "type": "git",
+ "directory": "packages/google-cloud-bigquery-migration",
+ "url": "https://github.com/googleapis/google-cloud-node.git"
+ },
"license": "Apache-2.0",
"author": "Google LLC",
"main": "build/src/index.js",
@@ -33,9 +37,9 @@
"fix": "gts fix",
"lint": "gts check",
"prepare": "npm run compile-protos && npm run compile",
- "system-test": "c8 mocha build/system-test",
+ "system-test": "npm run compile && c8 mocha build/system-test",
"test": "c8 mocha build/test",
- "samples-test": "cd samples/ && npm link ../ && npm test",
+ "samples-test": "npm run compile && cd samples/ && npm link ../ && npm i && npm test",
"prelint": "cd samples; npm link ../; npm i"
},
"dependencies": {
@@ -63,5 +67,6 @@
},
"engines": {
"node": ">=14.0.0"
- }
+ },
+ "homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-bigquery-migration"
}
diff --git a/packages/google-cloud-bigquery-migration/protos/protos.d.ts b/packages/google-cloud-bigquery-migration/protos/protos.d.ts
index 6f517a389ab..31622a3f83d 100644
--- a/packages/google-cloud-bigquery-migration/protos/protos.d.ts
+++ b/packages/google-cloud-bigquery-migration/protos/protos.d.ts
@@ -10813,9 +10813,6 @@ export namespace google {
/** Publishing librarySettings */
librarySettings?: (google.api.IClientLibrarySettings[]|null);
-
- /** Publishing protoReferenceDocumentationUri */
- protoReferenceDocumentationUri?: (string|null);
}
/** Represents a Publishing. */
@@ -10854,9 +10851,6 @@ export namespace google {
/** Publishing librarySettings. */
public librarySettings: google.api.IClientLibrarySettings[];
- /** Publishing protoReferenceDocumentationUri. */
- public protoReferenceDocumentationUri: string;
-
/**
* Creates a new Publishing instance using the specified properties.
* @param [properties] Properties to set
@@ -11437,21 +11431,6 @@ export namespace google {
/** DotnetSettings common */
common?: (google.api.ICommonLanguageSettings|null);
-
- /** DotnetSettings renamedServices */
- renamedServices?: ({ [k: string]: string }|null);
-
- /** DotnetSettings renamedResources */
- renamedResources?: ({ [k: string]: string }|null);
-
- /** DotnetSettings ignoredResources */
- ignoredResources?: (string[]|null);
-
- /** DotnetSettings forcedNamespaceAliases */
- forcedNamespaceAliases?: (string[]|null);
-
- /** DotnetSettings handwrittenSignatures */
- handwrittenSignatures?: (string[]|null);
}
/** Represents a DotnetSettings. */
@@ -11466,21 +11445,6 @@ export namespace google {
/** DotnetSettings common. */
public common?: (google.api.ICommonLanguageSettings|null);
- /** DotnetSettings renamedServices. */
- public renamedServices: { [k: string]: string };
-
- /** DotnetSettings renamedResources. */
- public renamedResources: { [k: string]: string };
-
- /** DotnetSettings ignoredResources. */
- public ignoredResources: string[];
-
- /** DotnetSettings forcedNamespaceAliases. */
- public forcedNamespaceAliases: string[];
-
- /** DotnetSettings handwrittenSignatures. */
- public handwrittenSignatures: string[];
-
/**
* Creates a new DotnetSettings instance using the specified properties.
* @param [properties] Properties to set
@@ -11980,10 +11944,7 @@ export namespace google {
CLOUD = 1,
ADS = 2,
PHOTOS = 3,
- STREET_VIEW = 4,
- SHOPPING = 5,
- GEO = 6,
- GENERATIVE_AI = 7
+ STREET_VIEW = 4
}
/** ClientLibraryDestination enum. */
@@ -12634,15 +12595,6 @@ export namespace google {
/** ExtensionRangeOptions uninterpretedOption */
uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
-
- /** ExtensionRangeOptions declaration */
- declaration?: (google.protobuf.ExtensionRangeOptions.IDeclaration[]|null);
-
- /** ExtensionRangeOptions features */
- features?: (google.protobuf.IFeatureSet|null);
-
- /** ExtensionRangeOptions verification */
- verification?: (google.protobuf.ExtensionRangeOptions.VerificationState|keyof typeof google.protobuf.ExtensionRangeOptions.VerificationState|null);
}
/** Represents an ExtensionRangeOptions. */
@@ -12657,15 +12609,6 @@ export namespace google {
/** ExtensionRangeOptions uninterpretedOption. */
public uninterpretedOption: google.protobuf.IUninterpretedOption[];
- /** ExtensionRangeOptions declaration. */
- public declaration: google.protobuf.ExtensionRangeOptions.IDeclaration[];
-
- /** ExtensionRangeOptions features. */
- public features?: (google.protobuf.IFeatureSet|null);
-
- /** ExtensionRangeOptions verification. */
- public verification: (google.protobuf.ExtensionRangeOptions.VerificationState|keyof typeof google.protobuf.ExtensionRangeOptions.VerificationState);
-
/**
* Creates a new ExtensionRangeOptions instance using the specified properties.
* @param [properties] Properties to set
@@ -12744,136 +12687,6 @@ export namespace google {
public static getTypeUrl(typeUrlPrefix?: string): string;
}
- namespace ExtensionRangeOptions {
-
- /** Properties of a Declaration. */
- interface IDeclaration {
-
- /** Declaration number */
- number?: (number|null);
-
- /** Declaration fullName */
- fullName?: (string|null);
-
- /** Declaration type */
- type?: (string|null);
-
- /** Declaration reserved */
- reserved?: (boolean|null);
-
- /** Declaration repeated */
- repeated?: (boolean|null);
- }
-
- /** Represents a Declaration. */
- class Declaration implements IDeclaration {
-
- /**
- * Constructs a new Declaration.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.ExtensionRangeOptions.IDeclaration);
-
- /** Declaration number. */
- public number: number;
-
- /** Declaration fullName. */
- public fullName: string;
-
- /** Declaration type. */
- public type: string;
-
- /** Declaration reserved. */
- public reserved: boolean;
-
- /** Declaration repeated. */
- public repeated: boolean;
-
- /**
- * Creates a new Declaration instance using the specified properties.
- * @param [properties] Properties to set
- * @returns Declaration instance
- */
- public static create(properties?: google.protobuf.ExtensionRangeOptions.IDeclaration): google.protobuf.ExtensionRangeOptions.Declaration;
-
- /**
- * Encodes the specified Declaration message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages.
- * @param message Declaration message or plain object to encode
- * @param [writer] Writer to encode to
- * @returns Writer
- */
- public static encode(message: google.protobuf.ExtensionRangeOptions.IDeclaration, writer?: $protobuf.Writer): $protobuf.Writer;
-
- /**
- * Encodes the specified Declaration message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages.
- * @param message Declaration message or plain object to encode
- * @param [writer] Writer to encode to
- * @returns Writer
- */
- public static encodeDelimited(message: google.protobuf.ExtensionRangeOptions.IDeclaration, writer?: $protobuf.Writer): $protobuf.Writer;
-
- /**
- * Decodes a Declaration message from the specified reader or buffer.
- * @param reader Reader or buffer to decode from
- * @param [length] Message length if known beforehand
- * @returns Declaration
- * @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.ExtensionRangeOptions.Declaration;
-
- /**
- * Decodes a Declaration message from the specified reader or buffer, length delimited.
- * @param reader Reader or buffer to decode from
- * @returns Declaration
- * @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.ExtensionRangeOptions.Declaration;
-
- /**
- * Verifies a Declaration 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 Declaration message from a plain object. Also converts values to their respective internal types.
- * @param object Plain object
- * @returns Declaration
- */
- public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions.Declaration;
-
- /**
- * Creates a plain object from a Declaration message. Also converts values to other types if specified.
- * @param message Declaration
- * @param [options] Conversion options
- * @returns Plain object
- */
- public static toObject(message: google.protobuf.ExtensionRangeOptions.Declaration, options?: $protobuf.IConversionOptions): { [k: string]: any };
-
- /**
- * Converts this Declaration to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
-
- /**
- * Gets the default type url for Declaration
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns The default type url
- */
- public static getTypeUrl(typeUrlPrefix?: string): string;
- }
-
- /** VerificationState enum. */
- enum VerificationState {
- DECLARATION = 0,
- UNVERIFIED = 1
- }
- }
-
/** Properties of a FieldDescriptorProto. */
interface IFieldDescriptorProto {
@@ -13801,9 +13614,6 @@ export namespace google {
/** FileOptions rubyPackage */
rubyPackage?: (string|null);
- /** FileOptions features */
- features?: (google.protobuf.IFeatureSet|null);
-
/** FileOptions uninterpretedOption */
uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
@@ -13880,9 +13690,6 @@ export namespace google {
/** FileOptions rubyPackage. */
public rubyPackage: string;
- /** FileOptions features. */
- public features?: (google.protobuf.IFeatureSet|null);
-
/** FileOptions uninterpretedOption. */
public uninterpretedOption: google.protobuf.IUninterpretedOption[];
@@ -13992,9 +13799,6 @@ export namespace google {
/** MessageOptions deprecatedLegacyJsonFieldConflicts */
deprecatedLegacyJsonFieldConflicts?: (boolean|null);
- /** MessageOptions features */
- features?: (google.protobuf.IFeatureSet|null);
-
/** MessageOptions uninterpretedOption */
uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
@@ -14026,9 +13830,6 @@ export namespace google {
/** MessageOptions deprecatedLegacyJsonFieldConflicts. */
public deprecatedLegacyJsonFieldConflicts: boolean;
- /** MessageOptions features. */
- public features?: (google.protobuf.IFeatureSet|null);
-
/** MessageOptions uninterpretedOption. */
public uninterpretedOption: google.protobuf.IUninterpretedOption[];
@@ -14140,14 +13941,8 @@ export namespace google {
/** FieldOptions retention */
retention?: (google.protobuf.FieldOptions.OptionRetention|keyof typeof google.protobuf.FieldOptions.OptionRetention|null);
- /** FieldOptions targets */
- targets?: (google.protobuf.FieldOptions.OptionTargetType[]|null);
-
- /** FieldOptions editionDefaults */
- editionDefaults?: (google.protobuf.FieldOptions.IEditionDefault[]|null);
-
- /** FieldOptions features */
- features?: (google.protobuf.IFeatureSet|null);
+ /** FieldOptions target */
+ target?: (google.protobuf.FieldOptions.OptionTargetType|keyof typeof google.protobuf.FieldOptions.OptionTargetType|null);
/** FieldOptions uninterpretedOption */
uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
@@ -14195,14 +13990,8 @@ export namespace google {
/** FieldOptions retention. */
public retention: (google.protobuf.FieldOptions.OptionRetention|keyof typeof google.protobuf.FieldOptions.OptionRetention);
- /** FieldOptions targets. */
- public targets: google.protobuf.FieldOptions.OptionTargetType[];
-
- /** FieldOptions editionDefaults. */
- public editionDefaults: google.protobuf.FieldOptions.IEditionDefault[];
-
- /** FieldOptions features. */
- public features?: (google.protobuf.IFeatureSet|null);
+ /** FieldOptions target. */
+ public target: (google.protobuf.FieldOptions.OptionTargetType|keyof typeof google.protobuf.FieldOptions.OptionTargetType);
/** FieldOptions uninterpretedOption. */
public uninterpretedOption: google.protobuf.IUninterpretedOption[];
@@ -14321,117 +14110,11 @@ export namespace google {
TARGET_TYPE_SERVICE = 8,
TARGET_TYPE_METHOD = 9
}
-
- /** Properties of an EditionDefault. */
- interface IEditionDefault {
-
- /** EditionDefault edition */
- edition?: (string|null);
-
- /** EditionDefault value */
- value?: (string|null);
- }
-
- /** Represents an EditionDefault. */
- class EditionDefault implements IEditionDefault {
-
- /**
- * Constructs a new EditionDefault.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.FieldOptions.IEditionDefault);
-
- /** EditionDefault edition. */
- public edition: string;
-
- /** EditionDefault value. */
- public value: string;
-
- /**
- * Creates a new EditionDefault instance using the specified properties.
- * @param [properties] Properties to set
- * @returns EditionDefault instance
- */
- public static create(properties?: google.protobuf.FieldOptions.IEditionDefault): google.protobuf.FieldOptions.EditionDefault;
-
- /**
- * Encodes the specified EditionDefault message. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages.
- * @param message EditionDefault message or plain object to encode
- * @param [writer] Writer to encode to
- * @returns Writer
- */
- public static encode(message: google.protobuf.FieldOptions.IEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer;
-
- /**
- * Encodes the specified EditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages.
- * @param message EditionDefault message or plain object to encode
- * @param [writer] Writer to encode to
- * @returns Writer
- */
- public static encodeDelimited(message: google.protobuf.FieldOptions.IEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer;
-
- /**
- * Decodes an EditionDefault message from the specified reader or buffer.
- * @param reader Reader or buffer to decode from
- * @param [length] Message length if known beforehand
- * @returns EditionDefault
- * @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.FieldOptions.EditionDefault;
-
- /**
- * Decodes an EditionDefault message from the specified reader or buffer, length delimited.
- * @param reader Reader or buffer to decode from
- * @returns EditionDefault
- * @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.FieldOptions.EditionDefault;
-
- /**
- * Verifies an EditionDefault 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 EditionDefault message from a plain object. Also converts values to their respective internal types.
- * @param object Plain object
- * @returns EditionDefault
- */
- public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions.EditionDefault;
-
- /**
- * Creates a plain object from an EditionDefault message. Also converts values to other types if specified.
- * @param message EditionDefault
- * @param [options] Conversion options
- * @returns Plain object
- */
- public static toObject(message: google.protobuf.FieldOptions.EditionDefault, options?: $protobuf.IConversionOptions): { [k: string]: any };
-
- /**
- * Converts this EditionDefault to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
-
- /**
- * Gets the default type url for EditionDefault
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns The default type url
- */
- public static getTypeUrl(typeUrlPrefix?: string): string;
- }
}
/** Properties of an OneofOptions. */
interface IOneofOptions {
- /** OneofOptions features */
- features?: (google.protobuf.IFeatureSet|null);
-
/** OneofOptions uninterpretedOption */
uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
}
@@ -14445,9 +14128,6 @@ export namespace google {
*/
constructor(properties?: google.protobuf.IOneofOptions);
- /** OneofOptions features. */
- public features?: (google.protobuf.IFeatureSet|null);
-
/** OneofOptions uninterpretedOption. */
public uninterpretedOption: google.protobuf.IUninterpretedOption[];
@@ -14541,9 +14221,6 @@ export namespace google {
/** EnumOptions deprecatedLegacyJsonFieldConflicts */
deprecatedLegacyJsonFieldConflicts?: (boolean|null);
- /** EnumOptions features */
- features?: (google.protobuf.IFeatureSet|null);
-
/** EnumOptions uninterpretedOption */
uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
}
@@ -14566,9 +14243,6 @@ export namespace google {
/** EnumOptions deprecatedLegacyJsonFieldConflicts. */
public deprecatedLegacyJsonFieldConflicts: boolean;
- /** EnumOptions features. */
- public features?: (google.protobuf.IFeatureSet|null);
-
/** EnumOptions uninterpretedOption. */
public uninterpretedOption: google.protobuf.IUninterpretedOption[];
@@ -14656,12 +14330,6 @@ export namespace google {
/** EnumValueOptions deprecated */
deprecated?: (boolean|null);
- /** EnumValueOptions features */
- features?: (google.protobuf.IFeatureSet|null);
-
- /** EnumValueOptions debugRedact */
- debugRedact?: (boolean|null);
-
/** EnumValueOptions uninterpretedOption */
uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
}
@@ -14678,12 +14346,6 @@ export namespace google {
/** EnumValueOptions deprecated. */
public deprecated: boolean;
- /** EnumValueOptions features. */
- public features?: (google.protobuf.IFeatureSet|null);
-
- /** EnumValueOptions debugRedact. */
- public debugRedact: boolean;
-
/** EnumValueOptions uninterpretedOption. */
public uninterpretedOption: google.protobuf.IUninterpretedOption[];
@@ -14768,9 +14430,6 @@ export namespace google {
/** Properties of a ServiceOptions. */
interface IServiceOptions {
- /** ServiceOptions features */
- features?: (google.protobuf.IFeatureSet|null);
-
/** ServiceOptions deprecated */
deprecated?: (boolean|null);
@@ -14793,9 +14452,6 @@ export namespace google {
*/
constructor(properties?: google.protobuf.IServiceOptions);
- /** ServiceOptions features. */
- public features?: (google.protobuf.IFeatureSet|null);
-
/** ServiceOptions deprecated. */
public deprecated: boolean;
@@ -14889,9 +14545,6 @@ export namespace google {
/** MethodOptions idempotencyLevel */
idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null);
- /** MethodOptions features */
- features?: (google.protobuf.IFeatureSet|null);
-
/** MethodOptions uninterpretedOption */
uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
@@ -14917,9 +14570,6 @@ export namespace google {
/** MethodOptions idempotencyLevel. */
public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel);
- /** MethodOptions features. */
- public features?: (google.protobuf.IFeatureSet|null);
-
/** MethodOptions uninterpretedOption. */
public uninterpretedOption: google.protobuf.IUninterpretedOption[];
@@ -15250,186 +14900,6 @@ export namespace google {
}
}
- /** Properties of a FeatureSet. */
- interface IFeatureSet {
-
- /** FeatureSet fieldPresence */
- fieldPresence?: (google.protobuf.FeatureSet.FieldPresence|keyof typeof google.protobuf.FeatureSet.FieldPresence|null);
-
- /** FeatureSet enumType */
- enumType?: (google.protobuf.FeatureSet.EnumType|keyof typeof google.protobuf.FeatureSet.EnumType|null);
-
- /** FeatureSet repeatedFieldEncoding */
- repeatedFieldEncoding?: (google.protobuf.FeatureSet.RepeatedFieldEncoding|keyof typeof google.protobuf.FeatureSet.RepeatedFieldEncoding|null);
-
- /** FeatureSet stringFieldValidation */
- stringFieldValidation?: (google.protobuf.FeatureSet.StringFieldValidation|keyof typeof google.protobuf.FeatureSet.StringFieldValidation|null);
-
- /** FeatureSet messageEncoding */
- messageEncoding?: (google.protobuf.FeatureSet.MessageEncoding|keyof typeof google.protobuf.FeatureSet.MessageEncoding|null);
-
- /** FeatureSet jsonFormat */
- jsonFormat?: (google.protobuf.FeatureSet.JsonFormat|keyof typeof google.protobuf.FeatureSet.JsonFormat|null);
-
- /** FeatureSet rawFeatures */
- rawFeatures?: (google.protobuf.IFeatureSet|null);
- }
-
- /** Represents a FeatureSet. */
- class FeatureSet implements IFeatureSet {
-
- /**
- * Constructs a new FeatureSet.
- * @param [properties] Properties to set
- */
- constructor(properties?: google.protobuf.IFeatureSet);
-
- /** FeatureSet fieldPresence. */
- public fieldPresence: (google.protobuf.FeatureSet.FieldPresence|keyof typeof google.protobuf.FeatureSet.FieldPresence);
-
- /** FeatureSet enumType. */
- public enumType: (google.protobuf.FeatureSet.EnumType|keyof typeof google.protobuf.FeatureSet.EnumType);
-
- /** FeatureSet repeatedFieldEncoding. */
- public repeatedFieldEncoding: (google.protobuf.FeatureSet.RepeatedFieldEncoding|keyof typeof google.protobuf.FeatureSet.RepeatedFieldEncoding);
-
- /** FeatureSet stringFieldValidation. */
- public stringFieldValidation: (google.protobuf.FeatureSet.StringFieldValidation|keyof typeof google.protobuf.FeatureSet.StringFieldValidation);
-
- /** FeatureSet messageEncoding. */
- public messageEncoding: (google.protobuf.FeatureSet.MessageEncoding|keyof typeof google.protobuf.FeatureSet.MessageEncoding);
-
- /** FeatureSet jsonFormat. */
- public jsonFormat: (google.protobuf.FeatureSet.JsonFormat|keyof typeof google.protobuf.FeatureSet.JsonFormat);
-
- /** FeatureSet rawFeatures. */
- public rawFeatures?: (google.protobuf.IFeatureSet|null);
-
- /**
- * Creates a new FeatureSet instance using the specified properties.
- * @param [properties] Properties to set
- * @returns FeatureSet instance
- */
- public static create(properties?: google.protobuf.IFeatureSet): google.protobuf.FeatureSet;
-
- /**
- * Encodes the specified FeatureSet message. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages.
- * @param message FeatureSet message or plain object to encode
- * @param [writer] Writer to encode to
- * @returns Writer
- */
- public static encode(message: google.protobuf.IFeatureSet, writer?: $protobuf.Writer): $protobuf.Writer;
-
- /**
- * Encodes the specified FeatureSet message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages.
- * @param message FeatureSet message or plain object to encode
- * @param [writer] Writer to encode to
- * @returns Writer
- */
- public static encodeDelimited(message: google.protobuf.IFeatureSet, writer?: $protobuf.Writer): $protobuf.Writer;
-
- /**
- * Decodes a FeatureSet message from the specified reader or buffer.
- * @param reader Reader or buffer to decode from
- * @param [length] Message length if known beforehand
- * @returns FeatureSet
- * @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.FeatureSet;
-
- /**
- * Decodes a FeatureSet message from the specified reader or buffer, length delimited.
- * @param reader Reader or buffer to decode from
- * @returns FeatureSet
- * @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.FeatureSet;
-
- /**
- * Verifies a FeatureSet 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 FeatureSet message from a plain object. Also converts values to their respective internal types.
- * @param object Plain object
- * @returns FeatureSet
- */
- public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSet;
-
- /**
- * Creates a plain object from a FeatureSet message. Also converts values to other types if specified.
- * @param message FeatureSet
- * @param [options] Conversion options
- * @returns Plain object
- */
- public static toObject(message: google.protobuf.FeatureSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
-
- /**
- * Converts this FeatureSet to JSON.
- * @returns JSON object
- */
- public toJSON(): { [k: string]: any };
-
- /**
- * Gets the default type url for FeatureSet
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns The default type url
- */
- public static getTypeUrl(typeUrlPrefix?: string): string;
- }
-
- namespace FeatureSet {
-
- /** FieldPresence enum. */
- enum FieldPresence {
- FIELD_PRESENCE_UNKNOWN = 0,
- EXPLICIT = 1,
- IMPLICIT = 2,
- LEGACY_REQUIRED = 3
- }
-
- /** EnumType enum. */
- enum EnumType {
- ENUM_TYPE_UNKNOWN = 0,
- OPEN = 1,
- CLOSED = 2
- }
-
- /** RepeatedFieldEncoding enum. */
- enum RepeatedFieldEncoding {
- REPEATED_FIELD_ENCODING_UNKNOWN = 0,
- PACKED = 1,
- EXPANDED = 2
- }
-
- /** StringFieldValidation enum. */
- enum StringFieldValidation {
- STRING_FIELD_VALIDATION_UNKNOWN = 0,
- MANDATORY = 1,
- HINT = 2,
- NONE = 3
- }
-
- /** MessageEncoding enum. */
- enum MessageEncoding {
- MESSAGE_ENCODING_UNKNOWN = 0,
- LENGTH_PREFIXED = 1,
- DELIMITED = 2
- }
-
- /** JsonFormat enum. */
- enum JsonFormat {
- JSON_FORMAT_UNKNOWN = 0,
- ALLOW = 1,
- LEGACY_BEST_EFFORT = 2
- }
- }
-
/** Properties of a SourceCodeInfo. */
interface ISourceCodeInfo {
diff --git a/packages/google-cloud-bigquery-migration/protos/protos.js b/packages/google-cloud-bigquery-migration/protos/protos.js
index d6a8404d56b..6f499f7043c 100644
--- a/packages/google-cloud-bigquery-migration/protos/protos.js
+++ b/packages/google-cloud-bigquery-migration/protos/protos.js
@@ -26969,7 +26969,6 @@
* @property {string|null} [docTagPrefix] Publishing docTagPrefix
* @property {google.api.ClientLibraryOrganization|null} [organization] Publishing organization
* @property {Array.|null} [librarySettings] Publishing librarySettings
- * @property {string|null} [protoReferenceDocumentationUri] Publishing protoReferenceDocumentationUri
*/
/**
@@ -27062,14 +27061,6 @@
*/
Publishing.prototype.librarySettings = $util.emptyArray;
- /**
- * Publishing protoReferenceDocumentationUri.
- * @member {string} protoReferenceDocumentationUri
- * @memberof google.api.Publishing
- * @instance
- */
- Publishing.prototype.protoReferenceDocumentationUri = "";
-
/**
* Creates a new Publishing instance using the specified properties.
* @function create
@@ -27115,8 +27106,6 @@
if (message.librarySettings != null && message.librarySettings.length)
for (var i = 0; i < message.librarySettings.length; ++i)
$root.google.api.ClientLibrarySettings.encode(message.librarySettings[i], writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim();
- if (message.protoReferenceDocumentationUri != null && Object.hasOwnProperty.call(message, "protoReferenceDocumentationUri"))
- writer.uint32(/* id 110, wireType 2 =*/882).string(message.protoReferenceDocumentationUri);
return writer;
};
@@ -27193,10 +27182,6 @@
message.librarySettings.push($root.google.api.ClientLibrarySettings.decode(reader, reader.uint32()));
break;
}
- case 110: {
- message.protoReferenceDocumentationUri = reader.string();
- break;
- }
default:
reader.skipType(tag & 7);
break;
@@ -27272,9 +27257,6 @@
case 2:
case 3:
case 4:
- case 5:
- case 6:
- case 7:
break;
}
if (message.librarySettings != null && message.hasOwnProperty("librarySettings")) {
@@ -27286,9 +27268,6 @@
return "librarySettings." + error;
}
}
- if (message.protoReferenceDocumentationUri != null && message.hasOwnProperty("protoReferenceDocumentationUri"))
- if (!$util.isString(message.protoReferenceDocumentationUri))
- return "protoReferenceDocumentationUri: string expected";
return null;
};
@@ -27358,18 +27337,6 @@
case 4:
message.organization = 4;
break;
- case "SHOPPING":
- case 5:
- message.organization = 5;
- break;
- case "GEO":
- case 6:
- message.organization = 6;
- break;
- case "GENERATIVE_AI":
- case 7:
- message.organization = 7;
- break;
}
if (object.librarySettings) {
if (!Array.isArray(object.librarySettings))
@@ -27381,8 +27348,6 @@
message.librarySettings[i] = $root.google.api.ClientLibrarySettings.fromObject(object.librarySettings[i]);
}
}
- if (object.protoReferenceDocumentationUri != null)
- message.protoReferenceDocumentationUri = String(object.protoReferenceDocumentationUri);
return message;
};
@@ -27411,7 +27376,6 @@
object.githubLabel = "";
object.docTagPrefix = "";
object.organization = options.enums === String ? "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED" : 0;
- object.protoReferenceDocumentationUri = "";
}
if (message.methodSettings && message.methodSettings.length) {
object.methodSettings = [];
@@ -27440,8 +27404,6 @@
for (var j = 0; j < message.librarySettings.length; ++j)
object.librarySettings[j] = $root.google.api.ClientLibrarySettings.toObject(message.librarySettings[j], options);
}
- if (message.protoReferenceDocumentationUri != null && message.hasOwnProperty("protoReferenceDocumentationUri"))
- object.protoReferenceDocumentationUri = message.protoReferenceDocumentationUri;
return object;
};
@@ -28604,11 +28566,6 @@
* @memberof google.api
* @interface IDotnetSettings
* @property {google.api.ICommonLanguageSettings|null} [common] DotnetSettings common
- * @property {Object.|null} [renamedServices] DotnetSettings renamedServices
- * @property {Object.|null} [renamedResources] DotnetSettings renamedResources
- * @property {Array.|null} [ignoredResources] DotnetSettings ignoredResources
- * @property {Array.|null} [forcedNamespaceAliases] DotnetSettings forcedNamespaceAliases
- * @property {Array.|null} [handwrittenSignatures] DotnetSettings handwrittenSignatures
*/
/**
@@ -28620,11 +28577,6 @@
* @param {google.api.IDotnetSettings=} [properties] Properties to set
*/
function DotnetSettings(properties) {
- this.renamedServices = {};
- this.renamedResources = {};
- this.ignoredResources = [];
- this.forcedNamespaceAliases = [];
- this.handwrittenSignatures = [];
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -28639,46 +28591,6 @@
*/
DotnetSettings.prototype.common = null;
- /**
- * DotnetSettings renamedServices.
- * @member {Object.} renamedServices
- * @memberof google.api.DotnetSettings
- * @instance
- */
- DotnetSettings.prototype.renamedServices = $util.emptyObject;
-
- /**
- * DotnetSettings renamedResources.
- * @member {Object.} renamedResources
- * @memberof google.api.DotnetSettings
- * @instance
- */
- DotnetSettings.prototype.renamedResources = $util.emptyObject;
-
- /**
- * DotnetSettings ignoredResources.
- * @member {Array.} ignoredResources
- * @memberof google.api.DotnetSettings
- * @instance
- */
- DotnetSettings.prototype.ignoredResources = $util.emptyArray;
-
- /**
- * DotnetSettings forcedNamespaceAliases.
- * @member {Array.} forcedNamespaceAliases
- * @memberof google.api.DotnetSettings
- * @instance
- */
- DotnetSettings.prototype.forcedNamespaceAliases = $util.emptyArray;
-
- /**
- * DotnetSettings handwrittenSignatures.
- * @member {Array.} handwrittenSignatures
- * @memberof google.api.DotnetSettings
- * @instance
- */
- DotnetSettings.prototype.handwrittenSignatures = $util.emptyArray;
-
/**
* Creates a new DotnetSettings instance using the specified properties.
* @function create
@@ -28705,21 +28617,6 @@
writer = $Writer.create();
if (message.common != null && Object.hasOwnProperty.call(message, "common"))
$root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
- if (message.renamedServices != null && Object.hasOwnProperty.call(message, "renamedServices"))
- for (var keys = Object.keys(message.renamedServices), i = 0; i < keys.length; ++i)
- writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.renamedServices[keys[i]]).ldelim();
- if (message.renamedResources != null && Object.hasOwnProperty.call(message, "renamedResources"))
- for (var keys = Object.keys(message.renamedResources), i = 0; i < keys.length; ++i)
- writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.renamedResources[keys[i]]).ldelim();
- if (message.ignoredResources != null && message.ignoredResources.length)
- for (var i = 0; i < message.ignoredResources.length; ++i)
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.ignoredResources[i]);
- if (message.forcedNamespaceAliases != null && message.forcedNamespaceAliases.length)
- for (var i = 0; i < message.forcedNamespaceAliases.length; ++i)
- writer.uint32(/* id 5, wireType 2 =*/42).string(message.forcedNamespaceAliases[i]);
- if (message.handwrittenSignatures != null && message.handwrittenSignatures.length)
- for (var i = 0; i < message.handwrittenSignatures.length; ++i)
- writer.uint32(/* id 6, wireType 2 =*/50).string(message.handwrittenSignatures[i]);
return writer;
};
@@ -28750,7 +28647,7 @@
DotnetSettings.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.api.DotnetSettings(), key, value;
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.DotnetSettings();
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
@@ -28758,70 +28655,6 @@
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
break;
}
- case 2: {
- if (message.renamedServices === $util.emptyObject)
- message.renamedServices = {};
- var end2 = reader.uint32() + reader.pos;
- key = "";
- value = "";
- while (reader.pos < end2) {
- var tag2 = reader.uint32();
- switch (tag2 >>> 3) {
- case 1:
- key = reader.string();
- break;
- case 2:
- value = reader.string();
- break;
- default:
- reader.skipType(tag2 & 7);
- break;
- }
- }
- message.renamedServices[key] = value;
- break;
- }
- case 3: {
- if (message.renamedResources === $util.emptyObject)
- message.renamedResources = {};
- var end2 = reader.uint32() + reader.pos;
- key = "";
- value = "";
- while (reader.pos < end2) {
- var tag2 = reader.uint32();
- switch (tag2 >>> 3) {
- case 1:
- key = reader.string();
- break;
- case 2:
- value = reader.string();
- break;
- default:
- reader.skipType(tag2 & 7);
- break;
- }
- }
- message.renamedResources[key] = value;
- break;
- }
- case 4: {
- if (!(message.ignoredResources && message.ignoredResources.length))
- message.ignoredResources = [];
- message.ignoredResources.push(reader.string());
- break;
- }
- case 5: {
- if (!(message.forcedNamespaceAliases && message.forcedNamespaceAliases.length))
- message.forcedNamespaceAliases = [];
- message.forcedNamespaceAliases.push(reader.string());
- break;
- }
- case 6: {
- if (!(message.handwrittenSignatures && message.handwrittenSignatures.length))
- message.handwrittenSignatures = [];
- message.handwrittenSignatures.push(reader.string());
- break;
- }
default:
reader.skipType(tag & 7);
break;
@@ -28862,43 +28695,6 @@
if (error)
return "common." + error;
}
- if (message.renamedServices != null && message.hasOwnProperty("renamedServices")) {
- if (!$util.isObject(message.renamedServices))
- return "renamedServices: object expected";
- var key = Object.keys(message.renamedServices);
- for (var i = 0; i < key.length; ++i)
- if (!$util.isString(message.renamedServices[key[i]]))
- return "renamedServices: string{k:string} expected";
- }
- if (message.renamedResources != null && message.hasOwnProperty("renamedResources")) {
- if (!$util.isObject(message.renamedResources))
- return "renamedResources: object expected";
- var key = Object.keys(message.renamedResources);
- for (var i = 0; i < key.length; ++i)
- if (!$util.isString(message.renamedResources[key[i]]))
- return "renamedResources: string{k:string} expected";
- }
- if (message.ignoredResources != null && message.hasOwnProperty("ignoredResources")) {
- if (!Array.isArray(message.ignoredResources))
- return "ignoredResources: array expected";
- for (var i = 0; i < message.ignoredResources.length; ++i)
- if (!$util.isString(message.ignoredResources[i]))
- return "ignoredResources: string[] expected";
- }
- if (message.forcedNamespaceAliases != null && message.hasOwnProperty("forcedNamespaceAliases")) {
- if (!Array.isArray(message.forcedNamespaceAliases))
- return "forcedNamespaceAliases: array expected";
- for (var i = 0; i < message.forcedNamespaceAliases.length; ++i)
- if (!$util.isString(message.forcedNamespaceAliases[i]))
- return "forcedNamespaceAliases: string[] expected";
- }
- if (message.handwrittenSignatures != null && message.hasOwnProperty("handwrittenSignatures")) {
- if (!Array.isArray(message.handwrittenSignatures))
- return "handwrittenSignatures: array expected";
- for (var i = 0; i < message.handwrittenSignatures.length; ++i)
- if (!$util.isString(message.handwrittenSignatures[i]))
- return "handwrittenSignatures: string[] expected";
- }
return null;
};
@@ -28919,41 +28715,6 @@
throw TypeError(".google.api.DotnetSettings.common: object expected");
message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
}
- if (object.renamedServices) {
- if (typeof object.renamedServices !== "object")
- throw TypeError(".google.api.DotnetSettings.renamedServices: object expected");
- message.renamedServices = {};
- for (var keys = Object.keys(object.renamedServices), i = 0; i < keys.length; ++i)
- message.renamedServices[keys[i]] = String(object.renamedServices[keys[i]]);
- }
- if (object.renamedResources) {
- if (typeof object.renamedResources !== "object")
- throw TypeError(".google.api.DotnetSettings.renamedResources: object expected");
- message.renamedResources = {};
- for (var keys = Object.keys(object.renamedResources), i = 0; i < keys.length; ++i)
- message.renamedResources[keys[i]] = String(object.renamedResources[keys[i]]);
- }
- if (object.ignoredResources) {
- if (!Array.isArray(object.ignoredResources))
- throw TypeError(".google.api.DotnetSettings.ignoredResources: array expected");
- message.ignoredResources = [];
- for (var i = 0; i < object.ignoredResources.length; ++i)
- message.ignoredResources[i] = String(object.ignoredResources[i]);
- }
- if (object.forcedNamespaceAliases) {
- if (!Array.isArray(object.forcedNamespaceAliases))
- throw TypeError(".google.api.DotnetSettings.forcedNamespaceAliases: array expected");
- message.forcedNamespaceAliases = [];
- for (var i = 0; i < object.forcedNamespaceAliases.length; ++i)
- message.forcedNamespaceAliases[i] = String(object.forcedNamespaceAliases[i]);
- }
- if (object.handwrittenSignatures) {
- if (!Array.isArray(object.handwrittenSignatures))
- throw TypeError(".google.api.DotnetSettings.handwrittenSignatures: array expected");
- message.handwrittenSignatures = [];
- for (var i = 0; i < object.handwrittenSignatures.length; ++i)
- message.handwrittenSignatures[i] = String(object.handwrittenSignatures[i]);
- }
return message;
};
@@ -28970,45 +28731,10 @@
if (!options)
options = {};
var object = {};
- if (options.arrays || options.defaults) {
- object.ignoredResources = [];
- object.forcedNamespaceAliases = [];
- object.handwrittenSignatures = [];
- }
- if (options.objects || options.defaults) {
- object.renamedServices = {};
- object.renamedResources = {};
- }
if (options.defaults)
object.common = null;
if (message.common != null && message.hasOwnProperty("common"))
object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
- var keys2;
- if (message.renamedServices && (keys2 = Object.keys(message.renamedServices)).length) {
- object.renamedServices = {};
- for (var j = 0; j < keys2.length; ++j)
- object.renamedServices[keys2[j]] = message.renamedServices[keys2[j]];
- }
- if (message.renamedResources && (keys2 = Object.keys(message.renamedResources)).length) {
- object.renamedResources = {};
- for (var j = 0; j < keys2.length; ++j)
- object.renamedResources[keys2[j]] = message.renamedResources[keys2[j]];
- }
- if (message.ignoredResources && message.ignoredResources.length) {
- object.ignoredResources = [];
- for (var j = 0; j < message.ignoredResources.length; ++j)
- object.ignoredResources[j] = message.ignoredResources[j];
- }
- if (message.forcedNamespaceAliases && message.forcedNamespaceAliases.length) {
- object.forcedNamespaceAliases = [];
- for (var j = 0; j < message.forcedNamespaceAliases.length; ++j)
- object.forcedNamespaceAliases[j] = message.forcedNamespaceAliases[j];
- }
- if (message.handwrittenSignatures && message.handwrittenSignatures.length) {
- object.handwrittenSignatures = [];
- for (var j = 0; j < message.handwrittenSignatures.length; ++j)
- object.handwrittenSignatures[j] = message.handwrittenSignatures[j];
- }
return object;
};
@@ -29986,9 +29712,6 @@
* @property {number} ADS=2 ADS value
* @property {number} PHOTOS=3 PHOTOS value
* @property {number} STREET_VIEW=4 STREET_VIEW value
- * @property {number} SHOPPING=5 SHOPPING value
- * @property {number} GEO=6 GEO value
- * @property {number} GENERATIVE_AI=7 GENERATIVE_AI value
*/
api.ClientLibraryOrganization = (function() {
var valuesById = {}, values = Object.create(valuesById);
@@ -29997,9 +29720,6 @@
values[valuesById[2] = "ADS"] = 2;
values[valuesById[3] = "PHOTOS"] = 3;
values[valuesById[4] = "STREET_VIEW"] = 4;
- values[valuesById[5] = "SHOPPING"] = 5;
- values[valuesById[6] = "GEO"] = 6;
- values[valuesById[7] = "GENERATIVE_AI"] = 7;
return values;
})();
@@ -31959,9 +31679,6 @@
* @memberof google.protobuf
* @interface IExtensionRangeOptions
* @property {Array.|null} [uninterpretedOption] ExtensionRangeOptions uninterpretedOption
- * @property {Array.|null} [declaration] ExtensionRangeOptions declaration
- * @property {google.protobuf.IFeatureSet|null} [features] ExtensionRangeOptions features
- * @property {google.protobuf.ExtensionRangeOptions.VerificationState|null} [verification] ExtensionRangeOptions verification
*/
/**
@@ -31974,7 +31691,6 @@
*/
function ExtensionRangeOptions(properties) {
this.uninterpretedOption = [];
- this.declaration = [];
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -31989,30 +31705,6 @@
*/
ExtensionRangeOptions.prototype.uninterpretedOption = $util.emptyArray;
- /**
- * ExtensionRangeOptions declaration.
- * @member {Array.} declaration
- * @memberof google.protobuf.ExtensionRangeOptions
- * @instance
- */
- ExtensionRangeOptions.prototype.declaration = $util.emptyArray;
-
- /**
- * ExtensionRangeOptions features.
- * @member {google.protobuf.IFeatureSet|null|undefined} features
- * @memberof google.protobuf.ExtensionRangeOptions
- * @instance
- */
- ExtensionRangeOptions.prototype.features = null;
-
- /**
- * ExtensionRangeOptions verification.
- * @member {google.protobuf.ExtensionRangeOptions.VerificationState} verification
- * @memberof google.protobuf.ExtensionRangeOptions
- * @instance
- */
- ExtensionRangeOptions.prototype.verification = 1;
-
/**
* Creates a new ExtensionRangeOptions instance using the specified properties.
* @function create
@@ -32037,13 +31729,6 @@
ExtensionRangeOptions.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
- if (message.declaration != null && message.declaration.length)
- for (var i = 0; i < message.declaration.length; ++i)
- $root.google.protobuf.ExtensionRangeOptions.Declaration.encode(message.declaration[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- if (message.verification != null && Object.hasOwnProperty.call(message, "verification"))
- writer.uint32(/* id 3, wireType 0 =*/24).int32(message.verification);
- if (message.features != null && Object.hasOwnProperty.call(message, "features"))
- $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 50, wireType 2 =*/402).fork()).ldelim();
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();
@@ -32087,20 +31772,6 @@
message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32()));
break;
}
- case 2: {
- if (!(message.declaration && message.declaration.length))
- message.declaration = [];
- message.declaration.push($root.google.protobuf.ExtensionRangeOptions.Declaration.decode(reader, reader.uint32()));
- break;
- }
- case 50: {
- message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
- break;
- }
- case 3: {
- message.verification = reader.int32();
- break;
- }
default:
reader.skipType(tag & 7);
break;
@@ -32145,28 +31816,6 @@
return "uninterpretedOption." + error;
}
}
- if (message.declaration != null && message.hasOwnProperty("declaration")) {
- if (!Array.isArray(message.declaration))
- return "declaration: array expected";
- for (var i = 0; i < message.declaration.length; ++i) {
- var error = $root.google.protobuf.ExtensionRangeOptions.Declaration.verify(message.declaration[i]);
- if (error)
- return "declaration." + error;
- }
- }
- if (message.features != null && message.hasOwnProperty("features")) {
- var error = $root.google.protobuf.FeatureSet.verify(message.features);
- if (error)
- return "features." + error;
- }
- if (message.verification != null && message.hasOwnProperty("verification"))
- switch (message.verification) {
- default:
- return "verification: enum value expected";
- case 0:
- case 1:
- break;
- }
return null;
};
@@ -32192,37 +31841,6 @@
message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]);
}
}
- if (object.declaration) {
- if (!Array.isArray(object.declaration))
- throw TypeError(".google.protobuf.ExtensionRangeOptions.declaration: array expected");
- message.declaration = [];
- for (var i = 0; i < object.declaration.length; ++i) {
- if (typeof object.declaration[i] !== "object")
- throw TypeError(".google.protobuf.ExtensionRangeOptions.declaration: object expected");
- message.declaration[i] = $root.google.protobuf.ExtensionRangeOptions.Declaration.fromObject(object.declaration[i]);
- }
- }
- if (object.features != null) {
- if (typeof object.features !== "object")
- throw TypeError(".google.protobuf.ExtensionRangeOptions.features: object expected");
- message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
- }
- switch (object.verification) {
- case "DECLARATION":
- case 0:
- message.verification = 0;
- break;
- default:
- if (typeof object.verification === "number") {
- message.verification = object.verification;
- break;
- }
- break;
- case "UNVERIFIED":
- case 1:
- message.verification = 1;
- break;
- }
return message;
};
@@ -32239,23 +31857,8 @@
if (!options)
options = {};
var object = {};
- if (options.arrays || options.defaults) {
- object.declaration = [];
+ if (options.arrays || options.defaults)
object.uninterpretedOption = [];
- }
- if (options.defaults) {
- object.verification = options.enums === String ? "UNVERIFIED" : 1;
- object.features = null;
- }
- if (message.declaration && message.declaration.length) {
- object.declaration = [];
- for (var j = 0; j < message.declaration.length; ++j)
- object.declaration[j] = $root.google.protobuf.ExtensionRangeOptions.Declaration.toObject(message.declaration[j], options);
- }
- if (message.verification != null && message.hasOwnProperty("verification"))
- object.verification = options.enums === String ? $root.google.protobuf.ExtensionRangeOptions.VerificationState[message.verification] === undefined ? message.verification : $root.google.protobuf.ExtensionRangeOptions.VerificationState[message.verification] : message.verification;
- if (message.features != null && message.hasOwnProperty("features"))
- object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
if (message.uninterpretedOption && message.uninterpretedOption.length) {
object.uninterpretedOption = [];
for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -32290,392 +31893,82 @@
return typeUrlPrefix + "/google.protobuf.ExtensionRangeOptions";
};
- ExtensionRangeOptions.Declaration = (function() {
+ return ExtensionRangeOptions;
+ })();
- /**
- * Properties of a Declaration.
- * @memberof google.protobuf.ExtensionRangeOptions
- * @interface IDeclaration
- * @property {number|null} [number] Declaration number
- * @property {string|null} [fullName] Declaration fullName
- * @property {string|null} [type] Declaration type
- * @property {boolean|null} [reserved] Declaration reserved
- * @property {boolean|null} [repeated] Declaration repeated
- */
+ protobuf.FieldDescriptorProto = (function() {
- /**
- * Constructs a new Declaration.
- * @memberof google.protobuf.ExtensionRangeOptions
- * @classdesc Represents a Declaration.
- * @implements IDeclaration
- * @constructor
- * @param {google.protobuf.ExtensionRangeOptions.IDeclaration=} [properties] Properties to set
- */
- function Declaration(properties) {
- 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]];
- }
+ /**
+ * Properties of a FieldDescriptorProto.
+ * @memberof google.protobuf
+ * @interface IFieldDescriptorProto
+ * @property {string|null} [name] FieldDescriptorProto name
+ * @property {number|null} [number] FieldDescriptorProto number
+ * @property {google.protobuf.FieldDescriptorProto.Label|null} [label] FieldDescriptorProto label
+ * @property {google.protobuf.FieldDescriptorProto.Type|null} [type] FieldDescriptorProto type
+ * @property {string|null} [typeName] FieldDescriptorProto typeName
+ * @property {string|null} [extendee] FieldDescriptorProto extendee
+ * @property {string|null} [defaultValue] FieldDescriptorProto defaultValue
+ * @property {number|null} [oneofIndex] FieldDescriptorProto oneofIndex
+ * @property {string|null} [jsonName] FieldDescriptorProto jsonName
+ * @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options
+ * @property {boolean|null} [proto3Optional] FieldDescriptorProto proto3Optional
+ */
- /**
- * Declaration number.
- * @member {number} number
- * @memberof google.protobuf.ExtensionRangeOptions.Declaration
- * @instance
- */
- Declaration.prototype.number = 0;
+ /**
+ * Constructs a new FieldDescriptorProto.
+ * @memberof google.protobuf
+ * @classdesc Represents a FieldDescriptorProto.
+ * @implements IFieldDescriptorProto
+ * @constructor
+ * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set
+ */
+ function FieldDescriptorProto(properties) {
+ 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]];
+ }
- /**
- * Declaration fullName.
- * @member {string} fullName
- * @memberof google.protobuf.ExtensionRangeOptions.Declaration
- * @instance
- */
- Declaration.prototype.fullName = "";
+ /**
+ * FieldDescriptorProto name.
+ * @member {string} name
+ * @memberof google.protobuf.FieldDescriptorProto
+ * @instance
+ */
+ FieldDescriptorProto.prototype.name = "";
- /**
- * Declaration type.
- * @member {string} type
- * @memberof google.protobuf.ExtensionRangeOptions.Declaration
- * @instance
- */
- Declaration.prototype.type = "";
+ /**
+ * FieldDescriptorProto number.
+ * @member {number} number
+ * @memberof google.protobuf.FieldDescriptorProto
+ * @instance
+ */
+ FieldDescriptorProto.prototype.number = 0;
- /**
- * Declaration reserved.
- * @member {boolean} reserved
- * @memberof google.protobuf.ExtensionRangeOptions.Declaration
- * @instance
- */
- Declaration.prototype.reserved = false;
+ /**
+ * FieldDescriptorProto label.
+ * @member {google.protobuf.FieldDescriptorProto.Label} label
+ * @memberof google.protobuf.FieldDescriptorProto
+ * @instance
+ */
+ FieldDescriptorProto.prototype.label = 1;
- /**
- * Declaration repeated.
- * @member {boolean} repeated
- * @memberof google.protobuf.ExtensionRangeOptions.Declaration
- * @instance
- */
- Declaration.prototype.repeated = false;
+ /**
+ * FieldDescriptorProto type.
+ * @member {google.protobuf.FieldDescriptorProto.Type} type
+ * @memberof google.protobuf.FieldDescriptorProto
+ * @instance
+ */
+ FieldDescriptorProto.prototype.type = 1;
- /**
- * Creates a new Declaration instance using the specified properties.
- * @function create
- * @memberof google.protobuf.ExtensionRangeOptions.Declaration
- * @static
- * @param {google.protobuf.ExtensionRangeOptions.IDeclaration=} [properties] Properties to set
- * @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration instance
- */
- Declaration.create = function create(properties) {
- return new Declaration(properties);
- };
-
- /**
- * Encodes the specified Declaration message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages.
- * @function encode
- * @memberof google.protobuf.ExtensionRangeOptions.Declaration
- * @static
- * @param {google.protobuf.ExtensionRangeOptions.IDeclaration} message Declaration message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- Declaration.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.number != null && Object.hasOwnProperty.call(message, "number"))
- writer.uint32(/* id 1, wireType 0 =*/8).int32(message.number);
- if (message.fullName != null && Object.hasOwnProperty.call(message, "fullName"))
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.fullName);
- if (message.type != null && Object.hasOwnProperty.call(message, "type"))
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.type);
- if (message.reserved != null && Object.hasOwnProperty.call(message, "reserved"))
- writer.uint32(/* id 5, wireType 0 =*/40).bool(message.reserved);
- if (message.repeated != null && Object.hasOwnProperty.call(message, "repeated"))
- writer.uint32(/* id 6, wireType 0 =*/48).bool(message.repeated);
- return writer;
- };
-
- /**
- * Encodes the specified Declaration message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages.
- * @function encodeDelimited
- * @memberof google.protobuf.ExtensionRangeOptions.Declaration
- * @static
- * @param {google.protobuf.ExtensionRangeOptions.IDeclaration} message Declaration message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- Declaration.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
-
- /**
- * Decodes a Declaration message from the specified reader or buffer.
- * @function decode
- * @memberof google.protobuf.ExtensionRangeOptions.Declaration
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- Declaration.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.ExtensionRangeOptions.Declaration();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1: {
- message.number = reader.int32();
- break;
- }
- case 2: {
- message.fullName = reader.string();
- break;
- }
- case 3: {
- message.type = reader.string();
- break;
- }
- case 5: {
- message.reserved = reader.bool();
- break;
- }
- case 6: {
- message.repeated = reader.bool();
- break;
- }
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
-
- /**
- * Decodes a Declaration message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof google.protobuf.ExtensionRangeOptions.Declaration
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- Declaration.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
-
- /**
- * Verifies a Declaration message.
- * @function verify
- * @memberof google.protobuf.ExtensionRangeOptions.Declaration
- * @static
- * @param {Object.} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- Declaration.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.number != null && message.hasOwnProperty("number"))
- if (!$util.isInteger(message.number))
- return "number: integer expected";
- if (message.fullName != null && message.hasOwnProperty("fullName"))
- if (!$util.isString(message.fullName))
- return "fullName: string expected";
- if (message.type != null && message.hasOwnProperty("type"))
- if (!$util.isString(message.type))
- return "type: string expected";
- if (message.reserved != null && message.hasOwnProperty("reserved"))
- if (typeof message.reserved !== "boolean")
- return "reserved: boolean expected";
- if (message.repeated != null && message.hasOwnProperty("repeated"))
- if (typeof message.repeated !== "boolean")
- return "repeated: boolean expected";
- return null;
- };
-
- /**
- * Creates a Declaration message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof google.protobuf.ExtensionRangeOptions.Declaration
- * @static
- * @param {Object.} object Plain object
- * @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration
- */
- Declaration.fromObject = function fromObject(object) {
- if (object instanceof $root.google.protobuf.ExtensionRangeOptions.Declaration)
- return object;
- var message = new $root.google.protobuf.ExtensionRangeOptions.Declaration();
- if (object.number != null)
- message.number = object.number | 0;
- if (object.fullName != null)
- message.fullName = String(object.fullName);
- if (object.type != null)
- message.type = String(object.type);
- if (object.reserved != null)
- message.reserved = Boolean(object.reserved);
- if (object.repeated != null)
- message.repeated = Boolean(object.repeated);
- return message;
- };
-
- /**
- * Creates a plain object from a Declaration message. Also converts values to other types if specified.
- * @function toObject
- * @memberof google.protobuf.ExtensionRangeOptions.Declaration
- * @static
- * @param {google.protobuf.ExtensionRangeOptions.Declaration} message Declaration
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.} Plain object
- */
- Declaration.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults) {
- object.number = 0;
- object.fullName = "";
- object.type = "";
- object.reserved = false;
- object.repeated = false;
- }
- if (message.number != null && message.hasOwnProperty("number"))
- object.number = message.number;
- if (message.fullName != null && message.hasOwnProperty("fullName"))
- object.fullName = message.fullName;
- if (message.type != null && message.hasOwnProperty("type"))
- object.type = message.type;
- if (message.reserved != null && message.hasOwnProperty("reserved"))
- object.reserved = message.reserved;
- if (message.repeated != null && message.hasOwnProperty("repeated"))
- object.repeated = message.repeated;
- return object;
- };
-
- /**
- * Converts this Declaration to JSON.
- * @function toJSON
- * @memberof google.protobuf.ExtensionRangeOptions.Declaration
- * @instance
- * @returns {Object.} JSON object
- */
- Declaration.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
-
- /**
- * Gets the default type url for Declaration
- * @function getTypeUrl
- * @memberof google.protobuf.ExtensionRangeOptions.Declaration
- * @static
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns {string} The default type url
- */
- Declaration.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
- if (typeUrlPrefix === undefined) {
- typeUrlPrefix = "type.googleapis.com";
- }
- return typeUrlPrefix + "/google.protobuf.ExtensionRangeOptions.Declaration";
- };
-
- return Declaration;
- })();
-
- /**
- * VerificationState enum.
- * @name google.protobuf.ExtensionRangeOptions.VerificationState
- * @enum {number}
- * @property {number} DECLARATION=0 DECLARATION value
- * @property {number} UNVERIFIED=1 UNVERIFIED value
- */
- ExtensionRangeOptions.VerificationState = (function() {
- var valuesById = {}, values = Object.create(valuesById);
- values[valuesById[0] = "DECLARATION"] = 0;
- values[valuesById[1] = "UNVERIFIED"] = 1;
- return values;
- })();
-
- return ExtensionRangeOptions;
- })();
-
- protobuf.FieldDescriptorProto = (function() {
-
- /**
- * Properties of a FieldDescriptorProto.
- * @memberof google.protobuf
- * @interface IFieldDescriptorProto
- * @property {string|null} [name] FieldDescriptorProto name
- * @property {number|null} [number] FieldDescriptorProto number
- * @property {google.protobuf.FieldDescriptorProto.Label|null} [label] FieldDescriptorProto label
- * @property {google.protobuf.FieldDescriptorProto.Type|null} [type] FieldDescriptorProto type
- * @property {string|null} [typeName] FieldDescriptorProto typeName
- * @property {string|null} [extendee] FieldDescriptorProto extendee
- * @property {string|null} [defaultValue] FieldDescriptorProto defaultValue
- * @property {number|null} [oneofIndex] FieldDescriptorProto oneofIndex
- * @property {string|null} [jsonName] FieldDescriptorProto jsonName
- * @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options
- * @property {boolean|null} [proto3Optional] FieldDescriptorProto proto3Optional
- */
-
- /**
- * Constructs a new FieldDescriptorProto.
- * @memberof google.protobuf
- * @classdesc Represents a FieldDescriptorProto.
- * @implements IFieldDescriptorProto
- * @constructor
- * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set
- */
- function FieldDescriptorProto(properties) {
- 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]];
- }
-
- /**
- * FieldDescriptorProto name.
- * @member {string} name
- * @memberof google.protobuf.FieldDescriptorProto
- * @instance
- */
- FieldDescriptorProto.prototype.name = "";
-
- /**
- * FieldDescriptorProto number.
- * @member {number} number
- * @memberof google.protobuf.FieldDescriptorProto
- * @instance
- */
- FieldDescriptorProto.prototype.number = 0;
-
- /**
- * FieldDescriptorProto label.
- * @member {google.protobuf.FieldDescriptorProto.Label} label
- * @memberof google.protobuf.FieldDescriptorProto
- * @instance
- */
- FieldDescriptorProto.prototype.label = 1;
-
- /**
- * FieldDescriptorProto type.
- * @member {google.protobuf.FieldDescriptorProto.Type} type
- * @memberof google.protobuf.FieldDescriptorProto
- * @instance
- */
- FieldDescriptorProto.prototype.type = 1;
-
- /**
- * FieldDescriptorProto typeName.
- * @member {string} typeName
- * @memberof google.protobuf.FieldDescriptorProto
- * @instance
- */
- FieldDescriptorProto.prototype.typeName = "";
+ /**
+ * FieldDescriptorProto typeName.
+ * @member {string} typeName
+ * @memberof google.protobuf.FieldDescriptorProto
+ * @instance
+ */
+ FieldDescriptorProto.prototype.typeName = "";
/**
* FieldDescriptorProto extendee.
@@ -34929,7 +34222,6 @@
* @property {string|null} [phpNamespace] FileOptions phpNamespace
* @property {string|null} [phpMetadataNamespace] FileOptions phpMetadataNamespace
* @property {string|null} [rubyPackage] FileOptions rubyPackage
- * @property {google.protobuf.IFeatureSet|null} [features] FileOptions features
* @property {Array.|null} [uninterpretedOption] FileOptions uninterpretedOption
* @property {Array.|null} [".google.api.resourceDefinition"] FileOptions .google.api.resourceDefinition
*/
@@ -35111,14 +34403,6 @@
*/
FileOptions.prototype.rubyPackage = "";
- /**
- * FileOptions features.
- * @member {google.protobuf.IFeatureSet|null|undefined} features
- * @memberof google.protobuf.FileOptions
- * @instance
- */
- FileOptions.prototype.features = null;
-
/**
* FileOptions uninterpretedOption.
* @member {Array.} uninterpretedOption
@@ -35199,8 +34483,6 @@
writer.uint32(/* id 44, wireType 2 =*/354).string(message.phpMetadataNamespace);
if (message.rubyPackage != null && Object.hasOwnProperty.call(message, "rubyPackage"))
writer.uint32(/* id 45, wireType 2 =*/362).string(message.rubyPackage);
- if (message.features != null && Object.hasOwnProperty.call(message, "features"))
- $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 50, wireType 2 =*/402).fork()).ldelim();
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();
@@ -35321,10 +34603,6 @@
message.rubyPackage = reader.string();
break;
}
- case 50: {
- message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
- break;
- }
case 999: {
if (!(message.uninterpretedOption && message.uninterpretedOption.length))
message.uninterpretedOption = [];
@@ -35438,11 +34716,6 @@
if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage"))
if (!$util.isString(message.rubyPackage))
return "rubyPackage: string expected";
- if (message.features != null && message.hasOwnProperty("features")) {
- var error = $root.google.protobuf.FeatureSet.verify(message.features);
- if (error)
- return "features." + error;
- }
if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
if (!Array.isArray(message.uninterpretedOption))
return "uninterpretedOption: array expected";
@@ -35534,11 +34807,6 @@
message.phpMetadataNamespace = String(object.phpMetadataNamespace);
if (object.rubyPackage != null)
message.rubyPackage = String(object.rubyPackage);
- if (object.features != null) {
- if (typeof object.features !== "object")
- throw TypeError(".google.protobuf.FileOptions.features: object expected");
- message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
- }
if (object.uninterpretedOption) {
if (!Array.isArray(object.uninterpretedOption))
throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: array expected");
@@ -35600,7 +34868,6 @@
object.phpGenericServices = false;
object.phpMetadataNamespace = "";
object.rubyPackage = "";
- object.features = null;
}
if (message.javaPackage != null && message.hasOwnProperty("javaPackage"))
object.javaPackage = message.javaPackage;
@@ -35642,8 +34909,6 @@
object.phpMetadataNamespace = message.phpMetadataNamespace;
if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage"))
object.rubyPackage = message.rubyPackage;
- if (message.features != null && message.hasOwnProperty("features"))
- object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
if (message.uninterpretedOption && message.uninterpretedOption.length) {
object.uninterpretedOption = [];
for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -35713,7 +34978,6 @@
* @property {boolean|null} [deprecated] MessageOptions deprecated
* @property {boolean|null} [mapEntry] MessageOptions mapEntry
* @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] MessageOptions deprecatedLegacyJsonFieldConflicts
- * @property {google.protobuf.IFeatureSet|null} [features] MessageOptions features
* @property {Array.|null} [uninterpretedOption] MessageOptions uninterpretedOption
* @property {google.api.IResourceDescriptor|null} [".google.api.resource"] MessageOptions .google.api.resource
*/
@@ -35774,14 +35038,6 @@
*/
MessageOptions.prototype.deprecatedLegacyJsonFieldConflicts = false;
- /**
- * MessageOptions features.
- * @member {google.protobuf.IFeatureSet|null|undefined} features
- * @memberof google.protobuf.MessageOptions
- * @instance
- */
- MessageOptions.prototype.features = null;
-
/**
* MessageOptions uninterpretedOption.
* @member {Array.} uninterpretedOption
@@ -35832,8 +35088,6 @@
writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry);
if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts"))
writer.uint32(/* id 11, wireType 0 =*/88).bool(message.deprecatedLegacyJsonFieldConflicts);
- if (message.features != null && Object.hasOwnProperty.call(message, "features"))
- $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
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();
@@ -35893,10 +35147,6 @@
message.deprecatedLegacyJsonFieldConflicts = reader.bool();
break;
}
- case 12: {
- message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
- break;
- }
case 999: {
if (!(message.uninterpretedOption && message.uninterpretedOption.length))
message.uninterpretedOption = [];
@@ -35957,11 +35207,6 @@
if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean")
return "deprecatedLegacyJsonFieldConflicts: boolean expected";
- if (message.features != null && message.hasOwnProperty("features")) {
- var error = $root.google.protobuf.FeatureSet.verify(message.features);
- if (error)
- return "features." + error;
- }
if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
if (!Array.isArray(message.uninterpretedOption))
return "uninterpretedOption: array expected";
@@ -36001,11 +35246,6 @@
message.mapEntry = Boolean(object.mapEntry);
if (object.deprecatedLegacyJsonFieldConflicts != null)
message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts);
- if (object.features != null) {
- if (typeof object.features !== "object")
- throw TypeError(".google.protobuf.MessageOptions.features: object expected");
- message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
- }
if (object.uninterpretedOption) {
if (!Array.isArray(object.uninterpretedOption))
throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected");
@@ -36045,7 +35285,6 @@
object.deprecated = false;
object.mapEntry = false;
object.deprecatedLegacyJsonFieldConflicts = false;
- object.features = null;
object[".google.api.resource"] = null;
}
if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat"))
@@ -36058,8 +35297,6 @@
object.mapEntry = message.mapEntry;
if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
- if (message.features != null && message.hasOwnProperty("features"))
- object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
if (message.uninterpretedOption && message.uninterpretedOption.length) {
object.uninterpretedOption = [];
for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -36114,9 +35351,7 @@
* @property {boolean|null} [weak] FieldOptions weak
* @property {boolean|null} [debugRedact] FieldOptions debugRedact
* @property {google.protobuf.FieldOptions.OptionRetention|null} [retention] FieldOptions retention
- * @property {Array.|null} [targets] FieldOptions targets
- * @property {Array.|null} [editionDefaults] FieldOptions editionDefaults
- * @property {google.protobuf.IFeatureSet|null} [features] FieldOptions features
+ * @property {google.protobuf.FieldOptions.OptionTargetType|null} [target] FieldOptions target
* @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption
* @property {Array.|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior
* @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference
@@ -36131,8 +35366,6 @@
* @param {google.protobuf.IFieldOptions=} [properties] Properties to set
*/
function FieldOptions(properties) {
- this.targets = [];
- this.editionDefaults = [];
this.uninterpretedOption = [];
this[".google.api.fieldBehavior"] = [];
if (properties)
@@ -36214,28 +35447,12 @@
FieldOptions.prototype.retention = 0;
/**
- * FieldOptions targets.
- * @member {Array.} targets
- * @memberof google.protobuf.FieldOptions
- * @instance
- */
- FieldOptions.prototype.targets = $util.emptyArray;
-
- /**
- * FieldOptions editionDefaults.
- * @member {Array.} editionDefaults
- * @memberof google.protobuf.FieldOptions
- * @instance
- */
- FieldOptions.prototype.editionDefaults = $util.emptyArray;
-
- /**
- * FieldOptions features.
- * @member {google.protobuf.IFeatureSet|null|undefined} features
+ * FieldOptions target.
+ * @member {google.protobuf.FieldOptions.OptionTargetType} target
* @memberof google.protobuf.FieldOptions
* @instance
*/
- FieldOptions.prototype.features = null;
+ FieldOptions.prototype.target = 0;
/**
* FieldOptions uninterpretedOption.
@@ -36303,14 +35520,8 @@
writer.uint32(/* id 16, wireType 0 =*/128).bool(message.debugRedact);
if (message.retention != null && Object.hasOwnProperty.call(message, "retention"))
writer.uint32(/* id 17, wireType 0 =*/136).int32(message.retention);
- if (message.targets != null && message.targets.length)
- for (var i = 0; i < message.targets.length; ++i)
- writer.uint32(/* id 19, wireType 0 =*/152).int32(message.targets[i]);
- if (message.editionDefaults != null && message.editionDefaults.length)
- for (var i = 0; i < message.editionDefaults.length; ++i)
- $root.google.protobuf.FieldOptions.EditionDefault.encode(message.editionDefaults[i], writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
- if (message.features != null && Object.hasOwnProperty.call(message, "features"))
- $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
+ if (message.target != null && Object.hasOwnProperty.call(message, "target"))
+ writer.uint32(/* id 18, wireType 0 =*/144).int32(message.target);
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();
@@ -36392,31 +35603,14 @@
message.retention = reader.int32();
break;
}
- case 19: {
- if (!(message.targets && message.targets.length))
- message.targets = [];
- if ((tag & 7) === 2) {
- var end2 = reader.uint32() + reader.pos;
- while (reader.pos < end2)
- message.targets.push(reader.int32());
- } else
- message.targets.push(reader.int32());
+ case 18: {
+ message.target = reader.int32();
break;
}
- case 20: {
- if (!(message.editionDefaults && message.editionDefaults.length))
- message.editionDefaults = [];
- message.editionDefaults.push($root.google.protobuf.FieldOptions.EditionDefault.decode(reader, reader.uint32()));
- break;
- }
- case 21: {
- message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
- break;
- }
- case 999: {
- if (!(message.uninterpretedOption && message.uninterpretedOption.length))
- message.uninterpretedOption = [];
- message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32()));
+ case 999: {
+ if (!(message.uninterpretedOption && message.uninterpretedOption.length))
+ message.uninterpretedOption = [];
+ message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32()));
break;
}
case 1052: {
@@ -36514,40 +35708,22 @@
case 2:
break;
}
- if (message.targets != null && message.hasOwnProperty("targets")) {
- if (!Array.isArray(message.targets))
- return "targets: array expected";
- for (var i = 0; i < message.targets.length; ++i)
- switch (message.targets[i]) {
- default:
- return "targets: enum value[] expected";
- case 0:
- case 1:
- case 2:
- case 3:
- case 4:
- case 5:
- case 6:
- case 7:
- case 8:
- case 9:
- break;
- }
- }
- if (message.editionDefaults != null && message.hasOwnProperty("editionDefaults")) {
- if (!Array.isArray(message.editionDefaults))
- return "editionDefaults: array expected";
- for (var i = 0; i < message.editionDefaults.length; ++i) {
- var error = $root.google.protobuf.FieldOptions.EditionDefault.verify(message.editionDefaults[i]);
- if (error)
- return "editionDefaults." + error;
+ if (message.target != null && message.hasOwnProperty("target"))
+ switch (message.target) {
+ default:
+ return "target: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ case 6:
+ case 7:
+ case 8:
+ case 9:
+ break;
}
- }
- if (message.features != null && message.hasOwnProperty("features")) {
- var error = $root.google.protobuf.FeatureSet.verify(message.features);
- if (error)
- return "features." + error;
- }
if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
if (!Array.isArray(message.uninterpretedOption))
return "uninterpretedOption: array expected";
@@ -36667,73 +35843,53 @@
message.retention = 2;
break;
}
- if (object.targets) {
- if (!Array.isArray(object.targets))
- throw TypeError(".google.protobuf.FieldOptions.targets: array expected");
- message.targets = [];
- for (var i = 0; i < object.targets.length; ++i)
- switch (object.targets[i]) {
- default:
- if (typeof object.targets[i] === "number") {
- message.targets[i] = object.targets[i];
- break;
- }
- case "TARGET_TYPE_UNKNOWN":
- case 0:
- message.targets[i] = 0;
- break;
- case "TARGET_TYPE_FILE":
- case 1:
- message.targets[i] = 1;
- break;
- case "TARGET_TYPE_EXTENSION_RANGE":
- case 2:
- message.targets[i] = 2;
- break;
- case "TARGET_TYPE_MESSAGE":
- case 3:
- message.targets[i] = 3;
- break;
- case "TARGET_TYPE_FIELD":
- case 4:
- message.targets[i] = 4;
- break;
- case "TARGET_TYPE_ONEOF":
- case 5:
- message.targets[i] = 5;
- break;
- case "TARGET_TYPE_ENUM":
- case 6:
- message.targets[i] = 6;
- break;
- case "TARGET_TYPE_ENUM_ENTRY":
- case 7:
- message.targets[i] = 7;
- break;
- case "TARGET_TYPE_SERVICE":
- case 8:
- message.targets[i] = 8;
- break;
- case "TARGET_TYPE_METHOD":
- case 9:
- message.targets[i] = 9;
- break;
- }
- }
- if (object.editionDefaults) {
- if (!Array.isArray(object.editionDefaults))
- throw TypeError(".google.protobuf.FieldOptions.editionDefaults: array expected");
- message.editionDefaults = [];
- for (var i = 0; i < object.editionDefaults.length; ++i) {
- if (typeof object.editionDefaults[i] !== "object")
- throw TypeError(".google.protobuf.FieldOptions.editionDefaults: object expected");
- message.editionDefaults[i] = $root.google.protobuf.FieldOptions.EditionDefault.fromObject(object.editionDefaults[i]);
+ switch (object.target) {
+ default:
+ if (typeof object.target === "number") {
+ message.target = object.target;
+ break;
}
- }
- if (object.features != null) {
- if (typeof object.features !== "object")
- throw TypeError(".google.protobuf.FieldOptions.features: object expected");
- message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
+ break;
+ case "TARGET_TYPE_UNKNOWN":
+ case 0:
+ message.target = 0;
+ break;
+ case "TARGET_TYPE_FILE":
+ case 1:
+ message.target = 1;
+ break;
+ case "TARGET_TYPE_EXTENSION_RANGE":
+ case 2:
+ message.target = 2;
+ break;
+ case "TARGET_TYPE_MESSAGE":
+ case 3:
+ message.target = 3;
+ break;
+ case "TARGET_TYPE_FIELD":
+ case 4:
+ message.target = 4;
+ break;
+ case "TARGET_TYPE_ONEOF":
+ case 5:
+ message.target = 5;
+ break;
+ case "TARGET_TYPE_ENUM":
+ case 6:
+ message.target = 6;
+ break;
+ case "TARGET_TYPE_ENUM_ENTRY":
+ case 7:
+ message.target = 7;
+ break;
+ case "TARGET_TYPE_SERVICE":
+ case 8:
+ message.target = 8;
+ break;
+ case "TARGET_TYPE_METHOD":
+ case 9:
+ message.target = 9;
+ break;
}
if (object.uninterpretedOption) {
if (!Array.isArray(object.uninterpretedOption))
@@ -36812,8 +35968,6 @@
options = {};
var object = {};
if (options.arrays || options.defaults) {
- object.targets = [];
- object.editionDefaults = [];
object.uninterpretedOption = [];
object[".google.api.fieldBehavior"] = [];
}
@@ -36827,7 +35981,7 @@
object.unverifiedLazy = false;
object.debugRedact = false;
object.retention = options.enums === String ? "RETENTION_UNKNOWN" : 0;
- object.features = null;
+ object.target = options.enums === String ? "TARGET_TYPE_UNKNOWN" : 0;
object[".google.api.resourceReference"] = null;
}
if (message.ctype != null && message.hasOwnProperty("ctype"))
@@ -36848,18 +36002,8 @@
object.debugRedact = message.debugRedact;
if (message.retention != null && message.hasOwnProperty("retention"))
object.retention = options.enums === String ? $root.google.protobuf.FieldOptions.OptionRetention[message.retention] === undefined ? message.retention : $root.google.protobuf.FieldOptions.OptionRetention[message.retention] : message.retention;
- if (message.targets && message.targets.length) {
- object.targets = [];
- for (var j = 0; j < message.targets.length; ++j)
- object.targets[j] = options.enums === String ? $root.google.protobuf.FieldOptions.OptionTargetType[message.targets[j]] === undefined ? message.targets[j] : $root.google.protobuf.FieldOptions.OptionTargetType[message.targets[j]] : message.targets[j];
- }
- if (message.editionDefaults && message.editionDefaults.length) {
- object.editionDefaults = [];
- for (var j = 0; j < message.editionDefaults.length; ++j)
- object.editionDefaults[j] = $root.google.protobuf.FieldOptions.EditionDefault.toObject(message.editionDefaults[j], options);
- }
- if (message.features != null && message.hasOwnProperty("features"))
- object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
+ if (message.target != null && message.hasOwnProperty("target"))
+ object.target = options.enums === String ? $root.google.protobuf.FieldOptions.OptionTargetType[message.target] === undefined ? message.target : $root.google.protobuf.FieldOptions.OptionTargetType[message.target] : message.target;
if (message.uninterpretedOption && message.uninterpretedOption.length) {
object.uninterpretedOption = [];
for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -36979,233 +36123,6 @@
return values;
})();
- FieldOptions.EditionDefault = (function() {
-
- /**
- * Properties of an EditionDefault.
- * @memberof google.protobuf.FieldOptions
- * @interface IEditionDefault
- * @property {string|null} [edition] EditionDefault edition
- * @property {string|null} [value] EditionDefault value
- */
-
- /**
- * Constructs a new EditionDefault.
- * @memberof google.protobuf.FieldOptions
- * @classdesc Represents an EditionDefault.
- * @implements IEditionDefault
- * @constructor
- * @param {google.protobuf.FieldOptions.IEditionDefault=} [properties] Properties to set
- */
- function EditionDefault(properties) {
- 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]];
- }
-
- /**
- * EditionDefault edition.
- * @member {string} edition
- * @memberof google.protobuf.FieldOptions.EditionDefault
- * @instance
- */
- EditionDefault.prototype.edition = "";
-
- /**
- * EditionDefault value.
- * @member {string} value
- * @memberof google.protobuf.FieldOptions.EditionDefault
- * @instance
- */
- EditionDefault.prototype.value = "";
-
- /**
- * Creates a new EditionDefault instance using the specified properties.
- * @function create
- * @memberof google.protobuf.FieldOptions.EditionDefault
- * @static
- * @param {google.protobuf.FieldOptions.IEditionDefault=} [properties] Properties to set
- * @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault instance
- */
- EditionDefault.create = function create(properties) {
- return new EditionDefault(properties);
- };
-
- /**
- * Encodes the specified EditionDefault message. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages.
- * @function encode
- * @memberof google.protobuf.FieldOptions.EditionDefault
- * @static
- * @param {google.protobuf.FieldOptions.IEditionDefault} message EditionDefault message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- EditionDefault.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.edition);
- if (message.value != null && Object.hasOwnProperty.call(message, "value"))
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.value);
- return writer;
- };
-
- /**
- * Encodes the specified EditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages.
- * @function encodeDelimited
- * @memberof google.protobuf.FieldOptions.EditionDefault
- * @static
- * @param {google.protobuf.FieldOptions.IEditionDefault} message EditionDefault message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- EditionDefault.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
-
- /**
- * Decodes an EditionDefault message from the specified reader or buffer.
- * @function decode
- * @memberof google.protobuf.FieldOptions.EditionDefault
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- EditionDefault.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.FieldOptions.EditionDefault();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1: {
- message.edition = reader.string();
- break;
- }
- case 2: {
- message.value = reader.string();
- break;
- }
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
-
- /**
- * Decodes an EditionDefault message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof google.protobuf.FieldOptions.EditionDefault
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- EditionDefault.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
-
- /**
- * Verifies an EditionDefault message.
- * @function verify
- * @memberof google.protobuf.FieldOptions.EditionDefault
- * @static
- * @param {Object.} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- EditionDefault.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.edition != null && message.hasOwnProperty("edition"))
- if (!$util.isString(message.edition))
- return "edition: string expected";
- if (message.value != null && message.hasOwnProperty("value"))
- if (!$util.isString(message.value))
- return "value: string expected";
- return null;
- };
-
- /**
- * Creates an EditionDefault message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof google.protobuf.FieldOptions.EditionDefault
- * @static
- * @param {Object.} object Plain object
- * @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault
- */
- EditionDefault.fromObject = function fromObject(object) {
- if (object instanceof $root.google.protobuf.FieldOptions.EditionDefault)
- return object;
- var message = new $root.google.protobuf.FieldOptions.EditionDefault();
- if (object.edition != null)
- message.edition = String(object.edition);
- if (object.value != null)
- message.value = String(object.value);
- return message;
- };
-
- /**
- * Creates a plain object from an EditionDefault message. Also converts values to other types if specified.
- * @function toObject
- * @memberof google.protobuf.FieldOptions.EditionDefault
- * @static
- * @param {google.protobuf.FieldOptions.EditionDefault} message EditionDefault
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.} Plain object
- */
- EditionDefault.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults) {
- object.edition = "";
- object.value = "";
- }
- if (message.edition != null && message.hasOwnProperty("edition"))
- object.edition = message.edition;
- if (message.value != null && message.hasOwnProperty("value"))
- object.value = message.value;
- return object;
- };
-
- /**
- * Converts this EditionDefault to JSON.
- * @function toJSON
- * @memberof google.protobuf.FieldOptions.EditionDefault
- * @instance
- * @returns {Object.} JSON object
- */
- EditionDefault.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
-
- /**
- * Gets the default type url for EditionDefault
- * @function getTypeUrl
- * @memberof google.protobuf.FieldOptions.EditionDefault
- * @static
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns {string} The default type url
- */
- EditionDefault.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
- if (typeUrlPrefix === undefined) {
- typeUrlPrefix = "type.googleapis.com";
- }
- return typeUrlPrefix + "/google.protobuf.FieldOptions.EditionDefault";
- };
-
- return EditionDefault;
- })();
-
return FieldOptions;
})();
@@ -37215,7 +36132,6 @@
* Properties of an OneofOptions.
* @memberof google.protobuf
* @interface IOneofOptions
- * @property {google.protobuf.IFeatureSet|null} [features] OneofOptions features
* @property {Array.|null} [uninterpretedOption] OneofOptions uninterpretedOption
*/
@@ -37235,14 +36151,6 @@
this[keys[i]] = properties[keys[i]];
}
- /**
- * OneofOptions features.
- * @member {google.protobuf.IFeatureSet|null|undefined} features
- * @memberof google.protobuf.OneofOptions
- * @instance
- */
- OneofOptions.prototype.features = null;
-
/**
* OneofOptions uninterpretedOption.
* @member {Array.} uninterpretedOption
@@ -37275,8 +36183,6 @@
OneofOptions.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
- if (message.features != null && Object.hasOwnProperty.call(message, "features"))
- $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
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();
@@ -37314,10 +36220,6 @@
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
- case 1: {
- message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
- break;
- }
case 999: {
if (!(message.uninterpretedOption && message.uninterpretedOption.length))
message.uninterpretedOption = [];
@@ -37359,11 +36261,6 @@
OneofOptions.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
- if (message.features != null && message.hasOwnProperty("features")) {
- var error = $root.google.protobuf.FeatureSet.verify(message.features);
- if (error)
- return "features." + error;
- }
if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
if (!Array.isArray(message.uninterpretedOption))
return "uninterpretedOption: array expected";
@@ -37388,11 +36285,6 @@
if (object instanceof $root.google.protobuf.OneofOptions)
return object;
var message = new $root.google.protobuf.OneofOptions();
- if (object.features != null) {
- if (typeof object.features !== "object")
- throw TypeError(".google.protobuf.OneofOptions.features: object expected");
- message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
- }
if (object.uninterpretedOption) {
if (!Array.isArray(object.uninterpretedOption))
throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: array expected");
@@ -37421,10 +36313,6 @@
var object = {};
if (options.arrays || options.defaults)
object.uninterpretedOption = [];
- if (options.defaults)
- object.features = null;
- if (message.features != null && message.hasOwnProperty("features"))
- object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
if (message.uninterpretedOption && message.uninterpretedOption.length) {
object.uninterpretedOption = [];
for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -37471,7 +36359,6 @@
* @property {boolean|null} [allowAlias] EnumOptions allowAlias
* @property {boolean|null} [deprecated] EnumOptions deprecated
* @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] EnumOptions deprecatedLegacyJsonFieldConflicts
- * @property {google.protobuf.IFeatureSet|null} [features] EnumOptions features
* @property {Array.|null} [uninterpretedOption] EnumOptions uninterpretedOption
*/
@@ -37515,14 +36402,6 @@
*/
EnumOptions.prototype.deprecatedLegacyJsonFieldConflicts = false;
- /**
- * EnumOptions features.
- * @member {google.protobuf.IFeatureSet|null|undefined} features
- * @memberof google.protobuf.EnumOptions
- * @instance
- */
- EnumOptions.prototype.features = null;
-
/**
* EnumOptions uninterpretedOption.
* @member {Array.} uninterpretedOption
@@ -37561,8 +36440,6 @@
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated);
if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts"))
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deprecatedLegacyJsonFieldConflicts);
- if (message.features != null && Object.hasOwnProperty.call(message, "features"))
- $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
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();
@@ -37612,10 +36489,6 @@
message.deprecatedLegacyJsonFieldConflicts = reader.bool();
break;
}
- case 7: {
- message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
- break;
- }
case 999: {
if (!(message.uninterpretedOption && message.uninterpretedOption.length))
message.uninterpretedOption = [];
@@ -37666,11 +36539,6 @@
if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean")
return "deprecatedLegacyJsonFieldConflicts: boolean expected";
- if (message.features != null && message.hasOwnProperty("features")) {
- var error = $root.google.protobuf.FeatureSet.verify(message.features);
- if (error)
- return "features." + error;
- }
if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
if (!Array.isArray(message.uninterpretedOption))
return "uninterpretedOption: array expected";
@@ -37701,11 +36569,6 @@
message.deprecated = Boolean(object.deprecated);
if (object.deprecatedLegacyJsonFieldConflicts != null)
message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts);
- if (object.features != null) {
- if (typeof object.features !== "object")
- throw TypeError(".google.protobuf.EnumOptions.features: object expected");
- message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
- }
if (object.uninterpretedOption) {
if (!Array.isArray(object.uninterpretedOption))
throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected");
@@ -37738,7 +36601,6 @@
object.allowAlias = false;
object.deprecated = false;
object.deprecatedLegacyJsonFieldConflicts = false;
- object.features = null;
}
if (message.allowAlias != null && message.hasOwnProperty("allowAlias"))
object.allowAlias = message.allowAlias;
@@ -37746,8 +36608,6 @@
object.deprecated = message.deprecated;
if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
- if (message.features != null && message.hasOwnProperty("features"))
- object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
if (message.uninterpretedOption && message.uninterpretedOption.length) {
object.uninterpretedOption = [];
for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -37792,8 +36652,6 @@
* @memberof google.protobuf
* @interface IEnumValueOptions
* @property {boolean|null} [deprecated] EnumValueOptions deprecated
- * @property {google.protobuf.IFeatureSet|null} [features] EnumValueOptions features
- * @property {boolean|null} [debugRedact] EnumValueOptions debugRedact
* @property {Array.|null} [uninterpretedOption] EnumValueOptions uninterpretedOption
*/
@@ -37822,28 +36680,12 @@
EnumValueOptions.prototype.deprecated = false;
/**
- * EnumValueOptions features.
- * @member {google.protobuf.IFeatureSet|null|undefined} features
+ * EnumValueOptions uninterpretedOption.
+ * @member {Array.} uninterpretedOption
* @memberof google.protobuf.EnumValueOptions
* @instance
*/
- EnumValueOptions.prototype.features = null;
-
- /**
- * EnumValueOptions debugRedact.
- * @member {boolean} debugRedact
- * @memberof google.protobuf.EnumValueOptions
- * @instance
- */
- EnumValueOptions.prototype.debugRedact = false;
-
- /**
- * EnumValueOptions uninterpretedOption.
- * @member {Array.} uninterpretedOption
- * @memberof google.protobuf.EnumValueOptions
- * @instance
- */
- EnumValueOptions.prototype.uninterpretedOption = $util.emptyArray;
+ EnumValueOptions.prototype.uninterpretedOption = $util.emptyArray;
/**
* Creates a new EnumValueOptions instance using the specified properties.
@@ -37871,10 +36713,6 @@
writer = $Writer.create();
if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated"))
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deprecated);
- if (message.features != null && Object.hasOwnProperty.call(message, "features"))
- $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- if (message.debugRedact != null && Object.hasOwnProperty.call(message, "debugRedact"))
- writer.uint32(/* id 3, wireType 0 =*/24).bool(message.debugRedact);
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();
@@ -37916,14 +36754,6 @@
message.deprecated = reader.bool();
break;
}
- case 2: {
- message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
- break;
- }
- case 3: {
- message.debugRedact = reader.bool();
- break;
- }
case 999: {
if (!(message.uninterpretedOption && message.uninterpretedOption.length))
message.uninterpretedOption = [];
@@ -37968,14 +36798,6 @@
if (message.deprecated != null && message.hasOwnProperty("deprecated"))
if (typeof message.deprecated !== "boolean")
return "deprecated: boolean expected";
- if (message.features != null && message.hasOwnProperty("features")) {
- var error = $root.google.protobuf.FeatureSet.verify(message.features);
- if (error)
- return "features." + error;
- }
- if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
- if (typeof message.debugRedact !== "boolean")
- return "debugRedact: boolean expected";
if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
if (!Array.isArray(message.uninterpretedOption))
return "uninterpretedOption: array expected";
@@ -38002,13 +36824,6 @@
var message = new $root.google.protobuf.EnumValueOptions();
if (object.deprecated != null)
message.deprecated = Boolean(object.deprecated);
- if (object.features != null) {
- if (typeof object.features !== "object")
- throw TypeError(".google.protobuf.EnumValueOptions.features: object expected");
- message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
- }
- if (object.debugRedact != null)
- message.debugRedact = Boolean(object.debugRedact);
if (object.uninterpretedOption) {
if (!Array.isArray(object.uninterpretedOption))
throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected");
@@ -38037,17 +36852,10 @@
var object = {};
if (options.arrays || options.defaults)
object.uninterpretedOption = [];
- if (options.defaults) {
+ if (options.defaults)
object.deprecated = false;
- object.features = null;
- object.debugRedact = false;
- }
if (message.deprecated != null && message.hasOwnProperty("deprecated"))
object.deprecated = message.deprecated;
- if (message.features != null && message.hasOwnProperty("features"))
- object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
- if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
- object.debugRedact = message.debugRedact;
if (message.uninterpretedOption && message.uninterpretedOption.length) {
object.uninterpretedOption = [];
for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -38091,7 +36899,6 @@
* Properties of a ServiceOptions.
* @memberof google.protobuf
* @interface IServiceOptions
- * @property {google.protobuf.IFeatureSet|null} [features] ServiceOptions features
* @property {boolean|null} [deprecated] ServiceOptions deprecated
* @property {Array.|null} [uninterpretedOption] ServiceOptions uninterpretedOption
* @property {string|null} [".google.api.defaultHost"] ServiceOptions .google.api.defaultHost
@@ -38114,14 +36921,6 @@
this[keys[i]] = properties[keys[i]];
}
- /**
- * ServiceOptions features.
- * @member {google.protobuf.IFeatureSet|null|undefined} features
- * @memberof google.protobuf.ServiceOptions
- * @instance
- */
- ServiceOptions.prototype.features = null;
-
/**
* ServiceOptions deprecated.
* @member {boolean} deprecated
@@ -38180,8 +36979,6 @@
writer = $Writer.create();
if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated"))
writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated);
- if (message.features != null && Object.hasOwnProperty.call(message, "features"))
- $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 34, wireType 2 =*/274).fork()).ldelim();
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();
@@ -38223,10 +37020,6 @@
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
- case 34: {
- message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
- break;
- }
case 33: {
message.deprecated = reader.bool();
break;
@@ -38280,11 +37073,6 @@
ServiceOptions.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
- if (message.features != null && message.hasOwnProperty("features")) {
- var error = $root.google.protobuf.FeatureSet.verify(message.features);
- if (error)
- return "features." + error;
- }
if (message.deprecated != null && message.hasOwnProperty("deprecated"))
if (typeof message.deprecated !== "boolean")
return "deprecated: boolean expected";
@@ -38318,11 +37106,6 @@
if (object instanceof $root.google.protobuf.ServiceOptions)
return object;
var message = new $root.google.protobuf.ServiceOptions();
- if (object.features != null) {
- if (typeof object.features !== "object")
- throw TypeError(".google.protobuf.ServiceOptions.features: object expected");
- message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
- }
if (object.deprecated != null)
message.deprecated = Boolean(object.deprecated);
if (object.uninterpretedOption) {
@@ -38359,14 +37142,11 @@
object.uninterpretedOption = [];
if (options.defaults) {
object.deprecated = false;
- object.features = null;
object[".google.api.defaultHost"] = "";
object[".google.api.oauthScopes"] = "";
}
if (message.deprecated != null && message.hasOwnProperty("deprecated"))
object.deprecated = message.deprecated;
- if (message.features != null && message.hasOwnProperty("features"))
- object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
if (message.uninterpretedOption && message.uninterpretedOption.length) {
object.uninterpretedOption = [];
for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -38416,7 +37196,6 @@
* @interface IMethodOptions
* @property {boolean|null} [deprecated] MethodOptions deprecated
* @property {google.protobuf.MethodOptions.IdempotencyLevel|null} [idempotencyLevel] MethodOptions idempotencyLevel
- * @property {google.protobuf.IFeatureSet|null} [features] MethodOptions features
* @property {Array.|null} [uninterpretedOption] MethodOptions uninterpretedOption
* @property {google.api.IHttpRule|null} [".google.api.http"] MethodOptions .google.api.http
* @property {Array.|null} [".google.api.methodSignature"] MethodOptions .google.api.methodSignature
@@ -38455,14 +37234,6 @@
*/
MethodOptions.prototype.idempotencyLevel = 0;
- /**
- * MethodOptions features.
- * @member {google.protobuf.IFeatureSet|null|undefined} features
- * @memberof google.protobuf.MethodOptions
- * @instance
- */
- MethodOptions.prototype.features = null;
-
/**
* MethodOptions uninterpretedOption.
* @member {Array.} uninterpretedOption
@@ -38515,8 +37286,6 @@
writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated);
if (message.idempotencyLevel != null && Object.hasOwnProperty.call(message, "idempotencyLevel"))
writer.uint32(/* id 34, wireType 0 =*/272).int32(message.idempotencyLevel);
- if (message.features != null && Object.hasOwnProperty.call(message, "features"))
- $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 35, wireType 2 =*/282).fork()).ldelim();
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();
@@ -38567,10 +37336,6 @@
message.idempotencyLevel = reader.int32();
break;
}
- case 35: {
- message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
- break;
- }
case 999: {
if (!(message.uninterpretedOption && message.uninterpretedOption.length))
message.uninterpretedOption = [];
@@ -38634,11 +37399,6 @@
case 2:
break;
}
- if (message.features != null && message.hasOwnProperty("features")) {
- var error = $root.google.protobuf.FeatureSet.verify(message.features);
- if (error)
- return "features." + error;
- }
if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
if (!Array.isArray(message.uninterpretedOption))
return "uninterpretedOption: array expected";
@@ -38697,11 +37457,6 @@
message.idempotencyLevel = 2;
break;
}
- if (object.features != null) {
- if (typeof object.features !== "object")
- throw TypeError(".google.protobuf.MethodOptions.features: object expected");
- message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
- }
if (object.uninterpretedOption) {
if (!Array.isArray(object.uninterpretedOption))
throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: array expected");
@@ -38747,15 +37502,12 @@
if (options.defaults) {
object.deprecated = false;
object.idempotencyLevel = options.enums === String ? "IDEMPOTENCY_UNKNOWN" : 0;
- object.features = null;
object[".google.api.http"] = null;
}
if (message.deprecated != null && message.hasOwnProperty("deprecated"))
object.deprecated = message.deprecated;
if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel"))
object.idempotencyLevel = options.enums === String ? $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] === undefined ? message.idempotencyLevel : $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] : message.idempotencyLevel;
- if (message.features != null && message.hasOwnProperty("features"))
- object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
if (message.uninterpretedOption && message.uninterpretedOption.length) {
object.uninterpretedOption = [];
for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -39444,607 +38196,6 @@
return UninterpretedOption;
})();
- protobuf.FeatureSet = (function() {
-
- /**
- * Properties of a FeatureSet.
- * @memberof google.protobuf
- * @interface IFeatureSet
- * @property {google.protobuf.FeatureSet.FieldPresence|null} [fieldPresence] FeatureSet fieldPresence
- * @property {google.protobuf.FeatureSet.EnumType|null} [enumType] FeatureSet enumType
- * @property {google.protobuf.FeatureSet.RepeatedFieldEncoding|null} [repeatedFieldEncoding] FeatureSet repeatedFieldEncoding
- * @property {google.protobuf.FeatureSet.StringFieldValidation|null} [stringFieldValidation] FeatureSet stringFieldValidation
- * @property {google.protobuf.FeatureSet.MessageEncoding|null} [messageEncoding] FeatureSet messageEncoding
- * @property {google.protobuf.FeatureSet.JsonFormat|null} [jsonFormat] FeatureSet jsonFormat
- * @property {google.protobuf.IFeatureSet|null} [rawFeatures] FeatureSet rawFeatures
- */
-
- /**
- * Constructs a new FeatureSet.
- * @memberof google.protobuf
- * @classdesc Represents a FeatureSet.
- * @implements IFeatureSet
- * @constructor
- * @param {google.protobuf.IFeatureSet=} [properties] Properties to set
- */
- function FeatureSet(properties) {
- 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]];
- }
-
- /**
- * FeatureSet fieldPresence.
- * @member {google.protobuf.FeatureSet.FieldPresence} fieldPresence
- * @memberof google.protobuf.FeatureSet
- * @instance
- */
- FeatureSet.prototype.fieldPresence = 0;
-
- /**
- * FeatureSet enumType.
- * @member {google.protobuf.FeatureSet.EnumType} enumType
- * @memberof google.protobuf.FeatureSet
- * @instance
- */
- FeatureSet.prototype.enumType = 0;
-
- /**
- * FeatureSet repeatedFieldEncoding.
- * @member {google.protobuf.FeatureSet.RepeatedFieldEncoding} repeatedFieldEncoding
- * @memberof google.protobuf.FeatureSet
- * @instance
- */
- FeatureSet.prototype.repeatedFieldEncoding = 0;
-
- /**
- * FeatureSet stringFieldValidation.
- * @member {google.protobuf.FeatureSet.StringFieldValidation} stringFieldValidation
- * @memberof google.protobuf.FeatureSet
- * @instance
- */
- FeatureSet.prototype.stringFieldValidation = 0;
-
- /**
- * FeatureSet messageEncoding.
- * @member {google.protobuf.FeatureSet.MessageEncoding} messageEncoding
- * @memberof google.protobuf.FeatureSet
- * @instance
- */
- FeatureSet.prototype.messageEncoding = 0;
-
- /**
- * FeatureSet jsonFormat.
- * @member {google.protobuf.FeatureSet.JsonFormat} jsonFormat
- * @memberof google.protobuf.FeatureSet
- * @instance
- */
- FeatureSet.prototype.jsonFormat = 0;
-
- /**
- * FeatureSet rawFeatures.
- * @member {google.protobuf.IFeatureSet|null|undefined} rawFeatures
- * @memberof google.protobuf.FeatureSet
- * @instance
- */
- FeatureSet.prototype.rawFeatures = null;
-
- /**
- * Creates a new FeatureSet instance using the specified properties.
- * @function create
- * @memberof google.protobuf.FeatureSet
- * @static
- * @param {google.protobuf.IFeatureSet=} [properties] Properties to set
- * @returns {google.protobuf.FeatureSet} FeatureSet instance
- */
- FeatureSet.create = function create(properties) {
- return new FeatureSet(properties);
- };
-
- /**
- * Encodes the specified FeatureSet message. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages.
- * @function encode
- * @memberof google.protobuf.FeatureSet
- * @static
- * @param {google.protobuf.IFeatureSet} message FeatureSet message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- FeatureSet.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.fieldPresence != null && Object.hasOwnProperty.call(message, "fieldPresence"))
- writer.uint32(/* id 1, wireType 0 =*/8).int32(message.fieldPresence);
- if (message.enumType != null && Object.hasOwnProperty.call(message, "enumType"))
- writer.uint32(/* id 2, wireType 0 =*/16).int32(message.enumType);
- if (message.repeatedFieldEncoding != null && Object.hasOwnProperty.call(message, "repeatedFieldEncoding"))
- writer.uint32(/* id 3, wireType 0 =*/24).int32(message.repeatedFieldEncoding);
- if (message.stringFieldValidation != null && Object.hasOwnProperty.call(message, "stringFieldValidation"))
- writer.uint32(/* id 4, wireType 0 =*/32).int32(message.stringFieldValidation);
- if (message.messageEncoding != null && Object.hasOwnProperty.call(message, "messageEncoding"))
- writer.uint32(/* id 5, wireType 0 =*/40).int32(message.messageEncoding);
- if (message.jsonFormat != null && Object.hasOwnProperty.call(message, "jsonFormat"))
- writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jsonFormat);
- if (message.rawFeatures != null && Object.hasOwnProperty.call(message, "rawFeatures"))
- $root.google.protobuf.FeatureSet.encode(message.rawFeatures, writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
- return writer;
- };
-
- /**
- * Encodes the specified FeatureSet message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages.
- * @function encodeDelimited
- * @memberof google.protobuf.FeatureSet
- * @static
- * @param {google.protobuf.IFeatureSet} message FeatureSet message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- FeatureSet.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
-
- /**
- * Decodes a FeatureSet message from the specified reader or buffer.
- * @function decode
- * @memberof google.protobuf.FeatureSet
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {google.protobuf.FeatureSet} FeatureSet
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- FeatureSet.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.FeatureSet();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1: {
- message.fieldPresence = reader.int32();
- break;
- }
- case 2: {
- message.enumType = reader.int32();
- break;
- }
- case 3: {
- message.repeatedFieldEncoding = reader.int32();
- break;
- }
- case 4: {
- message.stringFieldValidation = reader.int32();
- break;
- }
- case 5: {
- message.messageEncoding = reader.int32();
- break;
- }
- case 6: {
- message.jsonFormat = reader.int32();
- break;
- }
- case 999: {
- message.rawFeatures = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
- break;
- }
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
-
- /**
- * Decodes a FeatureSet message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof google.protobuf.FeatureSet
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {google.protobuf.FeatureSet} FeatureSet
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- FeatureSet.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
-
- /**
- * Verifies a FeatureSet message.
- * @function verify
- * @memberof google.protobuf.FeatureSet
- * @static
- * @param {Object.} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- FeatureSet.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.fieldPresence != null && message.hasOwnProperty("fieldPresence"))
- switch (message.fieldPresence) {
- default:
- return "fieldPresence: enum value expected";
- case 0:
- case 1:
- case 2:
- case 3:
- break;
- }
- if (message.enumType != null && message.hasOwnProperty("enumType"))
- switch (message.enumType) {
- default:
- return "enumType: enum value expected";
- case 0:
- case 1:
- case 2:
- break;
- }
- if (message.repeatedFieldEncoding != null && message.hasOwnProperty("repeatedFieldEncoding"))
- switch (message.repeatedFieldEncoding) {
- default:
- return "repeatedFieldEncoding: enum value expected";
- case 0:
- case 1:
- case 2:
- break;
- }
- if (message.stringFieldValidation != null && message.hasOwnProperty("stringFieldValidation"))
- switch (message.stringFieldValidation) {
- default:
- return "stringFieldValidation: enum value expected";
- case 0:
- case 1:
- case 2:
- case 3:
- break;
- }
- if (message.messageEncoding != null && message.hasOwnProperty("messageEncoding"))
- switch (message.messageEncoding) {
- default:
- return "messageEncoding: enum value expected";
- case 0:
- case 1:
- case 2:
- break;
- }
- if (message.jsonFormat != null && message.hasOwnProperty("jsonFormat"))
- switch (message.jsonFormat) {
- default:
- return "jsonFormat: enum value expected";
- case 0:
- case 1:
- case 2:
- break;
- }
- if (message.rawFeatures != null && message.hasOwnProperty("rawFeatures")) {
- var error = $root.google.protobuf.FeatureSet.verify(message.rawFeatures);
- if (error)
- return "rawFeatures." + error;
- }
- return null;
- };
-
- /**
- * Creates a FeatureSet message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof google.protobuf.FeatureSet
- * @static
- * @param {Object.} object Plain object
- * @returns {google.protobuf.FeatureSet} FeatureSet
- */
- FeatureSet.fromObject = function fromObject(object) {
- if (object instanceof $root.google.protobuf.FeatureSet)
- return object;
- var message = new $root.google.protobuf.FeatureSet();
- switch (object.fieldPresence) {
- default:
- if (typeof object.fieldPresence === "number") {
- message.fieldPresence = object.fieldPresence;
- break;
- }
- break;
- case "FIELD_PRESENCE_UNKNOWN":
- case 0:
- message.fieldPresence = 0;
- break;
- case "EXPLICIT":
- case 1:
- message.fieldPresence = 1;
- break;
- case "IMPLICIT":
- case 2:
- message.fieldPresence = 2;
- break;
- case "LEGACY_REQUIRED":
- case 3:
- message.fieldPresence = 3;
- break;
- }
- switch (object.enumType) {
- default:
- if (typeof object.enumType === "number") {
- message.enumType = object.enumType;
- break;
- }
- break;
- case "ENUM_TYPE_UNKNOWN":
- case 0:
- message.enumType = 0;
- break;
- case "OPEN":
- case 1:
- message.enumType = 1;
- break;
- case "CLOSED":
- case 2:
- message.enumType = 2;
- break;
- }
- switch (object.repeatedFieldEncoding) {
- default:
- if (typeof object.repeatedFieldEncoding === "number") {
- message.repeatedFieldEncoding = object.repeatedFieldEncoding;
- break;
- }
- break;
- case "REPEATED_FIELD_ENCODING_UNKNOWN":
- case 0:
- message.repeatedFieldEncoding = 0;
- break;
- case "PACKED":
- case 1:
- message.repeatedFieldEncoding = 1;
- break;
- case "EXPANDED":
- case 2:
- message.repeatedFieldEncoding = 2;
- break;
- }
- switch (object.stringFieldValidation) {
- default:
- if (typeof object.stringFieldValidation === "number") {
- message.stringFieldValidation = object.stringFieldValidation;
- break;
- }
- break;
- case "STRING_FIELD_VALIDATION_UNKNOWN":
- case 0:
- message.stringFieldValidation = 0;
- break;
- case "MANDATORY":
- case 1:
- message.stringFieldValidation = 1;
- break;
- case "HINT":
- case 2:
- message.stringFieldValidation = 2;
- break;
- case "NONE":
- case 3:
- message.stringFieldValidation = 3;
- break;
- }
- switch (object.messageEncoding) {
- default:
- if (typeof object.messageEncoding === "number") {
- message.messageEncoding = object.messageEncoding;
- break;
- }
- break;
- case "MESSAGE_ENCODING_UNKNOWN":
- case 0:
- message.messageEncoding = 0;
- break;
- case "LENGTH_PREFIXED":
- case 1:
- message.messageEncoding = 1;
- break;
- case "DELIMITED":
- case 2:
- message.messageEncoding = 2;
- break;
- }
- switch (object.jsonFormat) {
- default:
- if (typeof object.jsonFormat === "number") {
- message.jsonFormat = object.jsonFormat;
- break;
- }
- break;
- case "JSON_FORMAT_UNKNOWN":
- case 0:
- message.jsonFormat = 0;
- break;
- case "ALLOW":
- case 1:
- message.jsonFormat = 1;
- break;
- case "LEGACY_BEST_EFFORT":
- case 2:
- message.jsonFormat = 2;
- break;
- }
- if (object.rawFeatures != null) {
- if (typeof object.rawFeatures !== "object")
- throw TypeError(".google.protobuf.FeatureSet.rawFeatures: object expected");
- message.rawFeatures = $root.google.protobuf.FeatureSet.fromObject(object.rawFeatures);
- }
- return message;
- };
-
- /**
- * Creates a plain object from a FeatureSet message. Also converts values to other types if specified.
- * @function toObject
- * @memberof google.protobuf.FeatureSet
- * @static
- * @param {google.protobuf.FeatureSet} message FeatureSet
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.} Plain object
- */
- FeatureSet.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults) {
- object.fieldPresence = options.enums === String ? "FIELD_PRESENCE_UNKNOWN" : 0;
- object.enumType = options.enums === String ? "ENUM_TYPE_UNKNOWN" : 0;
- object.repeatedFieldEncoding = options.enums === String ? "REPEATED_FIELD_ENCODING_UNKNOWN" : 0;
- object.stringFieldValidation = options.enums === String ? "STRING_FIELD_VALIDATION_UNKNOWN" : 0;
- object.messageEncoding = options.enums === String ? "MESSAGE_ENCODING_UNKNOWN" : 0;
- object.jsonFormat = options.enums === String ? "JSON_FORMAT_UNKNOWN" : 0;
- object.rawFeatures = null;
- }
- if (message.fieldPresence != null && message.hasOwnProperty("fieldPresence"))
- object.fieldPresence = options.enums === String ? $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] === undefined ? message.fieldPresence : $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] : message.fieldPresence;
- if (message.enumType != null && message.hasOwnProperty("enumType"))
- object.enumType = options.enums === String ? $root.google.protobuf.FeatureSet.EnumType[message.enumType] === undefined ? message.enumType : $root.google.protobuf.FeatureSet.EnumType[message.enumType] : message.enumType;
- if (message.repeatedFieldEncoding != null && message.hasOwnProperty("repeatedFieldEncoding"))
- object.repeatedFieldEncoding = options.enums === String ? $root.google.protobuf.FeatureSet.RepeatedFieldEncoding[message.repeatedFieldEncoding] === undefined ? message.repeatedFieldEncoding : $root.google.protobuf.FeatureSet.RepeatedFieldEncoding[message.repeatedFieldEncoding] : message.repeatedFieldEncoding;
- if (message.stringFieldValidation != null && message.hasOwnProperty("stringFieldValidation"))
- object.stringFieldValidation = options.enums === String ? $root.google.protobuf.FeatureSet.StringFieldValidation[message.stringFieldValidation] === undefined ? message.stringFieldValidation : $root.google.protobuf.FeatureSet.StringFieldValidation[message.stringFieldValidation] : message.stringFieldValidation;
- if (message.messageEncoding != null && message.hasOwnProperty("messageEncoding"))
- object.messageEncoding = options.enums === String ? $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] === undefined ? message.messageEncoding : $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] : message.messageEncoding;
- if (message.jsonFormat != null && message.hasOwnProperty("jsonFormat"))
- object.jsonFormat = options.enums === String ? $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] === undefined ? message.jsonFormat : $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] : message.jsonFormat;
- if (message.rawFeatures != null && message.hasOwnProperty("rawFeatures"))
- object.rawFeatures = $root.google.protobuf.FeatureSet.toObject(message.rawFeatures, options);
- return object;
- };
-
- /**
- * Converts this FeatureSet to JSON.
- * @function toJSON
- * @memberof google.protobuf.FeatureSet
- * @instance
- * @returns {Object.} JSON object
- */
- FeatureSet.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
-
- /**
- * Gets the default type url for FeatureSet
- * @function getTypeUrl
- * @memberof google.protobuf.FeatureSet
- * @static
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
- * @returns {string} The default type url
- */
- FeatureSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
- if (typeUrlPrefix === undefined) {
- typeUrlPrefix = "type.googleapis.com";
- }
- return typeUrlPrefix + "/google.protobuf.FeatureSet";
- };
-
- /**
- * FieldPresence enum.
- * @name google.protobuf.FeatureSet.FieldPresence
- * @enum {number}
- * @property {number} FIELD_PRESENCE_UNKNOWN=0 FIELD_PRESENCE_UNKNOWN value
- * @property {number} EXPLICIT=1 EXPLICIT value
- * @property {number} IMPLICIT=2 IMPLICIT value
- * @property {number} LEGACY_REQUIRED=3 LEGACY_REQUIRED value
- */
- FeatureSet.FieldPresence = (function() {
- var valuesById = {}, values = Object.create(valuesById);
- values[valuesById[0] = "FIELD_PRESENCE_UNKNOWN"] = 0;
- values[valuesById[1] = "EXPLICIT"] = 1;
- values[valuesById[2] = "IMPLICIT"] = 2;
- values[valuesById[3] = "LEGACY_REQUIRED"] = 3;
- return values;
- })();
-
- /**
- * EnumType enum.
- * @name google.protobuf.FeatureSet.EnumType
- * @enum {number}
- * @property {number} ENUM_TYPE_UNKNOWN=0 ENUM_TYPE_UNKNOWN value
- * @property {number} OPEN=1 OPEN value
- * @property {number} CLOSED=2 CLOSED value
- */
- FeatureSet.EnumType = (function() {
- var valuesById = {}, values = Object.create(valuesById);
- values[valuesById[0] = "ENUM_TYPE_UNKNOWN"] = 0;
- values[valuesById[1] = "OPEN"] = 1;
- values[valuesById[2] = "CLOSED"] = 2;
- return values;
- })();
-
- /**
- * RepeatedFieldEncoding enum.
- * @name google.protobuf.FeatureSet.RepeatedFieldEncoding
- * @enum {number}
- * @property {number} REPEATED_FIELD_ENCODING_UNKNOWN=0 REPEATED_FIELD_ENCODING_UNKNOWN value
- * @property {number} PACKED=1 PACKED value
- * @property {number} EXPANDED=2 EXPANDED value
- */
- FeatureSet.RepeatedFieldEncoding = (function() {
- var valuesById = {}, values = Object.create(valuesById);
- values[valuesById[0] = "REPEATED_FIELD_ENCODING_UNKNOWN"] = 0;
- values[valuesById[1] = "PACKED"] = 1;
- values[valuesById[2] = "EXPANDED"] = 2;
- return values;
- })();
-
- /**
- * StringFieldValidation enum.
- * @name google.protobuf.FeatureSet.StringFieldValidation
- * @enum {number}
- * @property {number} STRING_FIELD_VALIDATION_UNKNOWN=0 STRING_FIELD_VALIDATION_UNKNOWN value
- * @property {number} MANDATORY=1 MANDATORY value
- * @property {number} HINT=2 HINT value
- * @property {number} NONE=3 NONE value
- */
- FeatureSet.StringFieldValidation = (function() {
- var valuesById = {}, values = Object.create(valuesById);
- values[valuesById[0] = "STRING_FIELD_VALIDATION_UNKNOWN"] = 0;
- values[valuesById[1] = "MANDATORY"] = 1;
- values[valuesById[2] = "HINT"] = 2;
- values[valuesById[3] = "NONE"] = 3;
- return values;
- })();
-
- /**
- * MessageEncoding enum.
- * @name google.protobuf.FeatureSet.MessageEncoding
- * @enum {number}
- * @property {number} MESSAGE_ENCODING_UNKNOWN=0 MESSAGE_ENCODING_UNKNOWN value
- * @property {number} LENGTH_PREFIXED=1 LENGTH_PREFIXED value
- * @property {number} DELIMITED=2 DELIMITED value
- */
- FeatureSet.MessageEncoding = (function() {
- var valuesById = {}, values = Object.create(valuesById);
- values[valuesById[0] = "MESSAGE_ENCODING_UNKNOWN"] = 0;
- values[valuesById[1] = "LENGTH_PREFIXED"] = 1;
- values[valuesById[2] = "DELIMITED"] = 2;
- return values;
- })();
-
- /**
- * JsonFormat enum.
- * @name google.protobuf.FeatureSet.JsonFormat
- * @enum {number}
- * @property {number} JSON_FORMAT_UNKNOWN=0 JSON_FORMAT_UNKNOWN value
- * @property {number} ALLOW=1 ALLOW value
- * @property {number} LEGACY_BEST_EFFORT=2 LEGACY_BEST_EFFORT value
- */
- FeatureSet.JsonFormat = (function() {
- var valuesById = {}, values = Object.create(valuesById);
- values[valuesById[0] = "JSON_FORMAT_UNKNOWN"] = 0;
- values[valuesById[1] = "ALLOW"] = 1;
- values[valuesById[2] = "LEGACY_BEST_EFFORT"] = 2;
- return values;
- })();
-
- return FeatureSet;
- })();
-
protobuf.SourceCodeInfo = (function() {
/**
diff --git a/packages/google-cloud-bigquery-migration/protos/protos.json b/packages/google-cloud-bigquery-migration/protos/protos.json
index 3c9538a3e4a..4d7216c0fd9 100644
--- a/packages/google-cloud-bigquery-migration/protos/protos.json
+++ b/packages/google-cloud-bigquery-migration/protos/protos.json
@@ -2574,10 +2574,6 @@
"rule": "repeated",
"type": "ClientLibrarySettings",
"id": 109
- },
- "protoReferenceDocumentationUri": {
- "type": "string",
- "id": 110
}
}
},
@@ -2635,31 +2631,6 @@
"common": {
"type": "CommonLanguageSettings",
"id": 1
- },
- "renamedServices": {
- "keyType": "string",
- "type": "string",
- "id": 2
- },
- "renamedResources": {
- "keyType": "string",
- "type": "string",
- "id": 3
- },
- "ignoredResources": {
- "rule": "repeated",
- "type": "string",
- "id": 4
- },
- "forcedNamespaceAliases": {
- "rule": "repeated",
- "type": "string",
- "id": 5
- },
- "handwrittenSignatures": {
- "rule": "repeated",
- "type": "string",
- "id": 6
}
}
},
@@ -2719,10 +2690,7 @@
"CLOUD": 1,
"ADS": 2,
"PHOTOS": 3,
- "STREET_VIEW": 4,
- "SHOPPING": 5,
- "GEO": 6,
- "GENERATIVE_AI": 7
+ "STREET_VIEW": 4
}
},
"ClientLibraryDestination": {
@@ -2911,25 +2879,6 @@
"rule": "repeated",
"type": "UninterpretedOption",
"id": 999
- },
- "declaration": {
- "rule": "repeated",
- "type": "Declaration",
- "id": 2,
- "options": {
- "retention": "RETENTION_SOURCE"
- }
- },
- "features": {
- "type": "FeatureSet",
- "id": 50
- },
- "verification": {
- "type": "VerificationState",
- "id": 3,
- "options": {
- "default": "UNVERIFIED"
- }
}
},
"extensions": [
@@ -2937,45 +2886,7 @@
1000,
536870911
]
- ],
- "nested": {
- "Declaration": {
- "fields": {
- "number": {
- "type": "int32",
- "id": 1
- },
- "fullName": {
- "type": "string",
- "id": 2
- },
- "type": {
- "type": "string",
- "id": 3
- },
- "reserved": {
- "type": "bool",
- "id": 5
- },
- "repeated": {
- "type": "bool",
- "id": 6
- }
- },
- "reserved": [
- [
- 4,
- 4
- ]
- ]
- },
- "VerificationState": {
- "values": {
- "DECLARATION": 0,
- "UNVERIFIED": 1
- }
- }
- }
+ ]
},
"FieldDescriptorProto": {
"fields": {
@@ -3288,10 +3199,6 @@
"type": "string",
"id": 45
},
- "features": {
- "type": "FeatureSet",
- "id": 50
- },
"uninterpretedOption": {
"rule": "repeated",
"type": "UninterpretedOption",
@@ -3354,10 +3261,6 @@
"deprecated": true
}
},
- "features": {
- "type": "FeatureSet",
- "id": 12
- },
"uninterpretedOption": {
"rule": "repeated",
"type": "UninterpretedOption",
@@ -3452,22 +3355,9 @@
"type": "OptionRetention",
"id": 17
},
- "targets": {
- "rule": "repeated",
+ "target": {
"type": "OptionTargetType",
- "id": 19,
- "options": {
- "packed": false
- }
- },
- "editionDefaults": {
- "rule": "repeated",
- "type": "EditionDefault",
- "id": 20
- },
- "features": {
- "type": "FeatureSet",
- "id": 21
+ "id": 18
},
"uninterpretedOption": {
"rule": "repeated",
@@ -3485,10 +3375,6 @@
[
4,
4
- ],
- [
- 18,
- 18
]
],
"nested": {
@@ -3526,27 +3412,11 @@
"TARGET_TYPE_SERVICE": 8,
"TARGET_TYPE_METHOD": 9
}
- },
- "EditionDefault": {
- "fields": {
- "edition": {
- "type": "string",
- "id": 1
- },
- "value": {
- "type": "string",
- "id": 2
- }
- }
}
}
},
"OneofOptions": {
"fields": {
- "features": {
- "type": "FeatureSet",
- "id": 1
- },
"uninterpretedOption": {
"rule": "repeated",
"type": "UninterpretedOption",
@@ -3580,10 +3450,6 @@
"deprecated": true
}
},
- "features": {
- "type": "FeatureSet",
- "id": 7
- },
"uninterpretedOption": {
"rule": "repeated",
"type": "UninterpretedOption",
@@ -3612,17 +3478,6 @@
"default": false
}
},
- "features": {
- "type": "FeatureSet",
- "id": 2
- },
- "debugRedact": {
- "type": "bool",
- "id": 3,
- "options": {
- "default": false
- }
- },
"uninterpretedOption": {
"rule": "repeated",
"type": "UninterpretedOption",
@@ -3638,10 +3493,6 @@
},
"ServiceOptions": {
"fields": {
- "features": {
- "type": "FeatureSet",
- "id": 34
- },
"deprecated": {
"type": "bool",
"id": 33,
@@ -3678,10 +3529,6 @@
"default": "IDEMPOTENCY_UNKNOWN"
}
},
- "features": {
- "type": "FeatureSet",
- "id": 35
- },
"uninterpretedOption": {
"rule": "repeated",
"type": "UninterpretedOption",
@@ -3753,137 +3600,6 @@
}
}
},
- "FeatureSet": {
- "fields": {
- "fieldPresence": {
- "type": "FieldPresence",
- "id": 1,
- "options": {
- "retention": "RETENTION_RUNTIME",
- "targets": "TARGET_TYPE_FILE",
- "edition_defaults.edition": "2023",
- "edition_defaults.value": "EXPLICIT"
- }
- },
- "enumType": {
- "type": "EnumType",
- "id": 2,
- "options": {
- "retention": "RETENTION_RUNTIME",
- "targets": "TARGET_TYPE_FILE",
- "edition_defaults.edition": "2023",
- "edition_defaults.value": "OPEN"
- }
- },
- "repeatedFieldEncoding": {
- "type": "RepeatedFieldEncoding",
- "id": 3,
- "options": {
- "retention": "RETENTION_RUNTIME",
- "targets": "TARGET_TYPE_FILE",
- "edition_defaults.edition": "2023",
- "edition_defaults.value": "PACKED"
- }
- },
- "stringFieldValidation": {
- "type": "StringFieldValidation",
- "id": 4,
- "options": {
- "retention": "RETENTION_RUNTIME",
- "targets": "TARGET_TYPE_FILE",
- "edition_defaults.edition": "2023",
- "edition_defaults.value": "MANDATORY"
- }
- },
- "messageEncoding": {
- "type": "MessageEncoding",
- "id": 5,
- "options": {
- "retention": "RETENTION_RUNTIME",
- "targets": "TARGET_TYPE_FILE",
- "edition_defaults.edition": "2023",
- "edition_defaults.value": "LENGTH_PREFIXED"
- }
- },
- "jsonFormat": {
- "type": "JsonFormat",
- "id": 6,
- "options": {
- "retention": "RETENTION_RUNTIME",
- "targets": "TARGET_TYPE_FILE",
- "edition_defaults.edition": "2023",
- "edition_defaults.value": "ALLOW"
- }
- },
- "rawFeatures": {
- "type": "FeatureSet",
- "id": 999,
- "options": {
- "targets": "TARGET_TYPE_UNKNOWN"
- }
- }
- },
- "extensions": [
- [
- 1000,
- 1000
- ],
- [
- 1001,
- 1001
- ],
- [
- 9995,
- 9999
- ]
- ],
- "nested": {
- "FieldPresence": {
- "values": {
- "FIELD_PRESENCE_UNKNOWN": 0,
- "EXPLICIT": 1,
- "IMPLICIT": 2,
- "LEGACY_REQUIRED": 3
- }
- },
- "EnumType": {
- "values": {
- "ENUM_TYPE_UNKNOWN": 0,
- "OPEN": 1,
- "CLOSED": 2
- }
- },
- "RepeatedFieldEncoding": {
- "values": {
- "REPEATED_FIELD_ENCODING_UNKNOWN": 0,
- "PACKED": 1,
- "EXPANDED": 2
- }
- },
- "StringFieldValidation": {
- "values": {
- "STRING_FIELD_VALIDATION_UNKNOWN": 0,
- "MANDATORY": 1,
- "HINT": 2,
- "NONE": 3
- }
- },
- "MessageEncoding": {
- "values": {
- "MESSAGE_ENCODING_UNKNOWN": 0,
- "LENGTH_PREFIXED": 1,
- "DELIMITED": 2
- }
- },
- "JsonFormat": {
- "values": {
- "JSON_FORMAT_UNKNOWN": 0,
- "ALLOW": 1,
- "LEGACY_BEST_EFFORT": 2
- }
- }
- }
- },
"SourceCodeInfo": {
"fields": {
"location": {
diff --git a/packages/google-cloud-bigquery-migration/samples/README.md b/packages/google-cloud-bigquery-migration/samples/README.md
index 5308a857856..b77e6148228 100644
--- a/packages/google-cloud-bigquery-migration/samples/README.md
+++ b/packages/google-cloud-bigquery-migration/samples/README.md
@@ -2,7 +2,7 @@
[//]: # "To regenerate it, use `python -m synthtool`."
-# [: Samples](https://github.com/)
+# [BigQuery Migration API: Node.js Samples](https://github.com/googleapis/google-cloud-node)
[![Open in Cloud Shell][shell_img]][shell_link]
@@ -12,12 +12,27 @@
* [Before you begin](#before-you-begin)
* [Samples](#samples)
+ * [Migration_service.create_migration_workflow](#migration_service.create_migration_workflow)
+ * [Migration_service.delete_migration_workflow](#migration_service.delete_migration_workflow)
+ * [Migration_service.get_migration_subtask](#migration_service.get_migration_subtask)
+ * [Migration_service.get_migration_workflow](#migration_service.get_migration_workflow)
+ * [Migration_service.list_migration_subtasks](#migration_service.list_migration_subtasks)
+ * [Migration_service.list_migration_workflows](#migration_service.list_migration_workflows)
+ * [Migration_service.start_migration_workflow](#migration_service.start_migration_workflow)
+ * [Migration_service.create_migration_workflow](#migration_service.create_migration_workflow)
+ * [Migration_service.delete_migration_workflow](#migration_service.delete_migration_workflow)
+ * [Migration_service.get_migration_subtask](#migration_service.get_migration_subtask)
+ * [Migration_service.get_migration_workflow](#migration_service.get_migration_workflow)
+ * [Migration_service.list_migration_subtasks](#migration_service.list_migration_subtasks)
+ * [Migration_service.list_migration_workflows](#migration_service.list_migration_workflows)
+ * [Migration_service.start_migration_workflow](#migration_service.start_migration_workflow)
+ * [Sql_translation_service.translate_query](#sql_translation_service.translate_query)
* [Quickstart](#quickstart)
## Before you begin
Before running the samples, make sure you've followed the steps outlined in
-[Using the client library](https://github.com/#using-the-client-library).
+[Using the client library](https://github.com/googleapis/google-cloud-node#using-the-client-library).
`cd samples`
@@ -29,16 +44,271 @@ Before running the samples, make sure you've followed the steps outlined in
+### Migration_service.create_migration_workflow
+
+View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-migration/samples/generated/v2/migration_service.create_migration_workflow.js).
+
+[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-migration/samples/generated/v2/migration_service.create_migration_workflow.js,samples/README.md)
+
+__Usage:__
+
+
+`node packages/google-cloud-bigquery-migration/samples/generated/v2/migration_service.create_migration_workflow.js`
+
+
+-----
+
+
+
+
+### Migration_service.delete_migration_workflow
+
+View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-migration/samples/generated/v2/migration_service.delete_migration_workflow.js).
+
+[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-migration/samples/generated/v2/migration_service.delete_migration_workflow.js,samples/README.md)
+
+__Usage:__
+
+
+`node packages/google-cloud-bigquery-migration/samples/generated/v2/migration_service.delete_migration_workflow.js`
+
+
+-----
+
+
+
+
+### Migration_service.get_migration_subtask
+
+View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-migration/samples/generated/v2/migration_service.get_migration_subtask.js).
+
+[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-migration/samples/generated/v2/migration_service.get_migration_subtask.js,samples/README.md)
+
+__Usage:__
+
+
+`node packages/google-cloud-bigquery-migration/samples/generated/v2/migration_service.get_migration_subtask.js`
+
+
+-----
+
+
+
+
+### Migration_service.get_migration_workflow
+
+View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-migration/samples/generated/v2/migration_service.get_migration_workflow.js).
+
+[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-migration/samples/generated/v2/migration_service.get_migration_workflow.js,samples/README.md)
+
+__Usage:__
+
+
+`node packages/google-cloud-bigquery-migration/samples/generated/v2/migration_service.get_migration_workflow.js`
+
+
+-----
+
+
+
+
+### Migration_service.list_migration_subtasks
+
+View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-migration/samples/generated/v2/migration_service.list_migration_subtasks.js).
+
+[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-migration/samples/generated/v2/migration_service.list_migration_subtasks.js,samples/README.md)
+
+__Usage:__
+
+
+`node packages/google-cloud-bigquery-migration/samples/generated/v2/migration_service.list_migration_subtasks.js`
+
+
+-----
+
+
+
+
+### Migration_service.list_migration_workflows
+
+View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-migration/samples/generated/v2/migration_service.list_migration_workflows.js).
+
+[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-migration/samples/generated/v2/migration_service.list_migration_workflows.js,samples/README.md)
+
+__Usage:__
+
+
+`node packages/google-cloud-bigquery-migration/samples/generated/v2/migration_service.list_migration_workflows.js`
+
+
+-----
+
+
+
+
+### Migration_service.start_migration_workflow
+
+View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-migration/samples/generated/v2/migration_service.start_migration_workflow.js).
+
+[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-migration/samples/generated/v2/migration_service.start_migration_workflow.js,samples/README.md)
+
+__Usage:__
+
+
+`node packages/google-cloud-bigquery-migration/samples/generated/v2/migration_service.start_migration_workflow.js`
+
+
+-----
+
+
+
+
+### Migration_service.create_migration_workflow
+
+View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-migration/samples/generated/v2alpha/migration_service.create_migration_workflow.js).
+
+[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-migration/samples/generated/v2alpha/migration_service.create_migration_workflow.js,samples/README.md)
+
+__Usage:__
+
+
+`node packages/google-cloud-bigquery-migration/samples/generated/v2alpha/migration_service.create_migration_workflow.js`
+
+
+-----
+
+
+
+
+### Migration_service.delete_migration_workflow
+
+View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-migration/samples/generated/v2alpha/migration_service.delete_migration_workflow.js).
+
+[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-migration/samples/generated/v2alpha/migration_service.delete_migration_workflow.js,samples/README.md)
+
+__Usage:__
+
+
+`node packages/google-cloud-bigquery-migration/samples/generated/v2alpha/migration_service.delete_migration_workflow.js`
+
+
+-----
+
+
+
+
+### Migration_service.get_migration_subtask
+
+View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-migration/samples/generated/v2alpha/migration_service.get_migration_subtask.js).
+
+[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-migration/samples/generated/v2alpha/migration_service.get_migration_subtask.js,samples/README.md)
+
+__Usage:__
+
+
+`node packages/google-cloud-bigquery-migration/samples/generated/v2alpha/migration_service.get_migration_subtask.js`
+
+
+-----
+
+
+
+
+### Migration_service.get_migration_workflow
+
+View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-migration/samples/generated/v2alpha/migration_service.get_migration_workflow.js).
+
+[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-migration/samples/generated/v2alpha/migration_service.get_migration_workflow.js,samples/README.md)
+
+__Usage:__
+
+
+`node packages/google-cloud-bigquery-migration/samples/generated/v2alpha/migration_service.get_migration_workflow.js`
+
+
+-----
+
+
+
+
+### Migration_service.list_migration_subtasks
+
+View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-migration/samples/generated/v2alpha/migration_service.list_migration_subtasks.js).
+
+[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-migration/samples/generated/v2alpha/migration_service.list_migration_subtasks.js,samples/README.md)
+
+__Usage:__
+
+
+`node packages/google-cloud-bigquery-migration/samples/generated/v2alpha/migration_service.list_migration_subtasks.js`
+
+
+-----
+
+
+
+
+### Migration_service.list_migration_workflows
+
+View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-migration/samples/generated/v2alpha/migration_service.list_migration_workflows.js).
+
+[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-migration/samples/generated/v2alpha/migration_service.list_migration_workflows.js,samples/README.md)
+
+__Usage:__
+
+
+`node packages/google-cloud-bigquery-migration/samples/generated/v2alpha/migration_service.list_migration_workflows.js`
+
+
+-----
+
+
+
+
+### Migration_service.start_migration_workflow
+
+View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-migration/samples/generated/v2alpha/migration_service.start_migration_workflow.js).
+
+[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-migration/samples/generated/v2alpha/migration_service.start_migration_workflow.js,samples/README.md)
+
+__Usage:__
+
+
+`node packages/google-cloud-bigquery-migration/samples/generated/v2alpha/migration_service.start_migration_workflow.js`
+
+
+-----
+
+
+
+
+### Sql_translation_service.translate_query
+
+View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-migration/samples/generated/v2alpha/sql_translation_service.translate_query.js).
+
+[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-migration/samples/generated/v2alpha/sql_translation_service.translate_query.js,samples/README.md)
+
+__Usage:__
+
+
+`node packages/google-cloud-bigquery-migration/samples/generated/v2alpha/sql_translation_service.translate_query.js`
+
+
+-----
+
+
+
+
### Quickstart
-View the [source code](https://github.com//blob/master/samples/quickstart.js).
+View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-migration/samples/quickstart.js).
-[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/&page=editor&open_in_editor=samples/quickstart.js,samples/README.md)
+[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-migration/samples/quickstart.js,samples/README.md)
__Usage:__
-`node samples/quickstart.js`
+`node packages/google-cloud-bigquery-migration/samples/quickstart.js`
@@ -46,5 +316,5 @@ __Usage:__
[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
-[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/&page=editor&open_in_editor=samples/README.md
-[product-docs]:
+[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=samples/README.md
+[product-docs]: https://cloud.google.com/bigquery/docs/migration-intro
diff --git a/packages/google-cloud-bigquery-migration/src/index.ts b/packages/google-cloud-bigquery-migration/src/index.ts
index ecc70436820..77c874763d1 100644
--- a/packages/google-cloud-bigquery-migration/src/index.ts
+++ b/packages/google-cloud-bigquery-migration/src/index.ts
@@ -1,4 +1,4 @@
-// Copyright 2020 Google LLC
+// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/release-please-config.json b/release-please-config.json
index 824ba0b62a9..932a2b94537 100644
--- a/release-please-config.json
+++ b/release-please-config.json
@@ -32,6 +32,7 @@
"packages/google-cloud-bigquery-dataexchange": {},
"packages/google-cloud-bigquery-datapolicies": {},
"packages/google-cloud-bigquery-datatransfer": {},
+ "packages/google-cloud-bigquery-migration": {},
"packages/google-cloud-bigquery-reservation": {},
"packages/google-cloud-billing": {},
"packages/google-cloud-billing-budgets": {},